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 ( b51e18...1472d9 )
by
unknown
05:45
created

CreateFile::withClientToken()   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\Codeup\V20200414;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AddGroupMember addGroupMember(array $options = [])
9
 * @method AddRepositoryMember addRepositoryMember(array $options = [])
10
 * @method CreateFile createFile(array $options = [])
11
 * @method CreateRepository createRepository(array $options = [])
12
 * @method CreateRepositoryGroup createRepositoryGroup(array $options = [])
13
 * @method DeleteFile deleteFile(array $options = [])
14
 * @method DeleteGroupMember deleteGroupMember(array $options = [])
15
 * @method DeleteRepository deleteRepository(array $options = [])
16
 * @method DeleteRepositoryGroup deleteRepositoryGroup(array $options = [])
17
 * @method DeleteRepositoryMember deleteRepositoryMember(array $options = [])
18
 * @method GetCodeupOrganization getCodeupOrganization(array $options = [])
19
 * @method GetFileBlobs getFileBlobs(array $options = [])
20
 * @method ListGroupMember listGroupMember(array $options = [])
21
 * @method ListRepositoryMember listRepositoryMember(array $options = [])
22
 * @method ListRepositoryTree listRepositoryTree(array $options = [])
23
 * @method UpdateFile updateFile(array $options = [])
24
 * @method UpdateGroupMember updateGroupMember(array $options = [])
25
 * @method UpdateRepositoryMember updateRepositoryMember(array $options = [])
26
 */
27
class CodeupApiResolver extends ApiResolver
28
{
29
}
30
31
class Roa extends \AlibabaCloud\Client\Resolver\Roa
32
{
33
    /** @var string */
34
    public $product = 'codeup';
35
36
    /** @var string */
37
    public $version = '2020-04-14';
38
39
    /** @var string */
40
    public $method = 'DELETE';
41
}
42
43
/**
44
 * @method string getOrganizationId()
45
 * @method string getSubUserId()
46
 * @method string getClientToken()
47
 * @method string getGroupId()
48
 * @method $this withGroupId($value)
49
 * @method string getAccessToken()
50
 */
51
class AddGroupMember extends Roa
52
{
53
    /** @var string */
54
    public $pathPattern = '/api/v4/groups/[GroupId]/members';
55
56
    /** @var string */
57
    public $method = 'POST';
58
59
    /**
60
     * @param string $value
61
     *
62
     * @return $this
63
     */
64
    public function withOrganizationId($value)
65
    {
66
        $this->data['OrganizationId'] = $value;
67
        $this->options['query']['OrganizationId'] = $value;
68
69
        return $this;
70
    }
71
72
    /**
73
     * @param string $value
74
     *
75
     * @return $this
76
     */
77
    public function withSubUserId($value)
78
    {
79
        $this->data['SubUserId'] = $value;
80
        $this->options['query']['SubUserId'] = $value;
81
82
        return $this;
83
    }
84
85
    /**
86
     * @param string $value
87
     *
88
     * @return $this
89
     */
90
    public function withClientToken($value)
91
    {
92
        $this->data['ClientToken'] = $value;
93
        $this->options['query']['ClientToken'] = $value;
94
95
        return $this;
96
    }
97
98
    /**
99
     * @param string $value
100
     *
101
     * @return $this
102
     */
103
    public function withAccessToken($value)
104
    {
105
        $this->data['AccessToken'] = $value;
106
        $this->options['query']['AccessToken'] = $value;
107
108
        return $this;
109
    }
110
}
111
112
/**
113
 * @method string getOrganizationId()
114
 * @method string getSubUserId()
115
 * @method string getClientToken()
116
 * @method string getAccessToken()
117
 * @method string getProjectId()
118
 * @method $this withProjectId($value)
119
 */
