GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — master ( bf36a8...01f6d2 )
by
unknown
06:50
created

GetUserToken   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 13
c 1
b 0
f 0
dl 0
loc 53
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A withInstanceId() 0 6 1
A withAppKey() 0 6 1
A withNick() 0 6 1
A withUserId() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\Scsp\V20200702;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AnswerCall answerCall(array $options = [])
9
 * @method AssignTicket assignTicket(array $options = [])
10
 * @method CloseTicket closeTicket(array $options = [])
11
 * @method CreateAgent createAgent(array $options = [])
12
 * @method CreateRole createRole(array $options = [])
13
 * @method CreateSkillGroup createSkillGroup(array $options = [])
14
 * @method CreateTicket createTicket(array $options = [])
15
 * @method DeleteAgent deleteAgent(array $options = [])
16
 * @method DisableRole disableRole(array $options = [])
17
 * @method EnableRole enableRole(array $options = [])
18
 * @method ExecuteActivity executeActivity(array $options = [])
19
 * @method FinishHotlineService finishHotlineService(array $options = [])
20
 * @method GenerateWebSocketSign generateWebSocketSign(array $options = [])
21
 * @method GetAgent getAgent(array $options = [])
22
 * @method GetGrantedRoleIds getGrantedRoleIds(array $options = [])
23
 * @method GetHotlineAgentDetail getHotlineAgentDetail(array $options = [])
24
 * @method GetTicketTemplateSchema getTicketTemplateSchema(array $options = [])
25
 * @method GetUserToken getUserToken(array $options = [])
26
 * @method GrantRoles grantRoles(array $options = [])
27
 * @method HangupCall hangupCall(array $options = [])
28
 * @method ListAgentBySkillGroupId listAgentBySkillGroupId(array $options = [])
29
 * @method ListHotlineRecord listHotlineRecord(array $options = [])
30
 * @method ListOutboundPhoneNumber listOutboundPhoneNumber(array $options = [])
31
 * @method ListSkillGroup listSkillGroup(array $options = [])
32
 * @method QuerySkillGroups querySkillGroups(array $options = [])
33
 * @method RemoveSkillGroup removeSkillGroup(array $options = [])
34
 * @method SearchTicketById searchTicketById(array $options = [])
35
 * @method SendHotlineHeartBeat sendHotlineHeartBeat(array $options = [])
36
 * @method StartCall startCall(array $options = [])
37
 * @method StartHotlineService startHotlineService(array $options = [])
38
 * @method SuspendHotlineService suspendHotlineService(array $options = [])
39
 * @method TransferCallToAgent transferCallToAgent(array $options = [])
40
 * @method TransferCallToPhone transferCallToPhone(array $options = [])
41
 * @method TransferCallToSkillGroup transferCallToSkillGroup(array $options = [])
42
 * @method UpdateAgent updateAgent(array $options = [])
43
 * @method UpdateRole updateRole(array $options = [])
44
 * @method UpdateSkillGroup updateSkillGroup(array $options = [])
45
 * @method UpdateTicket updateTicket(array $options = [])
46
 */
47
class ScspApiResolver extends ApiResolver
48
{
49
}
50
51
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
52
{
53
    /** @var string */
54
    public $product = 'scsp';
55
56
    /** @var string */
57
    public $version = '2020-07-02';
58
59
    /** @var string */
60
    public $method = 'POST';
61
}
62
63
/**
64
 * @method string getClientToken()
65
 * @method string getInstanceId()
66
 * @method string getAccountName()
67
 * @method string getCallId()
68
 * @method string getJobId()
69
 * @method string getConnectionId()
70
 */
71
class AnswerCall extends Rpc
72
{
73
74
    /**
75
     * @param string $value
76
     *
77
     * @return $this
78
     */
79
    public function withClientToken($value)
80
    {
81
        $this->data['ClientToken'] = $value;
82
        $this->options['form_params']['ClientToken'] = $value;
83
84
        return $this;
85
    }
86
87
    /**
88
     * @param string $value
89
     *
90
     * @return $this
91
     */
92
    public function withInstanceId($value)
93
    {
94
        $this->data['InstanceId'] = $value;
95
        $this->options['form_params']['InstanceId'] = $value;
96
97
        return $this;
98
    }
99
100
    /**
101
     * @param string $value
102
     *
103
     * @return $this
104
     */
105
    public function withAccountName($value)
106
    {
107
        $this->data['AccountName'] = $value;
108
        $this->options['form_params']['AccountName'] = $value;
109
110
        return $this;
111
    }
112
113
    /**
114
     * @param string $value
115
     *
116
     * @return $this
117
     */
118
    public function withCallId($value)
119
    {
120
        $this->data['CallId'] = $value;
121
        $this->options['form_params']['CallId'] = $value;
122
123
        return $this;
124
    }
125
126
    /**
127
     * @param string $value
128
     *
129
     * @return $this
130
     */
131
    public function withJobId($value)
132
    {
133
        $this->data['JobId'] = $value;
134
        $this->options['form_params']['JobId'] = $value;
135
136
        return $this;
137
    }
138
139
    /**
140
     * @param string $value
141
     *
142
     * @return $this
143
     */
144
    public function withConnectionId($value)
145
    {
146
        $this->data['ConnectionId'] = $value;
147
        $this->options['form_params']['ConnectionId'] = $value;
148
149
        return $this;
150
    }
151
}
152
153
/**
154
 * @method string getInstanceId()
155
 * @method string getClientToken()
156
 * @method string getTicketId()
157
 * @method string getOperatorId()
158
 * @method string getAcceptorId()
159
 */
160
class AssignTicket extends Rpc
161
{
162
163
    /**
164
     * @param string $value
165
     *
166
     * @return $this
167
     */
168
    public function withInstanceId($value)
169
    {
170
        $this->data['InstanceId'] = $value;
171
        $this->options['form_params']['InstanceId'] = $value;
172
173
        return $this;
174
    }
175
176
    /**
177
     * @param string $value
178
     *
179
     * @return $this
180
     */
181
    public function withClientToken($value)
182
    {
183
        $this->data['ClientToken'] = $value;
184
        $this->options['form_params']['ClientToken'] = $value;
185
186
        return $this;
187
    }
188
189
    /**
190
     * @param string $value
191
     *
192
     * @return $this
193
     */
194
    public function withTicketId($value)
195
    {
196
        $this->data['TicketId'] = $value;
197
        $this->options['form_params']['TicketId'] = $value;
198
199
        return $this;
200
    }
201
202
    /**
203
     * @param string $value
204
     *
205
     * @return $this
206
     */
207
    public function withOperatorId($value)
208
    {
209
        $this->data['OperatorId'] = $value;
210
        $this->options['form_params']['OperatorId'] = $value;
211
212
        return $this;
213
    }
214
215
    /**
216
     * @param string $value
217
     *
218
     * @return $this
219
     */
220
    public function withAcceptorId($value)
221
    {
222
        $this->data['AcceptorId'] = $value;
223
        $this->options['form_params']['AcceptorId'] = $value;
224
225
        return $this;
226
    }
227
}
228
229
/**
230
 * @method string getInstanceId()
231
 * @method string getClientToken()
232
 * @method string getTicketId()
233
 * @method string getActionItems()
234
 * @method string getOperatorId()
235
 */
