@scaleway/sdk-interlink 1.2.1 → 1.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.
- package/dist/index.gen.d.ts +1 -1
- package/dist/v1beta1/api.gen.cjs +17 -0
- package/dist/v1beta1/api.gen.d.ts +9 -2
- package/dist/v1beta1/api.gen.js +18 -1
- package/dist/v1beta1/content.gen.d.ts +1 -1
- package/dist/v1beta1/index.gen.cjs +1 -0
- package/dist/v1beta1/index.gen.d.ts +5 -5
- package/dist/v1beta1/index.gen.js +2 -1
- package/dist/v1beta1/marshalling.gen.cjs +7 -0
- package/dist/v1beta1/marshalling.gen.d.ts +2 -1
- package/dist/v1beta1/marshalling.gen.js +7 -0
- package/dist/v1beta1/types.gen.d.ts +28 -2
- package/dist/v1beta1/validation-rules.gen.cjs +3 -0
- package/dist/v1beta1/validation-rules.gen.d.ts +3 -0
- package/dist/v1beta1/validation-rules.gen.js +3 -0
- package/package.json +4 -4
package/dist/index.gen.d.ts
CHANGED
package/dist/v1beta1/api.gen.cjs
CHANGED
|
@@ -331,6 +331,23 @@ class API extends sdkClient.API {
|
|
|
331
331
|
},
|
|
332
332
|
marshalling_gen.unmarshalLink
|
|
333
333
|
);
|
|
334
|
+
/**
|
|
335
|
+
* Set a routing policy. Replace a routing policy from an existing link. This is useful when route propagation is enabled because it changes the routing policy "in place", without blocking all routes like a attach / detach would do.
|
|
336
|
+
*
|
|
337
|
+
* @param request - The request {@link SetRoutingPolicyRequest}
|
|
338
|
+
* @returns A Promise of Link
|
|
339
|
+
*/
|
|
340
|
+
setRoutingPolicy = (request) => this.client.fetch(
|
|
341
|
+
{
|
|
342
|
+
body: JSON.stringify(
|
|
343
|
+
marshalling_gen.marshalSetRoutingPolicyRequest(request, this.client.settings)
|
|
344
|
+
),
|
|
345
|
+
headers: jsonContentHeaders,
|
|
346
|
+
method: "POST",
|
|
347
|
+
path: `/interlink/v1beta1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/links/${sdkClient.validatePathParam("linkId", request.linkId)}/set-routing-policy`
|
|
348
|
+
},
|
|
349
|
+
marshalling_gen.unmarshalLink
|
|
350
|
+
);
|
|
334
351
|
/**
|
|
335
352
|
* 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.
|
|
336
353
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
2
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
3
|
-
import type {
|
|
2
|
+
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
3
|
+
import type { AttachRoutingPolicyRequest, AttachVpcRequest, CreateLinkRequest, CreateRoutingPolicyRequest, DedicatedConnection, DeleteLinkRequest, DeleteRoutingPolicyRequest, DetachRoutingPolicyRequest, DetachVpcRequest, DisableRoutePropagationRequest, EnableRoutePropagationRequest, GetDedicatedConnectionRequest, GetLinkRequest, GetPartnerRequest, GetPopRequest, GetRoutingPolicyRequest, Link, ListDedicatedConnectionsRequest, ListDedicatedConnectionsResponse, ListLinksRequest, ListLinksResponse, ListPartnersRequest, ListPartnersResponse, ListPopsRequest, ListPopsResponse, ListRoutingPoliciesRequest, ListRoutingPoliciesResponse, Partner, Pop, RoutingPolicy, SetRoutingPolicyRequest, UpdateLinkRequest, UpdateRoutingPolicyRequest } from './types.gen.js';
|
|
4
4
|
/**
|
|
5
5
|
* InterLink API.
|
|
6
6
|
|
|
@@ -149,6 +149,13 @@ export declare class API extends ParentAPI {
|
|
|
149
149
|
* @returns A Promise of Link
|
|
150
150
|
*/
|
|
151
151
|
detachRoutingPolicy: (request: Readonly<DetachRoutingPolicyRequest>) => Promise<Link>;
|
|
152
|
+
/**
|
|
153
|
+
* Set a routing policy. Replace a routing policy from an existing link. This is useful when route propagation is enabled because it changes the routing policy "in place", without blocking all routes like a attach / detach would do.
|
|
154
|
+
*
|
|
155
|
+
* @param request - The request {@link SetRoutingPolicyRequest}
|
|
156
|
+
* @returns A Promise of Link
|
|
157
|
+
*/
|
|
158
|
+
setRoutingPolicy: (request: Readonly<SetRoutingPolicyRequest>) => Promise<Link>;
|
|
152
159
|
/**
|
|
153
160
|
* 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.
|
|
154
161
|
*
|
package/dist/v1beta1/api.gen.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as API$1, toApiLocality, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
|
|
2
2
|
import { DEDICATED_CONNECTION_TRANSIENT_STATUSES, LINK_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
-
import { unmarshalListDedicatedConnectionsResponse, unmarshalDedicatedConnection, unmarshalListPartnersResponse, unmarshalPartner, unmarshalListPopsResponse, unmarshalPop, unmarshalListLinksResponse, unmarshalLink, marshalCreateLinkRequest, marshalUpdateLinkRequest, marshalAttachVpcRequest, marshalAttachRoutingPolicyRequest, marshalDetachRoutingPolicyRequest, unmarshalListRoutingPoliciesResponse, unmarshalRoutingPolicy, marshalCreateRoutingPolicyRequest, marshalUpdateRoutingPolicyRequest } from "./marshalling.gen.js";
|
|
3
|
+
import { unmarshalListDedicatedConnectionsResponse, unmarshalDedicatedConnection, unmarshalListPartnersResponse, unmarshalPartner, unmarshalListPopsResponse, unmarshalPop, unmarshalListLinksResponse, unmarshalLink, marshalCreateLinkRequest, marshalUpdateLinkRequest, marshalAttachVpcRequest, marshalAttachRoutingPolicyRequest, marshalDetachRoutingPolicyRequest, marshalSetRoutingPolicyRequest, unmarshalListRoutingPoliciesResponse, unmarshalRoutingPolicy, marshalCreateRoutingPolicyRequest, marshalUpdateRoutingPolicyRequest } from "./marshalling.gen.js";
|
|
4
4
|
const jsonContentHeaders = {
|
|
5
5
|
"Content-Type": "application/json; charset=utf-8"
|
|
6
6
|
};
|
|
@@ -329,6 +329,23 @@ class API extends API$1 {
|
|
|
329
329
|
},
|
|
330
330
|
unmarshalLink
|
|
331
331
|
);
|
|
332
|
+
/**
|
|
333
|
+
* Set a routing policy. Replace a routing policy from an existing link. This is useful when route propagation is enabled because it changes the routing policy "in place", without blocking all routes like a attach / detach would do.
|
|
334
|
+
*
|
|
335
|
+
* @param request - The request {@link SetRoutingPolicyRequest}
|
|
336
|
+
* @returns A Promise of Link
|
|
337
|
+
*/
|
|
338
|
+
setRoutingPolicy = (request) => this.client.fetch(
|
|
339
|
+
{
|
|
340
|
+
body: JSON.stringify(
|
|
341
|
+
marshalSetRoutingPolicyRequest(request, this.client.settings)
|
|
342
|
+
),
|
|
343
|
+
headers: jsonContentHeaders,
|
|
344
|
+
method: "POST",
|
|
345
|
+
path: `/interlink/v1beta1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/links/${validatePathParam("linkId", request.linkId)}/set-routing-policy`
|
|
346
|
+
},
|
|
347
|
+
unmarshalLink
|
|
348
|
+
);
|
|
332
349
|
/**
|
|
333
350
|
* 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.
|
|
334
351
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DedicatedConnectionStatus, LinkStatus } from './types.gen';
|
|
1
|
+
import type { DedicatedConnectionStatus, LinkStatus } from './types.gen.js';
|
|
2
2
|
/** Lists transient statutes of the enum {@link DedicatedConnectionStatus}. */
|
|
3
3
|
export declare const DEDICATED_CONNECTION_TRANSIENT_STATUSES: DedicatedConnectionStatus[];
|
|
4
4
|
/** Lists transient statutes of the enum {@link LinkStatus}. */
|
|
@@ -12,6 +12,7 @@ exports.marshalAttachVpcRequest = marshalling_gen.marshalAttachVpcRequest;
|
|
|
12
12
|
exports.marshalCreateLinkRequest = marshalling_gen.marshalCreateLinkRequest;
|
|
13
13
|
exports.marshalCreateRoutingPolicyRequest = marshalling_gen.marshalCreateRoutingPolicyRequest;
|
|
14
14
|
exports.marshalDetachRoutingPolicyRequest = marshalling_gen.marshalDetachRoutingPolicyRequest;
|
|
15
|
+
exports.marshalSetRoutingPolicyRequest = marshalling_gen.marshalSetRoutingPolicyRequest;
|
|
15
16
|
exports.marshalUpdateLinkRequest = marshalling_gen.marshalUpdateLinkRequest;
|
|
16
17
|
exports.marshalUpdateRoutingPolicyRequest = marshalling_gen.marshalUpdateRoutingPolicyRequest;
|
|
17
18
|
exports.unmarshalDedicatedConnection = marshalling_gen.unmarshalDedicatedConnection;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { API } from './api.gen';
|
|
2
|
-
export * from './content.gen';
|
|
3
|
-
export * from './marshalling.gen';
|
|
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, RoutingPolicy, SelfHost, UpdateLinkRequest, UpdateRoutingPolicyRequest, } from './types.gen';
|
|
5
|
-
export * as ValidationRules from './validation-rules.gen';
|
|
1
|
+
export { API } from './api.gen.js';
|
|
2
|
+
export * from './content.gen.js';
|
|
3
|
+
export * from './marshalling.gen.js';
|
|
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, RoutingPolicy, SelfHost, SetRoutingPolicyRequest, UpdateLinkRequest, UpdateRoutingPolicyRequest, } from './types.gen.js';
|
|
5
|
+
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API } from "./api.gen.js";
|
|
2
2
|
import { DEDICATED_CONNECTION_TRANSIENT_STATUSES, LINK_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
-
import { marshalAttachRoutingPolicyRequest, marshalAttachVpcRequest, marshalCreateLinkRequest, marshalCreateRoutingPolicyRequest, marshalDetachRoutingPolicyRequest, marshalUpdateLinkRequest, marshalUpdateRoutingPolicyRequest, unmarshalDedicatedConnection, unmarshalLink, unmarshalListDedicatedConnectionsResponse, unmarshalListLinksResponse, unmarshalListPartnersResponse, unmarshalListPopsResponse, unmarshalListRoutingPoliciesResponse, unmarshalPartner, unmarshalPop, unmarshalRoutingPolicy } from "./marshalling.gen.js";
|
|
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
4
|
import * as validationRules_gen from "./validation-rules.gen.js";
|
|
5
5
|
export {
|
|
6
6
|
API,
|
|
@@ -12,6 +12,7 @@ export {
|
|
|
12
12
|
marshalCreateLinkRequest,
|
|
13
13
|
marshalCreateRoutingPolicyRequest,
|
|
14
14
|
marshalDetachRoutingPolicyRequest,
|
|
15
|
+
marshalSetRoutingPolicyRequest,
|
|
15
16
|
marshalUpdateLinkRequest,
|
|
16
17
|
marshalUpdateRoutingPolicyRequest,
|
|
17
18
|
unmarshalDedicatedConnection,
|
|
@@ -115,6 +115,7 @@ const unmarshalPop = (data) => {
|
|
|
115
115
|
address: data.address,
|
|
116
116
|
availableLinkBandwidthsMbps: data.available_link_bandwidths_mbps,
|
|
117
117
|
city: data.city,
|
|
118
|
+
displayName: data.display_name,
|
|
118
119
|
hostingProviderName: data.hosting_provider_name,
|
|
119
120
|
id: data.id,
|
|
120
121
|
logoUrl: data.logo_url,
|
|
@@ -215,6 +216,8 @@ const marshalCreateLinkRequest = (request, defaults) => ({
|
|
|
215
216
|
peer_asn: request.peerAsn,
|
|
216
217
|
pop_id: request.popId,
|
|
217
218
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
219
|
+
routing_policy_v4_id: request.routingPolicyV4Id,
|
|
220
|
+
routing_policy_v6_id: request.routingPolicyV6Id,
|
|
218
221
|
tags: request.tags,
|
|
219
222
|
vlan: request.vlan,
|
|
220
223
|
...sdkClient.resolveOneOf([
|
|
@@ -233,6 +236,9 @@ const marshalCreateRoutingPolicyRequest = (request, defaults) => ({
|
|
|
233
236
|
const marshalDetachRoutingPolicyRequest = (request, defaults) => ({
|
|
234
237
|
routing_policy_id: request.routingPolicyId
|
|
235
238
|
});
|
|
239
|
+
const marshalSetRoutingPolicyRequest = (request, defaults) => ({
|
|
240
|
+
routing_policy_id: request.routingPolicyId
|
|
241
|
+
});
|
|
236
242
|
const marshalUpdateLinkRequest = (request, defaults) => ({
|
|
237
243
|
name: request.name,
|
|
238
244
|
peer_asn: request.peerAsn,
|
|
@@ -249,6 +255,7 @@ exports.marshalAttachVpcRequest = marshalAttachVpcRequest;
|
|
|
249
255
|
exports.marshalCreateLinkRequest = marshalCreateLinkRequest;
|
|
250
256
|
exports.marshalCreateRoutingPolicyRequest = marshalCreateRoutingPolicyRequest;
|
|
251
257
|
exports.marshalDetachRoutingPolicyRequest = marshalDetachRoutingPolicyRequest;
|
|
258
|
+
exports.marshalSetRoutingPolicyRequest = marshalSetRoutingPolicyRequest;
|
|
252
259
|
exports.marshalUpdateLinkRequest = marshalUpdateLinkRequest;
|
|
253
260
|
exports.marshalUpdateRoutingPolicyRequest = marshalUpdateRoutingPolicyRequest;
|
|
254
261
|
exports.unmarshalDedicatedConnection = unmarshalDedicatedConnection;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { AttachRoutingPolicyRequest, AttachVpcRequest, CreateLinkRequest, CreateRoutingPolicyRequest, DedicatedConnection, DetachRoutingPolicyRequest, Link, ListDedicatedConnectionsResponse, ListLinksResponse, ListPartnersResponse, ListPopsResponse, ListRoutingPoliciesResponse, Partner, Pop, RoutingPolicy, UpdateLinkRequest, UpdateRoutingPolicyRequest } from './types.gen';
|
|
2
|
+
import type { AttachRoutingPolicyRequest, AttachVpcRequest, CreateLinkRequest, CreateRoutingPolicyRequest, DedicatedConnection, DetachRoutingPolicyRequest, Link, ListDedicatedConnectionsResponse, ListLinksResponse, ListPartnersResponse, ListPopsResponse, ListRoutingPoliciesResponse, Partner, Pop, RoutingPolicy, SetRoutingPolicyRequest, UpdateLinkRequest, UpdateRoutingPolicyRequest } from './types.gen.js';
|
|
3
3
|
export declare const unmarshalDedicatedConnection: (data: unknown) => DedicatedConnection;
|
|
4
4
|
export declare const unmarshalLink: (data: unknown) => Link;
|
|
5
5
|
export declare const unmarshalPartner: (data: unknown) => Partner;
|
|
@@ -15,5 +15,6 @@ export declare const marshalAttachVpcRequest: (request: AttachVpcRequest, defaul
|
|
|
15
15
|
export declare const marshalCreateLinkRequest: (request: CreateLinkRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
16
16
|
export declare const marshalCreateRoutingPolicyRequest: (request: CreateRoutingPolicyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
17
17
|
export declare const marshalDetachRoutingPolicyRequest: (request: DetachRoutingPolicyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
18
|
+
export declare const marshalSetRoutingPolicyRequest: (request: SetRoutingPolicyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
18
19
|
export declare const marshalUpdateLinkRequest: (request: UpdateLinkRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
19
20
|
export declare const marshalUpdateRoutingPolicyRequest: (request: UpdateRoutingPolicyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -113,6 +113,7 @@ const unmarshalPop = (data) => {
|
|
|
113
113
|
address: data.address,
|
|
114
114
|
availableLinkBandwidthsMbps: data.available_link_bandwidths_mbps,
|
|
115
115
|
city: data.city,
|
|
116
|
+
displayName: data.display_name,
|
|
116
117
|
hostingProviderName: data.hosting_provider_name,
|
|
117
118
|
id: data.id,
|
|
118
119
|
logoUrl: data.logo_url,
|
|
@@ -213,6 +214,8 @@ const marshalCreateLinkRequest = (request, defaults) => ({
|
|
|
213
214
|
peer_asn: request.peerAsn,
|
|
214
215
|
pop_id: request.popId,
|
|
215
216
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
217
|
+
routing_policy_v4_id: request.routingPolicyV4Id,
|
|
218
|
+
routing_policy_v6_id: request.routingPolicyV6Id,
|
|
216
219
|
tags: request.tags,
|
|
217
220
|
vlan: request.vlan,
|
|
218
221
|
...resolveOneOf([
|
|
@@ -231,6 +234,9 @@ const marshalCreateRoutingPolicyRequest = (request, defaults) => ({
|
|
|
231
234
|
const marshalDetachRoutingPolicyRequest = (request, defaults) => ({
|
|
232
235
|
routing_policy_id: request.routingPolicyId
|
|
233
236
|
});
|
|
237
|
+
const marshalSetRoutingPolicyRequest = (request, defaults) => ({
|
|
238
|
+
routing_policy_id: request.routingPolicyId
|
|
239
|
+
});
|
|
234
240
|
const marshalUpdateLinkRequest = (request, defaults) => ({
|
|
235
241
|
name: request.name,
|
|
236
242
|
peer_asn: request.peerAsn,
|
|
@@ -248,6 +254,7 @@ export {
|
|
|
248
254
|
marshalCreateLinkRequest,
|
|
249
255
|
marshalCreateRoutingPolicyRequest,
|
|
250
256
|
marshalDetachRoutingPolicyRequest,
|
|
257
|
+
marshalSetRoutingPolicyRequest,
|
|
251
258
|
marshalUpdateLinkRequest,
|
|
252
259
|
marshalUpdateRoutingPolicyRequest,
|
|
253
260
|
unmarshalDedicatedConnection,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Region as ScwRegion } from '@scaleway/sdk-client';
|
|
2
|
-
export type BgpStatus = 'unknown_bgp_status' | 'up' | 'down';
|
|
2
|
+
export type BgpStatus = 'unknown_bgp_status' | 'up' | 'down' | 'disabled';
|
|
3
3
|
export type DedicatedConnectionStatus = 'unknown_status' | 'created' | 'configuring' | 'failed' | 'active' | 'disabled' | 'deleted' | 'locked';
|
|
4
4
|
export type LinkKind = 'hosted' | 'self_hosted';
|
|
5
|
-
export type LinkStatus = 'unknown_link_status' | 'configuring' | 'failed' | 'requested' | 'refused' | 'expired' | 'provisioning' | 'active' | 'limited_connectivity' | 'all_down' | 'deprovisioning' | 'deleted' | 'locked';
|
|
5
|
+
export type LinkStatus = 'unknown_link_status' | 'configuring' | 'failed' | 'requested' | 'refused' | 'expired' | 'provisioning' | 'active' | 'limited_connectivity' | 'all_down' | 'deprovisioning' | 'deleted' | 'locked' | 'ready';
|
|
6
6
|
export type ListDedicatedConnectionsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc';
|
|
7
7
|
export type ListLinksRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc';
|
|
8
8
|
export type ListPartnersRequestOrderBy = 'name_asc' | 'name_desc';
|
|
@@ -253,6 +253,10 @@ export interface Pop {
|
|
|
253
253
|
* Available bandwidth in Mbits/s for future hosted links from available connections in this PoP.
|
|
254
254
|
*/
|
|
255
255
|
availableLinkBandwidthsMbps: number[];
|
|
256
|
+
/**
|
|
257
|
+
* Pretty name of the PoP. Includes name, hosting provider and location information (ex: Paris - TeleHouse TH2).
|
|
258
|
+
*/
|
|
259
|
+
displayName: string;
|
|
256
260
|
/**
|
|
257
261
|
* Region of the PoP.
|
|
258
262
|
*/
|
|
@@ -377,6 +381,14 @@ export type CreateLinkRequest = {
|
|
|
377
381
|
* For self-hosted links only, it is possible to choose the VLAN ID. If the VLAN is not available (ie already taken or out of range), an error is returned.
|
|
378
382
|
*/
|
|
379
383
|
vlan?: number;
|
|
384
|
+
/**
|
|
385
|
+
* If set, attaches this routing policy containing IPv4 prefixes to the Link. Hence, a BGP IPv4 session will be created.
|
|
386
|
+
*/
|
|
387
|
+
routingPolicyV4Id?: string;
|
|
388
|
+
/**
|
|
389
|
+
* If set, attaches this routing policy containing IPv6 prefixes to the Link. Hence, a BGP IPv6 session will be created.
|
|
390
|
+
*/
|
|
391
|
+
routingPolicyV6Id?: string;
|
|
380
392
|
};
|
|
381
393
|
export type CreateRoutingPolicyRequest = {
|
|
382
394
|
/**
|
|
@@ -788,6 +800,20 @@ export interface ListRoutingPoliciesResponse {
|
|
|
788
800
|
routingPolicies: RoutingPolicy[];
|
|
789
801
|
totalCount: number;
|
|
790
802
|
}
|
|
803
|
+
export type SetRoutingPolicyRequest = {
|
|
804
|
+
/**
|
|
805
|
+
* Region to target. If none is passed will use default region from the config.
|
|
806
|
+
*/
|
|
807
|
+
region?: ScwRegion;
|
|
808
|
+
/**
|
|
809
|
+
* ID of the link to set a routing policy from.
|
|
810
|
+
*/
|
|
811
|
+
linkId: string;
|
|
812
|
+
/**
|
|
813
|
+
* ID of the routing policy to be set.
|
|
814
|
+
*/
|
|
815
|
+
routingPolicyId: string;
|
|
816
|
+
};
|
|
791
817
|
export type UpdateLinkRequest = {
|
|
792
818
|
/**
|
|
793
819
|
* Region to target. If none is passed will use default region from the config.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-interlink",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Scaleway SDK interlink",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@scaleway/random-name": "5.1.2",
|
|
33
|
-
"@scaleway/sdk-std": "1.0
|
|
33
|
+
"@scaleway/sdk-std": "1.1.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.3.
|
|
36
|
+
"@scaleway/sdk-client": "^1.3.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.3.
|
|
39
|
+
"@scaleway/sdk-client": "^1.3.2"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|