120
class AddRepositoryMember extends Roa
121
{
122
    /** @var string */
123
    public $pathPattern = '/api/v4/projects/[ProjectId]/members';
124
125
    /** @var string */
126
    public $method = 'POST';
127
128
    /**
129
     * @param string $value
130
     *
131
     * @return $this
132
     */
133
    public function withOrganizationId($value)
134
    {
135
        $this->data['OrganizationId'] = $value;
136
        $this->options['query']['OrganizationId'] = $value;
137
138
        return $this;
139
    }
140
141
    /**
142
     * @param string $value
143
     *
144
     * @return $this
145
     */
146
    public function withSubUserId($value)
147
    {
148
        $this->data['SubUserId'] = $value;
149
        $this->options['query']['SubUserId'] = $value;
150
151
        return $this;
152
    }
153
154
    /**
155
     * @param string $value
156
     *
157
     * @return $this
158
     */
159
    public function withClientToken($value)
160
    {
161
        $this->data['ClientToken'] = $value;
162
        $this->options['query']['ClientToken'] = $value;
163
164
        return $this;
165
    }
166
167
    /**
168
     * @param string $value
169
     *
170
     * @return $this
171
     */
172
    public function withAccessToken($value)
173
    {
174
        $this->data['AccessToken'] = $value;
175
        $this->options['query']['AccessToken'] = $value;
176
177
        return $this;
178
    }
179
}
180
181
/**
182
 * @method string getOrganizationId()
183
 * @method string getSubUserId()
184
 * @method string getClientToken()
185
 * @method string getAccessToken()
186
 * @method string getProjectId()
187
 * @method $this withProjectId($value)
188
 */
189
class CreateFile extends Roa
190
{
191
    /** @var string */
192
    public $pathPattern = '/api/v3/projects/[ProjectId]/repository/files';
193
194
    /** @var string */
195
    public $method = 'POST';
196
197
    /**
198
     * @param string $value
199
     *
200
     * @return $this
201
     */
202
    public function withOrganizationId($value)
203
    {
204
        $this->data['OrganizationId'] = $value;
205
        $this->options['query']['OrganizationId'] = $value;
206
207
        return $this;
208
    }
209
210
    /**
211
     * @param string $value
212
     *
213
     * @return $this
214
     */
215
    public function withSubUserId($value)
216
    {
217
        $this->data['SubUserId'] = $value;
218
        $this->options['query']['SubUserId'] = $value;
219
220
        return $this;
221
    }
222
223
    /**
224
     * @param string $value
225
     *
226
     * @return $this
227
     */
228
    public function withClientToken($value)
229
    {
230
        $this->data['ClientToken'] = $value;
231
        $this->options['query']['ClientToken'] = $value;
232
233
        return $this;
234
    }
235
236
    /**
237
     * @param string $value
238
     *
239
     * @return $this
240
     */
241
    public function withAccessToken($value)
242
    {
243
        $this->data['AccessToken'] = $value;
244
        $this->options['query']['AccessToken'] = $value;
245
246
        return $this;
247
    }
248
}
249
250
/**
251
 * @method string getOrganizationId()
252
 * @method string getSubUserId()
253
 * @method string getClientToken()
254
 * @method string getAccessToken()
255
 * @method string getSync()
256
 * @method string getCreateParentPath()
257
 */
258
class CreateRepository extends Roa
259
{
260
    /** @var string */
261
    public $pathPattern = '/api/v3/projects';
262
263
    /** @var string */
264
    public $method = 'POST';
265
266
    /**
267
     * @param string $value
268
     *
269
     * @return $this
270
     */
271
    public function withOrganizationId($value)
272
    {
273
        $this->data['OrganizationId'] = $value;
274
        $this->options['query']['OrganizationId'] = $value;
275
276
        return $this;
277
    }
278
279
    /**
280
     * @param string $value
281
     *
282
     * @return $this
283
     */
284
    public function withSubUserId($value)
285
    {
286
        $this->data['SubUserId'] = $value;
287
        $this->options['query']['SubUserId'] = $value;
288
289
        return $this;
290
    }
291
292
    /**
293
     * @param string $value
294
     *
295
     * @return $this
296
     */
297
    public function withClientToken($value)
298
    {
299
        $this->data['ClientToken'] = $value;
300
        $this->options['query']['ClientToken'] = $value;
301
302
        return $this;
303
    }
304
305
    /**
306
     * @param string $value
307
     *
308
     * @return $this
309
     */
310
    public function withAccessToken($value)
311
    {
312
        $this->data['AccessToken'] = $value;
313
        $this->options['query']['AccessToken'] = $value;
314
315
        return $this;
316
    }
317
318
    /**
319
     * @param string $value
320
     *
321
     * @return $this
322
     */
323
    public function withSync($value)
324
    {
325
        $this->data['Sync'] = $value;
326
        $this->options['query']['Sync'] = $value;
327
328
        return $this;
329
    }
330
331
    /**
332
     * @param string $value
333
     *
334
     * @return $this
335
     */
336
    public function withCreateParentPath($value)
337
    {
338
        $this->data['CreateParentPath'] = $value;
339
        $this->options['query']['CreateParentPath'] = $value;
340
341
        return $this;
342
    }
343
}
344
345
/**
346
 * @method string getOrganizationId()
347
 * @method string getSubUserId()
348
 * @method string getClientToken()
349
 * @method string getAccessToken()
350
 */
