From fd3f6e37c821ac93887b37c989c38dae5a93d0a3 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 10 Jun 2025 08:07:54 +0000 Subject: [PATCH] feat: update generated APIs --- .../billing/src/v2beta1/index.gen.ts | 1 + .../instance/src/v1/index.gen.ts | 2 ++ .../interlink/src/v1beta1/api.gen.ts | 6 ++++- .../interlink/src/v1beta1/marshalling.gen.ts | 12 +++++++++ .../interlink/src/v1beta1/types.gen.ts | 26 ++++++++++++++++++- 5 files changed, 45 insertions(+), 2 deletions(-) diff --git a/packages_generated/billing/src/v2beta1/index.gen.ts b/packages_generated/billing/src/v2beta1/index.gen.ts index e946ff71a..fb74b2fb3 100644 --- a/packages_generated/billing/src/v2beta1/index.gen.ts +++ b/packages_generated/billing/src/v2beta1/index.gen.ts @@ -30,4 +30,5 @@ export type { ListTaxesRequestOrderBy, ListTaxesResponse, ListTaxesResponseTax, + RedeemCouponRequest, } from './types.gen' diff --git a/packages_generated/instance/src/v1/index.gen.ts b/packages_generated/instance/src/v1/index.gen.ts index 63c831f0d..6bc101006 100644 --- a/packages_generated/instance/src/v1/index.gen.ts +++ b/packages_generated/instance/src/v1/index.gen.ts @@ -131,6 +131,8 @@ export type { ServerActionRequestVolumeBackupTemplate, ServerActionResponse, ServerCompatibleTypes, + ServerFilesystem, + ServerFilesystemState, ServerIp, ServerIpIpFamily, ServerIpProvisioningMode, diff --git a/packages_generated/interlink/src/v1beta1/api.gen.ts b/packages_generated/interlink/src/v1beta1/api.gen.ts index a8deadb3e..1a211ddc8 100644 --- a/packages_generated/interlink/src/v1beta1/api.gen.ts +++ b/packages_generated/interlink/src/v1beta1/api.gen.ts @@ -17,6 +17,7 @@ import { marshalAttachVpcRequest, marshalCreateLinkRequest, marshalCreateRoutingPolicyRequest, + marshalDetachRoutingPolicyRequest, marshalUpdateLinkRequest, marshalUpdateRoutingPolicyRequest, unmarshalDedicatedConnection, @@ -447,7 +448,9 @@ export class API extends ParentAPI { detachRoutingPolicy = (request: Readonly) => this.client.fetch( { - body: '{}', + body: JSON.stringify( + marshalDetachRoutingPolicyRequest(request, this.client.settings), + ), headers: jsonContentHeaders, method: 'POST', path: `/interlink/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/links/${validatePathParam('linkId', request.linkId)}/detach-routing-policy`, @@ -499,6 +502,7 @@ export class API extends ParentAPI { method: 'GET', path: `/interlink/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routing-policies`, urlParams: urlParams( + ['ipv6', request.ipv6], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], diff --git a/packages_generated/interlink/src/v1beta1/marshalling.gen.ts b/packages_generated/interlink/src/v1beta1/marshalling.gen.ts index fe88fbf1f..643d7e02a 100644 --- a/packages_generated/interlink/src/v1beta1/marshalling.gen.ts +++ b/packages_generated/interlink/src/v1beta1/marshalling.gen.ts @@ -14,6 +14,7 @@ import type { CreateLinkRequest, CreateRoutingPolicyRequest, DedicatedConnection, + DetachRoutingPolicyRequest, Link, ListDedicatedConnectionsResponse, ListLinksResponse, @@ -119,6 +120,8 @@ export const unmarshalLink = (data: unknown): Link => { projectId: data.project_id, region: data.region, routingPolicyId: data.routing_policy_id, + routingPolicyV4Id: data.routing_policy_v4_id, + routingPolicyV6Id: data.routing_policy_v6_id, scwBgpConfig: data.scw_bgp_config ? unmarshalBgpConfig(data.scw_bgp_config) : undefined, @@ -178,6 +181,7 @@ export const unmarshalRoutingPolicy = (data: unknown): RoutingPolicy => { return { createdAt: unmarshalDate(data.created_at), id: data.id, + isIpv6: data.is_ipv6, name: data.name, organizationId: data.organization_id, prefixFilterIn: data.prefix_filter_in, @@ -302,6 +306,7 @@ export const marshalCreateRoutingPolicyRequest = ( request: CreateRoutingPolicyRequest, defaults: DefaultValues, ): Record => ({ + is_ipv6: request.isIpv6, name: request.name, prefix_filter_in: request.prefixFilterIn, prefix_filter_out: request.prefixFilterOut, @@ -309,6 +314,13 @@ export const marshalCreateRoutingPolicyRequest = ( tags: request.tags, }) +export const marshalDetachRoutingPolicyRequest = ( + request: DetachRoutingPolicyRequest, + defaults: DefaultValues, +): Record => ({ + routing_policy_id: request.routingPolicyId, +}) + export const marshalUpdateLinkRequest = ( request: UpdateLinkRequest, defaults: DefaultValues, diff --git a/packages_generated/interlink/src/v1beta1/types.gen.ts b/packages_generated/interlink/src/v1beta1/types.gen.ts index 5add737df..9363b42de 100644 --- a/packages_generated/interlink/src/v1beta1/types.gen.ts +++ b/packages_generated/interlink/src/v1beta1/types.gen.ts @@ -197,7 +197,7 @@ export interface Link { */ vpcId?: string /** - * ID of the routing policy attached to the link. + * @deprecated Deprecated. Use routing_policy_v4_id or routing_policy_v6_id instead. */ routingPolicyId?: string /** @@ -236,6 +236,14 @@ export interface Link { * BGP configuration on peer's side (on-premises or other hosting provider). */ peerBgpConfig?: BgpConfig + /** + * ID of the routing policy IPv4 attached to the link. + */ + routingPolicyV4Id?: string + /** + * ID of the routing policy IPv6 attached to the link. + */ + routingPolicyV6Id?: string /** * Region of the link. */ @@ -345,6 +353,10 @@ export interface RoutingPolicy { * Last modification date of the routing policy. */ updatedAt?: Date + /** + * IP prefixes version of the routing policy. + */ + isIpv6: boolean /** * Region of the routing policy. */ @@ -449,6 +461,10 @@ export type CreateRoutingPolicyRequest = { * IP prefix filters to advertise to the peer (ranges of routes to advertise). */ prefixFilterOut?: string[] + /** + * IP prefixes version of the routing policy. + */ + isIpv6: boolean } export type DeleteLinkRequest = { @@ -482,6 +498,10 @@ export type DetachRoutingPolicyRequest = { * ID of the link to detach a routing policy from. */ linkId: string + /** + * ID of the routing policy to be detached. + */ + routingPolicyId: string } export type DetachVpcRequest = { @@ -837,6 +857,10 @@ export type ListRoutingPoliciesRequest = { * Tags to filter for. */ tags?: string[] + /** + * Filter for the routing policies based on IP prefixes version. + */ + ipv6?: boolean } export interface ListRoutingPoliciesResponse {