@scaleway/sdk 1.14.0 → 1.16.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/v2/api.gen.js +77 -60
- package/dist/api/applesilicon/v1alpha1/api.gen.js +174 -152
- package/dist/api/baremetal/v1/api.gen.js +434 -378
- package/dist/api/baremetal/v1/api.utils.js +19 -22
- package/dist/api/billing/v2alpha1/api.gen.js +21 -17
- package/dist/api/cockpit/v1beta1/api.gen.js +308 -232
- package/dist/api/container/v1beta1/api.gen.js +384 -337
- package/dist/api/domain/v2beta1/api.gen.js +754 -668
- package/dist/api/flexibleip/v1alpha1/api.gen.js +164 -151
- package/dist/api/function/v1beta1/api.gen.js +467 -407
- package/dist/api/iam/v1alpha1/api.gen.js +641 -557
- package/dist/api/instance/v1/api.gen.js +803 -677
- package/dist/api/instance/v1/api.utils.js +337 -325
- package/dist/api/instance/v1/content.gen.js +4 -1
- package/dist/api/instance/v1/index.js +1 -1
- package/dist/api/instance/v1/marshalling.gen.js +27 -4
- package/dist/api/iot/v1/api.gen.js +508 -452
- package/dist/api/ipfs/index.js +2 -0
- package/dist/api/ipfs/v1alpha1/api.gen.js +197 -0
- package/dist/api/ipfs/v1alpha1/content.gen.js +7 -0
- package/dist/api/ipfs/v1alpha1/index.gen.js +5 -0
- package/dist/api/ipfs/v1alpha1/marshalling.gen.js +125 -0
- package/dist/api/k8s/v1/api.gen.js +403 -342
- package/dist/api/k8s/v1/api.utils.js +7 -10
- package/dist/api/k8s/v1/marshalling.gen.js +19 -1
- package/dist/api/k8s/v1/validation-rules.gen.js +10 -1
- package/dist/api/lb/v1/api.gen.js +1501 -1363
- package/dist/api/lb/v1/api.utils.js +71 -75
- package/dist/api/lb/v1/marshalling.gen.js +6 -0
- package/dist/api/marketplace/v1/api.gen.js +35 -32
- package/dist/api/marketplace/v2/api.gen.js +117 -102
- package/dist/api/mnq/v1alpha1/api.gen.js +154 -137
- package/dist/api/rdb/v1/api.gen.js +897 -819
- package/dist/api/redis/v1/api.gen.js +358 -333
- package/dist/api/redis/v1/marshalling.gen.js +1 -0
- package/dist/api/registry/v1/api.gen.js +211 -189
- package/dist/api/secret/v1alpha1/api.gen.js +295 -246
- package/dist/api/secret/v1alpha1/marshalling.gen.js +10 -1
- package/dist/api/tem/v1alpha1/api.gen.js +182 -147
- package/dist/api/tem/v1alpha1/marshalling.gen.js +32 -1
- package/dist/api/test/v1/api.gen.js +116 -104
- package/dist/api/vpc/v1/api.gen.js +74 -65
- package/dist/api/vpc/v2/api.gen.js +200 -178
- package/dist/api/vpc/v2/marshalling.gen.js +1 -0
- package/dist/api/vpcgw/v1/api.gen.js +575 -501
- package/dist/api/webhosting/v1alpha1/api.gen.js +127 -117
- package/dist/api/webhosting/v1alpha1/content.gen.js +1 -1
- package/dist/index.cjs +924 -453
- package/dist/index.d.ts +2152 -1558
- package/dist/index.js +28 -26
- package/dist/internal/logger/console-logger.js +4 -5
- package/dist/scw/constants.js +1 -1
- package/dist/scw/errors/scw-error.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -35,29 +35,31 @@ import * as index$b from './api/instance/index.js';
|
|
|
35
35
|
export { index$b as Instance };
|
|
36
36
|
import * as index$c from './api/iot/index.js';
|
|
37
37
|
export { index$c as IOT };
|
|
38
|
-
import * as index$d from './api/
|
|
39
|
-
export { index$d as
|
|
40
|
-
import * as index$e from './api/
|
|
41
|
-
export { index$e as
|
|
42
|
-
import * as index$f from './api/
|
|
43
|
-
export { index$f as
|
|
44
|
-
import * as index$g from './api/
|
|
45
|
-
export { index$g as
|
|
46
|
-
import * as index$h from './api/
|
|
47
|
-
export { index$h as
|
|
48
|
-
import * as index$i from './api/
|
|
49
|
-
export { index$i as
|
|
50
|
-
import * as index$j from './api/
|
|
51
|
-
export { index$j as
|
|
52
|
-
import * as index$k from './api/
|
|
53
|
-
export { index$k as
|
|
54
|
-
import * as index$l from './api/
|
|
55
|
-
export { index$l as
|
|
56
|
-
import * as index$m from './api/
|
|
57
|
-
export { index$m as
|
|
58
|
-
import * as index$n from './api/
|
|
59
|
-
export { index$n as
|
|
60
|
-
import * as index$o from './api/
|
|
61
|
-
export { index$o as
|
|
62
|
-
import * as index$p from './api/
|
|
63
|
-
export { index$p as
|
|
38
|
+
import * as index$d from './api/ipfs/index.js';
|
|
39
|
+
export { index$d as IPFS };
|
|
40
|
+
import * as index$e from './api/k8s/index.js';
|
|
41
|
+
export { index$e as K8S };
|
|
42
|
+
import * as index$f from './api/lb/index.js';
|
|
43
|
+
export { index$f as LB };
|
|
44
|
+
import * as index$g from './api/marketplace/index.js';
|
|
45
|
+
export { index$g as Marketplace };
|
|
46
|
+
import * as index$h from './api/mnq/index.js';
|
|
47
|
+
export { index$h as MNQ };
|
|
48
|
+
import * as index$i from './api/rdb/index.js';
|
|
49
|
+
export { index$i as RDB };
|
|
50
|
+
import * as index$j from './api/redis/index.js';
|
|
51
|
+
export { index$j as Redis };
|
|
52
|
+
import * as index$k from './api/registry/index.js';
|
|
53
|
+
export { index$k as Registry };
|
|
54
|
+
import * as index$l from './api/secret/index.js';
|
|
55
|
+
export { index$l as Secret };
|
|
56
|
+
import * as index$m from './api/test/index.js';
|
|
57
|
+
export { index$m as Test };
|
|
58
|
+
import * as index$n from './api/tem/index.js';
|
|
59
|
+
export { index$n as TransactionalEmail };
|
|
60
|
+
import * as index$o from './api/vpc/index.js';
|
|
61
|
+
export { index$o as VPC };
|
|
62
|
+
import * as index$p from './api/vpcgw/index.js';
|
|
63
|
+
export { index$p as VPCGW };
|
|
64
|
+
import * as index$q from './api/webhosting/index.js';
|
|
65
|
+
export { index$q as Webhosting };
|
|
@@ -20,11 +20,6 @@ class ConsoleLogger {
|
|
|
20
20
|
this.logLevel = logLevel;
|
|
21
21
|
this.prefix = prefix;
|
|
22
22
|
this.output = output;
|
|
23
|
-
this.level = void 0;
|
|
24
|
-
this.debug = this.makeMethod('debug');
|
|
25
|
-
this.error = this.makeMethod('error');
|
|
26
|
-
this.info = this.makeMethod('info');
|
|
27
|
-
this.warn = this.makeMethod('warn');
|
|
28
23
|
this.level = LevelResolver[this.logLevel];
|
|
29
24
|
}
|
|
30
25
|
makeMethod(method) {
|
|
@@ -34,6 +29,10 @@ class ConsoleLogger {
|
|
|
34
29
|
}
|
|
35
30
|
};
|
|
36
31
|
}
|
|
32
|
+
debug = this.makeMethod('debug');
|
|
33
|
+
error = this.makeMethod('error');
|
|
34
|
+
info = this.makeMethod('info');
|
|
35
|
+
warn = this.makeMethod('warn');
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
export { ConsoleLogger };
|
package/dist/scw/constants.js
CHANGED
|
@@ -37,6 +37,8 @@ const buildDefaultMessage = (status, body) => {
|
|
|
37
37
|
* @public
|
|
38
38
|
*/
|
|
39
39
|
class ScalewayError extends Error {
|
|
40
|
+
/** The message originating from the payload. */
|
|
41
|
+
|
|
40
42
|
constructor( /** The response status. */
|
|
41
43
|
status, /** The response payload. */
|
|
42
44
|
body, /** The augmented message. */
|
|
@@ -48,8 +50,6 @@ class ScalewayError extends Error {
|
|
|
48
50
|
this.status = status;
|
|
49
51
|
this.body = body;
|
|
50
52
|
this.message = message;
|
|
51
|
-
/** The message originating from the payload. */
|
|
52
|
-
this.rawMessage = void 0;
|
|
53
53
|
this.name = 'ScalewayError';
|
|
54
54
|
this.rawMessage = typeof body === 'object' && typeof body.message === 'string' ? body.message : undefined;
|
|
55
55
|
Object.setPrototypeOf(this, new.target.prototype); // restore prototype chain
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Scaleway SDK.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"bundledDependencies": [
|
|
36
36
|
"@scaleway/random-name"
|
|
37
37
|
],
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "9cdaa1dc18ca1582ed16a74056e642fca7af94c4"
|
|
39
39
|
}
|