@lazycatcloud/sdk 0.1.473 → 0.1.475

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.
Files changed (43) hide show
  1. package/dist/common/box.d.ts +1560 -1664
  2. package/dist/common/box.d.ts.map +1 -1
  3. package/dist/common/file_handler.d.ts +960 -1024
  4. package/dist/common/file_handler.d.ts.map +1 -1
  5. package/dist/common/filetrans.d.ts +2520 -2688
  6. package/dist/common/filetrans.d.ts.map +1 -1
  7. package/dist/common/iscsi.d.ts +534 -310
  8. package/dist/common/iscsi.d.ts.map +1 -1
  9. package/dist/common/iscsi.js +763 -261
  10. package/dist/common/iscsi.js.map +1 -1
  11. package/dist/common/media_meta.d.ts +60 -64
  12. package/dist/common/media_meta.d.ts.map +1 -1
  13. package/dist/common/message.d.ts +420 -448
  14. package/dist/common/message.d.ts.map +1 -1
  15. package/dist/common/peripheral_device.d.ts +360 -384
  16. package/dist/common/peripheral_device.d.ts.map +1 -1
  17. package/dist/google/protobuf/timestamp.d.ts +60 -64
  18. package/dist/google/protobuf/timestamp.d.ts.map +1 -1
  19. package/dist/localdevice/ble.d.ts +50 -0
  20. package/dist/localdevice/ble.d.ts.map +1 -1
  21. package/dist/localdevice/ble.js +161 -1
  22. package/dist/localdevice/ble.js.map +1 -1
  23. package/dist/localdevice/client.d.ts +60 -64
  24. package/dist/localdevice/client.d.ts.map +1 -1
  25. package/dist/localdevice/contacts.d.ts +60 -64
  26. package/dist/localdevice/contacts.d.ts.map +1 -1
  27. package/dist/localdevice/photo.d.ts +180 -192
  28. package/dist/localdevice/photo.d.ts.map +1 -1
  29. package/dist/package.json +1 -1
  30. package/dist/sys/btrfs.d.ts +180 -192
  31. package/dist/sys/btrfs.d.ts.map +1 -1
  32. package/dist/sys/hal.d.ts +120 -128
  33. package/dist/sys/hal.d.ts.map +1 -1
  34. package/dist/sys/ingress.d.ts +60 -64
  35. package/dist/sys/ingress.d.ts.map +1 -1
  36. package/dist/sys/network_manager.d.ts +180 -192
  37. package/dist/sys/network_manager.d.ts.map +1 -1
  38. package/dist/sys/package_manager.d.ts +8700 -9280
  39. package/dist/sys/package_manager.d.ts.map +1 -1
  40. package/dist/sys/stats/cgroup_metrics.d.ts +8220 -8768
  41. package/dist/sys/stats/cgroup_metrics.d.ts.map +1 -1
  42. package/dist/tsconfig.tsbuildinfo +1 -1
  43. package/package.json +1 -1
@@ -2,47 +2,127 @@ import { grpc } from "@improbable-eng/grpc-web";
2
2
  import Long from "long";
3
3
  import _m0 from "protobufjs/minimal";
4
4
  import { Empty } from "../google/protobuf/empty";