351
class CreateRepositoryGroup extends Roa
352
{
353
    /** @var string */
354
    public $pathPattern = '/api/v3/groups';
355
356
    /** @var string */
357
    public $method = 'POST';
358
359
    /**
360
     * @param string $value
361
     *
362
     * @return $this
363
     */
364
    public function withOrganizationId($value)
365
    {
366
        $this->data['OrganizationId'] = $value;
367
        $this->options['query']['OrganizationId'] = $value;
368
369
        return $this;
370
    }
371
372
    /**
373
     * @param string $value
374
     *
375
     * @return $this
376
     */
377
    public function withSubUserId($value)
378
    {
379
        $this->data['SubUserId'] = $value;
380
        $this->options['query']['SubUserId'] = $value;
381
382
        return $this;
383
    }
384
385
    /**
386
     * @param string $value
387
     *
388
     * @return $this
389
     */
390
    public function withClientToken($value)
391
    {
392
        $this->data['ClientToken'] = $value;
393
        $this->options['query']['ClientToken'] = $value;
394
395
        return $this;
396
    }
397
398
    /**
399
     * @param string $value
400
     *
401
     * @return $this
402
     */
403
    public function withAccessToken($value)
404
    {
405
        $this->data['AccessToken'] = $value;
406
        $this->options['query']['AccessToken'] = $value;
407
408
        return $this;
409
    }
410
}
411
412
/**
413
 * @method string getOrganizationId()
414
 * @method string getSubUserId()
415
 * @method string getFilePath()
416
 * @method string getAccessToken()
417
 * @method string getCommitMessage()
418
 * @method string getProjectId()
419
 * @method $this withProjectId($value)
420
 * @method string getBranchName()
421
 */
422
class DeleteFile extends Roa
423
{
424
    /** @var string */
425
    public $pathPattern = '/api/v3/projects/[ProjectId]/repository/files';
426
427
    /**
428
     * @param string $value
429
     *
430
     * @return $this
431
     */
432
    public function withOrganizationId($value)
433
    {
434
        $this->data['OrganizationId'] = $value;
435
        $this->options['query']['OrganizationId'] = $value;
436
437
        return $this;
438
    }
439
440
    /**
441
     * @param string $value
442
     *
443
     * @return $this
444
     */
445
    public function withSubUserId($value)
446
    {
447
        $this->data['SubUserId'] = $value;
448
        $this->options['query']['SubUserId'] = $value;
449
450
        return $this;
451
    }
452
453
    /**
454
     * @param string $value
455
     *
456
     * @return $this
457
     */
458
    public function withFilePath($value)
459
    {
460
        $this->data['FilePath'] = $value;
461
        $this->options['query']['FilePath'] = $value;
462
463
        return $this;
464
    }
465
466
    /**
467
     * @param string $value
468
     *
469
     * @return $this
470
     */
471
    public function withAccessToken($value)
472
    {
473
        $this->data['AccessToken'] = $value;
474
        $this->options['query']['AccessToken'] = $value;
475
476
        return $this;
477
    }
478
479
    /**
480
     * @param string $value
481
     *
482
     * @return $this
483
     */
484
    public function withCommitMessage($value)
485
    {
486
        $this->data['CommitMessage'] = $value;
487
        $this->options['query']['CommitMessage'] = $value;
488
489
        return $this;
490
    }
491
492
    /**
493
     * @param string $value
494
     *
495
     * @return $this
496
     */
497
    public function withBranchName($value)
498
    {
499
        $this->data['BranchName'] = $value;
500
        $this->options['query']['BranchName'] = $value;
501
502
        return $this;
503
    }
504
}
505
506
/**
507
 * @method string getOrganizationId()
508
 * @method string getSubUserId()
509
 * @method string getGroupId()
510
 * @method $this withGroupId($value)
511
 * @method string getAccessToken()
512
 * @method string getUserId()
513
 * @method $this withUserId($value)
514
 */