236
class CloseTicket extends Rpc
237
{
238
239
    /**
240
     * @param string $value
241
     *
242
     * @return $this
243
     */
244
    public function withInstanceId($value)
245
    {
246
        $this->data['InstanceId'] = $value;
247
        $this->options['form_params']['InstanceId'] = $value;
248
249
        return $this;
250
    }
251
252
    /**
253
     * @param string $value
254
     *
255
     * @return $this
256
     */
257
    public function withClientToken($value)
258
    {
259
        $this->data['ClientToken'] = $value;
260
        $this->options['form_params']['ClientToken'] = $value;
261
262
        return $this;
263
    }
264
265
    /**
266
     * @param string $value
267
     *
268
     * @return $this
269
     */
270
    public function withTicketId($value)
271
    {
272
        $this->data['TicketId'] = $value;
273
        $this->options['form_params']['TicketId'] = $value;
274
275
        return $this;
276
    }
277
278
    /**
279
     * @param string $value
280
     *
281
     * @return $this
282
     */
283
    public function withActionItems($value)
284
    {
285
        $this->data['ActionItems'] = $value;
286
        $this->options['form_params']['ActionItems'] = $value;
287
288
        return $this;
289
    }
290
291
    /**
292
     * @param string $value
293
     *
294
     * @return $this
295
     */
296
    public function withOperatorId($value)
297
    {
298
        $this->data['OperatorId'] = $value;
299
        $this->options['form_params']['OperatorId'] = $value;
300
301
        return $this;
302
    }
303
}
304
305
/**
306
 * @method string getClientToken()
307
 * @method string getInstanceId()
308
 * @method string getAccountName()
309
 * @method string getDisplayName()
310
 * @method array getSkillGroupIdList()
311
 */
312
class CreateAgent extends Rpc
313
{
314
315
    /**
316
     * @param string $value
317
     *
318
     * @return $this
319
     */
320
    public function withClientToken($value)
321
    {
322
        $this->data['ClientToken'] = $value;
323
        $this->options['form_params']['ClientToken'] = $value;
324
325
        return $this;
326
    }
327
328
    /**
329
     * @param string $value
330
     *
331
     * @return $this
332
     */
333
    public function withInstanceId($value)
334
    {
335
        $this->data['InstanceId'] = $value;
336
        $this->options['form_params']['InstanceId'] = $value;
337
338
        return $this;
339
    }
340
341
    /**
342
     * @param string $value
343
     *
344
     * @return $this
345
     */
346
    public function withAccountName($value)
347
    {
348
        $this->data['AccountName'] = $value;
349
        $this->options['form_params']['AccountName'] = $value;
350
351
        return $this;
352
    }
353
354
    /**
355
     * @param string $value
356
     *
357
     * @return $this
358
     */
359
    public function withDisplayName($value)
360
    {
361
        $this->data['DisplayName'] = $value;
362
        $this->options['form_params']['DisplayName'] = $value;
363
364
        return $this;
365
    }
366
367
    /**
368
     * @param array $skillGroupIdList
369
     *
370
     * @return $this
371
     */
372
	public function withSkillGroupIdList(array $skillGroupIdList)
373
	{
374
	    $this->data['SkillGroupIdList'] = $skillGroupIdList;
375
		foreach ($skillGroupIdList as $i => $iValue) {
376
			$this->options['form_params']['SkillGroupIdList.' . ($i + 1)] = $iValue;
377
		}
378
379
		return $this;
380
    }
381
}
382
383
/**
384
 * @method string getClientToken()
385
 * @method string getInstanceId()
386
 * @method string getRoleName()
387
 * @method array getPermissionId()
388
 * @method string getOperator()
389
 */
390
class CreateRole extends Rpc
391
{
392
393
    /**
394
     * @param string $value
395
     *
396
     * @return $this
397
     */
398
    public function withClientToken($value)
399
    {
400
        $this->data['ClientToken'] = $value;
401
        $this->options['form_params']['ClientToken'] = $value;
402
403
        return $this;
404
    }
405
406
    /**
407
     * @param string $value
408
     *
409
     * @return $this
410
     */
411
    public function withInstanceId($value)
412
    {
413
        $this->data['InstanceId'] = $value;
414
        $this->options['form_params']['InstanceId'] = $value;
415
416
        return $this;
417
    }
418
419
    /**
420
     * @param string $value
421
     *
422
     * @return $this
423
     */
424
    public function withRoleName($value)
425
    {
426
        $this->data['RoleName'] = $value;
427
        $this->options['form_params']['RoleName'] = $value;
428
429
        return $this;
430
    }
431
432
    /**
433
     * @param array $permissionId
434
     *
435
     * @return $this
436
     */
437
	public function withPermissionId(array $permissionId)
438
	{
439
	    $this->data['PermissionId'] = $permissionId;
440
		foreach ($permissionId as $i => $iValue) {
441
			$this->options['form_params']['PermissionId.' . ($i + 1)] = $iValue;
442
		}
443
444
		return $this;
445
    }
446
447
    /**
448
     * @param string $value
449
     *
450
     * @return $this
451
     */
452
    public function withOperator($value)
453
    {
454
        $this->data['Operator'] = $value;
455
        $this->options['form_params']['Operator'] = $value;
456
457
        return $this;
458
    }
459
}
460
461
/**
462
 * @method string getInstanceId()
463
 * @method string getClientToken()
464
 * @method string getDisplayName()
465
 * @method string getChannelType()
466
 * @method string getSkillGroupName()
467
 * @method string getDescription()
468
 */
469
class CreateSkillGroup extends Rpc
470
{
471
472
    /**
473
     * @param string $value
474
     *
475
     * @return $this
476
     */
477
    public function withInstanceId($value)
478
    {
479
        $this->data['InstanceId'] = $value;
480
        $this->options['form_params']['InstanceId'] = $value;
481
482
        return $this;
483
    }
484
485
    /**
486
     * @param string $value
487
     *
488
     * @return $this
489
     */
490
    public function withClientToken($value)
491
    {
492
        $this->data['ClientToken'] = $value;
493
        $this->options['form_params']['ClientToken'] = $value;
494
495
        return $this;
496
    }
497
498
    /**
499
     * @param string $value
500
     *
501
     * @return $this
502
     */
503
    public function withDisplayName($value)
504
    {
505
        $this->data['DisplayName'] = $value;
506
        $this->options['form_params']['DisplayName'] = $value;
507
508
        return $this;
509
    }
510
511
    /**
512
     * @param string $value
513
     *
514
     * @return $this
515
     */
516
    public function withChannelType($value)
517
    {
518
        $this->data['ChannelType'] = $value;
519
        $this->options['form_params']['ChannelType'] = $value;
520
521
        return $this;
522
    }
523
524
    /**
525
     * @param string $value
526
     *
527
     * @return $this
528
     */
529
    public function withSkillGroupName($value)
530
    {
531
        $this->data['SkillGroupName'] = $value;
532
        $this->options['form_params']['SkillGroupName'] = $value;
533
534
        return $this;
535
    }
536
537
    /**
538
     * @param string $value
539
     *
540
     * @return $this
541
     */
542
    public function withDescription($value)
543
    {
544
        $this->data['Description'] = $value;
545
        $this->options['form_params']['Description'] = $value;
546
547
        return $this;
548
    }
549
}
550
551
/**
552
 * @method string getInstanceId()
553
 * @method string getClientToken()
554
 * @method string getTemplateId()
555
 * @method string getCategoryId()
556
 * @method string getCreatorId()
557
 * @method string getCreatorType()
558
 * @method string getCreatorName()
559
 * @method string getMemberId()
560
 * @method string getMemberName()
561
 * @method string getFromInfo()
562
 * @method string getPriority()
563
 * @method string getCarbonCopy()
564
 * @method string getFormData()
565
 */
