Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions clients/GitHub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ $client->operations()->classroom()->getAnAssignment( assignment_id: 13,
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/classroom/classroom#get-an-assignment).


### classroom/list-accepted-assigments-for-an-assignment
### classroom/list-accepted-assignments-for-an-assignment

List accepted assignments for an assignment

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

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


### classroom/list-accepted-assigments-for-an-assignment
### classroom/list-accepted-assignments-for-an-assignment

List accepted assignments for an assignment

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

Operations method:
```php
$client->operations()->classroom()->listAcceptedAssigmentsForAnAssignmentListing( assignment_id: 13,
$client->operations()->classroom()->listAcceptedAssignmentsForAnAssignmentListing( assignment_id: 13,
page: 1,
per_page: 8,
);
Expand Down
68 changes: 34 additions & 34 deletions clients/GitHub/etc/openapi-client-generator.state
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specHash": "1286a2730d7f8da9f91dca4d989b2f56",
"specHash": "a5d0ef223e8ea4b0fd40cfba849d6268",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -2180,7 +2180,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestDequeued.php",
"hash": "92a7b10efed15fc67dc010bc763dbb2b"
"hash": "099da42b842b3c67542474d643d42688"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestEdited.php",
Expand Down Expand Up @@ -24956,7 +24956,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php",
"hash": "5569b73dc45f3684b242e5513e522b01"
"hash": "0c755bbf08a0a859a5b877b090661cba"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
Expand Down Expand Up @@ -25060,7 +25060,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php",
"hash": "927cd9b6993c00d49e35493bf5f5feb2"
"hash": "271ff22a0c68ea8026f79dd113305f17"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php",
Expand Down Expand Up @@ -25168,7 +25168,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operators.php",
"hash": "d89c7b3d447af4a3f24163abb6a5e844"
"hash": "6414e56629281c294082d1ed24987d74"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php",
Expand Down Expand Up @@ -27202,30 +27202,6 @@
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/GetAnAssignmentTest.php",
"hash": "427c8f092f8975a6ffdb2a455153c093"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/ListAcceptedAssigmentsForAnAssignment.php",
"hash": "8bf729e2f1dbc2a0e6c305cbd981c075"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssigmentsForAnAssignment.php",
"hash": "13e1bbb9b710d03b1d7a91ac8a89b98d"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssigmentsForAnAssignmentTest.php",
"hash": "f51319bbc9dfe3d52eedf83d1c4c4b55"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/ListAcceptedAssigmentsForAnAssignmentListing.php",
"hash": "0f15039bdf8da4dba93fa285a6c8f928"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssigmentsForAnAssignmentListing.php",
"hash": "bb0c35fd475ad9a6444e40f927d21132"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssigmentsForAnAssignmentListingTest.php",
"hash": "6921831dd561f63e30fa8859f95d8498"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/GetAssignmentGrades.php",
"hash": "d276ace321f6a368bc5d6049a84f8fd6"
Expand Down Expand Up @@ -27336,15 +27312,15 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Classroom.php",
"hash": "557ff6b66132049d3ef6fb98acc7eb90"
"hash": "4f2cf8728235648cae15b1958de10bf2"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Classroom.php",
"hash": "8500a5e091c0f4e698cd2f94530e2157"
"hash": "eb3e9bed508b999c4f9c087e4b6b703e"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Classroom.php",
"hash": "f5a95d64563d6b91f87b9f9ba8f942a1"
"hash": "2dae55a3c52ed74b6e271d6fc9062a83"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Assignments\/AssignmentId.php",
Expand Down Expand Up @@ -27776,11 +27752,11 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
"hash": "b279bfe420072ca3881b316b41cde25a"
"hash": "33318fe30d614cf4a46450c45f71fb39"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
"hash": "a3cd037b10acacb7fbfa8165f0c08dac"
"hash": "1533702d14f0bea8333c07baccff6dd2"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
Expand Down Expand Up @@ -30465,6 +30441,30 @@
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CvssSeverities\/CvssVFour.php",
"hash": "0fbb9d309995f6522a3f79655d329b79"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignment.php",
"hash": "d3ee42178f38dd4d20f857193877a6ee"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssignmentsForAnAssignment.php",
"hash": "4e0347cbe7214efbcccc91d3462c0ae2"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignmentTest.php",
"hash": "f81bfc12b82dbb782514fac2034e5fc5"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignmentListing.php",
"hash": "9ee1cc05ef0547dd757ef71a10d609aa"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssignmentsForAnAssignmentListing.php",
"hash": "ee3714c4146b9cfeaee88fc613c30ca4"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignmentListingTest.php",
"hash": "9f83275b3264e5721c75f5e519252f6d"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
use function json_decode;
use function str_replace;

final class ListAcceptedAssigmentsForAnAssignment
final class ListAcceptedAssignmentsForAnAssignment
{
public const OPERATION_ID = 'classroom/list-accepted-assigments-for-an-assignment';
public const OPERATION_ID = 'classroom/list-accepted-assignments-for-an-assignment';
public const OPERATION_MATCH = 'GET /assignments/{assignment_id}/accepted_assignments';
/**The unique identifier of the classroom assignment. **/
private int $assignmentId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
use function json_decode;
use function str_replace;

final class ListAcceptedAssigmentsForAnAssignmentListing
final class ListAcceptedAssignmentsForAnAssignmentListing
{
public const OPERATION_ID = 'classroom/list-accepted-assigments-for-an-assignment';
public const OPERATION_ID = 'classroom/list-accepted-assignments-for-an-assignment';
public const OPERATION_MATCH = 'LIST /assignments/{assignment_id}/accepted_assignments';
/**The unique identifier of the classroom assignment. **/
private int $assignmentId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
use function React\Async\await;
use function WyriHaximus\React\awaitObservable;

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

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

/** @return Observable<Schema\ClassroomAcceptedAssignment> */
/** @return iterable<int,Schema\ClassroomAcceptedAssignment> */
public function call(int $assignmentId, int $page = 1, int $perPage = 30): iterable
{
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssigmentsForAnAssignment($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage);
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssignmentsForAnAssignment($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage);
$request = $operation->createRequest();
$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 {
return $operation->createResponse($response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
use function React\Async\await;
use function WyriHaximus\React\awaitObservable;

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

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

/** @return Observable<Schema\ClassroomAcceptedAssignment> */
/** @return iterable<int,Schema\ClassroomAcceptedAssignment> */
public function call(int $assignmentId, int $page = 1, int $perPage = 30): iterable
{
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssigmentsForAnAssignmentListing($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage);
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssignmentsForAnAssignmentListing($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage);
$request = $operation->createRequest();
$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 {
return $operation->createResponse($response);
Expand Down
20 changes: 10 additions & 10 deletions clients/GitHub/src/Internal/Operators.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ final class Operators
private Internal\Operator\Apps\ScopeToken|null $apps👷ScopeToken = null;
private Internal\Operator\Apps\GetBySlug|null $apps👷GetBySlug = null;
private Internal\Operator\Classroom\GetAnAssignment|null $classroom👷GetAnAssignment = null;
private Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignment|null $classroom👷ListAcceptedAssigmentsForAnAssignment = null;
private Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignmentListing|null $classroom👷ListAcceptedAssigmentsForAnAssignmentListing = null;
private Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignment|null $classroom👷ListAcceptedAssignmentsForAnAssignment = null;
private Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignmentListing|null $classroom👷ListAcceptedAssignmentsForAnAssignmentListing = null;
private Internal\Operator\Classroom\GetAssignmentGrades|null $classroom👷GetAssignmentGrades = null;
private Internal\Operator\Classroom\ListClassrooms|null $classroom👷ListClassrooms = null;
private Internal\Operator\Classroom\ListClassroomsListing|null $classroom👷ListClassroomsListing = null;
Expand Down Expand Up @@ -1378,22 +1378,22 @@ public function classroom👷GetAnAssignment(): Internal\Operator\Classroom\GetA
return $this->classroom👷GetAnAssignment;
}

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

return $this->classroom👷ListAcceptedAssigmentsForAnAssignment;
return $this->classroom👷ListAcceptedAssignmentsForAnAssignment;
}

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

return $this->classroom👷ListAcceptedAssigmentsForAnAssignmentListing;
return $this->classroom👷ListAcceptedAssignmentsForAnAssignmentListing;
}

public function classroom👷GetAssignmentGrades(): Internal\Operator\Classroom\GetAssignmentGrades
Expand Down
6 changes: 3 additions & 3 deletions clients/GitHub/src/Internal/Router/Get/Classroom.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public function getAClassroom(array $params): \ApiClients\Client\GitHub\Schema\C
return $operator->call($arguments['classroom_id']);
}

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

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

return $operator->call($arguments['assignment_id'], $arguments['page'], $arguments['per_page']);
}
Expand Down
Loading
Loading