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 ( 058cbb...e5da4d )
by
unknown
15:46 queued 09:34
created

ListRepositoryBranches::withPage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
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 AddWebhook addWebhook(array $options = [])
11
 * @method CreateBranch createBranch(array $options = [])
12
 * @method CreateFile createFile(array $options = [])
13
 * @method CreateMergeRequest createMergeRequest(array $options = [])
14
 * @method CreateRepository createRepository(array $options = [])
15
 * @method CreateRepositoryGroup createRepositoryGroup(array $options = [])
16
 * @method CreateTag createTag(array $options = [])
17
 * @method DeleteBranch deleteBranch(array $options = [])
18
 * @method DeleteFile deleteFile(array $options = [])
19
 * @method DeleteGroupMember deleteGroupMember(array $options = [])
20
 * @method DeleteRepository deleteRepository(array $options = [])
21
 * @method DeleteRepositoryGroup deleteRepositoryGroup(array $options = [])
22
 * @method DeleteRepositoryMember deleteRepositoryMember(array $options = [])
23
 * @method GetBranchInfo getBranchInfo(array $options = [])
24
 * @method GetCodeupOrganization getCodeupOrganization(array $options = [])
25
 * @method GetFileBlobs getFileBlobs(array $options = [])
26
 * @method GetGroupDetail getGroupDetail(array $options = [])
27
 * @method GetProjectMember getProjectMember(array $options = [])
28
 * @method GetRepositoryInfo getRepositoryInfo(array $options = [])
29
 * @method ListGroupMember listGroupMember(array $options = [])
30
 * @method ListGroupRepositories listGroupRepositories(array $options = [])
31
 * @method ListGroups listGroups(array $options = [])
32
 * @method ListRepositoryBranches listRepositoryBranches(array $options = [])
33
 * @method ListRepositoryMember listRepositoryMember(array $options = [])
34
 * @method ListRepositoryTree listRepositoryTree(array $options = [])
35
 * @method MergeMergeRequest mergeMergeRequest(array $options = [])
36
 * @method UpdateFile updateFile(array $options = [])
37
 * @method UpdateGroupMember updateGroupMember(array $options = [])
38
 * @method UpdateRepositoryMember updateRepositoryMember(array $options = [])
39
 */
40
class CodeupApiResolver extends ApiResolver
41
{
42
}
43
44
class Roa extends \AlibabaCloud\Client\Resolver\Roa
45
{
46
    /** @var string */
47
    public $product = 'codeup';
48
49
    /** @var string */
50
    public $version = '2020-04-14';
51
}
52
53
/**
54
 * @method string getOrganizationId()
55
 * @method string getSubUserId()
56
 * @method string getClientToken()
57
 * @method string getGroupId()
58
 * @method $this withGroupId($value)
59
 * @method string getAccessToken()
60
 */
61
class AddGroupMember extends Roa
62
{
63
    /** @var string */
64
    public $pathPattern = '/api/v4/groups/[GroupId]/members';
65
66
    /** @var string */
67
    public $method = 'POST';
68
69
    /**
70
     * @param string $value
71
     *
72
     * @return $this
73
     */
74
    public function withOrganizationId($value)
75
    {
76
        $this->data['OrganizationId'] = $value;
77
        $this->options['query']['OrganizationId'] = $value;
78
79
        return $this;
80
    }
81
82
    /**
83
     * @param string $value
84
     *
85
     * @return $this
86
     */
87
    public function withSubUserId($value)
88
    {
89
        $this->data['SubUserId'] = $value;
90
        $this->options['query']['SubUserId'] = $value;
91
92
        return $this;
93
    }
94
95
    /**
96
     * @param string $value
97
     *
98
     * @return $this
99
     */
100
    public function withClientToken($value)
101
    {
102
        $this->data['ClientToken'] = $value;
103
        $this->options['query']['ClientToken'] = $value;
104
105
        return $this;
106
    }
107
108
    /**
109
     * @param string $value
110
     *
111
     * @return $this
112
     */
113
    public function withAccessToken($value)
114
    {
115
        $this->data['AccessToken'] = $value;
116
        $this->options['query']['AccessToken'] = $value;
117
118
        return $this;
119
    }
120
}
121
122
/**
123
 * @method string getOrganizationId()
124
 * @method string getSubUserId()
125
 * @method string getClientToken()
126
 * @method string getAccessToken()
127
 * @method string getProjectId()
128
 * @method $this withProjectId($value)
129
 */
130
class AddRepositoryMember extends Roa
131
{
132
    /** @var string */
133
    public $pathPattern = '/api/v4/projects/[ProjectId]/members';
134
135
    /** @var string */
136
    public $method = 'POST';
137
138
    /**
139
     * @param string $value
140
     *
141
     * @return $this
142
     */
143
    public function withOrganizationId($value)
144
    {
145
        $this->data['OrganizationId'] = $value;
146
        $this->options['query']['OrganizationId'] = $value;
147
148
        return $this;
149
    }
150
151
    /**
152
     * @param string $value
153
     *
154
     * @return $this
155
     */
156
    public function withSubUserId($value)
157
    {
158
        $this->data['SubUserId'] = $value;
159
        $this->options['query']['SubUserId'] = $value;
160
161
        return $this;
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['query']['ClientToken'] = $value;
173
174
        return $this;
175
    }
176
177
    /**
178
     * @param string $value
179
     *
180
     * @return $this
181
     */
182
    public function withAccessToken($value)
183
    {
184
        $this->data['AccessToken'] = $value;
185
        $this->options['query']['AccessToken'] = $value;
186
187
        return $this;
188
    }
189
}
190
191
/**
192
 * @method string getOrganizationId()
193
 * @method string getAccessToken()
194
 * @method string getProjectId()
195
 * @method $this withProjectId($value)
196
 */
197
class AddWebhook extends Roa
198
{
199
    /** @var string */
200
    public $pathPattern = '/api/v3/projects/[ProjectId]/hooks';
201
202
    /** @var string */
203
    public $method = 'POST';
204
205
    /**
206
     * @param string $value
207
     *
208
     * @return $this
209
     */
210
    public function withOrganizationId($value)
211
    {
212
        $this->data['OrganizationId'] = $value;
213
        $this->options['query']['OrganizationId'] = $value;
214
215
        return $this;
216
    }
217
218
    /**
219
     * @param string $value
220
     *
221
     * @return $this
222
     */
223
    public function withAccessToken($value)
224
    {
225
        $this->data['AccessToken'] = $value;
226
        $this->options['query']['AccessToken'] = $value;
227
228
        return $this;
229
    }
230
}
231
232
/**
233
 * @method string getOrganizationId()
234
 * @method string getSubUserId()
235
 * @method string getAccessToken()
236
 * @method string getProjectId()
237
 * @method $this withProjectId($value)
238
 */
