diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index 67c068f9b17..ce19f359f60 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "bb053ea7f78df19d2e4d4872d9eed9c7", + "specHash": "105708433ef2827723e57d66a0f7645f", "generatedFiles": { "files": [ { @@ -1084,7 +1084,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ContentTree.php", - "hash": "92bae7f8e73369aa1647a20e7b7f7413" + "hash": "acbe779a9a2921c6662c39c607db7db6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ContentDirectory.php", @@ -3168,7 +3168,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ContentTree\/Entries.php", - "hash": "dfcc0a9422d3a4120e047644d57494f9" + "hash": "e5f199238272e94f610223f795b8dc4d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ContentTree\/Entries\/Links.php", @@ -12148,7 +12148,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationDetails.php", - "hash": "88ad22fa6ec99c5af4f31d6af65647d0" + "hash": "b497d15e1717d1fd41a938f9ae90917f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotSeatDetails.php", @@ -28084,7 +28084,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Contents\/Path.php", - "hash": "a9ff5b66201def8dc5f147963181c368" + "hash": "d796ec440fd1b75f83c8bc1312cd9cd7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Contributors.php", diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Contents/Path.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Contents/Path.php index aca17343752..5fe6d3f32d1 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Contents/Path.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Contents/Path.php @@ -128,6 +128,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_sha: + $value = $payload['content'] ?? null; + + if ($value === null) { + $properties['content'] = null; + goto after_content; + } + + $properties['content'] = $value; + + after_content: + $value = $payload['url'] ?? null; if ($value === null) { @@ -1184,6 +1195,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $sha = $object->sha; after_sha: $result['sha'] = $sha; + $content = $object->content; + + if ($content === null) { + goto after_content; + } + + after_content: $result['content'] = $content; + $url = $object->url; after_url: $result['url'] = $url; diff --git a/clients/GitHubEnterpriseCloud/src/Schema/ContentTree.php b/clients/GitHubEnterpriseCloud/src/Schema/ContentTree.php index c9542423ccc..f883103f25b 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/ContentTree.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/ContentTree.php @@ -21,9 +21,7 @@ "sha", "size", "type", - "url", - "content", - "encoding" + "url" ], "type": "object", "properties": { @@ -42,6 +40,9 @@ "sha": { "type": "string" }, + "content": { + "type": "string" + }, "url": { "type": "string", "format": "uri" @@ -96,9 +97,6 @@ "path": { "type": "string" }, - "content": { - "type": "string" - }, "sha": { "type": "string" }, @@ -197,6 +195,7 @@ "name": "generated", "path": "generated", "sha": "generated", + "content": "generated", "url": "https:\\/\\/example.com\\/", "git_url": "https:\\/\\/example.com\\/", "html_url": "https:\\/\\/example.com\\/", @@ -207,7 +206,6 @@ "size": 4, "name": "generated", "path": "generated", - "content": "generated", "sha": "generated", "url": "https:\\/\\/example.com\\/", "git_url": "https:\\/\\/example.com\\/", @@ -224,7 +222,6 @@ "size": 4, "name": "generated", "path": "generated", - "content": "generated", "sha": "generated", "url": "https:\\/\\/example.com\\/", "git_url": "https:\\/\\/example.com\\/", @@ -244,7 +241,7 @@ } }'; - public function __construct(public string $type, public int $size, public string $name, public string $path, public string $sha, public string $url, #[MapFrom('git_url')] + 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')] public string|null $gitUrl, #[MapFrom('html_url')] public string|null $htmlUrl, #[MapFrom('download_url')] public string|null $downloadUrl, public array|null $entries, #[MapFrom('_links')] diff --git a/clients/GitHubEnterpriseCloud/src/Schema/ContentTree/Entries.php b/clients/GitHubEnterpriseCloud/src/Schema/ContentTree/Entries.php index 2b1b30201b9..cf953f577d7 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/ContentTree/Entries.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/ContentTree/Entries.php @@ -36,9 +36,6 @@ "path": { "type": "string" }, - "content": { - "type": "string" - }, "sha": { "type": "string" }, @@ -104,7 +101,6 @@ "size": 4, "name": "generated", "path": "generated", - "content": "generated", "sha": "generated", "url": "https:\\/\\/example.com\\/", "git_url": "https:\\/\\/example.com\\/", @@ -117,7 +113,7 @@ } }'; - 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')] + public function __construct(public string $type, public int $size, public string $name, public string $path, public string $sha, public string $url, #[MapFrom('git_url')] public string|null $gitUrl, #[MapFrom('html_url')] public string|null $htmlUrl, #[MapFrom('download_url')] public string|null $downloadUrl, #[MapFrom('_links')] diff --git a/clients/GitHubEnterpriseCloud/src/Schema/CopilotOrganizationDetails.php b/clients/GitHubEnterpriseCloud/src/Schema/CopilotOrganizationDetails.php index d7ff8c11cf2..eced4dddcac 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/CopilotOrganizationDetails.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/CopilotOrganizationDetails.php @@ -10,7 +10,7 @@ final readonly class CopilotOrganizationDetails { public const SCHEMA_JSON = '{ - "title": "Copilot Business Organization Details", + "title": "Copilot Organization Details", "required": [ "seat_breakdown", "public_code_suggestions", @@ -97,11 +97,11 @@ "description": "The mode of assigning new seats." } }, - "description": "Information about the seat breakdown and policies set for an organization with a Copilot Business subscription.", + "description": "Information about the seat breakdown and policies set for an organization with a Copilot Business or Copilot Enterprise subscription.", "additionalProperties": true }'; - public const SCHEMA_TITLE = 'Copilot Business Organization Details'; - public const SCHEMA_DESCRIPTION = 'Information about the seat breakdown and policies set for an organization with a Copilot Business subscription.'; + public const SCHEMA_TITLE = 'Copilot Organization Details'; + public const SCHEMA_DESCRIPTION = 'Information about the seat breakdown and policies set for an organization with a Copilot Business or Copilot Enterprise subscription.'; public const SCHEMA_EXAMPLE_DATA = '{ "seat_breakdown": { "total": 5, diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index 1495685e2f3..c31cbb4adbe 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -28506,8 +28506,6 @@ paths: Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. - Anyone with read access to the repository can use this endpoint. - If the repository is private, OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. tags: - codespaces @@ -79351,9 +79349,9 @@ components: description: The number of seats that have not used Copilot during the current billing cycle. copilot-organization-details: - title: Copilot Business Organization Details + title: Copilot Organization Details description: Information about the seat breakdown and policies set for an organization - with a Copilot Business subscription. + with a Copilot Business or Copilot Enterprise subscription. type: object properties: seat_breakdown: @@ -88852,6 +88850,8 @@ components: type: string sha: type: string + content: + type: string url: type: string format: uri @@ -88883,8 +88883,6 @@ components: type: string path: type: string - content: - type: string sha: type: string url: @@ -88967,8 +88965,6 @@ components: - size - type - url - - content - - encoding content-directory: title: Content Directory description: A list of directory items @@ -212183,6 +212179,9 @@ components: active_this_cycle: 12 inactive_this_cycle: 11 seat_management_setting: assign_selected + ide_chat: enabled + platform_chat: enabled + cli: enabled public_code_suggestions: block credential-authorization-items: value: