@scaleway/sdk-vpcgw 2.8.0 → 2.8.2
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/LICENSE +191 -0
- package/package.json +8 -7
- package/dist/.vite/license.md +0 -3
- package/dist/_virtual/_rolldown/runtime.js +0 -13
- package/dist/index.gen.d.ts +0 -5
- package/dist/index.gen.js +0 -2
- package/dist/metadata.gen.d.ts +0 -12
- package/dist/metadata.gen.js +0 -13
- package/dist/v2/api.gen.d.ts +0 -233
- package/dist/v2/api.gen.js +0 -175
- package/dist/v2/content.gen.d.ts +0 -5
- package/dist/v2/content.gen.js +0 -16
- package/dist/v2/index.gen.d.ts +0 -4
- package/dist/v2/index.gen.js +0 -36
- package/dist/v2/marshalling.gen.d.ts +0 -26
- package/dist/v2/marshalling.gen.js +0 -191
- package/dist/v2/metadata.gen.d.ts +0 -101
- package/dist/v2/metadata.gen.js +0 -113
- package/dist/v2/types.gen.d.ts +0 -838
- package/dist/v2/types.gen.js +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
https://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
Copyright 2019 Scaleway.
|
|
180
|
+
|
|
181
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
+
you may not use this file except in compliance with the License.
|
|
183
|
+
You may obtain a copy of the License at
|
|
184
|
+
|
|
185
|
+
https://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
+
|
|
187
|
+
Unless required by applicable law or agreed to in writing, software
|
|
188
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
+
See the License for the specific language governing permissions and
|
|
191
|
+
limitations under the License.
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-vpcgw",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.2",
|
|
4
4
|
"description": "Scaleway SDK vpcgw",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
+
"url": "https://github.com/scaleway/scaleway-sdk-js.git",
|
|
8
9
|
"directory": "packages_generated/vpcgw"
|
|
9
10
|
},
|
|
10
11
|
"files": [
|
|
@@ -31,23 +32,23 @@
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@scaleway/random-name": "
|
|
35
|
-
"@scaleway/sdk-std": "2.4.
|
|
35
|
+
"@scaleway/random-name": "6.0.2",
|
|
36
|
+
"@scaleway/sdk-std": "2.4.4"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@repo/configs": "^0.1.1",
|
|
39
|
-
"@scaleway/sdk-client": "^2.
|
|
40
|
+
"@scaleway/sdk-client": "^2.5.0"
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
42
|
-
"@scaleway/sdk-client": "^2.
|
|
43
|
+
"@scaleway/sdk-client": "^2.5.0"
|
|
43
44
|
},
|
|
44
45
|
"engines": {
|
|
45
46
|
"node": ">=20.20.2"
|
|
46
47
|
},
|
|
47
48
|
"scripts": {
|
|
48
49
|
"package:check": "pnpm publint",
|
|
49
|
-
"typecheck": "
|
|
50
|
-
"type:generate": "
|
|
50
|
+
"typecheck": "tsc --noEmit",
|
|
51
|
+
"type:generate": "tsc --declaration -p tsconfig.build.json",
|
|
51
52
|
"build": "vite build --config vite.config.ts && pnpm run type:generate",
|
|
52
53
|
"build:profile": "npx vite-bundle-visualizer -c vite.config.ts"
|
|
53
54
|
}
|
package/dist/.vite/license.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __exportAll = (all, no_symbols) => {
|
|
4
|
-
let target = {};
|
|
5
|
-
for (var name in all) __defProp(target, name, {
|
|
6
|
-
get: all[name],
|
|
7
|
-
enumerable: true
|
|
8
|
-
});
|
|
9
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
-
return target;
|
|
11
|
-
};
|
|
12
|
-
//#endregion
|
|
13
|
-
export { __exportAll };
|
package/dist/index.gen.d.ts
DELETED
package/dist/index.gen.js
DELETED
package/dist/metadata.gen.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is automatically generated
|
|
3
|
-
* PLEASE DO NOT EDIT HERE
|
|
4
|
-
*/
|
|
5
|
-
export declare const pkgMetadata: {
|
|
6
|
-
readonly name: "@scaleway/sdk-vpcgw";
|
|
7
|
-
readonly namespace: "vpcgw";
|
|
8
|
-
readonly displayName: "Vpcgw";
|
|
9
|
-
readonly versions: readonly ["v2"];
|
|
10
|
-
};
|
|
11
|
-
export type Metadata = typeof pkgMetadata;
|
|
12
|
-
export default pkgMetadata;
|
package/dist/metadata.gen.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region src/metadata.gen.ts
|
|
2
|
-
/**
|
|
3
|
-
* This file is automatically generated
|
|
4
|
-
* PLEASE DO NOT EDIT HERE
|
|
5
|
-
*/
|
|
6
|
-
const pkgMetadata = {
|
|
7
|
-
name: "@scaleway/sdk-vpcgw",
|
|
8
|
-
namespace: "vpcgw",
|
|
9
|
-
displayName: "Vpcgw",
|
|
10
|
-
versions: ["v2"]
|
|
11
|
-
};
|
|
12
|
-
//#endregion
|
|
13
|
-
export { pkgMetadata as default, pkgMetadata };
|
package/dist/v2/api.gen.d.ts
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
|
-
import type { WaitForOptions, ApiLocality } from '@scaleway/sdk-client';
|
|
3
|
-
import type { AddBastionAllowedIPsRequest, AddBastionAllowedIPsResponse, CreateGatewayNetworkRequest, CreateGatewayRequest, CreateIPRequest, CreatePatRuleRequest, DeleteBastionAllowedIPsRequest, DeleteGatewayNetworkRequest, DeleteGatewayRequest, DeleteIPRequest, DeletePatRuleRequest, Gateway, GatewayNetwork, GetGatewayNetworkRequest, GetGatewayRequest, GetIPRequest, GetPatRuleRequest, IP, ListGatewayNetworksRequest, ListGatewayNetworksResponse, ListGatewayTypesRequest, ListGatewayTypesResponse, ListGatewaysRequest, ListGatewaysResponse, ListIPsRequest, ListIPsResponse, ListPatRulesRequest, ListPatRulesResponse, PatRule, RefreshSSHKeysRequest, SetBastionAllowedIPsRequest, SetBastionAllowedIPsResponse, SetPatRulesRequest, SetPatRulesResponse, UpdateGatewayNetworkRequest, UpdateGatewayRequest, UpdateIPRequest, UpdatePatRuleRequest, UpgradeGatewayRequest } from './types.gen.js';
|
|
4
|
-
/**
|
|
5
|
-
* Public Gateways API.
|
|
6
|
-
|
|
7
|
-
This API allows you to manage your Public Gateways.
|
|
8
|
-
*/
|
|
9
|
-
export declare class API extends ParentAPI {
|
|
10
|
-
/**
|
|
11
|
-
* Locality of this API.
|
|
12
|
-
* type ∈ {'zone','region','global','unspecified'}
|
|
13
|
-
*/
|
|
14
|
-
static readonly LOCALITY: ApiLocality;
|
|
15
|
-
protected pageOfListGateways: (request?: Readonly<ListGatewaysRequest>) => Promise<ListGatewaysResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* List Public Gateways. List Public Gateways in a given Scaleway Organization or Project. By default, results are displayed in ascending order of creation date.
|
|
18
|
-
*
|
|
19
|
-
* @param request - The request {@link ListGatewaysRequest}
|
|
20
|
-
* @returns A Promise of ListGatewaysResponse
|
|
21
|
-
*/
|
|
22
|
-
listGateways: (request?: Readonly<ListGatewaysRequest>) => Promise<ListGatewaysResponse> & {
|
|
23
|
-
all: () => Promise<Gateway[]>;
|
|
24
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<Gateway[], void, void>;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Get a Public Gateway. Get details of a Public Gateway, specified by its gateway ID. The response object contains full details of the gateway, including its **name**, **type**, **status** and more.
|
|
28
|
-
*
|
|
29
|
-
* @param request - The request {@link GetGatewayRequest}
|
|
30
|
-
* @returns A Promise of Gateway
|
|
31
|
-
*/
|
|
32
|
-
getGateway: (request: Readonly<GetGatewayRequest>) => Promise<Gateway>;
|
|
33
|
-
/**
|
|
34
|
-
* Waits for {@link Gateway} to be in a final state.
|
|
35
|
-
*
|
|
36
|
-
* @param request - The request {@link GetGatewayRequest}
|
|
37
|
-
* @param options - The waiting options
|
|
38
|
-
* @returns A Promise of Gateway
|
|
39
|
-
*/
|
|
40
|
-
waitForGateway: (request: Readonly<GetGatewayRequest>, options?: Readonly<WaitForOptions<Gateway>>) => Promise<Gateway>;
|
|
41
|
-
/**
|
|
42
|
-
* Create a Public Gateway. Create a new Public Gateway in the specified Scaleway Project, defining its **name**, **type** and other configuration details such as whether to enable SSH bastion.
|
|
43
|
-
*
|
|
44
|
-
* @param request - The request {@link CreateGatewayRequest}
|
|
45
|
-
* @returns A Promise of Gateway
|
|
46
|
-
*/
|
|
47
|
-
createGateway: (request: Readonly<CreateGatewayRequest>) => Promise<Gateway>;
|
|
48
|
-
/**
|
|
49
|
-
* Update a Public Gateway. Update the parameters of an existing Public Gateway, for example, its **name**, **tags**, **SSH bastion configuration**, and **DNS servers**.
|
|
50
|
-
*
|
|
51
|
-
* @param request - The request {@link UpdateGatewayRequest}
|
|
52
|
-
* @returns A Promise of Gateway
|
|
53
|
-
*/
|
|
54
|
-
updateGateway: (request: Readonly<UpdateGatewayRequest>) => Promise<Gateway>;
|
|
55
|
-
/**
|
|
56
|
-
* Delete a Public Gateway. Delete an existing Public Gateway, specified by its gateway ID. This action is irreversible.
|
|
57
|
-
*
|
|
58
|
-
* @param request - The request {@link DeleteGatewayRequest}
|
|
59
|
-
* @returns A Promise of Gateway
|
|
60
|
-
*/
|
|
61
|
-
deleteGateway: (request: Readonly<DeleteGatewayRequest>) => Promise<Gateway>;
|
|
62
|
-
/**
|
|
63
|
-
* Upgrade a Public Gateway to the latest version and/or to a different commercial offer type. Upgrade a given Public Gateway to the newest software version or to a different commercial offer type. This applies the latest bugfixes and features to your Public Gateway. Note that gateway service will be interrupted during the update.
|
|
64
|
-
*
|
|
65
|
-
* @param request - The request {@link UpgradeGatewayRequest}
|
|
66
|
-
* @returns A Promise of Gateway
|
|
67
|
-
*/
|
|
68
|
-
upgradeGateway: (request: Readonly<UpgradeGatewayRequest>) => Promise<Gateway>;
|
|
69
|
-
protected pageOfListGatewayNetworks: (request?: Readonly<ListGatewayNetworksRequest>) => Promise<ListGatewayNetworksResponse>;
|
|
70
|
-
/**
|
|
71
|
-
* List Public Gateway connections to Private Networks. List the connections between Public Gateways and Private Networks (a connection = a GatewayNetwork). You can choose to filter by `gateway-id` to list all Private Networks attached to the specified Public Gateway, or by `private_network_id` to list all Public Gateways attached to the specified Private Network. Other query parameters are also available. The result is an array of GatewayNetwork objects, each giving details of the connection between a given Public Gateway and a given Private Network.
|
|
72
|
-
*
|
|
73
|
-
* @param request - The request {@link ListGatewayNetworksRequest}
|
|
74
|
-
* @returns A Promise of ListGatewayNetworksResponse
|
|
75
|
-
*/
|
|
76
|
-
listGatewayNetworks: (request?: Readonly<ListGatewayNetworksRequest>) => Promise<ListGatewayNetworksResponse> & {
|
|
77
|
-
all: () => Promise<GatewayNetwork[]>;
|
|
78
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<GatewayNetwork[], void, void>;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Get a Public Gateway connection to a Private Network. Get details of a given connection between a Public Gateway and a Private Network (this connection = a GatewayNetwork), specified by its `gateway_network_id`. The response object contains details of the connection including the IDs of the Public Gateway and Private Network, the dates the connection was created/updated and its configuration settings.
|
|
82
|
-
*
|
|
83
|
-
* @param request - The request {@link GetGatewayNetworkRequest}
|
|
84
|
-
* @returns A Promise of GatewayNetwork
|
|
85
|
-
*/
|
|
86
|
-
getGatewayNetwork: (request: Readonly<GetGatewayNetworkRequest>) => Promise<GatewayNetwork>;
|
|
87
|
-
/**
|
|
88
|
-
* Waits for {@link GatewayNetwork} to be in a final state.
|
|
89
|
-
*
|
|
90
|
-
* @param request - The request {@link GetGatewayNetworkRequest}
|
|
91
|
-
* @param options - The waiting options
|
|
92
|
-
* @returns A Promise of GatewayNetwork
|
|
93
|
-
*/
|
|
94
|
-
waitForGatewayNetwork: (request: Readonly<GetGatewayNetworkRequest>, options?: Readonly<WaitForOptions<GatewayNetwork>>) => Promise<GatewayNetwork>;
|
|
95
|
-
/**
|
|
96
|
-
* Attach a Public Gateway to a Private Network. Attach a specific Public Gateway to a specific Private Network (create a GatewayNetwork). You can configure parameters for the connection including whether to enable masquerade (dynamic NAT), and more.
|
|
97
|
-
*
|
|
98
|
-
* @param request - The request {@link CreateGatewayNetworkRequest}
|
|
99
|
-
* @returns A Promise of GatewayNetwork
|
|
100
|
-
*/
|
|
101
|
-
createGatewayNetwork: (request: Readonly<CreateGatewayNetworkRequest>) => Promise<GatewayNetwork>;
|
|
102
|
-
/**
|
|
103
|
-
* Update a Public Gateway's connection to a Private Network. Update the configuration parameters of a connection between a given Public Gateway and Private Network (the connection = a GatewayNetwork). Updatable parameters include whether to enable traffic masquerade (dynamic NAT).
|
|
104
|
-
*
|
|
105
|
-
* @param request - The request {@link UpdateGatewayNetworkRequest}
|
|
106
|
-
* @returns A Promise of GatewayNetwork
|
|
107
|
-
*/
|
|
108
|
-
updateGatewayNetwork: (request: Readonly<UpdateGatewayNetworkRequest>) => Promise<GatewayNetwork>;
|
|
109
|
-
/**
|
|
110
|
-
* Detach a Public Gateway from a Private Network. Detach a given Public Gateway from a given Private Network, i.e. delete a GatewayNetwork specified by a gateway_network_id.
|
|
111
|
-
*
|
|
112
|
-
* @param request - The request {@link DeleteGatewayNetworkRequest}
|
|
113
|
-
* @returns A Promise of GatewayNetwork
|
|
114
|
-
*/
|
|
115
|
-
deleteGatewayNetwork: (request: Readonly<DeleteGatewayNetworkRequest>) => Promise<GatewayNetwork>;
|
|
116
|
-
protected pageOfListPatRules: (request?: Readonly<ListPatRulesRequest>) => Promise<ListPatRulesResponse>;
|
|
117
|
-
/**
|
|
118
|
-
* List PAT rules. List PAT rules. You can filter by gateway ID to list all PAT rules for a particular gateway, or filter for PAT rules targeting a specific IP address or using a specific protocol.
|
|
119
|
-
*
|
|
120
|
-
* @param request - The request {@link ListPatRulesRequest}
|
|
121
|
-
* @returns A Promise of ListPatRulesResponse
|
|
122
|
-
*/
|
|
123
|
-
listPatRules: (request?: Readonly<ListPatRulesRequest>) => Promise<ListPatRulesResponse> & {
|
|
124
|
-
all: () => Promise<PatRule[]>;
|
|
125
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<PatRule[], void, void>;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* Get a PAT rule. Get a PAT rule, specified by its PAT rule ID. The response object gives full details of the PAT rule, including the Public Gateway it belongs to and the configuration settings in terms of public / private ports, private IP and protocol.
|
|
129
|
-
*
|
|
130
|
-
* @param request - The request {@link GetPatRuleRequest}
|
|
131
|
-
* @returns A Promise of PatRule
|
|
132
|
-
*/
|
|
133
|
-
getPatRule: (request: Readonly<GetPatRuleRequest>) => Promise<PatRule>;
|
|
134
|
-
/**
|
|
135
|
-
* Create a PAT rule. Create a new PAT rule on a specified Public Gateway, defining the protocol to use, public port to listen on, and private port / IP address to map to.
|
|
136
|
-
*
|
|
137
|
-
* @param request - The request {@link CreatePatRuleRequest}
|
|
138
|
-
* @returns A Promise of PatRule
|
|
139
|
-
*/
|
|
140
|
-
createPatRule: (request: Readonly<CreatePatRuleRequest>) => Promise<PatRule>;
|
|
141
|
-
/**
|
|
142
|
-
* Update a PAT rule. Update a PAT rule, specified by its PAT rule ID. Configuration settings including private/public port, private IP address and protocol can all be updated.
|
|
143
|
-
*
|
|
144
|
-
* @param request - The request {@link UpdatePatRuleRequest}
|
|
145
|
-
* @returns A Promise of PatRule
|
|
146
|
-
*/
|
|
147
|
-
updatePatRule: (request: Readonly<UpdatePatRuleRequest>) => Promise<PatRule>;
|
|
148
|
-
/**
|
|
149
|
-
* Set all PAT rules. Set a definitive list of PAT rules attached to a Public Gateway. Each rule is identified by its public port and protocol. This will sync the current PAT rule list on the gateway with the new list, creating, updating or deleting PAT rules accordingly.
|
|
150
|
-
*
|
|
151
|
-
* @param request - The request {@link SetPatRulesRequest}
|
|
152
|
-
* @returns A Promise of SetPatRulesResponse
|
|
153
|
-
*/
|
|
154
|
-
setPatRules: (request: Readonly<SetPatRulesRequest>) => Promise<SetPatRulesResponse>;
|
|
155
|
-
/**
|
|
156
|
-
* Delete a PAT rule. Delete a PAT rule, identified by its PAT rule ID. This action is irreversible.
|
|
157
|
-
*
|
|
158
|
-
* @param request - The request {@link DeletePatRuleRequest}
|
|
159
|
-
*/
|
|
160
|
-
deletePatRule: (request: Readonly<DeletePatRuleRequest>) => Promise<void>;
|
|
161
|
-
/**
|
|
162
|
-
* List Public Gateway types. List the different Public Gateway commercial offer types available at Scaleway. The response is an array of objects describing the name and technical details of each available gateway type.
|
|
163
|
-
*
|
|
164
|
-
* @param request - The request {@link ListGatewayTypesRequest}
|
|
165
|
-
* @returns A Promise of ListGatewayTypesResponse
|
|
166
|
-
*/
|
|
167
|
-
listGatewayTypes: (request?: Readonly<ListGatewayTypesRequest>) => Promise<ListGatewayTypesResponse>;
|
|
168
|
-
protected pageOfListIPs: (request?: Readonly<ListIPsRequest>) => Promise<ListIPsResponse>;
|
|
169
|
-
/**
|
|
170
|
-
* List IPs. List Public Gateway flexible IP addresses. A number of filter options are available for limiting results in the response.
|
|
171
|
-
*
|
|
172
|
-
* @param request - The request {@link ListIPsRequest}
|
|
173
|
-
* @returns A Promise of ListIPsResponse
|
|
174
|
-
*/
|
|
175
|
-
listIPs: (request?: Readonly<ListIPsRequest>) => Promise<ListIPsResponse> & {
|
|
176
|
-
all: () => Promise<IP[]>;
|
|
177
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<IP[], void, void>;
|
|
178
|
-
};
|
|
179
|
-
/**
|
|
180
|
-
* Get an IP. Get details of a Public Gateway flexible IP address, identified by its IP ID. The response object contains information including which (if any) Public Gateway using this IP address, the reverse and various other metadata.
|
|
181
|
-
*
|
|
182
|
-
* @param request - The request {@link GetIPRequest}
|
|
183
|
-
* @returns A Promise of IP
|
|
184
|
-
*/
|
|
185
|
-
getIP: (request: Readonly<GetIPRequest>) => Promise<IP>;
|
|
186
|
-
/**
|
|
187
|
-
* Reserve an IP. Create (reserve) a new flexible IP address that can be used for a Public Gateway in a specified Scaleway Project.
|
|
188
|
-
*
|
|
189
|
-
* @param request - The request {@link CreateIPRequest}
|
|
190
|
-
* @returns A Promise of IP
|
|
191
|
-
*/
|
|
192
|
-
createIP: (request?: Readonly<CreateIPRequest>) => Promise<IP>;
|
|
193
|
-
/**
|
|
194
|
-
* Update an IP. Update details of an existing flexible IP address, including its tags, reverse and the Public Gateway it is assigned to.
|
|
195
|
-
*
|
|
196
|
-
* @param request - The request {@link UpdateIPRequest}
|
|
197
|
-
* @returns A Promise of IP
|
|
198
|
-
*/
|
|
199
|
-
updateIP: (request: Readonly<UpdateIPRequest>) => Promise<IP>;
|
|
200
|
-
/**
|
|
201
|
-
* Delete an IP. Delete a flexible IP address from your account. This action is irreversible.
|
|
202
|
-
*
|
|
203
|
-
* @param request - The request {@link DeleteIPRequest}
|
|
204
|
-
*/
|
|
205
|
-
deleteIP: (request: Readonly<DeleteIPRequest>) => Promise<void>;
|
|
206
|
-
/**
|
|
207
|
-
* Refresh a Public Gateway's SSH keys. Refresh the SSH keys of a given Public Gateway, specified by its gateway ID. This adds any new SSH keys in the gateway's Scaleway Project to the gateway itself.
|
|
208
|
-
*
|
|
209
|
-
* @param request - The request {@link RefreshSSHKeysRequest}
|
|
210
|
-
* @returns A Promise of Gateway
|
|
211
|
-
*/
|
|
212
|
-
refreshSSHKeys: (request: Readonly<RefreshSSHKeysRequest>) => Promise<Gateway>;
|
|
213
|
-
/**
|
|
214
|
-
* Add allowed IP range to SSH bastion. Add an IP range (in CIDR notation) to be allowed to connect to the SSH bastion.
|
|
215
|
-
*
|
|
216
|
-
* @param request - The request {@link AddBastionAllowedIPsRequest}
|
|
217
|
-
* @returns A Promise of AddBastionAllowedIPsResponse
|
|
218
|
-
*/
|
|
219
|
-
addBastionAllowedIPs: (request: Readonly<AddBastionAllowedIPsRequest>) => Promise<AddBastionAllowedIPsResponse>;
|
|
220
|
-
/**
|
|
221
|
-
* Set all IP ranges allowed for SSH bastion. Set a definitive list of IP ranges (in CIDR notation) allowed to connect to the SSH bastion.
|
|
222
|
-
*
|
|
223
|
-
* @param request - The request {@link SetBastionAllowedIPsRequest}
|
|
224
|
-
* @returns A Promise of SetBastionAllowedIPsResponse
|
|
225
|
-
*/
|
|
226
|
-
setBastionAllowedIPs: (request: Readonly<SetBastionAllowedIPsRequest>) => Promise<SetBastionAllowedIPsResponse>;
|
|
227
|
-
/**
|
|
228
|
-
* Delete allowed IP range from SSH bastion. Delete an IP range (defined in CIDR notation) from SSH bastion, so that it is no longer allowed to connect.
|
|
229
|
-
*
|
|
230
|
-
* @param request - The request {@link DeleteBastionAllowedIPsRequest}
|
|
231
|
-
*/
|
|
232
|
-
deleteBastionAllowedIPs: (request: Readonly<DeleteBastionAllowedIPsRequest>) => Promise<void>;
|
|
233
|
-
}
|