515
class DeleteGroupMember extends Roa
516
{
517
    /** @var string */
518
    public $pathPattern = '/api/v3/groups/[GroupId]/members/[UserId]';
519
520
    /**
521
     * @param string $value
522
     *
523
     * @return $this
524
     */
525
    public function withOrganizationId($value)
526
    {
527
        $this->data['OrganizationId'] = $value;
528
        $this->options['query']['OrganizationId'] = $value;
529
530
        return $this;
531
    }
532
533
    /**
534
     * @param string $value
535
     *
536
     * @return $this
537
     */
538
    public function withSubUserId($value)
539
    {
540
        $this->data['SubUserId'] = $value;
541
        $this->options['query']['SubUserId'] = $value;
542
543
        return $this;
544
    }
545
546
    /**
547
     * @param string $value
548
     *
549
     * @return $this
550
     */
551
    public function withAccessToken($value)
552
    {
553
        $this->data['AccessToken'] = $value;
554
        $this->options['query']['AccessToken'] = $value;
555
556
        return $this;
557
    }
558
}
559
560
/**
561
 * @method string getOrganizationId()
562
 * @method string getSubUserId()
563
 * @method string getAccessToken()
564
 * @method string getProjectId()
565
 * @method $this withProjectId($value)
566
 */
567
class DeleteRepository extends Roa
568
{
569
    /** @var string */
570
    public $pathPattern = '/api/v3/projects/[ProjectId]/remove';
571
572
    /**
573
     * @param string $value
574
     *
575
     * @return $this
576
     */
577
    public function withOrganizationId($value)
578
    {
579
        $this->data['OrganizationId'] = $value;
580
        $this->options['query']['OrganizationId'] = $value;
581
582
        return $this;
583
    }
584
585
    /**
586
     * @param string $value
587
     *
588
     * @return $this
589
     */
590
    public function withSubUserId($value)
591
    {
592
        $this->data['SubUserId'] = $value;
593
        $this->options['query']['SubUserId'] = $value;
594
595
        return $this;
596
    }
597
598
    /**
599
     * @param string $value
600
     *
601
     * @return $this
602
     */
603
    public function withAccessToken($value)
604
    {
605
        $this->data['AccessToken'] = $value;
606
        $this->options['query']['AccessToken'] = $value;
607
608
        return $this;
609
    }
610
}
611
612
/**
613
 * @method string getOrganizationId()
614
 * @method string getSubUserId()
615
 * @method string getGroupId()
616
 * @method $this withGroupId($value)
617
 * @method string getAccessToken()
618
 */
619
class DeleteRepositoryGroup extends Roa
620
{
621
    /** @var string */
622
    public $pathPattern = '/api/v3/groups/[GroupId]';
623
624
    /**
625
     * @param string $value
626
     *
627
     * @return $this
628
     */
629
    public function withOrganizationId($value)
630
    {
631
        $this->data['OrganizationId'] = $value;
632
        $this->options['query']['OrganizationId'] = $value;
633
634
        return $this;
635
    }
636
637
    /**
638
     * @param string $value
639
     *
640
     * @return $this
641
     */
642
    public function withSubUserId($value)
643
    {
644
        $this->data['SubUserId'] = $value;
645
        $this->options['query']['SubUserId'] = $value;
646
647
        return $this;
648
    }
649
650
    /**
651
     * @param string $value
652
     *
653
     * @return $this
654
     */
655
    public function withAccessToken($value)
656
    {
657
        $this->data['AccessToken'] = $value;
658
        $this->options['query']['AccessToken'] = $value;
659
660
        return $this;
661
    }
662
}
663
664
/**
665
 * @method string getOrganizationId()
666
 * @method string getSubUserId()
667
 * @method string getAccessToken()
668
 * @method string getProjectId()
669
 * @method $this withProjectId($value)
670
 * @method string getUserId()
671
 * @method $this withUserId($value)
672
 */
