@lazycatcloud/sdk 0.1.27 → 0.1.30
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/common/box.d.ts +12 -6
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +43 -76
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +11 -5
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +36 -59
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +16 -9
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +46 -81
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/gateway.d.ts +12 -6
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +37 -70
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +15 -9
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +36 -59
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts +15 -9
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +36 -72
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +19 -13
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +43 -71
- package/dist/common/users.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts +1644 -1645
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +254 -501
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.d.ts +2 -2
- package/dist/google/protobuf/empty.d.ts.map +1 -1
- package/dist/google/protobuf/empty.js +5 -25
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts +2 -4
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +15 -35
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts +11 -5
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +62 -74
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/device.d.ts +8 -2
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +17 -33
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +12 -6
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +28 -49
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/network.d.ts +8 -2
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +18 -35
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/photo.d.ts +25 -19
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +107 -214
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/sys/OS_snapshot.d.ts +26 -20
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +83 -140
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +13 -7
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +44 -78
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +36 -30
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +93 -134
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +17 -11
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +48 -80
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/network_manager.d.ts +303 -0
- package/dist/sys/network_manager.d.ts.map +1 -0
- package/dist/sys/network_manager.js +712 -0
- package/dist/sys/network_manager.js.map +1 -0
- package/dist/sys/package_manager.d.ts +32 -26
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +86 -148
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +56 -41
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +170 -258
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +18 -12
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +46 -90
- package/dist/sys/snapd.js.map +1 -1
- package/package.json +1 -1
- package/dist/common/permissions.d.ts +0 -93
- package/dist/common/permissions.d.ts.map +0 -1
- package/dist/common/permissions.js +0 -267
- package/dist/common/permissions.js.map +0 -1
package/dist/sys/OS_snapshot.js
CHANGED
|
@@ -1,38 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
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;
|
|
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;
|
|
30
7
|
/* eslint-disable */
|
|
31
8
|
const grpc_web_1 = require("@improbable-eng/grpc-web");
|
|
32
|
-
const empty_1 = require("../google/protobuf/empty");
|
|
33
9
|
const browser_headers_1 = require("browser-headers");
|
|
34
10
|
const long_1 = __importDefault(require("long"));
|
|
35
|
-
const
|
|
11
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
12
|
+
const empty_1 = require("../google/protobuf/empty");
|
|
36
13
|
var SnapshotManagerStatus;
|
|
37
14
|
(function (SnapshotManagerStatus) {
|
|
38
15
|
SnapshotManagerStatus[SnapshotManagerStatus["Stopped"] = 0] = "Stopped";
|
|
@@ -111,14 +88,14 @@ function createBaseSnapshotBackupPoolRequest() {
|
|
|
111
88
|
return { PoolName: "" };
|
|
112
89
|
}
|
|
113
90
|
exports.SnapshotBackupPoolRequest = {
|
|
114
|
-
encode(message, writer =
|
|
91
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
115
92
|
if (message.PoolName !== "") {
|
|
116
93
|
writer.uint32(10).string(message.PoolName);
|
|
117
94
|
}
|
|
118
95
|
return writer;
|
|
119
96
|
},
|
|
120
97
|
decode(input, length) {
|
|
121
|
-
const reader = input instanceof
|
|
98
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
122
99
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
123
100
|
const message = createBaseSnapshotBackupPoolRequest();
|
|
124
101
|
while (reader.pos < end) {
|
|
@@ -135,9 +112,7 @@ exports.SnapshotBackupPoolRequest = {
|
|
|
135
112
|
return message;
|
|
136
113
|
},
|
|
137
114
|
fromJSON(object) {
|
|
138
|
-
return {
|
|
139
|
-
PoolName: isSet(object.PoolName) ? String(object.PoolName) : "",
|
|
140
|
-
};
|
|
115
|
+
return { PoolName: isSet(object.PoolName) ? String(object.PoolName) : "" };
|
|
141
116
|
},
|
|
142
117
|
toJSON(message) {
|
|
143
118
|
const obj = {};
|
|
@@ -155,14 +130,14 @@ function createBaseSnapshotBackupPoolListResponse() {
|
|
|
155
130
|
return { PoolNameList: [] };
|
|
156
131
|
}
|
|
157
132
|
exports.SnapshotBackupPoolListResponse = {
|
|
158
|
-
encode(message, writer =
|
|
133
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
159
134
|
for (const v of message.PoolNameList) {
|
|
160
135
|
writer.uint32(10).string(v);
|
|
161
136
|
}
|
|
162
137
|
return writer;
|
|
163
138
|
},
|
|
164
139
|
decode(input, length) {
|
|
165
|
-
const reader = input instanceof
|
|
140
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
166
141
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
167
142
|
const message = createBaseSnapshotBackupPoolListResponse();
|
|
168
143
|
while (reader.pos < end) {
|
|
@@ -179,11 +154,7 @@ exports.SnapshotBackupPoolListResponse = {
|
|
|
179
154
|
return message;
|
|
180
155
|
},
|
|
181
156
|
fromJSON(object) {
|
|
182
|
-
return {
|
|
183
|
-
PoolNameList: Array.isArray(object === null || object === void 0 ? void 0 : object.PoolNameList)
|
|
184
|
-
? object.PoolNameList.map((e) => String(e))
|
|
185
|
-
: [],
|
|
186
|
-
};
|
|
157
|
+
return { PoolNameList: Array.isArray(object === null || object === void 0 ? void 0 : object.PoolNameList) ? object.PoolNameList.map((e) => String(e)) : [] };
|
|
187
158
|
},
|
|
188
159
|
toJSON(message) {
|
|
189
160
|
const obj = {};
|
|
@@ -206,14 +177,14 @@ function createBaseSnapshotDatasetRequest() {
|
|
|
206
177
|
return { DatasetPath: "" };
|
|
207
178
|
}
|
|
208
179
|
exports.SnapshotDatasetRequest = {
|
|
209
|
-
encode(message, writer =
|
|
180
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
210
181
|
if (message.DatasetPath !== "") {
|
|
211
182
|
writer.uint32(10).string(message.DatasetPath);
|
|
212
183
|
}
|
|
213
184
|
return writer;
|
|
214
185
|
},
|
|
215
186
|
decode(input, length) {
|
|
216
|
-
const reader = input instanceof
|
|
187
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
217
188
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
218
189
|
const message = createBaseSnapshotDatasetRequest();
|
|
219
190
|
while (reader.pos < end) {
|
|
@@ -230,14 +201,11 @@ exports.SnapshotDatasetRequest = {
|
|
|
230
201
|
return message;
|
|
231
202
|
},
|
|
232
203
|
fromJSON(object) {
|
|
233
|
-
return {
|
|
234
|
-
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
235
|
-
};
|
|
204
|
+
return { DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "" };
|
|
236
205
|
},
|
|
237
206
|
toJSON(message) {
|
|
238
207
|
const obj = {};
|
|
239
|
-
message.DatasetPath !== undefined &&
|
|
240
|
-
(obj.DatasetPath = message.DatasetPath);
|
|
208
|
+
message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
|
|
241
209
|
return obj;
|
|
242
210
|
},
|
|
243
211
|
fromPartial(object) {
|
|
@@ -251,7 +219,7 @@ function createBaseSnapshotDatasetBackupRequest() {
|
|
|
251
219
|
return { PoolName: "", DatasetPath: "" };
|
|
252
220
|
}
|
|
253
221
|
exports.SnapshotDatasetBackupRequest = {
|
|
254
|
-
encode(message, writer =
|
|
222
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
255
223
|
if (message.PoolName !== "") {
|
|
256
224
|
writer.uint32(10).string(message.PoolName);
|
|
257
225
|
}
|
|
@@ -261,7 +229,7 @@ exports.SnapshotDatasetBackupRequest = {
|
|
|
261
229
|
return writer;
|
|
262
230
|
},
|
|
263
231
|
decode(input, length) {
|
|
264
|
-
const reader = input instanceof
|
|
232
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
265
233
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
266
234
|
const message = createBaseSnapshotDatasetBackupRequest();
|
|
267
235
|
while (reader.pos < end) {
|
|
@@ -289,8 +257,7 @@ exports.SnapshotDatasetBackupRequest = {
|
|
|
289
257
|
toJSON(message) {
|
|
290
258
|
const obj = {};
|
|
291
259
|
message.PoolName !== undefined && (obj.PoolName = message.PoolName);
|
|
292
|
-
message.DatasetPath !== undefined &&
|
|
293
|
-
(obj.DatasetPath = message.DatasetPath);
|
|
260
|
+
message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
|
|
294
261
|
return obj;
|
|
295
262
|
},
|
|
296
263
|
fromPartial(object) {
|
|
@@ -305,7 +272,7 @@ function createBaseSnapshotDatasetDesc() {
|
|
|
305
272
|
return { Path: "", BytesUsed: 0, SnapshotBytesUsed: 0, CreatedAt: 0 };
|
|
306
273
|
}
|
|
307
274
|
exports.SnapshotDatasetDesc = {
|
|
308
|
-
encode(message, writer =
|
|
275
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
309
276
|
if (message.Path !== "") {
|
|
310
277
|
writer.uint32(10).string(message.Path);
|
|
311
278
|
}
|
|
@@ -321,7 +288,7 @@ exports.SnapshotDatasetDesc = {
|
|
|
321
288
|
return writer;
|
|
322
289
|
},
|
|
323
290
|
decode(input, length) {
|
|
324
|
-
const reader = input instanceof
|
|
291
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
325
292
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
326
293
|
const message = createBaseSnapshotDatasetDesc();
|
|
327
294
|
while (reader.pos < end) {
|
|
@@ -350,21 +317,16 @@ exports.SnapshotDatasetDesc = {
|
|
|
350
317
|
return {
|
|
351
318
|
Path: isSet(object.Path) ? String(object.Path) : "",
|
|
352
319
|
BytesUsed: isSet(object.BytesUsed) ? Number(object.BytesUsed) : 0,
|
|
353
|
-
SnapshotBytesUsed: isSet(object.SnapshotBytesUsed)
|
|
354
|
-
? Number(object.SnapshotBytesUsed)
|
|
355
|
-
: 0,
|
|
320
|
+
SnapshotBytesUsed: isSet(object.SnapshotBytesUsed) ? Number(object.SnapshotBytesUsed) : 0,
|
|
356
321
|
CreatedAt: isSet(object.CreatedAt) ? Number(object.CreatedAt) : 0,
|
|
357
322
|
};
|
|
358
323
|
},
|
|
359
324
|
toJSON(message) {
|
|
360
325
|
const obj = {};
|
|
361
326
|
message.Path !== undefined && (obj.Path = message.Path);
|
|
362
|
-
message.BytesUsed !== undefined &&
|
|
363
|
-
|
|
364
|
-
message.
|
|
365
|
-
(obj.SnapshotBytesUsed = Math.round(message.SnapshotBytesUsed));
|
|
366
|
-
message.CreatedAt !== undefined &&
|
|
367
|
-
(obj.CreatedAt = Math.round(message.CreatedAt));
|
|
327
|
+
message.BytesUsed !== undefined && (obj.BytesUsed = Math.round(message.BytesUsed));
|
|
328
|
+
message.SnapshotBytesUsed !== undefined && (obj.SnapshotBytesUsed = Math.round(message.SnapshotBytesUsed));
|
|
329
|
+
message.CreatedAt !== undefined && (obj.CreatedAt = Math.round(message.CreatedAt));
|
|
368
330
|
return obj;
|
|
369
331
|
},
|
|
370
332
|
fromPartial(object) {
|
|
@@ -381,14 +343,14 @@ function createBaseSnapshotDatasetListResponse() {
|
|
|
381
343
|
return { DatasetList: [] };
|
|
382
344
|
}
|
|
383
345
|
exports.SnapshotDatasetListResponse = {
|
|
384
|
-
encode(message, writer =
|
|
346
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
385
347
|
for (const v of message.DatasetList) {
|
|
386
348
|
exports.SnapshotDatasetDesc.encode(v, writer.uint32(10).fork()).ldelim();
|
|
387
349
|
}
|
|
388
350
|
return writer;
|
|
389
351
|
},
|
|
390
352
|
decode(input, length) {
|
|
391
|
-
const reader = input instanceof
|
|
353
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
392
354
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
393
355
|
const message = createBaseSnapshotDatasetListResponse();
|
|
394
356
|
while (reader.pos < end) {
|
|
@@ -424,8 +386,7 @@ exports.SnapshotDatasetListResponse = {
|
|
|
424
386
|
fromPartial(object) {
|
|
425
387
|
var _a;
|
|
426
388
|
const message = createBaseSnapshotDatasetListResponse();
|
|
427
|
-
message.DatasetList =
|
|
428
|
-
((_a = object.DatasetList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.SnapshotDatasetDesc.fromPartial(e))) || [];
|
|
389
|
+
message.DatasetList = ((_a = object.DatasetList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.SnapshotDatasetDesc.fromPartial(e))) || [];
|
|
429
390
|
return message;
|
|
430
391
|
},
|
|
431
392
|
};
|
|
@@ -433,7 +394,7 @@ function createBaseSnapshotRequest() {
|
|
|
433
394
|
return { DatasetPath: "", SnapshotName: "" };
|
|
434
395
|
}
|
|
435
396
|
exports.SnapshotRequest = {
|
|
436
|
-
encode(message, writer =
|
|
397
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
437
398
|
if (message.DatasetPath !== "") {
|
|
438
399
|
writer.uint32(10).string(message.DatasetPath);
|
|
439
400
|
}
|
|
@@ -443,7 +404,7 @@ exports.SnapshotRequest = {
|
|
|
443
404
|
return writer;
|
|
444
405
|
},
|
|
445
406
|
decode(input, length) {
|
|
446
|
-
const reader = input instanceof
|
|
407
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
447
408
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
448
409
|
const message = createBaseSnapshotRequest();
|
|
449
410
|
while (reader.pos < end) {
|
|
@@ -465,17 +426,13 @@ exports.SnapshotRequest = {
|
|
|
465
426
|
fromJSON(object) {
|
|
466
427
|
return {
|
|
467
428
|
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
468
|
-
SnapshotName: isSet(object.SnapshotName)
|
|
469
|
-
? String(object.SnapshotName)
|
|
470
|
-
: "",
|
|
429
|
+
SnapshotName: isSet(object.SnapshotName) ? String(object.SnapshotName) : "",
|
|
471
430
|
};
|
|
472
431
|
},
|
|
473
432
|
toJSON(message) {
|
|
474
433
|
const obj = {};
|
|
475
|
-
message.DatasetPath !== undefined &&
|
|
476
|
-
|
|
477
|
-
message.SnapshotName !== undefined &&
|
|
478
|
-
(obj.SnapshotName = message.SnapshotName);
|
|
434
|
+
message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
|
|
435
|
+
message.SnapshotName !== undefined && (obj.SnapshotName = message.SnapshotName);
|
|
479
436
|
return obj;
|
|
480
437
|
},
|
|
481
438
|
fromPartial(object) {
|
|
@@ -490,7 +447,7 @@ function createBaseSnapshotDesc() {
|
|
|
490
447
|
return { Name: "", BytesUsed: 0, CreatedAt: 0 };
|
|
491
448
|
}
|
|
492
449
|
exports.SnapshotDesc = {
|
|
493
|
-
encode(message, writer =
|
|
450
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
494
451
|
if (message.Name !== "") {
|
|
495
452
|
writer.uint32(10).string(message.Name);
|
|
496
453
|
}
|
|
@@ -503,7 +460,7 @@ exports.SnapshotDesc = {
|
|
|
503
460
|
return writer;
|
|
504
461
|
},
|
|
505
462
|
decode(input, length) {
|
|
506
|
-
const reader = input instanceof
|
|
463
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
507
464
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
508
465
|
const message = createBaseSnapshotDesc();
|
|
509
466
|
while (reader.pos < end) {
|
|
@@ -535,10 +492,8 @@ exports.SnapshotDesc = {
|
|
|
535
492
|
toJSON(message) {
|
|
536
493
|
const obj = {};
|
|
537
494
|
message.Name !== undefined && (obj.Name = message.Name);
|
|
538
|
-
message.BytesUsed !== undefined &&
|
|
539
|
-
|
|
540
|
-
message.CreatedAt !== undefined &&
|
|
541
|
-
(obj.CreatedAt = Math.round(message.CreatedAt));
|
|
495
|
+
message.BytesUsed !== undefined && (obj.BytesUsed = Math.round(message.BytesUsed));
|
|
496
|
+
message.CreatedAt !== undefined && (obj.CreatedAt = Math.round(message.CreatedAt));
|
|
542
497
|
return obj;
|
|
543
498
|
},
|
|
544
499
|
fromPartial(object) {
|
|
@@ -554,14 +509,14 @@ function createBaseSnapshotListResponse() {
|
|
|
554
509
|
return { SnapshotList: [] };
|
|
555
510
|
}
|
|
556
511
|
exports.SnapshotListResponse = {
|
|
557
|
-
encode(message, writer =
|
|
512
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
558
513
|
for (const v of message.SnapshotList) {
|
|
559
514
|
exports.SnapshotDesc.encode(v, writer.uint32(10).fork()).ldelim();
|
|
560
515
|
}
|
|
561
516
|
return writer;
|
|
562
517
|
},
|
|
563
518
|
decode(input, length) {
|
|
564
|
-
const reader = input instanceof
|
|
519
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
565
520
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
566
521
|
const message = createBaseSnapshotListResponse();
|
|
567
522
|
while (reader.pos < end) {
|
|
@@ -597,8 +552,7 @@ exports.SnapshotListResponse = {
|
|
|
597
552
|
fromPartial(object) {
|
|
598
553
|
var _a;
|
|
599
554
|
const message = createBaseSnapshotListResponse();
|
|
600
|
-
message.SnapshotList =
|
|
601
|
-
((_a = object.SnapshotList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.SnapshotDesc.fromPartial(e))) || [];
|
|
555
|
+
message.SnapshotList = ((_a = object.SnapshotList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.SnapshotDesc.fromPartial(e))) || [];
|
|
602
556
|
return message;
|
|
603
557
|
},
|
|
604
558
|
};
|
|
@@ -606,7 +560,7 @@ function createBaseSnapshotBackupRequest() {
|
|
|
606
560
|
return { PoolName: "", DatasetPath: "", SnapshotName: "" };
|
|
607
561
|
}
|
|
608
562
|
exports.SnapshotBackupRequest = {
|
|
609
|
-
encode(message, writer =
|
|
563
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
610
564
|
if (message.PoolName !== "") {
|
|
611
565
|
writer.uint32(10).string(message.PoolName);
|
|
612
566
|
}
|
|
@@ -619,7 +573,7 @@ exports.SnapshotBackupRequest = {
|
|
|
619
573
|
return writer;
|
|
620
574
|
},
|
|
621
575
|
decode(input, length) {
|
|
622
|
-
const reader = input instanceof
|
|
576
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
623
577
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
624
578
|
const message = createBaseSnapshotBackupRequest();
|
|
625
579
|
while (reader.pos < end) {
|
|
@@ -645,18 +599,14 @@ exports.SnapshotBackupRequest = {
|
|
|
645
599
|
return {
|
|
646
600
|
PoolName: isSet(object.PoolName) ? String(object.PoolName) : "",
|
|
647
601
|
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
648
|
-
SnapshotName: isSet(object.SnapshotName)
|
|
649
|
-
? String(object.SnapshotName)
|
|
650
|
-
: "",
|
|
602
|
+
SnapshotName: isSet(object.SnapshotName) ? String(object.SnapshotName) : "",
|
|
651
603
|
};
|
|
652
604
|
},
|
|
653
605
|
toJSON(message) {
|
|
654
606
|
const obj = {};
|
|
655
607
|
message.PoolName !== undefined && (obj.PoolName = message.PoolName);
|
|
656
|
-
message.DatasetPath !== undefined &&
|
|
657
|
-
|
|
658
|
-
message.SnapshotName !== undefined &&
|
|
659
|
-
(obj.SnapshotName = message.SnapshotName);
|
|
608
|
+
message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
|
|
609
|
+
message.SnapshotName !== undefined && (obj.SnapshotName = message.SnapshotName);
|
|
660
610
|
return obj;
|
|
661
611
|
},
|
|
662
612
|
fromPartial(object) {
|
|
@@ -672,7 +622,7 @@ function createBaseSnapshotBackupTransferRequest() {
|
|
|
672
622
|
return { PoolName: "", DatasetPath: "", SnapshotName: "", TransferMode: 0 };
|
|
673
623
|
}
|
|
674
624
|
exports.SnapshotBackupTransferRequest = {
|
|
675
|
-
encode(message, writer =
|
|
625
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
676
626
|
if (message.PoolName !== "") {
|
|
677
627
|
writer.uint32(10).string(message.PoolName);
|
|
678
628
|
}
|
|
@@ -688,7 +638,7 @@ exports.SnapshotBackupTransferRequest = {
|
|
|
688
638
|
return writer;
|
|
689
639
|
},
|
|
690
640
|
decode(input, length) {
|
|
691
|
-
const reader = input instanceof
|
|
641
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
692
642
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
693
643
|
const message = createBaseSnapshotBackupTransferRequest();
|
|
694
644
|
while (reader.pos < end) {
|
|
@@ -717,23 +667,16 @@ exports.SnapshotBackupTransferRequest = {
|
|
|
717
667
|
return {
|
|
718
668
|
PoolName: isSet(object.PoolName) ? String(object.PoolName) : "",
|
|
719
669
|
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
720
|
-
SnapshotName: isSet(object.SnapshotName)
|
|
721
|
-
|
|
722
|
-
: "",
|
|
723
|
-
TransferMode: isSet(object.TransferMode)
|
|
724
|
-
? snapshotTransferModeFromJSON(object.TransferMode)
|
|
725
|
-
: 0,
|
|
670
|
+
SnapshotName: isSet(object.SnapshotName) ? String(object.SnapshotName) : "",
|
|
671
|
+
TransferMode: isSet(object.TransferMode) ? snapshotTransferModeFromJSON(object.TransferMode) : 0,
|
|
726
672
|
};
|
|
727
673
|
},
|
|
728
674
|
toJSON(message) {
|
|
729
675
|
const obj = {};
|
|
730
676
|
message.PoolName !== undefined && (obj.PoolName = message.PoolName);
|
|
731
|
-
message.DatasetPath !== undefined &&
|
|
732
|
-
|
|
733
|
-
message.
|
|
734
|
-
(obj.SnapshotName = message.SnapshotName);
|
|
735
|
-
message.TransferMode !== undefined &&
|
|
736
|
-
(obj.TransferMode = snapshotTransferModeToJSON(message.TransferMode));
|
|
677
|
+
message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
|
|
678
|
+
message.SnapshotName !== undefined && (obj.SnapshotName = message.SnapshotName);
|
|
679
|
+
message.TransferMode !== undefined && (obj.TransferMode = snapshotTransferModeToJSON(message.TransferMode));
|
|
737
680
|
return obj;
|
|
738
681
|
},
|
|
739
682
|
fromPartial(object) {
|
|
@@ -750,7 +693,7 @@ function createBaseSnapshotBackupTransferResponse() {
|
|
|
750
693
|
return { BytesSent: 0, BytesTotal: 0 };
|
|
751
694
|
}
|
|
752
695
|
exports.SnapshotBackupTransferResponse = {
|
|
753
|
-
encode(message, writer =
|
|
696
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
754
697
|
if (message.BytesSent !== 0) {
|
|
755
698
|
writer.uint32(8).uint64(message.BytesSent);
|
|
756
699
|
}
|
|
@@ -760,7 +703,7 @@ exports.SnapshotBackupTransferResponse = {
|
|
|
760
703
|
return writer;
|
|
761
704
|
},
|
|
762
705
|
decode(input, length) {
|
|
763
|
-
const reader = input instanceof
|
|
706
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
764
707
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
765
708
|
const message = createBaseSnapshotBackupTransferResponse();
|
|
766
709
|
while (reader.pos < end) {
|
|
@@ -787,10 +730,8 @@ exports.SnapshotBackupTransferResponse = {
|
|
|
787
730
|
},
|
|
788
731
|
toJSON(message) {
|
|
789
732
|
const obj = {};
|
|
790
|
-
message.BytesSent !== undefined &&
|
|
791
|
-
|
|
792
|
-
message.BytesTotal !== undefined &&
|
|
793
|
-
(obj.BytesTotal = Math.round(message.BytesTotal));
|
|
733
|
+
message.BytesSent !== undefined && (obj.BytesSent = Math.round(message.BytesSent));
|
|
734
|
+
message.BytesTotal !== undefined && (obj.BytesTotal = Math.round(message.BytesTotal));
|
|
794
735
|
return obj;
|
|
795
736
|
},
|
|
796
737
|
fromPartial(object) {
|
|
@@ -805,7 +746,7 @@ function createBaseSnapshotBackupListRequest() {
|
|
|
805
746
|
return { PoolName: "", DatasetPath: "" };
|
|
806
747
|
}
|
|
807
748
|
exports.SnapshotBackupListRequest = {
|
|
808
|
-
encode(message, writer =
|
|
749
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
809
750
|
if (message.PoolName !== "") {
|
|
810
751
|
writer.uint32(10).string(message.PoolName);
|
|
811
752
|
}
|
|
@@ -815,7 +756,7 @@ exports.SnapshotBackupListRequest = {
|
|
|
815
756
|
return writer;
|
|
816
757
|
},
|
|
817
758
|
decode(input, length) {
|
|
818
|
-
const reader = input instanceof
|
|
759
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
819
760
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
820
761
|
const message = createBaseSnapshotBackupListRequest();
|
|
821
762
|
while (reader.pos < end) {
|
|
@@ -843,8 +784,7 @@ exports.SnapshotBackupListRequest = {
|
|
|
843
784
|
toJSON(message) {
|
|
844
785
|
const obj = {};
|
|
845
786
|
message.PoolName !== undefined && (obj.PoolName = message.PoolName);
|
|
846
|
-
message.DatasetPath !== undefined &&
|
|
847
|
-
(obj.DatasetPath = message.DatasetPath);
|
|
787
|
+
message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
|
|
848
788
|
return obj;
|
|
849
789
|
},
|
|
850
790
|
fromPartial(object) {
|
|
@@ -859,7 +799,7 @@ function createBaseSnapshotStatusResponse() {
|
|
|
859
799
|
return { Status: 0, BytesSent: 0, BytesTotal: 0 };
|
|
860
800
|
}
|
|
861
801
|
exports.SnapshotStatusResponse = {
|
|
862
|
-
encode(message, writer =
|
|
802
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
863
803
|
if (message.Status !== 0) {
|
|
864
804
|
writer.uint32(8).int32(message.Status);
|
|
865
805
|
}
|
|
@@ -872,7 +812,7 @@ exports.SnapshotStatusResponse = {
|
|
|
872
812
|
return writer;
|
|
873
813
|
},
|
|
874
814
|
decode(input, length) {
|
|
875
|
-
const reader = input instanceof
|
|
815
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
876
816
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
877
817
|
const message = createBaseSnapshotStatusResponse();
|
|
878
818
|
while (reader.pos < end) {
|
|
@@ -896,21 +836,16 @@ exports.SnapshotStatusResponse = {
|
|
|
896
836
|
},
|
|
897
837
|
fromJSON(object) {
|
|
898
838
|
return {
|
|
899
|
-
Status: isSet(object.Status)
|
|
900
|
-
? snapshotManagerStatusFromJSON(object.Status)
|
|
901
|
-
: 0,
|
|
839
|
+
Status: isSet(object.Status) ? snapshotManagerStatusFromJSON(object.Status) : 0,
|
|
902
840
|
BytesSent: isSet(object.BytesSent) ? Number(object.BytesSent) : 0,
|
|
903
841
|
BytesTotal: isSet(object.BytesTotal) ? Number(object.BytesTotal) : 0,
|
|
904
842
|
};
|
|
905
843
|
},
|
|
906
844
|
toJSON(message) {
|
|
907
845
|
const obj = {};
|
|
908
|
-
message.Status !== undefined &&
|
|
909
|
-
|
|
910
|
-
message.
|
|
911
|
-
(obj.BytesSent = Math.round(message.BytesSent));
|
|
912
|
-
message.BytesTotal !== undefined &&
|
|
913
|
-
(obj.BytesTotal = Math.round(message.BytesTotal));
|
|
846
|
+
message.Status !== undefined && (obj.Status = snapshotManagerStatusToJSON(message.Status));
|
|
847
|
+
message.BytesSent !== undefined && (obj.BytesSent = Math.round(message.BytesSent));
|
|
848
|
+
message.BytesTotal !== undefined && (obj.BytesTotal = Math.round(message.BytesTotal));
|
|
914
849
|
return obj;
|
|
915
850
|
},
|
|
916
851
|
fromPartial(object) {
|
|
@@ -1000,9 +935,7 @@ class OSSnapshotServiceClientImpl {
|
|
|
1000
935
|
}
|
|
1001
936
|
}
|
|
1002
937
|
exports.OSSnapshotServiceClientImpl = OSSnapshotServiceClientImpl;
|
|
1003
|
-
exports.OSSnapshotServiceDesc = {
|
|
1004
|
-
serviceName: "cloud.lazycat.apis.sys.OSSnapshotService",
|
|
1005
|
-
};
|
|
938
|
+
exports.OSSnapshotServiceDesc = { serviceName: "cloud.lazycat.apis.sys.OSSnapshotService" };
|
|
1006
939
|
exports.OSSnapshotServiceBackupPoolAddDesc = {
|
|
1007
940
|
methodName: "BackupPoolAdd",
|
|
1008
941
|
service: exports.OSSnapshotServiceDesc,
|
|
@@ -1350,9 +1283,7 @@ class GrpcWebImpl {
|
|
|
1350
1283
|
resolve(response.message);
|
|
1351
1284
|
}
|
|
1352
1285
|
else {
|
|
1353
|
-
const err = new
|
|
1354
|
-
err.code = response.status;
|
|
1355
|
-
err.metadata = response.trailers;
|
|
1286
|
+
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
1356
1287
|
reject(err);
|
|
1357
1288
|
}
|
|
1358
1289
|
},
|
|
@@ -1362,14 +1293,18 @@ class GrpcWebImpl {
|
|
|
1362
1293
|
}
|
|
1363
1294
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
1364
1295
|
var globalThis = (() => {
|
|
1365
|
-
if (typeof globalThis !== "undefined")
|
|
1296
|
+
if (typeof globalThis !== "undefined") {
|
|
1366
1297
|
return globalThis;
|
|
1367
|
-
|
|
1298
|
+
}
|
|
1299
|
+
if (typeof self !== "undefined") {
|
|
1368
1300
|
return self;
|
|
1369
|
-
|
|
1301
|
+
}
|
|
1302
|
+
if (typeof window !== "undefined") {
|
|
1370
1303
|
return window;
|
|
1371
|
-
|
|
1304
|
+
}
|
|
1305
|
+
if (typeof global !== "undefined") {
|
|
1372
1306
|
return global;
|
|
1307
|
+
}
|
|
1373
1308
|
throw "Unable to locate global object";
|
|
1374
1309
|
})();
|
|
1375
1310
|
function longToNumber(long) {
|
|
@@ -1378,11 +1313,19 @@ function longToNumber(long) {
|
|
|
1378
1313
|
}
|
|
1379
1314
|
return long.toNumber();
|
|
1380
1315
|
}
|
|
1381
|
-
if (
|
|
1382
|
-
|
|
1383
|
-
|
|
1316
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
1317
|
+
minimal_1.default.util.Long = long_1.default;
|
|
1318
|
+
minimal_1.default.configure();
|
|
1384
1319
|
}
|
|
1385
1320
|
function isSet(value) {
|
|
1386
1321
|
return value !== null && value !== undefined;
|
|
1387
1322
|
}
|
|
1323
|
+
class GrpcWebError extends Error {
|
|
1324
|
+
constructor(message, code, metadata) {
|
|
1325
|
+
super(message);
|
|
1326
|
+
this.code = code;
|
|
1327
|
+
this.metadata = metadata;
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
exports.GrpcWebError = GrpcWebError;
|
|
1388
1331
|
//# sourceMappingURL=OS_snapshot.js.map
|