Skip to content

Commit 7fda568

Browse files
authored
[GitHubEnterpriseCloud] Update to 1.1.4-de63bd579a9102d66fca8d9d687b598e from 1.1.4-82345c77cb5488207ef5eef6763bf7ec
Detected Schema changes: ERROR: error: Error thrown when comparing: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: component 'server-statistics-actions.yaml' does not exist in the specification ERROR: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: component 'server-statistics-packages.yaml' does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [217037:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [217039:11] ERROR: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: component 'server-statistics-actions.yaml' does not exist in the specification ERROR: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: component 'server-statistics-packages.yaml' does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [216966:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [216968:11]
1 parent 850acd0 commit 7fda568

File tree

220 files changed

+1634
-862
lines changed

Some content is hidden

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

220 files changed

+1634
-862
lines changed

etc/openapi-client-generator.state

Lines changed: 224 additions & 220 deletions
Large diffs are not rendered by default.

src/Schema/EnterpriseWebhooks.php

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace ApiClients\Client\GitHubEnterpriseCloud\Schema;
6+
7+
use EventSauce\ObjectHydrator\MapFrom;
8+
9+
final readonly class EnterpriseWebhooks
10+
{
11+
public const SCHEMA_JSON = '{
12+
"title": "Enterprise",
13+
"required": [
14+
"id",
15+
"node_id",
16+
"name",
17+
"slug",
18+
"html_url",
19+
"created_at",
20+
"updated_at",
21+
"avatar_url"
22+
],
23+
"type": "object",
24+
"properties": {
25+
"description": {
26+
"type": [
27+
"string",
28+
"null"
29+
],
30+
"description": "A short description of the enterprise."
31+
},
32+
"html_url": {
33+
"type": "string",
34+
"format": "uri",
35+
"examples": [
36+
"https:\\/\\/github.com\\/enterprises\\/octo-business"
37+
]
38+
},
39+
"website_url": {
40+
"type": [
41+
"string",
42+
"null"
43+
],
44+
"description": "The enterprise\'s website URL.",
45+
"format": "uri"
46+
},
47+
"id": {
48+
"type": "integer",
49+
"description": "Unique identifier of the enterprise",
50+
"examples": [
51+
42
52+
]
53+
},
54+
"node_id": {
55+
"type": "string",
56+
"examples": [
57+
"MDEwOlJlcG9zaXRvcnkxMjk2MjY5"
58+
]
59+
},
60+
"name": {
61+
"type": "string",
62+
"description": "The name of the enterprise.",
63+
"examples": [
64+
"Octo Business"
65+
]
66+
},
67+
"slug": {
68+
"type": "string",
69+
"description": "The slug url identifier for the enterprise.",
70+
"examples": [
71+
"octo-business"
72+
]
73+
},
74+
"created_at": {
75+
"type": [
76+
"string",
77+
"null"
78+
],
79+
"format": "date-time",
80+
"examples": [
81+
"2019-01-26T19:01:12Z"
82+
]
83+
},
84+
"updated_at": {
85+
"type": [
86+
"string",
87+
"null"
88+
],
89+
"format": "date-time",
90+
"examples": [
91+
"2019-01-26T19:14:43Z"
92+
]
93+
},
94+
"avatar_url": {
95+
"type": "string",
96+
"format": "uri"
97+
}
98+
},
99+
"description": "An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\\nsee \\"[About enterprise accounts](https:\\/\\/docs.github.com\\/enterprise-cloud@latest\\/\\/admin\\/overview\\/about-enterprise-accounts).\\"\\n"
100+
}';
101+
public const SCHEMA_TITLE = 'Enterprise';
102+
public const SCHEMA_DESCRIPTION = 'An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
103+
on an enterprise account or an organization that\'s part of an enterprise account. For more information,
104+
see "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."
105+
';
106+
public const SCHEMA_EXAMPLE_DATA = '{
107+
"description": "generated",
108+
"html_url": "https:\\/\\/github.com\\/enterprises\\/octo-business",
109+
"website_url": "https:\\/\\/example.com\\/",
110+
"id": 42,
111+
"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
112+
"name": "Octo Business",
113+
"slug": "octo-business",
114+
"created_at": "2019-01-26T19:01:12Z",
115+
"updated_at": "2019-01-26T19:14:43Z",
116+
"avatar_url": "https:\\/\\/example.com\\/"
117+
}';
118+
119+
/**
120+
* description: A short description of the enterprise.
121+
* websiteUrl: The enterprise's website URL.
122+
* id: Unique identifier of the enterprise
123+
* name: The name of the enterprise.
124+
* slug: The slug url identifier for the enterprise.
125+
*/
126+
public function __construct(public string|null $description, #[MapFrom('html_url')]
127+
public string $htmlUrl, #[MapFrom('website_url')]
128+
public string|null $websiteUrl, public int $id, #[MapFrom('node_id')]
129+
public string $nodeId, public string $name, public string $slug, #[MapFrom('created_at')]
130+
public string|null $createdAt, #[MapFrom('updated_at')]
131+
public string|null $updatedAt, #[MapFrom('avatar_url')]
132+
public string $avatarUrl,)
133+
{
134+
}
135+
}

