diff --git a/packages_generated/s2s_vpn/src/v1alpha1/api.gen.ts b/packages_generated/s2s_vpn/src/v1alpha1/api.gen.ts index 5d73319d4..a7ecab187 100644 --- a/packages_generated/s2s_vpn/src/v1alpha1/api.gen.ts +++ b/packages_generated/s2s_vpn/src/v1alpha1/api.gen.ts @@ -10,7 +10,7 @@ import { validatePathParam, waitForResource, } from '@scaleway/sdk-client' -import { VPN_GATEWAY_TRANSIENT_STATUSES as VPN_GATEWAY_TRANSIENT_STATUSES_S2S_VPN } from './content.gen' +import { VPN_GATEWAY_TRANSIENT_STATUSES as VPN_GATEWAY_TRANSIENT_STATUSES_S2S_VPN } from './content.gen.js' import { marshalCreateConnectionRequest, marshalCreateCustomerGatewayRequest, @@ -33,7 +33,7 @@ import { unmarshalRenewConnectionPskResponse, unmarshalRoutingPolicy, unmarshalVpnGateway, -} from './marshalling.gen' +} from './marshalling.gen.js' import type { Connection, CreateConnectionRequest, @@ -72,7 +72,7 @@ import type { UpdateRoutingPolicyRequest, UpdateVpnGatewayRequest, VpnGateway, -} from './types.gen' +} from './types.gen.js' const jsonContentHeaders = { 'Content-Type': 'application/json; charset=utf-8', diff --git a/packages_generated/s2s_vpn/src/v1alpha1/content.gen.ts b/packages_generated/s2s_vpn/src/v1alpha1/content.gen.ts index 5b1ea7320..9064c9a00 100644 --- a/packages_generated/s2s_vpn/src/v1alpha1/content.gen.ts +++ b/packages_generated/s2s_vpn/src/v1alpha1/content.gen.ts @@ -1,6 +1,6 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. -import type { VpnGatewayStatus } from './types.gen' +import type { VpnGatewayStatus } from './types.gen.js' /** Lists transient statutes of the enum {@link VpnGatewayStatus}. */ export const VPN_GATEWAY_TRANSIENT_STATUSES: VpnGatewayStatus[] = [ diff --git a/packages_generated/s2s_vpn/src/v1alpha1/marshalling.gen.ts b/packages_generated/s2s_vpn/src/v1alpha1/marshalling.gen.ts index 60895cb49..d1485f020 100644 --- a/packages_generated/s2s_vpn/src/v1alpha1/marshalling.gen.ts +++ b/packages_generated/s2s_vpn/src/v1alpha1/marshalling.gen.ts @@ -37,7 +37,7 @@ import type { VpnGateway, VpnGatewayPrivateConfig, VpnGatewayPublicConfig, -} from './types.gen' +} from './types.gen.js' const unmarshalBgpSession = (data: unknown): BgpSession => { if (!isJSONObject(data)) { @@ -47,6 +47,7 @@ const unmarshalBgpSession = (data: unknown): BgpSession => { } return { + peerPrivateIp: data.peer_private_ip, privateIp: data.private_ip, routingPolicyId: data.routing_policy_id, } as BgpSession @@ -359,6 +360,8 @@ const marshalCreateConnectionRequestBgpConfig = ( request: CreateConnectionRequestBgpConfig, defaults: DefaultValues, ): Record => ({ + peer_private_ip: request.peerPrivateIp, + private_ip: request.privateIp, routing_policy_id: request.routingPolicyId, }) diff --git a/packages_generated/s2s_vpn/src/v1alpha1/types.gen.ts b/packages_generated/s2s_vpn/src/v1alpha1/types.gen.ts index 776af9286..15955e76a 100644 --- a/packages_generated/s2s_vpn/src/v1alpha1/types.gen.ts +++ b/packages_generated/s2s_vpn/src/v1alpha1/types.gen.ts @@ -93,6 +93,7 @@ export type VpnGatewayStatus = export interface BgpSession { routingPolicyId: string privateIp: string + peerPrivateIp: string } export interface ConnectionCipher { @@ -110,6 +111,8 @@ export interface VpnGatewayPublicConfig { export interface CreateConnectionRequestBgpConfig { routingPolicyId: string + privateIp?: string + peerPrivateIp?: string } export interface Connection {