Skip to content

Commit 693e1c8

Browse files
authored
Merge pull request #1361 from php-api-clients/GitHub/from-1.1.4-9fb2901e192ade3e8ccc32f59e517598-from-1.1.4-9fb2901e192ade3e8ccc32f59e517598
2 parents f55af0c + b41a8f2 commit 693e1c8

Some content is hidden

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

41 files changed

+1600
-109
lines changed

clients/GitHub/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2596,6 +2596,34 @@ $client->operations()->orgs()->list( since: 5,
25962596
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/orgs/orgs#list-organizations).
25972597

25982598

2599+
### billing/get-github-billing-usage-report-org
2600+
2601+
Get billing usage report for an organization
2602+
2603+
Using the `call` method:
2604+
```php
2605+
$client->call('GET /organizations/{org}/settings/billing/usage', [
2606+
'org' => 'generated',
2607+
'year' => 4,
2608+
'month' => 5,
2609+
'day' => 3,
2610+
'hour' => 4,
2611+
]);
2612+
```
2613+
2614+
Operations method:
2615+
```php
2616+
$client->operations()->billing()->getGithubBillingUsageReportOrg( org: 'generated',
2617+
year: 4,
2618+
month: 5,
2619+
day: 3,
2620+
hour: 4,
2621+
);
2622+
```
2623+
2624+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/billing/enhanced-billing#get-billing-usage-report-for-an-organization).
2625+
2626+
25992627
### orgs/get
26002628

26012629
Get an organization

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

Lines changed: 57 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "c03183a8896046a8cd867a6cab6116d9",
2+
"specHash": "9fb2901e192ade3e8ccc32f59e517598",
33
"generatedFiles": {
44
"files": [
55
{
@@ -5500,15 +5500,15 @@
55005500
},
55015501
{
55025502
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/ClientInterface.php",
5503-
"hash": "015b807875395dfe710a523301b9239a"
5503+
"hash": "9ab260d860e050677b0d93355afb3192"
55045504
},
55055505
{
55065506
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Client.php",
5507-
"hash": "f532d63e47b18e37fa5866681a39e235"
5507+
"hash": "cb978325b831ef6111cad73570afa51d"
55085508
},
55095509
{
55105510
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/OperationsInterface.php",
5511-
"hash": "3885fcb17667d023ee48c76fa85cfc91"
5511+
"hash": "cb31358967b08f13bf24415e07490408"
55125512
},
55135513
{
55145514
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Meta.php",
@@ -5600,7 +5600,7 @@
56005600
},
56015601
{
56025602
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
5603-
"hash": "2bf2351ea867f62f7fcaede2c2228a4a"
5603+
"hash": "a017d588c5b04a9f637de041dd114a34"
56045604
},
56055605
{
56065606
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Teams.php",
@@ -5644,7 +5644,7 @@
56445644
},
56455645
{
56465646
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operations.php",
5647-
"hash": "8fb76817c6551d0b9aa65fad26aedd0b"
5647+
"hash": "6e24d12bac2534d4edcf8108e664ca82"
56485648
},
56495649
{
56505650
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/WebHooks.php",
@@ -24428,7 +24428,7 @@
2442824428
},
2442924429
{
2443024430
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Billing.php",
24431-
"hash": "3c5c8ea515a05443fa339fcf61df8294"
24431+
"hash": "b5af76cf9b440520b40680246dfd76a0"
2443224432
},
2443324433
{
2443424434
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Checks.php",
@@ -24860,15 +24860,15 @@
2486024860
},
2486124861
{
2486224862
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
24863-
"hash": "7b1f441a44441c5bca596fd5f106d43c"
24863+
"hash": "d9e8b3ff7e8e7f2088dee46dfe0b6913"
2486424864
},
2486524865
{
2486624866
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
24867-
"hash": "9dc70596532354d31f415be62a81d61b"
24867+
"hash": "025bbc0a0f6449b998880d880eb2fed5"
2486824868
},
2486924869
{
2487024870
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php",
24871-
"hash": "37094f76fdeaa04646bab6135a8f7bdb"
24871+
"hash": "3dca95be52846097223409b2f9926606"
2487224872
},
2487324873
{
2487424874
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Nine.php",
@@ -24964,15 +24964,15 @@
2496424964
},
2496524965
{
2496624966
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php",
24967-
"hash": "9812269e81564353be3fc1d6da6f2fba"
24967+
"hash": "71625fca086e278619781593e380e8fb"
2496824968
},
2496924969
{
2497024970
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php",
24971-
"hash": "67751622c45a52cdc05fc38bc3fbb6fd"
24971+
"hash": "8d182326244702f6bb410dd6fb0ac9b1"
2497224972
},
2497324973
{
2497424974
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php",
24975-
"hash": "50b0aae5cf5d664d36f0080f508b4ac2"
24975+
"hash": "9aca9c730a1e32ff37bb817fb1db5454"
2497624976
},
2497724977
{
2497824978
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Ten.php",
@@ -25060,11 +25060,11 @@
2506025060
},
2506125061
{
2506225062
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Routers.php",
25063-
"hash": "235ec7e7f4c1d476f09a71d137c97e09"
25063+
"hash": "a473ff55f9954aa8ec0bf96182a09254"
2506425064
},
2506525065
{
2506625066
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operators.php",
25067-
"hash": "b542a26bbdc98d29dadf0efc9c076d4a"
25067+
"hash": "2174dd39e7ed919715b99afd119b6f08"
2506825068
},
2506925069
{
2507025070
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php",
@@ -27056,7 +27056,7 @@
2705627056
},
2705727057
{
2705827058
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
27059-
"hash": "50a27add65792014c824c0d364130c87"
27059+
"hash": "782dc6054a8e74d94719296f6dac86c7"
2706027060
},
2706127061
{
2706227062
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSimpleWebhooks.php",
@@ -27640,11 +27640,11 @@
2764027640
},
2764127641
{
2764227642
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27643-
"hash": "f66de6508dabcdcdec382a8723650d09"
27643+
"hash": "78a5351e75967cba10c51f4c1a10bf82"
2764427644
},
2764527645
{
2764627646
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27647-
"hash": "bd1c4a74621567f3453a2495b7eac5fa"
27647+
"hash": "78bf0a212f21929d6a7417e7f0531331"
2764827648
},
2764927649
{
2765027650
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -30812,7 +30812,7 @@
3081230812
},
3081330813
{
3081430814
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/ApiInsights\/GetRouteStatsByActor.php",
30815-
"hash": "d4c268f744b5ae9132327889ee93da57"
30815+
"hash": "9cd55e081f90294fa66bedc3a8e624af"
3081630816
},
3081730817
{
3081830818
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/ApiInsights\/GetRouteStatsByActorTest.php",
@@ -30824,7 +30824,7 @@
3082430824
},
3082530825
{
3082630826
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/ApiInsights\/GetRouteStatsByActorListing.php",
30827-
"hash": "81db61911d3da3073f923d5b0a8f01b0"
30827+
"hash": "e55c6f8caeed3455d0e65d784742a9c2"
3082830828
},
3082930829
{
3083030830
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/ApiInsights\/GetRouteStatsByActorListingTest.php",
@@ -30836,7 +30836,7 @@
3083630836
},
3083730837
{
3083830838
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/ApiInsights\/GetSubjectStats.php",
30839-
"hash": "bb856ed9f9548dd1b047ed3366411ac3"
30839+
"hash": "8f82f7bbdbd9c4d1c2c301f6b0f2fbe3"
3084030840
},
3084130841
{
3084230842
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/ApiInsights\/GetSubjectStatsTest.php",
@@ -30848,7 +30848,7 @@
3084830848
},
3084930849
{
3085030850
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/ApiInsights\/GetSubjectStatsListing.php",
30851-
"hash": "4ff547c393a644a463ff6c00d034a23f"
30851+
"hash": "6e215466323d2e9913c6d1edcc43a819"
3085230852
},
3085330853
{
3085430854
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/ApiInsights\/GetSubjectStatsListingTest.php",
@@ -30860,7 +30860,7 @@
3086030860
},
3086130861
{
3086230862
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/ApiInsights\/GetSummaryStats.php",
30863-
"hash": "52f2accff993f35ee26675d0a80f2f92"
30863+
"hash": "ca9036b6f98f4e1a110f99f6aacfdd42"
3086430864
},
3086530865
{
3086630866
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/ApiInsights\/GetSummaryStatsTest.php",
@@ -30872,7 +30872,7 @@
3087230872
},
3087330873
{
3087430874
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/ApiInsights\/GetSummaryStatsByUser.php",
30875-
"hash": "d297ee62008f3108fd68b680a812ca5c"
30875+
"hash": "37a2c9808021f2ced7b540affd767b6e"
3087630876
},
3087730877
{
3087830878
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/ApiInsights\/GetSummaryStatsByUserTest.php",
@@ -30884,7 +30884,7 @@
3088430884
},
3088530885
{
3088630886
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/ApiInsights\/GetSummaryStatsByActor.php",
30887-
"hash": "ba0ad561745834d9a78cedbc87c730ea"
30887+
"hash": "fb817fdf2f908d0a5d69bba62ac3df57"
3088830888
},
3088930889
{
3089030890
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/ApiInsights\/GetSummaryStatsByActorTest.php",
@@ -30896,7 +30896,7 @@
3089630896
},
3089730897
{
3089830898
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/ApiInsights\/GetTimeStats.php",
30899-
"hash": "de7c1babf39d22d3fd4f1555905fc960"
30899+
"hash": "b46dcf0b1f9b1f0c5bc60d42eb1e2a24"
3090030900
},
3090130901
{
3090230902
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/ApiInsights\/GetTimeStatsTest.php",
@@ -30908,7 +30908,7 @@
3090830908
},
3090930909
{
3091030910
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/ApiInsights\/GetTimeStatsByUser.php",
30911-
"hash": "8045d95d4024779268593210dcc838d7"
30911+
"hash": "84ae4564cefc8c1823d04b08e31abc28"
3091230912
},
3091330913
{
3091430914
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/ApiInsights\/GetTimeStatsByUserTest.php",
@@ -30920,7 +30920,7 @@
3092030920
},
3092130921
{
3092230922
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/ApiInsights\/GetTimeStatsByActor.php",
30923-
"hash": "70377d40f16d66dd091b93395cb310a6"
30923+
"hash": "e5770136e9e0378f6e1c7cefc5b113e1"
3092430924
},
3092530925
{
3092630926
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/ApiInsights\/GetTimeStatsByActorTest.php",
@@ -30932,7 +30932,7 @@
3093230932
},
3093330933
{
3093430934
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/ApiInsights\/GetUserStats.php",
30935-
"hash": "133fcd00ebbe58d2379338f1e1bf2f6f"
30935+
"hash": "34e57c1778587180890c7817c1777d33"
3093630936
},
3093730937
{
3093830938
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/ApiInsights\/GetUserStatsTest.php",
@@ -30944,7 +30944,7 @@
3094430944
},
3094530945
{
3094630946
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/ApiInsights\/GetUserStatsListing.php",
30947-
"hash": "bc3094654aa3f14ef788e6253d0172e6"
30947+
"hash": "a677f87cb5586815f71bb7e6ca33531a"
3094830948
},
3094930949
{
3095030950
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/ApiInsights\/GetUserStatsListingTest.php",
@@ -30972,15 +30972,15 @@
3097230972
},
3097330973
{
3097430974
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/ApiInsights.php",
30975-
"hash": "1fca596246826889b43466dfaa65ca5d"
30975+
"hash": "6d5a962542daa2df7d7260c85a7a2d13"
3097630976
},
3097730977
{
3097830978
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/ApiInsights.php",
30979-
"hash": "133cab72347c3bcdd48daba79337dde6"
30979+
"hash": "23a52212777a55d49faa33c1cbf8932e"
3098030980
},
3098130981
{
3098230982
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/ApiInsights.php",
30983-
"hash": "abf376a1022c40e61b1a4156232f7680"
30983+
"hash": "05e5c4043312005083706112aca5a8c5"
3098430984
},
3098530985
{
3098630986
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Insights\/Api\/SummaryStats.php",
@@ -31001,6 +31001,30 @@
3100131001
{
3100231002
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/DependencyGraphSpdxSbom\/Sbom\/Relationships.php",
3100331003
"hash": "f6f24936ee897b9ac1b455b032238224"
31004+
},
31005+
{
31006+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Billing\/GetGithubBillingUsageReportOrg.php",
31007+
"hash": "70a3e1c4e736e1956cce8a3c239565de"
31008+
},
31009+
{
31010+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Billing\/GetGithubBillingUsageReportOrg.php",
31011+
"hash": "4787686505d8e5946b3fdf813b8a5ec5"
31012+
},
31013+
{
31014+
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Billing\/GetGithubBillingUsageReportOrgTest.php",
31015+
"hash": "de20531c80446e82f6af3541e4866495"
31016+
},
31017+
{
31018+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/BillingUsageReport.php",
31019+
"hash": "99dc80811f63f31753d01f1616190f32"
31020+
},
31021+
{
31022+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/BillingUsageReport\/UsageItems.php",
31023+
"hash": "63ec55a97ae98c19311317c009fd925a"
31024+
},
31025+
{
31026+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Organizations\/Org\/Settings\/Billing\/Usage.php",
31027+
"hash": "6653e38b32bcac5de361dd81ff23aa87"
3100431028
}
3100531029
]
3100631030
},

clients/GitHub/src/Client.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

clients/GitHub/src/ClientInterface.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)