Skip to content

Commit 001b596

Browse files
authored
Merge pull request #1414 from php-api-clients/GitHub/from-1.1.4-ee410229436a838f44c982a4ed9c9572-from-1.1.4-ee410229436a838f44c982a4ed9c9572
2 parents db89000 + c6ba61c commit 001b596

File tree

119 files changed

+13519
-1742
lines changed

Some content is hidden

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

119 files changed

+13519
-1742
lines changed

clients/GitHub/README.md

Lines changed: 278 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,212 @@ $client->operations()->emojis()->get();
830830
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/emojis/emojis#get-emojis).
831831

832832

833+
### code-security/get-configurations-for-enterprise
834+
835+
Get code security configurations for an enterprise
836+
837+
Using the `call` method:
838+
```php
839+
$client->call('GET /enterprises/{enterprise}/code-security/configurations', [
840+
'enterprise' => 'generated',
841+
'before' => 'generated',
842+
'after' => 'generated',
843+
'per_page' => 8,
844+
]);
845+
```
846+
847+
Operations method:
848+
```php
849+
$client->operations()->codeSecurity()->getConfigurationsForEnterprise( enterprise: 'generated',
850+
before: 'generated',
851+
after: 'generated',
852+
per_page: 8,
853+
);
854+
```
855+
856+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/code-security/configurations#get-code-security-configurations-for-an-enterprise).
857+
858+
859+
### code-security/create-configuration-for-enterprise
860+
861+
Create a code security configuration for an enterprise
862+
863+
Using the `call` method:
864+
```php
865+
$client->call('POST /enterprises/{enterprise}/code-security/configurations', [
866+
'enterprise' => 'generated',
867+
]);
868+
```
869+
870+
Operations method:
871+
```php
872+
$client->operations()->codeSecurity()->createConfigurationForEnterprise( enterprise: 'generated',
873+
);
874+
```
875+
876+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/code-security/configurations#create-a-code-security-configuration-for-an-enterprise).
877+
878+
879+
### code-security/get-default-configurations-for-enterprise
880+
881+
Get default code security configurations for an enterprise
882+
883+
Using the `call` method:
884+
```php
885+
$client->call('GET /enterprises/{enterprise}/code-security/configurations/defaults', [
886+
'enterprise' => 'generated',
887+
]);
888+
```
889+
890+
Operations method:
891+
```php
892+
$client->operations()->codeSecurity()->getDefaultConfigurationsForEnterprise( enterprise: 'generated',
893+
);
894+
```
895+
896+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/code-security/configurations#get-default-code-security-configurations-for-an-enterprise).
897+
898+
899+
### code-security/get-single-configuration-for-enterprise
900+
901+
Retrieve a code security configuration of an enterprise
902+
903+
Using the `call` method:
904+
```php
905+
$client->call('GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}', [
906+
'enterprise' => 'generated',
907+
'configuration_id' => 16,
908+
]);
909+
```
910+
911+
Operations method:
912+
```php
913+
$client->operations()->codeSecurity()->getSingleConfigurationForEnterprise( enterprise: 'generated',
914+
configuration_id: 16,
915+
);
916+
```
917+
918+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/code-security/configurations#retrieve-a-code-security-configuration-of-an-enterprise).
919+
920+
921+
### code-security/delete-configuration-for-enterprise
922+
923+
Delete a code security configuration for an enterprise
924+
925+
Using the `call` method:
926+
```php
927+
$client->call('DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}', [
928+
'enterprise' => 'generated',
929+
'configuration_id' => 16,
930+
]);
931+
```
932+
933+
Operations method:
934+
```php
935+
$client->operations()->codeSecurity()->deleteConfigurationForEnterprise( enterprise: 'generated',
936+
configuration_id: 16,
937+
);
938+
```
939+
940+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/code-security/configurations#delete-a-code-security-configuration-for-an-enterprise).
941+
942+
943+
### code-security/update-enterprise-configuration
944+
945+
Update a custom code security configuration for an enterprise
946+
947+
Using the `call` method:
948+
```php
949+
$client->call('PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}', [
950+
'enterprise' => 'generated',
951+
'configuration_id' => 16,
952+
]);
953+
```
954+
955+
Operations method:
956+
```php
957+
$client->operations()->codeSecurity()->updateEnterpriseConfiguration( enterprise: 'generated',
958+
configuration_id: 16,
959+
);
960+
```
961+
962+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/code-security/configurations#update-a-custom-code-security-configuration-for-an-enterprise).
963+
964+
965+
### code-security/attach-enterprise-configuration
966+
967+
Attach an enterprise configuration to repositories
968+
969+
Using the `call` method:
970+
```php
971+
$client->call('POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach', [
972+
'enterprise' => 'generated',
973+
'configuration_id' => 16,
974+
]);
975+
```
976+
977+
Operations method:
978+
```php
979+
$client->operations()->codeSecurity()->attachEnterpriseConfiguration( enterprise: 'generated',
980+
configuration_id: 16,
981+
);
982+
```
983+
984+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/code-security/configurations#attach-an-enterprise-configuration-to-repositories).
985+
986+
987+
### code-security/set-configuration-as-default-for-enterprise
988+
989+
Set a code security configuration as a default for an enterprise
990+
991+
Using the `call` method:
992+
```php
993+
$client->call('PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults', [
994+
'enterprise' => 'generated',
995+
'configuration_id' => 16,
996+
]);
997+
```
998+
999+
Operations method:
1000+
```php
1001+
$client->operations()->codeSecurity()->setConfigurationAsDefaultForEnterprise( enterprise: 'generated',
1002+
configuration_id: 16,
1003+
);
1004+
```
1005+
1006+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-enterprise).
1007+
1008+
1009+
### code-security/get-repositories-for-enterprise-configuration
1010+
1011+
Get repositories associated with an enterprise code security configuration
1012+
1013+
Using the `call` method:
1014+
```php
1015+
$client->call('GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories', [
1016+
'enterprise' => 'generated',
1017+
'configuration_id' => 16,
1018+
'before' => 'generated',
1019+
'after' => 'generated',
1020+
'per_page' => 8,
1021+
'status' => 'generated',
1022+
]);
1023+
```
1024+
1025+
Operations method:
1026+
```php
1027+
$client->operations()->codeSecurity()->getRepositoriesForEnterpriseConfiguration( enterprise: 'generated',
1028+
configuration_id: 16,
1029+
before: 'generated',
1030+
after: 'generated',
1031+
per_page: 8,
1032+
status: 'generated',
1033+
);
1034+
```
1035+
1036+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/code-security/configurations#get-repositories-associated-with-an-enterprise-code-security-configuration).
1037+
1038+
8331039
### dependabot/list-alerts-for-enterprise
8341040

