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 ( f36ce2...5dde16 )
by
unknown
06:36
created

SearchTicketList::withInstanceId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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