Skip to content

Commit bed2393

Browse files
committed
feat: update generated APIs
1 parent bf0795b commit bed2393

11 files changed

Lines changed: 1635 additions & 4393 deletions

File tree

packages/sdk/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"@scaleway/sdk-marketplace": "workspace:*",
6363
"@scaleway/sdk-mnq": "workspace:*",
6464
"@scaleway/sdk-mongodb": "workspace:*",
65+
"@scaleway/sdk-partner": "workspace:*",
6566
"@scaleway/sdk-product-catalog": "workspace:*",
6667
"@scaleway/sdk-qaas": "workspace:*",
6768
"@scaleway/sdk-rdb": "workspace:*",

packages/sdk/src/index.gen.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import { Lbv1 } from '@scaleway/sdk-lb'
3434
import { Marketplacev2 } from '@scaleway/sdk-marketplace'
3535
import { Mnqv1beta1 } from '@scaleway/sdk-mnq'
3636
import { Mongodbv1, Mongodbv1alpha1 } from '@scaleway/sdk-mongodb'
37+
import { Partnerv1 } from '@scaleway/sdk-partner'
3738
import { ProductCatalogv2alpha1 } from '@scaleway/sdk-product-catalog'
3839
import { Qaasv1alpha1 } from '@scaleway/sdk-qaas'
3940
import { Rdbv1 } from '@scaleway/sdk-rdb'
@@ -311,6 +312,14 @@ export const Mongodb = {
311312
v1alpha1: Mongodbv1alpha1,
312313
}
313314

315+
/**
316+
* @deprecated Direct version exports are deprecated. Use the 'Partner' namespace instead (e.g., Partner.v1).
317+
*/
318+
export { Partnerv1 }
319+
export const Partner = {
320+
v1: Partnerv1,
321+
}
322+
314323
/**
315324
* @deprecated Direct version exports are deprecated. Use the 'ProductCatalog' namespace instead (e.g., ProductCatalog.v1).
316325
*/

