@scaleway/sdk 2.72.0 → 2.73.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/account/v3/api.gen.cjs +13 -32
- package/dist/api/account/v3/api.gen.d.ts +17 -36
- package/dist/api/account/v3/api.gen.js +13 -32
- package/dist/api/account/v3/types.gen.d.ts +187 -85
- package/dist/api/applesilicon/v1alpha1/api.gen.cjs +19 -46
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +24 -49
- package/dist/api/applesilicon/v1alpha1/api.gen.js +19 -46
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +310 -135
- package/dist/api/audit_trail/v1alpha1/api.gen.cjs +2 -5
- package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +4 -8
- package/dist/api/audit_trail/v1alpha1/api.gen.js +2 -5
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +110 -82
- package/dist/api/baremetal/v1/api.gen.cjs +28 -61
- package/dist/api/baremetal/v1/api.gen.d.ts +29 -60
- package/dist/api/baremetal/v1/api.gen.js +28 -61
- package/dist/api/baremetal/v1/types.gen.d.ts +802 -315
- package/dist/api/baremetal/v3/api.gen.cjs +7 -14
- package/dist/api/baremetal/v3/api.gen.d.ts +10 -15
- package/dist/api/baremetal/v3/api.gen.js +7 -14
- package/dist/api/baremetal/v3/types.gen.d.ts +82 -32
- package/dist/api/billing/v2beta1/api.gen.cjs +11 -20
- package/dist/api/billing/v2beta1/api.gen.d.ts +9 -19
- package/dist/api/billing/v2beta1/api.gen.js +11 -20
- package/dist/api/billing/v2beta1/types.gen.d.ts +231 -102
- package/dist/api/block/v1/api.gen.cjs +37 -55
- package/dist/api/block/v1/api.gen.d.ts +19 -37
- package/dist/api/block/v1/api.gen.js +37 -55
- package/dist/api/block/v1/types.gen.d.ts +306 -125
- package/dist/api/block/v1alpha1/api.gen.cjs +45 -64
- package/dist/api/block/v1alpha1/api.gen.d.ts +22 -41
- package/dist/api/block/v1alpha1/api.gen.js +45 -64
- package/dist/api/block/v1alpha1/types.gen.d.ts +327 -132
- package/dist/api/cockpit/v1/api.gen.cjs +100 -156
- package/dist/api/cockpit/v1/api.gen.d.ts +53 -112
- package/dist/api/cockpit/v1/api.gen.js +100 -156
- package/dist/api/cockpit/v1/types.gen.d.ts +567 -246
- package/dist/api/container/v1beta1/api.gen.cjs +7 -14
- package/dist/api/container/v1beta1/api.gen.d.ts +9 -16
- package/dist/api/container/v1beta1/api.gen.js +7 -14
- package/dist/api/container/v1beta1/types.gen.d.ts +648 -322
- package/dist/api/dedibox/v1/api.gen.cjs +45 -69
- package/dist/api/dedibox/v1/api.gen.d.ts +52 -62
- package/dist/api/dedibox/v1/api.gen.js +45 -69
- package/dist/api/dedibox/v1/types.gen.d.ts +1765 -645
- package/dist/api/domain/v2beta1/api.gen.cjs +119 -178
- package/dist/api/domain/v2beta1/api.gen.d.ts +71 -130
- package/dist/api/domain/v2beta1/api.gen.js +119 -178
- package/dist/api/domain/v2beta1/content.gen.d.ts +1 -4
- package/dist/api/domain/v2beta1/types.gen.d.ts +411 -199
- package/dist/api/flexibleip/v1alpha1/api.gen.cjs +10 -25
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +12 -28
- package/dist/api/flexibleip/v1alpha1/api.gen.js +10 -25
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +186 -78
- package/dist/api/inference/v1/api.gen.cjs +8 -11
- package/dist/api/inference/v1/api.gen.d.ts +6 -9
- package/dist/api/inference/v1/api.gen.js +8 -11
- package/dist/api/inference/v1/types.gen.d.ts +330 -150
- package/dist/api/inference/v1beta1/api.gen.cjs +8 -11
- package/dist/api/inference/v1beta1/api.gen.d.ts +6 -9
- package/dist/api/inference/v1beta1/api.gen.js +8 -11
- package/dist/api/inference/v1beta1/types.gen.d.ts +341 -154
- package/dist/api/instance/v1/api.gen.cjs +64 -113
- package/dist/api/instance/v1/api.gen.d.ts +54 -103
- package/dist/api/instance/v1/api.gen.js +64 -113
- package/dist/api/instance/v1/types.gen.d.ts +1351 -598
- package/dist/api/instance/v1/types.private.gen.d.ts +131 -59
- package/dist/api/interlink/v1beta1/api.gen.cjs +21 -67
- package/dist/api/interlink/v1beta1/api.gen.d.ts +23 -70
- package/dist/api/interlink/v1beta1/api.gen.js +21 -67
- package/dist/api/interlink/v1beta1/marshalling.gen.cjs +2 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.js +2 -0
- package/dist/api/interlink/v1beta1/types.gen.d.ts +464 -216
- package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +8 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.js +8 -0
- package/dist/api/iot/v1/api.gen.cjs +37 -70
- package/dist/api/iot/v1/api.gen.d.ts +34 -67
- package/dist/api/iot/v1/api.gen.js +37 -70
- package/dist/api/iot/v1/types.gen.d.ts +566 -321
- package/dist/api/ipam/v1/api.gen.cjs +6 -26
- package/dist/api/ipam/v1/api.gen.d.ts +8 -29
- package/dist/api/ipam/v1/api.gen.js +6 -26
- package/dist/api/ipam/v1/types.gen.d.ts +146 -105
- package/dist/api/jobs/v1alpha1/api.gen.cjs +2 -4
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +4 -6
- package/dist/api/jobs/v1alpha1/api.gen.js +2 -4
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +165 -91
- package/dist/api/k8s/v1/api.gen.cjs +33 -78
- package/dist/api/k8s/v1/api.gen.d.ts +27 -72
- package/dist/api/k8s/v1/api.gen.js +33 -78
- package/dist/api/k8s/v1/types.gen.d.ts +743 -506
- package/dist/api/key_manager/v1alpha1/api.gen.cjs +21 -57
- package/dist/api/key_manager/v1alpha1/api.gen.d.ts +19 -56
- package/dist/api/key_manager/v1alpha1/api.gen.js +21 -57
- package/dist/api/key_manager/v1alpha1/types.gen.d.ts +196 -114
- package/dist/api/marketplace/v2/api.gen.cjs +8 -21
- package/dist/api/marketplace/v2/api.gen.d.ts +10 -24
- package/dist/api/marketplace/v2/api.gen.js +8 -21
- package/dist/api/marketplace/v2/types.gen.d.ts +94 -41
- package/dist/api/mnq/v1beta1/api.gen.cjs +24 -76
- package/dist/api/mnq/v1beta1/api.gen.d.ts +30 -82
- package/dist/api/mnq/v1beta1/api.gen.js +24 -76
- package/dist/api/mnq/v1beta1/types.gen.d.ts +342 -169
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +19 -62
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +21 -64
- package/dist/api/mongodb/v1alpha1/api.gen.js +19 -62
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +443 -189
- package/dist/api/qaas/v1alpha1/api.gen.cjs +17 -34
- package/dist/api/qaas/v1alpha1/api.gen.d.ts +19 -36
- package/dist/api/qaas/v1alpha1/api.gen.js +17 -34
- package/dist/api/qaas/v1alpha1/types.gen.d.ts +502 -174
- package/dist/api/rdb/v1/api.gen.cjs +62 -202
- package/dist/api/rdb/v1/api.gen.d.ts +60 -201
- package/dist/api/rdb/v1/api.gen.js +62 -202
- package/dist/api/rdb/v1/types.gen.d.ts +1005 -524
- package/dist/api/redis/v1/api.gen.cjs +23 -83
- package/dist/api/redis/v1/api.gen.d.ts +25 -85
- package/dist/api/redis/v1/api.gen.js +23 -83
- package/dist/api/redis/v1/types.gen.d.ts +447 -170
- package/dist/api/registry/v1/api.gen.cjs +12 -40
- package/dist/api/registry/v1/api.gen.d.ts +14 -42
- package/dist/api/registry/v1/api.gen.js +12 -40
- package/dist/api/registry/v1/types.gen.d.ts +200 -116
- package/dist/api/secret/v1beta1/api.gen.cjs +19 -47
- package/dist/api/secret/v1beta1/api.gen.d.ts +21 -51
- package/dist/api/secret/v1beta1/api.gen.js +19 -47
- package/dist/api/secret/v1beta1/types.gen.d.ts +359 -224
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +9 -27
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +11 -29
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +9 -27
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +168 -76
- package/dist/api/tem/v1alpha1/api.gen.cjs +22 -58
- package/dist/api/tem/v1alpha1/api.gen.d.ts +24 -60
- package/dist/api/tem/v1alpha1/api.gen.js +22 -58
- package/dist/api/tem/v1alpha1/types.gen.d.ts +761 -338
- package/dist/api/test/v1/api.gen.cjs +8 -11
- package/dist/api/test/v1/api.gen.d.ts +6 -9
- package/dist/api/test/v1/api.gen.js +8 -11
- package/dist/api/test/v1/types.gen.d.ts +21 -10
- package/dist/client/dist/package.json.cjs +1 -1
- package/dist/client/dist/package.json.js +1 -1
- package/node_modules/@scaleway/sdk-client/dist/package.json.cjs +1 -1
- package/node_modules/@scaleway/sdk-client/dist/package.json.js +1 -1
- package/node_modules/@scaleway/sdk-client/package.json +1 -2
- package/package.json +2 -2
- package/node_modules/@scaleway/sdk-client/LICENSE +0 -191
|
@@ -11,13 +11,12 @@ const jsonContentHeaders = {
|
|
|
11
11
|
};
|
|
12
12
|
class GlobalAPI extends api.API {
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*/
|
|
14
|
+
* Get your Cockpit's Grafana. Retrieve information on your Cockpit's Grafana, specified by the ID of the Project the Cockpit belongs to.
|
|
15
|
+
The output returned displays the URL to access your Cockpit's Grafana.
|
|
16
|
+
*
|
|
17
|
+
* @param request - The request {@link GlobalApiGetGrafanaRequest}
|
|
18
|
+
* @returns A Promise of Grafana
|
|
19
|
+
*/
|
|
21
20
|
getGrafana = (request = {}) => this.client.fetch(
|
|
22
21
|
{
|
|
23
22
|
method: "GET",
|
|
@@ -30,9 +29,7 @@ class GlobalAPI extends api.API {
|
|
|
30
29
|
marshalling_gen.unmarshalGrafana
|
|
31
30
|
);
|
|
32
31
|
/**
|
|
33
|
-
* Synchronize Grafana data sources. Trigger the synchronization of all your
|
|
34
|
-
* data sources and the alert manager in the relevant regions. The alert
|
|
35
|
-
* manager will only be synchronized if you have enabled it.
|
|
32
|
+
* Synchronize Grafana data sources. Trigger the synchronization of all your data sources and the alert manager in the relevant regions. The alert manager will only be synchronized if you have enabled it.
|
|
36
33
|
*
|
|
37
34
|
* @param request - The request {@link GlobalApiSyncGrafanaDataSourcesRequest}
|
|
38
35
|
*/
|
|
@@ -48,16 +45,12 @@ class GlobalAPI extends api.API {
|
|
|
48
45
|
path: `/cockpit/v1/grafana/sync-data-sources`
|
|
49
46
|
});
|
|
50
47
|
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
*
|
|
58
|
-
* @param request - The request {@link GlobalApiCreateGrafanaUserRequest}
|
|
59
|
-
* @returns A Promise of GrafanaUser
|
|
60
|
-
*/
|
|
48
|
+
* Create a Grafana user. Create a Grafana user to connect to your Cockpit's Grafana. Upon creation, your user password displays only once, so make sure that you save it.
|
|
49
|
+
Each Grafana user is associated with a role: viewer or editor. A viewer can only view dashboards, whereas an editor can create and edit dashboards. Note that the `admin` username is not available for creation.
|
|
50
|
+
*
|
|
51
|
+
* @param request - The request {@link GlobalApiCreateGrafanaUserRequest}
|
|
52
|
+
* @returns A Promise of GrafanaUser
|
|
53
|
+
*/
|
|
61
54
|
createGrafanaUser = (request) => this.client.fetch(
|
|
62
55
|
{
|
|
63
56
|
body: JSON.stringify(
|
|
@@ -92,18 +85,14 @@ class GlobalAPI extends api.API {
|
|
|
92
85
|
marshalling_gen.unmarshalListGrafanaUsersResponse
|
|
93
86
|
);
|
|
94
87
|
/**
|
|
95
|
-
* List Grafana users. List all Grafana users created in your Cockpit's
|
|
96
|
-
* Grafana. By default, the Grafana users returned in the list are ordered in
|
|
97
|
-
* ascending order.
|
|
88
|
+
* List Grafana users. List all Grafana users created in your Cockpit's Grafana. By default, the Grafana users returned in the list are ordered in ascending order.
|
|
98
89
|
*
|
|
99
90
|
* @param request - The request {@link GlobalApiListGrafanaUsersRequest}
|
|
100
91
|
* @returns A Promise of ListGrafanaUsersResponse
|
|
101
92
|
*/
|
|
102
93
|
listGrafanaUsers = (request = {}) => resourcePaginator.enrichForPagination("grafanaUsers", this.pageOfListGrafanaUsers, request);
|
|
103
94
|
/**
|
|
104
|
-
* Delete a Grafana user. Delete a Grafana user from your Cockpit's Grafana,
|
|
105
|
-
* specified by the ID of the Project the Cockpit belongs to, and the ID of
|
|
106
|
-
* the Grafana user.
|
|
95
|
+
* Delete a Grafana user. Delete a Grafana user from your Cockpit's Grafana, specified by the ID of the Project the Cockpit belongs to, and the ID of the Grafana user.
|
|
107
96
|
*
|
|
108
97
|
* @param request - The request {@link GlobalApiDeleteGrafanaUserRequest}
|
|
109
98
|
*/
|
|
@@ -116,15 +105,12 @@ class GlobalAPI extends api.API {
|
|
|
116
105
|
])
|
|
117
106
|
});
|
|
118
107
|
/**
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
* {@link GlobalApiResetGrafanaUserPasswordRequest}
|
|
126
|
-
* @returns A Promise of GrafanaUser
|
|
127
|
-
*/
|
|
108
|
+
* Reset a Grafana user password. Reset the password of a Grafana user, specified by the ID of the Project the Cockpit belongs to, and the ID of the Grafana user.
|
|
109
|
+
A new password regenerates and only displays once. Make sure that you save it.
|
|
110
|
+
*
|
|
111
|
+
* @param request - The request {@link GlobalApiResetGrafanaUserPasswordRequest}
|
|
112
|
+
* @returns A Promise of GrafanaUser
|
|
113
|
+
*/
|
|
128
114
|
resetGrafanaUserPassword = (request) => this.client.fetch(
|
|
129
115
|
{
|
|
130
116
|
body: JSON.stringify(
|
|
@@ -159,11 +145,9 @@ class GlobalAPI extends api.API {
|
|
|
159
145
|
marshalling_gen.unmarshalListGrafanaProductDashboardsResponse
|
|
160
146
|
);
|
|
161
147
|
/**
|
|
162
|
-
* List Scaleway resources dashboards. Retrieve a list of available dashboards
|
|
163
|
-
* in Grafana, for all Scaleway resources which are integrated with Cockpit.
|
|
148
|
+
* List Scaleway resources dashboards. Retrieve a list of available dashboards in Grafana, for all Scaleway resources which are integrated with Cockpit.
|
|
164
149
|
*
|
|
165
|
-
* @param request - The request
|
|
166
|
-
* {@link GlobalApiListGrafanaProductDashboardsRequest}
|
|
150
|
+
* @param request - The request {@link GlobalApiListGrafanaProductDashboardsRequest}
|
|
167
151
|
* @returns A Promise of ListGrafanaProductDashboardsResponse
|
|
168
152
|
*/
|
|
169
153
|
listGrafanaProductDashboards = (request = {}) => resourcePaginator.enrichForPagination(
|
|
@@ -172,12 +156,9 @@ class GlobalAPI extends api.API {
|
|
|
172
156
|
request
|
|
173
157
|
);
|
|
174
158
|
/**
|
|
175
|
-
* Get Scaleway resource dashboard. Retrieve information about the dashboard
|
|
176
|
-
* of a Scaleway resource in Grafana, specified by the ID of the Project the
|
|
177
|
-
* Cockpit belongs to, and the name of the dashboard.
|
|
159
|
+
* Get Scaleway resource dashboard. Retrieve information about the dashboard of a Scaleway resource in Grafana, specified by the ID of the Project the Cockpit belongs to, and the name of the dashboard.
|
|
178
160
|
*
|
|
179
|
-
* @param request - The request
|
|
180
|
-
* {@link GlobalApiGetGrafanaProductDashboardRequest}
|
|
161
|
+
* @param request - The request {@link GlobalApiGetGrafanaProductDashboardRequest}
|
|
181
162
|
* @returns A Promise of GrafanaProductDashboard
|
|
182
163
|
*/
|
|
183
164
|
getGrafanaProductDashboard = (request) => this.client.fetch(
|
|
@@ -207,24 +188,22 @@ class GlobalAPI extends api.API {
|
|
|
207
188
|
marshalling_gen.unmarshalListPlansResponse
|
|
208
189
|
);
|
|
209
190
|
/**
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
191
|
+
* List plan types. Retrieve a list of available pricing plan types.
|
|
192
|
+
Deprecated, retention is now managed at the data source level.
|
|
193
|
+
*
|
|
194
|
+
* @deprecated
|
|
195
|
+
* @param request - The request {@link GlobalApiListPlansRequest}
|
|
196
|
+
* @returns A Promise of ListPlansResponse
|
|
197
|
+
*/
|
|
217
198
|
listPlans = (request = {}) => resourcePaginator.enrichForPagination("plans", this.pageOfListPlans, request);
|
|
218
199
|
/**
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
* @returns A Promise of Plan
|
|
227
|
-
*/
|
|
200
|
+
* Apply a pricing plan. Apply a pricing plan on a given Project. You must specify the ID of the pricing plan type. Note that you will be billed for the plan you apply.
|
|
201
|
+
Deprecated, retention is now managed at the data source level.
|
|
202
|
+
*
|
|
203
|
+
* @deprecated
|
|
204
|
+
* @param request - The request {@link GlobalApiSelectPlanRequest}
|
|
205
|
+
* @returns A Promise of Plan
|
|
206
|
+
*/
|
|
228
207
|
selectPlan = (request = {}) => this.client.fetch(
|
|
229
208
|
{
|
|
230
209
|
body: JSON.stringify(
|
|
@@ -237,14 +216,13 @@ class GlobalAPI extends api.API {
|
|
|
237
216
|
marshalling_gen.unmarshalPlan
|
|
238
217
|
);
|
|
239
218
|
/**
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
*/
|
|
219
|
+
* Get current plan. Retrieve a pricing plan for the given Project, specified by the ID of the Project.
|
|
220
|
+
Deprecated, retention is now managed at the data source level.
|
|
221
|
+
*
|
|
222
|
+
* @deprecated
|
|
223
|
+
* @param request - The request {@link GlobalApiGetCurrentPlanRequest}
|
|
224
|
+
* @returns A Promise of Plan
|
|
225
|
+
*/
|
|
248
226
|
getCurrentPlan = (request = {}) => this.client.fetch(
|
|
249
227
|
{
|
|
250
228
|
method: "GET",
|
|
@@ -278,17 +256,15 @@ class RegionalAPI extends api.API {
|
|
|
278
256
|
marshalling_gen.unmarshalGetConfigResponse
|
|
279
257
|
);
|
|
280
258
|
/**
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
* @returns A Promise of DataSource
|
|
291
|
-
*/
|
|
259
|
+
* Create a data source. You must specify the data source type upon creation. Available data source types include:
|
|
260
|
+
- metrics
|
|
261
|
+
- logs
|
|
262
|
+
- traces
|
|
263
|
+
The name of the data source will then be used as reference to name the associated Grafana data source.
|
|
264
|
+
*
|
|
265
|
+
* @param request - The request {@link RegionalApiCreateDataSourceRequest}
|
|
266
|
+
* @returns A Promise of DataSource
|
|
267
|
+
*/
|
|
292
268
|
createDataSource = (request) => this.client.fetch(
|
|
293
269
|
{
|
|
294
270
|
body: JSON.stringify(
|
|
@@ -304,9 +280,7 @@ class RegionalAPI extends api.API {
|
|
|
304
280
|
marshalling_gen.unmarshalDataSource
|
|
305
281
|
);
|
|
306
282
|
/**
|
|
307
|
-
* Get a data source. Retrieve information about a given data source,
|
|
308
|
-
* specified by the data source ID. The data source's information such as its
|
|
309
|
-
* name, type, URL, origin, and retention period, is returned.
|
|
283
|
+
* Get a data source. Retrieve information about a given data source, specified by the data source ID. The data source's information such as its name, type, URL, origin, and retention period, is returned.
|
|
310
284
|
*
|
|
311
285
|
* @param request - The request {@link RegionalApiGetDataSourceRequest}
|
|
312
286
|
* @returns A Promise of DataSource
|
|
@@ -319,9 +293,7 @@ class RegionalAPI extends api.API {
|
|
|
319
293
|
marshalling_gen.unmarshalDataSource
|
|
320
294
|
);
|
|
321
295
|
/**
|
|
322
|
-
* Delete a data source. Delete a given data source, specified by the data
|
|
323
|
-
* source ID. Note that deleting a data source is irreversible, and cannot be
|
|
324
|
-
* undone.
|
|
296
|
+
* Delete a data source. Delete a given data source, specified by the data source ID. Note that deleting a data source is irreversible, and cannot be undone.
|
|
325
297
|
*
|
|
326
298
|
* @param request - The request {@link RegionalApiDeleteDataSourceRequest}
|
|
327
299
|
*/
|
|
@@ -351,18 +323,15 @@ class RegionalAPI extends api.API {
|
|
|
351
323
|
marshalling_gen.unmarshalListDataSourcesResponse
|
|
352
324
|
);
|
|
353
325
|
/**
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
* @returns A Promise of ListDataSourcesResponse
|
|
361
|
-
*/
|
|
326
|
+
* List data sources. Retrieve the list of data sources available in the specified region. By default, the data sources returned in the list are ordered by creation date, in ascending order.
|
|
327
|
+
You can list data sources by Project, type and origin.
|
|
328
|
+
*
|
|
329
|
+
* @param request - The request {@link RegionalApiListDataSourcesRequest}
|
|
330
|
+
* @returns A Promise of ListDataSourcesResponse
|
|
331
|
+
*/
|
|
362
332
|
listDataSources = (request = {}) => resourcePaginator.enrichForPagination("dataSources", this.pageOfListDataSources, request);
|
|
363
333
|
/**
|
|
364
|
-
* Update a data source. Update a given data source name, specified by the
|
|
365
|
-
* data source ID.
|
|
334
|
+
* Update a data source. Update a given data source name, specified by the data source ID.
|
|
366
335
|
*
|
|
367
336
|
* @param request - The request {@link RegionalApiUpdateDataSourceRequest}
|
|
368
337
|
* @returns A Promise of DataSource
|
|
@@ -382,8 +351,7 @@ class RegionalAPI extends api.API {
|
|
|
382
351
|
marshalling_gen.unmarshalDataSource
|
|
383
352
|
);
|
|
384
353
|
/**
|
|
385
|
-
* Get data source usage overview. Retrieve the data source usage overview per
|
|
386
|
-
* type for the specified Project.
|
|
354
|
+
* Get data source usage overview. Retrieve the data source usage overview per type for the specified Project.
|
|
387
355
|
*
|
|
388
356
|
* @param request - The request {@link RegionalApiGetUsageOverviewRequest}
|
|
389
357
|
* @returns A Promise of UsageOverview
|
|
@@ -403,15 +371,12 @@ class RegionalAPI extends api.API {
|
|
|
403
371
|
marshalling_gen.unmarshalUsageOverview
|
|
404
372
|
);
|
|
405
373
|
/**
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
* @param request - The request {@link RegionalApiCreateTokenRequest}
|
|
413
|
-
* @returns A Promise of Token
|
|
414
|
-
*/
|
|
374
|
+
* Create a token. Give your token the relevant scopes to ensure it has the right permissions to interact with your data sources and the Alert manager. Make sure that you create your token in the same regions as the data sources you want to use it for.
|
|
375
|
+
Upon creation, your token's secret key display only once. Make sure that you save it.
|
|
376
|
+
*
|
|
377
|
+
* @param request - The request {@link RegionalApiCreateTokenRequest}
|
|
378
|
+
* @returns A Promise of Token
|
|
379
|
+
*/
|
|
415
380
|
createToken = (request) => this.client.fetch(
|
|
416
381
|
{
|
|
417
382
|
body: JSON.stringify(
|
|
@@ -444,17 +409,15 @@ class RegionalAPI extends api.API {
|
|
|
444
409
|
marshalling_gen.unmarshalListTokensResponse
|
|
445
410
|
);
|
|
446
411
|
/**
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
*/
|
|
412
|
+
* List tokens. Retrieve a list of all tokens in the specified region. By default, tokens returned in the list are ordered by creation date, in ascending order.
|
|
413
|
+
You can filter tokens by Project ID and token scopes.
|
|
414
|
+
*
|
|
415
|
+
* @param request - The request {@link RegionalApiListTokensRequest}
|
|
416
|
+
* @returns A Promise of ListTokensResponse
|
|
417
|
+
*/
|
|
454
418
|
listTokens = (request = {}) => resourcePaginator.enrichForPagination("tokens", this.pageOfListTokens, request);
|
|
455
419
|
/**
|
|
456
|
-
* Get a token. Retrieve information about a given token, specified by the
|
|
457
|
-
* token ID. The token's information such as its scopes, is returned.
|
|
420
|
+
* Get a token. Retrieve information about a given token, specified by the token ID. The token's information such as its scopes, is returned.
|
|
458
421
|
*
|
|
459
422
|
* @param request - The request {@link RegionalApiGetTokenRequest}
|
|
460
423
|
* @returns A Promise of Token
|
|
@@ -467,8 +430,7 @@ class RegionalAPI extends api.API {
|
|
|
467
430
|
marshalling_gen.unmarshalToken
|
|
468
431
|
);
|
|
469
432
|
/**
|
|
470
|
-
* Delete a token. Delete a given token, specified by the token ID. Deleting a
|
|
471
|
-
* token is irreversible and cannot be undone.
|
|
433
|
+
* Delete a token. Delete a given token, specified by the token ID. Deleting a token is irreversible and cannot be undone.
|
|
472
434
|
*
|
|
473
435
|
* @param request - The request {@link RegionalApiDeleteTokenRequest}
|
|
474
436
|
*/
|
|
@@ -477,14 +439,12 @@ class RegionalAPI extends api.API {
|
|
|
477
439
|
path: `/cockpit/v1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/tokens/${marshalling.validatePathParam("tokenId", request.tokenId)}`
|
|
478
440
|
});
|
|
479
441
|
/**
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
* @returns A Promise of AlertManager
|
|
487
|
-
*/
|
|
442
|
+
* Get the Alert manager. Retrieve information about the Alert manager which is unique per Project and region. By default the Alert manager is disabled.
|
|
443
|
+
The output returned displays a URL to access the Alert manager, and whether the Alert manager and managed alerts are enabled.
|
|
444
|
+
*
|
|
445
|
+
* @param request - The request {@link RegionalApiGetAlertManagerRequest}
|
|
446
|
+
* @returns A Promise of AlertManager
|
|
447
|
+
*/
|
|
488
448
|
getAlertManager = (request = {}) => this.client.fetch(
|
|
489
449
|
{
|
|
490
450
|
method: "GET",
|
|
@@ -497,10 +457,7 @@ class RegionalAPI extends api.API {
|
|
|
497
457
|
marshalling_gen.unmarshalAlertManager
|
|
498
458
|
);
|
|
499
459
|
/**
|
|
500
|
-
* Enable the Alert manager. Enabling the Alert manager allows you to enable
|
|
501
|
-
* managed alerts and create contact points in the specified Project and
|
|
502
|
-
* region, to be notified when your Scaleway resources may require your
|
|
503
|
-
* attention.
|
|
460
|
+
* Enable the Alert manager. Enabling the Alert manager allows you to enable managed alerts and create contact points in the specified Project and region, to be notified when your Scaleway resources may require your attention.
|
|
504
461
|
*
|
|
505
462
|
* @param request - The request {@link RegionalApiEnableAlertManagerRequest}
|
|
506
463
|
* @returns A Promise of AlertManager
|
|
@@ -520,9 +477,7 @@ class RegionalAPI extends api.API {
|
|
|
520
477
|
marshalling_gen.unmarshalAlertManager
|
|
521
478
|
);
|
|
522
479
|
/**
|
|
523
|
-
* Disable the Alert manager. Disabling the Alert manager deletes the contact
|
|
524
|
-
* points you have created and disables managed alerts in the specified
|
|
525
|
-
* Project and region.
|
|
480
|
+
* Disable the Alert manager. Disabling the Alert manager deletes the contact points you have created and disables managed alerts in the specified Project and region.
|
|
526
481
|
*
|
|
527
482
|
* @param request - The request {@link RegionalApiDisableAlertManagerRequest}
|
|
528
483
|
* @returns A Promise of AlertManager
|
|
@@ -542,16 +497,13 @@ class RegionalAPI extends api.API {
|
|
|
542
497
|
marshalling_gen.unmarshalAlertManager
|
|
543
498
|
);
|
|
544
499
|
/**
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
* @param request - The request {@link RegionalApiCreateContactPointRequest}
|
|
553
|
-
* @returns A Promise of ContactPoint
|
|
554
|
-
*/
|
|
500
|
+
* Create a contact point. Contact points are email addresses associated with the default receiver, that the Alert manager sends alerts to.
|
|
501
|
+
The source of the alerts are data sources within the same Project and region as the Alert manager.
|
|
502
|
+
If you need to receive alerts for other receivers, you can create additional contact points and receivers in Grafana. Make sure that you select the Scaleway Alert manager.
|
|
503
|
+
*
|
|
504
|
+
* @param request - The request {@link RegionalApiCreateContactPointRequest}
|
|
505
|
+
* @returns A Promise of ContactPoint
|
|
506
|
+
*/
|
|
555
507
|
createContactPoint = (request = {}) => this.client.fetch(
|
|
556
508
|
{
|
|
557
509
|
body: JSON.stringify(
|
|
@@ -585,9 +537,7 @@ class RegionalAPI extends api.API {
|
|
|
585
537
|
marshalling_gen.unmarshalListContactPointsResponse
|
|
586
538
|
);
|
|
587
539
|
/**
|
|
588
|
-
* List contact points. Retrieve a list of contact points for the specified
|
|
589
|
-
* Project. The response lists all contact points and receivers created in
|
|
590
|
-
* Grafana or via the API.
|
|
540
|
+
* List contact points. Retrieve a list of contact points for the specified Project. The response lists all contact points and receivers created in Grafana or via the API.
|
|
591
541
|
*
|
|
592
542
|
* @param request - The request {@link RegionalApiListContactPointsRequest}
|
|
593
543
|
* @returns A Promise of ListContactPointsResponse
|
|
@@ -608,8 +558,7 @@ class RegionalAPI extends api.API {
|
|
|
608
558
|
marshalling_gen.unmarshalContactPoint
|
|
609
559
|
);
|
|
610
560
|
/**
|
|
611
|
-
* Delete a contact point. Delete a contact point associated with the default
|
|
612
|
-
* receiver.
|
|
561
|
+
* Delete a contact point. Delete a contact point associated with the default receiver.
|
|
613
562
|
*
|
|
614
563
|
* @param request - The request {@link RegionalApiDeleteContactPointRequest}
|
|
615
564
|
*/
|
|
@@ -625,8 +574,7 @@ class RegionalAPI extends api.API {
|
|
|
625
574
|
path: `/cockpit/v1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/alert-manager/contact-points/delete`
|
|
626
575
|
});
|
|
627
576
|
/**
|
|
628
|
-
* List alerts. List preconfigured and/or custom alerts for the specified
|
|
629
|
-
* Project.
|
|
577
|
+
* List alerts. List preconfigured and/or custom alerts for the specified Project.
|
|
630
578
|
*
|
|
631
579
|
* @param request - The request {@link RegionalApiListAlertsRequest}
|
|
632
580
|
* @returns A Promise of ListAlertsResponse
|
|
@@ -648,9 +596,7 @@ class RegionalAPI extends api.API {
|
|
|
648
596
|
marshalling_gen.unmarshalListAlertsResponse
|
|
649
597
|
);
|
|
650
598
|
/**
|
|
651
|
-
* Enable managed alerts. Enable the sending of managed alerts for the
|
|
652
|
-
* specified Project. Managed alerts are predefined alerts that apply to
|
|
653
|
-
* Scaleway recources integrated with Cockpit by default.
|
|
599
|
+
* Enable managed alerts. Enable the sending of managed alerts for the specified Project. Managed alerts are predefined alerts that apply to Scaleway recources integrated with Cockpit by default.
|
|
654
600
|
*
|
|
655
601
|
* @param request - The request {@link RegionalApiEnableManagedAlertsRequest}
|
|
656
602
|
* @returns A Promise of AlertManager
|
|
@@ -670,8 +616,7 @@ class RegionalAPI extends api.API {
|
|
|
670
616
|
marshalling_gen.unmarshalAlertManager
|
|
671
617
|
);
|
|
672
618
|
/**
|
|
673
|
-
* Disable managed alerts. Disable the sending of managed alerts for the
|
|
674
|
-
* specified Project.
|
|
619
|
+
* Disable managed alerts. Disable the sending of managed alerts for the specified Project.
|
|
675
620
|
*
|
|
676
621
|
* @param request - The request {@link RegionalApiDisableManagedAlertsRequest}
|
|
677
622
|
* @returns A Promise of AlertManager
|
|
@@ -691,8 +636,7 @@ class RegionalAPI extends api.API {
|
|
|
691
636
|
marshalling_gen.unmarshalAlertManager
|
|
692
637
|
);
|
|
693
638
|
/**
|
|
694
|
-
* Trigger a test alert. Send a test alert to the Alert manager to make sure
|
|
695
|
-
* your contact points get notified.
|
|
639
|
+
* Trigger a test alert. Send a test alert to the Alert manager to make sure your contact points get notified.
|
|
696
640
|
*
|
|
697
641
|
* @param request - The request {@link RegionalApiTriggerTestAlertRequest}
|
|
698
642
|
*/
|