Skip to content

Commit 0b69ead

Browse files
authored
Merge pull request #1297 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-105708433ef2827723e57d66a0f7645f-from-1.1.4-105708433ef2827723e57d66a0f7645f
2 parents ba75e72 + cdb692a commit 0b69ead

File tree

6 files changed

+42
-31
lines changed

6 files changed

+42
-31
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "bb053ea7f78df19d2e4d4872d9eed9c7",
2+
"specHash": "105708433ef2827723e57d66a0f7645f",
33
"generatedFiles": {
44
"files": [
55
{
@@ -1084,7 +1084,7 @@
10841084
},
10851085
{
10861086
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ContentTree.php",
1087-
"hash": "92bae7f8e73369aa1647a20e7b7f7413"
1087+
"hash": "acbe779a9a2921c6662c39c607db7db6"
10881088
},
10891089
{
10901090
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ContentDirectory.php",
@@ -3168,7 +3168,7 @@
31683168
},
31693169
{
31703170
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ContentTree\/Entries.php",
3171-
"hash": "dfcc0a9422d3a4120e047644d57494f9"
3171+
"hash": "e5f199238272e94f610223f795b8dc4d"
31723172
},
31733173
{
31743174
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ContentTree\/Entries\/Links.php",
@@ -12148,7 +12148,7 @@
1214812148
},
1214912149
{
1215012150
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationDetails.php",
12151-
"hash": "88ad22fa6ec99c5af4f31d6af65647d0"
12151+
"hash": "b497d15e1717d1fd41a938f9ae90917f"
1215212152
},
1215312153
{
1215412154
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotSeatDetails.php",
@@ -28084,7 +28084,7 @@
2808428084
},
2808528085
{
2808628086
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Contents\/Path.php",
28087-
"hash": "a9ff5b66201def8dc5f147963181c368"
28087+
"hash": "d796ec440fd1b75f83c8bc1312cd9cd7"
2808828088
},
2808928089
{
2809028090
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Contributors.php",

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Contents/Path.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
128128

129129
after_sha:
130130

131+
$value = $payload['content'] ?? null;
132+
133+
if ($value === null) {
134+
$properties['content'] = null;
135+
goto after_content;
136+
}
137+
138+
$properties['content'] = $value;
139+
140+
after_content:
141+
131142
$value = $payload['url'] ?? null;
132143

133144
if ($value === null) {
@@ -1184,6 +1195,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
11841195
$sha = $object->sha;
11851196
after_sha: $result['sha'] = $sha;
11861197

1198+
$content = $object->content;
1199+
1200+
if ($content === null) {
1201+
goto after_content;
1202+
}
1203+
1204+
after_content: $result['content'] = $content;
1205+
11871206
$url = $object->url;
11881207
after_url: $result['url'] = $url;
11891208

clients/GitHubEnterpriseCloud/src/Schema/ContentTree.php

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
"sha",
2222
"size",
2323
"type",
24-
"url",
25-
"content",
26-
"encoding"
24+
"url"
2725
],
2826
"type": "object",
2927
"properties": {
@@ -42,6 +40,9 @@
4240
"sha": {
4341
"type": "string"
4442
},
43+
"content": {
44+
"type": "string"
45+
},
4546
"url": {
4647
"type": "string",
4748
"format": "uri"
@@ -96,9 +97,6 @@
9697
"path": {
9798
"type": "string"
9899
},
99-
"content": {
100-
"type": "string"
101-
},
102100
"sha": {
103101
"type": "string"
104102
},
@@ -197,6 +195,7 @@
197195
"name": "generated",
198196
"path": "generated",
199197
"sha": "generated",
198+
"content": "generated",
200199
"url": "https:\\/\\/example.com\\/",
201200
"git_url": "https:\\/\\/example.com\\/",
202201
"html_url": "https:\\/\\/example.com\\/",
@@ -207,7 +206,6 @@
207206
"size": 4,
208207
"name": "generated",
209208
"path": "generated",
210-
"content": "generated",
211209
"sha": "generated",
212210
"url": "https:\\/\\/example.com\\/",
213211
"git_url": "https:\\/\\/example.com\\/",
@@ -224,7 +222,6 @@
224222
"size": 4,
225223
"name": "generated",
226224
"path": "generated",
227-
"content": "generated",
228225
"sha": "generated",
229226
"url": "https:\\/\\/example.com\\/",
230227
"git_url": "https:\\/\\/example.com\\/",
@@ -244,7 +241,7 @@
244241
}
245242
}';
246243

247-
public function __construct(public string $type, public int $size, public string $name, public string $path, public string $sha, public string $url, #[MapFrom('git_url')]
244+
public function __construct(public string $type, public int $size, public string $name, public string $path, public string $sha, public string|null $content, public string $url, #[MapFrom('git_url')]
248245
public string|null $gitUrl, #[MapFrom('html_url')]
249246
public string|null $htmlUrl, #[MapFrom('download_url')]
250247
public string|null $downloadUrl, public array|null $entries, #[MapFrom('_links')]

clients/GitHubEnterpriseCloud/src/Schema/ContentTree/Entries.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@
3636
"path": {
3737
"type": "string"
3838
},
39-
"content": {
40-
"type": "string"
41-
},
4239
"sha": {
4340
"type": "string"
4441
},
@@ -104,7 +101,6 @@
104101
"size": 4,
105102
"name": "generated",
106103
"path": "generated",
107-
"content": "generated",
108104
"sha": "generated",
109105
"url": "https:\\/\\/example.com\\/",
110106
"git_url": "https:\\/\\/example.com\\/",
@@ -117,7 +113,7 @@
117113
}
118114
}';
119115

120-
public function __construct(public string $type, public int $size, public string $name, public string $path, public string|null $content, public string $sha, public string $url, #[MapFrom('git_url')]
116+
public function __construct(public string $type, public int $size, public string $name, public string $path, public string $sha, public string $url, #[MapFrom('git_url')]
121117
public string|null $gitUrl, #[MapFrom('html_url')]
122118
public string|null $htmlUrl, #[MapFrom('download_url')]
123119
public string|null $downloadUrl, #[MapFrom('_links')]

clients/GitHubEnterpriseCloud/src/Schema/CopilotOrganizationDetails.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
final readonly class CopilotOrganizationDetails
1111
{
1212
public const SCHEMA_JSON = '{
13-
"title": "Copilot Business Organization Details",
13+
"title": "Copilot Organization Details",
1414
"required": [
1515
"seat_breakdown",
1616
"public_code_suggestions",
@@ -97,11 +97,11 @@
9797
"description": "The mode of assigning new seats."
9898
}
9999
},
100-
"description": "Information about the seat breakdown and policies set for an organization with a Copilot Business subscription.",
100+
"description": "Information about the seat breakdown and policies set for an organization with a Copilot Business or Copilot Enterprise subscription.",
101101
"additionalProperties": true
102102
}';
103-
public const SCHEMA_TITLE = 'Copilot Business Organization Details';
104-
public const SCHEMA_DESCRIPTION = 'Information about the seat breakdown and policies set for an organization with a Copilot Business subscription.';
103+
public const SCHEMA_TITLE = 'Copilot Organization Details';
104+
public const SCHEMA_DESCRIPTION = 'Information about the seat breakdown and policies set for an organization with a Copilot Business or Copilot Enterprise subscription.';
105105
public const SCHEMA_EXAMPLE_DATA = '{
106106
"seat_breakdown": {
107107
"total": 5,

etc/specs/GitHubEnterpriseCloud/current.spec.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28506,8 +28506,6 @@ paths:
2850628506
Gets your public key, which you need to encrypt secrets. You need to
2850728507
encrypt a secret before you can create or update secrets.
2850828508

28509-
Anyone with read access to the repository can use this endpoint.
28510-
2851128509
If the repository is private, OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
2851228510
tags:
2851328511
- codespaces
@@ -79351,9 +79349,9 @@ components:
7935179349
description: The number of seats that have not used Copilot during the current
7935279350
billing cycle.
7935379351
copilot-organization-details:
79354-
title: Copilot Business Organization Details
79352+
title: Copilot Organization Details
7935579353
description: Information about the seat breakdown and policies set for an organization
79356-
with a Copilot Business subscription.
79354+
with a Copilot Business or Copilot Enterprise subscription.
7935779355
type: object
7935879356
properties:
7935979357
seat_breakdown:
@@ -88852,6 +88850,8 @@ components:
8885288850
type: string
8885388851
sha:
8885488852
type: string
88853+
content:
88854+
type: string
8885588855
url:
8885688856
type: string
8885788857
format: uri
@@ -88883,8 +88883,6 @@ components:
8888388883
type: string
8888488884
path:
8888588885
type: string
88886-
content:
88887-
type: string
8888888886
sha:
8888988887
type: string
8889088888
url:
@@ -88967,8 +88965,6 @@ components:
8896788965
- size
8896888966
- type
8896988967
- url
88970-
- content
88971-
- encoding
8897288968
content-directory:
8897388969
title: Content Directory
8897488970
description: A list of directory items
@@ -212183,6 +212179,9 @@ components:
212183212179
active_this_cycle: 12
212184212180
inactive_this_cycle: 11
212185212181
seat_management_setting: assign_selected
212182+
ide_chat: enabled
212183+
platform_chat: enabled
212184+
cli: enabled
212186212185
public_code_suggestions: block
212187212186
credential-authorization-items:
212188212187
value:

0 commit comments

Comments
 (0)