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 ( 65c9b3...fcdffd )
by
unknown
06:08
created

MergeMergeRequest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 12
dl 0
loc 45
rs 10
c 0
b 0
f 0

3 Methods

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