239
class CreateBranch extends Roa
240
{
241
    /** @var string */
242
    public $pathPattern = '/api/v3/projects/[ProjectId]/repository/branches';
243
244
    /** @var string */
245
    public $method = 'POST';
246
247
    /**
248
     * @param string $value
249
     *
250
     * @return $this
251
     */
252
    public function withOrganizationId($value)
253
    {
254
        $this->data['OrganizationId'] = $value;
255
        $this->options['query']['OrganizationId'] = $value;
256
257
        return $this;
258
    }
259
260
    /**
261
     * @param string $value
262
     *
263
     * @return $this
264
     */
265
    public function withSubUserId($value)
266
    {
267
        $this->data['SubUserId'] = $value;
268
        $this->options['query']['SubUserId'] = $value;
269
270
        return $this;
271
    }
272
273
    /**
274
     * @param string $value
275
     *
276
     * @return $this
277
     */
278
    public function withAccessToken($value)
279
    {
280
        $this->data['AccessToken'] = $value;
281
        $this->options['query']['AccessToken'] = $value;
282
283
        return $this;
284
    }
285
}
286
287
/**
288
 * @method string getOrganizationId()
289
 * @method string getSubUserId()
290
 * @method string getClientToken()
291
 * @method string getAccessToken()
292
 * @method string getProjectId()
293
 * @method $this withProjectId($value)
294
 */
295
class CreateFile extends Roa
296
{
297
    /** @var string */
298
    public $pathPattern = '/api/v3/projects/[ProjectId]/repository/files';
299
300
    /** @var string */
301
    public $method = 'POST';
302
303
    /**
304
     * @param string $value
305
     *
306
     * @return $this
307
     */
308
    public function withOrganizationId($value)
309
    {
310
        $this->data['OrganizationId'] = $value;
311
        $this->options['query']['OrganizationId'] = $value;
312
313
        return $this;
314
    }
315
316
    /**
317
     * @param string $value
318
     *
319
     * @return $this
320
     */
321
    public function withSubUserId($value)
322
    {
323
        $this->data['SubUserId'] = $value;
324
        $this->options['query']['SubUserId'] = $value;
325
326
        return $this;
327
    }
328
329
    /**
330
     * @param string $value
331
     *
332
     * @return $this
333
     */
334
    public function withClientToken($value)
335
    {
336
        $this->data['ClientToken'] = $value;
337
        $this->options['query']['ClientToken'] = $value;
338
339
        return $this;
340
    }
341
342
    /**
343
     * @param string $value
344
     *
345
     * @return $this
346
     */
347
    public function withAccessToken($value)
348
    {
349
        $this->data['AccessToken'] = $value;
350
        $this->options['query']['AccessToken'] = $value;
351
352
        return $this;
353
    }
354
}
355
356
/**
357
 * @method string getOrganizationId()
358
 * @method string getSubUserId()
359
 * @method string getAccessToken()
360
 * @method string getProjectId()
361
 * @method $this withProjectId($value)
362
 */
363
class CreateMergeRequest extends Roa
364
{
365
    /** @var string */
366
    public $pathPattern = '/api/v4/projects/[ProjectId]/merge_requests';
367
368
    /** @var string */
369
    public $method = 'POST';
370
371
    /**
372
     * @param string $value
373
     *
374
     * @return $this
375
     */
376
    public function withOrganizationId($value)
377
    {
378
        $this->data['OrganizationId'] = $value;
379
        $this->options['query']['OrganizationId'] = $value;
380
381
        return $this;
382
    }
383
384
    /**
385
     * @param string $value
386
     *
387
     * @return $this
388
     */
389
    public function withSubUserId($value)
390
    {
391
        $this->data['SubUserId'] = $value;
392
        $this->options['query']['SubUserId'] = $value;
393
394
        return $this;
395
    }
396
397
    /**
398
     * @param string $value
399
     *
400
     * @return $this
401
     */
402
    public function withAccessToken($value)
403
    {
404
        $this->data['AccessToken'] = $value;
405
        $this->options['query']['AccessToken'] = $value;
406
407
        return $this;
408
    }
409
}
410
411
/**
412
 * @method string getOrganizationId()
413
 * @method string getSubUserId()
414
 * @method string getClientToken()
415
 * @method string getAccessToken()
416
 * @method string getSync()
417
 * @method string getCreateParentPath()
418
 */
