@scaleway/sdk-s2s-vpn 2.10.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/license.md +3 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/index.gen.d.ts +5 -0
- package/dist/index.gen.js +2 -0
- package/dist/metadata.gen.d.ts +12 -0
- package/dist/metadata.gen.js +13 -0
- package/dist/v1alpha1/api.gen.d.ts +229 -0
- package/dist/v1alpha1/api.gen.js +172 -0
- package/dist/v1alpha1/content.gen.d.ts +3 -0
- package/dist/v1alpha1/content.gen.js +9 -0
- package/dist/v1alpha1/index.gen.d.ts +5 -0
- package/dist/v1alpha1/index.gen.js +37 -0
- package/dist/v1alpha1/marshalling.gen.d.ts +26 -0
- package/dist/v1alpha1/marshalling.gen.js +309 -0
- package/dist/v1alpha1/metadata.gen.d.ts +116 -0
- package/dist/v1alpha1/metadata.gen.js +128 -0
- package/dist/v1alpha1/types.gen.d.ts +1059 -0
- package/dist/v1alpha1/types.gen.js +0 -0
- package/dist/v1alpha1/validation-rules.gen.d.ts +125 -0
- package/dist/v1alpha1/validation-rules.gen.js +112 -0
- package/package.json +4 -4
- package/LICENSE +0 -191
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is automatically generated
|
|
3
|
+
* PLEASE DO NOT EDIT HERE
|
|
4
|
+
*/
|
|
5
|
+
export declare const pkgMetadata: {
|
|
6
|
+
readonly name: "@scaleway/sdk-s2s-vpn";
|
|
7
|
+
readonly namespace: "s2s-vpn";
|
|
8
|
+
readonly displayName: "S2S Vpn";
|
|
9
|
+
readonly versions: readonly ["v1alpha1"];
|
|
10
|
+
};
|
|
11
|
+
export type Metadata = typeof pkgMetadata;
|
|
12
|
+
export default pkgMetadata;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/metadata.gen.ts
|
|
2
|
+
/**
|
|
3
|
+
* This file is automatically generated
|
|
4
|
+
* PLEASE DO NOT EDIT HERE
|
|
5
|
+
*/
|
|
6
|
+
const pkgMetadata = {
|
|
7
|
+
name: "@scaleway/sdk-s2s-vpn",
|
|
8
|
+
namespace: "s2s-vpn",
|
|
9
|
+
displayName: "S2S Vpn",
|
|
10
|
+
versions: ["v1alpha1"]
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { pkgMetadata as default, pkgMetadata };
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
|
+
import type { WaitForOptions, ApiLocality } from '@scaleway/sdk-client';
|
|
3
|
+
import type { ChangeConnectionPskRequest, ChangeConnectionPskResponse, Connection, CreateConnectionRequest, CreateConnectionResponse, CreateCustomerGatewayRequest, CreateRoutingPolicyRequest, CreateVpnGatewayRequest, CustomerGateway, DeleteConnectionRequest, DeleteCustomerGatewayRequest, DeleteRoutingPolicyRequest, DeleteVpnGatewayRequest, DetachRoutingPolicyRequest, DisableRoutePropagationRequest, EnableRoutePropagationRequest, GetConnectionRequest, GetCustomerGatewayRequest, GetRoutingPolicyRequest, GetVpnGatewayRequest, ListConnectionsRequest, ListConnectionsResponse, ListCustomerGatewaysRequest, ListCustomerGatewaysResponse, ListRoutingPoliciesRequest, ListRoutingPoliciesResponse, ListVpnGatewayTypesRequest, ListVpnGatewayTypesResponse, ListVpnGatewaysRequest, ListVpnGatewaysResponse, RenewConnectionPskRequest, RenewConnectionPskResponse, RoutingPolicy, SetRoutingPolicyRequest, UpdateConnectionRequest, UpdateCustomerGatewayRequest, UpdateRoutingPolicyRequest, UpdateVpnGatewayRequest, VpnGateway } from './types.gen.js';
|
|
4
|
+
/**
|
|
5
|
+
* Site-to-Site VPN.
|
|
6
|
+
|
|
7
|
+
This API allows you to manage your Site-to-Site VPN.
|
|
8
|
+
*/
|
|
9
|
+
export declare class API extends ParentAPI {
|
|
10
|
+
/**
|
|
11
|
+
* Locality of this API.
|
|
12
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
13
|
+
*/
|
|
14
|
+
static readonly LOCALITY: ApiLocality;
|
|
15
|
+
protected pageOfListVpnGatewayTypes: (request?: Readonly<ListVpnGatewayTypesRequest>) => Promise<ListVpnGatewayTypesResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* List VPN gateway types. List the different VPN gateway commercial offer types available at Scaleway. The response is an array of objects describing the name and technical details of each available VPN gateway type.
|
|
18
|
+
*
|
|
19
|
+
* @param request - The request {@link ListVpnGatewayTypesRequest}
|
|
20
|
+
* @returns A Promise of ListVpnGatewayTypesResponse
|
|
21
|
+
*/
|
|
22
|
+
listVpnGatewayTypes: (request?: Readonly<ListVpnGatewayTypesRequest>) => Promise<ListVpnGatewayTypesResponse> & {
|
|
23
|
+
all: () => Promise<import("./types.gen.js").GatewayType[]>;
|
|
24
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").GatewayType[], void, void>;
|
|
25
|
+
};
|
|
26
|
+
protected pageOfListVpnGateways: (request?: Readonly<ListVpnGatewaysRequest>) => Promise<ListVpnGatewaysResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* List VPN gateways. List all your VPN gateways. A number of filters are available, including Project ID, name, tags and status.
|
|
29
|
+
*
|
|
30
|
+
* @param request - The request {@link ListVpnGatewaysRequest}
|
|
31
|
+
* @returns A Promise of ListVpnGatewaysResponse
|
|
32
|
+
*/
|
|
33
|
+
listVpnGateways: (request?: Readonly<ListVpnGatewaysRequest>) => Promise<ListVpnGatewaysResponse> & {
|
|
34
|
+
all: () => Promise<VpnGateway[]>;
|
|
35
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<VpnGateway[], void, void>;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Get a VPN gateway. Get a VPN gateway for the given VPN gateway ID.
|
|
39
|
+
*
|
|
40
|
+
* @param request - The request {@link GetVpnGatewayRequest}
|
|
41
|
+
* @returns A Promise of VpnGateway
|
|
42
|
+
*/
|
|
43
|
+
getVpnGateway: (request: Readonly<GetVpnGatewayRequest>) => Promise<VpnGateway>;
|
|
44
|
+
/**
|
|
45
|
+
* Waits for {@link VpnGateway} to be in a final state.
|
|
46
|
+
*
|
|
47
|
+
* @param request - The request {@link GetVpnGatewayRequest}
|
|
48
|
+
* @param options - The waiting options
|
|
49
|
+
* @returns A Promise of VpnGateway
|
|
50
|
+
*/
|
|
51
|
+
waitForVpnGateway: (request: Readonly<GetVpnGatewayRequest>, options?: Readonly<WaitForOptions<VpnGateway>>) => Promise<VpnGateway>;
|
|
52
|
+
/**
|
|
53
|
+
* Create VPN gateway.
|
|
54
|
+
*
|
|
55
|
+
* @param request - The request {@link CreateVpnGatewayRequest}
|
|
56
|
+
* @returns A Promise of VpnGateway
|
|
57
|
+
*/
|
|
58
|
+
createVpnGateway: (request: Readonly<CreateVpnGatewayRequest>) => Promise<VpnGateway>;
|
|
59
|
+
/**
|
|
60
|
+
* Update a VPN gateway. Update an existing VPN gateway, specified by its VPN gateway ID. Only its name and tags can be updated.
|
|
61
|
+
*
|
|
62
|
+
* @param request - The request {@link UpdateVpnGatewayRequest}
|
|
63
|
+
* @returns A Promise of VpnGateway
|
|
64
|
+
*/
|
|
65
|
+
updateVpnGateway: (request: Readonly<UpdateVpnGatewayRequest>) => Promise<VpnGateway>;
|
|
66
|
+
/**
|
|
67
|
+
* Delete a VPN gateway. Delete an existing VPN gateway, specified by its VPN gateway ID.
|
|
68
|
+
*
|
|
69
|
+
* @param request - The request {@link DeleteVpnGatewayRequest}
|
|
70
|
+
* @returns A Promise of VpnGateway
|
|
71
|
+
*/
|
|
72
|
+
deleteVpnGateway: (request: Readonly<DeleteVpnGatewayRequest>) => Promise<VpnGateway>;
|
|
73
|
+
protected pageOfListConnections: (request?: Readonly<ListConnectionsRequest>) => Promise<ListConnectionsResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* List connections. List all your connections. A number of filters are available, including Project ID, name, tags and status.
|
|
76
|
+
*
|
|
77
|
+
* @param request - The request {@link ListConnectionsRequest}
|
|
78
|
+
* @returns A Promise of ListConnectionsResponse
|
|
79
|
+
*/
|
|
80
|
+
listConnections: (request?: Readonly<ListConnectionsRequest>) => Promise<ListConnectionsResponse> & {
|
|
81
|
+
all: () => Promise<Connection[]>;
|
|
82
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<Connection[], void, void>;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Get a connection. Get a connection for the given connection ID. The response object includes information about the connection's various configuration details.
|
|
86
|
+
*
|
|
87
|
+
* @param request - The request {@link GetConnectionRequest}
|
|
88
|
+
* @returns A Promise of Connection
|
|
89
|
+
*/
|
|
90
|
+
getConnection: (request: Readonly<GetConnectionRequest>) => Promise<Connection>;
|
|
91
|
+
/**
|
|
92
|
+
* Create a connection.
|
|
93
|
+
*
|
|
94
|
+
* @param request - The request {@link CreateConnectionRequest}
|
|
95
|
+
* @returns A Promise of CreateConnectionResponse
|
|
96
|
+
*/
|
|
97
|
+
createConnection: (request: Readonly<CreateConnectionRequest>) => Promise<CreateConnectionResponse>;
|
|
98
|
+
/**
|
|
99
|
+
* Update a connection. Update an existing connection, specified by its connection ID.
|
|
100
|
+
*
|
|
101
|
+
* @param request - The request {@link UpdateConnectionRequest}
|
|
102
|
+
* @returns A Promise of Connection
|
|
103
|
+
*/
|
|
104
|
+
updateConnection: (request: Readonly<UpdateConnectionRequest>) => Promise<Connection>;
|
|
105
|
+
/**
|
|
106
|
+
* Delete a connection. Delete an existing connection, specified by its connection ID.
|
|
107
|
+
*
|
|
108
|
+
* @param request - The request {@link DeleteConnectionRequest}
|
|
109
|
+
*/
|
|
110
|
+
deleteConnection: (request: Readonly<DeleteConnectionRequest>) => Promise<void>;
|
|
111
|
+
/**
|
|
112
|
+
* Renew pre-shared key. Renew pre-shared key for a given connection.
|
|
113
|
+
*
|
|
114
|
+
* @param request - The request {@link RenewConnectionPskRequest}
|
|
115
|
+
* @returns A Promise of RenewConnectionPskResponse
|
|
116
|
+
*/
|
|
117
|
+
renewConnectionPsk: (request: Readonly<RenewConnectionPskRequest>) => Promise<RenewConnectionPskResponse>;
|
|
118
|
+
/**
|
|
119
|
+
* Change pre-shared key. Change pre-shared key for a given connection.
|
|
120
|
+
*
|
|
121
|
+
* @param request - The request {@link ChangeConnectionPskRequest}
|
|
122
|
+
* @returns A Promise of ChangeConnectionPskResponse
|
|
123
|
+
*/
|
|
124
|
+
changeConnectionPsk: (request: Readonly<ChangeConnectionPskRequest>) => Promise<ChangeConnectionPskResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* Set a new routing policy. Set a new routing policy on a connection, overriding the existing one if present, specified by its connection ID.
|
|
127
|
+
*
|
|
128
|
+
* @param request - The request {@link SetRoutingPolicyRequest}
|
|
129
|
+
* @returns A Promise of Connection
|
|
130
|
+
*/
|
|
131
|
+
setRoutingPolicy: (request: Readonly<SetRoutingPolicyRequest>) => Promise<Connection>;
|
|
132
|
+
/**
|
|
133
|
+
* Detach a routing policy. Detach an existing routing policy from a connection, specified by its connection ID.
|
|
134
|
+
*
|
|
135
|
+
* @param request - The request {@link DetachRoutingPolicyRequest}
|
|
136
|
+
* @returns A Promise of Connection
|
|
137
|
+
*/
|
|
138
|
+
detachRoutingPolicy: (request: Readonly<DetachRoutingPolicyRequest>) => Promise<Connection>;
|
|
139
|
+
/**
|
|
140
|
+
* Enable route propagation. Enable all allowed prefixes (defined in a routing policy) to be announced in the BGP session. This allows traffic to flow between the attached VPC and the on-premises infrastructure along the announced routes. Note that by default, even when route propagation is enabled, all routes are blocked. It is essential to attach a routing policy to define the ranges of routes to announce.
|
|
141
|
+
*
|
|
142
|
+
* @param request - The request {@link EnableRoutePropagationRequest}
|
|
143
|
+
* @returns A Promise of Connection
|
|
144
|
+
*/
|
|
145
|
+
enableRoutePropagation: (request: Readonly<EnableRoutePropagationRequest>) => Promise<Connection>;
|
|
146
|
+
/**
|
|
147
|
+
* Disable route propagation. Prevent any prefixes from being announced in the BGP session. Traffic will not be able to flow over the VPN Gateway until route propagation is re-enabled.
|
|
148
|
+
*
|
|
149
|
+
* @param request - The request {@link DisableRoutePropagationRequest}
|
|
150
|
+
* @returns A Promise of Connection
|
|
151
|
+
*/
|
|
152
|
+
disableRoutePropagation: (request: Readonly<DisableRoutePropagationRequest>) => Promise<Connection>;
|
|
153
|
+
protected pageOfListCustomerGateways: (request?: Readonly<ListCustomerGatewaysRequest>) => Promise<ListCustomerGatewaysResponse>;
|
|
154
|
+
/**
|
|
155
|
+
* List customer gateways. List all your customer gateways. A number of filters are available, including Project ID, name, and tags.
|
|
156
|
+
*
|
|
157
|
+
* @param request - The request {@link ListCustomerGatewaysRequest}
|
|
158
|
+
* @returns A Promise of ListCustomerGatewaysResponse
|
|
159
|
+
*/
|
|
160
|
+
listCustomerGateways: (request?: Readonly<ListCustomerGatewaysRequest>) => Promise<ListCustomerGatewaysResponse> & {
|
|
161
|
+
all: () => Promise<CustomerGateway[]>;
|
|
162
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<CustomerGateway[], void, void>;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Get a customer gateway. Get a customer gateway for the given customer gateway ID.
|
|
166
|
+
*
|
|
167
|
+
* @param request - The request {@link GetCustomerGatewayRequest}
|
|
168
|
+
* @returns A Promise of CustomerGateway
|
|
169
|
+
*/
|
|
170
|
+
getCustomerGateway: (request: Readonly<GetCustomerGatewayRequest>) => Promise<CustomerGateway>;
|
|
171
|
+
/**
|
|
172
|
+
* Create a customer gateway.
|
|
173
|
+
*
|
|
174
|
+
* @param request - The request {@link CreateCustomerGatewayRequest}
|
|
175
|
+
* @returns A Promise of CustomerGateway
|
|
176
|
+
*/
|
|
177
|
+
createCustomerGateway: (request: Readonly<CreateCustomerGatewayRequest>) => Promise<CustomerGateway>;
|
|
178
|
+
/**
|
|
179
|
+
* Update a customer gateway. Update an existing customer gateway, specified by its customer gateway ID. You can update its name, tags, public IPv4 & IPv6 address and AS Number.
|
|
180
|
+
*
|
|
181
|
+
* @param request - The request {@link UpdateCustomerGatewayRequest}
|
|
182
|
+
* @returns A Promise of CustomerGateway
|
|
183
|
+
*/
|
|
184
|
+
updateCustomerGateway: (request: Readonly<UpdateCustomerGatewayRequest>) => Promise<CustomerGateway>;
|
|
185
|
+
/**
|
|
186
|
+
* Delete a customer gateway. Delete an existing customer gateway, specified by its customer gateway ID.
|
|
187
|
+
*
|
|
188
|
+
* @param request - The request {@link DeleteCustomerGatewayRequest}
|
|
189
|
+
*/
|
|
190
|
+
deleteCustomerGateway: (request: Readonly<DeleteCustomerGatewayRequest>) => Promise<void>;
|
|
191
|
+
protected pageOfListRoutingPolicies: (request?: Readonly<ListRoutingPoliciesRequest>) => Promise<ListRoutingPoliciesResponse>;
|
|
192
|
+
/**
|
|
193
|
+
* List routing policies. List all routing policies in a given region. A routing policy can be attached to one or multiple connections (S2S VPN connections).
|
|
194
|
+
*
|
|
195
|
+
* @param request - The request {@link ListRoutingPoliciesRequest}
|
|
196
|
+
* @returns A Promise of ListRoutingPoliciesResponse
|
|
197
|
+
*/
|
|
198
|
+
listRoutingPolicies: (request?: Readonly<ListRoutingPoliciesRequest>) => Promise<ListRoutingPoliciesResponse> & {
|
|
199
|
+
all: () => Promise<RoutingPolicy[]>;
|
|
200
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<RoutingPolicy[], void, void>;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Get routing policy. Get a routing policy for the given routing policy ID. The response object gives information including the policy's name, tags and prefix filters.
|
|
204
|
+
*
|
|
205
|
+
* @param request - The request {@link GetRoutingPolicyRequest}
|
|
206
|
+
* @returns A Promise of RoutingPolicy
|
|
207
|
+
*/
|
|
208
|
+
getRoutingPolicy: (request: Readonly<GetRoutingPolicyRequest>) => Promise<RoutingPolicy>;
|
|
209
|
+
/**
|
|
210
|
+
* Create a routing policy. Create a routing policy. Routing policies allow you to set IP prefix filters to define the incoming route announcements to accept from the customer gateway, and the outgoing routes to announce to the customer gateway.
|
|
211
|
+
*
|
|
212
|
+
* @param request - The request {@link CreateRoutingPolicyRequest}
|
|
213
|
+
* @returns A Promise of RoutingPolicy
|
|
214
|
+
*/
|
|
215
|
+
createRoutingPolicy: (request: Readonly<CreateRoutingPolicyRequest>) => Promise<RoutingPolicy>;
|
|
216
|
+
/**
|
|
217
|
+
* Update a routing policy. Update an existing routing policy, specified by its routing policy ID. Its name, tags and incoming/outgoing prefix filters can be updated.
|
|
218
|
+
*
|
|
219
|
+
* @param request - The request {@link UpdateRoutingPolicyRequest}
|
|
220
|
+
* @returns A Promise of RoutingPolicy
|
|
221
|
+
*/
|
|
222
|
+
updateRoutingPolicy: (request: Readonly<UpdateRoutingPolicyRequest>) => Promise<RoutingPolicy>;
|
|
223
|
+
/**
|
|
224
|
+
* Delete a routing policy. Delete an existing routing policy, specified by its routing policy ID.
|
|
225
|
+
*
|
|
226
|
+
* @param request - The request {@link DeleteRoutingPolicyRequest}
|
|
227
|
+
*/
|
|
228
|
+
deleteRoutingPolicy: (request: Readonly<DeleteRoutingPolicyRequest>) => Promise<void>;
|
|
229
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { VPN_GATEWAY_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
|
+
import { marshalChangeConnectionPskRequest, marshalCreateConnectionRequest, marshalCreateCustomerGatewayRequest, marshalCreateRoutingPolicyRequest, marshalCreateVpnGatewayRequest, marshalDetachRoutingPolicyRequest, marshalRenewConnectionPskRequest, marshalSetRoutingPolicyRequest, marshalUpdateConnectionRequest, marshalUpdateCustomerGatewayRequest, marshalUpdateRoutingPolicyRequest, marshalUpdateVpnGatewayRequest, unmarshalChangeConnectionPskResponse, unmarshalConnection, unmarshalCreateConnectionResponse, unmarshalCustomerGateway, unmarshalListConnectionsResponse, unmarshalListCustomerGatewaysResponse, unmarshalListRoutingPoliciesResponse, unmarshalListVpnGatewayTypesResponse, unmarshalListVpnGatewaysResponse, unmarshalRenewConnectionPskResponse, unmarshalRoutingPolicy, unmarshalVpnGateway } from "./marshalling.gen.js";
|
|
3
|
+
import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
|
+
//#region src/v1alpha1/api.gen.ts
|
|
5
|
+
const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
6
|
+
/**
|
|
7
|
+
* Site-to-Site VPN.
|
|
8
|
+
|
|
9
|
+
This API allows you to manage your Site-to-Site VPN.
|
|
10
|
+
*/
|
|
11
|
+
var API = class extends API$1 {
|
|
12
|
+
constructor(..._args) {
|
|
13
|
+
super(..._args);
|
|
14
|
+
this.pageOfListVpnGatewayTypes = (request = {}) => this.client.fetch({
|
|
15
|
+
method: "GET",
|
|
16
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpn-gateway-types`,
|
|
17
|
+
urlParams: urlParams(["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
18
|
+
}, unmarshalListVpnGatewayTypesResponse);
|
|
19
|
+
this.listVpnGatewayTypes = (request = {}) => enrichForPagination("gatewayTypes", this.pageOfListVpnGatewayTypes, request);
|
|
20
|
+
this.pageOfListVpnGateways = (request = {}) => this.client.fetch({
|
|
21
|
+
method: "GET",
|
|
22
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpn-gateways`,
|
|
23
|
+
urlParams: urlParams(["gateway_types", request.gatewayTypes], ["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["private_network_ids", request.privateNetworkIds], ["project_id", request.projectId], ["statuses", request.statuses], ["tags", request.tags])
|
|
24
|
+
}, unmarshalListVpnGatewaysResponse);
|
|
25
|
+
this.listVpnGateways = (request = {}) => enrichForPagination("gateways", this.pageOfListVpnGateways, request);
|
|
26
|
+
this.getVpnGateway = (request) => this.client.fetch({
|
|
27
|
+
method: "GET",
|
|
28
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpn-gateways/${validatePathParam("gatewayId", request.gatewayId)}`
|
|
29
|
+
}, unmarshalVpnGateway);
|
|
30
|
+
this.waitForVpnGateway = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!VPN_GATEWAY_TRANSIENT_STATUSES.includes(res.status))), this.getVpnGateway, request, options);
|
|
31
|
+
this.createVpnGateway = (request) => this.client.fetch({
|
|
32
|
+
body: JSON.stringify(marshalCreateVpnGatewayRequest(request, this.client.settings)),
|
|
33
|
+
headers: jsonContentHeaders,
|
|
34
|
+
method: "POST",
|
|
35
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpn-gateways`
|
|
36
|
+
}, unmarshalVpnGateway);
|
|
37
|
+
this.updateVpnGateway = (request) => this.client.fetch({
|
|
38
|
+
body: JSON.stringify(marshalUpdateVpnGatewayRequest(request, this.client.settings)),
|
|
39
|
+
headers: jsonContentHeaders,
|
|
40
|
+
method: "PATCH",
|
|
41
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpn-gateways/${validatePathParam("gatewayId", request.gatewayId)}`
|
|
42
|
+
}, unmarshalVpnGateway);
|
|
43
|
+
this.deleteVpnGateway = (request) => this.client.fetch({
|
|
44
|
+
method: "DELETE",
|
|
45
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpn-gateways/${validatePathParam("gatewayId", request.gatewayId)}`
|
|
46
|
+
}, unmarshalVpnGateway);
|
|
47
|
+
this.pageOfListConnections = (request = {}) => this.client.fetch({
|
|
48
|
+
method: "GET",
|
|
49
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections`,
|
|
50
|
+
urlParams: urlParams(["customer_gateway_ids", request.customerGatewayIds], ["is_ipv6", request.isIpv6], ["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["route_propagation_enabled", request.routePropagationEnabled], ["routing_policy_ids", request.routingPolicyIds], ["statuses", request.statuses], ["tags", request.tags], ["vpn_gateway_ids", request.vpnGatewayIds])
|
|
51
|
+
}, unmarshalListConnectionsResponse);
|
|
52
|
+
this.listConnections = (request = {}) => enrichForPagination("connections", this.pageOfListConnections, request);
|
|
53
|
+
this.getConnection = (request) => this.client.fetch({
|
|
54
|
+
method: "GET",
|
|
55
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}`
|
|
56
|
+
}, unmarshalConnection);
|
|
57
|
+
this.createConnection = (request) => this.client.fetch({
|
|
58
|
+
body: JSON.stringify(marshalCreateConnectionRequest(request, this.client.settings)),
|
|
59
|
+
headers: jsonContentHeaders,
|
|
60
|
+
method: "POST",
|
|
61
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections`
|
|
62
|
+
}, unmarshalCreateConnectionResponse);
|
|
63
|
+
this.updateConnection = (request) => this.client.fetch({
|
|
64
|
+
body: JSON.stringify(marshalUpdateConnectionRequest(request, this.client.settings)),
|
|
65
|
+
headers: jsonContentHeaders,
|
|
66
|
+
method: "PATCH",
|
|
67
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}`
|
|
68
|
+
}, unmarshalConnection);
|
|
69
|
+
this.deleteConnection = (request) => this.client.fetch({
|
|
70
|
+
method: "DELETE",
|
|
71
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}`
|
|
72
|
+
});
|
|
73
|
+
this.renewConnectionPsk = (request) => this.client.fetch({
|
|
74
|
+
body: JSON.stringify(marshalRenewConnectionPskRequest(request, this.client.settings)),
|
|
75
|
+
headers: jsonContentHeaders,
|
|
76
|
+
method: "POST",
|
|
77
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}/renew-psk`
|
|
78
|
+
}, unmarshalRenewConnectionPskResponse);
|
|
79
|
+
this.changeConnectionPsk = (request) => this.client.fetch({
|
|
80
|
+
body: JSON.stringify(marshalChangeConnectionPskRequest(request, this.client.settings)),
|
|
81
|
+
headers: jsonContentHeaders,
|
|
82
|
+
method: "POST",
|
|
83
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}/change-psk`
|
|
84
|
+
}, unmarshalChangeConnectionPskResponse);
|
|
85
|
+
this.setRoutingPolicy = (request) => this.client.fetch({
|
|
86
|
+
body: JSON.stringify(marshalSetRoutingPolicyRequest(request, this.client.settings)),
|
|
87
|
+
headers: jsonContentHeaders,
|
|
88
|
+
method: "POST",
|
|
89
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}/set-routing-policy`
|
|
90
|
+
}, unmarshalConnection);
|
|
91
|
+
this.detachRoutingPolicy = (request) => this.client.fetch({
|
|
92
|
+
body: JSON.stringify(marshalDetachRoutingPolicyRequest(request, this.client.settings)),
|
|
93
|
+
headers: jsonContentHeaders,
|
|
94
|
+
method: "POST",
|
|
95
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}/detach-routing-policy`
|
|
96
|
+
}, unmarshalConnection);
|
|
97
|
+
this.enableRoutePropagation = (request) => this.client.fetch({
|
|
98
|
+
body: "{}",
|
|
99
|
+
headers: jsonContentHeaders,
|
|
100
|
+
method: "POST",
|
|
101
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}/enable-route-propagation`
|
|
102
|
+
}, unmarshalConnection);
|
|
103
|
+
this.disableRoutePropagation = (request) => this.client.fetch({
|
|
104
|
+
body: "{}",
|
|
105
|
+
headers: jsonContentHeaders,
|
|
106
|
+
method: "POST",
|
|
107
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}/disable-route-propagation`
|
|
108
|
+
}, unmarshalConnection);
|
|
109
|
+
this.pageOfListCustomerGateways = (request = {}) => this.client.fetch({
|
|
110
|
+
method: "GET",
|
|
111
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/customer-gateways`,
|
|
112
|
+
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags])
|
|
113
|
+
}, unmarshalListCustomerGatewaysResponse);
|
|
114
|
+
this.listCustomerGateways = (request = {}) => enrichForPagination("gateways", this.pageOfListCustomerGateways, request);
|
|
115
|
+
this.getCustomerGateway = (request) => this.client.fetch({
|
|
116
|
+
method: "GET",
|
|
117
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/customer-gateways/${validatePathParam("gatewayId", request.gatewayId)}`
|
|
118
|
+
}, unmarshalCustomerGateway);
|
|
119
|
+
this.createCustomerGateway = (request) => this.client.fetch({
|
|
120
|
+
body: JSON.stringify(marshalCreateCustomerGatewayRequest(request, this.client.settings)),
|
|
121
|
+
headers: jsonContentHeaders,
|
|
122
|
+
method: "POST",
|
|
123
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/customer-gateways`
|
|
124
|
+
}, unmarshalCustomerGateway);
|
|
125
|
+
this.updateCustomerGateway = (request) => this.client.fetch({
|
|
126
|
+
body: JSON.stringify(marshalUpdateCustomerGatewayRequest(request, this.client.settings)),
|
|
127
|
+
headers: jsonContentHeaders,
|
|
128
|
+
method: "PATCH",
|
|
129
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/customer-gateways/${validatePathParam("gatewayId", request.gatewayId)}`
|
|
130
|
+
}, unmarshalCustomerGateway);
|
|
131
|
+
this.deleteCustomerGateway = (request) => this.client.fetch({
|
|
132
|
+
method: "DELETE",
|
|
133
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/customer-gateways/${validatePathParam("gatewayId", request.gatewayId)}`
|
|
134
|
+
});
|
|
135
|
+
this.pageOfListRoutingPolicies = (request = {}) => this.client.fetch({
|
|
136
|
+
method: "GET",
|
|
137
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routing-policies`,
|
|
138
|
+
urlParams: urlParams(["ipv6", request.ipv6], ["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags])
|
|
139
|
+
}, unmarshalListRoutingPoliciesResponse);
|
|
140
|
+
this.listRoutingPolicies = (request = {}) => enrichForPagination("routingPolicies", this.pageOfListRoutingPolicies, request);
|
|
141
|
+
this.getRoutingPolicy = (request) => this.client.fetch({
|
|
142
|
+
method: "GET",
|
|
143
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routing-policies/${validatePathParam("routingPolicyId", request.routingPolicyId)}`
|
|
144
|
+
}, unmarshalRoutingPolicy);
|
|
145
|
+
this.createRoutingPolicy = (request) => this.client.fetch({
|
|
146
|
+
body: JSON.stringify(marshalCreateRoutingPolicyRequest(request, this.client.settings)),
|
|
147
|
+
headers: jsonContentHeaders,
|
|
148
|
+
method: "POST",
|
|
149
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routing-policies`
|
|
150
|
+
}, unmarshalRoutingPolicy);
|
|
151
|
+
this.updateRoutingPolicy = (request) => this.client.fetch({
|
|
152
|
+
body: JSON.stringify(marshalUpdateRoutingPolicyRequest(request, this.client.settings)),
|
|
153
|
+
headers: jsonContentHeaders,
|
|
154
|
+
method: "PATCH",
|
|
155
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routing-policies/${validatePathParam("routingPolicyId", request.routingPolicyId)}`
|
|
156
|
+
}, unmarshalRoutingPolicy);
|
|
157
|
+
this.deleteRoutingPolicy = (request) => this.client.fetch({
|
|
158
|
+
method: "DELETE",
|
|
159
|
+
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routing-policies/${validatePathParam("routingPolicyId", request.routingPolicyId)}`
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
static {
|
|
163
|
+
this.LOCALITY = toApiLocality({ regions: [
|
|
164
|
+
"fr-par",
|
|
165
|
+
"it-mil",
|
|
166
|
+
"nl-ams",
|
|
167
|
+
"pl-waw"
|
|
168
|
+
] });
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
//#endregion
|
|
172
|
+
export { API };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/v1alpha1/content.gen.ts
|
|
2
|
+
/** Lists transient statutes of the enum {@link VpnGatewayStatus}. */
|
|
3
|
+
const VPN_GATEWAY_TRANSIENT_STATUSES = [
|
|
4
|
+
"configuring",
|
|
5
|
+
"provisioning",
|
|
6
|
+
"deprovisioning"
|
|
7
|
+
];
|
|
8
|
+
//#endregion
|
|
9
|
+
export { VPN_GATEWAY_TRANSIENT_STATUSES };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { API, } from './api.gen.js';
|
|
2
|
+
export * from './content.gen.js';
|
|
3
|
+
export * from './marshalling.gen.js';
|
|
4
|
+
export type { BgpSession, BgpSessionStatus, ChangeConnectionPskRequest, ChangeConnectionPskRequestSecret, ChangeConnectionPskResponse, Connection, ConnectionCipher, ConnectionDhGroup, ConnectionEncryption, ConnectionInitiationPolicy, ConnectionIntegrity, ConnectionStatus, CreateConnectionRequest, CreateConnectionRequestBgpConfig, CreateConnectionRequestInitiationPolicy, CreateConnectionRequestSecret, CreateConnectionResponse, CreateCustomerGatewayRequest, CreateRoutingPolicyRequest, CreateVpnGatewayRequest, CreateVpnGatewayRequestDualIpTunnel, CreateVpnGatewayRequestPublicConfig, CreateVpnGatewayRequestPublicTunnelConfig, CreateVpnGatewayRequestSingleIpTunnel, CustomerGateway, DeleteConnectionRequest, DeleteCustomerGatewayRequest, DeleteRoutingPolicyRequest, DeleteVpnGatewayRequest, DetachRoutingPolicyRequest, DisableRoutePropagationRequest, EnableRoutePropagationRequest, GatewayType, GetConnectionRequest, GetCustomerGatewayRequest, GetRoutingPolicyRequest, GetVpnGatewayRequest, ListConnectionsRequest, ListConnectionsRequestOrderBy, ListConnectionsResponse, ListCustomerGatewaysRequest, ListCustomerGatewaysRequestOrderBy, ListCustomerGatewaysResponse, ListRoutingPoliciesRequest, ListRoutingPoliciesRequestOrderBy, ListRoutingPoliciesResponse, ListVpnGatewayTypesRequest, ListVpnGatewayTypesResponse, ListVpnGatewaysRequest, ListVpnGatewaysRequestOrderBy, ListVpnGatewaysResponse, RenewConnectionPskRequest, RenewConnectionPskResponse, RoutingPolicy, SetRoutingPolicyRequest, TunnelStatus, UpdateConnectionRequest, UpdateCustomerGatewayRequest, UpdateRoutingPolicyRequest, UpdateVpnGatewayRequest, VpnGateway, VpnGatewayPrivateConfig, VpnGatewayPublicConfig, VpnGatewayStatus, } from './types.gen.js';
|
|
5
|
+
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { VPN_GATEWAY_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
+
import { marshalChangeConnectionPskRequest, marshalCreateConnectionRequest, marshalCreateCustomerGatewayRequest, marshalCreateRoutingPolicyRequest, marshalCreateVpnGatewayRequest, marshalDetachRoutingPolicyRequest, marshalRenewConnectionPskRequest, marshalSetRoutingPolicyRequest, marshalUpdateConnectionRequest, marshalUpdateCustomerGatewayRequest, marshalUpdateRoutingPolicyRequest, marshalUpdateVpnGatewayRequest, unmarshalChangeConnectionPskResponse, unmarshalConnection, unmarshalCreateConnectionResponse, unmarshalCustomerGateway, unmarshalListConnectionsResponse, unmarshalListCustomerGatewaysResponse, unmarshalListRoutingPoliciesResponse, unmarshalListVpnGatewayTypesResponse, unmarshalListVpnGatewaysResponse, unmarshalRenewConnectionPskResponse, unmarshalRoutingPolicy, unmarshalVpnGateway } from "./marshalling.gen.js";
|
|
4
|
+
import { API } from "./api.gen.js";
|
|
5
|
+
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
|
+
//#region src/v1alpha1/index.gen.ts
|
|
7
|
+
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
+
API: () => API,
|
|
9
|
+
VPN_GATEWAY_TRANSIENT_STATUSES: () => VPN_GATEWAY_TRANSIENT_STATUSES,
|
|
10
|
+
ValidationRules: () => validation_rules_gen_exports,
|
|
11
|
+
marshalChangeConnectionPskRequest: () => marshalChangeConnectionPskRequest,
|
|
12
|
+
marshalCreateConnectionRequest: () => marshalCreateConnectionRequest,
|
|
13
|
+
marshalCreateCustomerGatewayRequest: () => marshalCreateCustomerGatewayRequest,
|
|
14
|
+
marshalCreateRoutingPolicyRequest: () => marshalCreateRoutingPolicyRequest,
|
|
15
|
+
marshalCreateVpnGatewayRequest: () => marshalCreateVpnGatewayRequest,
|
|
16
|
+
marshalDetachRoutingPolicyRequest: () => marshalDetachRoutingPolicyRequest,
|
|
17
|
+
marshalRenewConnectionPskRequest: () => marshalRenewConnectionPskRequest,
|
|
18
|
+
marshalSetRoutingPolicyRequest: () => marshalSetRoutingPolicyRequest,
|
|
19
|
+
marshalUpdateConnectionRequest: () => marshalUpdateConnectionRequest,
|
|
20
|
+
marshalUpdateCustomerGatewayRequest: () => marshalUpdateCustomerGatewayRequest,
|
|
21
|
+
marshalUpdateRoutingPolicyRequest: () => marshalUpdateRoutingPolicyRequest,
|
|
22
|
+
marshalUpdateVpnGatewayRequest: () => marshalUpdateVpnGatewayRequest,
|
|
23
|
+
unmarshalChangeConnectionPskResponse: () => unmarshalChangeConnectionPskResponse,
|
|
24
|
+
unmarshalConnection: () => unmarshalConnection,
|
|
25
|
+
unmarshalCreateConnectionResponse: () => unmarshalCreateConnectionResponse,
|
|
26
|
+
unmarshalCustomerGateway: () => unmarshalCustomerGateway,
|
|
27
|
+
unmarshalListConnectionsResponse: () => unmarshalListConnectionsResponse,
|
|
28
|
+
unmarshalListCustomerGatewaysResponse: () => unmarshalListCustomerGatewaysResponse,
|
|
29
|
+
unmarshalListRoutingPoliciesResponse: () => unmarshalListRoutingPoliciesResponse,
|
|
30
|
+
unmarshalListVpnGatewayTypesResponse: () => unmarshalListVpnGatewayTypesResponse,
|
|
31
|
+
unmarshalListVpnGatewaysResponse: () => unmarshalListVpnGatewaysResponse,
|
|
32
|
+
unmarshalRenewConnectionPskResponse: () => unmarshalRenewConnectionPskResponse,
|
|
33
|
+
unmarshalRoutingPolicy: () => unmarshalRoutingPolicy,
|
|
34
|
+
unmarshalVpnGateway: () => unmarshalVpnGateway
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { API, VPN_GATEWAY_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalChangeConnectionPskRequest, marshalCreateConnectionRequest, marshalCreateCustomerGatewayRequest, marshalCreateRoutingPolicyRequest, marshalCreateVpnGatewayRequest, marshalDetachRoutingPolicyRequest, marshalRenewConnectionPskRequest, marshalSetRoutingPolicyRequest, marshalUpdateConnectionRequest, marshalUpdateCustomerGatewayRequest, marshalUpdateRoutingPolicyRequest, marshalUpdateVpnGatewayRequest, unmarshalChangeConnectionPskResponse, unmarshalConnection, unmarshalCreateConnectionResponse, unmarshalCustomerGateway, unmarshalListConnectionsResponse, unmarshalListCustomerGatewaysResponse, unmarshalListRoutingPoliciesResponse, unmarshalListVpnGatewayTypesResponse, unmarshalListVpnGatewaysResponse, unmarshalRenewConnectionPskResponse, unmarshalRoutingPolicy, unmarshalVpnGateway };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
+
import type { Connection, CustomerGateway, RoutingPolicy, VpnGateway, ChangeConnectionPskResponse, CreateConnectionResponse, ListConnectionsResponse, ListCustomerGatewaysResponse, ListRoutingPoliciesResponse, ListVpnGatewayTypesResponse, ListVpnGatewaysResponse, RenewConnectionPskResponse, ChangeConnectionPskRequest, CreateConnectionRequest, CreateCustomerGatewayRequest, CreateRoutingPolicyRequest, CreateVpnGatewayRequest, DetachRoutingPolicyRequest, RenewConnectionPskRequest, SetRoutingPolicyRequest, UpdateConnectionRequest, UpdateCustomerGatewayRequest, UpdateRoutingPolicyRequest, UpdateVpnGatewayRequest } from './types.gen.js';
|
|
3
|
+
export declare const unmarshalConnection: (data: unknown) => Connection;
|
|
4
|
+
export declare const unmarshalCustomerGateway: (data: unknown) => CustomerGateway;
|
|
5
|
+
export declare const unmarshalRoutingPolicy: (data: unknown) => RoutingPolicy;
|
|
6
|
+
export declare const unmarshalVpnGateway: (data: unknown) => VpnGateway;
|
|
7
|
+
export declare const unmarshalChangeConnectionPskResponse: (data: unknown) => ChangeConnectionPskResponse;
|
|
8
|
+
export declare const unmarshalCreateConnectionResponse: (data: unknown) => CreateConnectionResponse;
|
|
9
|
+
export declare const unmarshalListConnectionsResponse: (data: unknown) => ListConnectionsResponse;
|
|
10
|
+
export declare const unmarshalListCustomerGatewaysResponse: (data: unknown) => ListCustomerGatewaysResponse;
|
|
11
|
+
export declare const unmarshalListRoutingPoliciesResponse: (data: unknown) => ListRoutingPoliciesResponse;
|
|
12
|
+
export declare const unmarshalListVpnGatewayTypesResponse: (data: unknown) => ListVpnGatewayTypesResponse;
|
|
13
|
+
export declare const unmarshalListVpnGatewaysResponse: (data: unknown) => ListVpnGatewaysResponse;
|
|
14
|
+
export declare const unmarshalRenewConnectionPskResponse: (data: unknown) => RenewConnectionPskResponse;
|
|
15
|
+
export declare const marshalChangeConnectionPskRequest: (request: ChangeConnectionPskRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
16
|
+
export declare const marshalCreateConnectionRequest: (request: CreateConnectionRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
17
|
+
export declare const marshalCreateCustomerGatewayRequest: (request: CreateCustomerGatewayRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
18
|
+
export declare const marshalCreateRoutingPolicyRequest: (request: CreateRoutingPolicyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
19
|
+
export declare const marshalCreateVpnGatewayRequest: (request: CreateVpnGatewayRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
20
|
+
export declare const marshalDetachRoutingPolicyRequest: (request: DetachRoutingPolicyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
21
|
+
export declare const marshalRenewConnectionPskRequest: (request: RenewConnectionPskRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
22
|
+
export declare const marshalSetRoutingPolicyRequest: (request: SetRoutingPolicyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
23
|
+
export declare const marshalUpdateConnectionRequest: (request: UpdateConnectionRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
24
|
+
export declare const marshalUpdateCustomerGatewayRequest: (request: UpdateCustomerGatewayRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
25
|
+
export declare const marshalUpdateRoutingPolicyRequest: (request: UpdateRoutingPolicyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
26
|
+
export declare const marshalUpdateVpnGatewayRequest: (request: UpdateVpnGatewayRequest, defaults: DefaultValues) => Record<string, unknown>;
|