@scaleway/sdk-interlink 1.1.0 → 1.2.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.
@@ -1,5 +1,5 @@
1
- import { API as ParentAPI } from '@scaleway/sdk-client';
2
1
  import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
2
+ import { API as ParentAPI } from '@scaleway/sdk-client';
3
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, UpdateLinkRequest, UpdateRoutingPolicyRequest } from './types.gen';
4
4
  /**
5
5
  * InterLink API.
@@ -216,6 +216,7 @@ const marshalCreateLinkRequest = (request, defaults) => ({
216
216
  pop_id: request.popId,
217
217
  project_id: request.projectId ?? defaults.defaultProjectId,
218
218
  tags: request.tags,
219
+ vlan: request.vlan,
219
220
  ...sdkClient.resolveOneOf([
220
221
  { param: "connection_id", value: request.connectionId },
221
222
  { param: "partner_id", value: request.partnerId }
@@ -214,6 +214,7 @@ const marshalCreateLinkRequest = (request, defaults) => ({
214
214
  pop_id: request.popId,
215
215
  project_id: request.projectId ?? defaults.defaultProjectId,
216
216
  tags: request.tags,
217
+ vlan: request.vlan,
217
218
  ...resolveOneOf([
218
219
  { param: "connection_id", value: request.connectionId },
219
220
  { param: "partner_id", value: request.partnerId }
@@ -373,6 +373,10 @@ export type CreateLinkRequest = {
373
373
  * For self-hosted links we need the peer AS Number to establish BGP session. If not given, a default one will be assigned.
374
374
  */
375
375
  peerAsn?: number;
376
+ /**
377
+ * 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
+ */
379
+ vlan?: number;
376
380
  };
377
381
  export type CreateRoutingPolicyRequest = {
378
382
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-interlink",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "Scaleway SDK interlink",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -26,17 +26,17 @@
26
26
  "directory": "packages_generated/interlink"
27
27
  },
28
28
  "engines": {
29
- "node": ">=20.19.1"
29
+ "node": ">=20.19.4"
30
30
  },
31
31
  "dependencies": {
32
- "@scaleway/random-name": "5.1.1",
33
- "@scaleway/sdk-std": "1.0.5"
32
+ "@scaleway/random-name": "5.1.2",
33
+ "@scaleway/sdk-std": "1.0.6"
34
34
  },
35
35
  "peerDependencies": {
36
- "@scaleway/sdk-client": "^1.3.0"
36
+ "@scaleway/sdk-client": "^1.3.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@scaleway/sdk-client": "^1.3.0"
39
+ "@scaleway/sdk-client": "^1.3.1"
40
40
  },
41
41
  "scripts": {
42
42
  "package:check": "pnpm publint",