diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index 139ef1c4532..99db3299e88 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "1a921a530f820efa033dc420e6e40c95", + "specHash": "16de2a81f1c35833bd49594dda36d269", "generatedFiles": { "files": [ { @@ -788,7 +788,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Artifact.php", - "hash": "b1ebe11cdce02325b812861ad423f569" + "hash": "0ae5e956f39d3359295027e0b1030f7a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ActionsCacheList.php", @@ -5052,7 +5052,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListArtifactsForRepo\/Response\/ApplicationJson\/Ok.php", - "hash": "2f542021b8a055ce9cf0ce3bfa87b2ca" + "hash": "1a007cc9edb090f1efec8a2a43707b37" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Actions\/ReRunJobForWorkflowRun\/Request\/ApplicationJson.php", @@ -11730,17 +11730,13 @@ "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Projects\/CreateColumn\/Request\/ApplicationJson.php", "hash": "2aa45263671135fe8fdd8183d6d9c785" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet1A91B16F\/TietBF38476A\/Tiet7587BB22\/TietE0507C4B.php", - "hash": "a7de1c0500dc6b4509b2089361c75a2f" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListWorkflowRunArtifacts\/Response\/ApplicationJson\/Ok.php", - "hash": "4dd33c1b2998d67841406425f8cffb8d" + "hash": "70bfc1bb85d64fc09be7769e3c978f48" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListWorkflowRunArtifacts\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "16db918de3600b04499127ad64de7d20" + "hash": "fc8a1bef3937dae377a263b645e55e2a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD2A75913\/Tiet0388E4E1\/TietCC684AA9\/Tiet46754F39.php", @@ -27560,7 +27556,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Artifacts\/ArtifactId.php", - "hash": "f02fcb061692e8e679d309661c113ef3" + "hash": "0b68d75f06a35dcbe4445acee9828f78" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Artifacts\/ArtifactId\/ArchiveFormat.php", @@ -35057,6 +35053,10 @@ { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationSeatBreakdown.php", "hash": "ae9b75aa40c504807916598c96e7569a" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietCF22D054\/Tiet02EB2DC0\/Tiet6BB5072C\/Tiet3B86314A.php", + "hash": "aa4e99cc47f789f858586329ecfca850" } ] }, diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Artifacts/ArtifactId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Artifacts/ArtifactId.php index 50d46434878..5585249c0b0 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Artifacts/ArtifactId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Artifacts/ArtifactId.php @@ -162,6 +162,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_updatedAt: + $value = $payload['digest'] ?? null; + + if ($value === null) { + $properties['digest'] = null; + goto after_digest; + } + + $properties['digest'] = $value; + + after_digest: + $value = $payload['workflow_run'] ?? null; if ($value === null) { @@ -415,6 +426,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_updatedAt: $result['updated_at'] = $updatedAt; + $digest = $object->digest; + + if ($digest === null) { + goto after_digest; + } + + after_digest: $result['digest'] = $digest; + $workflowRun = $object->workflowRun; if ($workflowRun === null) { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet1A91B16F/TietBF38476A/Tiet7587BB22/TietE0507C4B.php b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/TietCF22D054/Tiet02EB2DC0/Tiet6BB5072C/Tiet3B86314A.php similarity index 89% rename from clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet1A91B16F/TietBF38476A/Tiet7587BB22/TietE0507C4B.php rename to clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/TietCF22D054/Tiet02EB2DC0/Tiet6BB5072C/Tiet3B86314A.php index 57ee39c375d..ad45027204f 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet1A91B16F/TietBF38476A/Tiet7587BB22/TietE0507C4B.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/TietCF22D054/Tiet02EB2DC0/Tiet6BB5072C/Tiet3B86314A.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\Tiet1A91B16F\TietBF38476A\Tiet7587BB22; +namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\TietCF22D054\Tiet02EB2DC0\Tiet6BB5072C; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class TietE0507C4B +abstract readonly class Tiet3B86314A { public const SCHEMA_JSON = '{ "required": [ @@ -99,6 +99,16 @@ ], "format": "date-time" }, + "digest": { + "type": [ + "string", + "null" + ], + "description": "The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.", + "examples": [ + "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c" + ] + }, "workflow_run": { "type": [ "object", @@ -159,6 +169,7 @@ "created_at": "1970-01-01T00:00:00+00:00", "expires_at": "1970-01-01T00:00:00+00:00", "updated_at": "1970-01-01T00:00:00+00:00", + "digest": "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c", "workflow_run": { "id": 10, "repository_id": 42, @@ -178,6 +189,7 @@ "created_at": "1970-01-01T00:00:00+00:00", "expires_at": "1970-01-01T00:00:00+00:00", "updated_at": "1970-01-01T00:00:00+00:00", + "digest": "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c", "workflow_run": { "id": 10, "repository_id": 42, diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Artifact.php b/clients/GitHubEnterpriseCloud/src/Schema/Artifact.php index 95135495b5e..6114f17470f 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Artifact.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Artifact.php @@ -88,6 +88,16 @@ ], "format": "date-time" }, + "digest": { + "type": [ + "string", + "null" + ], + "description": "The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.", + "examples": [ + "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c" + ] + }, "workflow_run": { "type": [ "object", @@ -142,6 +152,7 @@ "created_at": "1970-01-01T00:00:00+00:00", "expires_at": "1970-01-01T00:00:00+00:00", "updated_at": "1970-01-01T00:00:00+00:00", + "digest": "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c", "workflow_run": { "id": 10, "repository_id": 42, @@ -155,6 +166,7 @@ * name: The name of the artifact. * sizeInBytes: The size in bytes of the artifact. * expired: Whether or not the artifact has expired. + * digest: The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null. */ public function __construct(public int $id, #[MapFrom('node_id')] public string $nodeId, public string $name, #[MapFrom('size_in_bytes')] @@ -162,7 +174,7 @@ public function __construct(public int $id, #[MapFrom('node_id')] public string $archiveDownloadUrl, public bool $expired, #[MapFrom('created_at')] public string|null $createdAt, #[MapFrom('expires_at')] public string|null $expiresAt, #[MapFrom('updated_at')] - public string|null $updatedAt, #[MapFrom('workflow_run')] + public string|null $updatedAt, public string|null $digest, #[MapFrom('workflow_run')] public Schema\Artifact\WorkflowRun|null $workflowRun,) { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListArtifactsForRepo/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListArtifactsForRepo/Response/ApplicationJson/Ok.php index 8760ddf32fb..6efb31a595f 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListArtifactsForRepo/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListArtifactsForRepo/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Ok extends Schema\AliasAbstract\Tiet1A91B16F\TietBF38476A\Tiet7587BB22\TietE0507C4B +final readonly class Ok extends Schema\AliasAbstract\TietCF22D054\Tiet02EB2DC0\Tiet6BB5072C\Tiet3B86314A { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok.php index 493e23e91b2..2b5ce979ba6 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Ok extends Schema\AliasAbstract\Tiet1A91B16F\TietBF38476A\Tiet7587BB22\TietE0507C4B +final readonly class Ok extends Schema\AliasAbstract\TietCF22D054\Tiet02EB2DC0\Tiet6BB5072C\Tiet3B86314A { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok/Application/Json.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok/Application/Json.php index 2e7515128f7..008db0fc4df 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok/Application/Json.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRunArtifacts/Response/ApplicationJson/Ok/Application/Json.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Json extends Schema\AliasAbstract\Tiet1A91B16F\TietBF38476A\Tiet7587BB22\TietE0507C4B +final readonly class Json extends Schema\AliasAbstract\TietCF22D054\Tiet02EB2DC0\Tiet6BB5072C\Tiet3B86314A { } diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index 3591e1398cf..e66a0bad5c4 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -91216,6 +91216,15 @@ components: - string - 'null' format: date-time + digest: + type: + - string + - 'null' + description: The SHA256 digest of the artifact. This field will only be + populated on artifacts uploaded with upload-artifact v4 or newer. For + older versions, this field will be null. + examples: + - sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c workflow_run: type: - object @@ -224262,6 +224271,7 @@ components: created_at: '2020-01-10T14:59:22Z' expires_at: '2020-03-21T14:59:22Z' updated_at: '2020-02-21T14:59:22Z' + digest: sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c workflow_run: id: 2332938 repository_id: 1296269 @@ -224278,6 +224288,7 @@ components: created_at: '2020-01-10T14:59:22Z' expires_at: '2020-03-21T14:59:22Z' updated_at: '2020-02-21T14:59:22Z' + digest: sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c workflow_run: id: 2332942 repository_id: 1296269 @@ -224296,6 +224307,7 @@ components: created_at: '2020-01-10T14:59:22Z' expires_at: '2020-01-21T14:59:22Z' updated_at: '2020-01-21T14:59:22Z' + digest: sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c workflow_run: id: 2332938 repository_id: 1296269