src/Schema/ScimEnterpriseUserList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
"enum": [
182182
"user",
183183
"27d9891d-2c17-4f45-a262-781a0e55c80a",
184-
"restricted_user",
184+
"guest_collaborator",
185185
"1ebc4a02-e56c-43a6-92a5-02ee09b90824",
186186
"enterprise_owner",
187187
"981df190-8801-4618-a08a-d91f6206c954",

src/Schema/ScimEnterpriseUserResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
"enum": [
148148
"user",
149149
"27d9891d-2c17-4f45-a262-781a0e55c80a",
150-
"restricted_user",
150+
"guest_collaborator",
151151
"1ebc4a02-e56c-43a6-92a5-02ee09b90824",
152152
"enterprise_owner",
153153
"981df190-8801-4618-a08a-d91f6206c954",

src/Schema/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
"enum": [
151151
"user",
152152
"27d9891d-2c17-4f45-a262-781a0e55c80a",
153-
"restricted_user",
153+
"guest_collaborator",
154154
"1ebc4a02-e56c-43a6-92a5-02ee09b90824",
155155
"enterprise_owner",
156156
"981df190-8801-4618-a08a-d91f6206c954",

src/Schema/UserResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
"enum": [
148148
"user",
149149
"27d9891d-2c17-4f45-a262-781a0e55c80a",
150-
"restricted_user",
150+
"guest_collaborator",
151151
"1ebc4a02-e56c-43a6-92a5-02ee09b90824",
152152
"enterprise_owner",
153153
"981df190-8801-4618-a08a-d91f6206c954",

src/Schema/UserRole.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"enum": [
2323
"user",
2424
"27d9891d-2c17-4f45-a262-781a0e55c80a",
25-
"restricted_user",
25+
"guest_collaborator",
2626
"1ebc4a02-e56c-43a6-92a5-02ee09b90824",
2727
"enterprise_owner",
2828
"981df190-8801-4618-a08a-d91f6206c954",

src/Schema/WebhookBranchProtectionConfigurationDisabled.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"format": "uri"
112112
}
113113
},
114-
"description": "An enterprise on GitHub."
114+
"description": "An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\\nsee \\"[About enterprise accounts](https:\\/\\/docs.github.com\\/enterprise-cloud@latest\\/\\/admin\\/overview\\/about-enterprise-accounts).\\"\\n"
115115
},
116116
"installation": {
117117
"title": "Simple Installation",
@@ -2206,7 +2206,10 @@
22062206
}';
22072207

22082208
/**
2209-
* enterprise: An enterprise on GitHub.
2209+
* enterprise: An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
2210+
on an enterprise account or an organization that's part of an enterprise account. For more information,
2211+
see "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."
2212+
22102213
* installation: The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
22112214
for and sent to a GitHub App. For more information,
22122215
see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."
@@ -2216,7 +2219,7 @@
22162219
when the event occurs from activity in a repository.
22172220
* sender: The GitHub user that triggered the event. This property is included in every webhook payload.
22182221
*/
2219-
public function __construct(public string $action, public Schema\Enterprise|null $enterprise, public Schema\SimpleInstallation|null $installation, public Schema\OrganizationSimpleWebhooks|null $organization, public Schema\RepositoryWebhooks $repository, public Schema\SimpleUserWebhooks $sender)
2222+
public function __construct(public string $action, public Schema\EnterpriseWebhooks|null $enterprise, public Schema\SimpleInstallation|null $installation, public Schema\OrganizationSimpleWebhooks|null $organization, public Schema\RepositoryWebhooks $repository, public Schema\SimpleUserWebhooks $sender)
22202223
{
22212224
}
22222225
}

src/Schema/WebhookBranchProtectionConfigurationEnabled.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"format": "uri"
112112
}
113113
},
114-
"description": "An enterprise on GitHub."
114+
"description": "An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\\nsee \\"[About enterprise accounts](https:\\/\\/docs.github.com\\/enterprise-cloud@latest\\/\\/admin\\/overview\\/about-enterprise-accounts).\\"\\n"
115115
},
116116
"installation": {
117117
"title": "Simple Installation",
@@ -2206,7 +2206,10 @@
22062206
}';
22072207

