@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.
Files changed (98) hide show
  1. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +117 -0
  2. package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +54 -1
  3. package/dist/api/applesilicon/v1alpha1/api.gen.js +120 -3
  4. package/dist/api/applesilicon/v1alpha1/content.gen.cjs +4 -0
  5. package/dist/api/applesilicon/v1alpha1/content.gen.d.ts +5 -1
  6. package/dist/api/applesilicon/v1alpha1/content.gen.js +4 -0
  7. package/dist/api/applesilicon/v1alpha1/index.gen.cjs +3 -0
  8. package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +2 -2
  9. package/dist/api/applesilicon/v1alpha1/index.gen.js +5 -2
  10. package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +60 -0
  11. package/dist/api/applesilicon/v1alpha1/marshalling.gen.d.ts +6 -1
  12. package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +60 -0
  13. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +100 -0
  14. package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
  15. package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +12 -0
  16. package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +12 -0
  17. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +9 -0
  18. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +4 -4
  19. package/dist/api/iam/v1alpha1/api.gen.cjs +54 -0
  20. package/dist/api/iam/v1alpha1/api.gen.d.ts +26 -1
  21. package/dist/api/iam/v1alpha1/api.gen.js +55 -1
  22. package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
  23. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +23 -0
  24. package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +4 -1
  25. package/dist/api/iam/v1alpha1/marshalling.gen.js +23 -0
  26. package/dist/api/iam/v1alpha1/types.gen.d.ts +29 -1
  27. package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +8 -0
  28. package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +7 -0
  29. package/dist/api/iam/v1alpha1/validation-rules.gen.js +9 -1
  30. package/dist/api/index.gen.d.ts +2 -1
  31. package/dist/api/interlink/index.gen.cjs +4 -0
  32. package/dist/api/interlink/index.gen.d.ts +5 -0
  33. package/dist/api/interlink/index.gen.js +4 -0
  34. package/dist/api/interlink/v1beta1/api.gen.cjs +405 -0
  35. package/dist/api/interlink/v1beta1/api.gen.d.ts +208 -0
  36. package/dist/api/interlink/v1beta1/api.gen.js +405 -0
  37. package/dist/api/interlink/v1beta1/index.gen.cjs +6 -0
  38. package/dist/api/interlink/v1beta1/index.gen.d.ts +3 -0
  39. package/dist/api/interlink/v1beta1/index.gen.js +6 -0
  40. package/dist/api/interlink/v1beta1/marshalling.gen.cjs +180 -0
  41. package/dist/api/interlink/v1beta1/marshalling.gen.d.ts +16 -0
  42. package/dist/api/interlink/v1beta1/marshalling.gen.js +180 -0
  43. package/dist/api/interlink/v1beta1/types.gen.d.ts +455 -0
  44. package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +107 -0
  45. package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +93 -0
  46. package/dist/api/interlink/v1beta1/validation-rules.gen.js +107 -0
  47. package/dist/api/ipam/v1/api.gen.cjs +1 -0
  48. package/dist/api/ipam/v1/api.gen.js +1 -0
  49. package/dist/api/ipam/v1/types.gen.d.ts +12 -10
  50. package/dist/api/k8s/v1/api.gen.cjs +22 -20
  51. package/dist/api/k8s/v1/api.gen.d.ts +22 -20
  52. package/dist/api/k8s/v1/api.gen.js +22 -20
  53. package/dist/api/k8s/v1/marshalling.gen.cjs +2 -5
  54. package/dist/api/k8s/v1/marshalling.gen.js +2 -5
  55. package/dist/api/k8s/v1/types.gen.d.ts +65 -49
  56. package/dist/api/lb/v1/types.gen.d.ts +6 -6
  57. package/dist/api/marketplace/v2/types.gen.d.ts +5 -2
  58. package/dist/api/mongodb/v1alpha1/api.gen.cjs +13 -1
  59. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +8 -1
  60. package/dist/api/mongodb/v1alpha1/api.gen.js +13 -1
  61. package/dist/api/mongodb/v1alpha1/index.gen.d.ts +1 -1
  62. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +11 -0
  63. package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +8 -0
  64. package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +7 -0
  65. package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +8 -0
  66. package/dist/api/secret/v1beta1/marshalling.gen.cjs +1 -0
  67. package/dist/api/secret/v1beta1/marshalling.gen.js +1 -0
  68. package/dist/api/secret/v1beta1/types.gen.d.ts +2 -0
  69. package/dist/api/vpcgw/index.gen.cjs +2 -0
  70. package/dist/api/vpcgw/index.gen.d.ts +1 -0
  71. package/dist/api/vpcgw/index.gen.js +3 -1
  72. package/dist/api/vpcgw/v2/api.gen.cjs +518 -0
  73. package/dist/api/vpcgw/v2/api.gen.d.ts +267 -0
  74. package/dist/api/vpcgw/v2/api.gen.js +518 -0
  75. package/dist/api/vpcgw/v2/content.gen.cjs +15 -0
  76. package/dist/api/vpcgw/v2/content.gen.d.ts +5 -0
  77. package/dist/api/vpcgw/v2/content.gen.js +15 -0
  78. package/dist/api/vpcgw/v2/index.gen.cjs +7 -0
  79. package/dist/api/vpcgw/v2/index.gen.d.ts +3 -0
  80. package/dist/api/vpcgw/v2/index.gen.js +7 -0
  81. package/dist/api/vpcgw/v2/marshalling.gen.cjs +259 -0
  82. package/dist/api/vpcgw/v2/marshalling.gen.d.ts +22 -0
  83. package/dist/api/vpcgw/v2/marshalling.gen.js +259 -0
  84. package/dist/api/vpcgw/v2/types.gen.d.ts +452 -0
  85. package/dist/api/webhosting/v1/api.gen.cjs +20 -0
  86. package/dist/api/webhosting/v1/api.gen.d.ts +8 -1
  87. package/dist/api/webhosting/v1/api.gen.js +21 -1
  88. package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
  89. package/dist/api/webhosting/v1/marshalling.gen.cjs +30 -2
  90. package/dist/api/webhosting/v1/marshalling.gen.d.ts +2 -1
  91. package/dist/api/webhosting/v1/marshalling.gen.js +31 -3
  92. package/dist/api/webhosting/v1/types.gen.d.ts +50 -2
  93. package/dist/index.cjs +26 -24
  94. package/dist/index.js +26 -24
  95. package/dist/scw/constants.cjs +1 -1
  96. package/dist/scw/constants.d.ts +2 -2
  97. package/dist/scw/constants.js +1 -1
  98. package/package.json +2 -2