566
class CreateTicket extends Rpc
567
{
568
569
    /**
570
     * @param string $value
571
     *
572
     * @return $this
573
     */
574
    public function withInstanceId($value)
575
    {
576
        $this->data['InstanceId'] = $value;
577
        $this->options['form_params']['InstanceId'] = $value;
578
579
        return $this;
580
    }
581
582
    /**
583
     * @param string $value
584
     *
585
     * @return $this
586
     */
587
    public function withClientToken($value)
588
    {
589
        $this->data['ClientToken'] = $value;
590
        $this->options['form_params']['ClientToken'] = $value;
591
592
        return $this;
593
    }
594
595
    /**
596
     * @param string $value
597
     *
598
     * @return $this
599
     */
600
    public function withTemplateId($value)
601
    {
602
        $this->data['TemplateId'] = $value;
603
        $this->options['form_params']['TemplateId'] = $value;
604
605
        return $this;
606
    }
607
608
    /**
609
     * @param string $value
610
     *
611
     * @return $this
612
     */
613
    public function withCategoryId($value)
614
    {
615
        $this->data['CategoryId'] = $value;
616
        $this->options['form_params']['CategoryId'] = $value;
617
618
        return $this;
619
    }
620
621
    /**
622
     * @param string $value
623
     *
624
     * @return $this
625
     */
626
    public function withCreatorId($value)
627
    {
628
        $this->data['CreatorId'] = $value;
629
        $this->options['form_params']['CreatorId'] = $value;
630
631
        return $this;
632
    }
633
634
    /**
635
     * @param string $value
636
     *
637
     * @return $this
638
     */
639
    public function withCreatorType($value)
640
    {
641
        $this->data['CreatorType'] = $value;
642
        $this->options['form_params']['CreatorType'] = $value;
643
644
        return $this;
645
    }
646
647
    /**
648
     * @param string $value
649
     *
650
     * @return $this
651
     */
652
    public function withCreatorName($value)
653
    {
654
        $this->data['CreatorName'] = $value;
655
        $this->options['form_params']['CreatorName'] = $value;
656
657
        return $this;
658
    }
659
660
    /**
661
     * @param string $value
662
     *
663
     * @return $this
664
     */
665
    public function withMemberId($value)
666
    {
667
        $this->data['MemberId'] = $value;
668
        $this->options['form_params']['MemberId'] = $value;
669
670
        return $this;
671
    }
672
673
    /**
674
     * @param string $value
675
     *
676
     * @return $this
677
     */
678
    public function withMemberName($value)
679
    {
680
        $this->data['MemberName'] = $value;
681
        $this->options['form_params']['MemberName'] = $value;
682
683
        return $this;
684
    }
685
686
    /**
687
     * @param string $value
688
     *
689
     * @return $this
690
     */
691
    public function withFromInfo($value)
692
    {
693
        $this->data['FromInfo'] = $value;
694
        $this->options['form_params']['FromInfo'] = $value;
695
696
        return $this;
697
    }
698
699
    /**
700
     * @param string $value
701
     *
702
     * @return $this
703
     */
704
    public function withPriority($value)
705
    {
706
        $this->data['Priority'] = $value;
707
        $this->options['form_params']['Priority'] = $value;
708
709
        return $this;
710
    }
711
712
    /**
713
     * @param string $value
714
     *
715
     * @return $this
716
     */
717
    public function withCarbonCopy($value)
718
    {
719
        $this->data['CarbonCopy'] = $value;
720
        $this->options['form_params']['CarbonCopy'] = $value;
721
722
        return $this;
723
    }
724
725
    /**
726
     * @param string $value
727
     *
728
     * @return $this
729
     */
730
    public function withFormData($value)
731
    {
732
        $this->data['FormData'] = $value;
733
        $this->options['form_params']['FormData'] = $value;
734
735
        return $this;
736
    }
737
}
738
739
/**
740
 * @method string getClientToken()
741
 * @method $this withClientToken($value)
742
 * @method string getInstanceId()
743
 * @method $this withInstanceId($value)
744
 * @method string getAccountName()
745
 * @method $this withAccountName($value)
746
 */
747
class DeleteAgent extends Rpc
748
{
749
750
    /** @var string */
751
    public $method = 'DELETE';
752
}
753
754
/**
755
 * @method string getClientToken()
756
 * @method string getInstanceId()
757
 * @method string getRoleId()
758
 */
759
class DisableRole extends Rpc
760
{
761
762
    /**
763
     * @param string $value
764
     *
765
     * @return $this
766
     */
767
    public function withClientToken($value)
768
    {
769
        $this->data['ClientToken'] = $value;
770
        $this->options['form_params']['ClientToken'] = $value;
771
772
        return $this;
773
    }
774
775
    /**
776
     * @param string $value
777
     *
778
     * @return $this
779
     */
780
    public function withInstanceId($value)
781
    {
782
        $this->data['InstanceId'] = $value;
783
        $this->options['form_params']['InstanceId'] = $value;
784
785
        return $this;
786
    }
787
788
    /**
789
     * @param string $value
790
     *
791
     * @return $this
792
     */
793
    public function withRoleId($value)
794
    {
795
        $this->data['RoleId'] = $value;
796
        $this->options['form_params']['RoleId'] = $value;
797
798
        return $this;
799
    }
800
}
801
802
/**
803
 * @method string getClientToken()
804
 * @method string getInstanceId()
805
 * @method string getRoleId()
806
 */
807
class EnableRole extends Rpc
808
{
809
810
    /**
811
     * @param string $value
812
     *
813
     * @return $this
814
     */
815
    public function withClientToken($value)
816
    {
817
        $this->data['ClientToken'] = $value;
818
        $this->options['form_params']['ClientToken'] = $value;
819
820
        return $this;
821
    }
822
823
    /**
824
     * @param string $value
825
     *
826
     * @return $this
827
     */
828
    public function withInstanceId($value)
829
    {
830
        $this->data['InstanceId'] = $value;
831
        $this->options['form_params']['InstanceId'] = $value;
832
833
        return $this;
834
    }
835
836
    /**
837
     * @param string $value
838
     *
839
     * @return $this
840
     */
841
    public function withRoleId($value)
842
    {
843
        $this->data['RoleId'] = $value;
844
        $this->options['form_params']['RoleId'] = $value;
845
846
        return $this;
847
    }
848
}
849
850
/**
851
 * @method string getInstanceId()
852
 * @method string getClientToken()
853
 * @method string getTicketId()
854
 * @method string getOperatorId()
855
 * @method string getActivityCode()
856
 */
857
class ExecuteActivity extends Rpc
858
{
859
860
    /**
861
     * @param string $value
862
     *
863
     * @return $this
864
     */
865
    public function withInstanceId($value)
866
    {
867
        $this->data['InstanceId'] = $value;
868
        $this->options['form_params']['InstanceId'] = $value;
869
870
        return $this;
871
    }
872
873
    /**
874
     * @param string $value
875
     *
876
     * @return $this
877
     */
878
    public function withClientToken($value)
879
    {
880
        $this->data['ClientToken'] = $value;
881
        $this->options['form_params']['ClientToken'] = $value;
882
883
        return $this;
884
    }
885
886
    /**
887
     * @param string $value
888
     *
889
     * @return $this
890
     */
891
    public function withTicketId($value)
892
    {
893
        $this->data['TicketId'] = $value;
894
        $this->options['form_params']['TicketId'] = $value;
895
896
        return $this;
897
    }
898
899
    /**
900
     * @param string $value
901
     *
902
     * @return $this
903
     */
904
    public function withOperatorId($value)
905
    {
906
        $this->data['OperatorId'] = $value;
907
        $this->options['form_params']['OperatorId'] = $value;
908
909
        return $this;
910
    }
911
912
    /**
913
     * @param string $value
914
     *
915
     * @return $this
916
     */
917
    public function withActivityCode($value)
918
    {
919
        $this->data['ActivityCode'] = $value;
920
        $this->options['form_params']['ActivityCode'] = $value;
921
922
        return $this;
923
    }
924
}
925
926
/**
927
 * @method string getClientToken()
928
 * @method string getInstanceId()
929
 * @method string getAccountName()
930
 */