packages_generated/domain/src/v2beta1/marshalling.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ export const unmarshalContact = (data: unknown): Contact => {
270270
lastname: data.lastname,
271271
legalForm: data.legal_form,
272272
phoneNumber: data.phone_number,
273-
questions: data.questions ? unmarshalArrayOfObject(data.questions, unmarshalContactQuestion) : undefined,
273+
questions: unmarshalArrayOfObject(data.questions, unmarshalContactQuestion),
274274
resale: data.resale,
275275
state: data.state,
276276
status: data.status,
@@ -1459,7 +1459,7 @@ const marshalNewContact = (
14591459
lastname: request.lastname,
14601460
legal_form: request.legalForm,
14611461
phone_number: request.phoneNumber,
1462-
questions: ((request.questions !== undefined) ? request.questions.map(elt => marshalContactQuestion(elt, defaults)): undefined),
1462+
questions: request.questions.map(elt => marshalContactQuestion(elt, defaults)),
14631463
resale: request.resale,
14641464
state: request.state,
14651465
vat_identification_code: request.vatIdentificationCode,

packages_generated/domain/src/v2beta1/types.gen.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -419,11 +419,11 @@ export interface ContactExtensionIT {
419419
/**
420420
* @deprecated This option is useless anymore.
421421
*/
422-
europeanCitizenship?: string
422+
europeanCitizenship: string
423423
/**
424424
* @deprecated Tax_code is renamed to pin.
425425
*/
426-
taxCode?: string
426+
taxCode: string
427427
/**
428428
* Domain name registrant's Taxcode (mandatory / only optional when the trustee is used)
429429
@@ -535,10 +535,6 @@ export interface Contact {
535535
companyIdentificationCode: string
536536
lang: StdLanguageCode
537537
resale: boolean
538-
/**
539-
* @deprecated
540-
*/
541-
questions?: ContactQuestion[]
542538
extensionFr?: ContactExtensionFR
543539
extensionEu?: ContactExtensionEU
544540
whoisOptIn: boolean
@@ -547,6 +543,10 @@ export interface Contact {
547543
extensionNl?: ContactExtensionNL
548544
status: ContactStatus
549545
extensionIt?: ContactExtensionIT
546+
/**
547+
* @deprecated
548+
*/
549+
questions: ContactQuestion[]
550550
}
551551

552552

@@ -598,16 +598,16 @@ export interface NewContact {
598598
companyIdentificationCode?: string
599599
lang: StdLanguageCode
600600
resale: boolean
601-
/**
602-
* @deprecated
603-
*/
604-
questions?: ContactQuestion[]
605601
extensionFr?: ContactExtensionFR
606602
extensionEu?: ContactExtensionEU
607603
whoisOptIn: boolean
608604
state?: string
609605
extensionNl?: ContactExtensionNL
610606
extensionIt?: ContactExtensionIT
607+
/**
608+
* @deprecated
609+
*/
610+
questions: ContactQuestion[]
611611
}
612612

613613

@@ -1093,7 +1093,7 @@ export type ImportRawDNSZoneRequest = {
10931093
/**
10941094
* @deprecated
10951095
*/
1096-
content?: string
1096+
content: string
10971097
projectId?: string
10981098
/**
10991099
* @deprecated
@@ -1265,7 +1265,7 @@ export type ListDNSZonesRequest = {
12651265
/**
12661266
* @deprecated DNS zone on which to filter the returned DNS zones.
12671267
*/
1268-
dnsZone?: string
1268+
dnsZone: string
12691269
/**
12701270
* DNS zones on which to filter the returned DNS zones.
12711271
*/
@@ -1729,16 +1729,16 @@ export type RegistrarApiUpdateContactRequest = {
17291729
companyIdentificationCode?: string
17301730
lang?: StdLanguageCode
17311731
resale?: boolean
1732-
/**
1733-
* @deprecated
1734-
*/
1735-
questions?: UpdateContactRequestQuestion[]
17361732
extensionFr?: ContactExtensionFR
17371733
extensionEu?: ContactExtensionEU
1738-
whoisOptIn?: boolean
1739-
state?: string
17401734
extensionNl?: ContactExtensionNL
17411735
extensionIt?: ContactExtensionIT
1736+
whoisOptIn?: boolean
1737+
state?: string
1738+
/**
1739+
* @deprecated
1740+
*/
1741+
questions?: UpdateContactRequestQuestion[]
17421742
}
17431743

17441744

packages_generated/instance/src/v1/types.gen.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export interface Volume {
219219
/**
220220
* @deprecated Show the volume NBD export URI (deprecated, will always be empty).
221221
*/
222-
exportUri?: string
222+
exportUri: string
223223
/**
224224
* Volume disk size.
225225
*/
@@ -630,11 +630,11 @@ export interface Server {
630630
/**
631631
* @deprecated True to configure the instance so it uses the routed IP mode. Use of `routed_ip_enabled` as `False` is deprecated.
632632
*/
633-
routedIpEnabled?: boolean
633+
routedIpEnabled: boolean
634634
/**
635635
* @deprecated True if IPv6 is enabled (deprecated and always `False` when `routed_ip_enabled` is `True`).
636636
*/
637-
enableIpv6?: boolean
637+
enableIpv6: boolean
638638
/**
639639
* Instance host name.
640640
*/
@@ -829,7 +829,7 @@ export interface SecurityGroup {
829829
/**
830830
* @deprecated True if it is your default security group for this Organization ID.
831831
*/
832-
organizationDefault?: boolean
832+
organizationDefault: boolean
833833
/**
834834
* True if it is your default security group for this Project ID.
835835
*/
@@ -1015,18 +1015,18 @@ export interface Dashboard {
10151015
securityGroupsCount: number
10161016
ipsUnused: number
10171017
volumesLSsdCount: number
1018+
volumesLSsdTotalSize: number
1019+
privateNicsCount: number
1020+
placementGroupsCount: number
1021+
volumesScratchCount: number
10181022
/**
10191023
* @deprecated
10201024
*/
1021-
volumesBSsdCount?: number
1022-
volumesLSsdTotalSize: number
1025+
volumesBSsdCount: number
10231026
/**
10241027
* @deprecated
10251028
*/
1026-
volumesBSsdTotalSize?: number
1027-
privateNicsCount: number
1028-
placementGroupsCount: number
1029-
volumesScratchCount: number
1029+
volumesBSsdTotalSize: number
10301030
}
10311031

10321032

@@ -1055,7 +1055,7 @@ export interface ServerType {
10551055
/**
10561056
* @deprecated Estimated monthly price, for a 30 days month, in Euro.
10571057
*/
1058-
monthlyPrice?: number
1058+
monthlyPrice: number
10591059
/**
10601060
* Hourly price in Euro.
10611061
*/
@@ -1552,7 +1552,7 @@ export type CreateServerRequest = {
15521552
/**
15531553
* @deprecated True if IPv6 is enabled on the server (deprecated and always `False` when `routed_ip_enabled` is `True`).
15541554
*/
1555-
enableIpv6?: boolean
1555+
enableIpv6: boolean
15561556
/**
15571557
* @deprecated ID of the reserved IP to attach to the Instance.
15581558
*/

packages_generated/instance/src/v1/types.private.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export type SetSecurityGroupRequest = {
6161
/**
6262
* @deprecated Please use project_default instead.
6363
*/
64-
organizationDefault?: boolean
64+
organizationDefault: boolean
6565
/**
6666
* True use this security group for future Instances created in this project.
6767
*/
@@ -154,7 +154,7 @@ export type SetServerRequest = {
154154
/**
155155
* @deprecated True if IPv6 is enabled (deprecated and always `False` when `routed_ip_enabled` is `True`).
156156
*/
157-
enableIpv6?: boolean
157+
enableIpv6: boolean
158158
/**
159159
* Instance host name.
160160
*/

packages_generated/lb/src/v1/marshalling.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ const unmarshalPrivateNetworkStaticConfig = (data: unknown): PrivateNetworkStati
498498
}
499499

500500
return {
501-
ipAddress: data.ip_address ? data.ip_address : undefined,
501+
ipAddress: data.ip_address,
502502
} as PrivateNetworkStaticConfig
503503
}
504504

packages_generated/lb/src/v1/types.gen.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export interface Instance {
272272
/**
273273
* @deprecated The region the Instance is in.
274274
*/
275-
region?: ScwRegion
275+
region: ScwRegion
276276
/**
277277
* The zone the Instance is in.
278278
*/
@@ -312,7 +312,7 @@ export interface Ip {
312312
/**
313313
* @deprecated The region the IP address is in.
314314
*/
315-
region?: ScwRegion
315+
region: ScwRegion
316316
/**
317317
* The zone the IP address is in.
318318
*/
@@ -493,7 +493,7 @@ export interface Lb {
493493
/**
494494
* @deprecated The region the Load Balancer is in.
495495
*/
496-
region?: ScwRegion
496+
region: ScwRegion
497497
/**
498498
* The zone the Load Balancer is in.
499499
*/
@@ -561,7 +561,7 @@ export interface Backend {
561561
/**
562562
* @deprecated Deprecated in favor of proxy_protocol field.
563563
*/
564-
sendProxyV2?: boolean
564+
sendProxyV2: boolean
565565
/**
566566
* Maximum allowed time for a backend server to process a request.
567567
*/
@@ -789,7 +789,7 @@ export interface PrivateNetworkStaticConfig {
789789
/**
790790
* @deprecated Array of a local IP address for the Load Balancer on this Private Network.
791791
*/
792-
ipAddress?: string[]
792+
ipAddress: string[]
793793
}
794794

795795

@@ -969,7 +969,7 @@ export interface LbType {
969969
/**
970970
* @deprecated The region the Load Balancer stock is in.
971971
*/
972-
region?: ScwRegion
972+
region: ScwRegion
973973
/**
974974
* The zone the Load Balancer stock is in.
975975
*/
@@ -1162,7 +1162,7 @@ export type CreateBackendRequest = {
11621162
/**
11631163
* @deprecated Deprecated in favor of proxy_protocol field.
11641164
*/
1165-
sendProxyV2?: boolean
1165+
sendProxyV2: boolean
11661166
/**
11671167
* Maximum allowed time for a backend server to process a request.
11681168
*/
@@ -2268,7 +2268,7 @@ export type UpdateBackendRequest = {
22682268
/**
22692269
* @deprecated Deprecated in favor of proxy_protocol field.
22702270
*/
2271-
sendProxyV2?: boolean
2271+
sendProxyV2: boolean
22722272
/**
22732273
* Maximum allowed time for a backend server to process a request.
22742274
*/
@@ -2695,7 +2695,7 @@ export type ZonedApiCreateBackendRequest = {
26952695
/**
26962696
* @deprecated Deprecated in favor of proxy_protocol field.
26972697
*/
2698-
sendProxyV2?: boolean
2698+
sendProxyV2: boolean
26992699
/**
27002700
* Maximum allowed time for a backend server to process a request.
27012701
*/
@@ -3665,7 +3665,7 @@ export type ZonedApiUpdateBackendRequest = {
36653665
/**
36663666
* @deprecated Deprecated in favor of proxy_protocol field.
36673667
*/
3668-
sendProxyV2?: boolean
3668+
sendProxyV2: boolean
36693669
/**
36703670
* Maximum allowed time for a backend server to process a request.
36713671
*/

packages_generated/product_catalog/src/v2alpha1/types.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,11 @@ export interface PublicCatalogProductPropertiesBlockStorage {
331331
/**
332332
* @deprecated The minimum size of storage volume for this product in bytes. Deprecated.
333333
*/
334-
minVolumeSize?: number
334+
minVolumeSize: number
335335
/**
336336
* @deprecated The maximum size of storage volume for this product in bytes. Deprecated.
337337
*/
338-
maxVolumeSize?: number
338+
maxVolumeSize: number
339339
}
340340

341341

packages_generated/rdb/src/v1/types.gen.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -543,14 +543,14 @@ export interface ACLRuleRequest {
543543

544544
export interface ACLRule {
545545
ip: string
546-
/**
547-
* @deprecated
548-
*/
549-
port?: number
550546
protocol: ACLRuleProtocol
551547
direction: ACLRuleDirection
552548
action: ACLRuleAction
553549
description: string
550+
/**
551+
* @deprecated
552+
*/
553+
port: number
554554
}
555555

556556

@@ -848,7 +848,7 @@ export interface NodeType {
848848
/**
849849
* @deprecated The Node Type is compliant with Block Storage.
850850
*/
851-
isBssdCompatible?: boolean
851+
isBssdCompatible: boolean
852852
/**
853853
* The Node Type is currently disabled.
854854
*/

0 commit comments

Comments
 (0)