@lazycatcloud/sdk 0.1.130 → 0.1.132
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.d.ts +24 -0
- package/dist/API.d.ts.map +1 -0
- package/dist/API.js +117 -0
- package/dist/API.js.map +1 -0
- package/dist/common/box.d.ts +13 -55
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +47 -46
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +12 -40
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +33 -50
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +16 -103
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +49 -59
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/file_handler.d.ts +14 -70
- package/dist/common/file_handler.d.ts.map +1 -1
- package/dist/common/file_handler.js +21 -43
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +151 -642
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +301 -164
- package/dist/common/filetrans.js.map +1 -1
- package/dist/common/gateway.d.ts +15 -61
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +41 -55
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/message.d.ts +2 -21
- package/dist/common/message.d.ts.map +1 -1
- package/dist/common/message.js +25 -18
- package/dist/common/message.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +20 -143
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +53 -59
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts +15 -54
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +39 -52
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +25 -96
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +46 -87
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts +20 -102
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +68 -73
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts +4866 -55328
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +414 -265
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.d.ts +1 -2
- package/dist/google/protobuf/empty.d.ts.map +1 -1
- package/dist/google/protobuf/empty.js +0 -3
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts +4 -9
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +8 -14
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/google/protobuf/wrappers.d.ts +182 -0
- package/dist/google/protobuf/wrappers.d.ts.map +1 -0
- package/dist/google/protobuf/wrappers.js +458 -0
- package/dist/google/protobuf/wrappers.js.map +1 -0
- package/dist/grpcweb.d.ts +1 -1
- package/dist/grpcweb.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lanforward/lanforward.d.ts +9 -22
- package/dist/lanforward/lanforward.d.ts.map +1 -1
- package/dist/lanforward/lanforward.js +16 -33
- package/dist/lanforward/lanforward.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts +13 -36
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +40 -47
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/config.d.ts +8 -25
- package/dist/localdevice/config.d.ts.map +1 -1
- package/dist/localdevice/config.js +12 -29
- package/dist/localdevice/config.js.map +1 -1
- package/dist/localdevice/device.d.ts +7 -19
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +13 -27
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +19 -69
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +32 -58
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/local-launch.d.ts +39 -81
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +72 -104
- package/dist/localdevice/local-launch.js.map +1 -1
- package/dist/localdevice/network.d.ts +7 -15
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +10 -26
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts +17 -60
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +52 -57
- package/dist/localdevice/permission.js.map +1 -1
- package/dist/localdevice/photo.d.ts +29 -193
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +172 -122
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/ssdp/ssdp.d.ts +9 -28
- package/dist/ssdp/ssdp.d.ts.map +1 -1
- package/dist/ssdp/ssdp.js +13 -32
- package/dist/ssdp/ssdp.js.map +1 -1
- package/dist/sys/OS_daemon.d.ts +11 -29
- package/dist/sys/OS_daemon.d.ts.map +1 -1
- package/dist/sys/OS_daemon.js +20 -37
- package/dist/sys/OS_daemon.js.map +1 -1
- package/dist/sys/OS_snapshot.d.ts +33 -181
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +121 -141
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +13 -48
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +63 -68
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/event.d.ts +20 -92
- package/dist/sys/event.d.ts.map +1 -1
- package/dist/sys/event.js +40 -65
- package/dist/sys/event.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +34 -246
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +102 -125
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +27 -97
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +82 -93
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/message.d.ts +186 -0
- package/dist/sys/message.d.ts.map +1 -0
- package/dist/sys/message.js +493 -0
- package/dist/sys/message.js.map +1 -0
- package/dist/sys/network_manager.d.ts +17 -138
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +78 -72
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +41 -304
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +95 -121
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +61 -335
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +206 -215
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/settings.d.ts +68 -0
- package/dist/sys/settings.d.ts.map +1 -0
- package/dist/sys/settings.js +183 -0
- package/dist/sys/settings.js.map +1 -0
- package/dist/sys/snapd.d.ts +19 -106
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +68 -82
- package/dist/sys/snapd.js.map +1 -1
- package/package.json +1 -1
package/dist/sys/OS_snapshot.js
CHANGED
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.GrpcWebError = exports.GrpcWebImpl = exports.OSSnapshotServiceStopTransferDesc = exports.OSSnapshotServiceGetStatusDesc = exports.OSSnapshotServiceSnapshotBackupRestoreDesc = exports.OSSnapshotServiceSnapshotBackupListDesc = exports.OSSnapshotServiceSnapshotBackupDelDesc = exports.OSSnapshotServiceSnapshotBackupAddDesc = exports.OSSnapshotServiceSnapshotRestoreDesc = exports.OSSnapshotServiceSnapshotListDesc = exports.OSSnapshotServiceSnapshotDelDesc = exports.OSSnapshotServiceSnapshotAddDesc = exports.OSSnapshotServiceDatasetBackupListDesc = exports.OSSnapshotServiceDatasetBackupDelDesc = exports.OSSnapshotServiceDatasetListDesc = exports.OSSnapshotServiceDatasetDelDesc = exports.OSSnapshotServiceDatasetAddDesc = exports.OSSnapshotServiceBackupPoolListDesc = exports.OSSnapshotServiceBackupPoolDelDesc = exports.OSSnapshotServiceBackupPoolAddDesc = exports.OSSnapshotServiceDesc = exports.OSSnapshotServiceClientImpl = exports.SnapshotStatusResponse = exports.SnapshotBackupListRequest = exports.SnapshotBackupTransferResponse = exports.SnapshotBackupTransferRequest = exports.SnapshotBackupRequest = exports.SnapshotListResponse = exports.SnapshotDesc = exports.SnapshotRequest = exports.SnapshotDatasetListResponse = exports.SnapshotDatasetDesc = exports.SnapshotDatasetBackupRequest = exports.SnapshotDatasetRequest = exports.SnapshotBackupPoolListResponse = exports.SnapshotBackupPoolRequest = exports.snapshotTransferModeToJSON = exports.snapshotTransferModeFromJSON = exports.SnapshotTransferMode = exports.snapshotManagerStatusToJSON = exports.snapshotManagerStatusFromJSON = exports.SnapshotManagerStatus = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const grpc_web_1 = require("@improbable-eng/grpc-web");
|
|
9
|
+
const empty_1 = require("../google/protobuf/empty");
|
|
9
10
|
const browser_headers_1 = require("browser-headers");
|
|
10
11
|
const long_1 = __importDefault(require("long"));
|
|
11
12
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
12
|
-
const empty_1 = require("../google/protobuf/empty");
|
|
13
13
|
var SnapshotManagerStatus;
|
|
14
14
|
(function (SnapshotManagerStatus) {
|
|
15
15
|
SnapshotManagerStatus[SnapshotManagerStatus["Stopped"] = 0] = "Stopped";
|
|
@@ -112,16 +112,15 @@ exports.SnapshotBackupPoolRequest = {
|
|
|
112
112
|
return message;
|
|
113
113
|
},
|
|
114
114
|
fromJSON(object) {
|
|
115
|
-
return {
|
|
115
|
+
return {
|
|
116
|
+
PoolName: isSet(object.PoolName) ? String(object.PoolName) : "",
|
|
117
|
+
};
|
|
116
118
|
},
|
|
117
119
|
toJSON(message) {
|
|
118
120
|
const obj = {};
|
|
119
121
|
message.PoolName !== undefined && (obj.PoolName = message.PoolName);
|
|
120
122
|
return obj;
|
|
121
123
|
},
|
|
122
|
-
create(base) {
|
|
123
|
-
return exports.SnapshotBackupPoolRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
124
|
-
},
|
|
125
124
|
fromPartial(object) {
|
|
126
125
|
var _a;
|
|
127
126
|
const message = createBaseSnapshotBackupPoolRequest();
|
|
@@ -157,7 +156,11 @@ exports.SnapshotBackupPoolListResponse = {
|
|
|
157
156
|
return message;
|
|
158
157
|
},
|
|
159
158
|
fromJSON(object) {
|
|
160
|
-
return {
|
|
159
|
+
return {
|
|
160
|
+
PoolNameList: Array.isArray(object === null || object === void 0 ? void 0 : object.PoolNameList)
|
|
161
|
+
? object.PoolNameList.map((e) => String(e))
|
|
162
|
+
: [],
|
|
163
|
+
};
|
|
161
164
|
},
|
|
162
165
|
toJSON(message) {
|
|
163
166
|
const obj = {};
|
|
@@ -169,9 +172,6 @@ exports.SnapshotBackupPoolListResponse = {
|
|
|
169
172
|
}
|
|
170
173
|
return obj;
|
|
171
174
|
},
|
|
172
|
-
create(base) {
|
|
173
|
-
return exports.SnapshotBackupPoolListResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
174
|
-
},
|
|
175
175
|
fromPartial(object) {
|
|
176
176
|
var _a;
|
|
177
177
|
const message = createBaseSnapshotBackupPoolListResponse();
|
|
@@ -207,16 +207,16 @@ exports.SnapshotDatasetRequest = {
|
|
|
207
207
|
return message;
|
|
208
208
|
},
|
|
209
209
|
fromJSON(object) {
|
|
210
|
-
return {
|
|
210
|
+
return {
|
|
211
|
+
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
212
|
+
};
|
|
211
213
|
},
|
|
212
214
|
toJSON(message) {
|
|
213
215
|
const obj = {};
|
|
214
|
-
message.DatasetPath !== undefined &&
|
|
216
|
+
message.DatasetPath !== undefined &&
|
|
217
|
+
(obj.DatasetPath = message.DatasetPath);
|
|
215
218
|
return obj;
|
|
216
219
|
},
|
|
217
|
-
create(base) {
|
|
218
|
-
return exports.SnapshotDatasetRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
219
|
-
},
|
|
220
220
|
fromPartial(object) {
|
|
221
221
|
var _a;
|
|
222
222
|
const message = createBaseSnapshotDatasetRequest();
|
|
@@ -266,12 +266,10 @@ exports.SnapshotDatasetBackupRequest = {
|
|
|
266
266
|
toJSON(message) {
|
|
267
267
|
const obj = {};
|
|
268
268
|
message.PoolName !== undefined && (obj.PoolName = message.PoolName);
|
|
269
|
-
message.DatasetPath !== undefined &&
|
|
269
|
+
message.DatasetPath !== undefined &&
|
|
270
|
+
(obj.DatasetPath = message.DatasetPath);
|
|
270
271
|
return obj;
|
|
271
272
|
},
|
|
272
|
-
create(base) {
|
|
273
|
-
return exports.SnapshotDatasetBackupRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
274
|
-
},
|
|
275
273
|
fromPartial(object) {
|
|
276
274
|
var _a, _b;
|
|
277
275
|
const message = createBaseSnapshotDatasetBackupRequest();
|
|
@@ -329,21 +327,23 @@ exports.SnapshotDatasetDesc = {
|
|
|
329
327
|
return {
|
|
330
328
|
Path: isSet(object.Path) ? String(object.Path) : "",
|
|
331
329
|
BytesUsed: isSet(object.BytesUsed) ? Number(object.BytesUsed) : 0,
|
|
332
|
-
SnapshotBytesUsed: isSet(object.SnapshotBytesUsed)
|
|
330
|
+
SnapshotBytesUsed: isSet(object.SnapshotBytesUsed)
|
|
331
|
+
? Number(object.SnapshotBytesUsed)
|
|
332
|
+
: 0,
|
|
333
333
|
CreatedAt: isSet(object.CreatedAt) ? Number(object.CreatedAt) : 0,
|
|
334
334
|
};
|
|
335
335
|
},
|
|
336
336
|
toJSON(message) {
|
|
337
337
|
const obj = {};
|
|
338
338
|
message.Path !== undefined && (obj.Path = message.Path);
|
|
339
|
-
message.BytesUsed !== undefined &&
|
|
340
|
-
|
|
341
|
-
message.
|
|
339
|
+
message.BytesUsed !== undefined &&
|
|
340
|
+
(obj.BytesUsed = Math.round(message.BytesUsed));
|
|
341
|
+
message.SnapshotBytesUsed !== undefined &&
|
|
342
|
+
(obj.SnapshotBytesUsed = Math.round(message.SnapshotBytesUsed));
|
|
343
|
+
message.CreatedAt !== undefined &&
|
|
344
|
+
(obj.CreatedAt = Math.round(message.CreatedAt));
|
|
342
345
|
return obj;
|
|
343
346
|
},
|
|
344
|
-
create(base) {
|
|
345
|
-
return exports.SnapshotDatasetDesc.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
346
|
-
},
|
|
347
347
|
fromPartial(object) {
|
|
348
348
|
var _a, _b, _c, _d;
|
|
349
349
|
const message = createBaseSnapshotDatasetDesc();
|
|
@@ -398,13 +398,11 @@ exports.SnapshotDatasetListResponse = {
|
|
|
398
398
|
}
|
|
399
399
|
return obj;
|
|
400
400
|
},
|
|
401
|
-
create(base) {
|
|
402
|
-
return exports.SnapshotDatasetListResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
403
|
-
},
|
|
404
401
|
fromPartial(object) {
|
|
405
402
|
var _a;
|
|
406
403
|
const message = createBaseSnapshotDatasetListResponse();
|
|
407
|
-
message.DatasetList =
|
|
404
|
+
message.DatasetList =
|
|
405
|
+
((_a = object.DatasetList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.SnapshotDatasetDesc.fromPartial(e))) || [];
|
|
408
406
|
return message;
|
|
409
407
|
},
|
|
410
408
|
};
|
|
@@ -444,18 +442,19 @@ exports.SnapshotRequest = {
|
|
|
444
442
|
fromJSON(object) {
|
|
445
443
|
return {
|
|
446
444
|
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
447
|
-
SnapshotName: isSet(object.SnapshotName)
|
|
445
|
+
SnapshotName: isSet(object.SnapshotName)
|
|
446
|
+
? String(object.SnapshotName)
|
|
447
|
+
: "",
|
|
448
448
|
};
|
|
449
449
|
},
|
|
450
450
|
toJSON(message) {
|
|
451
451
|
const obj = {};
|
|
452
|
-
message.DatasetPath !== undefined &&
|
|
453
|
-
|
|
452
|
+
message.DatasetPath !== undefined &&
|
|
453
|
+
(obj.DatasetPath = message.DatasetPath);
|
|
454
|
+
message.SnapshotName !== undefined &&
|
|
455
|
+
(obj.SnapshotName = message.SnapshotName);
|
|
454
456
|
return obj;
|
|
455
457
|
},
|
|
456
|
-
create(base) {
|
|
457
|
-
return exports.SnapshotRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
458
|
-
},
|
|
459
458
|
fromPartial(object) {
|
|
460
459
|
var _a, _b;
|
|
461
460
|
const message = createBaseSnapshotRequest();
|
|
@@ -513,13 +512,12 @@ exports.SnapshotDesc = {
|
|
|
513
512
|
toJSON(message) {
|
|
514
513
|
const obj = {};
|
|
515
514
|
message.Name !== undefined && (obj.Name = message.Name);
|
|
516
|
-
message.BytesUsed !== undefined &&
|
|
517
|
-
|
|
515
|
+
message.BytesUsed !== undefined &&
|
|
516
|
+
(obj.BytesUsed = Math.round(message.BytesUsed));
|
|
517
|
+
message.CreatedAt !== undefined &&
|
|
518
|
+
(obj.CreatedAt = Math.round(message.CreatedAt));
|
|
518
519
|
return obj;
|
|
519
520
|
},
|
|
520
|
-
create(base) {
|
|
521
|
-
return exports.SnapshotDesc.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
522
|
-
},
|
|
523
521
|
fromPartial(object) {
|
|
524
522
|
var _a, _b, _c;
|
|
525
523
|
const message = createBaseSnapshotDesc();
|
|
@@ -573,13 +571,11 @@ exports.SnapshotListResponse = {
|
|
|
573
571
|
}
|
|
574
572
|
return obj;
|
|
575
573
|
},
|
|
576
|
-
create(base) {
|
|
577
|
-
return exports.SnapshotListResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
578
|
-
},
|
|
579
574
|
fromPartial(object) {
|
|
580
575
|
var _a;
|
|
581
576
|
const message = createBaseSnapshotListResponse();
|
|
582
|
-
message.SnapshotList =
|
|
577
|
+
message.SnapshotList =
|
|
578
|
+
((_a = object.SnapshotList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.SnapshotDesc.fromPartial(e))) || [];
|
|
583
579
|
return message;
|
|
584
580
|
},
|
|
585
581
|
};
|
|
@@ -626,19 +622,20 @@ exports.SnapshotBackupRequest = {
|
|
|
626
622
|
return {
|
|
627
623
|
PoolName: isSet(object.PoolName) ? String(object.PoolName) : "",
|
|
628
624
|
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
629
|
-
SnapshotName: isSet(object.SnapshotName)
|
|
625
|
+
SnapshotName: isSet(object.SnapshotName)
|
|
626
|
+
? String(object.SnapshotName)
|
|
627
|
+
: "",
|
|
630
628
|
};
|
|
631
629
|
},
|
|
632
630
|
toJSON(message) {
|
|
633
631
|
const obj = {};
|
|
634
632
|
message.PoolName !== undefined && (obj.PoolName = message.PoolName);
|
|
635
|
-
message.DatasetPath !== undefined &&
|
|
636
|
-
|
|
633
|
+
message.DatasetPath !== undefined &&
|
|
634
|
+
(obj.DatasetPath = message.DatasetPath);
|
|
635
|
+
message.SnapshotName !== undefined &&
|
|
636
|
+
(obj.SnapshotName = message.SnapshotName);
|
|
637
637
|
return obj;
|
|
638
638
|
},
|
|
639
|
-
create(base) {
|
|
640
|
-
return exports.SnapshotBackupRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
641
|
-
},
|
|
642
639
|
fromPartial(object) {
|
|
643
640
|
var _a, _b, _c;
|
|
644
641
|
const message = createBaseSnapshotBackupRequest();
|
|
@@ -697,21 +694,25 @@ exports.SnapshotBackupTransferRequest = {
|
|
|
697
694
|
return {
|
|
698
695
|
PoolName: isSet(object.PoolName) ? String(object.PoolName) : "",
|
|
699
696
|
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
700
|
-
SnapshotName: isSet(object.SnapshotName)
|
|
701
|
-
|
|
697
|
+
SnapshotName: isSet(object.SnapshotName)
|
|
698
|
+
? String(object.SnapshotName)
|
|
699
|
+
: "",
|
|
700
|
+
TransferMode: isSet(object.TransferMode)
|
|
701
|
+
? snapshotTransferModeFromJSON(object.TransferMode)
|
|
702
|
+
: 0,
|
|
702
703
|
};
|
|
703
704
|
},
|
|
704
705
|
toJSON(message) {
|
|
705
706
|
const obj = {};
|
|
706
707
|
message.PoolName !== undefined && (obj.PoolName = message.PoolName);
|
|
707
|
-
message.DatasetPath !== undefined &&
|
|
708
|
-
|
|
709
|
-
message.
|
|
708
|
+
message.DatasetPath !== undefined &&
|
|
709
|
+
(obj.DatasetPath = message.DatasetPath);
|
|
710
|
+
message.SnapshotName !== undefined &&
|
|
711
|
+
(obj.SnapshotName = message.SnapshotName);
|
|
712
|
+
message.TransferMode !== undefined &&
|
|
713
|
+
(obj.TransferMode = snapshotTransferModeToJSON(message.TransferMode));
|
|
710
714
|
return obj;
|
|
711
715
|
},
|
|
712
|
-
create(base) {
|
|
713
|
-
return exports.SnapshotBackupTransferRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
714
|
-
},
|
|
715
716
|
fromPartial(object) {
|
|
716
717
|
var _a, _b, _c, _d;
|
|
717
718
|
const message = createBaseSnapshotBackupTransferRequest();
|
|
@@ -763,13 +764,12 @@ exports.SnapshotBackupTransferResponse = {
|
|
|
763
764
|
},
|
|
764
765
|
toJSON(message) {
|
|
765
766
|
const obj = {};
|
|
766
|
-
message.BytesSent !== undefined &&
|
|
767
|
-
|
|
767
|
+
message.BytesSent !== undefined &&
|
|
768
|
+
(obj.BytesSent = Math.round(message.BytesSent));
|
|
769
|
+
message.BytesTotal !== undefined &&
|
|
770
|
+
(obj.BytesTotal = Math.round(message.BytesTotal));
|
|
768
771
|
return obj;
|
|
769
772
|
},
|
|
770
|
-
create(base) {
|
|
771
|
-
return exports.SnapshotBackupTransferResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
772
|
-
},
|
|
773
773
|
fromPartial(object) {
|
|
774
774
|
var _a, _b;
|
|
775
775
|
const message = createBaseSnapshotBackupTransferResponse();
|
|
@@ -820,12 +820,10 @@ exports.SnapshotBackupListRequest = {
|
|
|
820
820
|
toJSON(message) {
|
|
821
821
|
const obj = {};
|
|
822
822
|
message.PoolName !== undefined && (obj.PoolName = message.PoolName);
|
|
823
|
-
message.DatasetPath !== undefined &&
|
|
823
|
+
message.DatasetPath !== undefined &&
|
|
824
|
+
(obj.DatasetPath = message.DatasetPath);
|
|
824
825
|
return obj;
|
|
825
826
|
},
|
|
826
|
-
create(base) {
|
|
827
|
-
return exports.SnapshotBackupListRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
828
|
-
},
|
|
829
827
|
fromPartial(object) {
|
|
830
828
|
var _a, _b;
|
|
831
829
|
const message = createBaseSnapshotBackupListRequest();
|
|
@@ -875,21 +873,23 @@ exports.SnapshotStatusResponse = {
|
|
|
875
873
|
},
|
|
876
874
|
fromJSON(object) {
|
|
877
875
|
return {
|
|
878
|
-
Status: isSet(object.Status)
|
|
876
|
+
Status: isSet(object.Status)
|
|
877
|
+
? snapshotManagerStatusFromJSON(object.Status)
|
|
878
|
+
: 0,
|
|
879
879
|
BytesSent: isSet(object.BytesSent) ? Number(object.BytesSent) : 0,
|
|
880
880
|
BytesTotal: isSet(object.BytesTotal) ? Number(object.BytesTotal) : 0,
|
|
881
881
|
};
|
|
882
882
|
},
|
|
883
883
|
toJSON(message) {
|
|
884
884
|
const obj = {};
|
|
885
|
-
message.Status !== undefined &&
|
|
886
|
-
|
|
887
|
-
message.
|
|
885
|
+
message.Status !== undefined &&
|
|
886
|
+
(obj.Status = snapshotManagerStatusToJSON(message.Status));
|
|
887
|
+
message.BytesSent !== undefined &&
|
|
888
|
+
(obj.BytesSent = Math.round(message.BytesSent));
|
|
889
|
+
message.BytesTotal !== undefined &&
|
|
890
|
+
(obj.BytesTotal = Math.round(message.BytesTotal));
|
|
888
891
|
return obj;
|
|
889
892
|
},
|
|
890
|
-
create(base) {
|
|
891
|
-
return exports.SnapshotStatusResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
892
|
-
},
|
|
893
893
|
fromPartial(object) {
|
|
894
894
|
var _a, _b, _c;
|
|
895
895
|
const message = createBaseSnapshotStatusResponse();
|
|
@@ -977,7 +977,9 @@ class OSSnapshotServiceClientImpl {
|
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
979
|
exports.OSSnapshotServiceClientImpl = OSSnapshotServiceClientImpl;
|
|
980
|
-
exports.OSSnapshotServiceDesc = {
|
|
980
|
+
exports.OSSnapshotServiceDesc = {
|
|
981
|
+
serviceName: "cloud.lazycat.apis.sys.OSSnapshotService",
|
|
982
|
+
};
|
|
981
983
|
exports.OSSnapshotServiceBackupPoolAddDesc = {
|
|
982
984
|
methodName: "BackupPoolAdd",
|
|
983
985
|
service: exports.OSSnapshotServiceDesc,
|
|
@@ -990,9 +992,8 @@ exports.OSSnapshotServiceBackupPoolAddDesc = {
|
|
|
990
992
|
},
|
|
991
993
|
responseType: {
|
|
992
994
|
deserializeBinary(data) {
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
return value;
|
|
995
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
996
|
+
return this;
|
|
996
997
|
} });
|
|
997
998
|
},
|
|
998
999
|
},
|
|
@@ -1009,9 +1010,8 @@ exports.OSSnapshotServiceBackupPoolDelDesc = {
|
|
|
1009
1010
|
},
|
|
1010
1011
|
responseType: {
|
|
1011
1012
|
deserializeBinary(data) {
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
return value;
|
|
1013
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1014
|
+
return this;
|
|
1015
1015
|
} });
|
|
1016
1016
|
},
|
|
1017
1017
|
},
|
|
@@ -1028,9 +1028,8 @@ exports.OSSnapshotServiceBackupPoolListDesc = {
|
|
|
1028
1028
|
},
|
|
1029
1029
|
responseType: {
|
|
1030
1030
|
deserializeBinary(data) {
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
return value;
|
|
1031
|
+
return Object.assign(Object.assign({}, exports.SnapshotBackupPoolListResponse.decode(data)), { toObject() {
|
|
1032
|
+
return this;
|
|
1034
1033
|
} });
|
|
1035
1034
|
},
|
|
1036
1035
|
},
|
|
@@ -1047,9 +1046,8 @@ exports.OSSnapshotServiceDatasetAddDesc = {
|
|
|
1047
1046
|
},
|
|
1048
1047
|
responseType: {
|
|
1049
1048
|
deserializeBinary(data) {
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
return value;
|
|
1049
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1050
|
+
return this;
|
|
1053
1051
|
} });
|
|
1054
1052
|
},
|
|
1055
1053
|
},
|
|
@@ -1066,9 +1064,8 @@ exports.OSSnapshotServiceDatasetDelDesc = {
|
|
|
1066
1064
|
},
|
|
1067
1065
|
responseType: {
|
|
1068
1066
|
deserializeBinary(data) {
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
return value;
|
|
1067
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1068
|
+
return this;
|
|
1072
1069
|
} });
|
|
1073
1070
|
},
|
|
1074
1071
|
},
|
|
@@ -1085,9 +1082,8 @@ exports.OSSnapshotServiceDatasetListDesc = {
|
|
|
1085
1082
|
},
|
|
1086
1083
|
responseType: {
|
|
1087
1084
|
deserializeBinary(data) {
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
return value;
|
|
1085
|
+
return Object.assign(Object.assign({}, exports.SnapshotDatasetListResponse.decode(data)), { toObject() {
|
|
1086
|
+
return this;
|
|
1091
1087
|
} });
|
|
1092
1088
|
},
|
|
1093
1089
|
},
|
|
@@ -1104,9 +1100,8 @@ exports.OSSnapshotServiceDatasetBackupDelDesc = {
|
|
|
1104
1100
|
},
|
|
1105
1101
|
responseType: {
|
|
1106
1102
|
deserializeBinary(data) {
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
return value;
|
|
1103
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1104
|
+
return this;
|
|
1110
1105
|
} });
|
|
1111
1106
|
},
|
|
1112
1107
|
},
|
|
@@ -1123,9 +1118,8 @@ exports.OSSnapshotServiceDatasetBackupListDesc = {
|
|
|
1123
1118
|
},
|
|
1124
1119
|
responseType: {
|
|
1125
1120
|
deserializeBinary(data) {
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
return value;
|
|
1121
|
+
return Object.assign(Object.assign({}, exports.SnapshotDatasetListResponse.decode(data)), { toObject() {
|
|
1122
|
+
return this;
|
|
1129
1123
|
} });
|
|
1130
1124
|
},
|
|
1131
1125
|
},
|
|
@@ -1142,9 +1136,8 @@ exports.OSSnapshotServiceSnapshotAddDesc = {
|
|
|
1142
1136
|
},
|
|
1143
1137
|
responseType: {
|
|
1144
1138
|
deserializeBinary(data) {
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
return value;
|
|
1139
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1140
|
+
return this;
|
|
1148
1141
|
} });
|
|
1149
1142
|
},
|
|
1150
1143
|
},
|
|
@@ -1161,9 +1154,8 @@ exports.OSSnapshotServiceSnapshotDelDesc = {
|
|
|
1161
1154
|
},
|
|
1162
1155
|
responseType: {
|
|
1163
1156
|
deserializeBinary(data) {
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
return value;
|
|
1157
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1158
|
+
return this;
|
|
1167
1159
|
} });
|
|
1168
1160
|
},
|
|
1169
1161
|
},
|
|
@@ -1180,9 +1172,8 @@ exports.OSSnapshotServiceSnapshotListDesc = {
|
|
|
1180
1172
|
},
|
|
1181
1173
|
responseType: {
|
|
1182
1174
|
deserializeBinary(data) {
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
return value;
|
|
1175
|
+
return Object.assign(Object.assign({}, exports.SnapshotListResponse.decode(data)), { toObject() {
|
|
1176
|
+
return this;
|
|
1186
1177
|
} });
|
|
1187
1178
|
},
|
|
1188
1179
|
},
|
|
@@ -1199,9 +1190,8 @@ exports.OSSnapshotServiceSnapshotRestoreDesc = {
|
|
|
1199
1190
|
},
|
|
1200
1191
|
responseType: {
|
|
1201
1192
|
deserializeBinary(data) {
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
return value;
|
|
1193
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1194
|
+
return this;
|
|
1205
1195
|
} });
|
|
1206
1196
|
},
|
|
1207
1197
|
},
|
|
@@ -1218,9 +1208,8 @@ exports.OSSnapshotServiceSnapshotBackupAddDesc = {
|
|
|
1218
1208
|
},
|
|
1219
1209
|
responseType: {
|
|
1220
1210
|
deserializeBinary(data) {
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
return value;
|
|
1211
|
+
return Object.assign(Object.assign({}, exports.SnapshotBackupTransferResponse.decode(data)), { toObject() {
|
|
1212
|
+
return this;
|
|
1224
1213
|
} });
|
|
1225
1214
|
},
|
|
1226
1215
|
},
|
|
@@ -1237,9 +1226,8 @@ exports.OSSnapshotServiceSnapshotBackupDelDesc = {
|
|
|
1237
1226
|
},
|
|
1238
1227
|
responseType: {
|
|
1239
1228
|
deserializeBinary(data) {
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
return value;
|
|
1229
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1230
|
+
return this;
|
|
1243
1231
|
} });
|
|
1244
1232
|
},
|
|
1245
1233
|
},
|
|
@@ -1256,9 +1244,8 @@ exports.OSSnapshotServiceSnapshotBackupListDesc = {
|
|
|
1256
1244
|
},
|
|
1257
1245
|
responseType: {
|
|
1258
1246
|
deserializeBinary(data) {
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
return value;
|
|
1247
|
+
return Object.assign(Object.assign({}, exports.SnapshotListResponse.decode(data)), { toObject() {
|
|
1248
|
+
return this;
|
|
1262
1249
|
} });
|
|
1263
1250
|
},
|
|
1264
1251
|
},
|
|
@@ -1275,9 +1262,8 @@ exports.OSSnapshotServiceSnapshotBackupRestoreDesc = {
|
|
|
1275
1262
|
},
|
|
1276
1263
|
responseType: {
|
|
1277
1264
|
deserializeBinary(data) {
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
return value;
|
|
1265
|
+
return Object.assign(Object.assign({}, exports.SnapshotBackupTransferResponse.decode(data)), { toObject() {
|
|
1266
|
+
return this;
|
|
1281
1267
|
} });
|
|
1282
1268
|
},
|
|
1283
1269
|
},
|
|
@@ -1294,9 +1280,8 @@ exports.OSSnapshotServiceGetStatusDesc = {
|
|
|
1294
1280
|
},
|
|
1295
1281
|
responseType: {
|
|
1296
1282
|
deserializeBinary(data) {
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
return value;
|
|
1283
|
+
return Object.assign(Object.assign({}, exports.SnapshotStatusResponse.decode(data)), { toObject() {
|
|
1284
|
+
return this;
|
|
1300
1285
|
} });
|
|
1301
1286
|
},
|
|
1302
1287
|
},
|
|
@@ -1313,9 +1298,8 @@ exports.OSSnapshotServiceStopTransferDesc = {
|
|
|
1313
1298
|
},
|
|
1314
1299
|
responseType: {
|
|
1315
1300
|
deserializeBinary(data) {
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
return value;
|
|
1301
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1302
|
+
return this;
|
|
1319
1303
|
} });
|
|
1320
1304
|
},
|
|
1321
1305
|
},
|
|
@@ -1340,7 +1324,7 @@ class GrpcWebImpl {
|
|
|
1340
1324
|
debug: this.options.debug,
|
|
1341
1325
|
onEnd: function (response) {
|
|
1342
1326
|
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
1343
|
-
resolve(response.message
|
|
1327
|
+
resolve(response.message);
|
|
1344
1328
|
}
|
|
1345
1329
|
else {
|
|
1346
1330
|
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
@@ -1352,24 +1336,20 @@ class GrpcWebImpl {
|
|
|
1352
1336
|
}
|
|
1353
1337
|
}
|
|
1354
1338
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
1355
|
-
var
|
|
1356
|
-
if (typeof globalThis !== "undefined")
|
|
1339
|
+
var globalThis = (() => {
|
|
1340
|
+
if (typeof globalThis !== "undefined")
|
|
1357
1341
|
return globalThis;
|
|
1358
|
-
|
|
1359
|
-
if (typeof self !== "undefined") {
|
|
1342
|
+
if (typeof self !== "undefined")
|
|
1360
1343
|
return self;
|
|
1361
|
-
|
|
1362
|
-
if (typeof window !== "undefined") {
|
|
1344
|
+
if (typeof window !== "undefined")
|
|
1363
1345
|
return window;
|
|
1364
|
-
|
|
1365
|
-
if (typeof global !== "undefined") {
|
|
1346
|
+
if (typeof global !== "undefined")
|
|
1366
1347
|
return global;
|
|
1367
|
-
}
|
|
1368
1348
|
throw "Unable to locate global object";
|
|
1369
1349
|
})();
|
|
1370
1350
|
function longToNumber(long) {
|
|
1371
1351
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
1372
|
-
throw new
|
|
1352
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1373
1353
|
}
|
|
1374
1354
|
return long.toNumber();
|
|
1375
1355
|
}
|
|
@@ -1380,7 +1360,7 @@ if (minimal_1.default.util.Long !== long_1.default) {
|
|
|
1380
1360
|
function isSet(value) {
|
|
1381
1361
|
return value !== null && value !== undefined;
|
|
1382
1362
|
}
|
|
1383
|
-
class GrpcWebError extends
|
|
1363
|
+
class GrpcWebError extends Error {
|
|
1384
1364
|
constructor(message, code, metadata) {
|
|
1385
1365
|
super(message);
|
|
1386
1366
|
this.code = code;
|