419
class CreateRepository extends Roa
420
{
421
    /** @var string */
422
    public $pathPattern = '/api/v3/projects';
423
424
    /** @var string */
425
    public $method = 'POST';
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 withClientToken($value)
459
    {
460
        $this->data['ClientToken'] = $value;
461
        $this->options['query']['ClientToken'] = $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 withSync($value)
485
    {
486
        $this->data['Sync'] = $value;
487
        $this->options['query']['Sync'] = $value;
488
489
        return $this;
490
    }
491
492
    /**
493
     * @param string $value
494
     *
495
     * @return $this
496
     */
497
    public function withCreateParentPath($value)
498
    {
499
        $this->data['CreateParentPath'] = $value;
500
        $this->options['query']['CreateParentPath'] = $value;
501
502
        return $this;
503
    }
504
}
505
506
/**
507
 * @method string getOrganizationId()
508
 * @method string getSubUserId()
509
 * @method string getClientToken()
510
 * @method string getAccessToken()
511
 */
512
class CreateRepositoryGroup extends Roa
513
{
514
    /** @var string */
515
    public $pathPattern = '/api/v3/groups';
516
517
    /** @var string */
518
    public $method = 'POST';
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 withClientToken($value)
552
    {
553
        $this->data['ClientToken'] = $value;
554
        $this->options['query']['ClientToken'] = $value;
555
556
        return $this;
557
    }
558
559
    /**
560
     * @param string $value
561
     *
562
     * @return $this
563
     */
564
    public function withAccessToken($value)
565
    {
566
        $this->data['AccessToken'] = $value;
567
        $this->options['query']['AccessToken'] = $value;
568
569
        return $this;
570
    }
571
}
572
573
/**
574
 * @method string getOrganizationId()
575
 * @method string getSubUserId()
576
 * @method string getAccessToken()
577
 * @method string getProjectId()
578
 * @method $this withProjectId($value)
579
 */
580
class CreateTag extends Roa
581
{
582
    /** @var string */
583
    public $pathPattern = '/api/v3/projects/[ProjectId]/repository/tags';
584
585
    /** @var string */
586
    public $method = 'POST';
587
588
    /**
589
     * @param string $value
590
     *
591
     * @return $this
592
     */
593
    public function withOrganizationId($value)
594
    {
595
        $this->data['OrganizationId'] = $value;
596
        $this->options['query']['OrganizationId'] = $value;
597
598
        return $this;
599
    }
600
601
    /**
602
     * @param string $value
603
     *
604
     * @return $this
605
     */
606
    public function withSubUserId($value)
607
    {
608
        $this->data['SubUserId'] = $value;
609
        $this->options['query']['SubUserId'] = $value;
610
611
        return $this;
612
    }
613
614
    /**
615
     * @param string $value
616
     *
617
     * @return $this
618
     */
619
    public function withAccessToken($value)
620
    {
621
        $this->data['AccessToken'] = $value;
622
        $this->options['query']['AccessToken'] = $value;
623
624
        return $this;
625
    }
626
}
627
628
/**
629
 * @method string getOrganizationId()
630
 * @method string getSubUserId()
631
 * @method string getAccessToken()
632
 * @method string getProjectId()
633
 * @method $this withProjectId($value)
634
 * @method string getBranchName()
635
 */
636
class DeleteBranch extends Roa
637
{
638
    /** @var string */
639
    public $pathPattern = '/api/v3/projects/[ProjectId]/repository/branches/delete';
640
641
    /** @var string */
642
    public $method = 'DELETE';
643
644
    /**
645
     * @param string $value
646
     *
647
     * @return $this
648
     */
649
    public function withOrganizationId($value)
650
    {
651
        $this->data['OrganizationId'] = $value;
652
        $this->options['query']['OrganizationId'] = $value;
653
654
        return $this;
655
    }
656
657
    /**
658
     * @param string $value
659
     *
660
     * @return $this
661
     */
662
    public function withSubUserId($value)
663
    {
664
        $this->data['SubUserId'] = $value;
665
        $this->options['query']['SubUserId'] = $value;
666
667
        return $this;
668
    }
669
670
    /**
671
     * @param string $value
672
     *
673
     * @return $this
674
     */
675
    public function withAccessToken($value)
676
    {
677
        $this->data['AccessToken'] = $value;
678
        $this->options['query']['AccessToken'] = $value;
679
680
        return $this;
681
    }
682
683
    /**
684
     * @param string $value
685
     *
686
     * @return $this
687
     */
688
    public function withBranchName($value)
689
    {
690
        $this->data['BranchName'] = $value;
691
        $this->options['query']['BranchName'] = $value;
692
693
        return $this;
694
    }
695
}
696
697
/**
698
 * @method string getOrganizationId()
699
 * @method string getSubUserId()
700
 * @method string getFilePath()
701
 * @method string getAccessToken()
702
 * @method string getCommitMessage()
703
 * @method string getProjectId()
704
 * @method $this withProjectId($value)
705
 * @method string getBranchName()
706
 */
707
class DeleteFile extends Roa
708
{
709
    /** @var string */
710
    public $pathPattern = '/api/v3/projects/[ProjectId]/repository/files';
711
712
    /** @var string */
713
    public $method = 'DELETE';
714
715
    /**
716
     * @param string $value
717
     *
718
     * @return $this
719
     */
720
    public function withOrganizationId($value)
721
    {
722
        $this->data['OrganizationId'] = $value;
723
        $this->options['query']['OrganizationId'] = $value;
724
725
        return $this;
726
    }
727
728
    /**
729
     * @param string $value
730
     *
731
     * @return $this
732
     */
733
    public function withSubUserId($value)
734
    {
735
        $this->data['SubUserId'] = $value;
736
        $this->options['query']['SubUserId'] = $value;
737
738
        return $this;
739
    }
740
741
    /**
742
     * @param string $value
743
     *
744
     * @return $this
745
     */
746
    public function withFilePath($value)
747
    {
748
        $this->data['FilePath'] = $value;
749
        $this->options['query']['FilePath'] = $value;
750
751
        return $this;
752
    }
753
754
    /**
755
     * @param string $value
756
     *
757
     * @return $this
758
     */
759
    public function withAccessToken($value)
760
    {
761
        $this->data['AccessToken'] = $value;
762
        $this->options['query']['AccessToken'] = $value;
763
764
        return $this;
765
    }
766
767
    /**
768
     * @param string $value
769
     *
770
     * @return $this
771
     */
772
    public function withCommitMessage($value)
773
    {
774
        $this->data['CommitMessage'] = $value;
775
        $this->options['query']['CommitMessage'] = $value;
776
777
        return $this;
778
    }
779
780
    /**
781
     * @param string $value
782
     *
783
     * @return $this
784
     */
785
    public function withBranchName($value)
786
    {
787
        $this->data['BranchName'] = $value;
788
        $this->options['query']['BranchName'] = $value;
789
790
        return $this;
791
    }
792
}
793
794
/**
795
 * @method string getOrganizationId()
796
 * @method string getSubUserId()
797
 * @method string getGroupId()
798
 * @method $this withGroupId($value)
799
 * @method string getAccessToken()
800
 * @method string getUserId()
801
 * @method $this withUserId($value)
802
 */
803
class DeleteGroupMember extends Roa
804
{
805
    /** @var string */
806
    public $pathPattern = '/api/v3/groups/[GroupId]/members/[UserId]';
807
808
    /** @var string */
809
    public $method = 'DELETE';
810
811
    /**
812
     * @param string $value
813
     *
814
     * @return $this
815
     */
816
    public function withOrganizationId($value)
817
    {
818
        $this->data['OrganizationId'] = $value;
819
        $this->options['query']['OrganizationId'] = $value;
820
821
        return $this;
822
    }
823
824
    /**
825
     * @param string $value
826
     *
827
     * @return $this
828
     */
829
    public function withSubUserId($value)
830
    {
831
        $this->data['SubUserId'] = $value;
832
        $this->options['query']['SubUserId'] = $value;
833
834
        return $this;
835
    }
836
837
    /**
838
     * @param string $value
839
     *
840
     * @return $this
841
     */
842
    public function withAccessToken($value)
843
    {
844
        $this->data['AccessToken'] = $value;
845
        $this->options['query']['AccessToken'] = $value;
846
847
        return $this;
848
    }
849
}
850
851
/**
852
 * @method string getOrganizationId()
853
 * @method string getSubUserId()
854
 * @method string getAccessToken()
855
 * @method string getProjectId()
856
 * @method $this withProjectId($value)
857
 */
858
class DeleteRepository extends Roa
859
{
860
    /** @var string */
861
    public $pathPattern = '/api/v3/projects/[ProjectId]/remove';
862
863
    /** @var string */
864
    public $method = 'POST';
865
866
    /**
867
     * @param string $value
868
     *
869
     * @return $this
870
     */
871
    public function withOrganizationId($value)
872
    {
873
        $this->data['OrganizationId'] = $value;
874
        $this->options['query']['OrganizationId'] = $value;
875
876
        return $this;
877
    }
878
879
    /**
880
     * @param string $value
881
     *
882
     * @return $this
883
     */
884
    public function withSubUserId($value)
885
    {
886
        $this->data['SubUserId'] = $value;
887
        $this->options['query']['SubUserId'] = $value;
888
889
        return $this;
890
    }
891
892
    /**
893
     * @param string $value
894
     *
895
     * @return $this
896
     */
897
    public function withAccessToken($value)
898
    {
899
        $this->data['AccessToken'] = $value;
900
        $this->options['query']['AccessToken'] = $value;
901
902
        return $this;
903
    }
904
}
905
906
/**
907
 * @method string getOrganizationId()
908
 * @method string getSubUserId()
909
 * @method string getGroupId()
910
 * @method $this withGroupId($value)
911
 * @method string getAccessToken()
912
 */
913
class DeleteRepositoryGroup extends Roa
914
{
915
    /** @var string */
916
    public $pathPattern = '/api/v3/groups/[GroupId]/remove';
917
918
    /** @var string */
919
    public $method = 'POST';
920
921
    /**
922
     * @param string $value
923
     *
924
     * @return $this
925
     */
926
    public function withOrganizationId($value)
927
    {
928
        $this->data['OrganizationId'] = $value;
929
        $this->options['query']['OrganizationId'] = $value;
930
931
        return $this;
932
    }
933
934
    /**
935
     * @param string $value
936
     *
937
     * @return $this
938
     */
939
    public function withSubUserId($value)
940
    {
941
        $this->data['SubUserId'] = $value;
942
        $this->options['query']['SubUserId'] = $value;
943
944
        return $this;
945
    }
946
947
    /**
948
     * @param string $value
949
     *
950
     * @return $this
951
     */
952
    public function withAccessToken($value)
953
    {
954
        $this->data['AccessToken'] = $value;
955
        $this->options['query']['AccessToken'] = $value;
956
957
        return $this;
958
    }
959
}
960
961
/**
962
 * @method string getOrganizationId()
963
 * @method string getSubUserId()
964
 * @method string getAccessToken()
965
 * @method string getProjectId()
966
 * @method $this withProjectId($value)
967
 * @method string getUserId()
968
 * @method $this withUserId($value)
969
 */
970
class DeleteRepositoryMember extends Roa
971
{
972
    /** @var string */
973
    public $pathPattern = '/api/v3/projects/[ProjectId]/members/[UserId]';
974
975
    /** @var string */
976
    public $method = 'DELETE';
977
978
    /**
979
     * @param string $value
980
     *
981
     * @return $this
982
     */
983
    public function withOrganizationId($value)
984
    {
985
        $this->data['OrganizationId'] = $value;
986
        $this->options['query']['OrganizationId'] = $value;
987
988
        return $this;
989
    }
990
991
    /**
992
     * @param string $value
993
     *
994
     * @return $this
995
     */
996
    public function withSubUserId($value)
997
    {
998
        $this->data['SubUserId'] = $value;
999
        $this->options['query']['SubUserId'] = $value;
1000
1001
        return $this;
1002
    }
1003
1004
    /**
1005
     * @param string $value
1006
     *
1007
     * @return $this
1008
     */
1009
    public function withAccessToken($value)
1010
    {
1011
        $this->data['AccessToken'] = $value;
1012
        $this->options['query']['AccessToken'] = $value;
1013
1014
        return $this;
1015
    }
1016
}
1017
1018
/**
1019
 * @method string getOrganizationId()
1020
 * @method string getSubUserId()
1021
 * @method string getAccessToken()
1022
 * @method string getProjectId()
1023
 * @method $this withProjectId($value)
1024
 * @method string getBranchName()
1025
 */
1026
class GetBranchInfo extends Roa
1027
{
1028
    /** @var string */
1029
    public $pathPattern = '/api/v3/projects/[ProjectId]/repository/branches/detail';
1030
1031
    /**
1032
     * @param string $value
1033
     *
1034
     * @return $this
1035
     */
1036
    public function withOrganizationId($value)
1037
    {
1038
        $this->data['OrganizationId'] = $value;
1039
        $this->options['query']['OrganizationId'] = $value;
1040
1041
        return $this;
1042
    }
1043
1044
    /**
1045
     * @param string $value
1046
     *
1047
     * @return $this
1048
     */
1049
    public function withSubUserId($value)
1050
    {
1051
        $this->data['SubUserId'] = $value;
1052
        $this->options['query']['SubUserId'] = $value;
1053
1054
        return $this;
1055
    }
1056
1057
    /**
1058
     * @param string $value
1059
     *
1060
     * @return $this
1061
     */
1062
    public function withAccessToken($value)
1063
    {
1064
        $this->data['AccessToken'] = $value;
1065
        $this->options['query']['AccessToken'] = $value;
1066
1067
        return $this;
1068
    }
1069
1070
    /**
1071
     * @param string $value
1072
     *
1073
     * @return $this
1074
     */
1075
    public function withBranchName($value)
1076
    {
1077
        $this->data['BranchName'] = $value;
1078
        $this->options['query']['BranchName'] = $value;
1079
1080
        return $this;
1081
    }
1082
}
1083
1084
/**
1085
 * @method string getOrganizationId()
1086
 * @method string getSubUserId()
1087
 * @method string getOrganizationIdentity()
1088
 * @method $this withOrganizationIdentity($value)
1089
 * @method string getAccessToken()
1090
 */
1091
class GetCodeupOrganization extends Roa
1092
{
1093
    /** @var string */
1094
    public $pathPattern = '/api/v4/organization/[OrganizationIdentity]';
1095
1096
    /**
1097
     * @param string $value
1098
     *
1099
     * @return $this
1100
     */
1101
    public function withOrganizationId($value)
1102
    {
1103
        $this->data['OrganizationId'] = $value;
1104
        $this->options['query']['OrganizationId'] = $value;
1105
1106
        return $this;
1107
    }
1108
1109
    /**
1110
     * @param string $value
1111
     *
1112
     * @return $this
1113
     */
1114
    public function withSubUserId($value)
1115
    {
1116
        $this->data['SubUserId'] = $value;
1117
        $this->options['query']['SubUserId'] = $value;
1118
1119
        return $this;
1120
    }
1121
1122
    /**
1123
     * @param string $value
1124
     *
1125
     * @return $this
1126
     */
1127
    public function withAccessToken($value)
1128
    {
1129
        $this->data['AccessToken'] = $value;
1130
        $this->options['query']['AccessToken'] = $value;
1131
1132
        return $this;
1133
    }
1134
}
1135
1136
/**
1137
 * @method string getAccessToken()
1138
 * @method string getOrganizationId()
1139
 * @method string getRef()
1140
 * @method string getSubUserId()
1141
 * @method string getFilePath()
1142
 * @method string getFrom()
1143
 * @method string getTo()
1144
 * @method string getProjectId()
1145
 * @method $this withProjectId($value)
1146
 */
1147
class GetFileBlobs extends Roa
1148
{
1149
    /** @var string */
1150
    public $pathPattern = '/api/v4/projects/[ProjectId]/repository/blobs';
1151
1152
    /**
1153
     * @param string $value
1154
     *
1155
     * @return $this
1156
     */
1157
    public function withAccessToken($value)
1158
    {
1159
        $this->data['AccessToken'] = $value;
1160
        $this->options['query']['AccessToken'] = $value;
1161
1162
        return $this;
1163
    }
1164
1165
    /**
1166
     * @param string $value
1167
     *
1168
     * @return $this
1169
     */
1170
    public function withOrganizationId($value)
1171
    {
1172
        $this->data['OrganizationId'] = $value;
1173
        $this->options['query']['OrganizationId'] = $value;
1174
1175
        return $this;
1176
    }
1177
1178
    /**
1179
     * @param string $value
1180
     *
1181
     * @return $this
1182
     */
1183
    public function withRef($value)
1184
    {
1185
        $this->data['Ref'] = $value;
1186
        $this->options['query']['Ref'] = $value;
1187
1188
        return $this;
1189
    }
1190
1191
    /**
1192
     * @param string $value
1193
     *
1194
     * @return $this
1195
     */
1196
    public function withSubUserId($value)
1197
    {
1198
        $this->data['SubUserId'] = $value;
1199
        $this->options['query']['SubUserId'] = $value;
1200
1201
        return $this;
1202
    }
1203
1204
    /**
1205
     * @param string $value
1206
     *
1207
     * @return $this
1208
     */
1209
    public function withFilePath($value)
1210
    {
1211
        $this->data['FilePath'] = $value;
1212
        $this->options['query']['FilePath'] = $value;
1213
1214
        return $this;
1215
    }
1216
1217
    /**
1218
     * @param string $value
1219
     *
1220
     * @return $this
1221
     */
1222
    public function withFrom($value)
1223
    {
1224
        $this->data['From'] = $value;
1225
        $this->options['query']['From'] = $value;
1226
1227
        return $this;
1228
    }
1229
1230
    /**
1231
     * @param string $value
1232
     *
1233
     * @return $this
1234
     */
1235
    public function withTo($value)
1236
    {
1237
        $this->data['To'] = $value;
1238
        $this->options['query']['To'] = $value;
1239
1240
        return $this;
1241
    }
1242
}
1243
1244
/**
1245
 * @method string getOrganizationId()
1246
 * @method string getSubUserId()
1247
 * @method string getGroupId()
1248
 * @method string getAccessToken()
1249
 */
1250
class GetGroupDetail extends Roa
1251
{
1252
    /** @var string */
1253
    public $pathPattern = '/api/v3/groups/detail';
1254
1255
    /**
1256
     * @param string $value
1257
     *
1258
     * @return $this
1259
     */
1260
    public function withOrganizationId($value)
1261
    {
1262
        $this->data['OrganizationId'] = $value;
1263
        $this->options['query']['OrganizationId'] = $value;
1264
1265
        return $this;
1266
    }
1267
1268
    /**
1269
     * @param string $value
1270
     *
1271
     * @return $this
1272
     */
1273
    public function withSubUserId($value)
1274
    {
1275
        $this->data['SubUserId'] = $value;
1276
        $this->options['query']['SubUserId'] = $value;
1277
1278
        return $this;
1279
    }
1280
1281
    /**
1282
     * @param string $value
1283
     *
1284
     * @return $this
1285
     */
1286
    public function withGroupId($value)
1287
    {
1288
        $this->data['GroupId'] = $value;
1289
        $this->options['query']['GroupId'] = $value;
1290
1291
        return $this;
1292
    }
1293
1294
    /**
1295
     * @param string $value
1296
     *
1297
     * @return $this
1298
     */
1299
    public function withAccessToken($value)
1300
    {
1301
        $this->data['AccessToken'] = $value;
1302
        $this->options['query']['AccessToken'] = $value;
1303
1304
        return $this;
1305
    }
1306
}
1307
1308
/**
1309
 * @method string getOrganizationId()
1310
 * @method string getSubUserId()
1311
 * @method string getAccessToken()
1312
 * @method string getProjectId()
1313
 * @method $this withProjectId($value)
1314
 * @method string getUserId()
1315
 * @method $this withUserId($value)
1316
 */
1317
class GetProjectMember extends Roa
1318
{
1319
    /** @var string */
1320
    public $pathPattern = '/api/v3/projects/[ProjectId]/members/[UserId]';
1321
1322
    /**
1323
     * @param string $value
1324
     *
1325
     * @return $this
1326
     */
1327
    public function withOrganizationId($value)
1328
    {
1329
        $this->data['OrganizationId'] = $value;
1330
        $this->options['query']['OrganizationId'] = $value;
1331
1332
        return $this;
1333
    }
1334
1335
    /**
1336
     * @param string $value
1337
     *
1338
     * @return $this
1339
     */
1340
    public function withSubUserId($value)
1341
    {
1342
        $this->data['SubUserId'] = $value;
1343
        $this->options['query']['SubUserId'] = $value;
1344
1345
        return $this;
1346
    }
1347
1348
    /**
1349
     * @param string $value
1350
     *
1351
     * @return $this
1352
     */
1353
    public function withAccessToken($value)
1354
    {
1355
        $this->data['AccessToken'] = $value;
1356
        $this->options['query']['AccessToken'] = $value;
1357
1358
        return $this;
1359
    }
1360
}
1361
1362
/**
1363
 * @method string getOrganizationId()
1364
 * @method string getIdentity()
1365
 * @method string getAccessToken()
1366
 */
1367
class GetRepositoryInfo extends Roa
1368
{
1369
    /** @var string */
1370
    public $pathPattern = '/api/v3/projects/info';
1371
1372
    /**
1373
     * @param string $value
1374
     *
1375
     * @return $this
1376
     */
1377
    public function withOrganizationId($value)
1378
    {
1379
        $this->data['OrganizationId'] = $value;
1380
        $this->options['query']['OrganizationId'] = $value;
1381
1382
        return $this;
1383
    }
1384
1385
    /**
1386
     * @param string $value
1387
     *
1388
     * @return $this
1389
     */
1390
    public function withIdentity($value)
1391
    {
1392
        $this->data['Identity'] = $value;
1393
        $this->options['query']['Identity'] = $value;
1394
1395
        return $this;
1396
    }
1397
1398
    /**
1399
     * @param string $value
1400
     *
1401
     * @return $this
1402
     */
1403
    public function withAccessToken($value)
1404
    {
1405
        $this->data['AccessToken'] = $value;
1406
        $this->options['query']['AccessToken'] = $value;
1407
1408
        return $this;
1409
    }
1410
}
1411
1412
/**
1413
 * @method string getOrganizationId()
1414
 * @method string getSubUserId()
1415
 * @method string getGroupId()
1416
 * @method $this withGroupId($value)
1417
 * @method string getPageSize()
1418
 * @method string getAccessToken()
1419
 * @method string getPage()
1420
 */
1421
class ListGroupMember extends Roa
1422
{
1423
    /** @var string */
1424
    public $pathPattern = '/api/v3/groups/[GroupId]/members';
1425
1426
    /**
1427
     * @param string $value
1428
     *
1429
     * @return $this
1430
     */
1431
    public function withOrganizationId($value)
1432
    {
1433
        $this->data['OrganizationId'] = $value;
1434
        $this->options['query']['OrganizationId'] = $value;
1435
1436
        return $this;
1437
    }
1438
1439
    /**
1440
     * @param string $value
1441
     *
1442
     * @return $this
1443
     */
1444
    public function withSubUserId($value)
1445
    {
1446
        $this->data['SubUserId'] = $value;
1447
        $this->options['query']['SubUserId'] = $value;
1448
1449
        return $this;
1450
    }
1451
1452
    /**
1453
     * @param string $value
1454
     *
1455
     * @return $this
1456
     */
1457
    public function withPageSize($value)
1458
    {
1459
        $this->data['PageSize'] = $value;
1460
        $this->options['query']['PageSize'] = $value;
1461
1462
        return $this;
1463
    }
1464
1465
    /**
1466
     * @param string $value
1467
     *
1468
     * @return $this
1469
     */
1470
    public function withAccessToken($value)
1471
    {
1472
        $this->data['AccessToken'] = $value;
1473
        $this->options['query']['AccessToken'] = $value;
1474
1475
        return $this;
1476
    }
1477
1478
    /**
1479
     * @param string $value
1480
     *
1481
     * @return $this
1482
     */
1483
    public function withPage($value)
1484
    {
1485
        $this->data['Page'] = $value;
1486
        $this->options['query']['Page'] = $value;
1487
1488
        return $this;
1489
    }
1490
}
1491
1492
/**
1493
 * @method string getAccessToken()
1494
 * @method string getIsMember()
1495
 * @method string getOrganizationId()
1496
 * @method string getSearch()
1497
 * @method string getSubUserId()
1498
 * @method string getIdentity()
1499
 * @method $this withIdentity($value)
1500
 * @method string getPageSize()
1501
 * @method string getPage()
1502
 */
1503
class ListGroupRepositories extends Roa
1504
{
1505
    /** @var string */
1506
    public $pathPattern = '/api/v3/groups/[Identity]/projects';
1507
1508
    /**
1509
     * @param string $value
1510
     *
1511
     * @return $this
1512
     */
1513
    public function withAccessToken($value)
1514
    {
1515
        $this->data['AccessToken'] = $value;
1516
        $this->options['query']['AccessToken'] = $value;
1517
1518
        return $this;
1519
    }
1520
1521
    /**
1522
     * @param string $value
1523
     *
1524
     * @return $this
1525
     */
1526
    public function withIsMember($value)
1527
    {
1528
        $this->data['IsMember'] = $value;
1529
        $this->options['query']['IsMember'] = $value;
1530
1531
        return $this;
1532
    }
1533
1534
    /**
1535
     * @param string $value
1536
     *
1537
     * @return $this
1538
     */
1539
    public function withOrganizationId($value)
1540
    {
1541
        $this->data['OrganizationId'] = $value;
1542
        $this->options['query']['OrganizationId'] = $value;
1543
1544
        return $this;
1545
    }
1546
1547
    /**
1548
     * @param string $value
1549
     *
1550
     * @return $this
1551
     */
1552
    public function withSearch($value)
1553
    {
1554
        $this->data['Search'] = $value;
1555
        $this->options['query']['Search'] = $value;
1556
1557
        return $this;
1558
    }
1559
1560
    /**
1561
     * @param string $value
1562
     *
1563
     * @return $this
1564
     */
1565
    public function withSubUserId($value)
1566
    {
1567
        $this->data['SubUserId'] = $value;
1568
        $this->options['query']['SubUserId'] = $value;
1569
1570
        return $this;
1571
    }
1572
1573
    /**
1574
     * @param string $value
1575
     *
1576
     * @return $this
1577
     */
1578
    public function withPageSize($value)
1579
    {
1580
        $this->data['PageSize'] = $value;
1581
        $this->options['query']['PageSize'] = $value;
1582
1583
        return $this;
1584
    }
1585
1586
    /**
1587
     * @param string $value
1588
     *
1589
     * @return $this
1590
     */
1591
    public function withPage($value)
1592
    {
1593
        $this->data['Page'] = $value;
1594
        $this->options['query']['Page'] = $value;
1595
1596
        return $this;
1597
    }
1598
}
1599
1600
/**
1601
 * @method string getOrganizationId()
1602
 * @method string getIncludePersonal()
1603
 * @method string getSearch()
1604
 * @method string getSubUserId()
1605
 * @method string getPageSize()
1606
 * @method string getAccessToken()
1607
 * @method string getPage()
1608
 */
1609
class ListGroups extends Roa
1610
{
1611
    /** @var string */
1612
    public $pathPattern = '/api/v3/groups/all';
1613
1614
    /**
1615
     * @param string $value
1616
     *
1617
     * @return $this
1618
     */
1619
    public function withOrganizationId($value)
1620
    {
1621
        $this->data['OrganizationId'] = $value;
1622
        $this->options['query']['OrganizationId'] = $value;
1623
1624
        return $this;
1625
    }
1626
1627
    /**
1628
     * @param string $value
1629
     *
1630
     * @return $this
1631
     */
1632
    public function withIncludePersonal($value)
1633
    {
1634
        $this->data['IncludePersonal'] = $value;
1635
        $this->options['query']['IncludePersonal'] = $value;
1636
1637
        return $this;
1638
    }
1639
1640
    /**
1641
     * @param string $value
1642
     *
1643
     * @return $this
1644
     */
1645
    public function withSearch($value)
1646
    {
1647
        $this->data['Search'] = $value;
1648
        $this->options['query']['Search'] = $value;
1649
1650
        return $this;
1651
    }
1652
1653
    /**
1654
     * @param string $value
1655
     *
1656
     * @return $this
1657
     */
1658
    public function withSubUserId($value)
1659
    {
1660
        $this->data['SubUserId'] = $value;
1661
        $this->options['query']['SubUserId'] = $value;
1662
1663
        return $this;
1664
    }
1665
1666
    /**
1667
     * @param string $value
1668
     *
1669
     * @return $this
1670
     */
1671
    public function withPageSize($value)
1672
    {
1673
        $this->data['PageSize'] = $value;
1674
        $this->options['query']['PageSize'] = $value;
1675
1676
        return $this;
1677
    }
1678
1679
    /**
1680
     * @param string $value
1681
     *
1682
     * @return $this
1683
     */
1684
    public function withAccessToken($value)
1685
    {
1686
        $this->data['AccessToken'] = $value;
1687
        $this->options['query']['AccessToken'] = $value;
1688
1689
        return $this;
1690
    }
1691
1692
    /**
1693
     * @param string $value
1694
     *
1695
     * @return $this
1696
     */
1697
    public function withPage($value)
1698
    {
1699
        $this->data['Page'] = $value;
1700
        $this->options['query']['Page'] = $value;
1701
1702
        return $this;
1703
    }
1704
}
1705
1706
/**
1707
 * @method string getOrganizationId()
1708
 * @method string getSearch()
1709
 * @method string getSubUserId()
1710
 * @method string getPageSize()
1711
 * @method string getAccessToken()
1712
 * @method string getPage()
1713
 * @method string getProjectId()
1714
 * @method $this withProjectId($value)
1715
 */
1716
class ListRepositoryBranches extends Roa
1717
{
1718
    /** @var string */
1719
    public $pathPattern = '/api/v3/projects/[ProjectId]/repository/branches';
1720
1721
    /**
1722
     * @param string $value
1723
     *
1724
     * @return $this
1725
     */
1726
    public function withOrganizationId($value)
1727
    {
1728
        $this->data['OrganizationId'] = $value;
1729
        $this->options['query']['OrganizationId'] = $value;
1730
1731
        return $this;
1732
    }
1733
1734
    /**
1735
     * @param string $value
1736
     *
1737
     * @return $this
1738
     */
1739
    public function withSearch($value)
1740
    {
1741
        $this->data['Search'] = $value;
1742
        $this->options['query']['Search'] = $value;
1743
1744
        return $this;
1745
    }
1746
1747
    /**
1748
     * @param string $value
1749
     *
1750
     * @return $this
1751
     */
1752
    public function withSubUserId($value)
1753
    {
1754
        $this->data['SubUserId'] = $value;
1755
        $this->options['query']['SubUserId'] = $value;
1756
1757
        return $this;
1758
    }
1759
1760
    /**
1761
     * @param string $value
1762
     *
1763
     * @return $this
1764
     */
1765
    public function withPageSize($value)
1766
    {
1767
        $this->data['PageSize'] = $value;
1768
        $this->options['query']['PageSize'] = $value;
1769
1770
        return $this;
1771
    }
1772
1773
    /**
1774
     * @param string $value
1775
     *
1776
     * @return $this
1777
     */
1778
    public function withAccessToken($value)
1779
    {
1780
        $this->data['AccessToken'] = $value;
1781
        $this->options['query']['AccessToken'] = $value;
1782
1783
        return $this;
1784
    }
1785
1786
    /**
1787
     * @param string $value
1788
     *
1789
     * @return $this
1790
     */
1791
    public function withPage($value)
1792
    {
1793
        $this->data['Page'] = $value;
1794
        $this->options['query']['Page'] = $value;
1795
1796
        return $this;
1797
    }
1798
}
1799
1800
/**
1801
 * @method string getOrganizationId()
1802
 * @method string getSubUserId()
1803
 * @method string getQuery()
1804
 * @method string getPageSize()
1805
 * @method string getAccessToken()
1806
 * @method string getPage()
1807
 * @method string getProjectId()
1808
 * @method $this withProjectId($value)
1809
 */
1810
class ListRepositoryMember extends Roa
1811
{
1812
    /** @var string */
1813
    public $pathPattern = '/api/v3/projects/[ProjectId]/members';
1814
1815
    /**
1816
     * @param string $value
1817
     *
1818
     * @return $this
1819
     */
1820
    public function withOrganizationId($value)
1821
    {
1822
        $this->data['OrganizationId'] = $value;
1823
        $this->options['query']['OrganizationId'] = $value;
1824
1825
        return $this;
1826
    }
1827
1828
    /**
1829
     * @param string $value
1830
     *
1831
     * @return $this
1832
     */
1833
    public function withSubUserId($value)
1834
    {
1835
        $this->data['SubUserId'] = $value;
1836
        $this->options['query']['SubUserId'] = $value;
1837
1838
        return $this;
1839
    }
1840
1841
    /**
1842
     * @param string $value
1843
     *
1844
     * @return $this
1845
     */
1846
    public function withQuery($value)
1847
    {
1848
        $this->data['Query'] = $value;
1849
        $this->options['query']['Query'] = $value;
1850
1851
        return $this;
1852
    }
1853
1854
    /**
1855
     * @param string $value
1856
     *
1857
     * @return $this
1858
     */
1859
    public function withPageSize($value)
1860
    {
1861
        $this->data['PageSize'] = $value;
1862
        $this->options['query']['PageSize'] = $value;
1863
1864
        return $this;
1865
    }
1866
1867
    /**
1868
     * @param string $value
1869
     *
1870
     * @return $this
1871
     */
1872
    public function withAccessToken($value)
1873
    {
1874
        $this->data['AccessToken'] = $value;
1875
        $this->options['query']['AccessToken'] = $value;
1876
1877
        return $this;
1878
    }
1879
1880
    /**
1881
     * @param string $value
1882
     *
1883
     * @return $this
1884
     */
1885
    public function withPage($value)
1886
    {
1887
        $this->data['Page'] = $value;
1888
        $this->options['query']['Page'] = $value;
1889
1890
        return $this;
1891
    }
1892
}
1893
1894
/**
1895
 * @method string getOrganizationId()
1896
 * @method string getPath()
1897
 * @method string getSubUserId()
1898
 * @method string getAccessToken()
1899
 * @method string getType()
1900
 * @method string getProjectId()
1901
 * @method $this withProjectId($value)
1902
 * @method string getRefName()
1903
 */
1904
class ListRepositoryTree extends Roa
1905
{
1906
    /** @var string */
1907
    public $pathPattern = '/api/v4/projects/[ProjectId]/repository/tree';
1908
1909
    /**
1910
     * @param string $value
1911
     *
1912
     * @return $this
1913
     */
1914
    public function withOrganizationId($value)
1915
    {
1916
        $this->data['OrganizationId'] = $value;
1917
        $this->options['query']['OrganizationId'] = $value;
1918
1919
        return $this;
1920
    }
1921
1922
    /**
1923
     * @param string $value
1924
     *
1925
     * @return $this
1926
     */
1927
    public function withPath($value)
1928
    {
1929
        $this->data['Path'] = $value;
1930
        $this->options['query']['Path'] = $value;
1931
1932
        return $this;
1933
    }
1934
1935
    /**
1936
     * @param string $value
1937
     *
1938
     * @return $this
1939
     */
1940
    public function withSubUserId($value)
1941
    {
1942
        $this->data['SubUserId'] = $value;
1943
        $this->options['query']['SubUserId'] = $value;
1944
1945
        return $this;
1946
    }
1947
1948
    /**
1949
     * @param string $value
1950
     *
1951
     * @return $this
1952
     */
1953
    public function withAccessToken($value)
1954
    {
1955
        $this->data['AccessToken'] = $value;
1956
        $this->options['query']['AccessToken'] = $value;
1957
1958
        return $this;
1959
    }
1960
1961
    /**
1962
     * @param string $value
1963
     *
1964
     * @return $this
1965
     */
1966
    public function withType($value)
1967
    {
1968
        $this->data['Type'] = $value;
1969
        $this->options['query']['Type'] = $value;
1970
1971
        return $this;
1972
    }
1973
1974
    /**
1975
     * @param string $value
1976
     *
1977
     * @return $this
1978
     */
1979
    public function withRefName($value)
1980
    {
1981
        $this->data['RefName'] = $value;
1982
        $this->options['query']['RefName'] = $value;
1983
1984
        return $this;
1985
    }
1986
}
1987
1988
/**
1989
 * @method string getOrganizationId()
1990
 * @method string getSubUserId()
1991
 * @method string getMergeRequestId()
1992
 * @method $this withMergeRequestId($value)
1993
 * @method string getAccessToken()
1994
 * @method string getProjectId()
1995
 * @method $this withProjectId($value)
1996
 */
1997
class MergeMergeRequest extends Roa
1998
{
1999
    /** @var string */
2000
    public $pathPattern = '/api/v3/projects/[ProjectId]/merge_request/[MergeRequestId]/merge';
2001
2002
    /** @var string */
2003
    public $method = 'PUT';
2004
2005
    /**
2006
     * @param string $value
2007
     *
2008
     * @return $this
2009
     */
2010
    public function withOrganizationId($value)
2011
    {
2012
        $this->data['OrganizationId'] = $value;
2013
        $this->options['query']['OrganizationId'] = $value;
2014
2015
        return $this;
2016
    }
2017
2018
    /**
2019
     * @param string $value
2020
     *
2021
     * @return $this
2022
     */
2023
    public function withSubUserId($value)
2024
    {
2025
        $this->data['SubUserId'] = $value;
2026
        $this->options['query']['SubUserId'] = $value;
2027
2028
        return $this;
2029
    }
2030
2031
    /**
2032
     * @param string $value
2033
     *
2034
     * @return $this
2035
     */
2036
    public function withAccessToken($value)
2037
    {
2038
        $this->data['AccessToken'] = $value;
2039
        $this->options['query']['AccessToken'] = $value;
2040
2041
        return $this;
2042
    }
2043
}
2044
2045
/**
2046
 * @method string getOrganizationId()
2047
 * @method string getSubUserId()
2048
 * @method string getAccessToken()
2049
 * @method string getProjectId()
2050
 * @method $this withProjectId($value)
2051
 */
2052
class UpdateFile extends Roa
2053
{
2054
    /** @var string */
2055
    public $pathPattern = '/api/v4/projects/[ProjectId]/repository/files';
2056
2057
    /** @var string */
2058
    public $method = 'PUT';
2059
2060
    /**
2061
     * @param string $value
2062
     *
2063
     * @return $this
2064
     */
2065
    public function withOrganizationId($value)
2066
    {
2067
        $this->data['OrganizationId'] = $value;
2068
        $this->options['query']['OrganizationId'] = $value;
2069
2070
        return $this;
2071
    }
2072
2073
    /**
2074
     * @param string $value
2075
     *
2076
     * @return $this
2077
     */
2078
    public function withSubUserId($value)
2079
    {
2080
        $this->data['SubUserId'] = $value;
2081
        $this->options['query']['SubUserId'] = $value;
2082
2083
        return $this;
2084
    }
2085
2086
    /**
2087
     * @param string $value
2088
     *
2089
     * @return $this
2090
     */
2091
    public function withAccessToken($value)
2092
    {
2093
        $this->data['AccessToken'] = $value;
2094
        $this->options['query']['AccessToken'] = $value;
2095
2096
        return $this;
2097
    }
2098
}
2099
2100
/**
2101
 * @method string getOrganizationId()
2102
 * @method string getSubUserId()
2103
 * @method string getGroupId()
2104
 * @method $this withGroupId($value)
2105
 * @method string getAccessToken()
2106
 * @method string getUserId()
2107
 * @method $this withUserId($value)
2108
 */
2109
class UpdateGroupMember extends Roa
2110
{
2111
    /** @var string */
2112
    public $pathPattern = '/api/v3/groups/[GroupId]/members/[UserId]';
2113
2114
    /** @var string */
2115
    public $method = 'PUT';
2116
2117
    /**
2118
     * @param string $value
2119
     *
2120
     * @return $this
2121
     */
2122
    public function withOrganizationId($value)
2123
    {
2124
        $this->data['OrganizationId'] = $value;
2125
        $this->options['query']['OrganizationId'] = $value;
2126
2127
        return $this;
2128
    }
2129
2130
    /**
2131
     * @param string $value
2132
     *
2133
     * @return $this
2134
     */
2135
    public function withSubUserId($value)
2136
    {
2137
        $this->data['SubUserId'] = $value;
2138
        $this->options['query']['SubUserId'] = $value;
2139
2140
        return $this;
2141
    }
2142
2143
    /**
2144
     * @param string $value
2145
     *
2146
     * @return $this
2147
     */
2148
    public function withAccessToken($value)
2149
    {
2150
        $this->data['AccessToken'] = $value;
2151
        $this->options['query']['AccessToken'] = $value;
2152
2153
        return $this;
2154
    }
2155
}
2156
2157
/**
2158
 * @method string getOrganizationId()
2159
 * @method string getSubUserId()
2160
 * @method string getAccessToken()
2161
 * @method string getProjectId()
2162
 * @method $this withProjectId($value)
2163
 * @method string getUserId()
2164
 * @method $this withUserId($value)
2165
 */
2166
class UpdateRepositoryMember extends Roa
2167
{
2168
    /** @var string */
2169
    public $pathPattern = '/api/v3/projects/[ProjectId]/members/[UserId]';
2170
2171
    /** @var string */
2172
    public $method = 'PUT';
2173
2174
    /**
2175
     * @param string $value
2176
     *
2177
     * @return $this
2178
     */
2179
    public function withOrganizationId($value)
2180
    {
2181
        $this->data['OrganizationId'] = $value;
2182
        $this->options['query']['OrganizationId'] = $value;
2183
2184
        return $this;
2185
    }
2186
2187
    /**
2188
     * @param string $value
2189
     *
2190
     * @return $this
2191
     */
2192
    public function withSubUserId($value)
2193
    {
2194
        $this->data['SubUserId'] = $value;
2195
        $this->options['query']['SubUserId'] = $value;
2196
2197
        return $this;
2198
    }
2199
2200
    /**
2201
     * @param string $value
2202
     *
2203
     * @return $this
2204
     */
2205
    public function withAccessToken($value)
2206
    {
2207
        $this->data['AccessToken'] = $value;
2208
        $this->options['query']['AccessToken'] = $value;
2209
2210
        return $this;
2211
    }
2212
}
2213