Skip to content

Commit f9b368d

Browse files
authored
[GitHubEnterpriseCloud] Update to 1.1.4-bce6f74d8d4eefe681a6cef8673e09af from 1.1.4-2dcd6a6e0b3cfac8690288d65a78217e
Detected Schema changes: starting work. Building original model for commit ba7822 {"time":"2024-01-15T13:09:10.569009418Z","level":"ERROR","msg":"unable to open the rolodex file, check specification references and base path","file":"/__w/github-root/github-root/server-statistics-actions.yaml","error":"open /__w/github-root/github-root/server-statistics-actions.yaml: no such file or directory"} {"time":"2024-01-15T13:09:10.569129983Z","level":"ERROR","msg":"unable to open the rolodex file, check specification references and base path","file":"/__w/github-root/github-root/server-statistics-packages.yaml","error":"open /__w/github-root/github-root/server-statistics-packages.yaml: no such file or directory"} {"time":"2024-01-15T13:09:11.766226795Z","level":"ERROR","msg":"unable to open the rolodex file, check specification references and base path","file":"/__w/github-root/github-root/server-statistics-actions.yaml","error":"open /__w/github-root/github-root/server-statistics-actions.yaml: no such file or directory"} {"time":"2024-01-15T13:09:11.769705261Z","level":"ERROR","msg":"unable to open the rolodex file, check specification references and base path","file":"/__w/github-root/github-root/server-statistics-packages.yaml","error":"open /__w/github-root/github-root/server-statistics-packages.yaml: no such file or directory"} SPEC: extracted 1 commits from history DONE: completed WARNING: warnings reported during processing ⚠️ Error thrown when comparing: component 'server-statistics-actions.yaml' does not exist in the specification SUCCESS: No changes detected
1 parent 60ead89 commit f9b368d

File tree

42 files changed

+1289
-764
lines changed

Some content is hidden

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

42 files changed

+1289
-764
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20643,6 +20643,28 @@ $client->operations()->repos()->getCustomPropertiesValues( owner: 'genera
2064320643
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/repos/custom-properties#get-all-custom-property-values-for-a-repository).
2064420644

2064520645

20646+
### repos/create-or-update-custom-properties-values
20647+
20648+
Create or update custom property values for a repository
20649+
20650+
Using the `call` method:
20651+
```php
20652+
$client->call('PATCH /repos/{owner}/{repo}/properties/values', [
20653+
'owner' => 'generated',
20654+
'repo' => 'generated',
20655+
]);
20656+
```
20657+
20658+
Operations method:
20659+
```php
20660+
$client->operations()->repos()->createOrUpdateCustomPropertiesValues( owner: 'generated',
20661+
repo: 'generated',
20662+
);
20663+
```
20664+
20665+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/repos/custom-properties#create-or-update-custom-property-values-for-a-repository).
20666+
20667+
2064620668
### pulls/list
2064720669

2064820670
List pull requests

etc/openapi-client-generator.state

Lines changed: 79 additions & 67 deletions
Large diffs are not rendered by default.

src/Internal/Hydrator/Operation/Orgs/Org/Properties/Schema/CustomPropertyName.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
115115
$properties['allowedValues'] = $value;
116116

117117
after_allowedValues:
118+
119+
$value = $payload['values_editable_by'] ?? null;
120+
121+
if ($value === null) {
122+
$properties['valuesEditableBy'] = null;
123+
goto after_valuesEditableBy;
124+
}
125+
126+
$properties['valuesEditableBy'] = $value;
127+
128+
after_valuesEditableBy:
118129
} catch (Throwable $exception) {
119130
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgCustomProperty', $exception, stack: $this->hydrationStack);
120131
}
@@ -338,6 +349,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
338349
$allowedValues = $allowedValuesSerializer0->serialize($allowedValues, $this);
339350
after_allowedValues: $result['allowed_values'] = $allowedValues;
340351

352+
$valuesEditableBy = $object->valuesEditableBy;
353+
354+
if ($valuesEditableBy === null) {
355+
goto after_valuesEditableBy;
356+
}
357+
358+
after_valuesEditableBy: $result['values_editable_by'] = $valuesEditableBy;
359+
341360
return $result;
342361
}
343362

