Skip to content

Commit 93352c3

Browse files
committed
Re-fixed nested schemas
1 parent ddfd693 commit 93352c3

File tree

1,090 files changed

+215432
-59102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,090 files changed

+215432
-59102
lines changed

composer.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/OpenAPI/ApiGitHubCom/Hydrator.php

Lines changed: 185698 additions & 56769 deletions
Large diffs are not rendered by default.

src/OpenAPI/ApiGitHubCom/Schema/ActionsBillingUsage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ final class ActionsBillingUsage
1919
* The amount of free GitHub Actions minutes available.
2020
*/
2121
public readonly int $included_minutes;
22-
public readonly array $minutes_used_breakdown;
23-
public function __construct(int $total_minutes_used, int $total_paid_minutes_used, int $included_minutes, array $minutes_used_breakdown)
22+
public readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\ActionsBillingUsage\MinutesUsedBreakdown $minutes_used_breakdown;
23+
public function __construct(int $total_minutes_used, int $total_paid_minutes_used, int $included_minutes, object $minutes_used_breakdown)
2424
{
2525
$this->total_minutes_used = $total_minutes_used;
2626
$this->total_paid_minutes_used = $total_paid_minutes_used;
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<?php
2+
3+
namespace ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\ActionsBillingUsage;
4+
5+
final class MinutesUsedBreakdown
6+
{
7+
public const SCHEMA_JSON = '{"type":"object","properties":{"UBUNTU":{"type":"integer","description":"Total minutes used on Ubuntu runner machines."},"MACOS":{"type":"integer","description":"Total minutes used on macOS runner machines."},"WINDOWS":{"type":"integer","description":"Total minutes used on Windows runner machines."},"ubuntu_4_core":{"type":"integer","description":"Total minutes used on Ubuntu 4 core runner machines."},"ubuntu_8_core":{"type":"integer","description":"Total minutes used on Ubuntu 8 core runner machines."},"ubuntu_16_core":{"type":"integer","description":"Total minutes used on Ubuntu 16 core runner machines."},"ubuntu_32_core":{"type":"integer","description":"Total minutes used on Ubuntu 32 core runner machines."},"ubuntu_64_core":{"type":"integer","description":"Total minutes used on Ubuntu 64 core runner machines."},"windows_4_core":{"type":"integer","description":"Total minutes used on Windows 4 core runner machines."},"windows_8_core":{"type":"integer","description":"Total minutes used on Windows 8 core runner machines."},"windows_16_core":{"type":"integer","description":"Total minutes used on Windows 16 core runner machines."},"windows_32_core":{"type":"integer","description":"Total minutes used on Windows 32 core runner machines."},"windows_64_core":{"type":"integer","description":"Total minutes used on Windows 64 core runner machines."},"macos_12_core":{"type":"integer","description":"Total minutes used on macOS 12 core runner machines."},"total":{"type":"integer","description":"Total minutes used on all runner machines."}}}';
8+
public const SCHEMA_TITLE = 'ActionsBillingUsage\\MinutesUsedBreakdown';
9+
public const SCHEMA_DESCRIPTION = '';
10+
/**
11+
* Total minutes used on Ubuntu runner machines.
12+
*/
13+
public readonly int $UBUNTU;
14+
/**
15+
* Total minutes used on macOS runner machines.
16+
*/
17+
public readonly int $MACOS;
18+
/**
19+
* Total minutes used on Windows runner machines.
20+
*/
21+
public readonly int $WINDOWS;
22+
/**
23+
* Total minutes used on Ubuntu 4 core runner machines.
24+
*/
25+
public readonly int $ubuntu_4_core;
26+
/**
27+
* Total minutes used on Ubuntu 8 core runner machines.
28+
*/
29+
public readonly int $ubuntu_8_core;
30+
/**
31+
* Total minutes used on Ubuntu 16 core runner machines.
32+
*/
33+
public readonly int $ubuntu_16_core;
34+
/**
35+
* Total minutes used on Ubuntu 32 core runner machines.
36+
*/
37+
public readonly int $ubuntu_32_core;
38+
/**
39+
* Total minutes used on Ubuntu 64 core runner machines.
40+
*/
41+
public readonly int $ubuntu_64_core;
42+
/**
43+
* Total minutes used on Windows 4 core runner machines.
44+
*/
45+
public readonly int $windows_4_core;
46+
/**
47+
* Total minutes used on Windows 8 core runner machines.
48+
*/
49+
public readonly int $windows_8_core;
50+
/**
51+
* Total minutes used on Windows 16 core runner machines.
52+
*/
53+
public readonly int $windows_16_core;
54+
/**
55+
* Total minutes used on Windows 32 core runner machines.
56+
*/
57+
public readonly int $windows_32_core;
58+
/**
59+
* Total minutes used on Windows 64 core runner machines.
60+
*/
61+
public readonly int $windows_64_core;
62+
/**
63+
* Total minutes used on macOS 12 core runner machines.
64+
*/
65+
public readonly int $macos_12_core;
66+
/**
67+
* Total minutes used on all runner machines.
68+
*/
69+
public readonly int $total;
70+
public function __construct(int $UBUNTU, int $MACOS, int $WINDOWS, int $ubuntu_4_core, int $ubuntu_8_core, int $ubuntu_16_core, int $ubuntu_32_core, int $ubuntu_64_core, int $windows_4_core, int $windows_8_core, int $windows_16_core, int $windows_32_core, int $windows_64_core, int $macos_12_core, int $total)
71+
{
72+
$this->UBUNTU = $UBUNTU;
73+
$this->MACOS = $MACOS;
74+
$this->WINDOWS = $WINDOWS;
75+
$this->ubuntu_4_core = $ubuntu_4_core;
76+
$this->ubuntu_8_core = $ubuntu_8_core;
77+
$this->ubuntu_16_core = $ubuntu_16_core;
78+
$this->ubuntu_32_core = $ubuntu_32_core;
79+
$this->ubuntu_64_core = $ubuntu_64_core;
80+
$this->windows_4_core = $windows_4_core;
81+
$this->windows_8_core = $windows_8_core;
82+
$this->windows_16_core = $windows_16_core;
83+
$this->windows_32_core = $windows_32_core;
84+
$this->windows_64_core = $windows_64_core;
85+
$this->macos_12_core = $macos_12_core;
86+
$this->total = $total;
87+
}
88+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\ActionsMeta;
4+
5+
final class RerunInfo
6+
{
7+
public const SCHEMA_JSON = '{"type":"object","properties":{"plan_id":{"type":"string"},"job_ids":{"type":"array","items":{"type":"string"}}}}';
8+
public const SCHEMA_TITLE = 'ActionsMeta\\RerunInfo';
9+
public const SCHEMA_DESCRIPTION = '';
10+
public readonly string $plan_id;
11+
/**
12+
* @var array<\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\RerunInfo\JobIds>
13+
*/
14+
public readonly array $job_ids;
15+
/**
16+
* @param array<\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\RerunInfo\JobIds> $job_ids
17+
*/
18+
public function __construct(string $plan_id, array $job_ids)
19+
{
20+
$this->plan_id = $plan_id;
21+
$this->job_ids = $job_ids;
22+
}
23+
}

src/OpenAPI/ApiGitHubCom/Schema/AddedToProjectIssueEvent.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ final class AddedToProjectIssueEvent
1313
/**
1414
* A GitHub user.
1515
*/
16-
public readonly array $actor;
16+
public readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\SimpleUser $actor;
1717
public readonly string $event;
1818
public readonly ?string $commit_id;
1919
public readonly ?string $commit_url;
2020
public readonly string $created_at;
2121
public readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\AddedToProjectIssueEvent\PerformedViaGithubApp $performed_via_github_app;
22-
public readonly array $project_card;
23-
public function __construct(int $id, string $node_id, string $url, array $actor, string $event, string $commit_id, string $commit_url, string $created_at, mixed $performed_via_github_app, array $project_card)
22+
public readonly ?\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\AddedToProjectIssueEvent\ProjectCard $project_card;
23+
public function __construct(int $id, string $node_id, string $url, object $actor, string $event, string $commit_id, string $commit_url, string $created_at, mixed $performed_via_github_app, object $project_card)
2424
{
2525
$this->id = $id;
2626
$this->node_id = $node_id;
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
namespace ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\AddedToProjectIssueEvent;
4+
5+
final class ProjectCard
6+
{
7+
public const SCHEMA_JSON = '{"required":["id","url","project_id","project_url","column_name"],"type":"object","properties":{"id":{"type":"integer"},"url":{"type":"string","format":"uri"},"project_id":{"type":"integer"},"project_url":{"type":"string","format":"uri"},"column_name":{"type":"string"},"previous_column_name":{"type":"string"}}}';
8+
public const SCHEMA_TITLE = 'AddedToProjectIssueEvent\\ProjectCard';
9+
public const SCHEMA_DESCRIPTION = '';
10+
public readonly int $id;
11+
public readonly string $url;
12+
public readonly int $project_id;
13+
public readonly string $project_url;
14+
public readonly string $column_name;
15+
public readonly ?string $previous_column_name;
16+
public function __construct(int $id, string $url, int $project_id, string $project_url, string $column_name, string $previous_column_name)
17+
{
18+
$this->id = $id;
19+
$this->url = $url;
20+
$this->project_id = $project_id;
21+
$this->project_url = $project_url;
22+
$this->column_name = $column_name;
23+
$this->previous_column_name = $previous_column_name;
24+
}
25+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\Alert;
4+
5+
final class DismissedBy
6+
{
7+
public const SCHEMA_JSON = '{"type":["object","null"]}';
8+
public const SCHEMA_TITLE = 'Alert\\DismissedBy';
9+
public const SCHEMA_DESCRIPTION = '';
10+
public function __construct()
11+
{
12+
}
13+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?php
2+
3+
namespace ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\Alert;
4+
5+
final class Dismisser
6+
{
7+
public const SCHEMA_JSON = '{"title":"User","required":["login","id"],"type":["object","null"],"properties":{"avatar_url":{"type":"string","format":"uri"},"deleted":{"type":"boolean"},"email":{"type":["string","null"]},"events_url":{"type":"string","format":"uri-template"},"followers_url":{"type":"string","format":"uri"},"following_url":{"type":"string","format":"uri-template"},"gists_url":{"type":"string","format":"uri-template"},"gravatar_id":{"type":"string"},"html_url":{"type":"string","format":"uri"},"id":{"type":"integer"},"login":{"type":"string"},"name":{"type":"string"},"node_id":{"type":"string"},"organizations_url":{"type":"string","format":"uri"},"received_events_url":{"type":"string","format":"uri"},"repos_url":{"type":"string","format":"uri"},"site_admin":{"type":"boolean"},"starred_url":{"type":"string","format":"uri-template"},"subscriptions_url":{"type":"string","format":"uri"},"type":{"enum":["Bot","User","Organization"],"type":"string"},"url":{"type":"string","format":"uri"}}}';
8+
public const SCHEMA_TITLE = 'User';
9+
public const SCHEMA_DESCRIPTION = '';
10+
public readonly ?string $avatar_url;
11+
public readonly ?bool $deleted;
12+
public readonly ?string $email;
13+
public readonly ?string $events_url;
14+
public readonly ?string $followers_url;
15+
public readonly ?string $following_url;
16+
public readonly ?string $gists_url;
17+
public readonly ?string $gravatar_id;
18+
public readonly ?string $html_url;
19+
public readonly int $id;
20+
public readonly string $login;
21+
public readonly ?string $name;
22+
public readonly ?string $node_id;
23+
public readonly ?string $organizations_url;
24+
public readonly ?string $received_events_url;
25+
public readonly ?string $repos_url;
26+
public readonly ?bool $site_admin;
27+
public readonly ?string $starred_url;
28+
public readonly ?string $subscriptions_url;
29+
public readonly ?string $type;
30+
public readonly ?string $url;
31+
public function __construct(string $avatar_url, bool $deleted, string $email, string $events_url, string $followers_url, string $following_url, string $gists_url, string $gravatar_id, string $html_url, int $id, string $login, string $name, string $node_id, string $organizations_url, string $received_events_url, string $repos_url, bool $site_admin, string $starred_url, string $subscriptions_url, string $type, string $url)
32+
{
33+
$this->avatar_url = $avatar_url;
34+
$this->deleted = $deleted;
35+
$this->email = $email;
36+
$this->events_url = $events_url;
37+
$this->followers_url = $followers_url;
38+
$this->following_url = $following_url;
39+
$this->gists_url = $gists_url;
40+
$this->gravatar_id = $gravatar_id;
41+
$this->html_url = $html_url;
42+
$this->id = $id;
43+
$this->login = $login;
44+
$this->name = $name;
45+
$this->node_id = $node_id;
46+
$this->organizations_url = $organizations_url;
47+
$this->received_events_url = $received_events_url;
48+
$this->repos_url = $repos_url;
49+
$this->site_admin = $site_admin;
50+
$this->starred_url = $starred_url;
51+
$this->subscriptions_url = $subscriptions_url;
52+
$this->type = $type;
53+
$this->url = $url;
54+
}
55+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?php
2+
3+
namespace ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\Alert;
4+
5+
final class MostRecentInstance
6+
{
7+
public const SCHEMA_JSON = '{"title":"Alert Instance","required":["ref","analysis_key","environment","state"],"type":["object","null"],"properties":{"analysis_key":{"type":"string","description":"Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."},"classifications":{"type":"array","items":{"type":"string"}},"commit_sha":{"type":"string"},"environment":{"type":"string","description":"Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."},"location":{"type":"object","properties":{"end_column":{"type":"integer"},"end_line":{"type":"integer"},"path":{"type":"string"},"start_column":{"type":"integer"},"start_line":{"type":"integer"}}},"message":{"type":"object","properties":{"text":{"type":"string"}}},"ref":{"type":"string","description":"The full Git reference, formatted as `refs\\/heads\\/<branch name>`."},"state":{"enum":["open","dismissed","fixed"],"type":"string","description":"State of a code scanning alert."}}}';
8+
public const SCHEMA_TITLE = 'Alert Instance';
9+
public const SCHEMA_DESCRIPTION = '';
10+
/**
11+
* Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name.
12+
*/
13+
public readonly string $analysis_key;
14+
/**
15+
* @var array<\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\MostRecentInstance\Classifications>
16+
*/
17+
public readonly array $classifications;
18+
public readonly ?string $commit_sha;
19+
/**
20+
* Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed.
21+
*/
22+
public readonly string $environment;
23+
public readonly ?\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\MostRecentInstance\Location $location;
24+
public readonly ?\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\MostRecentInstance\Message $message;
25+
/**
26+
* The full Git reference, formatted as `refs/heads/<branch name>`.
27+
*/
28+
public readonly string $ref;
29+
/**
30+
* State of a code scanning alert.
31+
*/
32+
public readonly string $state;
33+
/**
34+
* @param array<\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\MostRecentInstance\Classifications> $classifications
35+
*/
36+
public function __construct(string $analysis_key, array $classifications, string $commit_sha, string $environment, object $location, object $message, string $ref, string $state)
37+
{
38+
$this->analysis_key = $analysis_key;
39+
$this->classifications = $classifications;
40+
$this->commit_sha = $commit_sha;
41+
$this->environment = $environment;
42+
$this->location = $location;
43+
$this->message = $message;
44+
$this->ref = $ref;
45+
$this->state = $state;
46+
}
47+
}

0 commit comments

Comments
 (0)