931
class FinishHotlineService extends Rpc
932
{
933
934
    /**
935
     * @param string $value
936
     *
937
     * @return $this
938
     */
939
    public function withClientToken($value)
940
    {
941
        $this->data['ClientToken'] = $value;
942
        $this->options['form_params']['ClientToken'] = $value;
943
944
        return $this;
945
    }
946
947
    /**
948
     * @param string $value
949
     *
950
     * @return $this
951
     */
952
    public function withInstanceId($value)
953
    {
954
        $this->data['InstanceId'] = $value;
955
        $this->options['form_params']['InstanceId'] = $value;
956
957
        return $this;
958
    }
959
960
    /**
961
     * @param string $value
962
     *
963
     * @return $this
964
     */
965
    public function withAccountName($value)
966
    {
967
        $this->data['AccountName'] = $value;
968
        $this->options['form_params']['AccountName'] = $value;
969
970
        return $this;
971
    }
972
}
973
974
/**
975
 * @method string getClientToken()
976
 * @method string getInstanceId()
977
 * @method string getAccountName()
978
 */
979
class GenerateWebSocketSign extends Rpc
980
{
981
982
    /**
983
     * @param string $value
984
     *
985
     * @return $this
986
     */
987
    public function withClientToken($value)
988
    {
989
        $this->data['ClientToken'] = $value;
990
        $this->options['form_params']['ClientToken'] = $value;
991
992
        return $this;
993
    }
994
995
    /**
996
     * @param string $value
997
     *
998
     * @return $this
999
     */
1000
    public function withInstanceId($value)
1001
    {
1002
        $this->data['InstanceId'] = $value;
1003
        $this->options['form_params']['InstanceId'] = $value;
1004
1005
        return $this;
1006
    }
1007
1008
    /**
1009
     * @param string $value
1010
     *
1011
     * @return $this
1012
     */
1013
    public function withAccountName($value)
1014
    {
1015
        $this->data['AccountName'] = $value;
1016
        $this->options['form_params']['AccountName'] = $value;
1017
1018
        return $this;
1019
    }
1020
}
1021
1022
/**
1023
 * @method string getClientToken()
1024
 * @method $this withClientToken($value)
1025
 * @method string getInstanceId()
1026
 * @method $this withInstanceId($value)
1027
 * @method string getAccountName()
1028
 * @method $this withAccountName($value)
1029
 */
1030
class GetAgent extends Rpc
1031
{
1032
1033
    /** @var string */
1034
    public $method = 'GET';
1035
}
1036
1037
/**
1038
 * @method string getClientToken()
1039
 * @method $this withClientToken($value)
1040
 * @method string getInstanceId()
1041
 * @method $this withInstanceId($value)
1042
 * @method string getAccountName()
1043
 * @method $this withAccountName($value)
1044
 */
1045
class GetGrantedRoleIds extends Rpc
1046
{
1047
1048
    /** @var string */
1049
    public $method = 'GET';
1050
}
1051
1052
/**
1053
 * @method string getClientToken()
1054
 * @method $this withClientToken($value)
1055
 * @method string getInstanceId()
1056
 * @method $this withInstanceId($value)
1057
 * @method string getAccountName()
1058
 * @method $this withAccountName($value)
1059
 */
1060
class GetHotlineAgentDetail extends Rpc
1061
{
1062
1063
    /** @var string */
1064
    public $method = 'GET';
1065
}
1066
1067
/**
1068
 * @method string getInstanceId()
1069
 * @method string getTemplateId()
1070
 */
1071
class GetTicketTemplateSchema extends Rpc
1072
{
1073
1074
    /** @var string */
1075
    public $method = 'GET';
1076
1077
    /**
1078
     * @param string $value
1079
     *
1080
     * @return $this
1081
     */
1082
    public function withInstanceId($value)
1083
    {
1084
        $this->data['InstanceId'] = $value;
1085
        $this->options['form_params']['InstanceId'] = $value;
1086
1087
        return $this;
1088
    }
1089
1090
    /**
1091
     * @param string $value
1092
     *
1093
     * @return $this
1094
     */
1095
    public function withTemplateId($value)
1096
    {
1097
        $this->data['TemplateId'] = $value;
1098
        $this->options['form_params']['TemplateId'] = $value;
1099
1100
        return $this;
1101
    }
1102
}
1103
1104
/**
1105
 * @method string getNick()
1106
 * @method string getInstanceId()
1107
 * @method string getAppKey()
1108
 * @method string getUserId()
1109
 */
1110
class GetUserToken extends Rpc
1111
{
1112
1113
    /**
1114
     * @param string $value
1115
     *
1116
     * @return $this
1117
     */
1118
    public function withNick($value)
1119
    {
1120
        $this->data['Nick'] = $value;
1121
        $this->options['form_params']['Nick'] = $value;
1122
1123
        return $this;
1124
    }
1125
1126
    /**
1127
     * @param string $value
1128
     *
1129
     * @return $this
1130
     */
1131
    public function withInstanceId($value)
1132
    {
1133
        $this->data['InstanceId'] = $value;
1134
        $this->options['form_params']['InstanceId'] = $value;
1135
1136
        return $this;
1137
    }
1138
1139
    /**
1140
     * @param string $value
1141
     *
1142
     * @return $this
1143
     */
1144
    public function withAppKey($value)
1145
    {
1146
        $this->data['AppKey'] = $value;
1147
        $this->options['form_params']['AppKey'] = $value;
1148
1149
        return $this;
1150
    }
1151
1152
    /**
1153
     * @param string $value
1154
     *
1155
     * @return $this
1156
     */
1157
    public function withUserId($value)
1158
    {
1159
        $this->data['UserId'] = $value;
1160
        $this->options['form_params']['UserId'] = $value;
1161
1162
        return $this;
1163
    }
1164
}
1165
1166
/**
1167
 * @method string getClientToken()
1168
 * @method string getInstanceId()
1169
 * @method string getAccountName()
1170
 * @method array getRoleId()
1171
 * @method string getOperator()
1172
 */
1173
class GrantRoles extends Rpc
1174
{
1175
1176
    /**
1177
     * @param string $value
1178
     *
1179
     * @return $this
1180
     */
1181
    public function withClientToken($value)
1182
    {
1183
        $this->data['ClientToken'] = $value;
1184
        $this->options['form_params']['ClientToken'] = $value;
1185
1186
        return $this;
1187
    }
1188
1189
    /**
1190
     * @param string $value
1191
     *
1192
     * @return $this
1193
     */
1194
    public function withInstanceId($value)
1195
    {
1196
        $this->data['InstanceId'] = $value;
1197
        $this->options['form_params']['InstanceId'] = $value;
1198
1199
        return $this;
1200
    }
1201
1202
    /**
1203
     * @param string $value
1204
     *
1205
     * @return $this
1206
     */
1207
    public function withAccountName($value)
1208
    {
1209
        $this->data['AccountName'] = $value;
1210
        $this->options['form_params']['AccountName'] = $value;
1211
1212
        return $this;
1213
    }
1214
1215
    /**
1216
     * @param array $roleId
1217
     *
1218
     * @return $this
1219
     */
1220
	public function withRoleId(array $roleId)
1221
	{
1222
	    $this->data['RoleId'] = $roleId;
1223
		foreach ($roleId as $i => $iValue) {
1224
			$this->options['form_params']['RoleId.' . ($i + 1)] = $iValue;
1225
		}
1226
1227
		return $this;
1228
    }
1229
1230
    /**
1231
     * @param string $value
1232
     *
1233
     * @return $this
1234
     */
1235
    public function withOperator($value)
1236
    {
1237
        $this->data['Operator'] = $value;
1238
        $this->options['form_params']['Operator'] = $value;
1239
1240
        return $this;
1241
    }
1242
}
1243
1244
/**
1245
 * @method string getClientToken()
1246
 * @method string getInstanceId()
1247
 * @method string getAccountName()
1248
 * @method string getCallId()
1249
 * @method string getJobId()
1250
 * @method string getConnectionId()
1251
 */
