From ade66cf8c759e7eb75fe71d81cb343b98ec55bb5 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Mon, 3 Nov 2025 15:50:28 +0000 Subject: [PATCH] feat: update generated APIs --- .../interlink/src/v1beta1/index.gen.ts | 1 + .../interlink/src/v1beta1/marshalling.gen.ts | 15 +++++++++++++++ .../interlink/src/v1beta1/types.gen.ts | 9 +++++++++ 3 files changed, 25 insertions(+) diff --git a/packages_generated/interlink/src/v1beta1/index.gen.ts b/packages_generated/interlink/src/v1beta1/index.gen.ts index 51f56a350..d2ac4e45e 100644 --- a/packages_generated/interlink/src/v1beta1/index.gen.ts +++ b/packages_generated/interlink/src/v1beta1/index.gen.ts @@ -44,6 +44,7 @@ export type { Partner, PartnerHost, Pop, + Range, RoutingPolicy, SelfHost, SetRoutingPolicyRequest, diff --git a/packages_generated/interlink/src/v1beta1/marshalling.gen.ts b/packages_generated/interlink/src/v1beta1/marshalling.gen.ts index d2b605360..e7dad5c37 100644 --- a/packages_generated/interlink/src/v1beta1/marshalling.gen.ts +++ b/packages_generated/interlink/src/v1beta1/marshalling.gen.ts @@ -24,6 +24,7 @@ import type { Partner, PartnerHost, Pop, + Range, RoutingPolicy, SelfHost, SetRoutingPolicyRequest, @@ -31,6 +32,19 @@ import type { UpdateRoutingPolicyRequest, } from './types.gen.js' +const unmarshalRange = (data: unknown): Range => { + if (!isJSONObject(data)) { + throw new TypeError( + `Unmarshalling the type 'Range' failed as data isn't a dictionary.`, + ) + } + + return { + end: data.end, + start: data.start, + } as Range +} + export const unmarshalDedicatedConnection = ( data: unknown, ): DedicatedConnection => { @@ -54,6 +68,7 @@ export const unmarshalDedicatedConnection = ( status: data.status, tags: data.tags, updatedAt: unmarshalDate(data.updated_at), + vlanRange: data.vlan_range ? unmarshalRange(data.vlan_range) : undefined, } as DedicatedConnection } diff --git a/packages_generated/interlink/src/v1beta1/types.gen.ts b/packages_generated/interlink/src/v1beta1/types.gen.ts index db07ca2e6..1e19f1200 100644 --- a/packages_generated/interlink/src/v1beta1/types.gen.ts +++ b/packages_generated/interlink/src/v1beta1/types.gen.ts @@ -75,6 +75,11 @@ export interface BgpConfig { ipv6: string } +export interface Range { + start: number + end: number +} + export interface PartnerHost { /** * ID of the partner facilitating the link. @@ -146,6 +151,10 @@ export interface DedicatedConnection { * Demarcation details required by the data center to set up the supporting Cross Connect. This generally includes the physical space in the facility, the cabinet or rack the connection should land in, the patch panel to go in, the port designation, and the media type. */ demarcationInfo?: string + /** + * Range in which to pick vlan for self-hosted links on this dedicated connection. Both start & end are included. Any range defined here must be itself included in the greater allowed range of vlans from 1500 to 3899 (this range is hardware dependent and can change over time, but actual range will be enforced). + */ + vlanRange?: Range /** * Region of the dedicated connection. */