8351041
List Dependabot alerts for an enterprise
@@ -13821,6 +14027,78 @@ $client->operations()->codeScanning()->updateAlert( owner: 'generated',
1382114027
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/code-scanning/code-scanning#update-a-code-scanning-alert).
1382214028

1382314029

14030+
### code-scanning/get-autofix
14031+
14032+
Get the status of an autofix for a code scanning alert
14033+
14034+
Using the `call` method:
14035+
```php
14036+
$client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix', [
14037+
'owner' => 'generated',
14038+
'repo' => 'generated',
14039+
'alert_number' => 12,
14040+
]);
14041+
```
14042+
14043+
Operations method:
14044+
```php
14045+
$client->operations()->codeScanning()->getAutofix( owner: 'generated',
14046+
repo: 'generated',
14047+
alert_number: 12,
14048+
);
14049+
```
14050+
14051+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/code-scanning/code-scanning#get-the-status-of-an-autofix-for-a-code-scanning-alert).
14052+
14053+
14054+
### code-scanning/create-autofix
14055+
14056+
Create an autofix for a code scanning alert
14057+
14058+
Using the `call` method:
14059+
```php
14060+
$client->call('POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix', [
14061+
'owner' => 'generated',
14062+
'repo' => 'generated',
14063+
'alert_number' => 12,
14064+
]);
14065+
```
14066+
14067+
Operations method:
14068+
```php
14069+
$client->operations()->codeScanning()->createAutofix( owner: 'generated',
14070+
repo: 'generated',
14071+
alert_number: 12,
14072+
);
14073+
```
14074+
14075+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/code-scanning/code-scanning#create-an-autofix-for-a-code-scanning-alert).
14076+
14077+
14078+
### code-scanning/commit-autofix
14079+
14080+
Commit an autofix for a code scanning alert
14081+
14082+
Using the `call` method:
14083+
```php
14084+
$client->call('POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits', [
14085+
'owner' => 'generated',
14086+
'repo' => 'generated',
14087+
'alert_number' => 12,
14088+
]);
14089+
```
14090+
14091+
Operations method:
14092+
```php
14093+
$client->operations()->codeScanning()->commitAutofix( owner: 'generated',
14094+
repo: 'generated',
14095+
alert_number: 12,
14096+
);
14097+
```
14098+
14099+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/code-scanning/code-scanning#commit-an-autofix-for-a-code-scanning-alert).
14100+
14101+
1382414102
### code-scanning/list-alert-instances
1382514103

1382614104
List instances of a code scanning alert

0 commit comments

Comments
 (0)