22082208
/**
2209-
* enterprise: An enterprise on GitHub.
2209+
* enterprise: An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
2210+
on an enterprise account or an organization that's part of an enterprise account. For more information,
2211+
see "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."
2212+
22102213
* installation: The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
22112214
for and sent to a GitHub App. For more information,
22122215
see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."
@@ -2216,7 +2219,7 @@
22162219
when the event occurs from activity in a repository.
22172220
* sender: The GitHub user that triggered the event. This property is included in every webhook payload.
22182221
*/
2219-
public function __construct(public string $action, public Schema\Enterprise|null $enterprise, public Schema\SimpleInstallation|null $installation, public Schema\OrganizationSimpleWebhooks|null $organization, public Schema\RepositoryWebhooks $repository, public Schema\SimpleUserWebhooks $sender)
2222+
public function __construct(public string $action, public Schema\EnterpriseWebhooks|null $enterprise, public Schema\SimpleInstallation|null $installation, public Schema\OrganizationSimpleWebhooks|null $organization, public Schema\RepositoryWebhooks $repository, public Schema\SimpleUserWebhooks $sender)
22202223
{
22212224
}
22222225
}

src/Schema/WebhookBranchProtectionRuleCreated.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"format": "uri"
113113
}
114114
},
115-
"description": "An enterprise on GitHub."
115+
"description": "An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\\nsee \\"[About enterprise accounts](https:\\/\\/docs.github.com\\/enterprise-cloud@latest\\/\\/admin\\/overview\\/about-enterprise-accounts).\\"\\n"
116116
},
117117
"installation": {
118118
"title": "Simple Installation",
@@ -2406,7 +2406,10 @@
24062406
}';
24072407

24082408
/**
2409-
* enterprise: An enterprise on GitHub.
2409+
* enterprise: An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured
2410+
on an enterprise account or an organization that's part of an enterprise account. For more information,
2411+
see "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."
2412+
24102413
* installation: The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured
24112414
for and sent to a GitHub App. For more information,
24122415
see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."
@@ -2417,7 +2420,7 @@
24172420
* rule: The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.
24182421
* sender: The GitHub user that triggered the event. This property is included in every webhook payload.
24192422
*/
2420-
public function __construct(public string $action, public Schema\Enterprise|null $enterprise, public Schema\SimpleInstallation|null $installation, public Schema\OrganizationSimpleWebhooks|null $organization, public Schema\RepositoryWebhooks $repository, public Schema\WebhookBranchProtectionRuleCreated\Rule $rule, public Schema\SimpleUserWebhooks $sender)
2423+
public function __construct(public string $action, public Schema\EnterpriseWebhooks|null $enterprise, public Schema\SimpleInstallation|null $installation, public Schema\OrganizationSimpleWebhooks|null $organization, public Schema\RepositoryWebhooks $repository, public Schema\WebhookBranchProtectionRuleCreated\Rule $rule, public Schema\SimpleUserWebhooks $sender)
24212424
{
24222425
}
24232426
}

0 commit comments

Comments
 (0)