@scaleway/sdk-interlink 2.2.0 → 2.3.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.
@@ -1,6 +1,5 @@
1
+ /** Lists transient statutes of the enum {@link DedicatedConnectionStatus}. */
1
2
  const DEDICATED_CONNECTION_TRANSIENT_STATUSES = ["configuring"];
3
+ /** Lists transient statutes of the enum {@link LinkStatus}. */
2
4
  const LINK_TRANSIENT_STATUSES = ["configuring"];
3
- export {
4
- DEDICATED_CONNECTION_TRANSIENT_STATUSES,
5
- LINK_TRANSIENT_STATUSES
6
- };
5
+ export { DEDICATED_CONNECTION_TRANSIENT_STATUSES, LINK_TRANSIENT_STATUSES };
@@ -1,4 +1,4 @@
1
- export { API } from './api.gen.js';
1
+ export { API, } from './api.gen.js';
2
2
  export * from './content.gen.js';
3
3
  export * from './marshalling.gen.js';
4
4
  export type { AttachRoutingPolicyRequest, AttachVpcRequest, BgpConfig, BgpStatus, CreateLinkRequest, CreateRoutingPolicyRequest, DedicatedConnection, DedicatedConnectionStatus, DeleteLinkRequest, DeleteRoutingPolicyRequest, DetachRoutingPolicyRequest, DetachVpcRequest, DisableRoutePropagationRequest, EnableRoutePropagationRequest, GetDedicatedConnectionRequest, GetLinkRequest, GetPartnerRequest, GetPopRequest, GetRoutingPolicyRequest, Link, LinkKind, LinkStatus, ListDedicatedConnectionsRequest, ListDedicatedConnectionsRequestOrderBy, ListDedicatedConnectionsResponse, ListLinksRequest, ListLinksRequestOrderBy, ListLinksResponse, ListPartnersRequest, ListPartnersRequestOrderBy, ListPartnersResponse, ListPopsRequest, ListPopsRequestOrderBy, ListPopsResponse, ListRoutingPoliciesRequest, ListRoutingPoliciesRequestOrderBy, ListRoutingPoliciesResponse, Partner, PartnerHost, Pop, Range, RoutingPolicy, SelfHost, SetRoutingPolicyRequest, UpdateLinkRequest, UpdateRoutingPolicyRequest, } from './types.gen.js';
@@ -1,28 +1,30 @@
1
- import { API } from "./api.gen.js";
1
+ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { DEDICATED_CONNECTION_TRANSIENT_STATUSES, LINK_TRANSIENT_STATUSES } from "./content.gen.js";
3
3
  import { marshalAttachRoutingPolicyRequest, marshalAttachVpcRequest, marshalCreateLinkRequest, marshalCreateRoutingPolicyRequest, marshalDetachRoutingPolicyRequest, marshalSetRoutingPolicyRequest, marshalUpdateLinkRequest, marshalUpdateRoutingPolicyRequest, unmarshalDedicatedConnection, unmarshalLink, unmarshalListDedicatedConnectionsResponse, unmarshalListLinksResponse, unmarshalListPartnersResponse, unmarshalListPopsResponse, unmarshalListRoutingPoliciesResponse, unmarshalPartner, unmarshalPop, unmarshalRoutingPolicy } from "./marshalling.gen.js";
