@scaleway/sdk 2.72.0 → 2.74.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 (209) hide show
  1. package/dist/api/account/v3/api.gen.cjs +13 -32
  2. package/dist/api/account/v3/api.gen.d.ts +17 -36
  3. package/dist/api/account/v3/api.gen.js +13 -32
  4. package/dist/api/account/v3/index.gen.d.ts +1 -1
  5. package/dist/api/account/v3/marshalling.gen.cjs +94 -65
  6. package/dist/api/account/v3/marshalling.gen.js +94 -65
  7. package/dist/api/account/v3/types.gen.d.ts +224 -104
  8. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +19 -46
  9. package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +24 -49
  10. package/dist/api/applesilicon/v1alpha1/api.gen.js +19 -46
  11. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +310 -135
  12. package/dist/api/audit_trail/v1alpha1/api.gen.cjs +2 -5
  13. package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +4 -8
  14. package/dist/api/audit_trail/v1alpha1/api.gen.js +2 -5
  15. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +110 -82
  16. package/dist/api/baremetal/v1/api.gen.cjs +28 -61
  17. package/dist/api/baremetal/v1/api.gen.d.ts +29 -60
  18. package/dist/api/baremetal/v1/api.gen.js +28 -61
  19. package/dist/api/baremetal/v1/types.gen.d.ts +802 -315
  20. package/dist/api/baremetal/v3/api.gen.cjs +7 -14
  21. package/dist/api/baremetal/v3/api.gen.d.ts +10 -15
  22. package/dist/api/baremetal/v3/api.gen.js +7 -14
  23. package/dist/api/baremetal/v3/types.gen.d.ts +82 -32
  24. package/dist/api/billing/v2beta1/api.gen.cjs +11 -20
  25. package/dist/api/billing/v2beta1/api.gen.d.ts +9 -19
  26. package/dist/api/billing/v2beta1/api.gen.js +11 -20
  27. package/dist/api/billing/v2beta1/types.gen.d.ts +231 -102
  28. package/dist/api/block/v1/api.gen.cjs +37 -55
  29. package/dist/api/block/v1/api.gen.d.ts +19 -37
  30. package/dist/api/block/v1/api.gen.js +37 -55
  31. package/dist/api/block/v1/types.gen.d.ts +306 -125
  32. package/dist/api/block/v1alpha1/api.gen.cjs +45 -64
  33. package/dist/api/block/v1alpha1/api.gen.d.ts +22 -41
  34. package/dist/api/block/v1alpha1/api.gen.js +45 -64
  35. package/dist/api/block/v1alpha1/types.gen.d.ts +327 -132
  36. package/dist/api/cockpit/v1/api.gen.cjs +132 -156
  37. package/dist/api/cockpit/v1/api.gen.d.ts +66 -113
  38. package/dist/api/cockpit/v1/api.gen.js +133 -157
  39. package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
  40. package/dist/api/cockpit/v1/marshalling.gen.cjs +23 -0
  41. package/dist/api/cockpit/v1/marshalling.gen.d.ts +3 -1
  42. package/dist/api/cockpit/v1/marshalling.gen.js +23 -0
  43. package/dist/api/cockpit/v1/types.gen.d.ts +628 -246
  44. package/dist/api/container/v1beta1/api.gen.cjs +7 -14
  45. package/dist/api/container/v1beta1/api.gen.d.ts +9 -16
  46. package/dist/api/container/v1beta1/api.gen.js +7 -14
  47. package/dist/api/container/v1beta1/types.gen.d.ts +648 -322
  48. package/dist/api/dedibox/v1/api.gen.cjs +45 -69
  49. package/dist/api/dedibox/v1/api.gen.d.ts +52 -62
  50. package/dist/api/dedibox/v1/api.gen.js +45 -69
  51. package/dist/api/dedibox/v1/types.gen.d.ts +1765 -645
  52. package/dist/api/domain/v2beta1/api.gen.cjs +119 -178
  53. package/dist/api/domain/v2beta1/api.gen.d.ts +71 -130
  54. package/dist/api/domain/v2beta1/api.gen.js +119 -178
  55. package/dist/api/domain/v2beta1/content.gen.d.ts +1 -4
  56. package/dist/api/domain/v2beta1/types.gen.d.ts +411 -199
  57. package/dist/api/edge_services/v1beta1/api.gen.cjs +41 -22
  58. package/dist/api/edge_services/v1beta1/api.gen.d.ts +3 -2
  59. package/dist/api/edge_services/v1beta1/api.gen.js +41 -22
  60. package/dist/api/edge_services/v1beta1/index.gen.d.ts +1 -1
  61. package/dist/api/edge_services/v1beta1/types.gen.d.ts +7 -0
  62. package/dist/api/file/index.gen.cjs +4 -0
  63. package/dist/api/file/index.gen.d.ts +5 -0
  64. package/dist/api/file/index.gen.js +4 -0
  65. package/dist/api/file/v1alpha1/api.gen.cjs +142 -0
  66. package/dist/api/file/v1alpha1/api.gen.d.ts +73 -0
  67. package/dist/api/file/v1alpha1/api.gen.js +142 -0
  68. package/dist/api/file/v1alpha1/content.gen.cjs +7 -0
  69. package/dist/api/file/v1alpha1/content.gen.d.ts +3 -0
  70. package/dist/api/file/v1alpha1/content.gen.js +7 -0
  71. package/dist/api/file/v1alpha1/index.gen.cjs +8 -0
  72. package/dist/api/file/v1alpha1/index.gen.d.ts +4 -0
  73. package/dist/api/file/v1alpha1/index.gen.js +8 -0
  74. package/dist/api/file/v1alpha1/marshalling.gen.cjs +77 -0
  75. package/dist/api/file/v1alpha1/marshalling.gen.d.ts +7 -0
  76. package/dist/api/file/v1alpha1/marshalling.gen.js +77 -0
  77. package/dist/api/file/v1alpha1/types.gen.d.ts +239 -0
  78. package/dist/api/file/v1alpha1/validation-rules.gen.cjs +40 -0
  79. package/dist/api/file/v1alpha1/validation-rules.gen.d.ts +34 -0
  80. package/dist/api/file/v1alpha1/validation-rules.gen.js +40 -0
  81. package/dist/api/flexibleip/v1alpha1/api.gen.cjs +10 -25
  82. package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +12 -28
  83. package/dist/api/flexibleip/v1alpha1/api.gen.js +10 -25
  84. package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +186 -78
  85. package/dist/api/function/v1beta1/types.gen.d.ts +6 -6
  86. package/dist/api/iam/v1alpha1/api.gen.cjs +4 -4
  87. package/dist/api/iam/v1alpha1/api.gen.d.ts +4 -4
  88. package/dist/api/iam/v1alpha1/api.gen.js +4 -4
  89. package/dist/api/iam/v1alpha1/types.gen.d.ts +1 -1
  90. package/dist/api/index.gen.d.ts +3 -1
  91. package/dist/api/inference/v1/api.gen.cjs +8 -11
  92. package/dist/api/inference/v1/api.gen.d.ts +6 -9
  93. package/dist/api/inference/v1/api.gen.js +8 -11
  94. package/dist/api/inference/v1/types.gen.d.ts +330 -150
  95. package/dist/api/inference/v1beta1/api.gen.cjs +9 -12
  96. package/dist/api/inference/v1beta1/api.gen.d.ts +7 -10
  97. package/dist/api/inference/v1beta1/api.gen.js +9 -12
  98. package/dist/api/inference/v1beta1/types.gen.d.ts +341 -154
  99. package/dist/api/instance/v1/api.gen.cjs +64 -113
  100. package/dist/api/instance/v1/api.gen.d.ts +54 -103
  101. package/dist/api/instance/v1/api.gen.js +64 -113
  102. package/dist/api/instance/v1/marshalling.gen.cjs +4 -1
  103. package/dist/api/instance/v1/marshalling.gen.js +4 -1
  104. package/dist/api/instance/v1/types.gen.d.ts +1368 -600
  105. package/dist/api/instance/v1/types.private.gen.d.ts +131 -59
  106. package/dist/api/interlink/v1beta1/api.gen.cjs +21 -67
  107. package/dist/api/interlink/v1beta1/api.gen.d.ts +23 -70
  108. package/dist/api/interlink/v1beta1/api.gen.js +21 -67
  109. package/dist/api/interlink/v1beta1/marshalling.gen.cjs +2 -0
  110. package/dist/api/interlink/v1beta1/marshalling.gen.js +2 -0
  111. package/dist/api/interlink/v1beta1/types.gen.d.ts +464 -216
  112. package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +8 -0
  113. package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +8 -0
  114. package/dist/api/interlink/v1beta1/validation-rules.gen.js +8 -0
  115. package/dist/api/iot/v1/api.gen.cjs +37 -70
  116. package/dist/api/iot/v1/api.gen.d.ts +34 -67
  117. package/dist/api/iot/v1/api.gen.js +37 -70
  118. package/dist/api/iot/v1/types.gen.d.ts +566 -321
  119. package/dist/api/ipam/v1/api.gen.cjs +6 -26
  120. package/dist/api/ipam/v1/api.gen.d.ts +8 -29
  121. package/dist/api/ipam/v1/api.gen.js +6 -26
  122. package/dist/api/ipam/v1/types.gen.d.ts +146 -105
  123. package/dist/api/jobs/v1alpha1/api.gen.cjs +2 -4
  124. package/dist/api/jobs/v1alpha1/api.gen.d.ts +4 -6
  125. package/dist/api/jobs/v1alpha1/api.gen.js +2 -4
  126. package/dist/api/jobs/v1alpha1/types.gen.d.ts +165 -91
  127. package/dist/api/k8s/v1/api.gen.cjs +33 -78
  128. package/dist/api/k8s/v1/api.gen.d.ts +27 -72
  129. package/dist/api/k8s/v1/api.gen.js +33 -78
  130. package/dist/api/k8s/v1/types.gen.d.ts +743 -506
  131. package/dist/api/key_manager/v1alpha1/api.gen.cjs +21 -57
  132. package/dist/api/key_manager/v1alpha1/api.gen.d.ts +19 -56
  133. package/dist/api/key_manager/v1alpha1/api.gen.js +21 -57
  134. package/dist/api/key_manager/v1alpha1/types.gen.d.ts +196 -114
  135. package/dist/api/lb/v1/marshalling.gen.cjs +4 -2
  136. package/dist/api/lb/v1/marshalling.gen.js +4 -2
  137. package/dist/api/lb/v1/types.gen.d.ts +4 -0
  138. package/dist/api/marketplace/v2/api.gen.cjs +8 -21
  139. package/dist/api/marketplace/v2/api.gen.d.ts +10 -24
  140. package/dist/api/marketplace/v2/api.gen.js +8 -21
  141. package/dist/api/marketplace/v2/types.gen.d.ts +94 -41
  142. package/dist/api/mnq/v1beta1/api.gen.cjs +24 -76
  143. package/dist/api/mnq/v1beta1/api.gen.d.ts +30 -82
  144. package/dist/api/mnq/v1beta1/api.gen.js +24 -76
  145. package/dist/api/mnq/v1beta1/types.gen.d.ts +342 -169
  146. package/dist/api/mongodb/v1alpha1/api.gen.cjs +19 -62
  147. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +21 -64
  148. package/dist/api/mongodb/v1alpha1/api.gen.js +19 -62
  149. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +443 -189
  150. package/dist/api/product_catalog/index.gen.cjs +4 -0
  151. package/dist/api/product_catalog/index.gen.d.ts +5 -0
  152. package/dist/api/product_catalog/index.gen.js +4 -0
  153. package/dist/api/product_catalog/v2alpha1/api.gen.cjs +36 -0
  154. package/dist/api/product_catalog/v2alpha1/api.gen.d.ts +18 -0
  155. package/dist/api/product_catalog/v2alpha1/api.gen.js +36 -0
  156. package/dist/api/product_catalog/v2alpha1/index.gen.cjs +6 -0
  157. package/dist/api/product_catalog/v2alpha1/index.gen.d.ts +3 -0
  158. package/dist/api/product_catalog/v2alpha1/index.gen.js +6 -0
  159. package/dist/api/product_catalog/v2alpha1/marshalling.gen.cjs +230 -0
  160. package/dist/api/product_catalog/v2alpha1/marshalling.gen.d.ts +2 -0
  161. package/dist/api/product_catalog/v2alpha1/marshalling.gen.js +230 -0
  162. package/dist/api/product_catalog/v2alpha1/types.gen.d.ts +293 -0
  163. package/dist/api/product_catalog/v2alpha1/validation-rules.gen.cjs +11 -0
  164. package/dist/api/product_catalog/v2alpha1/validation-rules.gen.d.ts +8 -0
  165. package/dist/api/product_catalog/v2alpha1/validation-rules.gen.js +11 -0
  166. package/dist/api/qaas/v1alpha1/api.gen.cjs +17 -34
  167. package/dist/api/qaas/v1alpha1/api.gen.d.ts +19 -36
  168. package/dist/api/qaas/v1alpha1/api.gen.js +17 -34
  169. package/dist/api/qaas/v1alpha1/types.gen.d.ts +502 -174
  170. package/dist/api/rdb/v1/api.gen.cjs +62 -202
  171. package/dist/api/rdb/v1/api.gen.d.ts +60 -201
  172. package/dist/api/rdb/v1/api.gen.js +62 -202
  173. package/dist/api/rdb/v1/types.gen.d.ts +1005 -524
  174. package/dist/api/redis/v1/api.gen.cjs +23 -83
  175. package/dist/api/redis/v1/api.gen.d.ts +25 -85
  176. package/dist/api/redis/v1/api.gen.js +23 -83
  177. package/dist/api/redis/v1/types.gen.d.ts +447 -170
  178. package/dist/api/registry/v1/api.gen.cjs +12 -40
  179. package/dist/api/registry/v1/api.gen.d.ts +14 -42
  180. package/dist/api/registry/v1/api.gen.js +12 -40
  181. package/dist/api/registry/v1/types.gen.d.ts +200 -116
  182. package/dist/api/secret/v1beta1/api.gen.cjs +19 -47
  183. package/dist/api/secret/v1beta1/api.gen.d.ts +21 -51
  184. package/dist/api/secret/v1beta1/api.gen.js +19 -47
  185. package/dist/api/secret/v1beta1/types.gen.d.ts +359 -224
  186. package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +9 -27
  187. package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +11 -29
  188. package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +9 -27
  189. package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +168 -76
  190. package/dist/api/tem/v1alpha1/api.gen.cjs +22 -58
  191. package/dist/api/tem/v1alpha1/api.gen.d.ts +24 -60
  192. package/dist/api/tem/v1alpha1/api.gen.js +22 -58
  193. package/dist/api/tem/v1alpha1/types.gen.d.ts +761 -338
  194. package/dist/api/test/v1/api.gen.cjs +8 -11
  195. package/dist/api/test/v1/api.gen.d.ts +6 -9
  196. package/dist/api/test/v1/api.gen.js +8 -11
  197. package/dist/api/test/v1/types.gen.d.ts +21 -10
  198. package/dist/api/vpcgw/v1/api.gen.cjs +37 -0
  199. package/dist/api/vpcgw/v1/api.gen.d.ts +37 -0
  200. package/dist/api/vpcgw/v1/api.gen.js +37 -0
  201. package/dist/client/dist/package.json.cjs +1 -1
  202. package/dist/client/dist/package.json.js +1 -1
  203. package/dist/index.cjs +36 -32
  204. package/dist/index.js +36 -32
  205. package/node_modules/@scaleway/sdk-client/dist/package.json.cjs +1 -1
  206. package/node_modules/@scaleway/sdk-client/dist/package.json.js +1 -1
  207. package/node_modules/@scaleway/sdk-client/package.json +1 -2
  208. package/package.json +2 -2
  209. 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
