@scaleway/sdk 0.1.0-beta.13 → 0.1.0-beta.14
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.
|
@@ -14,7 +14,7 @@ const SECURITY_GROUP_TRANSIENT_STATUSES = ['syncing'];
|
|
|
14
14
|
const SERVER_TRANSIENT_STATUSES = ['starting', 'stopping'];
|
|
15
15
|
/** Lists transient statutes of the enum {@link SnapshotState}. */
|
|
16
16
|
|
|
17
|
-
const SNAPSHOT_TRANSIENT_STATUSES = ['snapshotting'];
|
|
17
|
+
const SNAPSHOT_TRANSIENT_STATUSES = ['snapshotting', 'importing', 'exporting'];
|
|
18
18
|
/** Lists transient statutes of the enum {@link TaskStatus}. */
|
|
19
19
|
|
|
20
20
|
const TASK_TRANSIENT_STATUSES = ['pending', 'started', 'retry'];
|
|
@@ -28,7 +28,7 @@ class MnqV1Alpha1GenAPI extends API {
|
|
|
28
28
|
return _this.client.fetch({
|
|
29
29
|
method: 'GET',
|
|
30
30
|
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/namespaces`,
|
|
31
|
-
urlParams: urlParams(['order_by', request.orderBy ?? '
|
|
31
|
+
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId ?? _this.client.settings.defaultProjectId])
|
|
32
32
|
}, unmarshalListNamespacesResponse);
|
|
33
33
|
};
|
|
34
34
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
2
|
-
import { unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
2
|
+
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
3
3
|
|
|
4
4
|
// This file was automatically generated. DO NOT EDIT.
|
|
5
5
|
|
|
@@ -92,12 +92,14 @@ const unmarshalNamespace = data => {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
return {
|
|
95
|
+
createdAt: unmarshalDate(data.created_at),
|
|
95
96
|
endpoint: data.endpoint,
|
|
96
97
|
id: data.id,
|
|
97
98
|
name: data.name,
|
|
98
99
|
projectId: data.project_id,
|
|
99
100
|
protocol: data.protocol,
|
|
100
|
-
region: data.region
|
|
101
|
+
region: data.region,
|
|
102
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
101
103
|
};
|
|
102
104
|
};
|
|
103
105
|
const unmarshalCredential = data => {
|
package/dist/index.cjs
CHANGED
|
@@ -367,7 +367,7 @@ const assertValidSettings = obj => {
|
|
|
367
367
|
if (typeof obj.userAgent !== 'string') throw new Error(`Invalid User-Agent`);
|
|
368
368
|
};
|
|
369
369
|
|
|
370
|
-
const version = 'v0.1.0-beta.
|
|
370
|
+
const version = 'v0.1.0-beta.13';
|
|
371
371
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
372
372
|
|
|
373
373
|
const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
@@ -10518,7 +10518,7 @@ const SECURITY_GROUP_TRANSIENT_STATUSES = ['syncing'];
|
|
|
10518
10518
|
const SERVER_TRANSIENT_STATUSES = ['starting', 'stopping'];
|
|
10519
10519
|
/** Lists transient statutes of the enum {@link SnapshotState}. */
|
|
10520
10520
|
|
|
10521
|
-
const SNAPSHOT_TRANSIENT_STATUSES = ['snapshotting'];
|
|
10521
|
+
const SNAPSHOT_TRANSIENT_STATUSES = ['snapshotting', 'importing', 'exporting'];
|
|
10522
10522
|
/** Lists transient statutes of the enum {@link TaskStatus}. */
|
|
10523
10523
|
|
|
10524
10524
|
const TASK_TRANSIENT_STATUSES = ['pending', 'started', 'retry'];
|
|
@@ -15296,12 +15296,14 @@ const unmarshalNamespace$1 = data => {
|
|
|
15296
15296
|
}
|
|
15297
15297
|
|
|
15298
15298
|
return {
|
|
15299
|
+
createdAt: unmarshalDate(data.created_at),
|
|
15299
15300
|
endpoint: data.endpoint,
|
|
15300
15301
|
id: data.id,
|
|
15301
15302
|
name: data.name,
|
|
15302
15303
|
projectId: data.project_id,
|
|
15303
15304
|
protocol: data.protocol,
|
|
15304
|
-
region: data.region
|
|
15305
|
+
region: data.region,
|
|
15306
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
15305
15307
|
};
|
|
15306
15308
|
};
|
|
15307
15309
|
const unmarshalCredential = data => {
|
|
@@ -15387,7 +15389,7 @@ class MnqV1Alpha1GenAPI extends API {
|
|
|
15387
15389
|
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
15388
15390
|
method: 'GET',
|
|
15389
15391
|
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`,
|
|
15390
|
-
urlParams: urlParams(['order_by', request.orderBy ?? '
|
|
15392
|
+
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId ?? this.client.settings.defaultProjectId])
|
|
15391
15393
|
}, unmarshalListNamespacesResponse$1);
|
|
15392
15394
|
/**
|
|
15393
15395
|
* List namespaces
|
package/dist/index.d.ts
CHANGED
|
@@ -7549,7 +7549,7 @@ declare type SecurityGroupState = 'available' | 'syncing' | 'syncing_error';
|
|
|
7549
7549
|
declare type ServerAction = 'poweron' | 'backup' | 'stop_in_place' | 'poweroff' | 'terminate' | 'reboot';
|
|
7550
7550
|
declare type ServerState = 'running' | 'stopped' | 'stopped in place' | 'starting' | 'stopping' | 'locked';
|
|
7551
7551
|
declare type ServerTypesAvailability = 'available' | 'scarce' | 'shortage';
|
|
7552
|
-
declare type SnapshotState = 'available' | 'snapshotting' | 'error' | 'invalid_data';
|
|
7552
|
+
declare type SnapshotState = 'available' | 'snapshotting' | 'error' | 'invalid_data' | 'importing' | 'exporting';
|
|
7553
7553
|
declare type SnapshotVolumeType = 'unknown_volume_type' | 'l_ssd' | 'b_ssd' | 'unified';
|
|
7554
7554
|
declare type TaskStatus = 'pending' | 'started' | 'success' | 'failure' | 'retry';
|
|
7555
7555
|
declare type VolumeServerState = 'available' | 'snapshotting' | 'error' | 'fetching' | 'resizing' | 'saving' | 'hotsyncing';
|
|
@@ -8450,7 +8450,7 @@ declare type CreateSnapshotRequest$1 = {
|
|
|
8450
8450
|
/** Name of the snapshot */
|
|
8451
8451
|
name?: string;
|
|
8452
8452
|
/** UUID of the volume */
|
|
8453
|
-
volumeId
|
|
8453
|
+
volumeId?: string;
|
|
8454
8454
|
/** The tags of the snapshot */
|
|
8455
8455
|
tags?: Array<string>;
|
|
8456
8456
|
/**
|
|
@@ -16051,7 +16051,7 @@ declare namespace index$e {
|
|
|
16051
16051
|
}
|
|
16052
16052
|
|
|
16053
16053
|
declare type ListCredentialsRequestOrderBy = 'id_asc' | 'id_desc' | 'name_asc' | 'name_desc';
|
|
16054
|
-
declare type ListNamespacesRequestOrderBy$1 = 'id_asc' | 'id_desc' | 'name_asc' | 'name_desc' | 'project_id_asc' | 'project_id_desc';
|
|
16054
|
+
declare type ListNamespacesRequestOrderBy$1 = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'id_asc' | 'id_desc' | 'name_asc' | 'name_desc' | 'project_id_asc' | 'project_id_desc';
|
|
16055
16055
|
declare type NamespaceProtocol = 'unknown' | 'nats' | 'sqs_sns' | 'amqp';
|
|
16056
16056
|
interface Credential {
|
|
16057
16057
|
id: string;
|
|
@@ -16125,6 +16125,8 @@ interface Namespace$1 {
|
|
|
16125
16125
|
name: string;
|
|
16126
16126
|
endpoint: string;
|
|
16127
16127
|
protocol: NamespaceProtocol;
|
|
16128
|
+
createdAt?: Date;
|
|
16129
|
+
updatedAt?: Date;
|
|
16128
16130
|
region: Region;
|
|
16129
16131
|
}
|
|
16130
16132
|
interface Permissions {
|
package/dist/scw/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.14",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Scaleway SDK.",
|
|
6
6
|
"keywords": [
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"bundledDependencies": [
|
|
37
37
|
"@scaleway/random-name"
|
|
38
38
|
],
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "171ebf55104518f2f7ad19b5bed7fefed92e1332"
|
|
40
40
|
}
|