4
- import * as validationRules_gen from "./validation-rules.gen.js";
5
- export {
6
- API,
7
- DEDICATED_CONNECTION_TRANSIENT_STATUSES,
8
- LINK_TRANSIENT_STATUSES,
9
- validationRules_gen as ValidationRules,
10
- marshalAttachRoutingPolicyRequest,
11
- marshalAttachVpcRequest,
12
- marshalCreateLinkRequest,
13
- marshalCreateRoutingPolicyRequest,
14
- marshalDetachRoutingPolicyRequest,
15
- marshalSetRoutingPolicyRequest,
16
- marshalUpdateLinkRequest,
17
- marshalUpdateRoutingPolicyRequest,
18
- unmarshalDedicatedConnection,
19
- unmarshalLink,
20
- unmarshalListDedicatedConnectionsResponse,
21
- unmarshalListLinksResponse,
22
- unmarshalListPartnersResponse,
23
- unmarshalListPopsResponse,
24
- unmarshalListRoutingPoliciesResponse,
25
- unmarshalPartner,
26
- unmarshalPop,
27
- unmarshalRoutingPolicy
28
- };
4
+ import { API } from "./api.gen.js";
5
+ import { validation_rules_gen_exports } from "./validation-rules.gen.js";
6
+ var index_gen_exports = /* @__PURE__ */ __exportAll({
7
+ API: () => API,
8
+ DEDICATED_CONNECTION_TRANSIENT_STATUSES: () => DEDICATED_CONNECTION_TRANSIENT_STATUSES,
9
+ LINK_TRANSIENT_STATUSES: () => LINK_TRANSIENT_STATUSES,
10
+ ValidationRules: () => validation_rules_gen_exports,
11
+ marshalAttachRoutingPolicyRequest: () => marshalAttachRoutingPolicyRequest,
12
+ marshalAttachVpcRequest: () => marshalAttachVpcRequest,
13
+ marshalCreateLinkRequest: () => marshalCreateLinkRequest,
14
+ marshalCreateRoutingPolicyRequest: () => marshalCreateRoutingPolicyRequest,
15
+ marshalDetachRoutingPolicyRequest: () => marshalDetachRoutingPolicyRequest,
16
+ marshalSetRoutingPolicyRequest: () => marshalSetRoutingPolicyRequest,
17
+ marshalUpdateLinkRequest: () => marshalUpdateLinkRequest,
18
+ marshalUpdateRoutingPolicyRequest: () => marshalUpdateRoutingPolicyRequest,
19
+ unmarshalDedicatedConnection: () => unmarshalDedicatedConnection,
20
+ unmarshalLink: () => unmarshalLink,
21
+ unmarshalListDedicatedConnectionsResponse: () => unmarshalListDedicatedConnectionsResponse,
22
+ unmarshalListLinksResponse: () => unmarshalListLinksResponse,
23
+ unmarshalListPartnersResponse: () => unmarshalListPartnersResponse,
24
+ unmarshalListPopsResponse: () => unmarshalListPopsResponse,
25
+ unmarshalListRoutingPoliciesResponse: () => unmarshalListRoutingPoliciesResponse,
26
+ unmarshalPartner: () => unmarshalPartner,
27
+ unmarshalPop: () => unmarshalPop,
28
+ unmarshalRoutingPolicy: () => unmarshalRoutingPolicy
29
+ });
30
+ export { index_gen_exports };
@@ -1,282 +1,194 @@
1
- import { resolveOneOf, isJSONObject, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
2
- const unmarshalRange = (data) => {
3
- if (!isJSONObject(data)) {
4
- throw new TypeError(
5
- `Unmarshalling the type 'Range' failed as data isn't a dictionary.`
6
- );
7
- }
8
- return {
9
- end: data.end,
10
- start: data.start
11
- };
1
+ import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
2
+ var unmarshalRange = (data) => {
3
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Range' failed as data isn't a dictionary.`);
4
+ return {
5
+ end: data.end,
6
+ start: data.start
7
+ };
12
8
  };
13
9
  const unmarshalDedicatedConnection = (data) => {
14
- if (!isJSONObject(data)) {
15
- throw new TypeError(
16
- `Unmarshalling the type 'DedicatedConnection' failed as data isn't a dictionary.`
17
- );
18
- }
19
- return {
20
- availableLinkBandwidths: data.available_link_bandwidths,
21
- bandwidthMbps: data.bandwidth_mbps,
22
- createdAt: unmarshalDate(data.created_at),
23
- demarcationInfo: data.demarcation_info,
24
- id: data.id,
25
- name: data.name,
26
- organizationId: data.organization_id,
27
- popId: data.pop_id,
28
- projectId: data.project_id,
29
- region: data.region,
30
- status: data.status,
31
- tags: data.tags,
32
- updatedAt: unmarshalDate(data.updated_at),
33
- vlanRange: data.vlan_range ? unmarshalRange(data.vlan_range) : void 0
34
- };
10
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DedicatedConnection' failed as data isn't a dictionary.`);
11
+ return {
12
+ availableLinkBandwidths: data.available_link_bandwidths,
13
+ bandwidthMbps: data.bandwidth_mbps,
14
+ createdAt: unmarshalDate(data.created_at),
15
+ demarcationInfo: data.demarcation_info,
16
+ id: data.id,
17
+ name: data.name,
18
+ organizationId: data.organization_id,
19
+ popId: data.pop_id,
20
+ projectId: data.project_id,
21
+ region: data.region,
22
+ status: data.status,
23
+ tags: data.tags,
24
+ updatedAt: unmarshalDate(data.updated_at),
25
+ vlanRange: data.vlan_range ? unmarshalRange(data.vlan_range) : void 0
26
+ };
35
27
  };
36
- const unmarshalBgpConfig = (data) => {
37
- if (!isJSONObject(data)) {
38
- throw new TypeError(
39
- `Unmarshalling the type 'BgpConfig' failed as data isn't a dictionary.`
40
- );
41
- }
42
- return {
43
- asn: data.asn,
44
- ipv4: data.ipv4,
45
- ipv6: data.ipv6
46
- };
28
+ var unmarshalBgpConfig = (data) => {
29
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BgpConfig' failed as data isn't a dictionary.`);
30
+ return {
31
+ asn: data.asn,
32
+ ipv4: data.ipv4,
33
+ ipv6: data.ipv6
34
+ };
47
35
  };
48
- const unmarshalPartnerHost = (data) => {
49
- if (!isJSONObject(data)) {
50
- throw new TypeError(
51
- `Unmarshalling the type 'PartnerHost' failed as data isn't a dictionary.`
52
- );
53
- }
54
- return {
55
- disapprovedReason: data.disapproved_reason,
56
- pairingKey: data.pairing_key,
57
- partnerId: data.partner_id
58
- };
36
+ var unmarshalPartnerHost = (data) => {
37
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PartnerHost' failed as data isn't a dictionary.`);
38
+ return {
39
+ disapprovedReason: data.disapproved_reason,
40
+ pairingKey: data.pairing_key,
41
+ partnerId: data.partner_id
42
+ };
59
43
  };
60
- const unmarshalSelfHost = (data) => {
61
- if (!isJSONObject(data)) {
62
- throw new TypeError(
63
- `Unmarshalling the type 'SelfHost' failed as data isn't a dictionary.`
64
- );
65
- }
66
- return {
67
- connectionId: data.connection_id
68
- };
44
+ var unmarshalSelfHost = (data) => {
45
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SelfHost' failed as data isn't a dictionary.`);
46
+ return { connectionId: data.connection_id };
69
47
  };
70
48
  const unmarshalLink = (data) => {
71
- if (!isJSONObject(data)) {
72
- throw new TypeError(
73
- `Unmarshalling the type 'Link' failed as data isn't a dictionary.`
74
- );
75
- }
76
- return {
77
- bandwidthMbps: data.bandwidth_mbps,
78
- bgpV4Status: data.bgp_v4_status,
79
- bgpV6Status: data.bgp_v6_status,
80
- createdAt: unmarshalDate(data.created_at),
81
- enableRoutePropagation: data.enable_route_propagation,
82
- id: data.id,
83
- name: data.name,
84
- organizationId: data.organization_id,
85
- partner: data.partner ? unmarshalPartnerHost(data.partner) : void 0,
86
- peerBgpConfig: data.peer_bgp_config ? unmarshalBgpConfig(data.peer_bgp_config) : void 0,
87
- popId: data.pop_id,
88
- projectId: data.project_id,
89
- region: data.region,
90
- routingPolicyId: data.routing_policy_id,
91
- routingPolicyV4Id: data.routing_policy_v4_id,
92
- routingPolicyV6Id: data.routing_policy_v6_id,
93
- scwBgpConfig: data.scw_bgp_config ? unmarshalBgpConfig(data.scw_bgp_config) : void 0,
94
- self: data.self ? unmarshalSelfHost(data.self) : void 0,
95
- status: data.status,
96
- tags: data.tags,
97
- updatedAt: unmarshalDate(data.updated_at),
98
- vlan: data.vlan,
99
- vpcId: data.vpc_id
100
- };
49
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Link' failed as data isn't a dictionary.`);
50
+ return {
51
+ bandwidthMbps: data.bandwidth_mbps,
52
+ bgpV4Status: data.bgp_v4_status,
53
+ bgpV6Status: data.bgp_v6_status,
54
+ createdAt: unmarshalDate(data.created_at),
55
+ enableRoutePropagation: data.enable_route_propagation,
56
+ id: data.id,
57
+ name: data.name,
58
+ organizationId: data.organization_id,
59
+ partner: data.partner ? unmarshalPartnerHost(data.partner) : void 0,
60
+ peerBgpConfig: data.peer_bgp_config ? unmarshalBgpConfig(data.peer_bgp_config) : void 0,
61
+ popId: data.pop_id,
62
+ projectId: data.project_id,
63
+ region: data.region,
64
+ routingPolicyId: data.routing_policy_id,
65
+ routingPolicyV4Id: data.routing_policy_v4_id,
66
+ routingPolicyV6Id: data.routing_policy_v6_id,
67
+ scwBgpConfig: data.scw_bgp_config ? unmarshalBgpConfig(data.scw_bgp_config) : void 0,
68
+ self: data.self ? unmarshalSelfHost(data.self) : void 0,
69
+ status: data.status,
70
+ tags: data.tags,
71
+ updatedAt: unmarshalDate(data.updated_at),
72
+ vlan: data.vlan,
73
+ vpcId: data.vpc_id
74
+ };
101
75
  };
102
76
  const unmarshalPartner = (data) => {
103
- if (!isJSONObject(data)) {
104
- throw new TypeError(
105
- `Unmarshalling the type 'Partner' failed as data isn't a dictionary.`
106
- );
107
- }
108
- return {
109
- contactEmail: data.contact_email,
110
- createdAt: unmarshalDate(data.created_at),
111
- id: data.id,
112
- logoUrl: data.logo_url,
113
- name: data.name,
114
- portalUrl: data.portal_url,
115
- updatedAt: unmarshalDate(data.updated_at)
116
- };
77
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Partner' failed as data isn't a dictionary.`);
78
+ return {
79
+ contactEmail: data.contact_email,
80
+ createdAt: unmarshalDate(data.created_at),
81
+ id: data.id,
82
+ logoUrl: data.logo_url,
83
+ name: data.name,
84
+ portalUrl: data.portal_url,
85
+ updatedAt: unmarshalDate(data.updated_at)
86
+ };
117
87
  };
118
88
  const unmarshalPop = (data) => {
119
- if (!isJSONObject(data)) {
120
- throw new TypeError(
121
- `Unmarshalling the type 'Pop' failed as data isn't a dictionary.`
122
- );
123
- }
124
- return {
125
- address: data.address,
126
- availableLinkBandwidthsMbps: data.available_link_bandwidths_mbps,
127
- city: data.city,
128
- displayName: data.display_name,
129
- hostingProviderName: data.hosting_provider_name,
130
- id: data.id,
131
- logoUrl: data.logo_url,
132
- name: data.name,
133
- region: data.region
134
- };
89
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Pop' failed as data isn't a dictionary.`);
90
+ return {
91
+ address: data.address,
92
+ availableLinkBandwidthsMbps: data.available_link_bandwidths_mbps,
93
+ city: data.city,
94
+ displayName: data.display_name,
95
+ hostingProviderName: data.hosting_provider_name,
96
+ id: data.id,
97
+ logoUrl: data.logo_url,
98
+ name: data.name,
99
+ region: data.region
100
+ };
135
101
  };
136
102
  const unmarshalRoutingPolicy = (data) => {
137
- if (!isJSONObject(data)) {
138
- throw new TypeError(
139
- `Unmarshalling the type 'RoutingPolicy' failed as data isn't a dictionary.`
140
- );
141
- }
142
- return {
143
- createdAt: unmarshalDate(data.created_at),
144
- id: data.id,
145
- isIpv6: data.is_ipv6,
146
- name: data.name,
147
- organizationId: data.organization_id,
148
- prefixFilterIn: data.prefix_filter_in,
149
- prefixFilterOut: data.prefix_filter_out,
150
- projectId: data.project_id,
151
- region: data.region,
152
- tags: data.tags,
153
- updatedAt: unmarshalDate(data.updated_at)
154
- };
103
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RoutingPolicy' failed as data isn't a dictionary.`);
104
+ return {
105
+ createdAt: unmarshalDate(data.created_at),
106
+ id: data.id,
107
+ isIpv6: data.is_ipv6,
108
+ name: data.name,
109
+ organizationId: data.organization_id,
110
+ prefixFilterIn: data.prefix_filter_in,
111
+ prefixFilterOut: data.prefix_filter_out,
112
+ projectId: data.project_id,
113
+ region: data.region,
114
+ tags: data.tags,
115
+ updatedAt: unmarshalDate(data.updated_at)
116
+ };
155
117
  };
156
118
  const unmarshalListDedicatedConnectionsResponse = (data) => {
157
- if (!isJSONObject(data)) {
158
- throw new TypeError(
159
- `Unmarshalling the type 'ListDedicatedConnectionsResponse' failed as data isn't a dictionary.`
160
- );
161
- }
162
- return {
163
- connections: unmarshalArrayOfObject(
164
- data.connections,
165
- unmarshalDedicatedConnection
166
- ),
167
- totalCount: data.total_count
168
- };
119
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDedicatedConnectionsResponse' failed as data isn't a dictionary.`);
120
+ return {
121
+ connections: unmarshalArrayOfObject(data.connections, unmarshalDedicatedConnection),
122
+ totalCount: data.total_count
123
+ };
169
124
  };
170
125
  const unmarshalListLinksResponse = (data) => {
171
- if (!isJSONObject(data)) {
172
- throw new TypeError(
173
- `Unmarshalling the type 'ListLinksResponse' failed as data isn't a dictionary.`
174
- );
175
- }
176
- return {
177
- links: unmarshalArrayOfObject(data.links, unmarshalLink),
178
- totalCount: data.total_count
179
- };
126
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListLinksResponse' failed as data isn't a dictionary.`);
127
+ return {
128
+ links: unmarshalArrayOfObject(data.links, unmarshalLink),
129
+ totalCount: data.total_count
130
+ };
180
131
  };
181
132
  const unmarshalListPartnersResponse = (data) => {
182
- if (!isJSONObject(data)) {
183
- throw new TypeError(
184
- `Unmarshalling the type 'ListPartnersResponse' failed as data isn't a dictionary.`
185
- );
186
- }
187
- return {
188
- partners: unmarshalArrayOfObject(data.partners, unmarshalPartner),
189
- totalCount: data.total_count
190
- };
133
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPartnersResponse' failed as data isn't a dictionary.`);
134
+ return {
135
+ partners: unmarshalArrayOfObject(data.partners, unmarshalPartner),
136
+ totalCount: data.total_count
137
+ };
191
138
  };
192
139
  const unmarshalListPopsResponse = (data) => {
193
- if (!isJSONObject(data)) {
194
- throw new TypeError(
195
- `Unmarshalling the type 'ListPopsResponse' failed as data isn't a dictionary.`
196
- );
197
- }
198
- return {
199
- pops: unmarshalArrayOfObject(data.pops, unmarshalPop),
200
- totalCount: data.total_count
201
- };
140
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPopsResponse' failed as data isn't a dictionary.`);
141
+ return {
142
+ pops: unmarshalArrayOfObject(data.pops, unmarshalPop),
143
+ totalCount: data.total_count
144
+ };
202
145
  };
203
146
  const unmarshalListRoutingPoliciesResponse = (data) => {
204
- if (!isJSONObject(data)) {
205
- throw new TypeError(
206
- `Unmarshalling the type 'ListRoutingPoliciesResponse' failed as data isn't a dictionary.`
207
- );
208
- }
209
- return {
210
- routingPolicies: unmarshalArrayOfObject(
211
- data.routing_policies,
212
- unmarshalRoutingPolicy
213
- ),
214
- totalCount: data.total_count
215
- };
147
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRoutingPoliciesResponse' failed as data isn't a dictionary.`);
148
+ return {
149
+ routingPolicies: unmarshalArrayOfObject(data.routing_policies, unmarshalRoutingPolicy),
150
+ totalCount: data.total_count
151
+ };
216
152
  };
217
- const marshalAttachRoutingPolicyRequest = (request, defaults) => ({
218
- routing_policy_id: request.routingPolicyId
219
- });
220
- const marshalAttachVpcRequest = (request, defaults) => ({
221
- vpc_id: request.vpcId
222
- });
153
+ const marshalAttachRoutingPolicyRequest = (request, defaults) => ({ routing_policy_id: request.routingPolicyId });
154
+ const marshalAttachVpcRequest = (request, defaults) => ({ vpc_id: request.vpcId });
223
155
  const marshalCreateLinkRequest = (request, defaults) => ({
224
- bandwidth_mbps: request.bandwidthMbps,
225
- name: request.name,
226
- peer_asn: request.peerAsn,
227
- pop_id: request.popId,
228
- project_id: request.projectId ?? defaults.defaultProjectId,
229
- routing_policy_v4_id: request.routingPolicyV4Id,
230
- routing_policy_v6_id: request.routingPolicyV6Id,
231
- tags: request.tags,
232
- vlan: request.vlan,
233
- ...resolveOneOf([
234
- { param: "connection_id", value: request.connectionId },
235
- { param: "partner_id", value: request.partnerId }
236
- ])
156
+ bandwidth_mbps: request.bandwidthMbps,
157
+ name: request.name,
158
+ peer_asn: request.peerAsn,
159
+ pop_id: request.popId,
160
+ project_id: request.projectId ?? defaults.defaultProjectId,
161
+ routing_policy_v4_id: request.routingPolicyV4Id,
162
+ routing_policy_v6_id: request.routingPolicyV6Id,
163
+ tags: request.tags,
164
+ vlan: request.vlan,
165
+ ...resolveOneOf([{
166
+ param: "connection_id",
167
+ value: request.connectionId
168
+ }, {
169
+ param: "partner_id",
170
+ value: request.partnerId
171
+ }])
237
172
  });
238
173
  const marshalCreateRoutingPolicyRequest = (request, defaults) => ({
239
- is_ipv6: request.isIpv6,
240
- name: request.name,
241
- prefix_filter_in: request.prefixFilterIn,
242
- prefix_filter_out: request.prefixFilterOut,
243
- project_id: request.projectId ?? defaults.defaultProjectId,
244
- tags: request.tags
245
- });
246
- const marshalDetachRoutingPolicyRequest = (request, defaults) => ({
247
- routing_policy_id: request.routingPolicyId
248
- });
249
- const marshalSetRoutingPolicyRequest = (request, defaults) => ({
250
- routing_policy_id: request.routingPolicyId
174
+ is_ipv6: request.isIpv6,
175
+ name: request.name,
176
+ prefix_filter_in: request.prefixFilterIn,
177
+ prefix_filter_out: request.prefixFilterOut,
178
+ project_id: request.projectId ?? defaults.defaultProjectId,
179
+ tags: request.tags
251
180
  });
181
+ const marshalDetachRoutingPolicyRequest = (request, defaults) => ({ routing_policy_id: request.routingPolicyId });
182
+ const marshalSetRoutingPolicyRequest = (request, defaults) => ({ routing_policy_id: request.routingPolicyId });
252
183
  const marshalUpdateLinkRequest = (request, defaults) => ({
253
- name: request.name,
254
- peer_asn: request.peerAsn,
255
- tags: request.tags
184
+ name: request.name,
185
+ peer_asn: request.peerAsn,
186
+ tags: request.tags
256
187
  });
257
188
  const marshalUpdateRoutingPolicyRequest = (request, defaults) => ({
258
- name: request.name,
259
- prefix_filter_in: request.prefixFilterIn,
260
- prefix_filter_out: request.prefixFilterOut,
261
- tags: request.tags
189
+ name: request.name,
190
+ prefix_filter_in: request.prefixFilterIn,
191
+ prefix_filter_out: request.prefixFilterOut,
192
+ tags: request.tags
262
193
  });
263
- export {
264
- marshalAttachRoutingPolicyRequest,
265
- marshalAttachVpcRequest,
266
- marshalCreateLinkRequest,
267
- marshalCreateRoutingPolicyRequest,
268
- marshalDetachRoutingPolicyRequest,
269
- marshalSetRoutingPolicyRequest,
270
- marshalUpdateLinkRequest,
271
- marshalUpdateRoutingPolicyRequest,
272
- unmarshalDedicatedConnection,
273
- unmarshalLink,
274
- unmarshalListDedicatedConnectionsResponse,
275
- unmarshalListLinksResponse,
276
- unmarshalListPartnersResponse,
277
- unmarshalListPopsResponse,
278
- unmarshalListRoutingPoliciesResponse,
279
- unmarshalPartner,
280
- unmarshalPop,
281
- unmarshalRoutingPolicy
282
- };
194
+ export { marshalAttachRoutingPolicyRequest, marshalAttachVpcRequest, marshalCreateLinkRequest, marshalCreateRoutingPolicyRequest, marshalDetachRoutingPolicyRequest, marshalSetRoutingPolicyRequest, marshalUpdateLinkRequest, marshalUpdateRoutingPolicyRequest, unmarshalDedicatedConnection, unmarshalLink, unmarshalListDedicatedConnectionsResponse, unmarshalListLinksResponse, unmarshalListPartnersResponse, unmarshalListPopsResponse, unmarshalListRoutingPoliciesResponse, unmarshalPartner, unmarshalPop, unmarshalRoutingPolicy };