@scaleway/sdk-interlink 2.2.1 → 2.3.1
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/README.md +1 -1
- package/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/index.gen.js +2 -4
- package/dist/v1beta1/api.gen.js +296 -444
- package/dist/v1beta1/content.gen.js +5 -10
- package/dist/v1beta1/index.gen.js +28 -26
- package/dist/v1beta1/marshalling.gen.js +162 -250
- package/dist/v1beta1/validation-rules.gen.js +83 -119
- package/package.json +4 -4
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const LINK_TRANSIENT_STATUSES = [
|
|
5
|
-
|
|
6
|
-
];
|
|
7
|
-
export {
|
|
8
|
-
DEDICATED_CONNECTION_TRANSIENT_STATUSES,
|
|
9
|
-
LINK_TRANSIENT_STATUSES
|
|
10
|
-
};
|
|
1
|
+
/** Lists transient statutes of the enum {@link DedicatedConnectionStatus}. */
|
|
2
|
+
const DEDICATED_CONNECTION_TRANSIENT_STATUSES = ["configuring"];
|
|
3
|
+
/** Lists transient statutes of the enum {@link LinkStatus}. */
|
|
4
|
+
const LINK_TRANSIENT_STATUSES = ["configuring"];
|
|
5
|
+
export { DEDICATED_CONNECTION_TRANSIENT_STATUSES, LINK_TRANSIENT_STATUSES };
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import {
|
|
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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
return {
|
|
163
|
-
connections: unmarshalArrayOfObject(data.connections, unmarshalDedicatedConnection),
|
|
164
|
-
totalCount: data.total_count
|
|
165
|
-
};
|
|
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
|
+
};
|
|
166
124
|
};
|
|
167
125
|
const unmarshalListLinksResponse = (data) => {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
return {
|
|
174
|
-
links: unmarshalArrayOfObject(data.links, unmarshalLink),
|
|
175
|
-
totalCount: data.total_count
|
|
176
|
-
};
|
|
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
|
+
};
|
|
177
131
|
};
|
|
178
132
|
const unmarshalListPartnersResponse = (data) => {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
return {
|
|
185
|
-
partners: unmarshalArrayOfObject(data.partners, unmarshalPartner),
|
|
186
|
-
totalCount: data.total_count
|
|
187
|
-
};
|
|
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
|
+
};
|
|
188
138
|
};
|
|
189
139
|
const unmarshalListPopsResponse = (data) => {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
return {
|
|
196
|
-
pops: unmarshalArrayOfObject(data.pops, unmarshalPop),
|
|
197
|
-
totalCount: data.total_count
|
|
198
|
-
};
|
|
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
|
+
};
|
|
199
145
|
};
|
|
200
146
|
const unmarshalListRoutingPoliciesResponse = (data) => {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
return {
|
|
207
|
-
routingPolicies: unmarshalArrayOfObject(data.routing_policies, unmarshalRoutingPolicy),
|
|
208
|
-
totalCount: data.total_count
|
|
209
|
-
};
|
|
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
|
+
};
|
|
210
152
|
};
|
|
211
|
-
const marshalAttachRoutingPolicyRequest = (request, defaults) => ({
|
|
212
|
-
|
|
213
|
-
});
|
|
214
|
-
const marshalAttachVpcRequest = (request, defaults) => ({
|
|
215
|
-
vpc_id: request.vpcId
|
|
216
|
-
});
|
|
153
|
+
const marshalAttachRoutingPolicyRequest = (request, defaults) => ({ routing_policy_id: request.routingPolicyId });
|
|
154
|
+
const marshalAttachVpcRequest = (request, defaults) => ({ vpc_id: request.vpcId });
|
|
217
155
|
const marshalCreateLinkRequest = (request, defaults) => ({
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
value: request.partnerId
|
|
235
|
-
}
|
|
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
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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
|
-
|
|
254
|
-
|
|
255
|
-
|
|
184
|
+
name: request.name,
|
|
185
|
+
peer_asn: request.peerAsn,
|
|
186
|
+
tags: request.tags
|
|
256
187
|
});
|
|
257
188
|
const marshalUpdateRoutingPolicyRequest = (request, defaults) => ({
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
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 };
|