@lazycatcloud/sdk 0.1.165 → 0.1.167
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/appshell.d.ts +103 -0
- package/dist/common/appshell.d.ts.map +1 -0
- package/dist/common/appshell.js +265 -0
- package/dist/common/appshell.js.map +1 -0
- package/dist/common/box.d.ts +55 -13
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +106 -73
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +40 -12
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +106 -55
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +103 -16
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +141 -83
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/file_handler.d.ts +70 -14
- package/dist/common/file_handler.d.ts.map +1 -1
- package/dist/common/file_handler.js +108 -51
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +851 -53
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +509 -400
- package/dist/common/filetrans.js.map +1 -1
- package/dist/common/gateway.d.ts +61 -15
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +140 -76
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/media_meta.d.ts +28 -9
- package/dist/common/media_meta.d.ts.map +1 -1
- package/dist/common/media_meta.js +66 -34
- package/dist/common/media_meta.js.map +1 -1
- package/dist/common/message.d.ts +21 -2
- package/dist/common/message.d.ts.map +1 -1
- package/dist/common/message.js +55 -37
- package/dist/common/message.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +143 -20
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +162 -95
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts +54 -15
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +130 -80
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +103 -25
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +240 -112
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts +121 -20
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +207 -119
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/extentions/app_common.js +7 -1
- package/dist/extentions/app_common.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts +54951 -4489
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +914 -663
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.d.ts +2 -1
- package/dist/google/protobuf/empty.d.ts.map +1 -1
- package/dist/google/protobuf/empty.js +8 -4
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts +9 -4
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +27 -14
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/grpcweb.d.ts +1 -1
- package/dist/grpcweb.d.ts.map +1 -1
- package/dist/index.d.ts +5 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -45
- package/dist/index.js.map +1 -1
- package/dist/lanforward/lanforward.d.ts +22 -9
- package/dist/lanforward/lanforward.d.ts.map +1 -1
- package/dist/lanforward/lanforward.js +60 -28
- package/dist/lanforward/lanforward.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts +36 -13
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +92 -62
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/config.d.ts +25 -8
- package/dist/localdevice/config.d.ts.map +1 -1
- package/dist/localdevice/config.js +59 -25
- package/dist/localdevice/config.js.map +1 -1
- package/dist/localdevice/device.d.ts +19 -7
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +48 -21
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +69 -19
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +149 -74
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/local-launch.d.ts +70 -18
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +179 -99
- package/dist/localdevice/local-launch.js.map +1 -1
- package/dist/localdevice/network.d.ts +15 -7
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +39 -16
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts +62 -17
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +129 -89
- package/dist/localdevice/permission.js.map +1 -1
- package/dist/localdevice/photo.d.ts +193 -29
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +371 -267
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/ssdp/ssdp.d.ts +28 -9
- package/dist/ssdp/ssdp.d.ts.map +1 -1
- package/dist/ssdp/ssdp.js +71 -28
- package/dist/ssdp/ssdp.js.map +1 -1
- package/dist/sys/OS_daemon.d.ts +29 -11
- package/dist/sys/OS_daemon.d.ts.map +1 -1
- package/dist/sys/OS_daemon.js +68 -36
- package/dist/sys/OS_daemon.js.map +1 -1
- package/dist/sys/OS_snapshot.d.ts +181 -33
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +331 -207
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +48 -13
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +132 -90
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/box-status.d.ts +209 -17
- package/dist/sys/box-status.d.ts.map +1 -1
- package/dist/sys/box-status.js +186 -151
- package/dist/sys/box-status.js.map +1 -1
- package/dist/sys/btrfs.d.ts +49 -15
- package/dist/sys/btrfs.d.ts.map +1 -1
- package/dist/sys/btrfs.js +103 -61
- package/dist/sys/btrfs.js.map +1 -1
- package/dist/sys/devopt.d.ts +19 -7
- package/dist/sys/devopt.d.ts.map +1 -1
- package/dist/sys/devopt.js +56 -39
- package/dist/sys/devopt.js.map +1 -1
- package/dist/sys/dirmon.d.ts +23 -8
- package/dist/sys/dirmon.d.ts.map +1 -1
- package/dist/sys/dirmon.js +56 -39
- package/dist/sys/dirmon.js.map +1 -1
- package/dist/sys/event.d.ts +92 -20
- package/dist/sys/event.d.ts.map +1 -1
- package/dist/sys/event.js +169 -85
- package/dist/sys/event.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +246 -34
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +287 -181
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +82 -25
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +179 -109
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/network_manager.d.ts +138 -17
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +178 -121
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +313 -43
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +437 -233
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +370 -77
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +717 -435
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +106 -19
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +177 -111
- package/dist/sys/snapd.js.map +1 -1
- package/package.json +1 -1
- package/dist/API.d.ts +0 -24
- package/dist/API.d.ts.map +0 -1
- package/dist/API.js +0 -117
- package/dist/API.js.map +0 -1
- package/dist/google/protobuf/wrappers.d.ts +0 -182
- package/dist/google/protobuf/wrappers.d.ts.map +0 -1
- package/dist/google/protobuf/wrappers.js +0 -458
- package/dist/google/protobuf/wrappers.js.map +0 -1
- package/dist/sys/message.d.ts +0 -186
- package/dist/sys/message.d.ts.map +0 -1
- package/dist/sys/message.js +0 -493
- package/dist/sys/message.js.map +0 -1
- package/dist/sys/portal-server/remote_socks.d.ts +0 -138
- package/dist/sys/portal-server/remote_socks.d.ts.map +0 -1
- package/dist/sys/portal-server/remote_socks.js +0 -436
- package/dist/sys/portal-server/remote_socks.js.map +0 -1
- package/dist/sys/settings.d.ts +0 -68
- package/dist/sys/settings.d.ts.map +0 -1
- package/dist/sys/settings.js +0 -183
- package/dist/sys/settings.js.map +0 -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");
|
|
10
9
|
const browser_headers_1 = require("browser-headers");
|
|
11
10
|
const long_1 = __importDefault(require("long"));
|
|
12
11
|
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";
|
|
@@ -95,32 +95,37 @@ exports.SnapshotBackupPoolRequest = {
|
|
|
95
95
|
return writer;
|
|
96
96
|
},
|
|
97
97
|
decode(input, length) {
|
|
98
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
98
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
99
99
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
100
100
|
const message = createBaseSnapshotBackupPoolRequest();
|
|
101
101
|
while (reader.pos < end) {
|
|
102
102
|
const tag = reader.uint32();
|
|
103
103
|
switch (tag >>> 3) {
|
|
104
104
|
case 1:
|
|
105
|
+
if (tag != 10) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
105
108
|
message.PoolName = reader.string();
|
|
106
|
-
|
|
107
|
-
default:
|
|
108
|
-
reader.skipType(tag & 7);
|
|
109
|
-
break;
|
|
109
|
+
continue;
|
|
110
110
|
}
|
|
111
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
reader.skipType(tag & 7);
|
|
111
115
|
}
|
|
112
116
|
return message;
|
|
113
117
|
},
|
|
114
118
|
fromJSON(object) {
|
|
115
|
-
return {
|
|
116
|
-
PoolName: isSet(object.PoolName) ? String(object.PoolName) : "",
|
|
117
|
-
};
|
|
119
|
+
return { PoolName: isSet(object.PoolName) ? String(object.PoolName) : "" };
|
|
118
120
|
},
|
|
119
121
|
toJSON(message) {
|
|
120
122
|
const obj = {};
|
|
121
123
|
message.PoolName !== undefined && (obj.PoolName = message.PoolName);
|
|
122
124
|
return obj;
|
|
123
125
|
},
|
|
126
|
+
create(base) {
|
|
127
|
+
return exports.SnapshotBackupPoolRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
128
|
+
},
|
|
124
129
|
fromPartial(object) {
|
|
125
130
|
var _a;
|
|
126
131
|
const message = createBaseSnapshotBackupPoolRequest();
|
|
@@ -139,28 +144,28 @@ exports.SnapshotBackupPoolListResponse = {
|
|
|
139
144
|
return writer;
|
|
140
145
|
},
|
|
141
146
|
decode(input, length) {
|
|
142
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
147
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
143
148
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
144
149
|
const message = createBaseSnapshotBackupPoolListResponse();
|
|
145
150
|
while (reader.pos < end) {
|
|
146
151
|
const tag = reader.uint32();
|
|
147
152
|
switch (tag >>> 3) {
|
|
148
153
|
case 1:
|
|
154
|
+
if (tag != 10) {
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
149
157
|
message.PoolNameList.push(reader.string());
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
161
|
+
break;
|
|
154
162
|
}
|
|
163
|
+
reader.skipType(tag & 7);
|
|
155
164
|
}
|
|
156
165
|
return message;
|
|
157
166
|
},
|
|
158
167
|
fromJSON(object) {
|
|
159
|
-
return {
|
|
160
|
-
PoolNameList: Array.isArray(object === null || object === void 0 ? void 0 : object.PoolNameList)
|
|
161
|
-
? object.PoolNameList.map((e) => String(e))
|
|
162
|
-
: [],
|
|
163
|
-
};
|
|
168
|
+
return { PoolNameList: Array.isArray(object === null || object === void 0 ? void 0 : object.PoolNameList) ? object.PoolNameList.map((e) => String(e)) : [] };
|
|
164
169
|
},
|
|
165
170
|
toJSON(message) {
|
|
166
171
|
const obj = {};
|
|
@@ -172,6 +177,9 @@ exports.SnapshotBackupPoolListResponse = {
|
|
|
172
177
|
}
|
|
173
178
|
return obj;
|
|
174
179
|
},
|
|
180
|
+
create(base) {
|
|
181
|
+
return exports.SnapshotBackupPoolListResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
182
|
+
},
|
|
175
183
|
fromPartial(object) {
|
|
176
184
|
var _a;
|
|
177
185
|
const message = createBaseSnapshotBackupPoolListResponse();
|
|
@@ -190,33 +198,37 @@ exports.SnapshotDatasetRequest = {
|
|
|
190
198
|
return writer;
|
|
191
199
|
},
|
|
192
200
|
decode(input, length) {
|
|
193
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
201
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
194
202
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
195
203
|
const message = createBaseSnapshotDatasetRequest();
|
|
196
204
|
while (reader.pos < end) {
|
|
197
205
|
const tag = reader.uint32();
|
|
198
206
|
switch (tag >>> 3) {
|
|
199
207
|
case 1:
|
|
208
|
+
if (tag != 10) {
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
200
211
|
message.DatasetPath = reader.string();
|
|
201
|
-
|
|
202
|
-
default:
|
|
203
|
-
reader.skipType(tag & 7);
|
|
204
|
-
break;
|
|
212
|
+
continue;
|
|
205
213
|
}
|
|
214
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
reader.skipType(tag & 7);
|
|
206
218
|
}
|
|
207
219
|
return message;
|
|
208
220
|
},
|
|
209
221
|
fromJSON(object) {
|
|
210
|
-
return {
|
|
211
|
-
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
212
|
-
};
|
|
222
|
+
return { DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "" };
|
|
213
223
|
},
|
|
214
224
|
toJSON(message) {
|
|
215
225
|
const obj = {};
|
|
216
|
-
message.DatasetPath !== undefined &&
|
|
217
|
-
(obj.DatasetPath = message.DatasetPath);
|
|
226
|
+
message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
|
|
218
227
|
return obj;
|
|
219
228
|
},
|
|
229
|
+
create(base) {
|
|
230
|
+
return exports.SnapshotDatasetRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
231
|
+
},
|
|
220
232
|
fromPartial(object) {
|
|
221
233
|
var _a;
|
|
222
234
|
const message = createBaseSnapshotDatasetRequest();
|
|
@@ -238,22 +250,29 @@ exports.SnapshotDatasetBackupRequest = {
|
|
|
238
250
|
return writer;
|
|
239
251
|
},
|
|
240
252
|
decode(input, length) {
|
|
241
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
253
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
242
254
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
243
255
|
const message = createBaseSnapshotDatasetBackupRequest();
|
|
244
256
|
while (reader.pos < end) {
|
|
245
257
|
const tag = reader.uint32();
|
|
246
258
|
switch (tag >>> 3) {
|
|
247
259
|
case 1:
|
|
260
|
+
if (tag != 10) {
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
248
263
|
message.PoolName = reader.string();
|
|
249
|
-
|
|
264
|
+
continue;
|
|
250
265
|
case 2:
|
|
266
|
+
if (tag != 18) {
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
251
269
|
message.DatasetPath = reader.string();
|
|
252
|
-
|
|
253
|
-
default:
|
|
254
|
-
reader.skipType(tag & 7);
|
|
255
|
-
break;
|
|
270
|
+
continue;
|
|
256
271
|
}
|
|
272
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
reader.skipType(tag & 7);
|
|
257
276
|
}
|
|
258
277
|
return message;
|
|
259
278
|
},
|
|
@@ -266,10 +285,12 @@ exports.SnapshotDatasetBackupRequest = {
|
|
|
266
285
|
toJSON(message) {
|
|
267
286
|
const obj = {};
|
|
268
287
|
message.PoolName !== undefined && (obj.PoolName = message.PoolName);
|
|
269
|
-
message.DatasetPath !== undefined &&
|
|
270
|
-
(obj.DatasetPath = message.DatasetPath);
|
|
288
|
+
message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
|
|
271
289
|
return obj;
|
|
272
290
|
},
|
|
291
|
+
create(base) {
|
|
292
|
+
return exports.SnapshotDatasetBackupRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
293
|
+
},
|
|
273
294
|
fromPartial(object) {
|
|
274
295
|
var _a, _b;
|
|
275
296
|
const message = createBaseSnapshotDatasetBackupRequest();
|
|
@@ -298,28 +319,41 @@ exports.SnapshotDatasetDesc = {
|
|
|
298
319
|
return writer;
|
|
299
320
|
},
|
|
300
321
|
decode(input, length) {
|
|
301
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
322
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
302
323
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
303
324
|
const message = createBaseSnapshotDatasetDesc();
|
|
304
325
|
while (reader.pos < end) {
|
|
305
326
|
const tag = reader.uint32();
|
|
306
327
|
switch (tag >>> 3) {
|
|
307
328
|
case 1:
|
|
329
|
+
if (tag != 10) {
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
308
332
|
message.Path = reader.string();
|
|
309
|
-
|
|
333
|
+
continue;
|
|
310
334
|
case 2:
|
|
335
|
+
if (tag != 16) {
|
|
336
|
+
break;
|
|
337
|
+
}
|
|
311
338
|
message.BytesUsed = longToNumber(reader.uint64());
|
|
312
|
-
|
|
339
|
+
continue;
|
|
313
340
|
case 3:
|
|
341
|
+
if (tag != 24) {
|
|
342
|
+
break;
|
|
343
|
+
}
|
|
314
344
|
message.SnapshotBytesUsed = longToNumber(reader.uint64());
|
|
315
|
-
|
|
345
|
+
continue;
|
|
316
346
|
case 4:
|
|
347
|
+
if (tag != 32) {
|
|
348
|
+
break;
|
|
349
|
+
}
|
|
317
350
|
message.CreatedAt = longToNumber(reader.uint64());
|
|
318
|
-
|
|
319
|
-
default:
|
|
320
|
-
reader.skipType(tag & 7);
|
|
321
|
-
break;
|
|
351
|
+
continue;
|
|
322
352
|
}
|
|
353
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
354
|
+
break;
|
|
355
|
+
}
|
|
356
|
+
reader.skipType(tag & 7);
|
|
323
357
|
}
|
|
324
358
|
return message;
|
|
325
359
|
},
|
|
@@ -327,23 +361,21 @@ exports.SnapshotDatasetDesc = {
|
|
|
327
361
|
return {
|
|
328
362
|
Path: isSet(object.Path) ? String(object.Path) : "",
|
|
329
363
|
BytesUsed: isSet(object.BytesUsed) ? Number(object.BytesUsed) : 0,
|
|
330
|
-
SnapshotBytesUsed: isSet(object.SnapshotBytesUsed)
|
|
331
|
-
? Number(object.SnapshotBytesUsed)
|
|
332
|
-
: 0,
|
|
364
|
+
SnapshotBytesUsed: isSet(object.SnapshotBytesUsed) ? Number(object.SnapshotBytesUsed) : 0,
|
|
333
365
|
CreatedAt: isSet(object.CreatedAt) ? Number(object.CreatedAt) : 0,
|
|
334
366
|
};
|
|
335
367
|
},
|
|
336
368
|
toJSON(message) {
|
|
337
369
|
const obj = {};
|
|
338
370
|
message.Path !== undefined && (obj.Path = message.Path);
|
|
339
|
-
message.BytesUsed !== undefined &&
|
|
340
|
-
|
|
341
|
-
message.
|
|
342
|
-
(obj.SnapshotBytesUsed = Math.round(message.SnapshotBytesUsed));
|
|
343
|
-
message.CreatedAt !== undefined &&
|
|
344
|
-
(obj.CreatedAt = Math.round(message.CreatedAt));
|
|
371
|
+
message.BytesUsed !== undefined && (obj.BytesUsed = Math.round(message.BytesUsed));
|
|
372
|
+
message.SnapshotBytesUsed !== undefined && (obj.SnapshotBytesUsed = Math.round(message.SnapshotBytesUsed));
|
|
373
|
+
message.CreatedAt !== undefined && (obj.CreatedAt = Math.round(message.CreatedAt));
|
|
345
374
|
return obj;
|
|
346
375
|
},
|
|
376
|
+
create(base) {
|
|
377
|
+
return exports.SnapshotDatasetDesc.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
378
|
+
},
|
|
347
379
|
fromPartial(object) {
|
|
348
380
|
var _a, _b, _c, _d;
|
|
349
381
|
const message = createBaseSnapshotDatasetDesc();
|
|
@@ -365,19 +397,23 @@ exports.SnapshotDatasetListResponse = {
|
|
|
365
397
|
return writer;
|
|
366
398
|
},
|
|
367
399
|
decode(input, length) {
|
|
368
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
400
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
369
401
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
370
402
|
const message = createBaseSnapshotDatasetListResponse();
|
|
371
403
|
while (reader.pos < end) {
|
|
372
404
|
const tag = reader.uint32();
|
|
373
405
|
switch (tag >>> 3) {
|
|
374
406
|
case 1:
|
|
407
|
+
if (tag != 10) {
|
|
408
|
+
break;
|
|
409
|
+
}
|
|
375
410
|
message.DatasetList.push(exports.SnapshotDatasetDesc.decode(reader, reader.uint32()));
|
|
376
|
-
|
|
377
|
-
default:
|
|
378
|
-
reader.skipType(tag & 7);
|
|
379
|
-
break;
|
|
411
|
+
continue;
|
|
380
412
|
}
|
|
413
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
414
|
+
break;
|
|
415
|
+
}
|
|
416
|
+
reader.skipType(tag & 7);
|
|
381
417
|
}
|
|
382
418
|
return message;
|
|
383
419
|
},
|
|
@@ -398,11 +434,13 @@ exports.SnapshotDatasetListResponse = {
|
|
|
398
434
|
}
|
|
399
435
|
return obj;
|
|
400
436
|
},
|
|
437
|
+
create(base) {
|
|
438
|
+
return exports.SnapshotDatasetListResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
439
|
+
},
|
|
401
440
|
fromPartial(object) {
|
|
402
441
|
var _a;
|
|
403
442
|
const message = createBaseSnapshotDatasetListResponse();
|
|
404
|
-
message.DatasetList =
|
|
405
|
-
((_a = object.DatasetList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.SnapshotDatasetDesc.fromPartial(e))) || [];
|
|
443
|
+
message.DatasetList = ((_a = object.DatasetList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.SnapshotDatasetDesc.fromPartial(e))) || [];
|
|
406
444
|
return message;
|
|
407
445
|
},
|
|
408
446
|
};
|
|
@@ -420,41 +458,47 @@ exports.SnapshotRequest = {
|
|
|
420
458
|
return writer;
|
|
421
459
|
},
|
|
422
460
|
decode(input, length) {
|
|
423
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
461
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
424
462
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
425
463
|
const message = createBaseSnapshotRequest();
|
|
426
464
|
while (reader.pos < end) {
|
|
427
465
|
const tag = reader.uint32();
|
|
428
466
|
switch (tag >>> 3) {
|
|
429
467
|
case 1:
|
|
468
|
+
if (tag != 10) {
|
|
469
|
+
break;
|
|
470
|
+
}
|
|
430
471
|
message.DatasetPath = reader.string();
|
|
431
|
-
|
|
472
|
+
continue;
|
|
432
473
|
case 2:
|
|
474
|
+
if (tag != 18) {
|
|
475
|
+
break;
|
|
476
|
+
}
|
|
433
477
|
message.SnapshotName = reader.string();
|
|
434
|
-
|
|
435
|
-
default:
|
|
436
|
-
reader.skipType(tag & 7);
|
|
437
|
-
break;
|
|
478
|
+
continue;
|
|
438
479
|
}
|
|
480
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
481
|
+
break;
|
|
482
|
+
}
|
|
483
|
+
reader.skipType(tag & 7);
|
|
439
484
|
}
|
|
440
485
|
return message;
|
|
441
486
|
},
|
|
442
487
|
fromJSON(object) {
|
|
443
488
|
return {
|
|
444
489
|
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
445
|
-
SnapshotName: isSet(object.SnapshotName)
|
|
446
|
-
? String(object.SnapshotName)
|
|
447
|
-
: "",
|
|
490
|
+
SnapshotName: isSet(object.SnapshotName) ? String(object.SnapshotName) : "",
|
|
448
491
|
};
|
|
449
492
|
},
|
|
450
493
|
toJSON(message) {
|
|
451
494
|
const obj = {};
|
|
452
|
-
message.DatasetPath !== undefined &&
|
|
453
|
-
|
|
454
|
-
message.SnapshotName !== undefined &&
|
|
455
|
-
(obj.SnapshotName = message.SnapshotName);
|
|
495
|
+
message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
|
|
496
|
+
message.SnapshotName !== undefined && (obj.SnapshotName = message.SnapshotName);
|
|
456
497
|
return obj;
|
|
457
498
|
},
|
|
499
|
+
create(base) {
|
|
500
|
+
return exports.SnapshotRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
501
|
+
},
|
|
458
502
|
fromPartial(object) {
|
|
459
503
|
var _a, _b;
|
|
460
504
|
const message = createBaseSnapshotRequest();
|
|
@@ -480,25 +524,35 @@ exports.SnapshotDesc = {
|
|
|
480
524
|
return writer;
|
|
481
525
|
},
|
|
482
526
|
decode(input, length) {
|
|
483
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
527
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
484
528
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
485
529
|
const message = createBaseSnapshotDesc();
|
|
486
530
|
while (reader.pos < end) {
|
|
487
531
|
const tag = reader.uint32();
|
|
488
532
|
switch (tag >>> 3) {
|
|
489
533
|
case 1:
|
|
534
|
+
if (tag != 10) {
|
|
535
|
+
break;
|
|
536
|
+
}
|
|
490
537
|
message.Name = reader.string();
|
|
491
|
-
|
|
538
|
+
continue;
|
|
492
539
|
case 2:
|
|
540
|
+
if (tag != 16) {
|
|
541
|
+
break;
|
|
542
|
+
}
|
|
493
543
|
message.BytesUsed = longToNumber(reader.uint64());
|
|
494
|
-
|
|
544
|
+
continue;
|
|
495
545
|
case 3:
|
|
546
|
+
if (tag != 24) {
|
|
547
|
+
break;
|
|
548
|
+
}
|
|
496
549
|
message.CreatedAt = longToNumber(reader.uint64());
|
|
497
|
-
|
|
498
|
-
default:
|
|
499
|
-
reader.skipType(tag & 7);
|
|
500
|
-
break;
|
|
550
|
+
continue;
|
|
501
551
|
}
|
|
552
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
553
|
+
break;
|
|
554
|
+
}
|
|
555
|
+
reader.skipType(tag & 7);
|
|
502
556
|
}
|
|
503
557
|
return message;
|
|
504
558
|
},
|
|
@@ -512,12 +566,13 @@ exports.SnapshotDesc = {
|
|
|
512
566
|
toJSON(message) {
|
|
513
567
|
const obj = {};
|
|
514
568
|
message.Name !== undefined && (obj.Name = message.Name);
|
|
515
|
-
message.BytesUsed !== undefined &&
|
|
516
|
-
|
|
517
|
-
message.CreatedAt !== undefined &&
|
|
518
|
-
(obj.CreatedAt = Math.round(message.CreatedAt));
|
|
569
|
+
message.BytesUsed !== undefined && (obj.BytesUsed = Math.round(message.BytesUsed));
|
|
570
|
+
message.CreatedAt !== undefined && (obj.CreatedAt = Math.round(message.CreatedAt));
|
|
519
571
|
return obj;
|
|
520
572
|
},
|
|
573
|
+
create(base) {
|
|
574
|
+
return exports.SnapshotDesc.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
575
|
+
},
|
|
521
576
|
fromPartial(object) {
|
|
522
577
|
var _a, _b, _c;
|
|
523
578
|
const message = createBaseSnapshotDesc();
|
|
@@ -538,19 +593,23 @@ exports.SnapshotListResponse = {
|
|
|
538
593
|
return writer;
|
|
539
594
|
},
|
|
540
595
|
decode(input, length) {
|
|
541
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
596
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
542
597
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
543
598
|
const message = createBaseSnapshotListResponse();
|
|
544
599
|
while (reader.pos < end) {
|
|
545
600
|
const tag = reader.uint32();
|
|
546
601
|
switch (tag >>> 3) {
|
|
547
602
|
case 1:
|
|
603
|
+
if (tag != 10) {
|
|
604
|
+
break;
|
|
605
|
+
}
|
|
548
606
|
message.SnapshotList.push(exports.SnapshotDesc.decode(reader, reader.uint32()));
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
607
|
+
continue;
|
|
608
|
+
}
|
|
609
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
610
|
+
break;
|
|
553
611
|
}
|
|
612
|
+
reader.skipType(tag & 7);
|
|
554
613
|
}
|
|
555
614
|
return message;
|
|
556
615
|
},
|
|
@@ -571,11 +630,13 @@ exports.SnapshotListResponse = {
|
|
|
571
630
|
}
|
|
572
631
|
return obj;
|
|
573
632
|
},
|
|
633
|
+
create(base) {
|
|
634
|
+
return exports.SnapshotListResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
635
|
+
},
|
|
574
636
|
fromPartial(object) {
|
|
575
637
|
var _a;
|
|
576
638
|
const message = createBaseSnapshotListResponse();
|
|
577
|
-
message.SnapshotList =
|
|
578
|
-
((_a = object.SnapshotList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.SnapshotDesc.fromPartial(e))) || [];
|
|
639
|
+
message.SnapshotList = ((_a = object.SnapshotList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.SnapshotDesc.fromPartial(e))) || [];
|
|
579
640
|
return message;
|
|
580
641
|
},
|
|
581
642
|
};
|
|
@@ -596,25 +657,35 @@ exports.SnapshotBackupRequest = {
|
|
|
596
657
|
return writer;
|
|
597
658
|
},
|
|
598
659
|
decode(input, length) {
|
|
599
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
660
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
600
661
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
601
662
|
const message = createBaseSnapshotBackupRequest();
|
|
602
663
|
while (reader.pos < end) {
|
|
603
664
|
const tag = reader.uint32();
|
|
604
665
|
switch (tag >>> 3) {
|
|
605
666
|
case 1:
|
|
667
|
+
if (tag != 10) {
|
|
668
|
+
break;
|
|
669
|
+
}
|
|
606
670
|
message.PoolName = reader.string();
|
|
607
|
-
|
|
671
|
+
continue;
|
|
608
672
|
case 2:
|
|
673
|
+
if (tag != 18) {
|
|
674
|
+
break;
|
|
675
|
+
}
|
|
609
676
|
message.DatasetPath = reader.string();
|
|
610
|
-
|
|
677
|
+
continue;
|
|
611
678
|
case 3:
|
|
679
|
+
if (tag != 26) {
|
|
680
|
+
break;
|
|
681
|
+
}
|
|
612
682
|
message.SnapshotName = reader.string();
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
683
|
+
continue;
|
|
684
|
+
}
|
|
685
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
686
|
+
break;
|
|
617
687
|
}
|
|
688
|
+
reader.skipType(tag & 7);
|
|
618
689
|
}
|
|
619
690
|
return message;
|
|
620
691
|
},
|
|
@@ -622,20 +693,19 @@ exports.SnapshotBackupRequest = {
|
|
|
622
693
|
return {
|
|
623
694
|
PoolName: isSet(object.PoolName) ? String(object.PoolName) : "",
|
|
624
695
|
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
625
|
-
SnapshotName: isSet(object.SnapshotName)
|
|
626
|
-
? String(object.SnapshotName)
|
|
627
|
-
: "",
|
|
696
|
+
SnapshotName: isSet(object.SnapshotName) ? String(object.SnapshotName) : "",
|
|
628
697
|
};
|
|
629
698
|
},
|
|
630
699
|
toJSON(message) {
|
|
631
700
|
const obj = {};
|
|
632
701
|
message.PoolName !== undefined && (obj.PoolName = message.PoolName);
|
|
633
|
-
message.DatasetPath !== undefined &&
|
|
634
|
-
|
|
635
|
-
message.SnapshotName !== undefined &&
|
|
636
|
-
(obj.SnapshotName = message.SnapshotName);
|
|
702
|
+
message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
|
|
703
|
+
message.SnapshotName !== undefined && (obj.SnapshotName = message.SnapshotName);
|
|
637
704
|
return obj;
|
|
638
705
|
},
|
|
706
|
+
create(base) {
|
|
707
|
+
return exports.SnapshotBackupRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
708
|
+
},
|
|
639
709
|
fromPartial(object) {
|
|
640
710
|
var _a, _b, _c;
|
|
641
711
|
const message = createBaseSnapshotBackupRequest();
|
|
@@ -665,28 +735,41 @@ exports.SnapshotBackupTransferRequest = {
|
|
|
665
735
|
return writer;
|
|
666
736
|
},
|
|
667
737
|
decode(input, length) {
|
|
668
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
738
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
669
739
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
670
740
|
const message = createBaseSnapshotBackupTransferRequest();
|
|
671
741
|
while (reader.pos < end) {
|
|
672
742
|
const tag = reader.uint32();
|
|
673
743
|
switch (tag >>> 3) {
|
|
674
744
|
case 1:
|
|
745
|
+
if (tag != 10) {
|
|
746
|
+
break;
|
|
747
|
+
}
|
|
675
748
|
message.PoolName = reader.string();
|
|
676
|
-
|
|
749
|
+
continue;
|
|
677
750
|
case 2:
|
|
751
|
+
if (tag != 18) {
|
|
752
|
+
break;
|
|
753
|
+
}
|
|
678
754
|
message.DatasetPath = reader.string();
|
|
679
|
-
|
|
755
|
+
continue;
|
|
680
756
|
case 3:
|
|
757
|
+
if (tag != 26) {
|
|
758
|
+
break;
|
|
759
|
+
}
|
|
681
760
|
message.SnapshotName = reader.string();
|
|
682
|
-
|
|
761
|
+
continue;
|
|
683
762
|
case 4:
|
|
763
|
+
if (tag != 32) {
|
|
764
|
+
break;
|
|
765
|
+
}
|
|
684
766
|
message.TransferMode = reader.int32();
|
|
685
|
-
|
|
686
|
-
default:
|
|
687
|
-
reader.skipType(tag & 7);
|
|
688
|
-
break;
|
|
767
|
+
continue;
|
|
689
768
|
}
|
|
769
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
770
|
+
break;
|
|
771
|
+
}
|
|
772
|
+
reader.skipType(tag & 7);
|
|
690
773
|
}
|
|
691
774
|
return message;
|
|
692
775
|
},
|
|
@@ -694,25 +777,21 @@ exports.SnapshotBackupTransferRequest = {
|
|
|
694
777
|
return {
|
|
695
778
|
PoolName: isSet(object.PoolName) ? String(object.PoolName) : "",
|
|
696
779
|
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
697
|
-
SnapshotName: isSet(object.SnapshotName)
|
|
698
|
-
|
|
699
|
-
: "",
|
|
700
|
-
TransferMode: isSet(object.TransferMode)
|
|
701
|
-
? snapshotTransferModeFromJSON(object.TransferMode)
|
|
702
|
-
: 0,
|
|
780
|
+
SnapshotName: isSet(object.SnapshotName) ? String(object.SnapshotName) : "",
|
|
781
|
+
TransferMode: isSet(object.TransferMode) ? snapshotTransferModeFromJSON(object.TransferMode) : 0,
|
|
703
782
|
};
|
|
704
783
|
},
|
|
705
784
|
toJSON(message) {
|
|
706
785
|
const obj = {};
|
|
707
786
|
message.PoolName !== undefined && (obj.PoolName = message.PoolName);
|
|
708
|
-
message.DatasetPath !== undefined &&
|
|
709
|
-
|
|
710
|
-
message.
|
|
711
|
-
(obj.SnapshotName = message.SnapshotName);
|
|
712
|
-
message.TransferMode !== undefined &&
|
|
713
|
-
(obj.TransferMode = snapshotTransferModeToJSON(message.TransferMode));
|
|
787
|
+
message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
|
|
788
|
+
message.SnapshotName !== undefined && (obj.SnapshotName = message.SnapshotName);
|
|
789
|
+
message.TransferMode !== undefined && (obj.TransferMode = snapshotTransferModeToJSON(message.TransferMode));
|
|
714
790
|
return obj;
|
|
715
791
|
},
|
|
792
|
+
create(base) {
|
|
793
|
+
return exports.SnapshotBackupTransferRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
794
|
+
},
|
|
716
795
|
fromPartial(object) {
|
|
717
796
|
var _a, _b, _c, _d;
|
|
718
797
|
const message = createBaseSnapshotBackupTransferRequest();
|
|
@@ -737,22 +816,29 @@ exports.SnapshotBackupTransferResponse = {
|
|
|
737
816
|
return writer;
|
|
738
817
|
},
|
|
739
818
|
decode(input, length) {
|
|
740
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
819
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
741
820
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
742
821
|
const message = createBaseSnapshotBackupTransferResponse();
|
|
743
822
|
while (reader.pos < end) {
|
|
744
823
|
const tag = reader.uint32();
|
|
745
824
|
switch (tag >>> 3) {
|
|
746
825
|
case 1:
|
|
826
|
+
if (tag != 8) {
|
|
827
|
+
break;
|
|
828
|
+
}
|
|
747
829
|
message.BytesSent = longToNumber(reader.uint64());
|
|
748
|
-
|
|
830
|
+
continue;
|
|
749
831
|
case 2:
|
|
832
|
+
if (tag != 16) {
|
|
833
|
+
break;
|
|
834
|
+
}
|
|
750
835
|
message.BytesTotal = longToNumber(reader.uint64());
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
836
|
+
continue;
|
|
837
|
+
}
|
|
838
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
839
|
+
break;
|
|
755
840
|
}
|
|
841
|
+
reader.skipType(tag & 7);
|
|
756
842
|
}
|
|
757
843
|
return message;
|
|
758
844
|
},
|
|
@@ -764,12 +850,13 @@ exports.SnapshotBackupTransferResponse = {
|
|
|
764
850
|
},
|
|
765
851
|
toJSON(message) {
|
|
766
852
|
const obj = {};
|
|
767
|
-
message.BytesSent !== undefined &&
|
|
768
|
-
|
|
769
|
-
message.BytesTotal !== undefined &&
|
|
770
|
-
(obj.BytesTotal = Math.round(message.BytesTotal));
|
|
853
|
+
message.BytesSent !== undefined && (obj.BytesSent = Math.round(message.BytesSent));
|
|
854
|
+
message.BytesTotal !== undefined && (obj.BytesTotal = Math.round(message.BytesTotal));
|
|
771
855
|
return obj;
|
|
772
856
|
},
|
|
857
|
+
create(base) {
|
|
858
|
+
return exports.SnapshotBackupTransferResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
859
|
+
},
|
|
773
860
|
fromPartial(object) {
|
|
774
861
|
var _a, _b;
|
|
775
862
|
const message = createBaseSnapshotBackupTransferResponse();
|
|
@@ -792,22 +879,29 @@ exports.SnapshotBackupListRequest = {
|
|
|
792
879
|
return writer;
|
|
793
880
|
},
|
|
794
881
|
decode(input, length) {
|
|
795
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
882
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
796
883
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
797
884
|
const message = createBaseSnapshotBackupListRequest();
|
|
798
885
|
while (reader.pos < end) {
|
|
799
886
|
const tag = reader.uint32();
|
|
800
887
|
switch (tag >>> 3) {
|
|
801
888
|
case 1:
|
|
889
|
+
if (tag != 10) {
|
|
890
|
+
break;
|
|
891
|
+
}
|
|
802
892
|
message.PoolName = reader.string();
|
|
803
|
-
|
|
893
|
+
continue;
|
|
804
894
|
case 2:
|
|
895
|
+
if (tag != 18) {
|
|
896
|
+
break;
|
|
897
|
+
}
|
|
805
898
|
message.DatasetPath = reader.string();
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
899
|
+
continue;
|
|
900
|
+
}
|
|
901
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
902
|
+
break;
|
|
810
903
|
}
|
|
904
|
+
reader.skipType(tag & 7);
|
|
811
905
|
}
|
|
812
906
|
return message;
|
|
813
907
|
},
|
|
@@ -820,10 +914,12 @@ exports.SnapshotBackupListRequest = {
|
|
|
820
914
|
toJSON(message) {
|
|
821
915
|
const obj = {};
|
|
822
916
|
message.PoolName !== undefined && (obj.PoolName = message.PoolName);
|
|
823
|
-
message.DatasetPath !== undefined &&
|
|
824
|
-
(obj.DatasetPath = message.DatasetPath);
|
|
917
|
+
message.DatasetPath !== undefined && (obj.DatasetPath = message.DatasetPath);
|
|
825
918
|
return obj;
|
|
826
919
|
},
|
|
920
|
+
create(base) {
|
|
921
|
+
return exports.SnapshotBackupListRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
922
|
+
},
|
|
827
923
|
fromPartial(object) {
|
|
828
924
|
var _a, _b;
|
|
829
925
|
const message = createBaseSnapshotBackupListRequest();
|
|
@@ -849,47 +945,55 @@ exports.SnapshotStatusResponse = {
|
|
|
849
945
|
return writer;
|
|
850
946
|
},
|
|
851
947
|
decode(input, length) {
|
|
852
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
948
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
853
949
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
854
950
|
const message = createBaseSnapshotStatusResponse();
|
|
855
951
|
while (reader.pos < end) {
|
|
856
952
|
const tag = reader.uint32();
|
|
857
953
|
switch (tag >>> 3) {
|
|
858
954
|
case 1:
|
|
955
|
+
if (tag != 8) {
|
|
956
|
+
break;
|
|
957
|
+
}
|
|
859
958
|
message.Status = reader.int32();
|
|
860
|
-
|
|
959
|
+
continue;
|
|
861
960
|
case 2:
|
|
961
|
+
if (tag != 16) {
|
|
962
|
+
break;
|
|
963
|
+
}
|
|
862
964
|
message.BytesSent = longToNumber(reader.uint64());
|
|
863
|
-
|
|
965
|
+
continue;
|
|
864
966
|
case 3:
|
|
967
|
+
if (tag != 24) {
|
|
968
|
+
break;
|
|
969
|
+
}
|
|
865
970
|
message.BytesTotal = longToNumber(reader.uint64());
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
971
|
+
continue;
|
|
972
|
+
}
|
|
973
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
974
|
+
break;
|
|
870
975
|
}
|
|
976
|
+
reader.skipType(tag & 7);
|
|
871
977
|
}
|
|
872
978
|
return message;
|
|
873
979
|
},
|
|
874
980
|
fromJSON(object) {
|
|
875
981
|
return {
|
|
876
|
-
Status: isSet(object.Status)
|
|
877
|
-
? snapshotManagerStatusFromJSON(object.Status)
|
|
878
|
-
: 0,
|
|
982
|
+
Status: isSet(object.Status) ? snapshotManagerStatusFromJSON(object.Status) : 0,
|
|
879
983
|
BytesSent: isSet(object.BytesSent) ? Number(object.BytesSent) : 0,
|
|
880
984
|
BytesTotal: isSet(object.BytesTotal) ? Number(object.BytesTotal) : 0,
|
|
881
985
|
};
|
|
882
986
|
},
|
|
883
987
|
toJSON(message) {
|
|
884
988
|
const obj = {};
|
|
885
|
-
message.Status !== undefined &&
|
|
886
|
-
|
|
887
|
-
message.
|
|
888
|
-
(obj.BytesSent = Math.round(message.BytesSent));
|
|
889
|
-
message.BytesTotal !== undefined &&
|
|
890
|
-
(obj.BytesTotal = Math.round(message.BytesTotal));
|
|
989
|
+
message.Status !== undefined && (obj.Status = snapshotManagerStatusToJSON(message.Status));
|
|
990
|
+
message.BytesSent !== undefined && (obj.BytesSent = Math.round(message.BytesSent));
|
|
991
|
+
message.BytesTotal !== undefined && (obj.BytesTotal = Math.round(message.BytesTotal));
|
|
891
992
|
return obj;
|
|
892
993
|
},
|
|
994
|
+
create(base) {
|
|
995
|
+
return exports.SnapshotStatusResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
996
|
+
},
|
|
893
997
|
fromPartial(object) {
|
|
894
998
|
var _a, _b, _c;
|
|
895
999
|
const message = createBaseSnapshotStatusResponse();
|
|
@@ -977,9 +1081,7 @@ class OSSnapshotServiceClientImpl {
|
|
|
977
1081
|
}
|
|
978
1082
|
}
|
|
979
1083
|
exports.OSSnapshotServiceClientImpl = OSSnapshotServiceClientImpl;
|
|
980
|
-
exports.OSSnapshotServiceDesc = {
|
|
981
|
-
serviceName: "cloud.lazycat.apis.sys.OSSnapshotService",
|
|
982
|
-
};
|
|
1084
|
+
exports.OSSnapshotServiceDesc = { serviceName: "cloud.lazycat.apis.sys.OSSnapshotService" };
|
|
983
1085
|
exports.OSSnapshotServiceBackupPoolAddDesc = {
|
|
984
1086
|
methodName: "BackupPoolAdd",
|
|
985
1087
|
service: exports.OSSnapshotServiceDesc,
|
|
@@ -992,8 +1094,9 @@ exports.OSSnapshotServiceBackupPoolAddDesc = {
|
|
|
992
1094
|
},
|
|
993
1095
|
responseType: {
|
|
994
1096
|
deserializeBinary(data) {
|
|
995
|
-
|
|
996
|
-
|
|
1097
|
+
const value = empty_1.Empty.decode(data);
|
|
1098
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1099
|
+
return value;
|
|
997
1100
|
} });
|
|
998
1101
|
},
|
|
999
1102
|
},
|
|
@@ -1010,8 +1113,9 @@ exports.OSSnapshotServiceBackupPoolDelDesc = {
|
|
|
1010
1113
|
},
|
|
1011
1114
|
responseType: {
|
|
1012
1115
|
deserializeBinary(data) {
|
|
1013
|
-
|
|
1014
|
-
|
|
1116
|
+
const value = empty_1.Empty.decode(data);
|
|
1117
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1118
|
+
return value;
|
|
1015
1119
|
} });
|
|
1016
1120
|
},
|
|
1017
1121
|
},
|
|
@@ -1028,8 +1132,9 @@ exports.OSSnapshotServiceBackupPoolListDesc = {
|
|
|
1028
1132
|
},
|
|
1029
1133
|
responseType: {
|
|
1030
1134
|
deserializeBinary(data) {
|
|
1031
|
-
|
|
1032
|
-
|
|
1135
|
+
const value = exports.SnapshotBackupPoolListResponse.decode(data);
|
|
1136
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1137
|
+
return value;
|
|
1033
1138
|
} });
|
|
1034
1139
|
},
|
|
1035
1140
|
},
|
|
@@ -1046,8 +1151,9 @@ exports.OSSnapshotServiceDatasetAddDesc = {
|
|
|
1046
1151
|
},
|
|
1047
1152
|
responseType: {
|
|
1048
1153
|
deserializeBinary(data) {
|
|
1049
|
-
|
|
1050
|
-
|
|
1154
|
+
const value = empty_1.Empty.decode(data);
|
|
1155
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1156
|
+
return value;
|
|
1051
1157
|
} });
|
|
1052
1158
|
},
|
|
1053
1159
|
},
|
|
@@ -1064,8 +1170,9 @@ exports.OSSnapshotServiceDatasetDelDesc = {
|
|
|
1064
1170
|
},
|
|
1065
1171
|
responseType: {
|
|
1066
1172
|
deserializeBinary(data) {
|
|
1067
|
-
|
|
1068
|
-
|
|
1173
|
+
const value = empty_1.Empty.decode(data);
|
|
1174
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1175
|
+
return value;
|
|
1069
1176
|
} });
|
|
1070
1177
|
},
|
|
1071
1178
|
},
|
|
@@ -1082,8 +1189,9 @@ exports.OSSnapshotServiceDatasetListDesc = {
|
|
|
1082
1189
|
},
|
|
1083
1190
|
responseType: {
|
|
1084
1191
|
deserializeBinary(data) {
|
|
1085
|
-
|
|
1086
|
-
|
|
1192
|
+
const value = exports.SnapshotDatasetListResponse.decode(data);
|
|
1193
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1194
|
+
return value;
|
|
1087
1195
|
} });
|
|
1088
1196
|
},
|
|
1089
1197
|
},
|
|
@@ -1100,8 +1208,9 @@ exports.OSSnapshotServiceDatasetBackupDelDesc = {
|
|
|
1100
1208
|
},
|
|
1101
1209
|
responseType: {
|
|
1102
1210
|
deserializeBinary(data) {
|
|
1103
|
-
|
|
1104
|
-
|
|
1211
|
+
const value = empty_1.Empty.decode(data);
|
|
1212
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1213
|
+
return value;
|
|
1105
1214
|
} });
|
|
1106
1215
|
},
|
|
1107
1216
|
},
|
|
@@ -1118,8 +1227,9 @@ exports.OSSnapshotServiceDatasetBackupListDesc = {
|
|
|
1118
1227
|
},
|
|
1119
1228
|
responseType: {
|
|
1120
1229
|
deserializeBinary(data) {
|
|
1121
|
-
|
|
1122
|
-
|
|
1230
|
+
const value = exports.SnapshotDatasetListResponse.decode(data);
|
|
1231
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1232
|
+
return value;
|
|
1123
1233
|
} });
|
|
1124
1234
|
},
|
|
1125
1235
|
},
|
|
@@ -1136,8 +1246,9 @@ exports.OSSnapshotServiceSnapshotAddDesc = {
|
|
|
1136
1246
|
},
|
|
1137
1247
|
responseType: {
|
|
1138
1248
|
deserializeBinary(data) {
|
|
1139
|
-
|
|
1140
|
-
|
|
1249
|
+
const value = empty_1.Empty.decode(data);
|
|
1250
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1251
|
+
return value;
|
|
1141
1252
|
} });
|
|
1142
1253
|
},
|
|
1143
1254
|
},
|
|
@@ -1154,8 +1265,9 @@ exports.OSSnapshotServiceSnapshotDelDesc = {
|
|
|
1154
1265
|
},
|
|
1155
1266
|
responseType: {
|
|
1156
1267
|
deserializeBinary(data) {
|
|
1157
|
-
|
|
1158
|
-
|
|
1268
|
+
const value = empty_1.Empty.decode(data);
|
|
1269
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1270
|
+
return value;
|
|
1159
1271
|
} });
|
|
1160
1272
|
},
|
|
1161
1273
|
},
|
|
@@ -1172,8 +1284,9 @@ exports.OSSnapshotServiceSnapshotListDesc = {
|
|
|
1172
1284
|
},
|
|
1173
1285
|
responseType: {
|
|
1174
1286
|
deserializeBinary(data) {
|
|
1175
|
-
|
|
1176
|
-
|
|
1287
|
+
const value = exports.SnapshotListResponse.decode(data);
|
|
1288
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1289
|
+
return value;
|
|
1177
1290
|
} });
|
|
1178
1291
|
},
|
|
1179
1292
|
},
|
|
@@ -1190,8 +1303,9 @@ exports.OSSnapshotServiceSnapshotRestoreDesc = {
|
|
|
1190
1303
|
},
|
|
1191
1304
|
responseType: {
|
|
1192
1305
|
deserializeBinary(data) {
|
|
1193
|
-
|
|
1194
|
-
|
|
1306
|
+
const value = empty_1.Empty.decode(data);
|
|
1307
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1308
|
+
return value;
|
|
1195
1309
|
} });
|
|
1196
1310
|
},
|
|
1197
1311
|
},
|
|
@@ -1208,8 +1322,9 @@ exports.OSSnapshotServiceSnapshotBackupAddDesc = {
|
|
|
1208
1322
|
},
|
|
1209
1323
|
responseType: {
|
|
1210
1324
|
deserializeBinary(data) {
|
|
1211
|
-
|
|
1212
|
-
|
|
1325
|
+
const value = exports.SnapshotBackupTransferResponse.decode(data);
|
|
1326
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1327
|
+
return value;
|
|
1213
1328
|
} });
|
|
1214
1329
|
},
|
|
1215
1330
|
},
|
|
@@ -1226,8 +1341,9 @@ exports.OSSnapshotServiceSnapshotBackupDelDesc = {
|
|
|
1226
1341
|
},
|
|
1227
1342
|
responseType: {
|
|
1228
1343
|
deserializeBinary(data) {
|
|
1229
|
-
|
|
1230
|
-
|
|
1344
|
+
const value = empty_1.Empty.decode(data);
|
|
1345
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1346
|
+
return value;
|
|
1231
1347
|
} });
|
|
1232
1348
|
},
|
|
1233
1349
|
},
|
|
@@ -1244,8 +1360,9 @@ exports.OSSnapshotServiceSnapshotBackupListDesc = {
|
|
|
1244
1360
|
},
|
|
1245
1361
|
responseType: {
|
|
1246
1362
|
deserializeBinary(data) {
|
|
1247
|
-
|
|
1248
|
-
|
|
1363
|
+
const value = exports.SnapshotListResponse.decode(data);
|
|
1364
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1365
|
+
return value;
|
|
1249
1366
|
} });
|
|
1250
1367
|
},
|
|
1251
1368
|
},
|
|
@@ -1262,8 +1379,9 @@ exports.OSSnapshotServiceSnapshotBackupRestoreDesc = {
|
|
|
1262
1379
|
},
|
|
1263
1380
|
responseType: {
|
|
1264
1381
|
deserializeBinary(data) {
|
|
1265
|
-
|
|
1266
|
-
|
|
1382
|
+
const value = exports.SnapshotBackupTransferResponse.decode(data);
|
|
1383
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1384
|
+
return value;
|
|
1267
1385
|
} });
|
|
1268
1386
|
},
|
|
1269
1387
|
},
|
|
@@ -1280,8 +1398,9 @@ exports.OSSnapshotServiceGetStatusDesc = {
|
|
|
1280
1398
|
},
|
|
1281
1399
|
responseType: {
|
|
1282
1400
|
deserializeBinary(data) {
|
|
1283
|
-
|
|
1284
|
-
|
|
1401
|
+
const value = exports.SnapshotStatusResponse.decode(data);
|
|
1402
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1403
|
+
return value;
|
|
1285
1404
|
} });
|
|
1286
1405
|
},
|
|
1287
1406
|
},
|
|
@@ -1298,8 +1417,9 @@ exports.OSSnapshotServiceStopTransferDesc = {
|
|
|
1298
1417
|
},
|
|
1299
1418
|
responseType: {
|
|
1300
1419
|
deserializeBinary(data) {
|
|
1301
|
-
|
|
1302
|
-
|
|
1420
|
+
const value = empty_1.Empty.decode(data);
|
|
1421
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1422
|
+
return value;
|
|
1303
1423
|
} });
|
|
1304
1424
|
},
|
|
1305
1425
|
},
|
|
@@ -1324,7 +1444,7 @@ class GrpcWebImpl {
|
|
|
1324
1444
|
debug: this.options.debug,
|
|
1325
1445
|
onEnd: function (response) {
|
|
1326
1446
|
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
1327
|
-
resolve(response.message);
|
|
1447
|
+
resolve(response.message.toObject());
|
|
1328
1448
|
}
|
|
1329
1449
|
else {
|
|
1330
1450
|
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
@@ -1336,20 +1456,24 @@ class GrpcWebImpl {
|
|
|
1336
1456
|
}
|
|
1337
1457
|
}
|
|
1338
1458
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
1339
|
-
var
|
|
1340
|
-
if (typeof globalThis !== "undefined")
|
|
1459
|
+
var tsProtoGlobalThis = (() => {
|
|
1460
|
+
if (typeof globalThis !== "undefined") {
|
|
1341
1461
|
return globalThis;
|
|
1342
|
-
|
|
1462
|
+
}
|
|
1463
|
+
if (typeof self !== "undefined") {
|
|
1343
1464
|
return self;
|
|
1344
|
-
|
|
1465
|
+
}
|
|
1466
|
+
if (typeof window !== "undefined") {
|
|
1345
1467
|
return window;
|
|
1346
|
-
|
|
1468
|
+
}
|
|
1469
|
+
if (typeof global !== "undefined") {
|
|
1347
1470
|
return global;
|
|
1471
|
+
}
|
|
1348
1472
|
throw "Unable to locate global object";
|
|
1349
1473
|
})();
|
|
1350
1474
|
function longToNumber(long) {
|
|
1351
1475
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
1352
|
-
throw new
|
|
1476
|
+
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1353
1477
|
}
|
|
1354
1478
|
return long.toNumber();
|
|
1355
1479
|
}
|
|
@@ -1360,7 +1484,7 @@ if (minimal_1.default.util.Long !== long_1.default) {
|
|
|
1360
1484
|
function isSet(value) {
|
|
1361
1485
|
return value !== null && value !== undefined;
|
|
1362
1486
|
}
|
|
1363
|
-
class GrpcWebError extends Error {
|
|
1487
|
+
class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
1364
1488
|
constructor(message, code, metadata) {
|
|
1365
1489
|
super(message);
|
|
1366
1490
|
this.code = code;
|