@@ -0,0 +1,267 @@
1
+ import { API as ParentAPI } from '../../../bridge';
2
+ import type { WaitForOptions, Zone } from '../../../bridge';
3
+ import type { CreateGatewayNetworkRequest, CreateGatewayRequest, CreateIPRequest, CreatePatRuleRequest, DeleteGatewayNetworkRequest, DeleteGatewayRequest, DeleteIPRequest, DeletePatRuleRequest, Gateway, GatewayNetwork, GetGatewayNetworkRequest, GetGatewayRequest, GetIPRequest, GetPatRuleRequest, IP, ListGatewayNetworksRequest, ListGatewayNetworksResponse, ListGatewayTypesRequest, ListGatewayTypesResponse, ListGatewaysRequest, ListGatewaysResponse, ListIPsRequest, ListIPsResponse, ListPatRulesRequest, ListPatRulesResponse, PatRule, RefreshSSHKeysRequest, SetPatRulesRequest, SetPatRulesResponse, UpdateGatewayNetworkRequest, UpdateGatewayRequest, UpdateIPRequest, UpdatePatRuleRequest, UpgradeGatewayRequest } from './types.gen';
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
+ /** Lists the available zones of the API. */
11
+ static readonly LOCALITIES: Zone[];
12
+ protected pageOfListGateways: (request?: Readonly<ListGatewaysRequest>) => Promise<ListGatewaysResponse>;
13
+ /**
14
+ * List Public Gateways. List Public Gateways in a given Scaleway Organization
15
+ * or Project. By default, results are displayed in ascending order of
16
+ * creation date.
17
+ *
18
+ * @param request - The request {@link ListGatewaysRequest}
19
+ * @returns A Promise of ListGatewaysResponse
20
+ */
21
+ listGateways: (request?: Readonly<ListGatewaysRequest>) => Promise<ListGatewaysResponse> & {
22
+ all: () => Promise<Gateway[]>;
23
+ [Symbol.asyncIterator]: () => AsyncGenerator<Gateway[], void, void>;
24
+ };
25
+ /**
26
+ * Get a Public Gateway. Get details of a Public Gateway, specified by its
27
+ * gateway ID. The response object contains full details of the gateway,
28
+ * including its **name**, **type**, **status** and more.
29
+ *
30
+ * @param request - The request {@link GetGatewayRequest}
31
+ * @returns A Promise of Gateway
32
+ */
33
+ getGateway: (request: Readonly<GetGatewayRequest>) => Promise<Gateway>;
34
+ /**
35
+ * Waits for {@link Gateway} to be in a final state.
36
+ *
37
+ * @param request - The request {@link GetGatewayRequest}
38
+ * @param options - The waiting options
39
+ * @returns A Promise of Gateway
40
+ */
41
+ waitForGateway: (request: Readonly<GetGatewayRequest>, options?: Readonly<WaitForOptions<Gateway>>) => Promise<Gateway>;
42
+ /**
43
+ * Create a Public Gateway. Create a new Public Gateway in the specified
44
+ * Scaleway Project, defining its **name**, **type** and other configuration
45
+ * details such as whether to enable SSH bastion.
46
+ *
47
+ * @param request - The request {@link CreateGatewayRequest}
48
+ * @returns A Promise of Gateway
49
+ */
50
+ createGateway: (request: Readonly<CreateGatewayRequest>) => Promise<Gateway>;
51
+ /**
52
+ * Update a Public Gateway. Update the parameters of an existing Public
53
+ * Gateway, for example, its **name**, **tags**, **SSH bastion
54
+ * configuration**, and **DNS servers**.
55
+ *
56
+ * @param request - The request {@link UpdateGatewayRequest}
57
+ * @returns A Promise of Gateway
58
+ */
59
+ updateGateway: (request: Readonly<UpdateGatewayRequest>) => Promise<Gateway>;
60
+ /**
61
+ * Delete a Public Gateway. Delete an existing Public Gateway, specified by
62
+ * its gateway ID. This action is irreversible.
63
+ *
64
+ * @param request - The request {@link DeleteGatewayRequest}
65
+ * @returns A Promise of Gateway
66
+ */
67
+ deleteGateway: (request: Readonly<DeleteGatewayRequest>) => Promise<Gateway>;
68
+ /**
69
+ * Upgrade a Public Gateway to the latest version and/or to a different
70
+ * commercial offer type. Upgrade a given Public Gateway to the newest
71
+ * software version or to a different commercial offer type. This applies the
72
+ * latest bugfixes and features to your Public Gateway. Note that gateway
73
+ * service will be interrupted during the update.
74
+ *
75
+ * @param request - The request {@link UpgradeGatewayRequest}
76
+ * @returns A Promise of Gateway
77
+ */
78
+ upgradeGateway: (request: Readonly<UpgradeGatewayRequest>) => Promise<Gateway>;
79
+ protected pageOfListGatewayNetworks: (request?: Readonly<ListGatewayNetworksRequest>) => Promise<ListGatewayNetworksResponse>;
80
+ /**
81
+ * List Public Gateway connections to Private Networks. List the connections
82
+ * between Public Gateways and Private Networks (a connection = a
83
+ * GatewayNetwork). You can choose to filter by `gateway-id` to list all
84
+ * Private Networks attached to the specified Public Gateway, or by
85
+ * `private_network_id` to list all Public Gateways attached to the specified
86
+ * Private Network. Other query parameters are also available. The result is
87
+ * an array of GatewayNetwork objects, each giving details of the connection
88
+ * between a given Public Gateway and a given Private Network.
89
+ *
90
+ * @param request - The request {@link ListGatewayNetworksRequest}
91
+ * @returns A Promise of ListGatewayNetworksResponse
92
+ */
93
+ listGatewayNetworks: (request?: Readonly<ListGatewayNetworksRequest>) => Promise<ListGatewayNetworksResponse> & {
94
+ all: () => Promise<GatewayNetwork[]>;
95
+ [Symbol.asyncIterator]: () => AsyncGenerator<GatewayNetwork[], void, void>;
96
+ };
97
+ /**
98
+ * Get a Public Gateway connection to a Private Network. Get details of a
99
+ * given connection between a Public Gateway and a Private Network (this
100
+ * connection = a GatewayNetwork), specified by its `gateway_network_id`. The
101
+ * response object contains details of the connection including the IDs of the
102
+ * Public Gateway and Private Network, the dates the connection was
103
+ * created/updated and its configuration settings.
104
+ *
105
+ * @param request - The request {@link GetGatewayNetworkRequest}
106
+ * @returns A Promise of GatewayNetwork
107
+ */
108
+ getGatewayNetwork: (request: Readonly<GetGatewayNetworkRequest>) => Promise<GatewayNetwork>;
109
+ /**
110
+ * Waits for {@link GatewayNetwork} to be in a final state.
111
+ *
112
+ * @param request - The request {@link GetGatewayNetworkRequest}
113
+ * @param options - The waiting options
114
+ * @returns A Promise of GatewayNetwork
115
+ */
116
+ waitForGatewayNetwork: (request: Readonly<GetGatewayNetworkRequest>, options?: Readonly<WaitForOptions<GatewayNetwork>>) => Promise<GatewayNetwork>;
117
+ /**
118
+ * Attach a Public Gateway to a Private Network. Attach a specific Public
119
+ * Gateway to a specific Private Network (create a GatewayNetwork). You can
120
+ * configure parameters for the connection including whether to enable
121
+ * masquerade (dynamic NAT), and more.
122
+ *
123
+ * @param request - The request {@link CreateGatewayNetworkRequest}
124
+ * @returns A Promise of GatewayNetwork
125
+ */
126
+ createGatewayNetwork: (request: Readonly<CreateGatewayNetworkRequest>) => Promise<GatewayNetwork>;
127
+ /**
128
+ * Update a Public Gateway's connection to a Private Network. Update the
129
+ * configuration parameters of a connection between a given Public Gateway and
130
+ * Private Network (the connection = a GatewayNetwork). Updatable parameters
131
+ * include whether to enable traffic masquerade (dynamic NAT).
132
+ *
133
+ * @param request - The request {@link UpdateGatewayNetworkRequest}
134
+ * @returns A Promise of GatewayNetwork
135
+ */
136
+ updateGatewayNetwork: (request: Readonly<UpdateGatewayNetworkRequest>) => Promise<GatewayNetwork>;
137
+ /**
138
+ * Detach a Public Gateway from a Private Network. Detach a given Public
139
+ * Gateway from a given Private Network, i.e. delete a GatewayNetwork
140
+ * specified by a gateway_network_id.
141
+ *
142
+ * @param request - The request {@link DeleteGatewayNetworkRequest}
143
+ * @returns A Promise of GatewayNetwork
144
+ */
145
+ deleteGatewayNetwork: (request: Readonly<DeleteGatewayNetworkRequest>) => Promise<GatewayNetwork>;
146
+ protected pageOfListPatRules: (request?: Readonly<ListPatRulesRequest>) => Promise<ListPatRulesResponse>;
147
+ /**
148
+ * List PAT rules. List PAT rules. You can filter by gateway ID to list all
149
+ * PAT rules for a particular gateway, or filter for PAT rules targeting a
150
+ * specific IP address or using a specific protocol.
151
+ *
152
+ * @param request - The request {@link ListPatRulesRequest}
153
+ * @returns A Promise of ListPatRulesResponse
154
+ */
155
+ listPatRules: (request?: Readonly<ListPatRulesRequest>) => Promise<ListPatRulesResponse> & {
156
+ all: () => Promise<PatRule[]>;
157
+ [Symbol.asyncIterator]: () => AsyncGenerator<PatRule[], void, void>;
158
+ };
159
+ /**
160
+ * Get a PAT rule. Get a PAT rule, specified by its PAT rule ID. The response
161
+ * object gives full details of the PAT rule, including the Public Gateway it
162
+ * belongs to and the configuration settings in terms of public / private
163
+ * ports, private IP and protocol.
164
+ *
165
+ * @param request - The request {@link GetPatRuleRequest}
166
+ * @returns A Promise of PatRule
167
+ */
168
+ getPatRule: (request: Readonly<GetPatRuleRequest>) => Promise<PatRule>;
169
+ /**
170
+ * Create a PAT rule. Create a new PAT rule on a specified Public Gateway,
171
+ * defining the protocol to use, public port to listen on, and private port /
172
+ * IP address to map to.
173
+ *
174
+ * @param request - The request {@link CreatePatRuleRequest}
175
+ * @returns A Promise of PatRule
176
+ */
177
+ createPatRule: (request: Readonly<CreatePatRuleRequest>) => Promise<PatRule>;
178
+ /**
179
+ * Update a PAT rule. Update a PAT rule, specified by its PAT rule ID.
180
+ * Configuration settings including private/public port, private IP address
181
+ * and protocol can all be updated.
182
+ *
183
+ * @param request - The request {@link UpdatePatRuleRequest}
184
+ * @returns A Promise of PatRule
185
+ */
186
+ updatePatRule: (request: Readonly<UpdatePatRuleRequest>) => Promise<PatRule>;
187
+ /**
188
+ * Set all PAT rules. Set a definitive list of PAT rules attached to a Public
189
+ * Gateway. Each rule is identified by its public port and protocol. This will
190
+ * sync the current PAT rule list on the gateway with the new list, creating,
191
+ * updating or deleting PAT rules accordingly.
192
+ *
193
+ * @param request - The request {@link SetPatRulesRequest}
194
+ * @returns A Promise of SetPatRulesResponse
195
+ */
196
+ setPatRules: (request: Readonly<SetPatRulesRequest>) => Promise<SetPatRulesResponse>;
197
+ /**
198
+ * Delete a PAT rule. Delete a PAT rule, identified by its PAT rule ID. This
199
+ * action is irreversible.
200
+ *
201
+ * @param request - The request {@link DeletePatRuleRequest}
202
+ */
203
+ deletePatRule: (request: Readonly<DeletePatRuleRequest>) => Promise<void>;
204
+ /**
205
+ * List Public Gateway types. List the different Public Gateway commercial
206
+ * offer types available at Scaleway. The response is an array of objects
207
+ * describing the name and technical details of each available gateway type.
208
+ *
209
+ * @param request - The request {@link ListGatewayTypesRequest}
210
+ * @returns A Promise of ListGatewayTypesResponse
211
+ */
212
+ listGatewayTypes: (request?: Readonly<ListGatewayTypesRequest>) => Promise<ListGatewayTypesResponse>;
213
+ protected pageOfListIPs: (request?: Readonly<ListIPsRequest>) => Promise<ListIPsResponse>;
214
+ /**
215
+ * List IPs. List Public Gateway flexible IP addresses. A number of filter
216
+ * options are available for limiting results in the response.
217
+ *
218
+ * @param request - The request {@link ListIPsRequest}
219
+ * @returns A Promise of ListIPsResponse
220
+ */
221
+ listIPs: (request?: Readonly<ListIPsRequest>) => Promise<ListIPsResponse> & {
222
+ all: () => Promise<IP[]>;
223
+ [Symbol.asyncIterator]: () => AsyncGenerator<IP[], void, void>;
224
+ };
225
+ /**
226
+ * Get an IP. Get details of a Public Gateway flexible IP address, identified
227
+ * by its IP ID. The response object contains information including which (if
228
+ * any) Public Gateway using this IP address, the reverse and various other
229
+ * metadata.
230
+ *
231
+ * @param request - The request {@link GetIPRequest}
232
+ * @returns A Promise of IP
233
+ */
234
+ getIP: (request: Readonly<GetIPRequest>) => Promise<IP>;
235
+ /**
236
+ * Reserve an IP. Create (reserve) a new flexible IP address that can be used
237
+ * for a Public Gateway in a specified Scaleway Project.
238
+ *
239
+ * @param request - The request {@link CreateIPRequest}
240
+ * @returns A Promise of IP
241
+ */
242
+ createIP: (request?: Readonly<CreateIPRequest>) => Promise<IP>;
243
+ /**
244
+ * Update an IP. Update details of an existing flexible IP address, including
245
+ * its tags, reverse and the Public Gateway it is assigned to.
246
+ *
247
+ * @param request - The request {@link UpdateIPRequest}
248
+ * @returns A Promise of IP
249
+ */
250
+ updateIP: (request: Readonly<UpdateIPRequest>) => Promise<IP>;
251
+ /**
252
+ * Delete an IP. Delete a flexible IP address from your account. This action
253
+ * is irreversible.
254
+ *
255
+ * @param request - The request {@link DeleteIPRequest}
256
+ */
257
+ deleteIP: (request: Readonly<DeleteIPRequest>) => Promise<void>;
258
+ /**
259
+ * Refresh a Public Gateway's SSH keys. Refresh the SSH keys of a given Public
260
+ * Gateway, specified by its gateway ID. This adds any new SSH keys in the
261
+ * gateway's Scaleway Project to the gateway itself.
262
+ *
263
+ * @param request - The request {@link RefreshSSHKeysRequest}
264
+ * @returns A Promise of Gateway
265
+ */
266
+ refreshSSHKeys: (request: Readonly<RefreshSSHKeysRequest>) => Promise<Gateway>;
267
+ }