src/Internal/Hydrator/Operation/Orgs/Org/Repos.php

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError;
88
use ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConductSimple;
99
use ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository;
10+
use ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\CustomProperties;
1011
use ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\Permissions;
1112
use ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple;
1213
use ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository;
@@ -73,6 +74,7 @@ public function hydrateObject(string $className, array $payload): object
7374
'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload),
7475
'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload),
7576
'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($payload),
77+
'ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties($payload),
7678
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
7779
};
7880
}
@@ -1284,6 +1286,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
12841286
$properties['securityAndAnalysis'] = $value;
12851287

12861288
after_securityAndAnalysis:
1289+
1290+
$value = $payload['custom_properties'] ?? null;
1291+
1292+
if ($value === null) {
1293+
$properties['customProperties'] = null;
1294+
goto after_customProperties;
1295+
}
1296+
1297+
if (is_array($value)) {
1298+
try {
1299+
$this->hydrationStack[] = 'customProperties';
1300+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties($value);
1301+
} finally {
1302+
array_pop($this->hydrationStack);
1303+
}
1304+
}
1305+
1306+
$properties['customProperties'] = $value;
1307+
1308+
after_customProperties:
12871309
} catch (Throwable $exception) {
12881310
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository', $exception, stack: $this->hydrationStack);
12891311
}
@@ -4667,6 +4689,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
46674689
}
46684690
}
46694691

4692+
private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties(array $payload): CustomProperties
4693+
{
4694+
$properties = [];
4695+
$missingFields = [];
4696+
try {
4697+
} catch (Throwable $exception) {
4698+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\CustomProperties', $exception, stack: $this->hydrationStack);
4699+
}
4700+
4701+
if (count($missingFields) > 0) {
4702+
throw UnableToHydrateObject::dueToMissingFields(CustomProperties::class, $missingFields, stack: $this->hydrationStack);
4703+
}
4704+
4705+
try {
4706+
return new CustomProperties(...$properties);
4707+
} catch (Throwable $exception) {
4708+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\CustomProperties', $exception, stack: $this->hydrationStack);
4709+
}
4710+
}
4711+
46704712
private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array
46714713
{
46724714
foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) {
@@ -5265,6 +5307,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
52655307
$securityAndAnalysis = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis($securityAndAnalysis);
52665308
after_securityAndAnalysis: $result['security_and_analysis'] = $securityAndAnalysis;
52675309

5310+
$customProperties = $object->customProperties;
5311+
5312+
if ($customProperties === null) {
5313+
goto after_customProperties;
5314+
}
5315+
5316+
$customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties($customProperties);
5317+
after_customProperties: $result['custom_properties'] = $customProperties;
5318+
52685319
return $result;
52695320
}
52705321

src/Internal/Hydrator/Operation/Repos/Owner/Repo.php

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError;
88
use ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConductSimple;
99
use ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository;
10+
use ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\CustomProperties;
1011
use ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\Permissions;
1112
use ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple;
1213
use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\Delete\Response\ApplicationJson\Forbidden\Application\Json;
@@ -75,6 +76,7 @@ public function hydrateObject(string $className, array $payload): object
7576
'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload),
7677
'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\Delete\Response\ApplicationJson\Forbidden\Application\Json' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Repos⚡️Delete⚡️Response⚡️ApplicationJson⚡️Forbidden⚡️Application⚡️Json($payload),
7778
'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($payload),
79+
'ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties($payload),
7880
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
7981
};
8082
}
@@ -1286,6 +1288,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
12861288
$properties['securityAndAnalysis'] = $value;
12871289

12881290
after_securityAndAnalysis:
1291+
1292+
$value = $payload['custom_properties'] ?? null;
1293+
1294+
if ($value === null) {
1295+
$properties['customProperties'] = null;
1296+
goto after_customProperties;
1297+
}
1298+
1299+
if (is_array($value)) {
1300+
try {
1301+
$this->hydrationStack[] = 'customProperties';
1302+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties($value);
1303+
} finally {
1304+
array_pop($this->hydrationStack);
1305+
}
1306+
}
1307+
1308+
$properties['customProperties'] = $value;
1309+
1310+
after_customProperties:
12891311
} catch (Throwable $exception) {
12901312
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository', $exception, stack: $this->hydrationStack);
12911313
}
@@ -4710,6 +4732,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
47104732
}
47114733
}
47124734