673
class DeleteRepositoryMember extends Roa
674
{
675
    /** @var string */
676
    public $pathPattern = '/api/v3/projects/[ProjectId]/members/[UserId]';
677
678
    /**
679
     * @param string $value
680
     *
681
     * @return $this
682
     */
683
    public function withOrganizationId($value)
684
    {
685
        $this->data['OrganizationId'] = $value;
686
        $this->options['query']['OrganizationId'] = $value;
687
688
        return $this;
689
    }
690
691
    /**
692
     * @param string $value
693
     *
694
     * @return $this
695
     */
696
    public function withSubUserId($value)
697
    {
698
        $this->data['SubUserId'] = $value;
699
        $this->options['query']['SubUserId'] = $value;
700
701
        return $this;
702
    }
703
704
    /**
705
     * @param string $value
706
     *
707
     * @return $this
708
     */
709
    public function withAccessToken($value)
710
    {
711
        $this->data['AccessToken'] = $value;
712
        $this->options['query']['AccessToken'] = $value;
713
714
        return $this;
715
    }
716
}
717
718
/**
719
 * @method string getOrganizationId()
720
 * @method string getSubUserId()
721
 * @method string getOrganizationIdentity()
722
 * @method $this withOrganizationIdentity($value)
723
 * @method string getAccessToken()
724
 */
725
class GetCodeupOrganization extends Roa
726
{
727
    /** @var string */
728
    public $pathPattern = '/api/v4/organization/[OrganizationIdentity]';
729
730
    /** @var string */
731
    public $method = 'GET';
732
733
    /**
734
     * @param string $value
735
     *
736
     * @return $this
737
     */
738
    public function withOrganizationId($value)
739
    {
740
        $this->data['OrganizationId'] = $value;
741
        $this->options['query']['OrganizationId'] = $value;
742
743
        return $this;
744
    }
745
746
    /**
747
     * @param string $value
748
     *
749
     * @return $this
750
     */
751
    public function withSubUserId($value)
752
    {
753
        $this->data['SubUserId'] = $value;
754
        $this->options['query']['SubUserId'] = $value;
755
756
        return $this;
757
    }
758
759
    /**
760
     * @param string $value
761
     *
762
     * @return $this
763
     */
764
    public function withAccessToken($value)
765
    {
766
        $this->data['AccessToken'] = $value;
767
        $this->options['query']['AccessToken'] = $value;
768
769
        return $this;
770
    }
771
}
772
773
/**
774
 * @method string getAccessToken()
775
 * @method string getOrganizationId()
776
 * @method string getRef()
777
 * @method string getSubUserId()
778
 * @method string getFilePath()
779
 * @method string getFrom()
780
 * @method string getTo()
781
 * @method string getProjectId()
782
 * @method $this withProjectId($value)
783
 */
