@lazycatcloud/sdk 0.1.23 → 0.1.26
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 +22 -39
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +10 -4
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +25 -37
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +14 -8
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +29 -41
- 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 +23 -37
- 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 +22 -39
- 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 +25 -39
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +18 -12
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +33 -47
- package/dist/common/users.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts +1644 -1644
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +78 -95
- 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 -2
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +6 -29
- package/dist/google/protobuf/timestamp.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 +47 -53
- 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 +15 -29
- 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 +23 -37
- 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 +15 -29
- 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 +44 -59
- 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 +42 -59
- 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 +22 -39
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +35 -29
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +61 -69
- 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 +30 -47
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/package_manager.d.ts +142 -19
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +379 -55
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +68 -32
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +162 -89
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +31 -99
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +61 -233
- 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/snapd.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapd.d.ts","sourceRoot":"","sources":["../../sys/snapd.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"snapd.d.ts","sourceRoot":"","sources":["../../sys/snapd.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,oBAAY,iBAAiB;IAC3B,qCAAqC;IACrC,OAAO,IAAI;IACX,0CAA0C;IAC1C,QAAQ,IAAI;IACZ,6BAA6B;IAC7B,QAAQ,IAAI;IACZ,8BAA8B;IAC9B,aAAa,IAAI;IACjB,YAAY,KAAK;CAClB;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,GAAG,GAAG,iBAAiB,CAmBxE;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAczE;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAA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c = 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;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
4
|
};
|
|
25
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
6
|
+
exports.GrpcWebError = exports.GrpcWebImpl = exports.SnapdServiceSnapdSnapRestoreDesc = exports.SnapdServiceSnapdSnapDelDesc = exports.SnapdServiceSnapdSnapAddDesc = exports.SnapdServiceSnapdSnapListDesc = exports.SnapdServiceSnapdConfSetDesc = exports.SnapdServiceSnapdConfGetDesc = exports.SnapdServiceSnapdDisableDesc = exports.SnapdServiceSnapdEnableDesc = exports.SnapdServiceDesc = exports.SnapdServiceClientImpl = exports.SnapdSnapRequest = exports.SnapdListSnapResponse = exports.SnapdListSnapRequest = exports.SnapdConfSetRequest = exports.SnapdConf = exports.SnapdTargetRequest = exports.SnapdEnableRequest = exports.snapdAutoStrategyToJSON = exports.snapdAutoStrategyFromJSON = exports.SnapdAutoStrategy = void 0;
|
|
27
7
|
/* eslint-disable */
|
|
28
8
|
const grpc_web_1 = require("@improbable-eng/grpc-web");
|
|
29
9
|
const empty_1 = require("../google/protobuf/empty");
|
|
30
10
|
const browser_headers_1 = require("browser-headers");
|
|
31
11
|
const OS_snapshot_1 = require("./OS_snapshot");
|
|
32
|
-
const
|
|
12
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
33
13
|
var SnapdAutoStrategy;
|
|
34
14
|
(function (SnapdAutoStrategy) {
|
|
35
15
|
/** Default - 修改该配置项时,此值表示不改变当前配置值 */
|
|
@@ -83,7 +63,7 @@ function createBaseSnapdEnableRequest() {
|
|
|
83
63
|
return { TargetId: "", PathList: [] };
|
|
84
64
|
}
|
|
85
65
|
exports.SnapdEnableRequest = {
|
|
86
|
-
encode(message, writer =
|
|
66
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
87
67
|
if (message.TargetId !== "") {
|
|
88
68
|
writer.uint32(10).string(message.TargetId);
|
|
89
69
|
}
|
|
@@ -93,7 +73,7 @@ exports.SnapdEnableRequest = {
|
|
|
93
73
|
return writer;
|
|
94
74
|
},
|
|
95
75
|
decode(input, length) {
|
|
96
|
-
const reader = input instanceof
|
|
76
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
97
77
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
98
78
|
const message = createBaseSnapdEnableRequest();
|
|
99
79
|
while (reader.pos < end) {
|
|
@@ -143,14 +123,14 @@ function createBaseSnapdTargetRequest() {
|
|
|
143
123
|
return { TargetId: "" };
|
|
144
124
|
}
|
|
145
125
|
exports.SnapdTargetRequest = {
|
|
146
|
-
encode(message, writer =
|
|
126
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
147
127
|
if (message.TargetId !== "") {
|
|
148
128
|
writer.uint32(10).string(message.TargetId);
|
|
149
129
|
}
|
|
150
130
|
return writer;
|
|
151
131
|
},
|
|
152
132
|
decode(input, length) {
|
|
153
|
-
const reader = input instanceof
|
|
133
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
154
134
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
155
135
|
const message = createBaseSnapdTargetRequest();
|
|
156
136
|
while (reader.pos < end) {
|
|
@@ -183,122 +163,16 @@ exports.SnapdTargetRequest = {
|
|
|
183
163
|
return message;
|
|
184
164
|
},
|
|
185
165
|
};
|
|
186
|
-
function createBaseSnapdListPathRequest() {
|
|
187
|
-
return { TargetId: "", BackupPool: "" };
|
|
188
|
-
}
|
|
189
|
-
exports.SnapdListPathRequest = {
|
|
190
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
191
|
-
if (message.TargetId !== "") {
|
|
192
|
-
writer.uint32(10).string(message.TargetId);
|
|
193
|
-
}
|
|
194
|
-
if (message.BackupPool !== "") {
|
|
195
|
-
writer.uint32(18).string(message.BackupPool);
|
|
196
|
-
}
|
|
197
|
-
return writer;
|
|
198
|
-
},
|
|
199
|
-
decode(input, length) {
|
|
200
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
201
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
202
|
-
const message = createBaseSnapdListPathRequest();
|
|
203
|
-
while (reader.pos < end) {
|
|
204
|
-
const tag = reader.uint32();
|
|
205
|
-
switch (tag >>> 3) {
|
|
206
|
-
case 1:
|
|
207
|
-
message.TargetId = reader.string();
|
|
208
|
-
break;
|
|
209
|
-
case 2:
|
|
210
|
-
message.BackupPool = reader.string();
|
|
211
|
-
break;
|
|
212
|
-
default:
|
|
213
|
-
reader.skipType(tag & 7);
|
|
214
|
-
break;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
return message;
|
|
218
|
-
},
|
|
219
|
-
fromJSON(object) {
|
|
220
|
-
return {
|
|
221
|
-
TargetId: isSet(object.TargetId) ? String(object.TargetId) : "",
|
|
222
|
-
BackupPool: isSet(object.BackupPool) ? String(object.BackupPool) : "",
|
|
223
|
-
};
|
|
224
|
-
},
|
|
225
|
-
toJSON(message) {
|
|
226
|
-
const obj = {};
|
|
227
|
-
message.TargetId !== undefined && (obj.TargetId = message.TargetId);
|
|
228
|
-
message.BackupPool !== undefined && (obj.BackupPool = message.BackupPool);
|
|
229
|
-
return obj;
|
|
230
|
-
},
|
|
231
|
-
fromPartial(object) {
|
|
232
|
-
var _a, _b;
|
|
233
|
-
const message = createBaseSnapdListPathRequest();
|
|
234
|
-
message.TargetId = (_a = object.TargetId) !== null && _a !== void 0 ? _a : "";
|
|
235
|
-
message.BackupPool = (_b = object.BackupPool) !== null && _b !== void 0 ? _b : "";
|
|
236
|
-
return message;
|
|
237
|
-
},
|
|
238
|
-
};
|
|
239
|
-
function createBaseSnapdListPathResponse() {
|
|
240
|
-
return { PathList: [] };
|
|
241
|
-
}
|
|
242
|
-
exports.SnapdListPathResponse = {
|
|
243
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
244
|
-
for (const v of message.PathList) {
|
|
245
|
-
OS_snapshot_1.SnapshotDatasetDesc.encode(v, writer.uint32(10).fork()).ldelim();
|
|
246
|
-
}
|
|
247
|
-
return writer;
|
|
248
|
-
},
|
|
249
|
-
decode(input, length) {
|
|
250
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
251
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
252
|
-
const message = createBaseSnapdListPathResponse();
|
|
253
|
-
while (reader.pos < end) {
|
|
254
|
-
const tag = reader.uint32();
|
|
255
|
-
switch (tag >>> 3) {
|
|
256
|
-
case 1:
|
|
257
|
-
message.PathList.push(OS_snapshot_1.SnapshotDatasetDesc.decode(reader, reader.uint32()));
|
|
258
|
-
break;
|
|
259
|
-
default:
|
|
260
|
-
reader.skipType(tag & 7);
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
return message;
|
|
265
|
-
},
|
|
266
|
-
fromJSON(object) {
|
|
267
|
-
return {
|
|
268
|
-
PathList: Array.isArray(object === null || object === void 0 ? void 0 : object.PathList)
|
|
269
|
-
? object.PathList.map((e) => OS_snapshot_1.SnapshotDatasetDesc.fromJSON(e))
|
|
270
|
-
: [],
|
|
271
|
-
};
|
|
272
|
-
},
|
|
273
|
-
toJSON(message) {
|
|
274
|
-
const obj = {};
|
|
275
|
-
if (message.PathList) {
|
|
276
|
-
obj.PathList = message.PathList.map((e) => e ? OS_snapshot_1.SnapshotDatasetDesc.toJSON(e) : undefined);
|
|
277
|
-
}
|
|
278
|
-
else {
|
|
279
|
-
obj.PathList = [];
|
|
280
|
-
}
|
|
281
|
-
return obj;
|
|
282
|
-
},
|
|
283
|
-
fromPartial(object) {
|
|
284
|
-
var _a;
|
|
285
|
-
const message = createBaseSnapdListPathResponse();
|
|
286
|
-
message.PathList =
|
|
287
|
-
((_a = object.PathList) === null || _a === void 0 ? void 0 : _a.map((e) => OS_snapshot_1.SnapshotDatasetDesc.fromPartial(e))) || [];
|
|
288
|
-
return message;
|
|
289
|
-
},
|
|
290
|
-
};
|
|
291
166
|
function createBaseSnapdConf() {
|
|
292
167
|
return {
|
|
293
168
|
AutoStrategy: 0,
|
|
294
169
|
AutoSnapInterval: 0,
|
|
295
170
|
AutoSnapLifetime: 0,
|
|
296
|
-
AutoBackupInterval: 0,
|
|
297
171
|
AutoBackupLifetime: 0,
|
|
298
172
|
};
|
|
299
173
|
}
|
|
300
174
|
exports.SnapdConf = {
|
|
301
|
-
encode(message, writer =
|
|
175
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
302
176
|
if (message.AutoStrategy !== 0) {
|
|
303
177
|
writer.uint32(8).int32(message.AutoStrategy);
|
|
304
178
|
}
|
|
@@ -308,16 +182,13 @@ exports.SnapdConf = {
|
|
|
308
182
|
if (message.AutoSnapLifetime !== 0) {
|
|
309
183
|
writer.uint32(24).uint32(message.AutoSnapLifetime);
|
|
310
184
|
}
|
|
311
|
-
if (message.AutoBackupInterval !== 0) {
|
|
312
|
-
writer.uint32(32).uint32(message.AutoBackupInterval);
|
|
313
|
-
}
|
|
314
185
|
if (message.AutoBackupLifetime !== 0) {
|
|
315
|
-
writer.uint32(
|
|
186
|
+
writer.uint32(32).uint32(message.AutoBackupLifetime);
|
|
316
187
|
}
|
|
317
188
|
return writer;
|
|
318
189
|
},
|
|
319
190
|
decode(input, length) {
|
|
320
|
-
const reader = input instanceof
|
|
191
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
321
192
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
322
193
|
const message = createBaseSnapdConf();
|
|
323
194
|
while (reader.pos < end) {
|
|
@@ -333,9 +204,6 @@ exports.SnapdConf = {
|
|
|
333
204
|
message.AutoSnapLifetime = reader.uint32();
|
|
334
205
|
break;
|
|
335
206
|
case 4:
|
|
336
|
-
message.AutoBackupInterval = reader.uint32();
|
|
337
|
-
break;
|
|
338
|
-
case 5:
|
|
339
207
|
message.AutoBackupLifetime = reader.uint32();
|
|
340
208
|
break;
|
|
341
209
|
default:
|
|
@@ -356,9 +224,6 @@ exports.SnapdConf = {
|
|
|
356
224
|
AutoSnapLifetime: isSet(object.AutoSnapLifetime)
|
|
357
225
|
? Number(object.AutoSnapLifetime)
|
|
358
226
|
: 0,
|
|
359
|
-
AutoBackupInterval: isSet(object.AutoBackupInterval)
|
|
360
|
-
? Number(object.AutoBackupInterval)
|
|
361
|
-
: 0,
|
|
362
227
|
AutoBackupLifetime: isSet(object.AutoBackupLifetime)
|
|
363
228
|
? Number(object.AutoBackupLifetime)
|
|
364
229
|
: 0,
|
|
@@ -372,20 +237,17 @@ exports.SnapdConf = {
|
|
|
372
237
|
(obj.AutoSnapInterval = Math.round(message.AutoSnapInterval));
|
|
373
238
|
message.AutoSnapLifetime !== undefined &&
|
|
374
239
|
(obj.AutoSnapLifetime = Math.round(message.AutoSnapLifetime));
|
|
375
|
-
message.AutoBackupInterval !== undefined &&
|
|
376
|
-
(obj.AutoBackupInterval = Math.round(message.AutoBackupInterval));
|
|
377
240
|
message.AutoBackupLifetime !== undefined &&
|
|
378
241
|
(obj.AutoBackupLifetime = Math.round(message.AutoBackupLifetime));
|
|
379
242
|
return obj;
|
|
380
243
|
},
|
|
381
244
|
fromPartial(object) {
|
|
382
|
-
var _a, _b, _c, _d
|
|
245
|
+
var _a, _b, _c, _d;
|
|
383
246
|
const message = createBaseSnapdConf();
|
|
384
247
|
message.AutoStrategy = (_a = object.AutoStrategy) !== null && _a !== void 0 ? _a : 0;
|
|
385
248
|
message.AutoSnapInterval = (_b = object.AutoSnapInterval) !== null && _b !== void 0 ? _b : 0;
|
|
386
249
|
message.AutoSnapLifetime = (_c = object.AutoSnapLifetime) !== null && _c !== void 0 ? _c : 0;
|
|
387
|
-
message.
|
|
388
|
-
message.AutoBackupLifetime = (_e = object.AutoBackupLifetime) !== null && _e !== void 0 ? _e : 0;
|
|
250
|
+
message.AutoBackupLifetime = (_d = object.AutoBackupLifetime) !== null && _d !== void 0 ? _d : 0;
|
|
389
251
|
return message;
|
|
390
252
|
},
|
|
391
253
|
};
|
|
@@ -393,7 +255,7 @@ function createBaseSnapdConfSetRequest() {
|
|
|
393
255
|
return { TargetId: "", Config: undefined };
|
|
394
256
|
}
|
|
395
257
|
exports.SnapdConfSetRequest = {
|
|
396
|
-
encode(message, writer =
|
|
258
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
397
259
|
if (message.TargetId !== "") {
|
|
398
260
|
writer.uint32(10).string(message.TargetId);
|
|
399
261
|
}
|
|
@@ -403,7 +265,7 @@ exports.SnapdConfSetRequest = {
|
|
|
403
265
|
return writer;
|
|
404
266
|
},
|
|
405
267
|
decode(input, length) {
|
|
406
|
-
const reader = input instanceof
|
|
268
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
407
269
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
408
270
|
const message = createBaseSnapdConfSetRequest();
|
|
409
271
|
while (reader.pos < end) {
|
|
@@ -451,23 +313,20 @@ exports.SnapdConfSetRequest = {
|
|
|
451
313
|
},
|
|
452
314
|
};
|
|
453
315
|
function createBaseSnapdListSnapRequest() {
|
|
454
|
-
return { TargetId: "",
|
|
316
|
+
return { TargetId: "", BackupPool: "" };
|
|
455
317
|
}
|
|
456
318
|
exports.SnapdListSnapRequest = {
|
|
457
|
-
encode(message, writer =
|
|
319
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
458
320
|
if (message.TargetId !== "") {
|
|
459
321
|
writer.uint32(10).string(message.TargetId);
|
|
460
322
|
}
|
|
461
|
-
if (message.Path !== "") {
|
|
462
|
-
writer.uint32(18).string(message.Path);
|
|
463
|
-
}
|
|
464
323
|
if (message.BackupPool !== "") {
|
|
465
|
-
writer.uint32(
|
|
324
|
+
writer.uint32(18).string(message.BackupPool);
|
|
466
325
|
}
|
|
467
326
|
return writer;
|
|
468
327
|
},
|
|
469
328
|
decode(input, length) {
|
|
470
|
-
const reader = input instanceof
|
|
329
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
471
330
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
472
331
|
const message = createBaseSnapdListSnapRequest();
|
|
473
332
|
while (reader.pos < end) {
|
|
@@ -477,9 +336,6 @@ exports.SnapdListSnapRequest = {
|
|
|
477
336
|
message.TargetId = reader.string();
|
|
478
337
|
break;
|
|
479
338
|
case 2:
|
|
480
|
-
message.Path = reader.string();
|
|
481
|
-
break;
|
|
482
|
-
case 3:
|
|
483
339
|
message.BackupPool = reader.string();
|
|
484
340
|
break;
|
|
485
341
|
default:
|
|
@@ -492,23 +348,20 @@ exports.SnapdListSnapRequest = {
|
|
|
492
348
|
fromJSON(object) {
|
|
493
349
|
return {
|
|
494
350
|
TargetId: isSet(object.TargetId) ? String(object.TargetId) : "",
|
|
495
|
-
Path: isSet(object.Path) ? String(object.Path) : "",
|
|
496
351
|
BackupPool: isSet(object.BackupPool) ? String(object.BackupPool) : "",
|
|
497
352
|
};
|
|
498
353
|
},
|
|
499
354
|
toJSON(message) {
|
|
500
355
|
const obj = {};
|
|
501
356
|
message.TargetId !== undefined && (obj.TargetId = message.TargetId);
|
|
502
|
-
message.Path !== undefined && (obj.Path = message.Path);
|
|
503
357
|
message.BackupPool !== undefined && (obj.BackupPool = message.BackupPool);
|
|
504
358
|
return obj;
|
|
505
359
|
},
|
|
506
360
|
fromPartial(object) {
|
|
507
|
-
var _a, _b
|
|
361
|
+
var _a, _b;
|
|
508
362
|
const message = createBaseSnapdListSnapRequest();
|
|
509
363
|
message.TargetId = (_a = object.TargetId) !== null && _a !== void 0 ? _a : "";
|
|
510
|
-
message.
|
|
511
|
-
message.BackupPool = (_c = object.BackupPool) !== null && _c !== void 0 ? _c : "";
|
|
364
|
+
message.BackupPool = (_b = object.BackupPool) !== null && _b !== void 0 ? _b : "";
|
|
512
365
|
return message;
|
|
513
366
|
},
|
|
514
367
|
};
|
|
@@ -516,14 +369,14 @@ function createBaseSnapdListSnapResponse() {
|
|
|
516
369
|
return { SnapshotList: [] };
|
|
517
370
|
}
|
|
518
371
|
exports.SnapdListSnapResponse = {
|
|
519
|
-
encode(message, writer =
|
|
372
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
520
373
|
for (const v of message.SnapshotList) {
|
|
521
374
|
OS_snapshot_1.SnapshotDesc.encode(v, writer.uint32(10).fork()).ldelim();
|
|
522
375
|
}
|
|
523
376
|
return writer;
|
|
524
377
|
},
|
|
525
378
|
decode(input, length) {
|
|
526
|
-
const reader = input instanceof
|
|
379
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
527
380
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
528
381
|
const message = createBaseSnapdListSnapResponse();
|
|
529
382
|
while (reader.pos < end) {
|
|
@@ -565,26 +418,23 @@ exports.SnapdListSnapResponse = {
|
|
|
565
418
|
},
|
|
566
419
|
};
|
|
567
420
|
function createBaseSnapdSnapRequest() {
|
|
568
|
-
return { TargetId: "",
|
|
421
|
+
return { TargetId: "", BackupPool: "", SnapName: "" };
|
|
569
422
|
}
|
|
570
423
|
exports.SnapdSnapRequest = {
|
|
571
|
-
encode(message, writer =
|
|
424
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
572
425
|
if (message.TargetId !== "") {
|
|
573
426
|
writer.uint32(10).string(message.TargetId);
|
|
574
427
|
}
|
|
575
|
-
if (message.Path !== "") {
|
|
576
|
-
writer.uint32(18).string(message.Path);
|
|
577
|
-
}
|
|
578
428
|
if (message.BackupPool !== "") {
|
|
579
|
-
writer.uint32(
|
|
429
|
+
writer.uint32(18).string(message.BackupPool);
|
|
580
430
|
}
|
|
581
431
|
if (message.SnapName !== "") {
|
|
582
|
-
writer.uint32(
|
|
432
|
+
writer.uint32(26).string(message.SnapName);
|
|
583
433
|
}
|
|
584
434
|
return writer;
|
|
585
435
|
},
|
|
586
436
|
decode(input, length) {
|
|
587
|
-
const reader = input instanceof
|
|
437
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
588
438
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
589
439
|
const message = createBaseSnapdSnapRequest();
|
|
590
440
|
while (reader.pos < end) {
|
|
@@ -594,12 +444,9 @@ exports.SnapdSnapRequest = {
|
|
|
594
444
|
message.TargetId = reader.string();
|
|
595
445
|
break;
|
|
596
446
|
case 2:
|
|
597
|
-
message.Path = reader.string();
|
|
598
|
-
break;
|
|
599
|
-
case 3:
|
|
600
447
|
message.BackupPool = reader.string();
|
|
601
448
|
break;
|
|
602
|
-
case
|
|
449
|
+
case 3:
|
|
603
450
|
message.SnapName = reader.string();
|
|
604
451
|
break;
|
|
605
452
|
default:
|
|
@@ -612,7 +459,6 @@ exports.SnapdSnapRequest = {
|
|
|
612
459
|
fromJSON(object) {
|
|
613
460
|
return {
|
|
614
461
|
TargetId: isSet(object.TargetId) ? String(object.TargetId) : "",
|
|
615
|
-
Path: isSet(object.Path) ? String(object.Path) : "",
|
|
616
462
|
BackupPool: isSet(object.BackupPool) ? String(object.BackupPool) : "",
|
|
617
463
|
SnapName: isSet(object.SnapName) ? String(object.SnapName) : "",
|
|
618
464
|
};
|
|
@@ -620,18 +466,16 @@ exports.SnapdSnapRequest = {
|
|
|
620
466
|
toJSON(message) {
|
|
621
467
|
const obj = {};
|
|
622
468
|
message.TargetId !== undefined && (obj.TargetId = message.TargetId);
|
|
623
|
-
message.Path !== undefined && (obj.Path = message.Path);
|
|
624
469
|
message.BackupPool !== undefined && (obj.BackupPool = message.BackupPool);
|
|
625
470
|
message.SnapName !== undefined && (obj.SnapName = message.SnapName);
|
|
626
471
|
return obj;
|
|
627
472
|
},
|
|
628
473
|
fromPartial(object) {
|
|
629
|
-
var _a, _b, _c
|
|
474
|
+
var _a, _b, _c;
|
|
630
475
|
const message = createBaseSnapdSnapRequest();
|
|
631
476
|
message.TargetId = (_a = object.TargetId) !== null && _a !== void 0 ? _a : "";
|
|
632
|
-
message.
|
|
633
|
-
message.
|
|
634
|
-
message.SnapName = (_d = object.SnapName) !== null && _d !== void 0 ? _d : "";
|
|
477
|
+
message.BackupPool = (_b = object.BackupPool) !== null && _b !== void 0 ? _b : "";
|
|
478
|
+
message.SnapName = (_c = object.SnapName) !== null && _c !== void 0 ? _c : "";
|
|
635
479
|
return message;
|
|
636
480
|
},
|
|
637
481
|
};
|
|
@@ -640,13 +484,12 @@ class SnapdServiceClientImpl {
|
|
|
640
484
|
this.rpc = rpc;
|
|
641
485
|
this.SnapdEnable = this.SnapdEnable.bind(this);
|
|
642
486
|
this.SnapdDisable = this.SnapdDisable.bind(this);
|
|
643
|
-
this.SnapdListPath = this.SnapdListPath.bind(this);
|
|
644
487
|
this.SnapdConfGet = this.SnapdConfGet.bind(this);
|
|
645
488
|
this.SnapdConfSet = this.SnapdConfSet.bind(this);
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
648
|
-
this.
|
|
649
|
-
this.
|
|
489
|
+
this.SnapdSnapList = this.SnapdSnapList.bind(this);
|
|
490
|
+
this.SnapdSnapAdd = this.SnapdSnapAdd.bind(this);
|
|
491
|
+
this.SnapdSnapDel = this.SnapdSnapDel.bind(this);
|
|
492
|
+
this.SnapdSnapRestore = this.SnapdSnapRestore.bind(this);
|
|
650
493
|
}
|
|
651
494
|
SnapdEnable(request, metadata) {
|
|
652
495
|
return this.rpc.unary(exports.SnapdServiceSnapdEnableDesc, exports.SnapdEnableRequest.fromPartial(request), metadata);
|
|
@@ -654,26 +497,23 @@ class SnapdServiceClientImpl {
|
|
|
654
497
|
SnapdDisable(request, metadata) {
|
|
655
498
|
return this.rpc.unary(exports.SnapdServiceSnapdDisableDesc, exports.SnapdTargetRequest.fromPartial(request), metadata);
|
|
656
499
|
}
|
|
657
|
-
SnapdListPath(request, metadata) {
|
|
658
|
-
return this.rpc.unary(exports.SnapdServiceSnapdListPathDesc, exports.SnapdListPathRequest.fromPartial(request), metadata);
|
|
659
|
-
}
|
|
660
500
|
SnapdConfGet(request, metadata) {
|
|
661
501
|
return this.rpc.unary(exports.SnapdServiceSnapdConfGetDesc, exports.SnapdTargetRequest.fromPartial(request), metadata);
|
|
662
502
|
}
|
|
663
503
|
SnapdConfSet(request, metadata) {
|
|
664
504
|
return this.rpc.unary(exports.SnapdServiceSnapdConfSetDesc, exports.SnapdConfSetRequest.fromPartial(request), metadata);
|
|
665
505
|
}
|
|
666
|
-
|
|
667
|
-
return this.rpc.unary(exports.
|
|
506
|
+
SnapdSnapList(request, metadata) {
|
|
507
|
+
return this.rpc.unary(exports.SnapdServiceSnapdSnapListDesc, exports.SnapdListSnapRequest.fromPartial(request), metadata);
|
|
668
508
|
}
|
|
669
|
-
|
|
670
|
-
return this.rpc.unary(exports.
|
|
509
|
+
SnapdSnapAdd(request, metadata) {
|
|
510
|
+
return this.rpc.unary(exports.SnapdServiceSnapdSnapAddDesc, exports.SnapdSnapRequest.fromPartial(request), metadata);
|
|
671
511
|
}
|
|
672
|
-
|
|
673
|
-
return this.rpc.unary(exports.
|
|
512
|
+
SnapdSnapDel(request, metadata) {
|
|
513
|
+
return this.rpc.unary(exports.SnapdServiceSnapdSnapDelDesc, exports.SnapdSnapRequest.fromPartial(request), metadata);
|
|
674
514
|
}
|
|
675
|
-
|
|
676
|
-
return this.rpc.unary(exports.
|
|
515
|
+
SnapdSnapRestore(request, metadata) {
|
|
516
|
+
return this.rpc.unary(exports.SnapdServiceSnapdSnapRestoreDesc, exports.SnapdSnapRequest.fromPartial(request), metadata);
|
|
677
517
|
}
|
|
678
518
|
}
|
|
679
519
|
exports.SnapdServiceClientImpl = SnapdServiceClientImpl;
|
|
@@ -716,24 +556,6 @@ exports.SnapdServiceSnapdDisableDesc = {
|
|
|
716
556
|
},
|
|
717
557
|
},
|
|
718
558
|
};
|
|
719
|
-
exports.SnapdServiceSnapdListPathDesc = {
|
|
720
|
-
methodName: "SnapdListPath",
|
|
721
|
-
service: exports.SnapdServiceDesc,
|
|
722
|
-
requestStream: false,
|
|
723
|
-
responseStream: false,
|
|
724
|
-
requestType: {
|
|
725
|
-
serializeBinary() {
|
|
726
|
-
return exports.SnapdListPathRequest.encode(this).finish();
|
|
727
|
-
},
|
|
728
|
-
},
|
|
729
|
-
responseType: {
|
|
730
|
-
deserializeBinary(data) {
|
|
731
|
-
return Object.assign(Object.assign({}, exports.SnapdListPathResponse.decode(data)), { toObject() {
|
|
732
|
-
return this;
|
|
733
|
-
} });
|
|
734
|
-
},
|
|
735
|
-
},
|
|
736
|
-
};
|
|
737
559
|
exports.SnapdServiceSnapdConfGetDesc = {
|
|
738
560
|
methodName: "SnapdConfGet",
|
|
739
561
|
service: exports.SnapdServiceDesc,
|
|
@@ -770,8 +592,8 @@ exports.SnapdServiceSnapdConfSetDesc = {
|
|
|
770
592
|
},
|
|
771
593
|
},
|
|
772
594
|
};
|
|
773
|
-
exports.
|
|
774
|
-
methodName: "
|
|
595
|
+
exports.SnapdServiceSnapdSnapListDesc = {
|
|
596
|
+
methodName: "SnapdSnapList",
|
|
775
597
|
service: exports.SnapdServiceDesc,
|
|
776
598
|
requestStream: false,
|
|
777
599
|
responseStream: false,
|
|
@@ -788,8 +610,8 @@ exports.SnapdServiceSnapdListSnapDesc = {
|
|
|
788
610
|
},
|
|
789
611
|
},
|
|
790
612
|
};
|
|
791
|
-
exports.
|
|
792
|
-
methodName: "
|
|
613
|
+
exports.SnapdServiceSnapdSnapAddDesc = {
|
|
614
|
+
methodName: "SnapdSnapAdd",
|
|
793
615
|
service: exports.SnapdServiceDesc,
|
|
794
616
|
requestStream: false,
|
|
795
617
|
responseStream: false,
|
|
@@ -806,8 +628,8 @@ exports.SnapdServiceSnapdTakeSnapDesc = {
|
|
|
806
628
|
},
|
|
807
629
|
},
|
|
808
630
|
};
|
|
809
|
-
exports.
|
|
810
|
-
methodName: "
|
|
631
|
+
exports.SnapdServiceSnapdSnapDelDesc = {
|
|
632
|
+
methodName: "SnapdSnapDel",
|
|
811
633
|
service: exports.SnapdServiceDesc,
|
|
812
634
|
requestStream: false,
|
|
813
635
|
responseStream: false,
|
|
@@ -824,8 +646,8 @@ exports.SnapdServiceSnapdDelSnapDesc = {
|
|
|
824
646
|
},
|
|
825
647
|
},
|
|
826
648
|
};
|
|
827
|
-
exports.
|
|
828
|
-
methodName: "
|
|
649
|
+
exports.SnapdServiceSnapdSnapRestoreDesc = {
|
|
650
|
+
methodName: "SnapdSnapRestore",
|
|
829
651
|
service: exports.SnapdServiceDesc,
|
|
830
652
|
requestStream: false,
|
|
831
653
|
responseStream: false,
|
|
@@ -865,9 +687,7 @@ class GrpcWebImpl {
|
|
|
865
687
|
resolve(response.message);
|
|
866
688
|
}
|
|
867
689
|
else {
|
|
868
|
-
const err = new
|
|
869
|
-
err.code = response.status;
|
|
870
|
-
err.metadata = response.trailers;
|
|
690
|
+
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
871
691
|
reject(err);
|
|
872
692
|
}
|
|
873
693
|
},
|
|
@@ -879,4 +699,12 @@ exports.GrpcWebImpl = GrpcWebImpl;
|
|
|
879
699
|
function isSet(value) {
|
|
880
700
|
return value !== null && value !== undefined;
|
|
881
701
|
}
|
|
702
|
+
class GrpcWebError extends Error {
|
|
703
|
+
constructor(message, code, metadata) {
|
|
704
|
+
super(message);
|
|
705
|
+
this.code = code;
|
|
706
|
+
this.metadata = metadata;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
exports.GrpcWebError = GrpcWebError;
|
|
882
710
|
//# sourceMappingURL=snapd.js.map
|