Skip to content

Commit 5593549

Browse files
authored
Merge pull request #1302 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-7b73af1e4dbdd0025b62a706c5a2f386-from-1.1.4-7b73af1e4dbdd0025b62a706c5a2f386
2 parents f1cdb46 + b7412b4 commit 5593549

18 files changed

+113
-86
lines changed

clients/GitHubEnterpriseCloud/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ $client->operations()->classroom()->getAnAssignment( assignment_id: 13,
598598
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/classroom/classroom#get-an-assignment).
599599

600600

601-
### classroom/list-accepted-assigments-for-an-assignment
601+
### classroom/list-accepted-assignments-for-an-assignment
602602

603603
List accepted assignments for an assignment
604604

@@ -613,7 +613,7 @@ $client->call('GET /assignments/{assignment_id}/accepted_assignments', [
613613

614614
Operations method:
615615
```php
616-
$client->operations()->classroom()->listAcceptedAssigmentsForAnAssignment( assignment_id: 13,
616+
$client->operations()->classroom()->listAcceptedAssignmentsForAnAssignment( assignment_id: 13,
617617
page: 1,
618618
per_page: 8,
619619
);
@@ -622,7 +622,7 @@ $client->operations()->classroom()->listAcceptedAssigmentsForAnAssignment(
622622
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/classroom/classroom#list-accepted-assignments-for-an-assignment).
623623

624624

625-
### classroom/list-accepted-assigments-for-an-assignment
625+
### classroom/list-accepted-assignments-for-an-assignment
626626

627627
List accepted assignments for an assignment
628628

@@ -637,7 +637,7 @@ $client->call('LIST /assignments/{assignment_id}/accepted_assignments', [
637637

638638
Operations method:
639639
```php
640-
$client->operations()->classroom()->listAcceptedAssigmentsForAnAssignmentListing( assignment_id: 13,
640+
$client->operations()->classroom()->listAcceptedAssignmentsForAnAssignmentListing( assignment_id: 13,
641641
page: 1,
642642
per_page: 8,
643643
);

clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state

+34-34
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "e44a416901524b2c0d9993b097322ff2",
2+
"specHash": "7b73af1e4dbdd0025b62a706c5a2f386",
33
"generatedFiles": {
44
"files": [
55
{
@@ -2300,7 +2300,7 @@
23002300
},
23012301
{
23022302
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestDequeued.php",
2303-
"hash": "261e8025d53925861d98c47079b08bc3"
2303+
"hash": "dcb65fbc73254ea02f6386878f976ee4"
23042304
},
23052305
{
23062306
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestEdited.php",
@@ -26644,7 +26644,7 @@
2664426644
},
2664526645
{
2664626646
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php",
26647-
"hash": "003840b4c8a87ffd242ff157789d0dfe"
26647+
"hash": "33b6a3b93b5a4e7daea08442df5f68e6"
2664826648
},
2664926649
{
2665026650
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
@@ -26744,7 +26744,7 @@
2674426744
},
2674526745
{
2674626746
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php",
26747-
"hash": "07b57252e82e6618081ac2b83575ce11"
26747+
"hash": "5e5cd15d2359ac8520c6d733964930b6"
2674826748
},
2674926749
{
2675026750
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php",
@@ -26856,7 +26856,7 @@
2685626856
},
2685726857
{
2685826858
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operators.php",
26859-
"hash": "6f2dcf77930f8ccd5d71119e1abe4569"
26859+
"hash": "114d2afb53dc54c1b327e200ac058350"
2686026860
},
2686126861
{
2686226862
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php",
@@ -29286,30 +29286,6 @@
2928629286
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/GetAnAssignmentTest.php",
2928729287
"hash": "c3fecae235e4954ccdddf4163a2de3d9"
2928829288
},
29289-
{
29290-
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/ListAcceptedAssigmentsForAnAssignment.php",
29291-
"hash": "2738fcc4b8ec29ecad2ef7167d4cd253"
29292-
},
29293-
{
29294-
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssigmentsForAnAssignment.php",
29295-
"hash": "5d449e0f9ea5b2dcdacb8bce069522a3"
29296-
},
29297-
{
29298-
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssigmentsForAnAssignmentTest.php",
29299-
"hash": "808d73318f965491d428b7a6a110b895"
29300-
},
29301-
{
29302-
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/ListAcceptedAssigmentsForAnAssignmentListing.php",
29303-
"hash": "f2f72849a9111fcaa9258227e2777962"
29304-
},
29305-
{
29306-
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssigmentsForAnAssignmentListing.php",
29307-
"hash": "d2498fa90e9dc097d6e1f1c37a10f034"
29308-
},
29309-
{
29310-
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssigmentsForAnAssignmentListingTest.php",
29311-
"hash": "d039ad47eeb8aa697c17316d473aedbf"
29312-
},
2931329289
{
2931429290
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/GetAssignmentGrades.php",
2931529291
"hash": "8f42b2c2028552d81c2d1f39727b2ca4"
@@ -29420,15 +29396,15 @@
2942029396
},
2942129397
{
2942229398
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Classroom.php",
29423-
"hash": "a241982cbb84d6bbdd05d3ae135f8d7d"
29399+
"hash": "02f6372552db046c05b441836f161c6d"
2942429400
},
2942529401
{
2942629402
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Classroom.php",
29427-
"hash": "0ac237cc383cb966dc9cce4b88d3baf3"
29403+
"hash": "4c9c9a2e77b2feb8cbdf700ce0f35596"
2942829404
},
2942929405
{
2943029406
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Classroom.php",
29431-
"hash": "a4b638629ec09107a55fdf707dc44c35"
29407+
"hash": "807e4e22eecda39075d932568777714e"
2943229408
},
2943329409
{
2943429410
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Assignments\/AssignmentId.php",
@@ -29860,11 +29836,11 @@
2986029836
},
2986129837
{
2986229838
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
29863-
"hash": "d4327cff15ed6791470ae0084e08653d"
29839+
"hash": "66c86c106d5f40c841df6ce14baf6614"
2986429840
},
2986529841
{
2986629842
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
29867-
"hash": "8b24c3d0b4051f8068328f06fbbc0f44"
29843+
"hash": "7a6a047d8b1714aff9bd196c1033c803"
2986829844
},
2986929845
{
2987029846
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -32817,6 +32793,30 @@
3281732793
{
3281832794
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CvssSeverities\/CvssVFour.php",
3281932795
"hash": "c93b35e1c0ba443618667713f203525e"
32796+
},
32797+
{
32798+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignment.php",
32799+
"hash": "3d1cc5ebaf93a7239eeb37d68da30ef7"
32800+
},
32801+
{
32802+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssignmentsForAnAssignment.php",
32803+
"hash": "936779952fb42e0e18409b4035105166"
32804+
},
32805+
{
32806+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignmentTest.php",
32807+
"hash": "c5d208743b9955398449a87c15e91679"
32808+
},
32809+
{
32810+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignmentListing.php",
32811+
"hash": "573f6ce5986a39629f4a56d56deecf52"
32812+
},
32813+
{
32814+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssignmentsForAnAssignmentListing.php",
32815+
"hash": "31dd17eabacd5546384856ddd2f2c8b9"
32816+
},
32817+
{
32818+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignmentListingTest.php",
32819+
"hash": "ac1d79193849d83b88390219ac750e49"
3282032820
}
3282132821
]
3282232822
},
+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
use function json_decode;
2121
use function str_replace;
2222

23-
final class ListAcceptedAssigmentsForAnAssignment
23+
final class ListAcceptedAssignmentsForAnAssignment
2424
{
25-
public const OPERATION_ID = 'classroom/list-accepted-assigments-for-an-assignment';
25+
public const OPERATION_ID = 'classroom/list-accepted-assignments-for-an-assignment';
2626
public const OPERATION_MATCH = 'GET /assignments/{assignment_id}/accepted_assignments';
2727
/**The unique identifier of the classroom assignment. **/
2828
private int $assignmentId;
+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
use function json_decode;
2121
use function str_replace;
2222

23-
final class ListAcceptedAssigmentsForAnAssignmentListing
23+
final class ListAcceptedAssignmentsForAnAssignmentListing
2424
{
25-
public const OPERATION_ID = 'classroom/list-accepted-assigments-for-an-assignment';
25+
public const OPERATION_ID = 'classroom/list-accepted-assignments-for-an-assignment';
2626
public const OPERATION_MATCH = 'LIST /assignments/{assignment_id}/accepted_assignments';
2727
/**The unique identifier of the classroom assignment. **/
2828
private int $assignmentId;
+4-4
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
use function React\Async\await;
1616
use function WyriHaximus\React\awaitObservable;
1717

18-
final readonly class ListAcceptedAssigmentsForAnAssignment
18+
final readonly class ListAcceptedAssignmentsForAnAssignment
1919
{
20-
public const OPERATION_ID = 'classroom/list-accepted-assigments-for-an-assignment';
20+
public const OPERATION_ID = 'classroom/list-accepted-assignments-for-an-assignment';
2121
public const OPERATION_MATCH = 'GET /assignments/{assignment_id}/accepted_assignments';
2222

2323
public function __construct(private Browser $browser, private AuthenticationInterface $authentication, private SchemaValidator $responseSchemaValidator, private Internal\Hydrator\Operation\Assignments\AssignmentId\AcceptedAssignments $hydrator)
2424
{
2525
}
2626

27-
/** @return Observable<Schema\ClassroomAcceptedAssignment> */
27+
/** @return iterable<int,Schema\ClassroomAcceptedAssignment> */
2828
public function call(int $assignmentId, int $page = 1, int $perPage = 30): iterable
2929
{
30-
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Classroom\ListAcceptedAssigmentsForAnAssignment($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage);
30+
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Classroom\ListAcceptedAssignmentsForAnAssignment($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage);
3131
$request = $operation->createRequest();
3232
$result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable {
3333
return $operation->createResponse($response);
+4-4
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
use function React\Async\await;
1616
use function WyriHaximus\React\awaitObservable;
1717

18-
final readonly class ListAcceptedAssigmentsForAnAssignmentListing
18+
final readonly class ListAcceptedAssignmentsForAnAssignmentListing
1919
{
20-
public const OPERATION_ID = 'classroom/list-accepted-assigments-for-an-assignment';
20+
public const OPERATION_ID = 'classroom/list-accepted-assignments-for-an-assignment';
2121
public const OPERATION_MATCH = 'LIST /assignments/{assignment_id}/accepted_assignments';
2222

2323
public function __construct(private Browser $browser, private AuthenticationInterface $authentication, private SchemaValidator $responseSchemaValidator, private Internal\Hydrator\Operation\Assignments\AssignmentId\AcceptedAssignments $hydrator)
2424
{
2525
}
2626

27-
/** @return Observable<Schema\ClassroomAcceptedAssignment> */
27+
/** @return iterable<int,Schema\ClassroomAcceptedAssignment> */
2828
public function call(int $assignmentId, int $page = 1, int $perPage = 30): iterable
2929
{
30-
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Classroom\ListAcceptedAssigmentsForAnAssignmentListing($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage);
30+
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Classroom\ListAcceptedAssignmentsForAnAssignmentListing($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage);
3131
$request = $operation->createRequest();
3232
$result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable {
3333
return $operation->createResponse($response);

clients/GitHubEnterpriseCloud/src/Internal/Operators.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ final class Operators
3737
private Internal\Operator\Apps\ScopeToken|null $apps👷ScopeToken = null;
3838
private Internal\Operator\Apps\GetBySlug|null $apps👷GetBySlug = null;
3939
private Internal\Operator\Classroom\GetAnAssignment|null $classroom👷GetAnAssignment = null;
40-
private Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignment|null $classroom👷ListAcceptedAssigmentsForAnAssignment = null;
41-
private Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignmentListing|null $classroom👷ListAcceptedAssigmentsForAnAssignmentListing = null;
40+
private Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignment|null $classroom👷ListAcceptedAssignmentsForAnAssignment = null;
41+
private Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignmentListing|null $classroom👷ListAcceptedAssignmentsForAnAssignmentListing = null;
4242
private Internal\Operator\Classroom\GetAssignmentGrades|null $classroom👷GetAssignmentGrades = null;
4343
private Internal\Operator\Classroom\ListClassrooms|null $classroom👷ListClassrooms = null;
4444
private Internal\Operator\Classroom\ListClassroomsListing|null $classroom👷ListClassroomsListing = null;
@@ -1503,22 +1503,22 @@ public function classroom👷GetAnAssignment(): Internal\Operator\Classroom\GetA
15031503
return $this->classroom👷GetAnAssignment;
15041504
}
15051505

1506-
public function classroom👷ListAcceptedAssigmentsForAnAssignment(): Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignment
1506+
public function classroom👷ListAcceptedAssignmentsForAnAssignment(): Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignment
15071507
{
1508-
if ($this->classroom👷ListAcceptedAssigmentsForAnAssignment instanceof Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignment === false) {
1509-
$this->classroom👷ListAcceptedAssigmentsForAnAssignment = new Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignment($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments());
1508+
if ($this->classroom👷ListAcceptedAssignmentsForAnAssignment instanceof Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignment === false) {
1509+
$this->classroom👷ListAcceptedAssignmentsForAnAssignment = new Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignment($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments());
15101510
}
15111511

1512-
return $this->classroom👷ListAcceptedAssigmentsForAnAssignment;
1512+
return $this->classroom👷ListAcceptedAssignmentsForAnAssignment;
15131513
}
15141514

1515-
public function classroom👷ListAcceptedAssigmentsForAnAssignmentListing(): Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignmentListing
1515+
public function classroom👷ListAcceptedAssignmentsForAnAssignmentListing(): Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignmentListing
15161516
{
1517-
if ($this->classroom👷ListAcceptedAssigmentsForAnAssignmentListing instanceof Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignmentListing === false) {
1518-
$this->classroom👷ListAcceptedAssigmentsForAnAssignmentListing = new Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignmentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments());
1517+
if ($this->classroom👷ListAcceptedAssignmentsForAnAssignmentListing instanceof Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignmentListing === false) {
1518+
$this->classroom👷ListAcceptedAssignmentsForAnAssignmentListing = new Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignmentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments());
15191519
}
15201520

1521-
return $this->classroom👷ListAcceptedAssigmentsForAnAssignmentListing;
1521+
return $this->classroom👷ListAcceptedAssignmentsForAnAssignmentListing;
15221522
}
15231523

15241524
public function classroom👷GetAssignmentGrades(): Internal\Operator\Classroom\GetAssignmentGrades

clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Classroom.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public function getAClassroom(array $params): \ApiClients\Client\GitHubEnterpris
7171
return $operator->call($arguments['classroom_id']);
7272
}
7373

74-
/** @return Observable<Schema\ClassroomAcceptedAssignment> */
75-
public function listAcceptedAssigmentsForAnAssignment(array $params): iterable
74+
/** @return iterable<int,Schema\ClassroomAcceptedAssignment> */
75+
public function listAcceptedAssignmentsForAnAssignment(array $params): iterable
7676
{
7777
$arguments = [];
7878
if (array_key_exists('assignment_id', $params) === false) {
@@ -93,7 +93,7 @@ public function listAcceptedAssigmentsForAnAssignment(array $params): iterable
9393

9494
$arguments['per_page'] = $params['per_page'];
9595
unset($params['per_page']);
96-
$operator = new Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignment($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments());
96+
$operator = new Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignment($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments());
9797

9898
return $operator->call($arguments['assignment_id'], $arguments['page'], $arguments['per_page']);
9999
}

0 commit comments

Comments
 (0)