1252
class HangupCall extends Rpc
1253
{
1254
1255
    /**
1256
     * @param string $value
1257
     *
1258
     * @return $this
1259
     */
1260
    public function withClientToken($value)
1261
    {
1262
        $this->data['ClientToken'] = $value;
1263
        $this->options['form_params']['ClientToken'] = $value;
1264
1265
        return $this;
1266
    }
1267
1268
    /**
1269
     * @param string $value
1270
     *
1271
     * @return $this
1272
     */
1273
    public function withInstanceId($value)
1274
    {
1275
        $this->data['InstanceId'] = $value;
1276
        $this->options['form_params']['InstanceId'] = $value;
1277
1278
        return $this;
1279
    }
1280
1281
    /**
1282
     * @param string $value
1283
     *
1284
     * @return $this
1285
     */
1286
    public function withAccountName($value)
1287
    {
1288
        $this->data['AccountName'] = $value;
1289
        $this->options['form_params']['AccountName'] = $value;
1290
1291
        return $this;
1292
    }
1293
1294
    /**
1295
     * @param string $value
1296
     *
1297
     * @return $this
1298
     */
1299
    public function withCallId($value)
1300
    {
1301
        $this->data['CallId'] = $value;
1302
        $this->options['form_params']['CallId'] = $value;
1303
1304
        return $this;
1305
    }
1306
1307
    /**
1308
     * @param string $value
1309
     *
1310
     * @return $this
1311
     */
1312
    public function withJobId($value)
1313
    {
1314
        $this->data['JobId'] = $value;
1315
        $this->options['form_params']['JobId'] = $value;
1316
1317
        return $this;
1318
    }
1319
1320
    /**
1321
     * @param string $value
1322
     *
1323
     * @return $this
1324
     */
1325
    public function withConnectionId($value)
1326
    {
1327
        $this->data['ConnectionId'] = $value;
1328
        $this->options['form_params']['ConnectionId'] = $value;
1329
1330
        return $this;
1331
    }
1332
}
1333
1334
/**
1335
 * @method string getClientToken()
1336
 * @method $this withClientToken($value)
1337
 * @method string getInstanceId()
1338
 * @method $this withInstanceId($value)
1339
 * @method string getSkillGroupId()
1340
 * @method $this withSkillGroupId($value)
1341
 */
1342
class ListAgentBySkillGroupId extends Rpc
1343
{
1344
1345
    /** @var string */
1346
    public $method = 'GET';
1347
}
1348
1349
/**
1350
 * @method string getClientToken()
1351
 * @method $this withClientToken($value)
1352
 * @method string getInstanceId()
1353
 * @method $this withInstanceId($value)
1354
 * @method string getCallId()
1355
 * @method $this withCallId($value)
1356
 */
1357
class ListHotlineRecord extends Rpc
1358
{
1359
1360
    /** @var string */
1361
    public $method = 'GET';
1362
}
1363
1364
/**
1365
 * @method string getClientToken()
1366
 * @method $this withClientToken($value)
1367
 * @method string getInstanceId()
1368
 * @method $this withInstanceId($value)
1369
 * @method string getAccountName()
1370
 * @method $this withAccountName($value)
1371
 */
1372
class ListOutboundPhoneNumber extends Rpc
1373
{
1374
1375
    /** @var string */
1376
    public $method = 'GET';
1377
}
1378
1379
/**
1380
 * @method string getClientToken()
1381
 * @method $this withClientToken($value)
1382
 * @method string getInstanceId()
1383
 * @method $this withInstanceId($value)
1384
 * @method string getChannelType()
1385
 * @method $this withChannelType($value)
1386
 */
1387
class ListSkillGroup extends Rpc
1388
{
1389
1390
    /** @var string */
1391
    public $method = 'GET';
1392
}
1393
1394
/**
1395
 * @method string getInstanceId()
1396
 * @method $this withInstanceId($value)
1397
 * @method string getClientToken()
1398
 * @method $this withClientToken($value)
1399
 * @method string getPageNo()
1400
 * @method $this withPageNo($value)
1401
 * @method string getPageSize()
1402
 * @method $this withPageSize($value)
1403
 */
1404
class QuerySkillGroups extends Rpc
1405
{
1406
}
1407
1408
/**
1409
 * @method string getInstanceId()
1410
 * @method string getClientToken()
1411
 * @method string getSkillGroupId()
1412
 */
1413
class RemoveSkillGroup extends Rpc
1414
{
1415
1416
    /**
1417
     * @param string $value
1418
     *
1419
     * @return $this
1420
     */
1421
    public function withInstanceId($value)
1422
    {
1423
        $this->data['InstanceId'] = $value;
1424
        $this->options['form_params']['InstanceId'] = $value;
1425
1426
        return $this;
1427
    }
1428
1429
    /**
1430
     * @param string $value
1431
     *
1432
     * @return $this
1433
     */
1434
    public function withClientToken($value)
1435
    {
1436
        $this->data['ClientToken'] = $value;
1437
        $this->options['form_params']['ClientToken'] = $value;
1438
1439
        return $this;
1440
    }
1441
1442
    /**
1443
     * @param string $value
1444
     *
1445
     * @return $this
1446
     */
1447
    public function withSkillGroupId($value)
1448
    {
1449
        $this->data['SkillGroupId'] = $value;
1450
        $this->options['form_params']['SkillGroupId'] = $value;
1451
1452
        return $this;
1453
    }
1454
}
1455
1456
/**
1457
 * @method string getInstanceId()
1458
 * @method string getTicketId()
1459
 */
1460
class SearchTicketById extends Rpc
1461
{
1462
1463
    /** @var string */
1464
    public $method = 'GET';
1465
1466
    /**
1467
     * @param string $value
1468
     *
1469
     * @return $this
1470
     */
1471
    public function withInstanceId($value)
1472
    {
1473
        $this->data['InstanceId'] = $value;
1474
        $this->options['form_params']['InstanceId'] = $value;
1475
1476
        return $this;
1477
    }
1478
1479
    /**
1480
     * @param string $value
1481
     *
1482
     * @return $this
1483
     */
1484
    public function withTicketId($value)
1485
    {
1486
        $this->data['TicketId'] = $value;
1487
        $this->options['form_params']['TicketId'] = $value;
1488
1489
        return $this;
1490
    }
1491
}
1492
1493
/**
1494
 * @method string getClientToken()
1495
 * @method string getInstanceId()
1496
 * @method string getAccountName()
1497
 * @method string getToken()
1498
 */