784
class GetFileBlobs extends Roa
785
{
786
    /** @var string */
787
    public $pathPattern = '/api/v4/projects/[ProjectId]/repository/blobs';
788
789
    /** @var string */
790
    public $method = 'GET';
791
792
    /**
793
     * @param string $value
794
     *
795
     * @return $this
796
     */
797
    public function withAccessToken($value)
798
    {
799
        $this->data['AccessToken'] = $value;
800
        $this->options['query']['AccessToken'] = $value;
801
802
        return $this;
803
    }
804
805
    /**
806
     * @param string $value
807
     *
808
     * @return $this
809
     */
810
    public function withOrganizationId($value)
811
    {
812
        $this->data['OrganizationId'] = $value;
813
        $this->options['query']['OrganizationId'] = $value;
814
815
        return $this;
816
    }
817
818
    /**
819
     * @param string $value
820
     *
821
     * @return $this
822
     */
823
    public function withRef($value)
824
    {
825
        $this->data['Ref'] = $value;
826
        $this->options['query']['Ref'] = $value;
827
828
        return $this;
829
    }
830
831
    /**
832
     * @param string $value
833
     *
834
     * @return $this
835
     */
836
    public function withSubUserId($value)
837
    {
838
        $this->data['SubUserId'] = $value;
839
        $this->options['query']['SubUserId'] = $value;
840
841
        return $this;
842
    }
843
844
    /**
845
     * @param string $value
846
     *
847
     * @return $this
848
     */
849
    public function withFilePath($value)
850
    {
851
        $this->data['FilePath'] = $value;
852
        $this->options['query']['FilePath'] = $value;
853
854
        return $this;
855
    }
856
857
    /**
858
     * @param string $value
859
     *
860
     * @return $this
861
     */
862
    public function withFrom($value)
863
    {
864
        $this->data['From'] = $value;
865
        $this->options['query']['From'] = $value;
866
867
        return $this;
868
    }
869
870
    /**
871
     * @param string $value
872
     *
873
     * @return $this
874
     */
875
    public function withTo($value)
876
    {
877
        $this->data['To'] = $value;
878
        $this->options['query']['To'] = $value;
879
880
        return $this;
881
    }
882
}
883
884
/**
885
 * @method string getOrganizationId()
886
 * @method string getSubUserId()
887
 * @method string getGroupId()
888
 * @method $this withGroupId($value)
889
 * @method string getPageSize()
890
 * @method string getAccessToken()
891
 * @method string getPage()
892
 */
893
class ListGroupMember extends Roa
894
{
895
    /** @var string */
896
    public $pathPattern = '/api/v3/groups/[GroupId]/members';
897
898
    /** @var string */
899
    public $method = 'GET';
900
901
    /**
902
     * @param string $value
903
     *
904
     * @return $this
905
     */
906
    public function withOrganizationId($value)
907
    {
908
        $this->data['OrganizationId'] = $value;
909
        $this->options['query']['OrganizationId'] = $value;
910
911
        return $this;
912
    }
913
914
    /**
915
     * @param string $value
916
     *
917
     * @return $this
918
     */
919
    public function withSubUserId($value)
920
    {
921
        $this->data['SubUserId'] = $value;
922
        $this->options['query']['SubUserId'] = $value;
923
924
        return $this;
925
    }
926
927
    /**
928
     * @param string $value
929
     *
930
     * @return $this
931
     */
932
    public function withPageSize($value)
933
    {
934
        $this->data['PageSize'] = $value;
935
        $this->options['query']['PageSize'] = $value;
936
937
        return $this;
938
    }
939
940
    /**
941
     * @param string $value
942
     *
943
     * @return $this
944
     */
945
    public function withAccessToken($value)
946
    {
947
        $this->data['AccessToken'] = $value;
948
        $this->options['query']['AccessToken'] = $value;
949
950
        return $this;
951
    }
952
953
    /**
954
     * @param string $value
955
     *
956
     * @return $this
957
     */
958
    public function withPage($value)
959
    {
960
        $this->data['Page'] = $value;
961
        $this->options['query']['Page'] = $value;
962
963
        return $this;
964
    }
965
}
966
967
/**
968
 * @method string getOrganizationId()
969
 * @method string getSubUserId()
970
 * @method string getQuery()
971
 * @method string getPageSize()
972
 * @method string getAccessToken()
973
 * @method string getPage()
974
 * @method string getProjectId()
975
 * @method $this withProjectId($value)
976
 */
