Skip to content

Commit 96197ba

Browse files
committed
feat: update generated APIs
1 parent 50cbd0a commit 96197ba

File tree

4 files changed

+497
-286
lines changed

4 files changed

+497
-286
lines changed

packages/clients/src/api/interlink/v1beta1/api.gen.ts

Lines changed: 23 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ const jsonContentHeaders = {
7171

7272
/**
7373
* InterLink API.
74-
*
75-
* This API allows you to manage your Scaleway InterLink, to connect your
76-
* on-premises infrastructure with your Scaleway VPC.
74+
75+
This API allows you to manage your Scaleway InterLink, to connect your on-premises infrastructure with your Scaleway VPC.
7776
*/
7877
export class API extends ParentAPI {
7978
/** Lists the available regions of the API. */
@@ -110,10 +109,7 @@ export class API extends ParentAPI {
110109
)
111110

112111
/**
113-
* List dedicated connections. For self-hosted users, list their dedicated
114-
* physical connections in a given region. By default, the connections
115-
* returned in the list are ordered by name in ascending order, though this
116-
* can be modified via the `order_by` field.
112+
* List dedicated connections. For self-hosted users, list their dedicated physical connections in a given region. By default, the connections returned in the list are ordered by name in ascending order, though this can be modified via the `order_by` field.
117113
*
118114
* @param request - The request {@link ListDedicatedConnectionsRequest}
119115
* @returns A Promise of ListDedicatedConnectionsResponse
@@ -128,9 +124,7 @@ export class API extends ParentAPI {
128124
)
129125

130126
/**
131-
* Get a dedicated connection. For self-hosted users, get a dedicated physical
132-
* connection corresponding to the given ID. The response object includes
133-
* information such as the connection's name, status and total bandwidth.
127+
* Get a dedicated connection. For self-hosted users, get a dedicated physical connection corresponding to the given ID. The response object includes information such as the connection's name, status and total bandwidth.
134128
*
135129
* @param request - The request {@link GetDedicatedConnectionRequest}
136130
* @returns A Promise of DedicatedConnection
@@ -189,9 +183,7 @@ export class API extends ParentAPI {
189183
)
190184

191185
/**
192-
* List available partners. List all available partners. By default, the
193-
* partners returned in the list are ordered by name in ascending order,
194-
* though this can be modified via the `order_by` field.
186+
* List available partners. List all available partners. By default, the partners returned in the list are ordered by name in ascending order, though this can be modified via the `order_by` field.
195187
*
196188
* @param request - The request {@link ListPartnersRequest}
197189
* @returns A Promise of ListPartnersResponse
@@ -200,9 +192,7 @@ export class API extends ParentAPI {
200192
enrichForPagination('partners', this.pageOfListPartners, request)
201193

202194
/**
203-
* Get a partner. Get a partner for the given partner IP. The response object
204-
* includes information such as the partner's name, email address and portal
205-
* URL.
195+
* Get a partner. Get a partner for the given partner IP. The response object includes information such as the partner's name, email address and portal URL.
206196
*
207197
* @param request - The request {@link GetPartnerRequest}
208198
* @returns A Promise of Partner
@@ -239,8 +229,7 @@ export class API extends ParentAPI {
239229
)
240230

241231
/**
242-
* List PoPs. List all available PoPs (locations) for a given region. By
243-
* default, the results are returned in ascending alphabetical order by name.
232+
* List PoPs. List all available PoPs (locations) for a given region. By default, the results are returned in ascending alphabetical order by name.
244233
*
245234
* @param request - The request {@link ListPopsRequest}
246235
* @returns A Promise of ListPopsResponse
@@ -249,8 +238,7 @@ export class API extends ParentAPI {
249238
enrichForPagination('pops', this.pageOfListPops, request)
250239

251240
/**
252-
* Get a PoP. Get a PoP for the given PoP ID. The response object includes the
253-
* PoP's name and information about its physical location.
241+
* Get a PoP. Get a PoP for the given PoP ID. The response object includes the PoP's name and information about its physical location.
254242
*
255243
* @param request - The request {@link GetPopRequest}
256244
* @returns A Promise of Pop
@@ -297,8 +285,7 @@ export class API extends ParentAPI {
297285
)
298286

299287
/**
300-
* List links. List all your links (InterLink connections). A number of
301-
* filters are available, including Project ID, name, tags and status.
288+
* List links. List all your links (InterLink connections). A number of filters are available, including Project ID, name, tags and status.
302289
*
303290
* @param request - The request {@link ListLinksRequest}
304291
* @returns A Promise of ListLinksResponse
@@ -307,9 +294,7 @@ export class API extends ParentAPI {
307294
enrichForPagination('links', this.pageOfListLinks, request)
308295

309296
/**
310-
* Get a link. Get a link (InterLink session / logical InterLink resource) for
311-
* the given link ID. The response object includes information about the
312-
* link's various configuration details.
297+
* Get a link. Get a link (InterLink session / logical InterLink resource) for the given link ID. The response object includes information about the link's various configuration details.
313298
*
314299
* @param request - The request {@link GetLinkRequest}
315300
* @returns A Promise of Link
@@ -346,11 +331,7 @@ export class API extends ParentAPI {
346331
)
347332

348333
/**
349-
* Create a link. Create a link (InterLink session / logical InterLink
350-
* resource) in a given PoP, specifying its various configuration details.
351-
* Links can either be hosted (faciliated by partners' shared physical
352-
* connections) or self-hosted (for users who have purchased a dedicated
353-
* physical connection).
334+
* Create a link. Create a link (InterLink session / logical InterLink resource) in a given PoP, specifying its various configuration details. Links can either be hosted (faciliated by partners' shared physical connections) or self-hosted (for users who have purchased a dedicated physical connection).
354335
*
355336
* @param request - The request {@link CreateLinkRequest}
356337
* @returns A Promise of Link
@@ -369,8 +350,7 @@ export class API extends ParentAPI {
369350
)
370351

371352
/**
372-
* Update a link. Update an existing link, specified by its link ID. Only its
373-
* name and tags can be updated.
353+
* Update a link. Update an existing link, specified by its link ID. Only its name and tags can be updated.
374354
*
375355
* @param request - The request {@link UpdateLinkRequest}
376356
* @returns A Promise of Link
@@ -389,11 +369,7 @@ export class API extends ParentAPI {
389369
)
390370

391371
/**
392-
* Delete a link. Delete an existing link, specified by its link ID. Note that
393-
* as well as deleting the link here on the Scaleway side, it is also
394-
* necessary to request deletion from the partner on their side. Only when
395-
* this action has been carried out on both sides will the resource be
396-
* completely deleted.
372+
* Delete a link. Delete an existing link, specified by its link ID. Note that as well as deleting the link here on the Scaleway side, it is also necessary to request deletion from the partner on their side. Only when this action has been carried out on both sides will the resource be completely deleted.
397373
*
398374
* @param request - The request {@link DeleteLinkRequest}
399375
* @returns A Promise of Link
@@ -408,9 +384,7 @@ export class API extends ParentAPI {
408384
)
409385

410386
/**
411-
* Attach a VPC. Attach a VPC to an existing link. This facilitates
412-
* communication between the resources in your Scaleway VPC, and your
413-
* on-premises infrastructure.
387+
* Attach a VPC. Attach a VPC to an existing link. This facilitates communication between the resources in your Scaleway VPC, and your on-premises infrastructure.
414388
*
415389
* @param request - The request {@link AttachVpcRequest}
416390
* @returns A Promise of Link
@@ -446,10 +420,7 @@ export class API extends ParentAPI {
446420
)
447421

448422
/**
449-
* Attach a routing policy. Attach a routing policy to an existing link. As
450-
* all routes across the link are blocked by default, you must attach a
451-
* routing policy to set IP prefix filters for allowed routes, facilitating
452-
* traffic flow.
423+
* Attach a routing policy. Attach a routing policy to an existing link. As all routes across the link are blocked by default, you must attach a routing policy to set IP prefix filters for allowed routes, facilitating traffic flow.
453424
*
454425
* @param request - The request {@link AttachRoutingPolicyRequest}
455426
* @returns A Promise of Link
@@ -468,9 +439,7 @@ export class API extends ParentAPI {
468439
)
469440

470441
/**
471-
* Detach a routing policy. Detach a routing policy from an existing link.
472-
* Without a routing policy, all routes across the link are blocked by
473-
* default.
442+
* Detach a routing policy. Detach a routing policy from an existing link. Without a routing policy, all routes across the link are blocked by default.
474443
*
475444
* @param request - The request {@link DetachRoutingPolicyRequest}
476445
* @returns A Promise of Link
@@ -487,12 +456,7 @@ export class API extends ParentAPI {
487456
)
488457

489458
/**
490-
* Enable route propagation. Enable all allowed prefixes (defined in a routing
491-
* policy) to be announced in the BGP session. This allows traffic to flow
492-
* between the attached VPC and the on-premises infrastructure along the
493-
* announced routes. Note that by default, even when route propagation is
494-
* enabled, all routes are blocked. It is essential to attach a routing policy
495-
* to define the ranges of routes to announce.
459+
* 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.
496460
*
497461
* @param request - The request {@link EnableRoutePropagationRequest}
498462
* @returns A Promise of Link
@@ -509,9 +473,7 @@ export class API extends ParentAPI {
509473
)
510474

511475
/**
512-
* Disable route propagation. Prevent any prefixes from being announced in the
513-
* BGP session. Traffic will not be able to flow over the InterLink until
514-
* route propagation is re-enabled.
476+
* Disable route propagation. Prevent any prefixes from being announced in the BGP session. Traffic will not be able to flow over the InterLink until route propagation is re-enabled.
515477
*
516478
* @param request - The request {@link DisableRoutePropagationRequest}
517479
* @returns A Promise of Link
@@ -553,9 +515,7 @@ export class API extends ParentAPI {
553515
)
554516

555517
/**
556-
* List routing policies. List all routing policies in a given region. A
557-
* routing policy can be attached to one or multiple links (InterLink
558-
* connections).
518+
* List routing policies. List all routing policies in a given region. A routing policy can be attached to one or multiple links (InterLink connections).
559519
*
560520
* @param request - The request {@link ListRoutingPoliciesRequest}
561521
* @returns A Promise of ListRoutingPoliciesResponse
@@ -568,9 +528,7 @@ export class API extends ParentAPI {
568528
)
569529

570530
/**
571-
* Get routing policy. Get a routing policy for the given routing policy ID.
572-
* The response object gives information including the policy's name, tags and
573-
* prefix filters.
531+
* 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.
574532
*
575533
* @param request - The request {@link GetRoutingPolicyRequest}
576534
* @returns A Promise of RoutingPolicy
@@ -585,9 +543,7 @@ export class API extends ParentAPI {
585543
)
586544

587545
/**
588-
* Create a routing policy. Create a routing policy. Routing policies allow
589-
* you to set IP prefix filters to define the incoming route announcements to
590-
* accept from the peer, and the outgoing routes to announce to the peer.
546+
* 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 peer, and the outgoing routes to announce to the peer.
591547
*
592548
* @param request - The request {@link CreateRoutingPolicyRequest}
593549
* @returns A Promise of RoutingPolicy
@@ -606,9 +562,7 @@ export class API extends ParentAPI {
606562
)
607563

608564
/**
609-
* Update a routing policy. Update an existing routing policy, specified by
610-
* its routing policy ID. Its name, tags and incoming/outgoing prefix filters
611-
* can be updated.
565+
* 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.
612566
*
613567
* @param request - The request {@link UpdateRoutingPolicyRequest}
614568
* @returns A Promise of RoutingPolicy
@@ -627,8 +581,7 @@ export class API extends ParentAPI {
627581
)
628582

629583
/**
630-
* Delete a routing policy. Delete an existing routing policy, specified by
631-
* its routing policy ID.
584+
* Delete a routing policy. Delete an existing routing policy, specified by its routing policy ID.
632585
*
633586
* @param request - The request {@link DeleteRoutingPolicyRequest}
634587
*/

packages/clients/src/api/interlink/v1beta1/marshalling.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ export const marshalCreateLinkRequest = (
288288
): Record<string, unknown> => ({
289289
bandwidth_mbps: request.bandwidthMbps,
290290
name: request.name,
291+
peer_asn: request.peerAsn,
291292
pop_id: request.popId,
292293
project_id: request.projectId ?? defaults.defaultProjectId,
293294
tags: request.tags,
@@ -313,6 +314,7 @@ export const marshalUpdateLinkRequest = (
313314
defaults: DefaultValues,
314315
): Record<string, unknown> => ({
315316
name: request.name,
317+
peer_asn: request.peerAsn,
316318
tags: request.tags,
317319
})
318320

0 commit comments

Comments
 (0)