- * Get your Cockpit's Grafana. Retrieve information on your Cockpit's Grafana,
15
- * specified by the ID of the Project the Cockpit belongs to. The output
16
- * returned displays the URL to access your Cockpit's Grafana.
17
- *
18
- * @param request - The request {@link GlobalApiGetGrafanaRequest}
19
- * @returns A Promise of Grafana
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
- * Create a Grafana user. Create a Grafana user to connect to your Cockpit's
52
- * Grafana. Upon creation, your user password displays only once, so make sure
53
- * that you save it. Each Grafana user is associated with a role: viewer or
54
- * editor. A viewer can only view dashboards, whereas an editor can create and
55
- * edit dashboards. Note that the `admin` username is not available for
56
- * creation.
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
- * Reset a Grafana user password. Reset the password of a Grafana user,
120
- * specified by the ID of the Project the Cockpit belongs to, and the ID of
121
- * the Grafana user. A new password regenerates and only displays once. Make
122
- * sure that you save it.
123
- *
124
- * @param request - The request
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
- * List plan types. Retrieve a list of available pricing plan types.
211
- * Deprecated, retention is now managed at the data source level.
212
- *
213
- * @deprecated
214
- * @param request - The request {@link GlobalApiListPlansRequest}
215
- * @returns A Promise of ListPlansResponse
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
- * Apply a pricing plan. Apply a pricing plan on a given Project. You must
220
- * specify the ID of the pricing plan type. Note that you will be billed for
221
- * the plan you apply. Deprecated, retention is now managed at the data source
222
- * level.
223
- *
224
- * @deprecated
225
- * @param request - The request {@link GlobalApiSelectPlanRequest}
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
- * Get current plan. Retrieve a pricing plan for the given Project, specified
241
- * by the ID of the Project. Deprecated, retention is now managed at the data
242
- * source level.
243
- *
244
- * @deprecated
245
- * @param request - The request {@link GlobalApiGetCurrentPlanRequest}
246
- * @returns A Promise of Plan
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
- * Create a data source. You must specify the data source type upon creation.
282
- * Available data source types include:
283
- *
284
- * - Metrics
285
- * - Logs
286
- * - Traces The name of the data source will then be used as reference to name
287
- * the associated Grafana data source.
288
- *
289
- * @param request - The request {@link RegionalApiCreateDataSourceRequest}
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
- * List data sources. Retrieve the list of data sources available in the
355
- * specified region. By default, the data sources returned in the list are
356
- * ordered by creation date, in ascending order. You can list data sources by
357
- * Project, type and origin.
358
- *
359
- * @param request - The request {@link RegionalApiListDataSourcesRequest}
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
- * Create a token. Give your token the relevant scopes to ensure it has the
407
- * right permissions to interact with your data sources and the Alert manager.
408
- * Make sure that you create your token in the same regions as the data
409
- * sources you want to use it for. Upon creation, your token's secret key
410
- * display only once. Make sure that you save it.
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
- * List tokens. Retrieve a list of all tokens in the specified region. By
448
- * default, tokens returned in the list are ordered by creation date, in
449
- * ascending order. You can filter tokens by Project ID and token scopes.
450
- *
451
- * @param request - The request {@link RegionalApiListTokensRequest}
452
- * @returns A Promise of ListTokensResponse
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
- * Get the Alert manager. Retrieve information about the Alert manager which
481
- * is unique per Project and region. By default the Alert manager is disabled.
482
- * The output returned displays a URL to access the Alert manager, and whether
483
- * the Alert manager and managed alerts are enabled.
484
- *
485
- * @param request - The request {@link RegionalApiGetAlertManagerRequest}
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
- * Create a contact point. Contact points are email addresses associated with
546
- * the default receiver, that the Alert manager sends alerts to. The source of
547
- * the alerts are data sources within the same Project and region as the Alert
548
- * manager. If you need to receive alerts for other receivers, you can create
549
- * additional contact points and receivers in Grafana. Make sure that you
550
- * select the Scaleway Alert manager.
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,39 @@ 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
+ * Enable preconfigured alert rules. Enable alert rules from the list of available preconfigured rules.. Enable preconfigured alert rules. Enable alert rules from the list of available preconfigured rules.
640
+ *
641
+ * @param request - The request {@link RegionalApiEnableAlertRulesRequest}
642
+ */
643
+ enableAlertRules = (request = {}) => this.client.fetch({
644
+ body: JSON.stringify(
645
+ marshalling_gen.marshalRegionalApiEnableAlertRulesRequest(
646
+ request,
647
+ this.client.settings
648
+ )
649
+ ),
650
+ headers: jsonContentHeaders,
651
+ method: "POST",
652
+ path: `/cockpit/v1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/alert-manager/enable-alert-rules`
653
+ });
654
+ /**
655
+ * Disable preconfigured alert rules. Disable alert rules from the list of available preconfigured rules.. Disable preconfigured alert rules. Disable alert rules from the list of available preconfigured rules.
656
+ *
657
+ * @param request - The request {@link RegionalApiDisableAlertRulesRequest}
658
+ */
659
+ disableAlertRules = (request = {}) => this.client.fetch({
660
+ body: JSON.stringify(
661
+ marshalling_gen.marshalRegionalApiDisableAlertRulesRequest(
662
+ request,
663
+ this.client.settings
664
+ )
665
+ ),
666
+ headers: jsonContentHeaders,
667
+ method: "POST",
668
+ path: `/cockpit/v1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/alert-manager/disable-alert-rules`
669
+ });
670
+ /**
671
+ * Trigger a test alert. Send a test alert to the Alert manager to make sure your contact points get notified.
696
672
  *
697
673
  * @param request - The request {@link RegionalApiTriggerTestAlertRequest}
698
674
  */