@lazycatcloud/sdk 0.1.474 → 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.
@@ -2,7 +2,7 @@ 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 ErrorCode {
5
+ export declare enum ISCSIErrorCode {
6
6
  /** ISCSI_SUCCESS - command executed successfully. */
7
7
  ISCSI_SUCCESS = 0,
8
8
  /** ISCSI_ERR - generic error code. */
@@ -69,51 +69,60 @@ export declare enum ErrorCode {
69
69
  ISCSI_ERR_CHILD_TERMINATED = 31,
70
70
  /** ISCSI_ERR_SESSION_NOT_CONNECTED - session likely not connected. */
71
71
  ISCSI_ERR_SESSION_NOT_CONNECTED = 32,
72
+ /** ISCSI_MANAGER_ERR - iscsi initiator manager error. (should return raw message) */
73
+ ISCSI_MANAGER_ERR = -1,
72
74
  UNRECOGNIZED = -1
73
75
  }
74
- export declare function errorCodeFromJSON(object: any): ErrorCode;
75
- export declare function errorCodeToJSON(object: ErrorCode): string;
76
- export declare enum AuthType {
76
+ export declare function iSCSIErrorCodeFromJSON(object: any): ISCSIErrorCode;
77
+ export declare function iSCSIErrorCodeToJSON(object: ISCSIErrorCode): string;
78
+ export declare enum ISCSIAuthType {
77
79
  None = 0,
78
80
  CHAP = 1,
79
81
  MutualCHAP = 2,
80
82
  UNRECOGNIZED = -1
81
83
  }
82
- export declare function authTypeFromJSON(object: any): AuthType;
83
- export declare function authTypeToJSON(object: AuthType): string;
84
- export declare enum TransportName {
85
- TRANSPORT_TCP = 0,
86
- 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,
87
89
  UNRECOGNIZED = -1
88
90
  }
89
- export declare function transportNameFromJSON(object: any): TransportName;
90
- export declare function transportNameToJSON(object: TransportName): string;
91
- export declare enum SessionState {
92
- SESSION_LOGGED_IN = 0,
93
- SESSION_FAILED = 1,
94
- SESSION_FREE = 2,
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,
95
97
  UNRECOGNIZED = -1
96
98
  }
97
- export declare function sessionStateFromJSON(object: any): SessionState;
98
- export declare function sessionStateToJSON(object: SessionState): string;
99
- export declare enum ConnectionState {
100
- CONNECTION_FREE = 0,
101
- CONNECTION_TRANSPORT_WAIT = 1,
102
- CONNECTION_IN_LOGIN = 2,
103
- CONNECTION_LOGGED_IN = 3,
104
- CONNECTION_IN_LOGGOUT = 4,
105
- CONNECTION_LOGOUT_REQUESTED = 5,
106
- CONNECTION_CLEANUP_WAIT = 6,
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,
107
107
  UNRECOGNIZED = -1
108
108
  }
109
- export declare function connectionStateFromJSON(object: any): ConnectionState;
110
- export declare function connectionStateToJSON(object: ConnectionState): string;
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,
116
+ UNRECOGNIZED = -1
117
+ }
118
+ export declare function iSCSIConnectionStateFromJSON(object: any): ISCSIConnectionState;
119
+ export declare function iSCSIConnectionStateToJSON(object: ISCSIConnectionState): string;
111
120
  export interface ISCSITarget {
112
121
  portal: string;
113
122
  groupTag: string;
114
123
  target: string;
115
124
  }
116
- export interface CHAPAuth {
125
+ export interface ISCSICHAPAuth {
117
126
  username: string;
118
127
  password: string;
119
128
  usernameIn: string;
@@ -122,9 +131,9 @@ export interface CHAPAuth {
122
131
  export interface DiscoverTargetsRequest {
123
132
  /** ip:port */
124
133
  address: string;
125
- authType: AuthType;
134
+ authType: ISCSIAuthType;
126
135
  /** denpends on auth_type */
127
- auth: CHAPAuth | undefined;
136
+ auth: ISCSICHAPAuth | undefined;
128
137
  /** automatic login at startup */
129
138
  startup: boolean;
130
139
  /** login to discovered targets */
@@ -132,19 +141,20 @@ export interface DiscoverTargetsRequest {
132
141
  }
133
142
  export interface DiscoverTargetsResponse {
134
143
  targets: ISCSITarget[];
144
+ code: ISCSIErrorCode;
145
+ rawMessage: string;
135
146
  }
136
147
  export interface SetAuthRequest {
137
148
  target: ISCSITarget | undefined;
138
- authType: AuthType;
139
- auth: CHAPAuth | undefined;
149
+ authType: ISCSIAuthType;
150
+ auth: ISCSICHAPAuth | undefined;
140
151
  }
141
152
  export interface NodeOptions {
142
153
  name: string;
143
154
  value: string;
144
155
  }
145
- export interface Node {
146
- target: string;
147
- portal: string;
156
+ export interface ISCSINode {
157
+ target: ISCSITarget | undefined;
148
158
  fields: NodeOptions[];
149
159
  }
150
160
  export interface CreateOrUpdateNodeRequest {
@@ -154,25 +164,36 @@ export interface CreateOrUpdateNodeRequest {
154
164
  startup: boolean;
155
165
  }
156
166
  export interface GetNodesResponse {
157
- nodes: Node[];
167
+ nodes: ISCSINode[];
168
+ code: ISCSIErrorCode;
169
+ rawMessage: string;
158
170
  }
159
- export interface Session {
160
- target: string;
161
- protal: string;
171
+ export interface ISCSISession {
172
+ target: ISCSITarget | undefined;
162
173
  sid: string;
163
- ifaceTransport: TransportName;
164
174
  ifaceInitiatorname: string;
165
175
  ifaceIpaddress: string;
166
- sessionState: SessionState;
167
- connectionState: ConnectionState;
168
- 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;
169
184
  }
170
185
  export interface GetSessionResponse {
171
- sessions: Session[];
186
+ sessions: ISCSISession[];
187
+ code: ISCSIErrorCode;
188
+ rawMessage: string;
172
189
  }
173
- export interface CommonRequest {
190
+ export interface NodeOperationRequest {
174
191
  target: ISCSITarget | undefined;
175
192
  }
193
+ export interface CommonResponse {
194
+ code: ISCSIErrorCode;
195
+ rawMessage: string;
196
+ }
176
197
  export interface GetInitiatorsResponse {
177
198
  initiators: string[];
178
199
  }
@@ -200,11 +221,11 @@ export declare const ISCSITarget: {
200
221
  target?: string;
201
222
  } & { [K_1 in Exclude<keyof I_1, keyof ISCSITarget>]: never; }>(object: I_1): ISCSITarget;
202
223
  };
203
- export declare const CHAPAuth: {
204
- encode(message: CHAPAuth, writer?: _m0.Writer): _m0.Writer;
205
- decode(input: _m0.Reader | Uint8Array, length?: number): CHAPAuth;
206
- fromJSON(object: any): CHAPAuth;
207
- 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;
208
229
  create<I extends {
209
230
  username?: string;
210
231
  password?: string;
@@ -215,7 +236,7 @@ export declare const CHAPAuth: {
215
236
  password?: string;
216
237
  usernameIn?: string;
217
238
  passwordIn?: string;
218
- } & { [K in Exclude<keyof I, keyof CHAPAuth>]: never; }>(base?: I): CHAPAuth;
239
+ } & { [K in Exclude<keyof I, keyof ISCSICHAPAuth>]: never; }>(base?: I): ISCSICHAPAuth;
219
240
  fromPartial<I_1 extends {
220
241
  username?: string;
221
242
  password?: string;
@@ -226,7 +247,7 @@ export declare const CHAPAuth: {
226
247
  password?: string;
227
248
  usernameIn?: string;
228
249
  passwordIn?: string;
229
- } & { [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;
230
251
  };
231
252
  export declare const DiscoverTargetsRequest: {
232
253
  encode(message: DiscoverTargetsRequest, writer?: _m0.Writer): _m0.Writer;
@@ -235,7 +256,7 @@ export declare const DiscoverTargetsRequest: {
235
256
  toJSON(message: DiscoverTargetsRequest): unknown;
236
257
  create<I extends {
237
258
  address?: string;
238
- authType?: AuthType;
259
+ authType?: ISCSIAuthType;
239
260
  auth?: {
240
261
  username?: string;
241
262
  password?: string;
@@ -246,7 +267,7 @@ export declare const DiscoverTargetsRequest: {
246
267
  login?: boolean;
247
268
  } & {
248
269
  address?: string;
249
- authType?: AuthType;
270
+ authType?: ISCSIAuthType;
250
271
  auth?: {
251
272
  username?: string;
252
273
  password?: string;
@@ -257,13 +278,13 @@ export declare const DiscoverTargetsRequest: {
257
278
  password?: string;
258
279
  usernameIn?: string;
259
280
  passwordIn?: string;
260
- } & { [K in Exclude<keyof I["auth"], keyof CHAPAuth>]: never; };
281
+ } & { [K in Exclude<keyof I["auth"], keyof ISCSICHAPAuth>]: never; };
261
282
  startup?: boolean;
262
283
  login?: boolean;
263
284
  } & { [K_1 in Exclude<keyof I, keyof DiscoverTargetsRequest>]: never; }>(base?: I): DiscoverTargetsRequest;
264
285
  fromPartial<I_1 extends {
265
286
  address?: string;
266
- authType?: AuthType;
287
+ authType?: ISCSIAuthType;
267
288
  auth?: {
268
289
  username?: string;
269
290
  password?: string;
@@ -274,7 +295,7 @@ export declare const DiscoverTargetsRequest: {
274
295
  login?: boolean;
275
296
  } & {
276
297
  address?: string;
277
- authType?: AuthType;
298
+ authType?: ISCSIAuthType;
278
299
  auth?: {
279
300
  username?: string;
280
301
  password?: string;
@@ -285,7 +306,7 @@ export declare const DiscoverTargetsRequest: {
285
306
  password?: string;
286
307
  usernameIn?: string;
287
308
  passwordIn?: string;
288
- } & { [K_2 in Exclude<keyof I_1["auth"], keyof CHAPAuth>]: never; };
309
+ } & { [K_2 in Exclude<keyof I_1["auth"], keyof ISCSICHAPAuth>]: never; };
289
310
  startup?: boolean;
290
311
  login?: boolean;
291
312
  } & { [K_3 in Exclude<keyof I_1, keyof DiscoverTargetsRequest>]: never; }>(object: I_1): DiscoverTargetsRequest;
@@ -301,6 +322,8 @@ export declare const DiscoverTargetsResponse: {
301
322
  groupTag?: string;
302
323
  target?: string;
303
324
  }[];
325
+ code?: ISCSIErrorCode;
326
+ rawMessage?: string;
304
327
  } & {
305
328
  targets?: {
306
329
  portal?: string;
@@ -319,13 +342,17 @@ export declare const DiscoverTargetsResponse: {
319
342
  groupTag?: string;
320
343
  target?: string;
321
344
  }[]>]: never; };
322
- } & { [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;
323
348
  fromPartial<I_1 extends {
324
349
  targets?: {
325
350
  portal?: string;
326
351
  groupTag?: string;
327
352
  target?: string;
328
353
  }[];
354
+ code?: ISCSIErrorCode;
355
+ rawMessage?: string;
329
356
  } & {
330
357
  targets?: {
331
358
  portal?: string;
@@ -344,7 +371,9 @@ export declare const DiscoverTargetsResponse: {
344
371
  groupTag?: string;
345
372
  target?: string;
346
373
  }[]>]: never; };
347
- } & { [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;
348
377
  };
349
378
  export declare const SetAuthRequest: {
350
379
  encode(message: SetAuthRequest, writer?: _m0.Writer): _m0.Writer;
@@ -357,7 +386,7 @@ export declare const SetAuthRequest: {
357
386
  groupTag?: string;
358
387
  target?: string;
359
388
  };
360
- authType?: AuthType;
389
+ authType?: ISCSIAuthType;
361
390
  auth?: {
362
391
  username?: string;
363
392
  password?: string;
@@ -374,7 +403,7 @@ export declare const SetAuthRequest: {
374
403
  groupTag?: string;
375
404
  target?: string;
376
405
  } & { [K in Exclude<keyof I["target"], keyof ISCSITarget>]: never; };
377
- authType?: AuthType;
406
+ authType?: ISCSIAuthType;
378
407
  auth?: {
379
408
  username?: string;
380
409
  password?: string;
@@ -385,7 +414,7 @@ export declare const SetAuthRequest: {
385
414
  password?: string;
386
415
  usernameIn?: string;
387
416
  passwordIn?: string;
388
- } & { [K_1 in Exclude<keyof I["auth"], keyof CHAPAuth>]: never; };
417
+ } & { [K_1 in Exclude<keyof I["auth"], keyof ISCSICHAPAuth>]: never; };
389
418
  } & { [K_2 in Exclude<keyof I, keyof SetAuthRequest>]: never; }>(base?: I): SetAuthRequest;
390
419
  fromPartial<I_1 extends {
391
420
  target?: {
@@ -393,7 +422,7 @@ export declare const SetAuthRequest: {
393
422
  groupTag?: string;
394
423
  target?: string;
395
424
  };
396
- authType?: AuthType;
425
+ authType?: ISCSIAuthType;
397
426
  auth?: {
398
427
  username?: string;
399
428
  password?: string;
@@ -410,7 +439,7 @@ export declare const SetAuthRequest: {
410
439
  groupTag?: string;
411
440
  target?: string;
412
441
  } & { [K_3 in Exclude<keyof I_1["target"], keyof ISCSITarget>]: never; };
413
- authType?: AuthType;
442
+ authType?: ISCSIAuthType;
414
443
  auth?: {
415
444
  username?: string;
416
445
  password?: string;
@@ -421,7 +450,7 @@ export declare const SetAuthRequest: {
421
450
  password?: string;
422
451
  usernameIn?: string;
423
452
  passwordIn?: string;
424
- } & { [K_4 in Exclude<keyof I_1["auth"], keyof CHAPAuth>]: never; };
453
+ } & { [K_4 in Exclude<keyof I_1["auth"], keyof ISCSICHAPAuth>]: never; };
425
454
  } & { [K_5 in Exclude<keyof I_1, keyof SetAuthRequest>]: never; }>(object: I_1): SetAuthRequest;
426
455
  };
427
456
  export declare const NodeOptions: {
@@ -444,21 +473,31 @@ export declare const NodeOptions: {
444
473
  value?: string;
445
474
  } & { [K_1 in Exclude<keyof I_1, keyof NodeOptions>]: never; }>(object: I_1): NodeOptions;
446
475
  };
447
- export declare const Node: {
448
- encode(message: Node, writer?: _m0.Writer): _m0.Writer;
449
- decode(input: _m0.Reader | Uint8Array, length?: number): Node;
450
- fromJSON(object: any): Node;
451
- 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;
452
481
  create<I extends {
453
- target?: string;
454
- portal?: string;
482
+ target?: {
483
+ portal?: string;
484
+ groupTag?: string;
485
+ target?: string;
486
+ };
455
487
  fields?: {
456
488
  name?: string;
457
489
  value?: string;
458
490
  }[];
459
491
  } & {
460
- target?: string;
461
- 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; };
462
501
  fields?: {
463
502
  name?: string;
464
503
  value?: string;
@@ -468,21 +507,31 @@ export declare const Node: {
468
507
  } & {
469
508
  name?: string;
470
509
  value?: string;
471
- } & { [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 {
472
511
  name?: string;
473
512
  value?: string;
474
513
  }[]>]: never; };
475
- } & { [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;
476
515
  fromPartial<I_1 extends {
477
- target?: string;
478
- portal?: string;
516
+ target?: {
517
+ portal?: string;
518
+ groupTag?: string;
519
+ target?: string;
520
+ };
479
521
  fields?: {
480
522
  name?: string;
481
523
  value?: string;
482
524
  }[];
483
525
  } & {
484
- target?: string;
485
- 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; };
486
535
  fields?: {
487
536
  name?: string;
488
537
  value?: string;
@@ -492,11 +541,11 @@ export declare const Node: {
492
541
  } & {
493
542
  name?: string;
494
543
  value?: string;
495
- } & { [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 {
496
545
  name?: string;
497
546
  value?: string;
498
547
  }[]>]: never; };
499
- } & { [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;
500
549
  };
501
550
  export declare const CreateOrUpdateNodeRequest: {
502
551
  encode(message: CreateOrUpdateNodeRequest, writer?: _m0.Writer): _m0.Writer;
@@ -583,31 +632,49 @@ export declare const GetNodesResponse: {
583
632
  toJSON(message: GetNodesResponse): unknown;
584
633
  create<I extends {
585
634
  nodes?: {
586
- target?: string;
587
- portal?: string;
635
+ target?: {
636
+ portal?: string;
637
+ groupTag?: string;
638
+ target?: string;
639
+ };
588
640
  fields?: {
589
641
  name?: string;
590
642
  value?: string;
591
643
  }[];
592
644
  }[];
645
+ code?: ISCSIErrorCode;
646
+ rawMessage?: string;
593
647
  } & {
594
648
  nodes?: {
595
- target?: string;
596
- portal?: string;
649
+ target?: {
650
+ portal?: string;
651
+ groupTag?: string;
652
+ target?: string;
653
+ };
597
654
  fields?: {
598
655
  name?: string;
599
656
  value?: string;
600
657
  }[];
601
658
  }[] & ({
602
- target?: string;
603
- portal?: string;
659
+ target?: {
660
+ portal?: string;
661
+ groupTag?: string;
662
+ target?: string;
663
+ };
604
664
  fields?: {
605
665
  name?: string;
606
666
  value?: string;
607
667
  }[];
608
668
  } & {
609
- target?: string;
610
- 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; };
611
678
  fields?: {
612
679
  name?: string;
613
680
  value?: string;
@@ -617,46 +684,69 @@ export declare const GetNodesResponse: {
617
684
  } & {
618
685
  name?: string;
619
686
  value?: string;
620
- } & { [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 {
621
688
  name?: string;
622
689
  value?: string;
623
690
  }[]>]: never; };
624
- } & { [K_2 in Exclude<keyof I["nodes"][number], keyof Node>]: never; })[] & { [K_3 in Exclude<keyof I["nodes"], keyof {
625
- target?: string;
626
- 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
+ };
627
697
  fields?: {
628
698
  name?: string;
629
699
  value?: string;
630
700
  }[];
631
701
  }[]>]: never; };
632
- } & { [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;
633
705
  fromPartial<I_1 extends {
634
706
  nodes?: {
635
- target?: string;
636
- portal?: string;
707
+ target?: {
708
+ portal?: string;
709
+ groupTag?: string;
710
+ target?: string;
711
+ };
637
712
  fields?: {
638
713
  name?: string;
639
714
  value?: string;
640
715
  }[];
641
716
  }[];
717
+ code?: ISCSIErrorCode;
718
+ rawMessage?: string;
642
719
  } & {
643
720
  nodes?: {
644
- target?: string;
645
- portal?: string;
721
+ target?: {
722
+ portal?: string;
723
+ groupTag?: string;
724
+ target?: string;
725
+ };
646
726
  fields?: {
647
727
  name?: string;
648
728
  value?: string;
649
729
  }[];
650
730
  }[] & ({
651
- target?: string;
652
- portal?: string;
731
+ target?: {
732
+ portal?: string;
733
+ groupTag?: string;
734
+ target?: string;
735
+ };
653
736
  fields?: {
654
737
  name?: string;
655
738
  value?: string;
656
739
  }[];
657
740
  } & {
658
- target?: string;
659
- 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; };
660
750
  fields?: {
661
751
  name?: string;
662
752
  value?: string;
@@ -666,97 +756,108 @@ export declare const GetNodesResponse: {
666
756
  } & {
667
757
  name?: string;
668
758
  value?: string;
669
- } & { [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 {
670
760
  name?: string;
671
761
  value?: string;
672
762
  }[]>]: never; };
673
- } & { [K_7 in Exclude<keyof I_1["nodes"][number], keyof Node>]: never; })[] & { [K_8 in Exclude<keyof I_1["nodes"], keyof {
674
- target?: string;
675
- 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
+ };
676
769
  fields?: {
677
770
  name?: string;
678
771
  value?: string;
679
772
  }[];
680
773
  }[]>]: never; };
681
- } & { [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;
682
777
  };
683
- export declare const Session: {
684
- encode(message: Session, writer?: _m0.Writer): _m0.Writer;
685
- decode(input: _m0.Reader | Uint8Array, length?: number): Session;
686
- fromJSON(object: any): Session;
687
- 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;
688
783
  create<I extends {
689
- target?: string;
690
- protal?: string;
784
+ target?: {
785
+ portal?: string;
786
+ groupTag?: string;
787
+ target?: string;
788
+ };
691
789
  sid?: string;
692
- ifaceTransport?: TransportName;
693
790
  ifaceInitiatorname?: string;
694
791
  ifaceIpaddress?: string;
695
- sessionState?: SessionState;
696
- connectionState?: ConnectionState;
697
- auth?: {
698
- username?: string;
699
- password?: string;
700
- usernameIn?: string;
701
- passwordIn?: string;
702
- };
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;
703
800
  } & {
704
- target?: string;
705
- 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; };
706
810
  sid?: string;
707
- ifaceTransport?: TransportName;
708
811
  ifaceInitiatorname?: string;
709
812
  ifaceIpaddress?: string;
710
- sessionState?: SessionState;
711
- connectionState?: ConnectionState;
712
- auth?: {
713
- username?: string;
714
- password?: string;
715
- usernameIn?: string;
716
- passwordIn?: string;
717
- } & {
718
- username?: string;
719
- password?: string;
720
- usernameIn?: string;
721
- passwordIn?: string;
722
- } & { [K in Exclude<keyof I["auth"], keyof CHAPAuth>]: never; };
723
- } & { [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;
724
822
  fromPartial<I_1 extends {
725
- target?: string;
726
- protal?: string;
823
+ target?: {
824
+ portal?: string;
825
+ groupTag?: string;
826
+ target?: string;
827
+ };
727
828
  sid?: string;
728
- ifaceTransport?: TransportName;
729
829
  ifaceInitiatorname?: string;
730
830
  ifaceIpaddress?: string;
731
- sessionState?: SessionState;
732
- connectionState?: ConnectionState;
733
- auth?: {
734
- username?: string;
735
- password?: string;
736
- usernameIn?: string;
737
- passwordIn?: string;
738
- };
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;
739
839
  } & {
740
- target?: string;
741
- 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; };
742
849
  sid?: string;
743
- ifaceTransport?: TransportName;
744
850
  ifaceInitiatorname?: string;
745
851
  ifaceIpaddress?: string;
746
- sessionState?: SessionState;
747
- connectionState?: ConnectionState;
748
- auth?: {
749
- username?: string;
750
- password?: string;
751
- usernameIn?: string;
752
- passwordIn?: string;
753
- } & {
754
- username?: string;
755
- password?: string;
756
- usernameIn?: string;
757
- passwordIn?: string;
758
- } & { [K_2 in Exclude<keyof I_1["auth"], keyof CHAPAuth>]: never; };
759
- } & { [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;
760
861
  };
761
862
  export declare const GetSessionResponse: {
762
863
  encode(message: GetSessionResponse, writer?: _m0.Writer): _m0.Writer;
@@ -765,180 +866,206 @@ export declare const GetSessionResponse: {
765
866
  toJSON(message: GetSessionResponse): unknown;
766
867
  create<I extends {
767
868
  sessions?: {
768
- target?: string;
769
- protal?: string;
869
+ target?: {
870
+ portal?: string;
871
+ groupTag?: string;
872
+ target?: string;
873
+ };
770
874
  sid?: string;
771
- ifaceTransport?: TransportName;
772
875
  ifaceInitiatorname?: string;
773
876
  ifaceIpaddress?: string;
774
- sessionState?: SessionState;
775
- connectionState?: ConnectionState;
776
- auth?: {
777
- username?: string;
778
- password?: string;
779
- usernameIn?: string;
780
- passwordIn?: string;
781
- };
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;
782
885
  }[];
886
+ code?: ISCSIErrorCode;
887
+ rawMessage?: string;
783
888
  } & {
784
889
  sessions?: {
785
- target?: string;
786
- protal?: string;
890
+ target?: {
891
+ portal?: string;
892
+ groupTag?: string;
893
+ target?: string;
894
+ };
787
895
  sid?: string;
788
- ifaceTransport?: TransportName;
789
896
  ifaceInitiatorname?: string;
790
897
  ifaceIpaddress?: string;
791
- sessionState?: SessionState;
792
- connectionState?: ConnectionState;
793
- auth?: {
794
- username?: string;
795
- password?: string;
796
- usernameIn?: string;
797
- passwordIn?: string;
798
- };
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;
799
906
  }[] & ({
800
- target?: string;
801
- protal?: string;
907
+ target?: {
908
+ portal?: string;
909
+ groupTag?: string;
910
+ target?: string;
911
+ };
802
912
  sid?: string;
803
- ifaceTransport?: TransportName;
804
913
  ifaceInitiatorname?: string;
805
914
  ifaceIpaddress?: string;
806
- sessionState?: SessionState;
807
- connectionState?: ConnectionState;
808
- auth?: {
809
- username?: string;
810
- password?: string;
811
- usernameIn?: string;
812
- passwordIn?: string;
813
- };
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;
814
923
  } & {
815
- target?: string;
816
- 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; };
817
933
  sid?: string;
818
- ifaceTransport?: TransportName;
819
934
  ifaceInitiatorname?: string;
820
935
  ifaceIpaddress?: string;
821
- sessionState?: SessionState;
822
- connectionState?: ConnectionState;
823
- auth?: {
824
- username?: string;
825
- password?: string;
826
- usernameIn?: string;
827
- passwordIn?: string;
828
- } & {
829
- username?: string;
830
- password?: string;
831
- usernameIn?: string;
832
- passwordIn?: string;
833
- } & { [K in Exclude<keyof I["sessions"][number]["auth"], keyof CHAPAuth>]: never; };
834
- } & { [K_1 in Exclude<keyof I["sessions"][number], keyof Session>]: never; })[] & { [K_2 in Exclude<keyof I["sessions"], keyof {
835
- target?: string;
836
- 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
+ };
837
950
  sid?: string;
838
- ifaceTransport?: TransportName;
839
951
  ifaceInitiatorname?: string;
840
952
  ifaceIpaddress?: string;
841
- sessionState?: SessionState;
842
- connectionState?: ConnectionState;
843
- auth?: {
844
- username?: string;
845
- password?: string;
846
- usernameIn?: string;
847
- passwordIn?: string;
848
- };
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;
849
961
  }[]>]: never; };
850
- } & { [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;
851
965
  fromPartial<I_1 extends {
852
966
  sessions?: {
853
- target?: string;
854
- protal?: string;
967
+ target?: {
968
+ portal?: string;
969
+ groupTag?: string;
970
+ target?: string;
971
+ };
855
972
  sid?: string;
856
- ifaceTransport?: TransportName;
857
973
  ifaceInitiatorname?: string;
858
974
  ifaceIpaddress?: string;
859
- sessionState?: SessionState;
860
- connectionState?: ConnectionState;
861
- auth?: {
862
- username?: string;
863
- password?: string;
864
- usernameIn?: string;
865
- passwordIn?: string;
866
- };
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;
867
983
  }[];
984
+ code?: ISCSIErrorCode;
985
+ rawMessage?: string;
868
986
  } & {
869
987
  sessions?: {
870
- target?: string;
871
- protal?: string;
988
+ target?: {
989
+ portal?: string;
990
+ groupTag?: string;
991
+ target?: string;
992
+ };
872
993
  sid?: string;
873
- ifaceTransport?: TransportName;
874
994
  ifaceInitiatorname?: string;
875
995
  ifaceIpaddress?: string;
876
- sessionState?: SessionState;
877
- connectionState?: ConnectionState;
878
- auth?: {
879
- username?: string;
880
- password?: string;
881
- usernameIn?: string;
882
- passwordIn?: string;
883
- };
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;
884
1004
  }[] & ({
885
- target?: string;
886
- protal?: string;
1005
+ target?: {
1006
+ portal?: string;
1007
+ groupTag?: string;
1008
+ target?: string;
1009
+ };
887
1010
  sid?: string;
888
- ifaceTransport?: TransportName;
889
1011
  ifaceInitiatorname?: string;
890
1012
  ifaceIpaddress?: string;
891
- sessionState?: SessionState;
892
- connectionState?: ConnectionState;
893
- auth?: {
894
- username?: string;
895
- password?: string;
896
- usernameIn?: string;
897
- passwordIn?: string;
898
- };
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;
899
1021
  } & {
900
- target?: string;
901
- 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; };
902
1031
  sid?: string;
903
- ifaceTransport?: TransportName;
904
1032
  ifaceInitiatorname?: string;
905
1033
  ifaceIpaddress?: string;
906
- sessionState?: SessionState;
907
- connectionState?: ConnectionState;
908
- auth?: {
909
- username?: string;
910
- password?: string;
911
- usernameIn?: string;
912
- passwordIn?: string;
913
- } & {
914
- username?: string;
915
- password?: string;
916
- usernameIn?: string;
917
- passwordIn?: string;
918
- } & { [K_4 in Exclude<keyof I_1["sessions"][number]["auth"], keyof CHAPAuth>]: never; };
919
- } & { [K_5 in Exclude<keyof I_1["sessions"][number], keyof Session>]: never; })[] & { [K_6 in Exclude<keyof I_1["sessions"], keyof {
920
- target?: string;
921
- 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
+ };
922
1048
  sid?: string;
923
- ifaceTransport?: TransportName;
924
1049
  ifaceInitiatorname?: string;
925
1050
  ifaceIpaddress?: string;
926
- sessionState?: SessionState;
927
- connectionState?: ConnectionState;
928
- auth?: {
929
- username?: string;
930
- password?: string;
931
- usernameIn?: string;
932
- passwordIn?: string;
933
- };
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;
934
1059
  }[]>]: never; };
935
- } & { [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;
936
1063
  };
937
- export declare const CommonRequest: {
938
- encode(message: CommonRequest, writer?: _m0.Writer): _m0.Writer;
939
- decode(input: _m0.Reader | Uint8Array, length?: number): CommonRequest;
940
- fromJSON(object: any): CommonRequest;
941
- 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;
942
1069
  create<I extends {
943
1070
  target?: {
944
1071
  portal?: string;
@@ -955,7 +1082,7 @@ export declare const CommonRequest: {
955
1082
  groupTag?: string;
956
1083
  target?: string;
957
1084
  } & { [K in Exclude<keyof I["target"], keyof ISCSITarget>]: never; };
958
- } & { [K_1 in Exclude<keyof I, "target">]: never; }>(base?: I): CommonRequest;
1085
+ } & { [K_1 in Exclude<keyof I, "target">]: never; }>(base?: I): NodeOperationRequest;
959
1086
  fromPartial<I_1 extends {
960
1087
  target?: {
961
1088
  portal?: string;
@@ -972,7 +1099,27 @@ export declare const CommonRequest: {
972
1099
  groupTag?: string;
973
1100
  target?: string;
974
1101
  } & { [K_2 in Exclude<keyof I_1["target"], keyof ISCSITarget>]: never; };
975
- } & { [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;
976
1123
  };
977
1124
  export declare const GetInitiatorsResponse: {
978
1125
  encode(message: GetInitiatorsResponse, writer?: _m0.Writer): _m0.Writer;
@@ -994,21 +1141,21 @@ export interface ISCSIService {
994
1141
  /** Discover targets and add targets to node database if targets exist */
995
1142
  DiscoverTargets(request: DeepPartial<DiscoverTargetsRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<DiscoverTargetsResponse>;
996
1143
  /** Set auth option for added node */
997
- SetNodeAuth(request: DeepPartial<SetAuthRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1144
+ SetNodeAuth(request: DeepPartial<SetAuthRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
998
1145
  /** CreateOrUpdateNode creates new or update existing iSCSI node in iscsid dm */
999
- CreateOrUpdateNode(request: DeepPartial<CreateOrUpdateNodeRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1146
+ CreateOrUpdateNode(request: DeepPartial<CreateOrUpdateNodeRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
1000
1147
  /** GetNodes will query information about nodes */
1001
1148
  GetNodes(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetNodesResponse>;
1002
1149
  /** GetSessions will query information about sessions */
1003
1150
  GetSession(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetSessionResponse>;
1004
1151
  /** DeleteNode delete iSCSI node from iscsid database */
1005
- DeleteNode(request: DeepPartial<CommonRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1152
+ DeleteNode(request: DeepPartial<NodeOperationRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
1006
1153
  /** Log into a specified target */
1007
- PerformLogin(request: DeepPartial<CommonRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1154
+ PerformLogin(request: DeepPartial<NodeOperationRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
1008
1155
  /** Log out of a specified target */
1009
- PerformLogout(request: DeepPartial<CommonRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1156
+ PerformLogout(request: DeepPartial<NodeOperationRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
1010
1157
  /** Rescan current iSCSI sessions */
1011
- PerformRescan(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1158
+ PerformRescan(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<CommonResponse>;
1012
1159
  /** GetInitiators response local default initiators */
1013
1160
  GetInitiators(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetInitiatorsResponse>;
1014
1161
  }
@@ -1016,14 +1163,14 @@ export declare class ISCSIServiceClientImpl implements ISCSIService {
1016
1163
  private readonly rpc;
1017
1164
  constructor(rpc: Rpc);
1018
1165
  DiscoverTargets(request: DeepPartial<DiscoverTargetsRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<DiscoverTargetsResponse>;
1019
- SetNodeAuth(request: DeepPartial<SetAuthRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1020
- 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>;
1021
1168
  GetNodes(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetNodesResponse>;
1022
1169
  GetSession(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetSessionResponse>;
1023
- DeleteNode(request: DeepPartial<CommonRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1024
- PerformLogin(request: DeepPartial<CommonRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1025
- PerformLogout(request: DeepPartial<CommonRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
1026
- 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>;
1027
1174
  GetInitiators(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetInitiatorsResponse>;
1028
1175
  }
1029
1176
  export declare const ISCSIServiceDesc: {