1499
class SendHotlineHeartBeat extends Rpc
1500
{
1501
1502
    /**
1503
     * @param string $value
1504
     *
1505
     * @return $this
1506
     */
1507
    public function withClientToken($value)
1508
    {
1509
        $this->data['ClientToken'] = $value;
1510
        $this->options['form_params']['ClientToken'] = $value;
1511
1512
        return $this;
1513
    }
1514
1515
    /**
1516
     * @param string $value
1517
     *
1518
     * @return $this
1519
     */
1520
    public function withInstanceId($value)
1521
    {
1522
        $this->data['InstanceId'] = $value;
1523
        $this->options['form_params']['InstanceId'] = $value;
1524
1525
        return $this;
1526
    }
1527
1528
    /**
1529
     * @param string $value
1530
     *
1531
     * @return $this
1532
     */
1533
    public function withAccountName($value)
1534
    {
1535
        $this->data['AccountName'] = $value;
1536
        $this->options['form_params']['AccountName'] = $value;
1537
1538
        return $this;
1539
    }
1540
1541
    /**
1542
     * @param string $value
1543
     *
1544
     * @return $this
1545
     */
1546
    public function withToken($value)
1547
    {
1548
        $this->data['Token'] = $value;
1549
        $this->options['form_params']['Token'] = $value;
1550
1551
        return $this;
1552
    }
1553
}
1554
1555
/**
1556
 * @method string getClientToken()
1557
 * @method string getInstanceId()
1558
 * @method string getAccountName()
1559
 * @method string getCaller()
1560
 * @method string getCallee()
1561
 */
1562
class StartCall extends Rpc
1563
{
1564
1565
    /**
1566
     * @param string $value
1567
     *
1568
     * @return $this
1569
     */
1570
    public function withClientToken($value)
1571
    {
1572
        $this->data['ClientToken'] = $value;
1573
        $this->options['form_params']['ClientToken'] = $value;
1574
1575
        return $this;
1576
    }
1577
1578
    /**
1579
     * @param string $value
1580
     *
1581
     * @return $this
1582
     */
1583
    public function withInstanceId($value)
1584
    {
1585
        $this->data['InstanceId'] = $value;
1586
        $this->options['form_params']['InstanceId'] = $value;
1587
1588
        return $this;
1589
    }
1590
1591
    /**
1592
     * @param string $value
1593
     *
1594
     * @return $this
1595
     */
1596
    public function withAccountName($value)
1597
    {
1598
        $this->data['AccountName'] = $value;
1599
        $this->options['form_params']['AccountName'] = $value;
1600
1601
        return $this;
1602
    }
1603
1604
    /**
1605
     * @param string $value
1606
     *
1607
     * @return $this
1608
     */
1609
    public function withCaller($value)
1610
    {
1611
        $this->data['Caller'] = $value;
1612
        $this->options['form_params']['Caller'] = $value;
1613
1614
        return $this;
1615
    }
1616
1617
    /**
1618
     * @param string $value
1619
     *
1620
     * @return $this
1621
     */
1622
    public function withCallee($value)
1623
    {
1624
        $this->data['Callee'] = $value;
1625
        $this->options['form_params']['Callee'] = $value;
1626
1627
        return $this;
1628
    }
1629
}
1630
1631
/**
1632
 * @method string getClientToken()
1633
 * @method string getInstanceId()
1634
 * @method string getAccountName()
1635
 */
1636
class StartHotlineService extends Rpc
1637
{
1638
1639
    /**
1640
     * @param string $value
1641
     *
1642
     * @return $this
1643
     */
1644
    public function withClientToken($value)
1645
    {
1646
        $this->data['ClientToken'] = $value;
1647
        $this->options['form_params']['ClientToken'] = $value;
1648
1649
        return $this;
1650
    }
1651
1652
    /**
1653
     * @param string $value
1654
     *
1655
     * @return $this
1656
     */
1657
    public function withInstanceId($value)
1658
    {
1659
        $this->data['InstanceId'] = $value;
1660
        $this->options['form_params']['InstanceId'] = $value;
1661
1662
        return $this;
1663
    }
1664
1665
    /**
1666
     * @param string $value
1667
     *
1668
     * @return $this
1669
     */
1670
    public function withAccountName($value)
1671
    {
1672
        $this->data['AccountName'] = $value;
1673
        $this->options['form_params']['AccountName'] = $value;
1674
1675
        return $this;
1676
    }
1677
}
1678
1679
/**
1680
 * @method string getClientToken()
1681
 * @method string getInstanceId()
1682
 * @method string getAccountName()
1683
 * @method string getType()
1684
 */
1685
class SuspendHotlineService extends Rpc
1686
{
1687
1688
    /**
1689
     * @param string $value
1690
     *
1691
     * @return $this
1692
     */
1693
    public function withClientToken($value)
1694
    {
1695
        $this->data['ClientToken'] = $value;
1696
        $this->options['form_params']['ClientToken'] = $value;
1697
1698
        return $this;
1699
    }
1700
1701
    /**
1702
     * @param string $value
1703
     *
1704
     * @return $this
1705
     */
1706
    public function withInstanceId($value)
1707
    {
1708
        $this->data['InstanceId'] = $value;
1709
        $this->options['form_params']['InstanceId'] = $value;
1710
1711
        return $this;
1712
    }
1713
1714
    /**
1715
     * @param string $value
1716
     *
1717
     * @return $this
1718
     */
1719
    public function withAccountName($value)
1720
    {
1721
        $this->data['AccountName'] = $value;
1722
        $this->options['form_params']['AccountName'] = $value;
1723
1724
        return $this;
1725
    }
1726
1727
    /**
1728
     * @param string $value
1729
     *
1730
     * @return $this
1731
     */
1732
    public function withType($value)
1733
    {
1734
        $this->data['Type'] = $value;
1735
        $this->options['form_params']['Type'] = $value;
1736
1737
        return $this;
1738
    }
1739
}
1740
1741
/**
1742
 * @method string getClientToken()
1743
 * @method string getInstanceId()
1744
 * @method string getAccountName()
1745
 * @method string getTargetAccountName()
1746
 * @method string getCallId()
1747
 * @method string getJobId()
1748
 * @method string getConnectionId()
1749
 * @method string getHoldConnectionId()
1750
 * @method string getIsSingleTransfer()
1751
 */
1752
class TransferCallToAgent extends Rpc
1753
{
1754
1755
    /**
1756
     * @param string $value
1757
     *
1758
     * @return $this
1759
     */
1760
    public function withClientToken($value)
1761
    {
1762
        $this->data['ClientToken'] = $value;
1763
        $this->options['form_params']['ClientToken'] = $value;
1764
1765
        return $this;
1766
    }
1767
1768
    /**
1769
     * @param string $value
1770
     *
1771
     * @return $this
1772
     */
1773
    public function withInstanceId($value)
1774
    {
1775
        $this->data['InstanceId'] = $value;
1776
        $this->options['form_params']['InstanceId'] = $value;
1777
1778
        return $this;
1779
    }
1780
1781
    /**
1782
     * @param string $value
1783
     *
1784
     * @return $this
1785
     */
1786
    public function withAccountName($value)
1787
    {
1788
        $this->data['AccountName'] = $value;
1789
        $this->options['form_params']['AccountName'] = $value;
1790
1791
        return $this;
1792
    }
1793
1794
    /**
1795
     * @param string $value
1796
     *
1797
     * @return $this
1798
     */
1799
    public function withTargetAccountName($value)
1800
    {
1801
        $this->data['TargetAccountName'] = $value;
1802
        $this->options['form_params']['TargetAccountName'] = $value;
1803
1804
        return $this;
1805
    }
1806
1807
    /**
1808
     * @param string $value
1809
     *
1810
     * @return $this
1811
     */
1812
    public function withCallId($value)
1813
    {
1814
        $this->data['CallId'] = $value;
1815
        $this->options['form_params']['CallId'] = $value;
1816
1817
        return $this;
1818
    }
1819
1820
    /**
1821
     * @param string $value
1822
     *
1823
     * @return $this
1824
     */
1825
    public function withJobId($value)
1826
    {
1827
        $this->data['JobId'] = $value;
1828
        $this->options['form_params']['JobId'] = $value;
1829
1830
        return $this;
1831
    }
1832
1833
    /**
1834
     * @param string $value
1835
     *
1836
     * @return $this
1837
     */
1838
    public function withConnectionId($value)
1839
    {
1840
        $this->data['ConnectionId'] = $value;
1841
        $this->options['form_params']['ConnectionId'] = $value;
1842
1843
        return $this;
1844
    }
1845
1846
    /**
1847
     * @param string $value
1848
     *
1849
     * @return $this
1850
     */
1851
    public function withHoldConnectionId($value)
1852
    {
1853
        $this->data['HoldConnectionId'] = $value;
1854
        $this->options['form_params']['HoldConnectionId'] = $value;
1855
1856
        return $this;
1857
    }
1858
1859
    /**
1860
     * @param string $value
1861
     *
1862
     * @return $this
1863
     */
1864
    public function withIsSingleTransfer($value)
1865
    {
1866
        $this->data['IsSingleTransfer'] = $value;
1867
        $this->options['form_params']['IsSingleTransfer'] = $value;
1868
1869
        return $this;
1870
    }
1871
}
1872
1873
/**
1874
 * @method string getClientToken()
1875
 * @method string getInstanceId()
1876
 * @method string getAccountName()
1877
 * @method string getCaller()
1878
 * @method string getCallee()
1879
 * @method string getCallId()
1880
 * @method string getJobId()
1881
 * @method string getConnectionId()
1882
 * @method string getHoldConnectionId()
1883
 * @method string getIsSingleTransfer()
1884
 */