4735+
private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties(array $payload): CustomProperties
4736+
{
4737+
$properties = [];
4738+
$missingFields = [];
4739+
try {
4740+
} catch (Throwable $exception) {
4741+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\CustomProperties', $exception, stack: $this->hydrationStack);
4742+
}
4743+
4744+
if (count($missingFields) > 0) {
4745+
throw UnableToHydrateObject::dueToMissingFields(CustomProperties::class, $missingFields, stack: $this->hydrationStack);
4746+
}
4747+
4748+
try {
4749+
return new CustomProperties(...$properties);
4750+
} catch (Throwable $exception) {
4751+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\CustomProperties', $exception, stack: $this->hydrationStack);
4752+
}
4753+
}
4754+
47134755
private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array
47144756
{
47154757
foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) {
@@ -5309,6 +5351,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
53095351
$securityAndAnalysis = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis($securityAndAnalysis);
53105352
after_securityAndAnalysis: $result['security_and_analysis'] = $securityAndAnalysis;
53115353

5354+
$customProperties = $object->customProperties;
5355+
5356+
if ($customProperties === null) {
5357+
goto after_customProperties;
5358+
}
5359+
5360+
$customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties($customProperties);
5361+
after_customProperties: $result['custom_properties'] = $customProperties;
5362+
53125363
return $result;
53135364
}
53145365

src/Internal/Hydrator/Operation/Repos/Owner/Repo/Forks.php

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError;
88
use ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConductSimple;
99
use ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository;
10+
use ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\CustomProperties;
1011
use ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\Permissions;
1112
use ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple;
1213
use ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository;
@@ -75,6 +76,7 @@ public function hydrateObject(string $className, array $payload): object
7576
'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload),
7677
'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload),
7778
'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($payload),
79+
'ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties($payload),
7880
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
7981
};
8082
}
@@ -1434,6 +1436,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
14341436
$properties['securityAndAnalysis'] = $value;
14351437

14361438
after_securityAndAnalysis:
1439+
1440+
$value = $payload['custom_properties'] ?? null;
1441+
1442+
if ($value === null) {
1443+
$properties['customProperties'] = null;
1444+
goto after_customProperties;
1445+
}
1446+
1447+
if (is_array($value)) {
1448+
try {
1449+
$this->hydrationStack[] = 'customProperties';
1450+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties($value);
1451+
} finally {
1452+
array_pop($this->hydrationStack);
1453+
}
1454+
}
1455+
1456+
$properties['customProperties'] = $value;
1457+
1458+
after_customProperties:
14371459
} catch (Throwable $exception) {
14381460
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository', $exception, stack: $this->hydrationStack);
14391461
}
@@ -4754,6 +4776,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
47544776
}
47554777
}
47564778

4779+
private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties(array $payload): CustomProperties
4780+
{
4781+
$properties = [];
4782+
$missingFields = [];
4783+
try {
4784+
} catch (Throwable $exception) {
4785+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\CustomProperties', $exception, stack: $this->hydrationStack);
4786+
}
4787+
4788+
if (count($missingFields) > 0) {
4789+
throw UnableToHydrateObject::dueToMissingFields(CustomProperties::class, $missingFields, stack: $this->hydrationStack);
4790+
}
4791+
4792+
try {
4793+
return new CustomProperties(...$properties);
4794+
} catch (Throwable $exception) {
4795+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\CustomProperties', $exception, stack: $this->hydrationStack);
4796+
}
4797+
}
4798+
47574799
private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array
47584800
{
47594801
foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) {
@@ -5456,6 +5498,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
54565498
$securityAndAnalysis = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis($securityAndAnalysis);
54575499
after_securityAndAnalysis: $result['security_and_analysis'] = $securityAndAnalysis;
54585500

5501+
$customProperties = $object->customProperties;
5502+
5503+
if ($customProperties === null) {
5504+
goto after_customProperties;
5505+
}
5506+
5507+
$customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties($customProperties);
5508+
after_customProperties: $result['custom_properties'] = $customProperties;
5509+
54595510
return $result;
54605511
}
54615512

0 commit comments

Comments
 (0)