977
class ListRepositoryMember extends Roa
978
{
979
    /** @var string */
980
    public $pathPattern = '/api/v3/projects/[ProjectId]/members';
981
982
    /** @var string */
983
    public $method = 'GET';
984
985
    /**
986
     * @param string $value
987
     *
988
     * @return $this
989
     */
990
    public function withOrganizationId($value)
991
    {
992
        $this->data['OrganizationId'] = $value;
993
        $this->options['query']['OrganizationId'] = $value;
994
995
        return $this;
996
    }
997
998
    /**
999
     * @param string $value
1000
     *
1001
     * @return $this
1002
     */
1003
    public function withSubUserId($value)
1004
    {
1005
        $this->data['SubUserId'] = $value;
1006
        $this->options['query']['SubUserId'] = $value;
1007
1008
        return $this;
1009
    }
1010
1011
    /**
1012
     * @param string $value
1013
     *
1014
     * @return $this
1015
     */
1016
    public function withQuery($value)
1017
    {
1018
        $this->data['Query'] = $value;
1019
        $this->options['query']['Query'] = $value;
1020
1021
        return $this;
1022
    }
1023
1024
    /**
1025
     * @param string $value
1026
     *
1027
     * @return $this
1028
     */
1029
    public function withPageSize($value)
1030
    {
1031
        $this->data['PageSize'] = $value;
1032
        $this->options['query']['PageSize'] = $value;
1033
1034
        return $this;
1035
    }
1036
1037
    /**
1038
     * @param string $value
1039
     *
1040
     * @return $this
1041
     */
1042
    public function withAccessToken($value)
1043
    {
1044
        $this->data['AccessToken'] = $value;
1045
        $this->options['query']['AccessToken'] = $value;
1046
1047
        return $this;
1048
    }
1049
1050
    /**
1051
     * @param string $value
1052
     *
1053
     * @return $this
1054
     */
1055
    public function withPage($value)
1056
    {
1057
        $this->data['Page'] = $value;
1058
        $this->options['query']['Page'] = $value;
1059
1060
        return $this;
1061
    }
1062
}
1063
1064
/**
1065
 * @method string getOrganizationId()
1066
 * @method string getPath()
1067
 * @method string getSubUserId()
1068
 * @method string getAccessToken()
1069
 * @method string getType()
1070
 * @method string getProjectId()
1071
 * @method $this withProjectId($value)
1072
 * @method string getRefName()
1073
 */
1074
class ListRepositoryTree extends Roa
1075
{
1076
    /** @var string */
1077
    public $pathPattern = '/api/v4/projects/[ProjectId]/repository/tree';
1078
1079
    /** @var string */
1080
    public $method = 'GET';
1081
1082
    /**
1083
     * @param string $value
1084
     *
1085
     * @return $this
1086
     */
1087
    public function withOrganizationId($value)
1088
    {
1089
        $this->data['OrganizationId'] = $value;
1090
        $this->options['query']['OrganizationId'] = $value;
1091
1092
        return $this;
1093
    }
1094
1095
    /**
1096
     * @param string $value
1097
     *
1098
     * @return $this
1099
     */
1100
    public function withPath($value)
1101
    {
1102
        $this->data['Path'] = $value;
1103
        $this->options['query']['Path'] = $value;
1104
1105
        return $this;
1106
    }
1107
1108
    /**
1109
     * @param string $value
1110
     *
1111
     * @return $this
1112
     */
1113
    public function withSubUserId($value)
1114
    {
1115
        $this->data['SubUserId'] = $value;
1116
        $this->options['query']['SubUserId'] = $value;
1117
1118
        return $this;
1119
    }
1120
1121
    /**
1122
     * @param string $value
1123
     *
1124
     * @return $this
1125
     */
1126
    public function withAccessToken($value)
1127
    {
1128
        $this->data['AccessToken'] = $value;
1129
        $this->options['query']['AccessToken'] = $value;
1130
1131
        return $this;
1132
    }
1133
1134
    /**
1135
     * @param string $value
1136
     *
1137
     * @return $this
1138
     */
1139
    public function withType($value)
1140
    {
1141
        $this->data['Type'] = $value;
1142
        $this->options['query']['Type'] = $value;
1143
1144
        return $this;
1145
    }
1146
1147
    /**
1148
     * @param string $value
1149
     *
1150
     * @return $this
1151
     */
1152
    public function withRefName($value)
1153
    {
1154
        $this->data['RefName'] = $value;
1155
        $this->options['query']['RefName'] = $value;
1156
1157
        return $this;
1158
    }
1159
}
1160
1161
/**
1162
 * @method string getOrganizationId()
1163
 * @method string getSubUserId()
1164
 * @method string getAccessToken()
1165
 * @method string getProjectId()
1166
 * @method $this withProjectId($value)
1167
 */
