@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
|
@@ -9,13 +9,12 @@ const jsonContentHeaders = {
|
|
|
9
9
|
};
|
|
10
10
|
class GlobalAPI extends API$1 {
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*/
|
|
12
|
+
* Get your Cockpit's Grafana. Retrieve information on your Cockpit's Grafana, specified by the ID of the Project the Cockpit belongs to.
|
|
13
|
+
The output returned displays the URL to access your Cockpit's Grafana.
|
|
14
|
+
*
|
|
15
|
+
* @param request - The request {@link GlobalApiGetGrafanaRequest}
|
|
16
|
+
* @returns A Promise of Grafana
|
|
17
|
+
*/
|
|
19
18
|
getGrafana = (request = {}) => this.client.fetch(
|
|
20
19
|
{
|
|
21
20
|
method: "GET",
|
|
@@ -28,9 +27,7 @@ class GlobalAPI extends API$1 {
|
|
|
28
27
|
unmarshalGrafana
|
|
29
28
|
);
|
|
30
29
|
/**
|
|
31
|
-
* Synchronize Grafana data sources. Trigger the synchronization of all your
|
|
32
|
-
* data sources and the alert manager in the relevant regions. The alert
|
|
33
|
-
* manager will only be synchronized if you have enabled it.
|
|
30
|
+
* 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.
|
|
34
31
|
*
|
|
35
32
|
* @param request - The request {@link GlobalApiSyncGrafanaDataSourcesRequest}
|
|
36
33
|
*/
|
|
@@ -46,16 +43,12 @@ class GlobalAPI extends API$1 {
|
|
|
46
43
|
path: `/cockpit/v1/grafana/sync-data-sources`
|
|
47
44
|
});
|
|
48
45
|
/**
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
*
|
|
56
|
-
* @param request - The request {@link GlobalApiCreateGrafanaUserRequest}
|
|
57
|
-
* @returns A Promise of GrafanaUser
|
|
58
|
-
*/
|
|
46
|
+
* 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.
|
|
47
|
+
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.
|
|
48
|
+
*
|
|
49
|
+
* @param request - The request {@link GlobalApiCreateGrafanaUserRequest}
|
|
50
|
+
* @returns A Promise of GrafanaUser
|
|
51
|
+
*/
|
|
59
52
|
createGrafanaUser = (request) => this.client.fetch(
|
|
60
53
|
{
|
|
61
54
|
body: JSON.stringify(
|
|
@@ -90,18 +83,14 @@ class GlobalAPI extends API$1 {
|
|
|
90
83
|
unmarshalListGrafanaUsersResponse
|
|
91
84
|
);
|
|
92
85
|
/**
|
|
93
|
-
* List Grafana users. List all Grafana users created in your Cockpit's
|
|
94
|
-
* Grafana. By default, the Grafana users returned in the list are ordered in
|
|
95
|
-
* ascending order.
|
|
86
|
+
* 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.
|
|
96
87
|
*
|
|
97
88
|
* @param request - The request {@link GlobalApiListGrafanaUsersRequest}
|
|
98
89
|
* @returns A Promise of ListGrafanaUsersResponse
|
|
99
90
|
*/
|
|
100
91
|
listGrafanaUsers = (request = {}) => enrichForPagination("grafanaUsers", this.pageOfListGrafanaUsers, request);
|
|
101
92
|
/**
|
|
102
|
-
* Delete a Grafana user. Delete a Grafana user from your Cockpit's Grafana,
|
|
103
|
-
* specified by the ID of the Project the Cockpit belongs to, and the ID of
|
|
104
|
-
* the Grafana user.
|
|
93
|
+
* 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.
|
|
105
94
|
*
|
|
106
95
|
* @param request - The request {@link GlobalApiDeleteGrafanaUserRequest}
|
|
107
96
|
*/
|
|
@@ -114,15 +103,12 @@ class GlobalAPI extends API$1 {
|
|
|
114
103
|
])
|
|
115
104
|
});
|
|
116
105
|
/**
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
* {@link GlobalApiResetGrafanaUserPasswordRequest}
|
|
124
|
-
* @returns A Promise of GrafanaUser
|
|
125
|
-
*/
|
|
106
|
+
* 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.
|
|
107
|
+
A new password regenerates and only displays once. Make sure that you save it.
|
|
108
|
+
*
|
|
109
|
+
* @param request - The request {@link GlobalApiResetGrafanaUserPasswordRequest}
|
|
110
|
+
* @returns A Promise of GrafanaUser
|
|
111
|
+
*/
|
|
126
112
|
resetGrafanaUserPassword = (request) => this.client.fetch(
|
|
127
113
|
{
|
|
128
114
|
body: JSON.stringify(
|
|
@@ -157,11 +143,9 @@ class GlobalAPI extends API$1 {
|
|
|
157
143
|
unmarshalListGrafanaProductDashboardsResponse
|
|
158
144
|
);
|
|
159
145
|
/**
|
|
160
|
-
* List Scaleway resources dashboards. Retrieve a list of available dashboards
|
|
161
|
-
* in Grafana, for all Scaleway resources which are integrated with Cockpit.
|
|
146
|
+
* List Scaleway resources dashboards. Retrieve a list of available dashboards in Grafana, for all Scaleway resources which are integrated with Cockpit.
|
|
162
147
|
*
|
|
163
|
-
* @param request - The request
|
|
164
|
-
* {@link GlobalApiListGrafanaProductDashboardsRequest}
|
|
148
|
+
* @param request - The request {@link GlobalApiListGrafanaProductDashboardsRequest}
|
|
165
149
|
* @returns A Promise of ListGrafanaProductDashboardsResponse
|
|
166
150
|
*/
|
|
167
151
|
listGrafanaProductDashboards = (request = {}) => enrichForPagination(
|
|
@@ -170,12 +154,9 @@ class GlobalAPI extends API$1 {
|
|
|
170
154
|
request
|
|
171
155
|
);
|
|
172
156
|
/**
|
|
173
|
-
* Get Scaleway resource dashboard. Retrieve information about the dashboard
|
|
174
|
-
* of a Scaleway resource in Grafana, specified by the ID of the Project the
|
|
175
|
-
* Cockpit belongs to, and the name of the dashboard.
|
|
157
|
+
* 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.
|
|
176
158
|
*
|
|
177
|
-
* @param request - The request
|
|
178
|
-
* {@link GlobalApiGetGrafanaProductDashboardRequest}
|
|
159
|
+
* @param request - The request {@link GlobalApiGetGrafanaProductDashboardRequest}
|
|
179
160
|
* @returns A Promise of GrafanaProductDashboard
|
|
180
161
|
*/
|
|
181
162
|
getGrafanaProductDashboard = (request) => this.client.fetch(
|
|
@@ -205,24 +186,22 @@ class GlobalAPI extends API$1 {
|
|
|
205
186
|
unmarshalListPlansResponse
|
|
206
187
|
);
|
|
207
188
|
/**
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
189
|
+
* List plan types. Retrieve a list of available pricing plan types.
|
|
190
|
+
Deprecated, retention is now managed at the data source level.
|
|
191
|
+
*
|
|
192
|
+
* @deprecated
|
|
193
|
+
* @param request - The request {@link GlobalApiListPlansRequest}
|
|
194
|
+
* @returns A Promise of ListPlansResponse
|
|
195
|
+
*/
|
|
215
196
|
listPlans = (request = {}) => enrichForPagination("plans", this.pageOfListPlans, request);
|
|
216
197
|
/**
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
* @returns A Promise of Plan
|
|
225
|
-
*/
|
|
198
|
+
* 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.
|
|
199
|
+
Deprecated, retention is now managed at the data source level.
|
|
200
|
+
*
|
|
201
|
+
* @deprecated
|
|
202
|
+
* @param request - The request {@link GlobalApiSelectPlanRequest}
|
|
203
|
+
* @returns A Promise of Plan
|
|
204
|
+
*/
|
|
226
205
|
selectPlan = (request = {}) => this.client.fetch(
|
|
227
206
|
{
|
|
228
207
|
body: JSON.stringify(
|
|
@@ -235,14 +214,13 @@ class GlobalAPI extends API$1 {
|
|
|
235
214
|
unmarshalPlan
|
|
236
215
|
);
|
|
237
216
|
/**
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
*/
|
|
217
|
+
* Get current plan. Retrieve a pricing plan for the given Project, specified by the ID of the Project.
|
|
218
|
+
Deprecated, retention is now managed at the data source level.
|
|
219
|
+
*
|
|
220
|
+
* @deprecated
|
|
221
|
+
* @param request - The request {@link GlobalApiGetCurrentPlanRequest}
|
|
222
|
+
* @returns A Promise of Plan
|
|
223
|
+
*/
|
|
246
224
|
getCurrentPlan = (request = {}) => this.client.fetch(
|
|
247
225
|
{
|
|
248
226
|
method: "GET",
|
|
@@ -276,17 +254,15 @@ class RegionalAPI extends API$1 {
|
|
|
276
254
|
unmarshalGetConfigResponse
|
|
277
255
|
);
|
|
278
256
|
/**
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
* @returns A Promise of DataSource
|
|
289
|
-
*/
|
|
257
|
+
* Create a data source. You must specify the data source type upon creation. Available data source types include:
|
|
258
|
+
- metrics
|
|
259
|
+
- logs
|
|
260
|
+
- traces
|
|
261
|
+
The name of the data source will then be used as reference to name the associated Grafana data source.
|
|
262
|
+
*
|
|
263
|
+
* @param request - The request {@link RegionalApiCreateDataSourceRequest}
|
|
264
|
+
* @returns A Promise of DataSource
|
|
265
|
+
*/
|
|
290
266
|
createDataSource = (request) => this.client.fetch(
|
|
291
267
|
{
|
|
292
268
|
body: JSON.stringify(
|
|
@@ -302,9 +278,7 @@ class RegionalAPI extends API$1 {
|
|
|
302
278
|
unmarshalDataSource
|
|
303
279
|
);
|
|
304
280
|
/**
|
|
305
|
-
* Get a data source. Retrieve information about a given data source,
|
|
306
|
-
* specified by the data source ID. The data source's information such as its
|
|
307
|
-
* name, type, URL, origin, and retention period, is returned.
|
|
281
|
+
* 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.
|
|
308
282
|
*
|
|
309
283
|
* @param request - The request {@link RegionalApiGetDataSourceRequest}
|
|
310
284
|
* @returns A Promise of DataSource
|
|
@@ -317,9 +291,7 @@ class RegionalAPI extends API$1 {
|
|
|
317
291
|
unmarshalDataSource
|
|
318
292
|
);
|
|
319
293
|
/**
|
|
320
|
-
* Delete a data source. Delete a given data source, specified by the data
|
|
321
|
-
* source ID. Note that deleting a data source is irreversible, and cannot be
|
|
322
|
-
* undone.
|
|
294
|
+
* 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.
|
|
323
295
|
*
|
|
324
296
|
* @param request - The request {@link RegionalApiDeleteDataSourceRequest}
|
|
325
297
|
*/
|
|
@@ -349,18 +321,15 @@ class RegionalAPI extends API$1 {
|
|
|
349
321
|
unmarshalListDataSourcesResponse
|
|
350
322
|
);
|
|
351
323
|
/**
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
* @returns A Promise of ListDataSourcesResponse
|
|
359
|
-
*/
|
|
324
|
+
* 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.
|
|
325
|
+
You can list data sources by Project, type and origin.
|
|
326
|
+
*
|
|
327
|
+
* @param request - The request {@link RegionalApiListDataSourcesRequest}
|
|
328
|
+
* @returns A Promise of ListDataSourcesResponse
|
|
329
|
+
*/
|
|
360
330
|
listDataSources = (request = {}) => enrichForPagination("dataSources", this.pageOfListDataSources, request);
|
|
361
331
|
/**
|
|
362
|
-
* Update a data source. Update a given data source name, specified by the
|
|
363
|
-
* data source ID.
|
|
332
|
+
* Update a data source. Update a given data source name, specified by the data source ID.
|
|
364
333
|
*
|
|
365
334
|
* @param request - The request {@link RegionalApiUpdateDataSourceRequest}
|
|
366
335
|
* @returns A Promise of DataSource
|
|
@@ -380,8 +349,7 @@ class RegionalAPI extends API$1 {
|
|
|
380
349
|
unmarshalDataSource
|
|
381
350
|
);
|
|
382
351
|
/**
|
|
383
|
-
* Get data source usage overview. Retrieve the data source usage overview per
|
|
384
|
-
* type for the specified Project.
|
|
352
|
+
* Get data source usage overview. Retrieve the data source usage overview per type for the specified Project.
|
|
385
353
|
*
|
|
386
354
|
* @param request - The request {@link RegionalApiGetUsageOverviewRequest}
|
|
387
355
|
* @returns A Promise of UsageOverview
|
|
@@ -401,15 +369,12 @@ class RegionalAPI extends API$1 {
|
|
|
401
369
|
unmarshalUsageOverview
|
|
402
370
|
);
|
|
403
371
|
/**
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
* @param request - The request {@link RegionalApiCreateTokenRequest}
|
|
411
|
-
* @returns A Promise of Token
|
|
412
|
-
*/
|
|
372
|
+
* 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.
|
|
373
|
+
Upon creation, your token's secret key display only once. Make sure that you save it.
|
|
374
|
+
*
|
|
375
|
+
* @param request - The request {@link RegionalApiCreateTokenRequest}
|
|
376
|
+
* @returns A Promise of Token
|
|
377
|
+
*/
|
|
413
378
|
createToken = (request) => this.client.fetch(
|
|
414
379
|
{
|
|
415
380
|
body: JSON.stringify(
|
|
@@ -442,17 +407,15 @@ class RegionalAPI extends API$1 {
|
|
|
442
407
|
unmarshalListTokensResponse
|
|
443
408
|
);
|
|
444
409
|
/**
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
*/
|
|
410
|
+
* 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.
|
|
411
|
+
You can filter tokens by Project ID and token scopes.
|
|
412
|
+
*
|
|
413
|
+
* @param request - The request {@link RegionalApiListTokensRequest}
|
|
414
|
+
* @returns A Promise of ListTokensResponse
|
|
415
|
+
*/
|
|
452
416
|
listTokens = (request = {}) => enrichForPagination("tokens", this.pageOfListTokens, request);
|
|
453
417
|
/**
|
|
454
|
-
* Get a token. Retrieve information about a given token, specified by the
|
|
455
|
-
* token ID. The token's information such as its scopes, is returned.
|
|
418
|
+
* Get a token. Retrieve information about a given token, specified by the token ID. The token's information such as its scopes, is returned.
|
|
456
419
|
*
|
|
457
420
|
* @param request - The request {@link RegionalApiGetTokenRequest}
|
|
458
421
|
* @returns A Promise of Token
|
|
@@ -465,8 +428,7 @@ class RegionalAPI extends API$1 {
|
|
|
465
428
|
unmarshalToken
|
|
466
429
|
);
|
|
467
430
|
/**
|
|
468
|
-
* Delete a token. Delete a given token, specified by the token ID. Deleting a
|
|
469
|
-
* token is irreversible and cannot be undone.
|
|
431
|
+
* Delete a token. Delete a given token, specified by the token ID. Deleting a token is irreversible and cannot be undone.
|
|
470
432
|
*
|
|
471
433
|
* @param request - The request {@link RegionalApiDeleteTokenRequest}
|
|
472
434
|
*/
|
|
@@ -475,14 +437,12 @@ class RegionalAPI extends API$1 {
|
|
|
475
437
|
path: `/cockpit/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/tokens/${validatePathParam("tokenId", request.tokenId)}`
|
|
476
438
|
});
|
|
477
439
|
/**
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
* @returns A Promise of AlertManager
|
|
485
|
-
*/
|
|
440
|
+
* Get the Alert manager. Retrieve information about the Alert manager which is unique per Project and region. By default the Alert manager is disabled.
|
|
441
|
+
The output returned displays a URL to access the Alert manager, and whether the Alert manager and managed alerts are enabled.
|
|
442
|
+
*
|
|
443
|
+
* @param request - The request {@link RegionalApiGetAlertManagerRequest}
|
|
444
|
+
* @returns A Promise of AlertManager
|
|
445
|
+
*/
|
|
486
446
|
getAlertManager = (request = {}) => this.client.fetch(
|
|
487
447
|
{
|
|
488
448
|
method: "GET",
|
|
@@ -495,10 +455,7 @@ class RegionalAPI extends API$1 {
|
|
|
495
455
|
unmarshalAlertManager
|
|
496
456
|
);
|
|
497
457
|
/**
|
|
498
|
-
* Enable the Alert manager. Enabling the Alert manager allows you to enable
|
|
499
|
-
* managed alerts and create contact points in the specified Project and
|
|
500
|
-
* region, to be notified when your Scaleway resources may require your
|
|
501
|
-
* attention.
|
|
458
|
+
* 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.
|
|
502
459
|
*
|
|
503
460
|
* @param request - The request {@link RegionalApiEnableAlertManagerRequest}
|
|
504
461
|
* @returns A Promise of AlertManager
|
|
@@ -518,9 +475,7 @@ class RegionalAPI extends API$1 {
|
|
|
518
475
|
unmarshalAlertManager
|
|
519
476
|
);
|
|
520
477
|
/**
|
|
521
|
-
* Disable the Alert manager. Disabling the Alert manager deletes the contact
|
|
522
|
-
* points you have created and disables managed alerts in the specified
|
|
523
|
-
* Project and region.
|
|
478
|
+
* 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.
|
|
524
479
|
*
|
|
525
480
|
* @param request - The request {@link RegionalApiDisableAlertManagerRequest}
|
|
526
481
|
* @returns A Promise of AlertManager
|
|
@@ -540,16 +495,13 @@ class RegionalAPI extends API$1 {
|
|
|
540
495
|
unmarshalAlertManager
|
|
541
496
|
);
|
|
542
497
|
/**
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
* @param request - The request {@link RegionalApiCreateContactPointRequest}
|
|
551
|
-
* @returns A Promise of ContactPoint
|
|
552
|
-
*/
|
|
498
|
+
* Create a contact point. Contact points are email addresses associated with the default receiver, that the Alert manager sends alerts to.
|
|
499
|
+
The source of the alerts are data sources within the same Project and region as the Alert manager.
|
|
500
|
+
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.
|
|
501
|
+
*
|
|
502
|
+
* @param request - The request {@link RegionalApiCreateContactPointRequest}
|
|
503
|
+
* @returns A Promise of ContactPoint
|
|
504
|
+
*/
|
|
553
505
|
createContactPoint = (request = {}) => this.client.fetch(
|
|
554
506
|
{
|
|
555
507
|
body: JSON.stringify(
|
|
@@ -583,9 +535,7 @@ class RegionalAPI extends API$1 {
|
|
|
583
535
|
unmarshalListContactPointsResponse
|
|
584
536
|
);
|
|
585
537
|
/**
|
|
586
|
-
* List contact points. Retrieve a list of contact points for the specified
|
|
587
|
-
* Project. The response lists all contact points and receivers created in
|
|
588
|
-
* Grafana or via the API.
|
|
538
|
+
* 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.
|
|
589
539
|
*
|
|
590
540
|
* @param request - The request {@link RegionalApiListContactPointsRequest}
|
|
591
541
|
* @returns A Promise of ListContactPointsResponse
|
|
@@ -606,8 +556,7 @@ class RegionalAPI extends API$1 {
|
|
|
606
556
|
unmarshalContactPoint
|
|
607
557
|
);
|
|
608
558
|
/**
|
|
609
|
-
* Delete a contact point. Delete a contact point associated with the default
|
|
610
|
-
* receiver.
|
|
559
|
+
* Delete a contact point. Delete a contact point associated with the default receiver.
|
|
611
560
|
*
|
|
612
561
|
* @param request - The request {@link RegionalApiDeleteContactPointRequest}
|
|
613
562
|
*/
|
|
@@ -623,8 +572,7 @@ class RegionalAPI extends API$1 {
|
|
|
623
572
|
path: `/cockpit/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/alert-manager/contact-points/delete`
|
|
624
573
|
});
|
|
625
574
|
/**
|
|
626
|
-
* List alerts. List preconfigured and/or custom alerts for the specified
|
|
627
|
-
* Project.
|
|
575
|
+
* List alerts. List preconfigured and/or custom alerts for the specified Project.
|
|
628
576
|
*
|
|
629
577
|
* @param request - The request {@link RegionalApiListAlertsRequest}
|
|
630
578
|
* @returns A Promise of ListAlertsResponse
|
|
@@ -646,9 +594,7 @@ class RegionalAPI extends API$1 {
|
|
|
646
594
|
unmarshalListAlertsResponse
|
|
647
595
|
);
|
|
648
596
|
/**
|
|
649
|
-
* Enable managed alerts. Enable the sending of managed alerts for the
|
|
650
|
-
* specified Project. Managed alerts are predefined alerts that apply to
|
|
651
|
-
* Scaleway recources integrated with Cockpit by default.
|
|
597
|
+
* 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.
|
|
652
598
|
*
|
|
653
599
|
* @param request - The request {@link RegionalApiEnableManagedAlertsRequest}
|
|
654
600
|
* @returns A Promise of AlertManager
|
|
@@ -668,8 +614,7 @@ class RegionalAPI extends API$1 {
|
|
|
668
614
|
unmarshalAlertManager
|
|
669
615
|
);
|
|
670
616
|
/**
|
|
671
|
-
* Disable managed alerts. Disable the sending of managed alerts for the
|
|
672
|
-
* specified Project.
|
|
617
|
+
* Disable managed alerts. Disable the sending of managed alerts for the specified Project.
|
|
673
618
|
*
|
|
674
619
|
* @param request - The request {@link RegionalApiDisableManagedAlertsRequest}
|
|
675
620
|
* @returns A Promise of AlertManager
|
|
@@ -689,8 +634,7 @@ class RegionalAPI extends API$1 {
|
|
|
689
634
|
unmarshalAlertManager
|
|
690
635
|
);
|
|
691
636
|
/**
|
|
692
|
-
* Trigger a test alert. Send a test alert to the Alert manager to make sure
|
|
693
|
-
* your contact points get notified.
|
|
637
|
+
* Trigger a test alert. Send a test alert to the Alert manager to make sure your contact points get notified.
|
|
694
638
|
*
|
|
695
639
|
* @param request - The request {@link RegionalApiTriggerTestAlertRequest}
|
|
696
640
|
*/
|