5
- export declare enum AuthType {
5
+ export declare enum ISCSIErrorCode {
6
+ /** ISCSI_SUCCESS - command executed successfully. */
7
+ ISCSI_SUCCESS = 0,
8
+ /** ISCSI_ERR - generic error code. */
9
+ ISCSI_ERR = 1,
10
+ /** ISCSI_ERR_SESS_NOT_FOUND - session could not be found. */
11
+ ISCSI_ERR_SESS_NOT_FOUND = 2,
12
+ /** ISCSI_ERR_NOMEM - could not allocate resource for operation. */
13
+ ISCSI_ERR_NOMEM = 3,
14
+ /** ISCSI_ERR_TRANS - connect problem caused operation to fail. */
15
+ ISCSI_ERR_TRANS = 4,
16
+ /** ISCSI_ERR_LOGIN - generic iSCSI login failure. */
17
+ ISCSI_ERR_LOGIN = 5,
18
+ /** ISCSI_ERR_IDBM - error accessing/managing iSCSI DB. */
19
+ ISCSI_ERR_IDBM = 6,
20
+ /** ISCSI_ERR_INVAL - invalid argument. */
21
+ ISCSI_ERR_INVAL = 7,
22
+ /** ISCSI_ERR_TRANS_TIMEOUT - connection timer expired while trying to connect. */
23
+ ISCSI_ERR_TRANS_TIMEOUT = 8,
24
+ /** ISCSI_ERR_INTERNAL - generic internal iscsid/kernel failure. */
25
+ ISCSI_ERR_INTERNAL = 9,
26
+ /** ISCSI_ERR_LOGOUT - iSCSI logout failed. */
27
+ ISCSI_ERR_LOGOUT = 10,
28
+ /** ISCSI_ERR_PDU_TIMEOUT - iSCSI PDU timed out. */
29
+ ISCSI_ERR_PDU_TIMEOUT = 11,
30
+ /** ISCSI_ERR_TRANS_NOT_FOUND - iSCSI transport module not loaded in kernel or iscsid. */
31
+ ISCSI_ERR_TRANS_NOT_FOUND = 12,
32
+ /** ISCSI_ERR_ACCESS - did not have proper OS permissions to access iscsid or execute iscsiadm command. */
33
+ ISCSI_ERR_ACCESS = 13,
34
+ /** ISCSI_ERR_TRANS_CAPS - transport module did not support operation. */
35
+ ISCSI_ERR_TRANS_CAPS = 14,
36
+ /** ISCSI_ERR_SESS_EXISTS - session is logged in. */
37
+ ISCSI_ERR_SESS_EXISTS = 15,
38
+ /** ISCSI_ERR_INVALID_MGMT_REQ - invalid IPC MGMT request. */
39
+ ISCSI_ERR_INVALID_MGMT_REQ = 16,
40
+ /** ISCSI_ERR_ISNS_UNAVAILABLE - iSNS service is not supported. */
41
+ ISCSI_ERR_ISNS_UNAVAILABLE = 17,
42
+ /** ISCSI_ERR_ISCSID_COMM_ERR - a read/write to iscsid failed. */
43
+ ISCSI_ERR_ISCSID_COMM_ERR = 18,
44
+ /** ISCSI_ERR_FATAL_LOGIN - fatal iSCSI login error. */
45
+ ISCSI_ERR_FATAL_LOGIN = 19,
46
+ /** ISCSI_ERR_ISCSID_NOTCONN - could not connect to iscsid. */
47
+ ISCSI_ERR_ISCSID_NOTCONN = 20,
48
+ /** ISCSI_ERR_NO_OBJS_FOUND - no records/targets/sessions/portals found to execute operation on. */
49
+ ISCSI_ERR_NO_OBJS_FOUND = 21,
50
+ /** ISCSI_ERR_SYSFS_LOOKUP - could not lookup object in sysfs. */
51
+ ISCSI_ERR_SYSFS_LOOKUP = 22,
52
+ /** ISCSI_ERR_HOST_NOT_FOUND - could not lookup host. */
53
+ ISCSI_ERR_HOST_NOT_FOUND = 23,
54
+ /** ISCSI_ERR_LOGIN_AUTH_FAILED - login failed due to authorization failure. */
55
+ ISCSI_ERR_LOGIN_AUTH_FAILED = 24,
56
+ /** ISCSI_ERR_ISNS_QUERY - iSNS query failure. */
57
+ ISCSI_ERR_ISNS_QUERY = 25,
58
+ /** ISCSI_ERR_ISNS_REG_FAILED - iSNS registration/deregistration failed. */
59
+ ISCSI_ERR_ISNS_REG_FAILED = 26,
60
+ /** ISCSI_ERR_OP_NOT_SUPP - operation not support. */
61
+ ISCSI_ERR_OP_NOT_SUPP = 27,
62
+ /** ISCSI_ERR_BUSY - device or resource in use. */
63
+ ISCSI_ERR_BUSY = 28,
64
+ /** ISCSI_ERR_AGAIN - operation failed, but retrying later may succeed. */
65
+ ISCSI_ERR_AGAIN = 29,
66
+ /** ISCSI_ERR_UNKNOWN_DISCOVERY_TYPE - unknown discovery type. */
67
+ ISCSI_ERR_UNKNOWN_DISCOVERY_TYPE = 30,
68
+ /** ISCSI_ERR_CHILD_TERMINATED - child process terminated. */
69
+ ISCSI_ERR_CHILD_TERMINATED = 31,
70
+ /** ISCSI_ERR_SESSION_NOT_CONNECTED - session likely not connected. */
71
+ ISCSI_ERR_SESSION_NOT_CONNECTED = 32,
72
+ /** ISCSI_MANAGER_ERR - iscsi initiator manager error. (should return raw message) */
73
+ ISCSI_MANAGER_ERR = -1,
74
+ UNRECOGNIZED = -1
75
+ }
76
+ export declare function iSCSIErrorCodeFromJSON(object: any): ISCSIErrorCode;
77
+ export declare function iSCSIErrorCodeToJSON(object: ISCSIErrorCode): string;
78
+ export declare enum ISCSIAuthType {
6
79
  None = 0,
7
80
  CHAP = 1,
8
81
  MutualCHAP = 2,
9
82
  UNRECOGNIZED = -1
10
83
  }
11
- export declare function authTypeFromJSON(object: any): AuthType;
12
- export declare function authTypeToJSON(object: AuthType): string;
13
- export declare enum TransportName {
14
- TRANSPORT_TCP = 0,
15
- TRANSPORT_ISER = 1,
84
+ export declare function iSCSIAuthTypeFromJSON(object: any): ISCSIAuthType;
85
+ export declare function iSCSIAuthTypeToJSON(object: ISCSIAuthType): string;
86
+ export declare enum ISCSITransportName {
87
+ ISCSI_TRANSPORT_TCP = 0,
88
+ ISCSI_TRANSPORT_ISER = 1,
89
+ UNRECOGNIZED = -1
90
+ }
91
+ export declare function iSCSITransportNameFromJSON(object: any): ISCSITransportName;
92
+ export declare function iSCSITransportNameToJSON(object: ISCSITransportName): string;
93
+ export declare enum ISCSISessionState {
94
+ ISCSI_SESSION_LOGGED_IN = 0,
95
+ ISCSI_SESSION_FAILED = 1,
96
+ ISCSI_SESSION_FREE = 2,
16
97
  UNRECOGNIZED = -1
17
98
  }
18
- export declare function transportNameFromJSON(object: any): TransportName;
19
- export declare function transportNameToJSON(object: TransportName): string;
20
- export declare enum SessionState {
21
- SESSION_LOGGED_IN = 0,
22
- SESSION_FAILED = 1,
23
- SESSION_FREE = 2,
99
+ export declare function iSCSISessionStateFromJSON(object: any): ISCSISessionState;
100
+ export declare function iSCSISessionStateToJSON(object: ISCSISessionState): string;
101
+ export declare enum ISCSISessionTargetState {
102
+ ISCSI_SESSION_TARGET_UNBOUND = 0,
103
+ ISCSI_SESSION_TARGET_ALLOCATED = 1,
104
+ ISCSI_SESSION_TARGET_SCANNED = 2,
105
+ ISCSI_SESSION_TARGET_UNBINDING = 3,
106
+ ISCSI_SESSION_TARGET_MAX = 4,
24
107
  UNRECOGNIZED = -1
25
108
  }
26
- export declare function sessionStateFromJSON(object: any): SessionState;
27
- export declare function sessionStateToJSON(object: SessionState): string;
28
- export declare enum ConnectionState {
29
- CONNECTION_FREE = 0,
30
- CONNECTION_TRANSPORT_WAIT = 1,
31
- CONNECTION_IN_LOGIN = 2,
32
- CONNECTION_LOGGED_IN = 3,
33
- CONNECTION_IN_LOGGOUT = 4,
34
- CONNECTION_LOGOUT_REQUESTED = 5,
35
- CONNECTION_CLEANUP_WAIT = 6,
109
+ export declare function iSCSISessionTargetStateFromJSON(object: any): ISCSISessionTargetState;
110
+ export declare function iSCSISessionTargetStateToJSON(object: ISCSISessionTargetState): string;
111
+ export declare enum ISCSIConnectionState {
112
+ ISCSI_CONN_UP = 0,
113
+ ISCSI_CONN_DOWN = 1,
114
+ ISCSI_CONN_FAILED = 2,
115
+ ISCSI_CONN_BOUND = 3,
36
116
  UNRECOGNIZED = -1
37
117
  }
38
- export declare function connectionStateFromJSON(object: any): ConnectionState;
39
- export declare function connectionStateToJSON(object: ConnectionState): string;
118
+ export declare function iSCSIConnectionStateFromJSON(object: any): ISCSIConnectionState;
119
+ export declare function iSCSIConnectionStateToJSON(object: ISCSIConnectionState): string;
40
120
  export interface ISCSITarget {
41
121
  portal: string;
42
122
  groupTag: string;
43
123
  target: string;
44
124
  }
45
- export interface CHAPAuth {
125
+ export interface ISCSICHAPAuth {
46
126
  username: string;
47
127
  password: string;
48
128
  usernameIn: string;
@@ -51,27 +131,30 @@ export interface CHAPAuth {
51
131
  export interface DiscoverTargetsRequest {
52
132
  /** ip:port */
53
133
  address: string;
54
- authType: AuthType;
134
+ authType: ISCSIAuthType;
55
135
  /** denpends on auth_type */
56
- auth: CHAPAuth | undefined;
136
+ auth: ISCSICHAPAuth | undefined;
57
137
  /** automatic login at startup */
58
138
  startup: boolean;
139
+ /** login to discovered targets */
140
+ login: boolean;
59
141
  }
60
142
  export interface DiscoverTargetsResponse {
61
143
  targets: ISCSITarget[];
144
+ code: ISCSIErrorCode;
145
+ rawMessage: string;
62
146
  }
63
147
  export interface SetAuthRequest {
64
148
  target: ISCSITarget | undefined;
65
- authType: AuthType;
66
- auth: CHAPAuth | undefined;
149
+ authType: ISCSIAuthType;
150
+ auth: ISCSICHAPAuth | undefined;
67
151
  }
68
152
  export interface NodeOptions {
69
153
  name: string;
70
154
  value: string;
71
155
  }
72
- export interface Node {
73
- target: string;
74
- portal: string;
156
+ export interface ISCSINode {
157
+ target: ISCSITarget | undefined;
75
158
  fields: NodeOptions[];
76
159
  }
77
160
  export interface CreateOrUpdateNodeRequest {
@@ -81,25 +164,36 @@ export interface CreateOrUpdateNodeRequest {
81
164
  startup: boolean;
82
165
  }
83
166
  export interface GetNodesResponse {
84
- nodes: Node[];
167
+ nodes: ISCSINode[];
168
+ code: ISCSIErrorCode;
169
+ rawMessage: string;
85
170
  }
86
- export interface Session {
87
- target: string;
88
- protal: string;
171
+ export interface ISCSISession {
172
+ target: ISCSITarget | undefined;
89
173
  sid: string;
90
- ifaceTransport: TransportName;
91
174
  ifaceInitiatorname: string;
92
175
  ifaceIpaddress: string;
93
- sessionState: SessionState;
94
- connectionState: ConnectionState;
95
- auth: CHAPAuth | undefined;
176
+ ifacePort: number;
177
+ sessionState: ISCSISessionState;
178
+ connectionState: ISCSIConnectionState;
179
+ targetState: ISCSISessionTargetState;
180
+ devPath: string;
181
+ size: string;
182
+ readOnly: boolean;
183
+ jsonInfo?: string | undefined;
96
184
  }
97
185
  export interface GetSessionResponse {
98
- sessions: Session[];
186
+ sessions: ISCSISession[];
187
+ code: ISCSIErrorCode;
188
+ rawMessage: string;
99
189
  }
100
- export interface CommonRequest {
190
+ export interface NodeOperationRequest {
101
191
  target: ISCSITarget | undefined;
102
192
  }
193
+ export interface CommonResponse {
194
+ code: ISCSIErrorCode;
195
+ rawMessage: string;
196
+ }
103
197
  export interface GetInitiatorsResponse {
104
198
  initiators: string[];
105
199
  }
@@ -127,11 +221,11 @@ export declare const ISCSITarget: {
127
221
  target?: string;
128
222
  } & { [K_1 in Exclude<keyof I_1, keyof ISCSITarget>]: never; }>(object: I_1): ISCSITarget;
129
223
  };
130
- export declare const CHAPAuth: {
131
- encode(message: CHAPAuth, writer?: _m0.Writer): _m0.Writer;
132
- decode(input: _m0.Reader | Uint8Array, length?: number): CHAPAuth;
133
- fromJSON(object: any): CHAPAuth;
134
- toJSON(message: CHAPAuth): unknown;
224
+ export declare const ISCSICHAPAuth: {
225
+ encode(message: ISCSICHAPAuth, writer?: _m0.Writer): _m0.Writer;
226
+ decode(input: _m0.Reader | Uint8Array, length?: number): ISCSICHAPAuth;
227
+ fromJSON(object: any): ISCSICHAPAuth;
228
+ toJSON(message: ISCSICHAPAuth): unknown;
135
229
  create<I extends {
136
230
  username?: string;
137
231
  password?: string;
@@ -142,7 +236,7 @@ export declare const CHAPAuth: {
142
236
  password?: string;
143
237
  usernameIn?: string;
144
238
  passwordIn?: string;
145
- } & { [K in Exclude<keyof I, keyof CHAPAuth>]: never; }>(base?: I): CHAPAuth;
239
+ } & { [K in Exclude<keyof I, keyof ISCSICHAPAuth>]: never; }>(base?: I): ISCSICHAPAuth;
146
240
  fromPartial<I_1 extends {
147
241
  username?: string;
148
242
  password?: string;
@@ -153,7 +247,7 @@ export declare const CHAPAuth: {
153
247
  password?: string;
154
248
  usernameIn?: string;
155
249
  passwordIn?: string;
156
- } & { [K_1 in Exclude<keyof I_1, keyof CHAPAuth>]: never; }>(object: I_1): CHAPAuth;
250
+ } & { [K_1 in Exclude<keyof I_1, keyof ISCSICHAPAuth>]: never; }>(object: I_1): ISCSICHAPAuth;
157
251
  };
158
252
  export declare const DiscoverTargetsRequest: {
159
253
  encode(message: DiscoverTargetsRequest, writer?: _m0.Writer): _m0.Writer;
@@ -162,7 +256,7 @@ export declare const DiscoverTargetsRequest: {
162
256
  toJSON(message: DiscoverTargetsRequest): unknown;
163
257
  create<I extends {
164
258
  address?: string;
165
- authType?: AuthType;
259
+ authType?: ISCSIAuthType;
166
260
  auth?: {
167
261
  username?: string;
168
262
  password?: string;
@@ -170,9 +264,10 @@ export declare const DiscoverTargetsRequest: {
170
264
  passwordIn?: string;
171
265
  };
172
266
  startup?: boolean;
267
+ login?: boolean;
173
268
  } & {
174
269
  address?: string;
175
- authType?: AuthType;
270
+ authType?: ISCSIAuthType;
176
271
  auth?: {
177
272
  username?: string;
178
273
  password?: string;
@@ -183,12 +278,13 @@ export declare const DiscoverTargetsRequest: {
183
278
  password?: string;
184
279
  usernameIn?: string;
185
280
  passwordIn?: string;
186
- } & { [K in Exclude<keyof I["auth"], keyof CHAPAuth>]: never; };
281
+ } & { [K in Exclude<keyof I["auth"], keyof ISCSICHAPAuth>]: never; };
187
282
  startup?: boolean;
283
+ login?: boolean;
188
284
  } & { [K_1 in Exclude<keyof I, keyof DiscoverTargetsRequest>]: never; }>(base?: I): DiscoverTargetsRequest;
189
285
  fromPartial<I_1 extends {
190
286
  address?: string;
191
- authType?: AuthType;
287
+ authType?: ISCSIAuthType;
192
288
  auth?: {
193
289
  username?: string;
194
290
  password?: string;
@@ -196,9 +292,10 @@ export declare const DiscoverTargetsRequest: {
196
292
  passwordIn?: string;
197
293
  };
198
294
  startup?: boolean;
295
+ login?: boolean;
199
296
  } & {
200
297
  address?: string;
201
- authType?: AuthType;
298
+ authType?: ISCSIAuthType;
202
299
  auth?: {
203
300
  username?: string;
204
301
  password?: string;
@@ -209,8 +306,9 @@ export declare const DiscoverTargetsRequest: {
209
306
  password?: string;
210
307
  usernameIn?: string;
211
308
  passwordIn?: string;
212
- } & { [K_2 in Exclude<keyof I_1["auth"], keyof CHAPAuth>]: never; };
309
+ } & { [K_2 in Exclude<keyof I_1["auth"], keyof ISCSICHAPAuth>]: never; };
213
310
  startup?: boolean;
311
+ login?: boolean;
214
312
  } & { [K_3 in Exclude<keyof I_1, keyof DiscoverTargetsRequest>]: never; }>(object: I_1): DiscoverTargetsRequest;
215
313
  };
216
314
  export declare const DiscoverTargetsResponse: {
@@ -224,6 +322,8 @@ export declare const DiscoverTargetsResponse: {
224
322
  groupTag?: string;
225
323
  target?: string;
226
324
  }[];
325
+ code?: ISCSIErrorCode;
326
+ rawMessage?: string;
227
327
  } & {
228
328
  targets?: {
229
329
  portal?: string;
@@ -242,13 +342,17 @@ export declare const DiscoverTargetsResponse: {
242
342
  groupTag?: string;
243
343
  target?: string;
244
344
  }[]>]: never; };
245
- } & { [K_2 in Exclude<keyof I, "targets">]: never; }>(base?: I): DiscoverTargetsResponse;
345
+ code?: ISCSIErrorCode;
346
+ rawMessage?: string;
347
+ } & { [K_2 in Exclude<keyof I, keyof DiscoverTargetsResponse>]: never; }>(base?: I): DiscoverTargetsResponse;
246
348
  fromPartial<I_1 extends {
247
349
  targets?: {
248
350
  portal?: string;
249
351
  groupTag?: string;
250
352
  target?: string;
251
353
  }[];
354
+ code?: ISCSIErrorCode;
355
+ rawMessage?: string;
252
356
  } & {
253
357
  targets?: {
254
358
  portal?: string;
@@ -267,7 +371,9 @@ export declare const DiscoverTargetsResponse: {
267
371
  groupTag?: string;
268
372
  target?: string;
269
373
  }[]>]: never; };
270
- } & { [K_5 in Exclude<keyof I_1, "targets">]: never; }>(object: I_1): DiscoverTargetsResponse;
374
+ code?: ISCSIErrorCode;
375
+ rawMessage?: string;
376
+ } & { [K_5 in Exclude<keyof I_1, keyof DiscoverTargetsResponse>]: never; }>(object: I_1): DiscoverTargetsResponse;
271
377
  };
272
378
  export declare const SetAuthRequest: {
273
379
  encode(message: SetAuthRequest, writer?: _m0.Writer): _m0.Writer;
@@ -280,7 +386,7 @@ export declare const SetAuthRequest: {
280
386
  groupTag?: string;
281
387
  target?: string;
282
388
  };
283
- authType?: AuthType;
389
+ authType?: ISCSIAuthType;
284
390
  auth?: {
285
391
  username?: string;
286
392
  password?: string;
@@ -297,7 +403,7 @@ export declare const SetAuthRequest: {
297
403
  groupTag?: string;
298
404
  target?: string;
299
405
  } & { [K in Exclude<keyof I["target"], keyof ISCSITarget>]: never; };
300
- authType?: AuthType;
406
+ authType?: ISCSIAuthType;
301
407
  auth?: {
302
408
  username?: string;
303
409
  password?: string;
@@ -308,7 +414,7 @@ export declare const SetAuthRequest: {
308
414
  password?: string;
309
415
  usernameIn?: string;
310
416
  passwordIn?: string;
311
- } & { [K_1 in Exclude<keyof I["auth"], keyof CHAPAuth>]: never; };
417
+ } & { [K_1 in Exclude<keyof I["auth"], keyof ISCSICHAPAuth>]: never; };
312
418
  } & { [K_2 in Exclude<keyof I, keyof SetAuthRequest>]: never; }>(base?: I): SetAuthRequest;
313
419
  fromPartial<I_1 extends {
314
420
  target?: {
@@ -316,7 +422,7 @@ export declare const SetAuthRequest: {
316
422
  groupTag?: string;
317
423
  target?: string;
318
424
  };
319
- authType?: AuthType;
425
+ authType?: ISCSIAuthType;
320
426
  auth?: {
321
427
  username?: string;
322
428
  password?: string;
@@ -333,7 +439,7 @@ export declare const SetAuthRequest: {
333
439
  groupTag?: string;
334
440
  target?: string;
335
441
  } & { [K_3 in Exclude<keyof I_1["target"], keyof ISCSITarget>]: never; };
336
- authType?: AuthType;
442
+ authType?: ISCSIAuthType;
337
443
  auth?: {
338
444
  username?: string;
339
445
  password?: string;
@@ -344,7 +450,7 @@ export declare const SetAuthRequest: {
344
450
  password?: string;
345
451
  usernameIn?: string;
346
452
  passwordIn?: string;
347
- } & { [K_4 in Exclude<keyof I_1["auth"], keyof CHAPAuth>]: never; };
453
+ } & { [K_4 in Exclude<keyof I_1["auth"], keyof ISCSICHAPAuth>]: never; };
348
454
  } & { [K_5 in Exclude<keyof I_1, keyof SetAuthRequest>]: never; }>(object: I_1): SetAuthRequest;
349
455
  };
350
456
  export declare const NodeOptions: {
@@ -367,21 +473,31 @@ export declare const NodeOptions: {
367
473
  value?: string;
368
474
  } & { [K_1 in Exclude<keyof I_1, keyof NodeOptions>]: never; }>(object: I_1): NodeOptions;
369
475
  };
370
- export declare const Node: {
371
- encode(message: Node, writer?: _m0.Writer): _m0.Writer;
372
- decode(input: _m0.Reader | Uint8Array, length?: number): Node;
373
- fromJSON(object: any): Node;
374
- toJSON(message: Node): unknown;
476
+ export declare const ISCSINode: {
477
+ encode(message: ISCSINode, writer?: _m0.Writer): _m0.Writer;
478
+ decode(input: _m0.Reader | Uint8Array, length?: number): ISCSINode;
479
+ fromJSON(object: any): ISCSINode;
480
+ toJSON(message: ISCSINode): unknown;
375
481
  create<I extends {
376
- target?: string;
377
- portal?: string;
482
+ target?: {
483
+ portal?: string;
484
+ groupTag?: string;
485
+ target?: string;
486
+ };
378
487
  fields?: {
379
488
  name?: string;
380
489
  value?: string;
381
490
  }[];
382
491
  } & {
383
- target?: string;
384
- portal?: string;
492
+ target?: {
493
+ portal?: string;
494
+ groupTag?: string;
495
+ target?: string;
496
+ } & {
497
+ portal?: string;
498
+ groupTag?: string;
499
+ target?: string;
500
+ } & { [K in Exclude<keyof I["target"], keyof ISCSITarget>]: never; };
385
501
  fields?: {
386
502
  name?: string;
387
503
  value?: string;
@@ -391,21 +507,31 @@ export declare const Node: {
391
507
  } & {
392
508
  name?: string;
393
509
  value?: string;
394
- } & { [K in Exclude<keyof I["fields"][number], keyof NodeOptions>]: never; })[] & { [K_1 in Exclude<keyof I["fields"], keyof {
510
+ } & { [K_1 in Exclude<keyof I["fields"][number], keyof NodeOptions>]: never; })[] & { [K_2 in Exclude<keyof I["fields"], keyof {
395
511
  name?: string;
396
512
  value?: string;
397
513
  }[]>]: never; };
398
- } & { [K_2 in Exclude<keyof I, keyof Node>]: never; }>(base?: I): Node;
514
+ } & { [K_3 in Exclude<keyof I, keyof ISCSINode>]: never; }>(base?: I): ISCSINode;
399
515
  fromPartial<I_1 extends {
400
- target?: string;
401
- portal?: string;
516
+ target?: {
517
+ portal?: string;
518
+ groupTag?: string;
519
+ target?: string;
520
+ };
402
521
  fields?: {
403
522
  name?: string;
404
523
  value?: string;
405
524
  }[];
406
525
  } & {
407
- target?: string;
408
- portal?: string;
526
+ target?: {
527
+ portal?: string;
528
+ groupTag?: string;
529
+ target?: string;
530
+ } & {
531
+ portal?: string;
532
+ groupTag?: string;
533
+ target?: string;
534
+ } & { [K_4 in Exclude<keyof I_1["target"], keyof ISCSITarget>]: never; };
409
535
  fields?: {
410
536
  name?: string;
411
537
  value?: string;
@@ -415,11 +541,11 @@ export declare const Node: {
415
541
  } & {
416
542
  name?: string;
417
543
  value?: string;
418
- } & { [K_3 in Exclude<keyof I_1["fields"][number], keyof NodeOptions>]: never; })[] & { [K_4 in Exclude<keyof I_1["fields"], keyof {
544
+ } & { [K_5 in Exclude<keyof I_1["fields"][number], keyof NodeOptions>]: never; })[] & { [K_6 in Exclude<keyof I_1["fields"], keyof {
419
545
  name?: string;
420
546
  value?: string;
421
547
  }[]>]: never; };
422
- } & { [K_5 in Exclude<keyof I_1, keyof Node>]: never; }>(object: I_1): Node;
548
+ } & { [K_7 in Exclude<keyof I_1, keyof ISCSINode>]: never; }>(object: I_1): ISCSINode;
423
549
  };
424
550
  export declare const CreateOrUpdateNodeRequest: {
425
551
  encode(message: CreateOrUpdateNodeRequest, writer?: _m0.Writer): _m0.Writer;
@@ -506,31 +632,49 @@ export declare const GetNodesResponse: {
506
632
  toJSON(message: GetNodesResponse): unknown;
507
633
  create<I extends {
508
634
  nodes?: {
509
- target?: string;
510
- portal?: string;
635
+ target?: {
636
+ portal?: string;
637
+ groupTag?: string;
638
+ target?: string;
639
+ };
511
640
  fields?: {
512
641
  name?: string;
513
642
  value?: string;
514
643
  }[];
515
644
  }[];
645
+ code?: ISCSIErrorCode;
646
+ rawMessage?: string;
516
647
  } & {
517
648
  nodes?: {
518
- target?: string;
519
- portal?: string;
649
+ target?: {
650
+ portal?: string;
651
+ groupTag?: string;
652
+ target?: string;
653
+ };
520
654
  fields?: {
521
655
  name?: string;
522
656
  value?: string;
523
657
  }[];
524
658
  }[] & ({
525
- target?: string;
526
- portal?: string;
659
+ target?: {
660
+ portal?: string;
661
+ groupTag?: string;
662
+ target?: string;
663
+ };
527
664
  fields?: {
528
665
  name?: string;
529
666
  value?: string;
530
667
  }[];
531
668
  } & {
532
- target?: string;
533
- portal?: string;
669
+ target?: {
670
+ portal?: string;
671
+ groupTag?: string;
672
+ target?: string;
673
+ } & {
674
+ portal?: string;
675
+ groupTag?: string;
676
+ target?: string;
677
+ } & { [K in Exclude<keyof I["nodes"][number]["target"], keyof ISCSITarget>]: never; };
534
678
  fields?: {
535
679
  name?: string;
536
680
  value?: string;
@@ -540,46 +684,69 @@ export declare const GetNodesResponse: {
540
684
  } & {
541
685
  name?: string;
542
686
  value?: string;
543
- } & { [K in Exclude<keyof I["nodes"][number]["fields"][number], keyof NodeOptions>]: never; })[] & { [K_1 in Exclude<keyof I["nodes"][number]["fields"], keyof {
687
+ } & { [K_1 in Exclude<keyof I["nodes"][number]["fields"][number], keyof NodeOptions>]: never; })[] & { [K_2 in Exclude<keyof I["nodes"][number]["fields"], keyof {
544
688
  name?: string;
545
689
  value?: string;
546
690
  }[]>]: never; };
547
- } & { [K_2 in Exclude<keyof I["nodes"][number], keyof Node>]: never; })[] & { [K_3 in Exclude<keyof I["nodes"], keyof {
548
- target?: string;
549
- portal?: string;
691
+ } & { [K_3 in Exclude<keyof I["nodes"][number], keyof ISCSINode>]: never; })[] & { [K_4 in Exclude<keyof I["nodes"], keyof {
692
+ target?: {
693
+ portal?: string;
694
+ groupTag?: string;
695
+ target?: string;
696
+ };
550
697
  fields?: {
551
698
  name?: string;
552
699
  value?: string;
553
700
  }[];
554
701
  }[]>]: never; };
555
- } & { [K_4 in Exclude<keyof I, "nodes">]: never; }>(base?: I): GetNodesResponse;
702
+ code?: ISCSIErrorCode;
703
+ rawMessage?: string;
704
+ } & { [K_5 in Exclude<keyof I, keyof GetNodesResponse>]: never; }>(base?: I): GetNodesResponse;
556
705
  fromPartial<I_1 extends {
557
706
  nodes?: {
558
- target?: string;
559
- portal?: string;
707
+ target?: {
708
+ portal?: string;
709
+ groupTag?: string;
710
+ target?: string;
711
+ };
560
712
  fields?: {
561
713
  name?: string;
562
714
  value?: string;
563
715
  }[];
564
716
  }[];
717
+ code?: ISCSIErrorCode;
718
+ rawMessage?: string;
565
719
  } & {
566
720
  nodes?: {
567
- target?: string;
568
- portal?: string;
721
+ target?: {
722
+ portal?: string;
723
+ groupTag?: string;
724
+ target?: string;
725
+ };
569
726
  fields?: {
570
727
  name?: string;
571
728
  value?: string;
572
729
  }[];
573
730
  }[] & ({
574
- target?: string;
575
- portal?: string;
731
+ target?: {
732
+ portal?: string;
733
+ groupTag?: string;
734
+ target?: string;
735
+ };
576
736
  fields?: {
577
737
  name?: string;
578
738
  value?: string;
579
739
  }[];
580
740
  } & {
581
- target?: string;
582
- portal?: string;
741
+ target?: {
742
+ portal?: string;
743
+ groupTag?: string;
744
+ target?: string;
745
+ } & {
746
+ portal?: string;
747
+ groupTag?: string;
748
+ target?: string;
749
+ } & { [K_6 in Exclude<keyof I_1["nodes"][number]["target"], keyof ISCSITarget>]: never; };
583
750
  fields?: {
584
751
  name?: string;
585
752
  value?: string;
@@ -589,97 +756,108 @@ export declare const GetNodesResponse: {
589
756
  } & {
590
757
  name?: string;
591
758
  value?: string;
592
- } & { [K_5 in Exclude<keyof I_1["nodes"][number]["fields"][number], keyof NodeOptions>]: never; })[] & { [K_6 in Exclude<keyof I_1["nodes"][number]["fields"], keyof {
759
+ } & { [K_7 in Exclude<keyof I_1["nodes"][number]["fields"][number], keyof NodeOptions>]: never; })[] & { [K_8 in Exclude<keyof I_1["nodes"][number]["fields"], keyof {
593
760
  name?: string;
594
761
  value?: string;
595
762
  }[]>]: never; };
596
- } & { [K_7 in Exclude<keyof I_1["nodes"][number], keyof Node>]: never; })[] & { [K_8 in Exclude<keyof I_1["nodes"], keyof {
597
- target?: string;
598
- portal?: string;
763
+ } & { [K_9 in Exclude<keyof I_1["nodes"][number], keyof ISCSINode>]: never; })[] & { [K_10 in Exclude<keyof I_1["nodes"], keyof {
764
+ target?: {
765
+ portal?: string;
766
+ groupTag?: string;
767
+ target?: string;
768
+ };
599
769
  fields?: {
600
770
  name?: string;
601
771
  value?: string;
602
772
  }[];
603
773
  }[]>]: never; };
604
- } & { [K_9 in Exclude<keyof I_1, "nodes">]: never; }>(object: I_1): GetNodesResponse;
774
+ code?: ISCSIErrorCode;
775
+ rawMessage?: string;
776
+ } & { [K_11 in Exclude<keyof I_1, keyof GetNodesResponse>]: never; }>(object: I_1): GetNodesResponse;
605
777
  };
606
- export declare const Session: {
607
- encode(message: Session, writer?: _m0.Writer): _m0.Writer;
608
- decode(input: _m0.Reader | Uint8Array, length?: number): Session;
609
- fromJSON(object: any): Session;
610
- toJSON(message: Session): unknown;
778
+ export declare const ISCSISession: {
779
+ encode(message: ISCSISession, writer?: _m0.Writer): _m0.Writer;
780
+ decode(input: _m0.Reader | Uint8Array, length?: number): ISCSISession;
781
+ fromJSON(object: any): ISCSISession;
782
+ toJSON(message: ISCSISession): unknown;
611
783
  create<I extends {
612
- target?: string;
613
- protal?: string;
784
+ target?: {
785
+ portal?: string;
786
+ groupTag?: string;
787
+ target?: string;
788
+ };
614
789
  sid?: string;
615
- ifaceTransport?: TransportName;
616
790
  ifaceInitiatorname?: string;
617
791
  ifaceIpaddress?: string;
618
- sessionState?: SessionState;
619
- connectionState?: ConnectionState;
620
- auth?: {
621
- username?: string;
622
- password?: string;
623
- usernameIn?: string;
624
- passwordIn?: string;
625
- };
792
+ ifacePort?: number;
793
+ sessionState?: ISCSISessionState;
794
+ connectionState?: ISCSIConnectionState;
795
+ targetState?: ISCSISessionTargetState;
796
+ devPath?: string;
797
+ size?: string;
798
+ readOnly?: boolean;
799
+ jsonInfo?: string | undefined;
626
800
  } & {
627
- target?: string;
628
- protal?: string;
801
+ target?: {
802
+ portal?: string;
803
+ groupTag?: string;
804
+ target?: string;
805
+ } & {
806
+ portal?: string;
807
+ groupTag?: string;
808
+ target?: string;
809
+ } & { [K in Exclude<keyof I["target"], keyof ISCSITarget>]: never; };
629
810
  sid?: string;
630
- ifaceTransport?: TransportName;
631
811
  ifaceInitiatorname?: string;
632
812
  ifaceIpaddress?: string;
633
- sessionState?: SessionState;
634
- connectionState?: ConnectionState;
635
- auth?: {
636
- username?: string;
637
- password?: string;
638
- usernameIn?: string;
639
- passwordIn?: string;
640
- } & {
641
- username?: string;
642
- password?: string;
643
- usernameIn?: string;
644
- passwordIn?: string;
645
- } & { [K in Exclude<keyof I["auth"], keyof CHAPAuth>]: never; };
646
- } & { [K_1 in Exclude<keyof I, keyof Session>]: never; }>(base?: I): Session;
813
+ ifacePort?: number;
814
+ sessionState?: ISCSISessionState;
815
+ connectionState?: ISCSIConnectionState;
816
+ targetState?: ISCSISessionTargetState;
817
+ devPath?: string;
818
+ size?: string;
819
+ readOnly?: boolean;
820
+ jsonInfo?: string | undefined;
821
+ } & { [K_1 in Exclude<keyof I, keyof ISCSISession>]: never; }>(base?: I): ISCSISession;
647
822
  fromPartial<I_1 extends {
648
- target?: string;
649
- protal?: string;
823
+ target?: {
824
+ portal?: string;
825
+ groupTag?: string;
826
+ target?: string;
827
+ };
650
828
  sid?: string;
651
- ifaceTransport?: TransportName;
652
829
  ifaceInitiatorname?: string;
653
830
  ifaceIpaddress?: string;
654
- sessionState?: SessionState;
655
- connectionState?: ConnectionState;
656
- auth?: {
657
- username?: string;
658
- password?: string;
659
- usernameIn?: string;
660
- passwordIn?: string;
661
- };
831
+ ifacePort?: number;
832
+ sessionState?: ISCSISessionState;
833
+ connectionState?: ISCSIConnectionState;
834
+ targetState?: ISCSISessionTargetState;
835
+ devPath?: string;
836
+ size?: string;
837
+ readOnly?: boolean;
838
+ jsonInfo?: string | undefined;
662
839
  } & {
663
- target?: string;
664
- protal?: string;
840
+ target?: {
841
+ portal?: string;
842
+ groupTag?: string;
843
+ target?: string;
844
+ } & {
845
+ portal?: string;
846
+ groupTag?: string;
847
+ target?: string;
848
+ } & { [K_2 in Exclude<keyof I_1["target"], keyof ISCSITarget>]: never; };
665
849
  sid?: string;
666
- ifaceTransport?: TransportName;
667
850
  ifaceInitiatorname?: string;
668
851
  ifaceIpaddress?: string;
669
- sessionState?: SessionState;
670
- connectionState?: ConnectionState;
671
- auth?: {
672
- username?: string;
673
- password?: string;
674
- usernameIn?: string;
675
- passwordIn?: string;
676
- } & {
677
- username?: string;
678
- password?: string;
679
- usernameIn?: string;
680
- passwordIn?: string;
681
- } & { [K_2 in Exclude<keyof I_1["auth"], keyof CHAPAuth>]: never; };
682
- } & { [K_3 in Exclude<keyof I_1, keyof Session>]: never; }>(object: I_1): Session;
852
+ ifacePort?: number;
853
+ sessionState?: ISCSISessionState;
854
+ connectionState?: ISCSIConnectionState;
855
+ targetState?: ISCSISessionTargetState;
856
+ devPath?: string;
857
+ size?: string;
858
+ readOnly?: boolean;
859
+ jsonInfo?: string | undefined;
860
+ } & { [K_3 in Exclude<keyof I_1, keyof ISCSISession>]: never; }>(object: I_1): ISCSISession;
683
861
  };
684
862
  export declare const GetSessionResponse: {
685
863
  encode(message: GetSessionResponse, writer?: _m0.Writer): _m0.Writer;
@@ -688,180 +866,206 @@ export declare const GetSessionResponse: {
688
866
  toJSON(message: GetSessionResponse): unknown;
689
867
  create<I extends {
690
868
  sessions?: {
691
- target?: string;
692
- protal?: string;
869
+ target?: {
870
+ portal?: string;
871
+ groupTag?: string;
872
+ target?: string;
873
+ };
693
874
  sid?: string;
694
- ifaceTransport?: TransportName;
695
875
  ifaceInitiatorname?: string;
696
876
  ifaceIpaddress?: string;
697
- sessionState?: SessionState;
698
- connectionState?: ConnectionState;
699
- auth?: {
700
- username?: string;
701
- password?: string;
702
- usernameIn?: string;
703
- passwordIn?: string;
704
- };
877
+ ifacePort?: number;
878
+ sessionState?: ISCSISessionState;
879
+ connectionState?: ISCSIConnectionState;
880
+ targetState?: ISCSISessionTargetState;
881
+ devPath?: string;
882
+ size?: string;
883
+ readOnly?: boolean;
884
+ jsonInfo?: string | undefined;
705
885
  }[];
886
+ code?: ISCSIErrorCode;
887
+ rawMessage?: string;
706
888
  } & {
707
889
  sessions?: {
708
- target?: string;
709
- protal?: string;
890
+ target?: {
891
+ portal?: string;
892
+ groupTag?: string;
893
+ target?: string;
894
+ };
710
895
  sid?: string;
711
- ifaceTransport?: TransportName;
712
896
  ifaceInitiatorname?: string;
713
897
  ifaceIpaddress?: string;
714
- sessionState?: SessionState;
715
- connectionState?: ConnectionState;
716
- auth?: {
717
- username?: string;
718
- password?: string;
719
- usernameIn?: string;
720
- passwordIn?: string;
721
- };
898
+ ifacePort?: number;
899
+ sessionState?: ISCSISessionState;
900
+ connectionState?: ISCSIConnectionState;
901
+ targetState?: ISCSISessionTargetState;
902
+ devPath?: string;
903
+ size?: string;
904
+ readOnly?: boolean;
905
+ jsonInfo?: string | undefined;
722
906
  }[] & ({
723
- target?: string;
724
- protal?: string;
907
+ target?: {
908
+ portal?: string;
909
+ groupTag?: string;
910
+ target?: string;
911
+ };
725
912
  sid?: string;
726
- ifaceTransport?: TransportName;
727
913
  ifaceInitiatorname?: string;
728
914
  ifaceIpaddress?: string;
729
- sessionState?: SessionState;
730
- connectionState?: ConnectionState;
731
- auth?: {
732
- username?: string;
733
- password?: string;
734
- usernameIn?: string;
735
- passwordIn?: string;
736
- };
915
+ ifacePort?: number;
916
+ sessionState?: ISCSISessionState;
917
+ connectionState?: ISCSIConnectionState;
918
+ targetState?: ISCSISessionTargetState;
919
+ devPath?: string;
920
+ size?: string;
921
+ readOnly?: boolean;
922
+ jsonInfo?: string | undefined;
737
923
  } & {
738
- target?: string;
739
- protal?: string;
924
+ target?: {
925
+ portal?: string;
926
+ groupTag?: string;
927
+ target?: string;
928
+ } & {
929
+ portal?: string;
930
+ groupTag?: string;
931
+ target?: string;
932
+ } & { [K in Exclude<keyof I["sessions"][number]["target"], keyof ISCSITarget>]: never; };
740
933
  sid?: string;
741
- ifaceTransport?: TransportName;
742
934
  ifaceInitiatorname?: string;
743
935
  ifaceIpaddress?: string;
744
- sessionState?: SessionState;
745
- connectionState?: ConnectionState;
746
- auth?: {
747
- username?: string;
748
- password?: string;
749
- usernameIn?: string;
750
- passwordIn?: string;
751
- } & {
752
- username?: string;
753
- password?: string;
754
- usernameIn?: string;
755
- passwordIn?: string;
756
- } & { [K in Exclude<keyof I["sessions"][number]["auth"], keyof CHAPAuth>]: never; };
757
- } & { [K_1 in Exclude<keyof I["sessions"][number], keyof Session>]: never; })[] & { [K_2 in Exclude<keyof I["sessions"], keyof {
758
- target?: string;
759
- protal?: string;
936
+ ifacePort?: number;
937
+ sessionState?: ISCSISessionState;
938
+ connectionState?: ISCSIConnectionState;
939
+ targetState?: ISCSISessionTargetState;
940
+ devPath?: string;
941
+ size?: string;
942
+ readOnly?: boolean;
943
+ jsonInfo?: string | undefined;
944
+ } & { [K_1 in Exclude<keyof I["sessions"][number], keyof ISCSISession>]: never; })[] & { [K_2 in Exclude<keyof I["sessions"], keyof {
945
+ target?: {
946
+ portal?: string;
947
+ groupTag?: string;
948
+ target?: string;
949
+ };
760
950
  sid?: string;
761
- ifaceTransport?: TransportName;
762
951
  ifaceInitiatorname?: string;
763
952
  ifaceIpaddress?: string;
764
- sessionState?: SessionState;
765
- connectionState?: ConnectionState;
766
- auth?: {
767
- username?: string;
768
- password?: string;
769
- usernameIn?: string;
770
- passwordIn?: string;
771
- };
953
+ ifacePort?: number;
954
+ sessionState?: ISCSISessionState;
955
+ connectionState?: ISCSIConnectionState;
956
+ targetState?: ISCSISessionTargetState;
957
+ devPath?: string;
958
+ size?: string;
959
+ readOnly?: boolean;
960
+ jsonInfo?: string | undefined;
772
961
  }[]>]: never; };
773
- } & { [K_3 in Exclude<keyof I, "sessions">]: never; }>(base?: I): GetSessionResponse;
962
+ code?: ISCSIErrorCode;
963
+ rawMessage?: string;
964
+ } & { [K_3 in Exclude<keyof I, keyof GetSessionResponse>]: never; }>(base?: I): GetSessionResponse;
774
965
  fromPartial<I_1 extends {
775
966
  sessions?: {
776
- target?: string;
777
- protal?: string;
967
+ target?: {
968
+ portal?: string;
969
+ groupTag?: string;
970
+ target?: string;
971
+ };
778
972
  sid?: string;
779
- ifaceTransport?: TransportName;
780
973
  ifaceInitiatorname?: string;
781
974
  ifaceIpaddress?: string;
782
- sessionState?: SessionState;
783
- connectionState?: ConnectionState;
784
- auth?: {
785
- username?: string;
786
- password?: string;
787
- usernameIn?: string;
788
- passwordIn?: string;
789
- };
975
+ ifacePort?: number;
976
+ sessionState?: ISCSISessionState;
977
+ connectionState?: ISCSIConnectionState;
978
+ targetState?: ISCSISessionTargetState;
979
+ devPath?: string;
980
+ size?: string;
981
+ readOnly?: boolean;
982
+ jsonInfo?: string | undefined;
790
983
  }[];
984
+ code?: ISCSIErrorCode;
985
+ rawMessage?: string;
791
986
  } & {
792
987
  sessions?: {
793
- target?: string;
794
- protal?: string;
988
+ target?: {
989
+ portal?: string;
990
+ groupTag?: string;
991
+ target?: string;
992
+ };
795
993
  sid?: string;
796
- ifaceTransport?: TransportName;
797
994
  ifaceInitiatorname?: string;
798
995
  ifaceIpaddress?: string;
799
- sessionState?: SessionState;
800
- connectionState?: ConnectionState;
801
- auth?: {
802
- username?: string;
803
- password?: string;
804
- usernameIn?: string;
805
- passwordIn?: string;
806
- };
996
+ ifacePort?: number;
997
+ sessionState?: ISCSISessionState;
998
+ connectionState?: ISCSIConnectionState;
999
+ targetState?: ISCSISessionTargetState;
1000
+ devPath?: string;
1001
+ size?: string;
1002
+ readOnly?: boolean;
1003
+ jsonInfo?: string | undefined;
807
1004
  }[] & ({
808
- target?: string;
809
- protal?: string;
1005
+ target?: {
1006
+ portal?: string;
1007
+ groupTag?: string;
1008
+ target?: string;
1009
+ };
810
1010
  sid?: string;
811
- ifaceTransport?: TransportName;
812
1011
  ifaceInitiatorname?: string;
813
1012
  ifaceIpaddress?: string;
814
- sessionState?: SessionState;
815
- connectionState?: ConnectionState;
816
- auth?: {
817
- username?: string;
818
- password?: string;
819
- usernameIn?: string;
820
- passwordIn?: string;
821
- };
1013
+ ifacePort?: number;
1014
+ sessionState?: ISCSISessionState;
1015
+ connectionState?: ISCSIConnectionState;
1016
+ targetState?: ISCSISessionTargetState;
1017
+ devPath?: string;
1018
+ size?: string;
1019
+ readOnly?: boolean;
1020
+ jsonInfo?: string | undefined;
822
1021
  } & {
823
- target?: string;
824
- protal?: string;
1022
+ target?: {
1023
+ portal?: string;
1024
+ groupTag?: string;
1025
+ target?: string;
1026
+ } & {
1027
+ portal?: string;
1028
+ groupTag?: string;
1029
+ target?: string;
1030
+ } & { [K_4 in Exclude<keyof I_1["sessions"][number]["target"], keyof ISCSITarget>]: never; };
825
1031
  sid?: string;
826
- ifaceTransport?: TransportName;
827
1032
  ifaceInitiatorname?: string;
828
1033
  ifaceIpaddress?: string;
829
- sessionState?: SessionState;
830
- connectionState?: ConnectionState;
831
- auth?: {
832
- username?: string;
833
- password?: string;
834
- usernameIn?: string;
835
- passwordIn?: string;
836
- } & {
837
- username?: string;
838
- password?: string;
839
- usernameIn?: string;
840
- passwordIn?: string;
841
- } & { [K_4 in Exclude<keyof I_1["sessions"][number]["auth"], keyof CHAPAuth>]: never; };
842
- } & { [K_5 in Exclude<keyof I_1["sessions"][number], keyof Session>]: never; })[] & { [K_6 in Exclude<keyof I_1["sessions"], keyof {
843
- target?: string;
844
- protal?: string;
1034
+ ifacePort?: number;
1035
+ sessionState?: ISCSISessionState;
1036
+ connectionState?: ISCSIConnectionState;
1037
+ targetState?: ISCSISessionTargetState;
1038
+ devPath?: string;
1039
+ size?: string;
1040
+ readOnly?: boolean;
1041
+ jsonInfo?: string | undefined;
1042
+ } & { [K_5 in Exclude<keyof I_1["sessions"][number], keyof ISCSISession>]: never; })[] & { [K_6 in Exclude<keyof I_1["sessions"], keyof {
1043
+ target?: {
1044
+ portal?: string;
1045
+ groupTag?: string;
1046
+ target?: string;
1047
+ };
845
1048
  sid?: string;
846
- ifaceTransport?: TransportName;
847
1049
  ifaceInitiatorname?: string;
848
1050
  ifaceIpaddress?: string;
849
- sessionState?: SessionState;
850
- connectionState?: ConnectionState;
851
- auth?: {
852
- username?: string;
853
- password?: string;
854
- usernameIn?: string;
855
- passwordIn?: string;
856
- };
1051
+ ifacePort?: number;
1052
+ sessionState?: ISCSISessionState;
1053
+ connectionState?: ISCSIConnectionState;
1054
+ targetState?: ISCSISessionTargetState;
1055
+ devPath?: string;
1056
+ size?: string;
1057
+ readOnly?: boolean;
1058
+ jsonInfo?: string | undefined;
857
1059
  }[]>]: never; };
858
- } & { [K_7 in Exclude<keyof I_1, "sessions">]: never; }>(object: I_1): GetSessionResponse;
1060
+ code?: ISCSIErrorCode;
1061
+ rawMessage?: string;
1062
+ } & { [K_7 in Exclude<keyof I_1, keyof GetSessionResponse>]: never; }>(object: I_1): GetSessionResponse;
859
1063
  };
860
- export declare const CommonRequest: {
861
- encode(message: CommonRequest, writer?: _m0.Writer): _m0.Writer;
862
- decode(input: _m0.Reader | Uint8Array, length?: number): CommonRequest;
863
- fromJSON(object: any): CommonRequest;
864
- toJSON(message: CommonRequest): unknown;
1064
+ export declare const NodeOperationRequest: {
1065
+ encode(message: NodeOperationRequest, writer?: _m0.Writer): _m0.Writer;
1066
+ decode(input: _m0.Reader | Uint8Array, length?: number): NodeOperationRequest;
1067
+ fromJSON(object: any): NodeOperationRequest;
1068
+ toJSON(message: NodeOperationRequest): unknown;
865
1069
  create<I extends {
866
1070
  target?: {
867
1071
  portal?: string;
@@ -878,7 +1082,7 @@ export declare const CommonRequest: {
878
1082
  groupTag?: string;
879
1083
  target?: string;
880
1084
  } & { [K in Exclude<keyof I["target"], keyof ISCSITarget>]: never; };
881
- } & { [K_1 in Exclude<keyof I, "target">]: never; }>(base?: I): CommonRequest;
1085
+ } & { [K_1 in Exclude<keyof I, "target">]: never; }>(base?: I): NodeOperationRequest;
882
1086
  fromPartial<I_1 extends {
883
1087
  target?: {
884
1088
  portal?: string;
@@ -895,7 +1099,27 @@ export declare const CommonRequest: {
895
1099
  groupTag?: string;
896
1100
  target?: string;
897
1101
  } & { [K_2 in Exclude<keyof I_1["target"], keyof ISCSITarget>]: never; };
898
- } & { [K_3 in Exclude<keyof I_1, "target">]: never; }>(object: I_1): CommonRequest;
1102
+ } & { [K_3 in Exclude<keyof I_1, "target">]: never; }>(object: I_1): NodeOperationRequest;
1103
+ };
1104
+ export declare const CommonResponse: {
1105
+ encode(message: CommonResponse, writer?: _m0.Writer): _m0.Writer;
1106
+ decode(input: _m0.Reader | Uint8Array, length?: number): CommonResponse;
1107
+ fromJSON(object: any): CommonResponse;
1108
+ toJSON(message: CommonResponse): unknown;
1109
+ create<I extends {
1110
+ code?: ISCSIErrorCode;
1111
+ rawMessage?: string;
1112
+ } & {
1113
+ code?: ISCSIErrorCode;
1114
+ rawMessage?: string;
1115
+ } & { [K in Exclude<keyof I, keyof CommonResponse>]: never; }>(base?: I): CommonResponse;
1116
+ fromPartial<I_1 extends {
1117
+ code?: ISCSIErrorCode;
1118
+ rawMessage?: string;
1119
+ } & {
1120
+ code?: ISCSIErrorCode;
1121
+ rawMessage?: string;
1122
+ } & { [K_1 in Exclude<keyof I_1, keyof CommonResponse>]: never; }>(object: I_1): CommonResponse;
899
1123
  };
900
1124
  export declare const GetInitiatorsResponse: {
901
1125
  encode(message: GetInitiatorsResponse, writer?: _m0.Writer): _m0.Writer;
@@ -917,21 +1141,21 @@ export interface ISCSIService {
917
1141
  /** Discover targets and add targets to node database if targets exist */
918
1142
  DiscoverTargets(request: DeepPartial<DiscoverTargetsRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<DiscoverTargetsResponse>;
919
1143
  /** Set auth option for added node */
920
- SetNodeAuth(request: DeepPartial<SetAuthRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1144
+ SetNodeAuth(request: DeepPartial<SetAuthRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
921
1145
  /** CreateOrUpdateNode creates new or update existing iSCSI node in iscsid dm */
922
- CreateOrUpdateNode(request: DeepPartial<CreateOrUpdateNodeRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1146
+ CreateOrUpdateNode(request: DeepPartial<CreateOrUpdateNodeRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
923
1147
  /** GetNodes will query information about nodes */
924
1148
  GetNodes(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetNodesResponse>;
925
1149
  /** GetSessions will query information about sessions */
926
1150
  GetSession(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetSessionResponse>;
927
1151
  /** DeleteNode delete iSCSI node from iscsid database */
928
- DeleteNode(request: DeepPartial<CommonRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1152
+ DeleteNode(request: DeepPartial<NodeOperationRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
929
1153
  /** Log into a specified target */
930
- PerformLogin(request: DeepPartial<CommonRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1154
+ PerformLogin(request: DeepPartial<NodeOperationRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
931
1155
  /** Log out of a specified target */
932
- PerformLogout(request: DeepPartial<CommonRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1156
+ PerformLogout(request: DeepPartial<NodeOperationRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
933
1157
  /** Rescan current iSCSI sessions */
934
- PerformRescan(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1158
+ PerformRescan(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
935
1159
  /** GetInitiators response local default initiators */
936
1160
  GetInitiators(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetInitiatorsResponse>;
937
1161
  }
@@ -939,14 +1163,14 @@ export declare class ISCSIServiceClientImpl implements ISCSIService {
939
1163
  private readonly rpc;
940
1164
  constructor(rpc: Rpc);
941
1165
  DiscoverTargets(request: DeepPartial<DiscoverTargetsRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<DiscoverTargetsResponse>;
942
- SetNodeAuth(request: DeepPartial<SetAuthRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
943
- CreateOrUpdateNode(request: DeepPartial<CreateOrUpdateNodeRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1166
+ SetNodeAuth(request: DeepPartial<SetAuthRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
1167
+ CreateOrUpdateNode(request: DeepPartial<CreateOrUpdateNodeRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
944
1168
  GetNodes(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetNodesResponse>;
945
1169
  GetSession(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetSessionResponse>;
946
- DeleteNode(request: DeepPartial<CommonRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
947
- PerformLogin(request: DeepPartial<CommonRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
948
- PerformLogout(request: DeepPartial<CommonRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
949
- PerformRescan(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1170
+ DeleteNode(request: DeepPartial<NodeOperationRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
1171
+ PerformLogin(request: DeepPartial<NodeOperationRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
1172
+ PerformLogout(request: DeepPartial<NodeOperationRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
1173
+ PerformRescan(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
950
1174
  GetInitiators(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetInitiatorsResponse>;
951
1175
  }
952
1176
  export declare const ISCSIServiceDesc: {