@scaleway/sdk 2.58.0 → 2.60.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/api/applesilicon/v1alpha1/api.gen.cjs +117 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +54 -1
- package/dist/api/applesilicon/v1alpha1/api.gen.js +120 -3
- package/dist/api/applesilicon/v1alpha1/content.gen.cjs +4 -0
- package/dist/api/applesilicon/v1alpha1/content.gen.d.ts +5 -1
- package/dist/api/applesilicon/v1alpha1/content.gen.js +4 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.cjs +3 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +2 -2
- package/dist/api/applesilicon/v1alpha1/index.gen.js +5 -2
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +60 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.d.ts +6 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +60 -0
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +100 -0
- package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +12 -0
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +12 -0
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +9 -0
- package/dist/api/edge_services/v1alpha1/types.gen.d.ts +4 -4
- package/dist/api/iam/v1alpha1/api.gen.cjs +54 -0
- package/dist/api/iam/v1alpha1/api.gen.d.ts +26 -1
- package/dist/api/iam/v1alpha1/api.gen.js +55 -1
- package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +23 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +4 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.js +23 -0
- package/dist/api/iam/v1alpha1/types.gen.d.ts +29 -1
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +8 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +7 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +9 -1
- package/dist/api/index.gen.d.ts +2 -1
- package/dist/api/interlink/index.gen.cjs +4 -0
- package/dist/api/interlink/index.gen.d.ts +5 -0
- package/dist/api/interlink/index.gen.js +4 -0
- package/dist/api/interlink/v1beta1/api.gen.cjs +405 -0
- package/dist/api/interlink/v1beta1/api.gen.d.ts +208 -0
- package/dist/api/interlink/v1beta1/api.gen.js +405 -0
- package/dist/api/interlink/v1beta1/index.gen.cjs +6 -0
- package/dist/api/interlink/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/interlink/v1beta1/index.gen.js +6 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.cjs +180 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.d.ts +16 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.js +180 -0
- package/dist/api/interlink/v1beta1/types.gen.d.ts +455 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +107 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +93 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.js +107 -0
- package/dist/api/ipam/v1/api.gen.cjs +1 -0
- package/dist/api/ipam/v1/api.gen.js +1 -0
- package/dist/api/ipam/v1/types.gen.d.ts +12 -10
- package/dist/api/k8s/v1/api.gen.cjs +22 -20
- package/dist/api/k8s/v1/api.gen.d.ts +22 -20
- package/dist/api/k8s/v1/api.gen.js +22 -20
- package/dist/api/k8s/v1/marshalling.gen.cjs +2 -5
- package/dist/api/k8s/v1/marshalling.gen.js +2 -5
- package/dist/api/k8s/v1/types.gen.d.ts +65 -49
- package/dist/api/lb/v1/types.gen.d.ts +6 -6
- package/dist/api/marketplace/v2/types.gen.d.ts +5 -2
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +13 -1
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +8 -1
- package/dist/api/mongodb/v1alpha1/api.gen.js +13 -1
- package/dist/api/mongodb/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +11 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +8 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +7 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +8 -0
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +1 -0
- package/dist/api/secret/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/secret/v1beta1/types.gen.d.ts +2 -0
- package/dist/api/vpcgw/index.gen.cjs +2 -0
- package/dist/api/vpcgw/index.gen.d.ts +1 -0
- package/dist/api/vpcgw/index.gen.js +3 -1
- package/dist/api/vpcgw/v2/api.gen.cjs +518 -0
- package/dist/api/vpcgw/v2/api.gen.d.ts +267 -0
- package/dist/api/vpcgw/v2/api.gen.js +518 -0
- package/dist/api/vpcgw/v2/content.gen.cjs +15 -0
- package/dist/api/vpcgw/v2/content.gen.d.ts +5 -0
- package/dist/api/vpcgw/v2/content.gen.js +15 -0
- package/dist/api/vpcgw/v2/index.gen.cjs +7 -0
- package/dist/api/vpcgw/v2/index.gen.d.ts +3 -0
- package/dist/api/vpcgw/v2/index.gen.js +7 -0
- package/dist/api/vpcgw/v2/marshalling.gen.cjs +259 -0
- package/dist/api/vpcgw/v2/marshalling.gen.d.ts +22 -0
- package/dist/api/vpcgw/v2/marshalling.gen.js +259 -0
- package/dist/api/vpcgw/v2/types.gen.d.ts +452 -0
- package/dist/api/webhosting/v1/api.gen.cjs +20 -0
- package/dist/api/webhosting/v1/api.gen.d.ts +8 -1
- package/dist/api/webhosting/v1/api.gen.js +21 -1
- package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
- package/dist/api/webhosting/v1/marshalling.gen.cjs +30 -2
- package/dist/api/webhosting/v1/marshalling.gen.d.ts +2 -1
- package/dist/api/webhosting/v1/marshalling.gen.js +31 -3
- package/dist/api/webhosting/v1/types.gen.d.ts +50 -2
- package/dist/index.cjs +26 -24
- package/dist/index.js +26 -24
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
import type { Region } from '../../../bridge';
|
|
2
|
+
export type BgpStatus = 'unknown_bgp_status' | 'up' | 'down';
|
|
3
|
+
export type LinkStatus = 'unknown_link_status' | 'configuring' | 'failed' | 'requested' | 'refused' | 'expired' | 'provisioning' | 'active' | 'limited_connectivity' | 'all_down' | 'deprovisioning' | 'deleted' | 'locked';
|
|
4
|
+
export type ListLinksRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc';
|
|
5
|
+
export type ListPartnersRequestOrderBy = 'name_asc' | 'name_desc';
|
|
6
|
+
export type ListPopsRequestOrderBy = 'name_asc' | 'name_desc';
|
|
7
|
+
export type ListRoutingPoliciesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
8
|
+
export interface Link {
|
|
9
|
+
/** Unique identifier of the link. */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Project ID. */
|
|
12
|
+
projectId: string;
|
|
13
|
+
/** Organization ID. */
|
|
14
|
+
organizationId: string;
|
|
15
|
+
/** Name of the link. */
|
|
16
|
+
name: string;
|
|
17
|
+
/** List of tags associated with the link. */
|
|
18
|
+
tags: string[];
|
|
19
|
+
/** ID of the PoP where the link's corresponding port is located. */
|
|
20
|
+
popId: string;
|
|
21
|
+
/** ID of the partner facilitating this link. */
|
|
22
|
+
partnerId?: string;
|
|
23
|
+
/** Rate limited bandwidth of the link. */
|
|
24
|
+
bandwidthMbps: number;
|
|
25
|
+
/** Status of the link. */
|
|
26
|
+
status: LinkStatus;
|
|
27
|
+
/** Status of the link's BGP IPv4 session. */
|
|
28
|
+
bgpV4Status: BgpStatus;
|
|
29
|
+
/** Status of the link's BGP IPv6 session. */
|
|
30
|
+
bgpV6Status: BgpStatus;
|
|
31
|
+
/** ID of the Scaleway VPC attached to the link. */
|
|
32
|
+
vpcId?: string;
|
|
33
|
+
/** ID of the routing policy attached to the link. */
|
|
34
|
+
routingPolicyId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Defines whether route propagation is enabled or not. To enable or disable
|
|
37
|
+
* route propagation, use the dedicated endpoint.
|
|
38
|
+
*/
|
|
39
|
+
enableRoutePropagation: boolean;
|
|
40
|
+
/** Creation date of the link. */
|
|
41
|
+
createdAt?: Date;
|
|
42
|
+
/** Last modification date of the link. */
|
|
43
|
+
updatedAt?: Date;
|
|
44
|
+
/** Used to identify a link from a user or partner's point of view. */
|
|
45
|
+
pairingKey: string;
|
|
46
|
+
/** Region of the link. */
|
|
47
|
+
region: Region;
|
|
48
|
+
}
|
|
49
|
+
export interface Partner {
|
|
50
|
+
/** Unique identifier of the partner. */
|
|
51
|
+
id: string;
|
|
52
|
+
/** Name of the partner. */
|
|
53
|
+
name: string;
|
|
54
|
+
/** Contact email address of partner. */
|
|
55
|
+
contactEmail: string;
|
|
56
|
+
/** Image URL of the partner's logo. */
|
|
57
|
+
logoUrl: string;
|
|
58
|
+
/** URL of the partner's portal. */
|
|
59
|
+
portalUrl: string;
|
|
60
|
+
/** Creation date of the partner. */
|
|
61
|
+
createdAt?: Date;
|
|
62
|
+
/** Last modification date of the partner. */
|
|
63
|
+
updatedAt?: Date;
|
|
64
|
+
}
|
|
65
|
+
export interface Pop {
|
|
66
|
+
/** Unique identifier of the PoP. */
|
|
67
|
+
id: string;
|
|
68
|
+
/** Name of the PoP. It is the common reference of Hosting DC (ex: TH2). */
|
|
69
|
+
name: string;
|
|
70
|
+
/**
|
|
71
|
+
* Name of the PoP's hosting provider, e.g. Telehouse for TH2 or OpCore for
|
|
72
|
+
* DC3.
|
|
73
|
+
*/
|
|
74
|
+
hostingProviderName: string;
|
|
75
|
+
/** Physical address of the PoP. */
|
|
76
|
+
address: string;
|
|
77
|
+
/** City where PoP is located. */
|
|
78
|
+
city: string;
|
|
79
|
+
/** Image URL of the PoP's logo. */
|
|
80
|
+
logoUrl: string;
|
|
81
|
+
/**
|
|
82
|
+
* Available bandwidth in Mbits/s for future hosted_links from available ports
|
|
83
|
+
* in this PoP.
|
|
84
|
+
*/
|
|
85
|
+
availableLinkBandwidthsMbps: number[];
|
|
86
|
+
/** Region of the PoP. */
|
|
87
|
+
region: Region;
|
|
88
|
+
}
|
|
89
|
+
export interface RoutingPolicy {
|
|
90
|
+
/** Unique identifier of the routing policy. */
|
|
91
|
+
id: string;
|
|
92
|
+
/** Project ID. */
|
|
93
|
+
projectId: string;
|
|
94
|
+
/** Organization ID. */
|
|
95
|
+
organizationId: string;
|
|
96
|
+
/** Name of the routing policy. */
|
|
97
|
+
name: string;
|
|
98
|
+
/** List of tags associated with the routing policy. */
|
|
99
|
+
tags: string[];
|
|
100
|
+
/**
|
|
101
|
+
* IP prefixes to accept from the peer (ranges of route announcements to
|
|
102
|
+
* accept).
|
|
103
|
+
*/
|
|
104
|
+
prefixFilterIn: string[];
|
|
105
|
+
/** IP prefix filters to advertise to the peer (ranges of routes to advertise). */
|
|
106
|
+
prefixFilterOut: string[];
|
|
107
|
+
/** Creation date of the routing policy. */
|
|
108
|
+
createdAt?: Date;
|
|
109
|
+
/** Last modification date of the routing policy. */
|
|
110
|
+
updatedAt?: Date;
|
|
111
|
+
/** Region of the routing policy. */
|
|
112
|
+
region: Region;
|
|
113
|
+
}
|
|
114
|
+
export type AttachRoutingPolicyRequest = {
|
|
115
|
+
/**
|
|
116
|
+
* Region to target. If none is passed will use default region from the
|
|
117
|
+
* config.
|
|
118
|
+
*/
|
|
119
|
+
region?: Region;
|
|
120
|
+
/** ID of the link to attach a routing policy to. */
|
|
121
|
+
linkId: string;
|
|
122
|
+
/** ID of the routing policy to be attached. */
|
|
123
|
+
routingPolicyId: string;
|
|
124
|
+
};
|
|
125
|
+
export type AttachVpcRequest = {
|
|
126
|
+
/**
|
|
127
|
+
* Region to target. If none is passed will use default region from the
|
|
128
|
+
* config.
|
|
129
|
+
*/
|
|
130
|
+
region?: Region;
|
|
131
|
+
/** ID of the link to attach VPC to. */
|
|
132
|
+
linkId: string;
|
|
133
|
+
/** ID of the VPC to attach. */
|
|
134
|
+
vpcId: string;
|
|
135
|
+
};
|
|
136
|
+
export type CreateLinkRequest = {
|
|
137
|
+
/**
|
|
138
|
+
* Region to target. If none is passed will use default region from the
|
|
139
|
+
* config.
|
|
140
|
+
*/
|
|
141
|
+
region?: Region;
|
|
142
|
+
/** ID of the Project to create the link in. */
|
|
143
|
+
projectId?: string;
|
|
144
|
+
/** Name of the link. */
|
|
145
|
+
name: string;
|
|
146
|
+
/** List of tags to apply to the link. */
|
|
147
|
+
tags?: string[];
|
|
148
|
+
/** PoP (location) where the link will be created. */
|
|
149
|
+
popId: string;
|
|
150
|
+
/**
|
|
151
|
+
* Desired bandwidth for the link. Must be compatible with available link
|
|
152
|
+
* bandwidths and remaining bandwidth capacity of the port.
|
|
153
|
+
*/
|
|
154
|
+
bandwidthMbps: number;
|
|
155
|
+
/**
|
|
156
|
+
* If true, a dedicated link (1 link per port, dedicated to one customer) will
|
|
157
|
+
* be crated. It is not necessary to specify a `port_id` or `partner_id`. A
|
|
158
|
+
* new port will created and assigned to the link. Note that Scaleway has not
|
|
159
|
+
* yet enabled the creation of dedicated links, this field is reserved for
|
|
160
|
+
* future use.
|
|
161
|
+
*
|
|
162
|
+
* One-of ('linkKind'): at most one of 'dedicated', 'portId', 'partnerId'
|
|
163
|
+
* could be set.
|
|
164
|
+
*/
|
|
165
|
+
dedicated?: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* If set, a shared link (N links per port, one of which is this customer's
|
|
168
|
+
* port) will be created. As the customer, specify the ID of the port you
|
|
169
|
+
* already have for this link. Note that shared links are not currently
|
|
170
|
+
* available. Note that Scaleway has not yet enabled the creation of shared
|
|
171
|
+
* links, this field is reserved for future use.
|
|
172
|
+
*
|
|
173
|
+
* One-of ('linkKind'): at most one of 'dedicated', 'portId', 'partnerId'
|
|
174
|
+
* could be set.
|
|
175
|
+
*/
|
|
176
|
+
portId?: string;
|
|
177
|
+
/**
|
|
178
|
+
* If set, a hosted link (N links per port on a partner port) will be created.
|
|
179
|
+
* Specify the ID of the chosen partner, who already has a shareable port with
|
|
180
|
+
* available bandwidth. Note that this is currently the only type of link
|
|
181
|
+
* offered by Scaleway, and therefore this field must be set when creating a
|
|
182
|
+
* link.
|
|
183
|
+
*
|
|
184
|
+
* One-of ('linkKind'): at most one of 'dedicated', 'portId', 'partnerId'
|
|
185
|
+
* could be set.
|
|
186
|
+
*/
|
|
187
|
+
partnerId?: string;
|
|
188
|
+
};
|
|
189
|
+
export type CreateRoutingPolicyRequest = {
|
|
190
|
+
/**
|
|
191
|
+
* Region to target. If none is passed will use default region from the
|
|
192
|
+
* config.
|
|
193
|
+
*/
|
|
194
|
+
region?: Region;
|
|
195
|
+
/** ID of the Project to create the routing policy in. */
|
|
196
|
+
projectId?: string;
|
|
197
|
+
/** Name of the routing policy. */
|
|
198
|
+
name: string;
|
|
199
|
+
/** List of tags to apply to the routing policy. */
|
|
200
|
+
tags?: string[];
|
|
201
|
+
/**
|
|
202
|
+
* IP prefixes to accept from the peer (ranges of route announcements to
|
|
203
|
+
* accept).
|
|
204
|
+
*/
|
|
205
|
+
prefixFilterIn?: string[];
|
|
206
|
+
/** IP prefix filters to advertise to the peer (ranges of routes to advertise). */
|
|
207
|
+
prefixFilterOut?: string[];
|
|
208
|
+
};
|
|
209
|
+
export type DeleteLinkRequest = {
|
|
210
|
+
/**
|
|
211
|
+
* Region to target. If none is passed will use default region from the
|
|
212
|
+
* config.
|
|
213
|
+
*/
|
|
214
|
+
region?: Region;
|
|
215
|
+
/** ID of the link to delete. */
|
|
216
|
+
linkId: string;
|
|
217
|
+
};
|
|
218
|
+
export type DeleteRoutingPolicyRequest = {
|
|
219
|
+
/**
|
|
220
|
+
* Region to target. If none is passed will use default region from the
|
|
221
|
+
* config.
|
|
222
|
+
*/
|
|
223
|
+
region?: Region;
|
|
224
|
+
/** ID of the routing policy to delete. */
|
|
225
|
+
routingPolicyId: string;
|
|
226
|
+
};
|
|
227
|
+
export type DetachRoutingPolicyRequest = {
|
|
228
|
+
/**
|
|
229
|
+
* Region to target. If none is passed will use default region from the
|
|
230
|
+
* config.
|
|
231
|
+
*/
|
|
232
|
+
region?: Region;
|
|
233
|
+
/** ID of the link to detach a routing policy from. */
|
|
234
|
+
linkId: string;
|
|
235
|
+
};
|
|
236
|
+
export type DetachVpcRequest = {
|
|
237
|
+
/**
|
|
238
|
+
* Region to target. If none is passed will use default region from the
|
|
239
|
+
* config.
|
|
240
|
+
*/
|
|
241
|
+
region?: Region;
|
|
242
|
+
/** ID of the link to detach the VPC from. */
|
|
243
|
+
linkId: string;
|
|
244
|
+
};
|
|
245
|
+
export type DisableRoutePropagationRequest = {
|
|
246
|
+
/**
|
|
247
|
+
* Region to target. If none is passed will use default region from the
|
|
248
|
+
* config.
|
|
249
|
+
*/
|
|
250
|
+
region?: Region;
|
|
251
|
+
/** ID of the link on which to disable route propagation. */
|
|
252
|
+
linkId: string;
|
|
253
|
+
};
|
|
254
|
+
export type EnableRoutePropagationRequest = {
|
|
255
|
+
/**
|
|
256
|
+
* Region to target. If none is passed will use default region from the
|
|
257
|
+
* config.
|
|
258
|
+
*/
|
|
259
|
+
region?: Region;
|
|
260
|
+
/** ID of the link on which to enable route propagation. */
|
|
261
|
+
linkId: string;
|
|
262
|
+
};
|
|
263
|
+
export type GetLinkRequest = {
|
|
264
|
+
/**
|
|
265
|
+
* Region to target. If none is passed will use default region from the
|
|
266
|
+
* config.
|
|
267
|
+
*/
|
|
268
|
+
region?: Region;
|
|
269
|
+
/** ID of the link to get. */
|
|
270
|
+
linkId: string;
|
|
271
|
+
};
|
|
272
|
+
export type GetPartnerRequest = {
|
|
273
|
+
/**
|
|
274
|
+
* Region to target. If none is passed will use default region from the
|
|
275
|
+
* config.
|
|
276
|
+
*/
|
|
277
|
+
region?: Region;
|
|
278
|
+
/** ID of partner to get. */
|
|
279
|
+
partnerId: string;
|
|
280
|
+
};
|
|
281
|
+
export type GetPopRequest = {
|
|
282
|
+
/**
|
|
283
|
+
* Region to target. If none is passed will use default region from the
|
|
284
|
+
* config.
|
|
285
|
+
*/
|
|
286
|
+
region?: Region;
|
|
287
|
+
/** ID of PoP to get. */
|
|
288
|
+
popId: string;
|
|
289
|
+
};
|
|
290
|
+
export type GetRoutingPolicyRequest = {
|
|
291
|
+
/**
|
|
292
|
+
* Region to target. If none is passed will use default region from the
|
|
293
|
+
* config.
|
|
294
|
+
*/
|
|
295
|
+
region?: Region;
|
|
296
|
+
/** ID of the routing policy to get. */
|
|
297
|
+
routingPolicyId: string;
|
|
298
|
+
};
|
|
299
|
+
export type ListLinksRequest = {
|
|
300
|
+
/**
|
|
301
|
+
* Region to target. If none is passed will use default region from the
|
|
302
|
+
* config.
|
|
303
|
+
*/
|
|
304
|
+
region?: Region;
|
|
305
|
+
/** Order in which to return results. */
|
|
306
|
+
orderBy?: ListLinksRequestOrderBy;
|
|
307
|
+
/** Page number to return. */
|
|
308
|
+
page?: number;
|
|
309
|
+
/** Maximum number of links to return per page. */
|
|
310
|
+
pageSize?: number;
|
|
311
|
+
/** Project ID to filter for. */
|
|
312
|
+
projectId?: string;
|
|
313
|
+
/** Organization ID to filter for. */
|
|
314
|
+
organizationId?: string;
|
|
315
|
+
/** Link name to filter for. */
|
|
316
|
+
name?: string;
|
|
317
|
+
/** Tags to filter for. */
|
|
318
|
+
tags?: string[];
|
|
319
|
+
/** Link status to filter for. */
|
|
320
|
+
status?: LinkStatus;
|
|
321
|
+
/** BGP IPv4 status to filter for. */
|
|
322
|
+
bgpV4Status?: BgpStatus;
|
|
323
|
+
/** BGP IPv6 status to filter for. */
|
|
324
|
+
bgpV6Status?: BgpStatus;
|
|
325
|
+
/** Filter for links attached to this PoP (via ports). */
|
|
326
|
+
popId?: string;
|
|
327
|
+
/** Filter for link bandwidth (in Mbps). */
|
|
328
|
+
bandwidthMbps?: number;
|
|
329
|
+
/** Filter for links hosted by this partner. */
|
|
330
|
+
partnerId?: string;
|
|
331
|
+
/** Filter for links attached to this VPC. */
|
|
332
|
+
vpcId?: string;
|
|
333
|
+
/** Filter for links using this routing policy. */
|
|
334
|
+
routingPolicyId?: string;
|
|
335
|
+
/** Filter for the link with this pairing_key. */
|
|
336
|
+
pairingKey?: string;
|
|
337
|
+
};
|
|
338
|
+
export interface ListLinksResponse {
|
|
339
|
+
/** List of links on the current page. */
|
|
340
|
+
links: Link[];
|
|
341
|
+
/** Total number of links. */
|
|
342
|
+
totalCount: number;
|
|
343
|
+
}
|
|
344
|
+
export type ListPartnersRequest = {
|
|
345
|
+
/**
|
|
346
|
+
* Region to target. If none is passed will use default region from the
|
|
347
|
+
* config.
|
|
348
|
+
*/
|
|
349
|
+
region?: Region;
|
|
350
|
+
/** Order in which to return results. */
|
|
351
|
+
orderBy?: ListPartnersRequestOrderBy;
|
|
352
|
+
/** Page number to return. */
|
|
353
|
+
page?: number;
|
|
354
|
+
/** Maximum number of partners to return per page. */
|
|
355
|
+
pageSize?: number;
|
|
356
|
+
/** Filter for partners present (offering a port) in one of these PoPs. */
|
|
357
|
+
popIds?: string[];
|
|
358
|
+
};
|
|
359
|
+
export interface ListPartnersResponse {
|
|
360
|
+
/** List of partners on current page. */
|
|
361
|
+
partners: Partner[];
|
|
362
|
+
/** Total number of partners returned. */
|
|
363
|
+
totalCount: number;
|
|
364
|
+
}
|
|
365
|
+
export type ListPopsRequest = {
|
|
366
|
+
/**
|
|
367
|
+
* Region to target. If none is passed will use default region from the
|
|
368
|
+
* config.
|
|
369
|
+
*/
|
|
370
|
+
region?: Region;
|
|
371
|
+
/** Order in which to return results. */
|
|
372
|
+
orderBy?: ListPopsRequestOrderBy;
|
|
373
|
+
/** Page number to return. */
|
|
374
|
+
page?: number;
|
|
375
|
+
/** Maximum number of PoPs to return per page. */
|
|
376
|
+
pageSize?: number;
|
|
377
|
+
/** PoP name to filter for. */
|
|
378
|
+
name?: string;
|
|
379
|
+
/** Hosting provider name to filter for. */
|
|
380
|
+
hostingProviderName?: string;
|
|
381
|
+
/** Filter for PoPs hosting an available shared port from this partner. */
|
|
382
|
+
partnerId?: string;
|
|
383
|
+
/**
|
|
384
|
+
* Filter for PoPs with a shared port allowing this bandwidth size. Note that
|
|
385
|
+
* we cannot guarantee that PoPs returned will have available capacity.
|
|
386
|
+
*/
|
|
387
|
+
linkBandwidthMbps?: number;
|
|
388
|
+
};
|
|
389
|
+
export interface ListPopsResponse {
|
|
390
|
+
/** List of PoPs on the current page. */
|
|
391
|
+
pops: Pop[];
|
|
392
|
+
/** Total number of PoPs. */
|
|
393
|
+
totalCount: number;
|
|
394
|
+
}
|
|
395
|
+
export type ListRoutingPoliciesRequest = {
|
|
396
|
+
/**
|
|
397
|
+
* Region to target. If none is passed will use default region from the
|
|
398
|
+
* config.
|
|
399
|
+
*/
|
|
400
|
+
region?: Region;
|
|
401
|
+
/** Order in which to return results. */
|
|
402
|
+
orderBy?: ListRoutingPoliciesRequestOrderBy;
|
|
403
|
+
/** Page number to return. */
|
|
404
|
+
page?: number;
|
|
405
|
+
/** Maximum number of routing policies to return per page. */
|
|
406
|
+
pageSize?: number;
|
|
407
|
+
/** Project ID to filter for. */
|
|
408
|
+
projectId?: string;
|
|
409
|
+
/** Organization ID to filter for. */
|
|
410
|
+
organizationId?: string;
|
|
411
|
+
/** Routing policy name to filter for. */
|
|
412
|
+
name?: string;
|
|
413
|
+
/** Tags to filter for. */
|
|
414
|
+
tags?: string[];
|
|
415
|
+
};
|
|
416
|
+
export interface ListRoutingPoliciesResponse {
|
|
417
|
+
routingPolicies: RoutingPolicy[];
|
|
418
|
+
totalCount: number;
|
|
419
|
+
}
|
|
420
|
+
export type UpdateLinkRequest = {
|
|
421
|
+
/**
|
|
422
|
+
* Region to target. If none is passed will use default region from the
|
|
423
|
+
* config.
|
|
424
|
+
*/
|
|
425
|
+
region?: Region;
|
|
426
|
+
/** ID of the link to update. */
|
|
427
|
+
linkId: string;
|
|
428
|
+
/** Name of the link. */
|
|
429
|
+
name?: string;
|
|
430
|
+
/** List of tags to apply to the link. */
|
|
431
|
+
tags?: string[];
|
|
432
|
+
};
|
|
433
|
+
export type UpdateRoutingPolicyRequest = {
|
|
434
|
+
/**
|
|
435
|
+
* Region to target. If none is passed will use default region from the
|
|
436
|
+
* config.
|
|
437
|
+
*/
|
|
438
|
+
region?: Region;
|
|
439
|
+
/** ID of the routing policy to update. */
|
|
440
|
+
routingPolicyId: string;
|
|
441
|
+
/** Name of the routing policy. */
|
|
442
|
+
name?: string;
|
|
443
|
+
/** List of tags to apply to the routing policy. */
|
|
444
|
+
tags?: string[];
|
|
445
|
+
/**
|
|
446
|
+
* IP prefixes to accept from the peer (ranges of route announcements to
|
|
447
|
+
* accept).
|
|
448
|
+
*/
|
|
449
|
+
prefixFilterIn?: string[];
|
|
450
|
+
/**
|
|
451
|
+
* IP prefix filters for routes to advertise to the peer (ranges of routes to
|
|
452
|
+
* advertise).
|
|
453
|
+
*/
|
|
454
|
+
prefixFilterOut?: string[];
|
|
455
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const CreateLinkRequest = {
|
|
4
|
+
bandwidthMbps: {
|
|
5
|
+
greaterThanOrEqual: 1,
|
|
6
|
+
lessThanOrEqual: 1e8
|
|
7
|
+
},
|
|
8
|
+
name: {
|
|
9
|
+
maxLength: 255,
|
|
10
|
+
minLength: 1
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const CreateRoutingPolicyRequest = {
|
|
14
|
+
name: {
|
|
15
|
+
maxLength: 255,
|
|
16
|
+
minLength: 1
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const Link = {
|
|
20
|
+
name: {
|
|
21
|
+
minLength: 1
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const ListLinksRequest = {
|
|
25
|
+
page: {
|
|
26
|
+
greaterThanOrEqual: 1
|
|
27
|
+
},
|
|
28
|
+
pageSize: {
|
|
29
|
+
greaterThanOrEqual: 1,
|
|
30
|
+
lessThanOrEqual: 1e3
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const ListPartnersRequest = {
|
|
34
|
+
page: {
|
|
35
|
+
greaterThanOrEqual: 1
|
|
36
|
+
},
|
|
37
|
+
pageSize: {
|
|
38
|
+
greaterThanOrEqual: 1,
|
|
39
|
+
lessThanOrEqual: 1e3
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
const ListPopsRequest = {
|
|
43
|
+
page: {
|
|
44
|
+
greaterThanOrEqual: 1
|
|
45
|
+
},
|
|
46
|
+
pageSize: {
|
|
47
|
+
greaterThanOrEqual: 1,
|
|
48
|
+
lessThanOrEqual: 1e3
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
const ListRoutingPoliciesRequest = {
|
|
52
|
+
page: {
|
|
53
|
+
greaterThanOrEqual: 1
|
|
54
|
+
},
|
|
55
|
+
pageSize: {
|
|
56
|
+
greaterThanOrEqual: 1,
|
|
57
|
+
lessThanOrEqual: 1e3
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const Partner = {
|
|
61
|
+
name: {
|
|
62
|
+
minLength: 1
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
const Pop = {
|
|
66
|
+
address: {
|
|
67
|
+
minLength: 1
|
|
68
|
+
},
|
|
69
|
+
city: {
|
|
70
|
+
minLength: 1
|
|
71
|
+
},
|
|
72
|
+
hostingProviderName: {
|
|
73
|
+
minLength: 1
|
|
74
|
+
},
|
|
75
|
+
name: {
|
|
76
|
+
minLength: 1
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const RoutingPolicy = {
|
|
80
|
+
name: {
|
|
81
|
+
minLength: 1
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
const UpdateLinkRequest = {
|
|
85
|
+
name: {
|
|
86
|
+
maxLength: 255,
|
|
87
|
+
minLength: 1
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
const UpdateRoutingPolicyRequest = {
|
|
91
|
+
name: {
|
|
92
|
+
maxLength: 255,
|
|
93
|
+
minLength: 1
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
exports.CreateLinkRequest = CreateLinkRequest;
|
|
97
|
+
exports.CreateRoutingPolicyRequest = CreateRoutingPolicyRequest;
|
|
98
|
+
exports.Link = Link;
|
|
99
|
+
exports.ListLinksRequest = ListLinksRequest;
|
|
100
|
+
exports.ListPartnersRequest = ListPartnersRequest;
|
|
101
|
+
exports.ListPopsRequest = ListPopsRequest;
|
|
102
|
+
exports.ListRoutingPoliciesRequest = ListRoutingPoliciesRequest;
|
|
103
|
+
exports.Partner = Partner;
|
|
104
|
+
exports.Pop = Pop;
|
|
105
|
+
exports.RoutingPolicy = RoutingPolicy;
|
|
106
|
+
exports.UpdateLinkRequest = UpdateLinkRequest;
|
|
107
|
+
exports.UpdateRoutingPolicyRequest = UpdateRoutingPolicyRequest;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export declare const CreateLinkRequest: {
|
|
2
|
+
bandwidthMbps: {
|
|
3
|
+
greaterThanOrEqual: number;
|
|
4
|
+
lessThanOrEqual: number;
|
|
5
|
+
};
|
|
6
|
+
name: {
|
|
7
|
+
maxLength: number;
|
|
8
|
+
minLength: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const CreateRoutingPolicyRequest: {
|
|
12
|
+
name: {
|
|
13
|
+
maxLength: number;
|
|
14
|
+
minLength: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const Link: {
|
|
18
|
+
name: {
|
|
19
|
+
minLength: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const ListLinksRequest: {
|
|
23
|
+
page: {
|
|
24
|
+
greaterThanOrEqual: number;
|
|
25
|
+
};
|
|
26
|
+
pageSize: {
|
|
27
|
+
greaterThanOrEqual: number;
|
|
28
|
+
lessThanOrEqual: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const ListPartnersRequest: {
|
|
32
|
+
page: {
|
|
33
|
+
greaterThanOrEqual: number;
|
|
34
|
+
};
|
|
35
|
+
pageSize: {
|
|
36
|
+
greaterThanOrEqual: number;
|
|
37
|
+
lessThanOrEqual: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const ListPopsRequest: {
|
|
41
|
+
page: {
|
|
42
|
+
greaterThanOrEqual: number;
|
|
43
|
+
};
|
|
44
|
+
pageSize: {
|
|
45
|
+
greaterThanOrEqual: number;
|
|
46
|
+
lessThanOrEqual: number;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export declare const ListRoutingPoliciesRequest: {
|
|
50
|
+
page: {
|
|
51
|
+
greaterThanOrEqual: number;
|
|
52
|
+
};
|
|
53
|
+
pageSize: {
|
|
54
|
+
greaterThanOrEqual: number;
|
|
55
|
+
lessThanOrEqual: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export declare const Partner: {
|
|
59
|
+
name: {
|
|
60
|
+
minLength: number;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export declare const Pop: {
|
|
64
|
+
address: {
|
|
65
|
+
minLength: number;
|
|
66
|
+
};
|
|
67
|
+
city: {
|
|
68
|
+
minLength: number;
|
|
69
|
+
};
|
|
70
|
+
hostingProviderName: {
|
|
71
|
+
minLength: number;
|
|
72
|
+
};
|
|
73
|
+
name: {
|
|
74
|
+
minLength: number;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export declare const RoutingPolicy: {
|
|
78
|
+
name: {
|
|
79
|
+
minLength: number;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export declare const UpdateLinkRequest: {
|
|
83
|
+
name: {
|
|
84
|
+
maxLength: number;
|
|
85
|
+
minLength: number;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
export declare const UpdateRoutingPolicyRequest: {
|
|
89
|
+
name: {
|
|
90
|
+
maxLength: number;
|
|
91
|
+
minLength: number;
|
|
92
|
+
};
|
|
93
|
+
};
|