@scaleway/sdk-interlink 2.3.1 → 2.4.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/_virtual/_rolldown/runtime.js +2 -0
- package/dist/v1beta1/api.gen.js +5 -3
- package/dist/v1beta1/content.gen.js +4 -2
- package/dist/v1beta1/index.gen.js +3 -1
- package/dist/v1beta1/marshalling.gen.js +20 -18
- package/dist/v1beta1/metadata.gen.d.ts +112 -0
- package/dist/v1beta1/metadata.gen.js +125 -0
- package/dist/v1beta1/types.gen.js +0 -0
- package/dist/v1beta1/validation-rules.gen.js +17 -15
- package/package.json +5 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __exportAll = (all, no_symbols) => {
|
|
3
4
|
let target = {};
|
|
@@ -8,4 +9,5 @@ var __exportAll = (all, no_symbols) => {
|
|
|
8
9
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
9
10
|
return target;
|
|
10
11
|
};
|
|
12
|
+
//#endregion
|
|
11
13
|
export { __exportAll };
|
package/dist/v1beta1/api.gen.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { DEDICATED_CONNECTION_TRANSIENT_STATUSES, LINK_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
2
|
import { marshalAttachRoutingPolicyRequest, marshalAttachVpcRequest, marshalCreateLinkRequest, marshalCreateRoutingPolicyRequest, marshalDetachRoutingPolicyRequest, marshalSetRoutingPolicyRequest, marshalUpdateLinkRequest, marshalUpdateRoutingPolicyRequest, unmarshalDedicatedConnection, unmarshalLink, unmarshalListDedicatedConnectionsResponse, unmarshalListLinksResponse, unmarshalListPartnersResponse, unmarshalListPopsResponse, unmarshalListRoutingPoliciesResponse, unmarshalPartner, unmarshalPop, unmarshalRoutingPolicy } from "./marshalling.gen.js";
|
|
3
|
-
import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
3
|
+
import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
|
+
//#region src/v1beta1/api.gen.ts
|
|
4
5
|
var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
5
6
|
/**
|
|
6
7
|
* InterLink API.
|
|
7
8
|
|
|
8
9
|
This API allows you to manage your Scaleway InterLink, to connect your on-premises infrastructure with your Scaleway VPC.
|
|
9
10
|
*/
|
|
10
|
-
var API
|
|
11
|
+
var API = class extends API$1 {
|
|
11
12
|
/**
|
|
12
13
|
* Locality of this API.
|
|
13
14
|
* type ∈ {'zone','region','global','unspecified'}
|
|
@@ -295,4 +296,5 @@ var API$1 = class extends API {
|
|
|
295
296
|
path: `/interlink/v1beta1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routing-policies/${validatePathParam("routingPolicyId", request.routingPolicyId)}`
|
|
296
297
|
});
|
|
297
298
|
};
|
|
298
|
-
|
|
299
|
+
//#endregion
|
|
300
|
+
export { API };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
//#region src/v1beta1/content.gen.ts
|
|
1
2
|
/** Lists transient statutes of the enum {@link DedicatedConnectionStatus}. */
|
|
2
|
-
|
|
3
|
+
var DEDICATED_CONNECTION_TRANSIENT_STATUSES = ["configuring"];
|
|
3
4
|
/** Lists transient statutes of the enum {@link LinkStatus}. */
|
|
4
|
-
|
|
5
|
+
var LINK_TRANSIENT_STATUSES = ["configuring"];
|
|
6
|
+
//#endregion
|
|
5
7
|
export { DEDICATED_CONNECTION_TRANSIENT_STATUSES, LINK_TRANSIENT_STATUSES };
|
|
@@ -3,6 +3,7 @@ import { DEDICATED_CONNECTION_TRANSIENT_STATUSES, LINK_TRANSIENT_STATUSES } from
|
|
|
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
4
|
import { API } from "./api.gen.js";
|
|
5
5
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
|
+
//#region src/v1beta1/index.gen.ts
|
|
6
7
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
7
8
|
API: () => API,
|
|
8
9
|
DEDICATED_CONNECTION_TRANSIENT_STATUSES: () => DEDICATED_CONNECTION_TRANSIENT_STATUSES,
|
|
@@ -27,4 +28,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
27
28
|
unmarshalPop: () => unmarshalPop,
|
|
28
29
|
unmarshalRoutingPolicy: () => unmarshalRoutingPolicy
|
|
29
30
|
});
|
|
30
|
-
|
|
31
|
+
//#endregion
|
|
32
|
+
export { API, DEDICATED_CONNECTION_TRANSIENT_STATUSES, LINK_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalAttachRoutingPolicyRequest, marshalAttachVpcRequest, marshalCreateLinkRequest, marshalCreateRoutingPolicyRequest, marshalDetachRoutingPolicyRequest, marshalSetRoutingPolicyRequest, marshalUpdateLinkRequest, marshalUpdateRoutingPolicyRequest, unmarshalDedicatedConnection, unmarshalLink, unmarshalListDedicatedConnectionsResponse, unmarshalListLinksResponse, unmarshalListPartnersResponse, unmarshalListPopsResponse, unmarshalListRoutingPoliciesResponse, unmarshalPartner, unmarshalPop, unmarshalRoutingPolicy };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
|
+
//#region src/v1beta1/marshalling.gen.ts
|
|
2
3
|
var unmarshalRange = (data) => {
|
|
3
4
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Range' failed as data isn't a dictionary.`);
|
|
4
5
|
return {
|
|
@@ -6,7 +7,7 @@ var unmarshalRange = (data) => {
|
|
|
6
7
|
start: data.start
|
|
7
8
|
};
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
+
var unmarshalDedicatedConnection = (data) => {
|
|
10
11
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DedicatedConnection' failed as data isn't a dictionary.`);
|
|
11
12
|
return {
|
|
12
13
|
availableLinkBandwidths: data.available_link_bandwidths,
|
|
@@ -45,7 +46,7 @@ var unmarshalSelfHost = (data) => {
|
|
|
45
46
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SelfHost' failed as data isn't a dictionary.`);
|
|
46
47
|
return { connectionId: data.connection_id };
|
|
47
48
|
};
|
|
48
|
-
|
|
49
|
+
var unmarshalLink = (data) => {
|
|
49
50
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Link' failed as data isn't a dictionary.`);
|
|
50
51
|
return {
|
|
51
52
|
bandwidthMbps: data.bandwidth_mbps,
|
|
@@ -73,7 +74,7 @@ const unmarshalLink = (data) => {
|
|
|
73
74
|
vpcId: data.vpc_id
|
|
74
75
|
};
|
|
75
76
|
};
|
|
76
|
-
|
|
77
|
+
var unmarshalPartner = (data) => {
|
|
77
78
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Partner' failed as data isn't a dictionary.`);
|
|
78
79
|
return {
|
|
79
80
|
contactEmail: data.contact_email,
|
|
@@ -85,7 +86,7 @@ const unmarshalPartner = (data) => {
|
|
|
85
86
|
updatedAt: unmarshalDate(data.updated_at)
|
|
86
87
|
};
|
|
87
88
|
};
|
|
88
|
-
|
|
89
|
+
var unmarshalPop = (data) => {
|
|
89
90
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Pop' failed as data isn't a dictionary.`);
|
|
90
91
|
return {
|
|
91
92
|
address: data.address,
|
|
@@ -99,7 +100,7 @@ const unmarshalPop = (data) => {
|
|
|
99
100
|
region: data.region
|
|
100
101
|
};
|
|
101
102
|
};
|
|
102
|
-
|
|
103
|
+
var unmarshalRoutingPolicy = (data) => {
|
|
103
104
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RoutingPolicy' failed as data isn't a dictionary.`);
|
|
104
105
|
return {
|
|
105
106
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -115,44 +116,44 @@ const unmarshalRoutingPolicy = (data) => {
|
|
|
115
116
|
updatedAt: unmarshalDate(data.updated_at)
|
|
116
117
|
};
|
|
117
118
|
};
|
|
118
|
-
|
|
119
|
+
var unmarshalListDedicatedConnectionsResponse = (data) => {
|
|
119
120
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDedicatedConnectionsResponse' failed as data isn't a dictionary.`);
|
|
120
121
|
return {
|
|
121
122
|
connections: unmarshalArrayOfObject(data.connections, unmarshalDedicatedConnection),
|
|
122
123
|
totalCount: data.total_count
|
|
123
124
|
};
|
|
124
125
|
};
|
|
125
|
-
|
|
126
|
+
var unmarshalListLinksResponse = (data) => {
|
|
126
127
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListLinksResponse' failed as data isn't a dictionary.`);
|
|
127
128
|
return {
|
|
128
129
|
links: unmarshalArrayOfObject(data.links, unmarshalLink),
|
|
129
130
|
totalCount: data.total_count
|
|
130
131
|
};
|
|
131
132
|
};
|
|
132
|
-
|
|
133
|
+
var unmarshalListPartnersResponse = (data) => {
|
|
133
134
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPartnersResponse' failed as data isn't a dictionary.`);
|
|
134
135
|
return {
|
|
135
136
|
partners: unmarshalArrayOfObject(data.partners, unmarshalPartner),
|
|
136
137
|
totalCount: data.total_count
|
|
137
138
|
};
|
|
138
139
|
};
|
|
139
|
-
|
|
140
|
+
var unmarshalListPopsResponse = (data) => {
|
|
140
141
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPopsResponse' failed as data isn't a dictionary.`);
|
|
141
142
|
return {
|
|
142
143
|
pops: unmarshalArrayOfObject(data.pops, unmarshalPop),
|
|
143
144
|
totalCount: data.total_count
|
|
144
145
|
};
|
|
145
146
|
};
|
|
146
|
-
|
|
147
|
+
var unmarshalListRoutingPoliciesResponse = (data) => {
|
|
147
148
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRoutingPoliciesResponse' failed as data isn't a dictionary.`);
|
|
148
149
|
return {
|
|
149
150
|
routingPolicies: unmarshalArrayOfObject(data.routing_policies, unmarshalRoutingPolicy),
|
|
150
151
|
totalCount: data.total_count
|
|
151
152
|
};
|
|
152
153
|
};
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
var marshalAttachRoutingPolicyRequest = (request, defaults) => ({ routing_policy_id: request.routingPolicyId });
|
|
155
|
+
var marshalAttachVpcRequest = (request, defaults) => ({ vpc_id: request.vpcId });
|
|
156
|
+
var marshalCreateLinkRequest = (request, defaults) => ({
|
|
156
157
|
bandwidth_mbps: request.bandwidthMbps,
|
|
157
158
|
name: request.name,
|
|
158
159
|
peer_asn: request.peerAsn,
|
|
@@ -170,7 +171,7 @@ const marshalCreateLinkRequest = (request, defaults) => ({
|
|
|
170
171
|
value: request.partnerId
|
|
171
172
|
}])
|
|
172
173
|
});
|
|
173
|
-
|
|
174
|
+
var marshalCreateRoutingPolicyRequest = (request, defaults) => ({
|
|
174
175
|
is_ipv6: request.isIpv6,
|
|
175
176
|
name: request.name,
|
|
176
177
|
prefix_filter_in: request.prefixFilterIn,
|
|
@@ -178,17 +179,18 @@ const marshalCreateRoutingPolicyRequest = (request, defaults) => ({
|
|
|
178
179
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
179
180
|
tags: request.tags
|
|
180
181
|
});
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
var marshalDetachRoutingPolicyRequest = (request, defaults) => ({ routing_policy_id: request.routingPolicyId });
|
|
183
|
+
var marshalSetRoutingPolicyRequest = (request, defaults) => ({ routing_policy_id: request.routingPolicyId });
|
|
184
|
+
var marshalUpdateLinkRequest = (request, defaults) => ({
|
|
184
185
|
name: request.name,
|
|
185
186
|
peer_asn: request.peerAsn,
|
|
186
187
|
tags: request.tags
|
|
187
188
|
});
|
|
188
|
-
|
|
189
|
+
var marshalUpdateRoutingPolicyRequest = (request, defaults) => ({
|
|
189
190
|
name: request.name,
|
|
190
191
|
prefix_filter_in: request.prefixFilterIn,
|
|
191
192
|
prefix_filter_out: request.prefixFilterOut,
|
|
192
193
|
tags: request.tags
|
|
193
194
|
});
|
|
195
|
+
//#endregion
|
|
194
196
|
export { marshalAttachRoutingPolicyRequest, marshalAttachVpcRequest, marshalCreateLinkRequest, marshalCreateRoutingPolicyRequest, marshalDetachRoutingPolicyRequest, marshalSetRoutingPolicyRequest, marshalUpdateLinkRequest, marshalUpdateRoutingPolicyRequest, unmarshalDedicatedConnection, unmarshalLink, unmarshalListDedicatedConnectionsResponse, unmarshalListLinksResponse, unmarshalListPartnersResponse, unmarshalListPopsResponse, unmarshalListRoutingPoliciesResponse, unmarshalPartner, unmarshalPop, unmarshalRoutingPolicy };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export declare const queriesMetadata: {
|
|
2
|
+
readonly namespace: "interlink";
|
|
3
|
+
readonly version: "v1beta1";
|
|
4
|
+
readonly folderName: "interlinkv1beta1";
|
|
5
|
+
readonly services: readonly [{
|
|
6
|
+
readonly apiClass: "API";
|
|
7
|
+
readonly methods: readonly [{
|
|
8
|
+
readonly methodName: "listDedicatedConnections";
|
|
9
|
+
readonly protoName: "ListDedicatedConnections";
|
|
10
|
+
readonly paramsType: "ListDedicatedConnectionsRequest";
|
|
11
|
+
readonly returnType: "ListDedicatedConnectionsResponse";
|
|
12
|
+
readonly isList: true;
|
|
13
|
+
readonly paginationType: "offset";
|
|
14
|
+
readonly pageParamKey: "page";
|
|
15
|
+
readonly listItemType: "DedicatedConnection";
|
|
16
|
+
readonly isPrivate: false;
|
|
17
|
+
readonly description: "\"";
|
|
18
|
+
}, {
|
|
19
|
+
readonly methodName: "getDedicatedConnection";
|
|
20
|
+
readonly protoName: "GetDedicatedConnection";
|
|
21
|
+
readonly paramsType: "GetDedicatedConnectionRequest";
|
|
22
|
+
readonly returnType: "DedicatedConnection";
|
|
23
|
+
readonly isList: false;
|
|
24
|
+
readonly paginationType: "none";
|
|
25
|
+
readonly isPrivate: false;
|
|
26
|
+
readonly description: "\"";
|
|
27
|
+
readonly hasWaiter: true;
|
|
28
|
+
}, {
|
|
29
|
+
readonly methodName: "listPartners";
|
|
30
|
+
readonly protoName: "ListPartners";
|
|
31
|
+
readonly paramsType: "ListPartnersRequest";
|
|
32
|
+
readonly returnType: "ListPartnersResponse";
|
|
33
|
+
readonly isList: true;
|
|
34
|
+
readonly paginationType: "offset";
|
|
35
|
+
readonly pageParamKey: "page";
|
|
36
|
+
readonly listItemType: "Partner";
|
|
37
|
+
readonly isPrivate: false;
|
|
38
|
+
readonly description: "\"";
|
|
39
|
+
}, {
|
|
40
|
+
readonly methodName: "getPartner";
|
|
41
|
+
readonly protoName: "GetPartner";
|
|
42
|
+
readonly paramsType: "GetPartnerRequest";
|
|
43
|
+
readonly returnType: "Partner";
|
|
44
|
+
readonly isList: false;
|
|
45
|
+
readonly paginationType: "none";
|
|
46
|
+
readonly isPrivate: false;
|
|
47
|
+
readonly description: "\"";
|
|
48
|
+
}, {
|
|
49
|
+
readonly methodName: "listPops";
|
|
50
|
+
readonly protoName: "ListPops";
|
|
51
|
+
readonly paramsType: "ListPopsRequest";
|
|
52
|
+
readonly returnType: "ListPopsResponse";
|
|
53
|
+
readonly isList: true;
|
|
54
|
+
readonly paginationType: "offset";
|
|
55
|
+
readonly pageParamKey: "page";
|
|
56
|
+
readonly listItemType: "Pop";
|
|
57
|
+
readonly isPrivate: false;
|
|
58
|
+
readonly description: "\"";
|
|
59
|
+
}, {
|
|
60
|
+
readonly methodName: "getPop";
|
|
61
|
+
readonly protoName: "GetPop";
|
|
62
|
+
readonly paramsType: "GetPopRequest";
|
|
63
|
+
readonly returnType: "Pop";
|
|
64
|
+
readonly isList: false;
|
|
65
|
+
readonly paginationType: "none";
|
|
66
|
+
readonly isPrivate: false;
|
|
67
|
+
readonly description: "\"";
|
|
68
|
+
}, {
|
|
69
|
+
readonly methodName: "listLinks";
|
|
70
|
+
readonly protoName: "ListLinks";
|
|
71
|
+
readonly paramsType: "ListLinksRequest";
|
|
72
|
+
readonly returnType: "ListLinksResponse";
|
|
73
|
+
readonly isList: true;
|
|
74
|
+
readonly paginationType: "offset";
|
|
75
|
+
readonly pageParamKey: "page";
|
|
76
|
+
readonly listItemType: "Link";
|
|
77
|
+
readonly isPrivate: false;
|
|
78
|
+
readonly description: "\"";
|
|
79
|
+
}, {
|
|
80
|
+
readonly methodName: "getLink";
|
|
81
|
+
readonly protoName: "GetLink";
|
|
82
|
+
readonly paramsType: "GetLinkRequest";
|
|
83
|
+
readonly returnType: "Link";
|
|
84
|
+
readonly isList: false;
|
|
85
|
+
readonly paginationType: "none";
|
|
86
|
+
readonly isPrivate: false;
|
|
87
|
+
readonly description: "\"";
|
|
88
|
+
readonly hasWaiter: true;
|
|
89
|
+
}, {
|
|
90
|
+
readonly methodName: "listRoutingPolicies";
|
|
91
|
+
readonly protoName: "ListRoutingPolicies";
|
|
92
|
+
readonly paramsType: "ListRoutingPoliciesRequest";
|
|
93
|
+
readonly returnType: "ListRoutingPoliciesResponse";
|
|
94
|
+
readonly isList: true;
|
|
95
|
+
readonly paginationType: "offset";
|
|
96
|
+
readonly pageParamKey: "page";
|
|
97
|
+
readonly listItemType: "RoutingPolicy";
|
|
98
|
+
readonly isPrivate: false;
|
|
99
|
+
readonly description: "\"";
|
|
100
|
+
}, {
|
|
101
|
+
readonly methodName: "getRoutingPolicy";
|
|
102
|
+
readonly protoName: "GetRoutingPolicy";
|
|
103
|
+
readonly paramsType: "GetRoutingPolicyRequest";
|
|
104
|
+
readonly returnType: "RoutingPolicy";
|
|
105
|
+
readonly isList: false;
|
|
106
|
+
readonly paginationType: "none";
|
|
107
|
+
readonly isPrivate: false;
|
|
108
|
+
readonly description: "\"";
|
|
109
|
+
}];
|
|
110
|
+
}];
|
|
111
|
+
};
|
|
112
|
+
export type QueriesMetadata = typeof queriesMetadata;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
//#region src/v1beta1/metadata.gen.ts
|
|
2
|
+
var queriesMetadata = {
|
|
3
|
+
namespace: "interlink",
|
|
4
|
+
version: "v1beta1",
|
|
5
|
+
folderName: "interlinkv1beta1",
|
|
6
|
+
services: [{
|
|
7
|
+
apiClass: "API",
|
|
8
|
+
methods: [
|
|
9
|
+
{
|
|
10
|
+
methodName: "listDedicatedConnections",
|
|
11
|
+
protoName: "ListDedicatedConnections",
|
|
12
|
+
paramsType: "ListDedicatedConnectionsRequest",
|
|
13
|
+
returnType: "ListDedicatedConnectionsResponse",
|
|
14
|
+
isList: true,
|
|
15
|
+
paginationType: "offset",
|
|
16
|
+
pageParamKey: "page",
|
|
17
|
+
listItemType: "DedicatedConnection",
|
|
18
|
+
isPrivate: false,
|
|
19
|
+
description: "\""
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
methodName: "getDedicatedConnection",
|
|
23
|
+
protoName: "GetDedicatedConnection",
|
|
24
|
+
paramsType: "GetDedicatedConnectionRequest",
|
|
25
|
+
returnType: "DedicatedConnection",
|
|
26
|
+
isList: false,
|
|
27
|
+
paginationType: "none",
|
|
28
|
+
isPrivate: false,
|
|
29
|
+
description: "\"",
|
|
30
|
+
hasWaiter: true
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
methodName: "listPartners",
|
|
34
|
+
protoName: "ListPartners",
|
|
35
|
+
paramsType: "ListPartnersRequest",
|
|
36
|
+
returnType: "ListPartnersResponse",
|
|
37
|
+
isList: true,
|
|
38
|
+
paginationType: "offset",
|
|
39
|
+
pageParamKey: "page",
|
|
40
|
+
listItemType: "Partner",
|
|
41
|
+
isPrivate: false,
|
|
42
|
+
description: "\""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
methodName: "getPartner",
|
|
46
|
+
protoName: "GetPartner",
|
|
47
|
+
paramsType: "GetPartnerRequest",
|
|
48
|
+
returnType: "Partner",
|
|
49
|
+
isList: false,
|
|
50
|
+
paginationType: "none",
|
|
51
|
+
isPrivate: false,
|
|
52
|
+
description: "\""
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
methodName: "listPops",
|
|
56
|
+
protoName: "ListPops",
|
|
57
|
+
paramsType: "ListPopsRequest",
|
|
58
|
+
returnType: "ListPopsResponse",
|
|
59
|
+
isList: true,
|
|
60
|
+
paginationType: "offset",
|
|
61
|
+
pageParamKey: "page",
|
|
62
|
+
listItemType: "Pop",
|
|
63
|
+
isPrivate: false,
|
|
64
|
+
description: "\""
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
methodName: "getPop",
|
|
68
|
+
protoName: "GetPop",
|
|
69
|
+
paramsType: "GetPopRequest",
|
|
70
|
+
returnType: "Pop",
|
|
71
|
+
isList: false,
|
|
72
|
+
paginationType: "none",
|
|
73
|
+
isPrivate: false,
|
|
74
|
+
description: "\""
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
methodName: "listLinks",
|
|
78
|
+
protoName: "ListLinks",
|
|
79
|
+
paramsType: "ListLinksRequest",
|
|
80
|
+
returnType: "ListLinksResponse",
|
|
81
|
+
isList: true,
|
|
82
|
+
paginationType: "offset",
|
|
83
|
+
pageParamKey: "page",
|
|
84
|
+
listItemType: "Link",
|
|
85
|
+
isPrivate: false,
|
|
86
|
+
description: "\""
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
methodName: "getLink",
|
|
90
|
+
protoName: "GetLink",
|
|
91
|
+
paramsType: "GetLinkRequest",
|
|
92
|
+
returnType: "Link",
|
|
93
|
+
isList: false,
|
|
94
|
+
paginationType: "none",
|
|
95
|
+
isPrivate: false,
|
|
96
|
+
description: "\"",
|
|
97
|
+
hasWaiter: true
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
methodName: "listRoutingPolicies",
|
|
101
|
+
protoName: "ListRoutingPolicies",
|
|
102
|
+
paramsType: "ListRoutingPoliciesRequest",
|
|
103
|
+
returnType: "ListRoutingPoliciesResponse",
|
|
104
|
+
isList: true,
|
|
105
|
+
paginationType: "offset",
|
|
106
|
+
pageParamKey: "page",
|
|
107
|
+
listItemType: "RoutingPolicy",
|
|
108
|
+
isPrivate: false,
|
|
109
|
+
description: "\""
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
methodName: "getRoutingPolicy",
|
|
113
|
+
protoName: "GetRoutingPolicy",
|
|
114
|
+
paramsType: "GetRoutingPolicyRequest",
|
|
115
|
+
returnType: "RoutingPolicy",
|
|
116
|
+
isList: false,
|
|
117
|
+
paginationType: "none",
|
|
118
|
+
isPrivate: false,
|
|
119
|
+
description: "\""
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
}]
|
|
123
|
+
};
|
|
124
|
+
//#endregion
|
|
125
|
+
export { queriesMetadata };
|
|
File without changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region src/v1beta1/validation-rules.gen.ts
|
|
2
3
|
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
3
4
|
BgpConfig: () => BgpConfig,
|
|
4
5
|
CreateLinkRequest: () => CreateLinkRequest,
|
|
@@ -15,11 +16,11 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
15
16
|
UpdateLinkRequest: () => UpdateLinkRequest,
|
|
16
17
|
UpdateRoutingPolicyRequest: () => UpdateRoutingPolicyRequest
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
+
var BgpConfig = { asn: {
|
|
19
20
|
greaterThanOrEqual: 1,
|
|
20
21
|
lessThanOrEqual: 65534
|
|
21
22
|
} };
|
|
22
|
-
|
|
23
|
+
var CreateLinkRequest = {
|
|
23
24
|
bandwidthMbps: {
|
|
24
25
|
greaterThanOrEqual: 1,
|
|
25
26
|
lessThanOrEqual: 1e8
|
|
@@ -33,56 +34,56 @@ const CreateLinkRequest = {
|
|
|
33
34
|
lessThanOrEqual: 65534
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
|
-
|
|
37
|
+
var CreateRoutingPolicyRequest = { name: {
|
|
37
38
|
maxLength: 255,
|
|
38
39
|
minLength: 1
|
|
39
40
|
} };
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
var Link = { name: { minLength: 1 } };
|
|
42
|
+
var ListDedicatedConnectionsRequest = {
|
|
42
43
|
page: { greaterThanOrEqual: 1 },
|
|
43
44
|
pageSize: {
|
|
44
45
|
greaterThanOrEqual: 1,
|
|
45
46
|
lessThanOrEqual: 1e3
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
|
-
|
|
49
|
+
var ListLinksRequest = {
|
|
49
50
|
page: { greaterThanOrEqual: 1 },
|
|
50
51
|
pageSize: {
|
|
51
52
|
greaterThanOrEqual: 1,
|
|
52
53
|
lessThanOrEqual: 1e3
|
|
53
54
|
}
|
|
54
55
|
};
|
|
55
|
-
|
|
56
|
+
var ListPartnersRequest = {
|
|
56
57
|
page: { greaterThanOrEqual: 1 },
|
|
57
58
|
pageSize: {
|
|
58
59
|
greaterThanOrEqual: 1,
|
|
59
60
|
lessThanOrEqual: 1e3
|
|
60
61
|
}
|
|
61
62
|
};
|
|
62
|
-
|
|
63
|
+
var ListPopsRequest = {
|
|
63
64
|
page: { greaterThanOrEqual: 1 },
|
|
64
65
|
pageSize: {
|
|
65
66
|
greaterThanOrEqual: 1,
|
|
66
67
|
lessThanOrEqual: 1e3
|
|
67
68
|
}
|
|
68
69
|
};
|
|
69
|
-
|
|
70
|
+
var ListRoutingPoliciesRequest = {
|
|
70
71
|
page: { greaterThanOrEqual: 1 },
|
|
71
72
|
pageSize: {
|
|
72
73
|
greaterThanOrEqual: 1,
|
|
73
74
|
lessThanOrEqual: 1e3
|
|
74
75
|
}
|
|
75
76
|
};
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
var Partner = { name: { minLength: 1 } };
|
|
78
|
+
var Pop = {
|
|
78
79
|
address: { minLength: 1 },
|
|
79
80
|
city: { minLength: 1 },
|
|
80
81
|
displayName: { minLength: 1 },
|
|
81
82
|
hostingProviderName: { minLength: 1 },
|
|
82
83
|
name: { minLength: 1 }
|
|
83
84
|
};
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
var RoutingPolicy = { name: { minLength: 1 } };
|
|
86
|
+
var UpdateLinkRequest = {
|
|
86
87
|
name: {
|
|
87
88
|
maxLength: 255,
|
|
88
89
|
minLength: 1
|
|
@@ -92,8 +93,9 @@ const UpdateLinkRequest = {
|
|
|
92
93
|
lessThanOrEqual: 65534
|
|
93
94
|
}
|
|
94
95
|
};
|
|
95
|
-
|
|
96
|
+
var UpdateRoutingPolicyRequest = { name: {
|
|
96
97
|
maxLength: 255,
|
|
97
98
|
minLength: 1
|
|
98
99
|
} };
|
|
99
|
-
|
|
100
|
+
//#endregion
|
|
101
|
+
export { BgpConfig, CreateLinkRequest, CreateRoutingPolicyRequest, Link, ListDedicatedConnectionsRequest, ListLinksRequest, ListPartnersRequest, ListPopsRequest, ListRoutingPoliciesRequest, Partner, Pop, RoutingPolicy, UpdateLinkRequest, UpdateRoutingPolicyRequest, validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-interlink",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Scaleway SDK interlink",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"node": ">=20.19.6"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@scaleway/random-name": "5.1.
|
|
30
|
-
"@scaleway/sdk-std": "2.2.
|
|
29
|
+
"@scaleway/random-name": "5.1.4",
|
|
30
|
+
"@scaleway/sdk-std": "2.2.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@scaleway/sdk-client": "^2.2.
|
|
33
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^2.2.
|
|
36
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"package:check": "pnpm publint",
|