1885
class TransferCallToPhone extends Rpc
1886
{
1887
1888
    /**
1889
     * @param string $value
1890
     *
1891
     * @return $this
1892
     */
1893
    public function withClientToken($value)
1894
    {
1895
        $this->data['ClientToken'] = $value;
1896
        $this->options['form_params']['ClientToken'] = $value;
1897
1898
        return $this;
1899
    }
1900
1901
    /**
1902
     * @param string $value
1903
     *
1904
     * @return $this
1905
     */
1906
    public function withInstanceId($value)
1907
    {
1908
        $this->data['InstanceId'] = $value;
1909
        $this->options['form_params']['InstanceId'] = $value;
1910
1911
        return $this;
1912
    }
1913
1914
    /**
1915
     * @param string $value
1916
     *
1917
     * @return $this
1918
     */
1919
    public function withAccountName($value)
1920
    {
1921
        $this->data['AccountName'] = $value;
1922
        $this->options['form_params']['AccountName'] = $value;
1923
1924
        return $this;
1925
    }
1926
1927
    /**
1928
     * @param string $value
1929
     *
1930
     * @return $this
1931
     */
1932
    public function withCaller($value)
1933
    {
1934
        $this->data['Caller'] = $value;
1935
        $this->options['form_params']['Caller'] = $value;
1936
1937
        return $this;
1938
    }
1939
1940
    /**
1941
     * @param string $value
1942
     *
1943
     * @return $this
1944
     */
1945
    public function withCallee($value)
1946
    {
1947
        $this->data['Callee'] = $value;
1948
        $this->options['form_params']['Callee'] = $value;
1949
1950
        return $this;
1951
    }
1952
1953
    /**
1954
     * @param string $value
1955
     *
1956
     * @return $this
1957
     */
1958
    public function withCallId($value)
1959
    {
1960
        $this->data['CallId'] = $value;
1961
        $this->options['form_params']['CallId'] = $value;
1962
1963
        return $this;
1964
    }
1965
1966
    /**
1967
     * @param string $value
1968
     *
1969
     * @return $this
1970
     */
1971
    public function withJobId($value)
1972
    {
1973
        $this->data['JobId'] = $value;
1974
        $this->options['form_params']['JobId'] = $value;
1975
1976
        return $this;
1977
    }
1978
1979
    /**
1980
     * @param string $value
1981
     *
1982
     * @return $this
1983
     */
1984
    public function withConnectionId($value)
1985
    {
1986
        $this->data['ConnectionId'] = $value;
1987
        $this->options['form_params']['ConnectionId'] = $value;
1988
1989
        return $this;
1990
    }
1991
1992
    /**
1993
     * @param string $value
1994
     *
1995
     * @return $this
1996
     */
1997
    public function withHoldConnectionId($value)
1998
    {
1999
        $this->data['HoldConnectionId'] = $value;
2000
        $this->options['form_params']['HoldConnectionId'] = $value;
2001
2002
        return $this;
2003
    }
2004
2005
    /**
2006
     * @param string $value
2007
     *
2008
     * @return $this
2009
     */
2010
    public function withIsSingleTransfer($value)
2011
    {
2012
        $this->data['IsSingleTransfer'] = $value;
2013
        $this->options['form_params']['IsSingleTransfer'] = $value;
2014
2015
        return $this;
2016
    }
2017
}
2018
2019
/**
2020
 * @method string getClientToken()
2021
 * @method string getInstanceId()
2022
 * @method string getAccountName()
2023
 * @method string getSkillGroupId()
2024
 * @method string getCallId()
2025
 * @method string getJobId()
2026
 * @method string getConnectionId()
2027
 * @method string getHoldConnectionId()
2028
 * @method string getIsSingleTransfer()
2029
 */
2030
class TransferCallToSkillGroup extends Rpc
2031
{
2032
2033
    /**
2034
     * @param string $value
2035
     *
2036
     * @return $this
2037
     */
2038
    public function withClientToken($value)
2039
    {
2040
        $this->data['ClientToken'] = $value;
2041
        $this->options['form_params']['ClientToken'] = $value;
2042
2043
        return $this;
2044
    }
2045
2046
    /**
2047
     * @param string $value
2048
     *
2049
     * @return $this
2050
     */
2051
    public function withInstanceId($value)
2052
    {
2053
        $this->data['InstanceId'] = $value;
2054
        $this->options['form_params']['InstanceId'] = $value;
2055
2056
        return $this;
2057
    }
2058
2059
    /**
2060
     * @param string $value
2061
     *
2062
     * @return $this
2063
     */
2064
    public function withAccountName($value)
2065
    {
2066
        $this->data['AccountName'] = $value;
2067
        $this->options['form_params']['AccountName'] = $value;
2068
2069
        return $this;
2070
    }
2071
2072
    /**
2073
     * @param string $value
2074
     *
2075
     * @return $this
2076
     */
2077
    public function withSkillGroupId($value)
2078
    {
2079
        $this->data['SkillGroupId'] = $value;
2080
        $this->options['form_params']['SkillGroupId'] = $value;
2081
2082
        return $this;
2083
    }
2084
2085
    /**
2086
     * @param string $value
2087
     *
2088
     * @return $this
2089
     */
2090
    public function withCallId($value)
2091
    {
2092
        $this->data['CallId'] = $value;
2093
        $this->options['form_params']['CallId'] = $value;
2094
2095
        return $this;
2096
    }
2097
2098
    /**
2099
     * @param string $value
2100
     *
2101
     * @return $this
2102
     */
2103
    public function withJobId($value)
2104
    {
2105
        $this->data['JobId'] = $value;
2106
        $this->options['form_params']['JobId'] = $value;
2107
2108
        return $this;
2109
    }
2110
2111
    /**
2112
     * @param string $value
2113
     *
2114
     * @return $this
2115
     */
2116
    public function withConnectionId($value)
2117
    {
2118
        $this->data['ConnectionId'] = $value;
2119
        $this->options['form_params']['ConnectionId'] = $value;
2120
2121
        return $this;
2122
    }
2123
2124
    /**
2125
     * @param string $value
2126
     *
2127
     * @return $this
2128
     */
2129
    public function withHoldConnectionId($value)
2130
    {
2131
        $this->data['HoldConnectionId'] = $value;
2132
        $this->options['form_params']['HoldConnectionId'] = $value;
2133
2134
        return $this;
2135
    }
2136
2137
    /**
2138
     * @param string $value
2139
     *
2140
     * @return $this
2141
     */
2142
    public function withIsSingleTransfer($value)
2143
    {
2144
        $this->data['IsSingleTransfer'] = $value;
2145
        $this->options['form_params']['IsSingleTransfer'] = $value;
2146
2147
        return $this;
2148
    }
2149
}
2150
2151
/**
2152
 * @method string getClientToken()
2153
 * @method string getInstanceId()
2154
 * @method string getAccountName()
2155
 * @method string getDisplayName()
2156
 * @method array getSkillGroupIdList()
2157
 */
