Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages_generated/s2s_vpn/src/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -33,7 +33,7 @@ import {
unmarshalRenewConnectionPskResponse,
unmarshalRoutingPolicy,
unmarshalVpnGateway,
} from './marshalling.gen'
} from './marshalling.gen.js'
import type {
Connection,
CreateConnectionRequest,
Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion packages_generated/s2s_vpn/src/v1alpha1/content.gen.ts
Original file line number Diff line number Diff line change
@@ -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[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import type {
VpnGateway,
VpnGatewayPrivateConfig,
VpnGatewayPublicConfig,
} from './types.gen'
} from './types.gen.js'

const unmarshalBgpSession = (data: unknown): BgpSession => {
if (!isJSONObject(data)) {
Expand All @@ -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
Expand Down Expand Up @@ -359,6 +360,8 @@ const marshalCreateConnectionRequestBgpConfig = (
request: CreateConnectionRequestBgpConfig,
defaults: DefaultValues,
): Record<string, unknown> => ({
peer_private_ip: request.peerPrivateIp,
private_ip: request.privateIp,
routing_policy_id: request.routingPolicyId,
})

Expand Down
3 changes: 3 additions & 0 deletions packages_generated/s2s_vpn/src/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export type VpnGatewayStatus =
export interface BgpSession {
routingPolicyId: string
privateIp: string
peerPrivateIp: string
}

export interface ConnectionCipher {
Expand All @@ -110,6 +111,8 @@ export interface VpnGatewayPublicConfig {

export interface CreateConnectionRequestBgpConfig {
routingPolicyId: string
privateIp?: string
peerPrivateIp?: string
}

export interface Connection {
Expand Down
Loading