1168
class UpdateFile extends Roa
1169
{
1170
    /** @var string */
1171
    public $pathPattern = '/api/v4/projects/[ProjectId]/repository/files';
1172
1173
    /** @var string */
1174
    public $method = 'PUT';
1175
1176
    /**
1177
     * @param string $value
1178
     *
1179
     * @return $this
1180
     */
1181
    public function withOrganizationId($value)
1182
    {
1183
        $this->data['OrganizationId'] = $value;
1184
        $this->options['query']['OrganizationId'] = $value;
1185
1186
        return $this;
1187
    }
1188
1189
    /**
1190
     * @param string $value
1191
     *
1192
     * @return $this
1193
     */
1194
    public function withSubUserId($value)
1195
    {
1196
        $this->data['SubUserId'] = $value;
1197
        $this->options['query']['SubUserId'] = $value;
1198
1199
        return $this;
1200
    }
1201
1202
    /**
1203
     * @param string $value
1204
     *
1205
     * @return $this
1206
     */
1207
    public function withAccessToken($value)
1208
    {
1209
        $this->data['AccessToken'] = $value;
1210
        $this->options['query']['AccessToken'] = $value;
1211
1212
        return $this;
1213
    }
1214
}
1215
1216
/**
1217
 * @method string getOrganizationId()
1218
 * @method string getSubUserId()
1219
 * @method string getGroupId()
1220
 * @method $this withGroupId($value)
1221
 * @method string getAccessToken()
1222
 * @method string getUserId()
1223
 * @method $this withUserId($value)
1224
 */
1225
class UpdateGroupMember extends Roa
1226
{
1227
    /** @var string */
1228
    public $pathPattern = '/api/v3/groups/[GroupId]/members/[UserId]';
1229
1230
    /** @var string */
1231
    public $method = 'PUT';
1232
1233
    /**
1234
     * @param string $value
1235
     *
1236
     * @return $this
1237
     */
1238
    public function withOrganizationId($value)
1239
    {
1240
        $this->data['OrganizationId'] = $value;
1241
        $this->options['query']['OrganizationId'] = $value;
1242
1243
        return $this;
1244
    }
1245
1246
    /**
1247
     * @param string $value
1248
     *
1249
     * @return $this
1250
     */
1251
    public function withSubUserId($value)
1252
    {
1253
        $this->data['SubUserId'] = $value;
1254
        $this->options['query']['SubUserId'] = $value;
1255
1256
        return $this;
1257
    }
1258
1259
    /**
1260
     * @param string $value
1261
     *
1262
     * @return $this
1263
     */
1264
    public function withAccessToken($value)
1265
    {
1266
        $this->data['AccessToken'] = $value;
1267
        $this->options['query']['AccessToken'] = $value;
1268
1269
        return $this;
1270
    }
1271
}
1272
1273
/**
1274
 * @method string getOrganizationId()
1275
 * @method string getSubUserId()
1276
 * @method string getAccessToken()
1277
 * @method string getProjectId()
1278
 * @method $this withProjectId($value)
1279
 * @method string getUserId()
1280
 * @method $this withUserId($value)
1281
 */
1282
class UpdateRepositoryMember extends Roa
1283
{
1284
    /** @var string */
1285
    public $pathPattern = '/api/v3/projects/[ProjectId]/members/[UserId]';
1286
1287
    /** @var string */
1288
    public $method = 'PUT';
1289
1290
    /**
1291
     * @param string $value
1292
     *
1293
     * @return $this
1294
     */
1295
    public function withOrganizationId($value)
1296
    {
1297
        $this->data['OrganizationId'] = $value;
1298
        $this->options['query']['OrganizationId'] = $value;
1299
1300
        return $this;
1301
    }
1302
1303
    /**
1304
     * @param string $value
1305
     *
1306
     * @return $this
1307
     */
1308
    public function withSubUserId($value)
1309
    {
1310
        $this->data['SubUserId'] = $value;
1311
        $this->options['query']['SubUserId'] = $value;
1312
1313
        return $this;
1314
    }
1315
1316
    /**
1317
     * @param string $value
1318
     *
1319
     * @return $this
1320
     */
1321
    public function withAccessToken($value)
1322
    {
1323
        $this->data['AccessToken'] = $value;
1324
        $this->options['query']['AccessToken'] = $value;
1325
1326
        return $this;
1327
    }
1328
}
1329