2158
class UpdateAgent extends Rpc
2159
{
2160
2161
    /** @var string */
2162
    public $method = 'PUT';
2163
2164
    /**
2165
     * @param string $value
2166
     *
2167
     * @return $this
2168
     */
2169
    public function withClientToken($value)
2170
    {
2171
        $this->data['ClientToken'] = $value;
2172
        $this->options['form_params']['ClientToken'] = $value;
2173
2174
        return $this;
2175
    }
2176
2177
    /**
2178
     * @param string $value
2179
     *
2180
     * @return $this
2181
     */
2182
    public function withInstanceId($value)
2183
    {
2184
        $this->data['InstanceId'] = $value;
2185
        $this->options['form_params']['InstanceId'] = $value;
2186
2187
        return $this;
2188
    }
2189
2190
    /**
2191
     * @param string $value
2192
     *
2193
     * @return $this
2194
     */
2195
    public function withAccountName($value)
2196
    {
2197
        $this->data['AccountName'] = $value;
2198
        $this->options['form_params']['AccountName'] = $value;
2199
2200
        return $this;
2201
    }
2202
2203
    /**
2204
     * @param string $value
2205
     *
2206
     * @return $this
2207
     */
2208
    public function withDisplayName($value)
2209
    {
2210
        $this->data['DisplayName'] = $value;
2211
        $this->options['form_params']['DisplayName'] = $value;
2212
2213
        return $this;
2214
    }
2215
2216
    /**
2217
     * @param array $skillGroupIdList
2218
     *
2219
     * @return $this
2220
     */
2221
	public function withSkillGroupIdList(array $skillGroupIdList)
2222
	{
2223
	    $this->data['SkillGroupIdList'] = $skillGroupIdList;
2224
		foreach ($skillGroupIdList as $i => $iValue) {
2225
			$this->options['form_params']['SkillGroupIdList.' . ($i + 1)] = $iValue;
2226
		}
2227
2228
		return $this;
2229
    }
2230
}
2231
2232
/**
2233
 * @method string getClientToken()
2234
 * @method string getInstanceId()
2235
 * @method string getRoleId()
2236
 * @method string getRoleName()
2237
 * @method array getPermissionId()
2238
 * @method string getOperator()
2239
 */
2240
class UpdateRole extends Rpc
2241
{
2242
2243
    /**
2244
     * @param string $value
2245
     *
2246
     * @return $this
2247
     */
2248
    public function withClientToken($value)
2249
    {
2250
        $this->data['ClientToken'] = $value;
2251
        $this->options['form_params']['ClientToken'] = $value;
2252
2253
        return $this;
2254
    }
2255
2256
    /**
2257
     * @param string $value
2258
     *
2259
     * @return $this
2260
     */
2261
    public function withInstanceId($value)
2262
    {
2263
        $this->data['InstanceId'] = $value;
2264
        $this->options['form_params']['InstanceId'] = $value;
2265
2266
        return $this;
2267
    }
2268
2269
    /**
2270
     * @param string $value
2271
     *
2272
     * @return $this
2273
     */
2274
    public function withRoleId($value)
2275
    {
2276
        $this->data['RoleId'] = $value;
2277
        $this->options['form_params']['RoleId'] = $value;
2278
2279
        return $this;
2280
    }
2281
2282
    /**
2283
     * @param string $value
2284
     *
2285
     * @return $this
2286
     */
2287
    public function withRoleName($value)
2288
    {
2289
        $this->data['RoleName'] = $value;
2290
        $this->options['form_params']['RoleName'] = $value;
2291
2292
        return $this;
2293
    }
2294
2295
    /**
2296
     * @param array $permissionId
2297
     *
2298
     * @return $this
2299
     */
2300
	public function withPermissionId(array $permissionId)
2301
	{
2302
	    $this->data['PermissionId'] = $permissionId;
2303
		foreach ($permissionId as $i => $iValue) {
2304
			$this->options['form_params']['PermissionId.' . ($i + 1)] = $iValue;
2305
		}
2306
2307
		return $this;
2308
    }
2309
2310
    /**
2311
     * @param string $value
2312
     *
2313
     * @return $this
2314
     */
2315
    public function withOperator($value)
2316
    {
2317
        $this->data['Operator'] = $value;
2318
        $this->options['form_params']['Operator'] = $value;
2319
2320
        return $this;
2321
    }
2322
}
2323
2324
/**
2325
 * @method string getInstanceId()
2326
 * @method $this withInstanceId($value)
2327
 * @method string getClientToken()
2328
 * @method $this withClientToken($value)
2329
 * @method string getSkillGroupId()
2330
 * @method $this withSkillGroupId($value)
2331
 * @method string getDisplayName()
2332
 * @method $this withDisplayName($value)
2333
 * @method string getSkillGroupName()
2334
 * @method $this withSkillGroupName($value)
2335
 * @method string getDescription()
2336
 * @method $this withDescription($value)
2337
 */
2338
class UpdateSkillGroup extends Rpc
2339
{
2340
}
2341
2342
/**
2343
 * @method string getInstanceId()
2344
 * @method string getClientToken()
2345
 * @method string getTicketId()
2346
 * @method string getOperatorId()
2347
 * @method string getFormData()
2348
 */
2349
class UpdateTicket extends Rpc
2350
{
2351
2352
    /**
2353
     * @param string $value
2354
     *
2355
     * @return $this
2356
     */
2357
    public function withInstanceId($value)
2358
    {
2359
        $this->data['InstanceId'] = $value;
2360
        $this->options['form_params']['InstanceId'] = $value;
2361
2362
        return $this;
2363
    }
2364
2365
    /**
2366
     * @param string $value
2367
     *
2368
     * @return $this
2369
     */
2370
    public function withClientToken($value)
2371
    {
2372
        $this->data['ClientToken'] = $value;
2373
        $this->options['form_params']['ClientToken'] = $value;
2374
2375
        return $this;
2376
    }
2377
2378
    /**
2379
     * @param string $value
2380
     *
2381
     * @return $this
2382
     */
2383
    public function withTicketId($value)
2384
    {
2385
        $this->data['TicketId'] = $value;
2386
        $this->options['form_params']['TicketId'] = $value;
2387
2388
        return $this;
2389
    }
2390
2391
    /**
2392
     * @param string $value
2393
     *
2394
     * @return $this
2395
     */
2396
    public function withOperatorId($value)
2397
    {
2398
        $this->data['OperatorId'] = $value;
2399
        $this->options['form_params']['OperatorId'] = $value;
2400
2401
        return $this;
2402
    }
2403
2404
    /**
2405
     * @param string $value
2406
     *
2407
     * @return $this
2408
     */
2409
    public function withFormData($value)
2410
    {
2411
        $this->data['FormData'] = $value;
2412
        $this->options['form_params']['FormData'] = $value;
2413
2414
        return $this;
2415
    }
2416
}
2417