Skip to content

Commit 6e21be2

Browse files
authored
Merge pull request #1154 from php-api-clients/GitHub/from-1.1.4-2d60f44f2f6c4f1e645de34b84c95208-from-1.1.4-2d60f44f2f6c4f1e645de34b84c95208
2 parents 3195e0a + 4ca0f50 commit 6e21be2

40 files changed

+4479
-134
lines changed

clients/GitHub/README.md

+172
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,62 @@ $client->operations()->emojis()->get();
828828
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/emojis/emojis#get-emojis).
829829

830830

831+
### copilot/usage-metrics-for-enterprise
832+
833+
Get a summary of Copilot usage for enterprise members
834+
835+
Using the `call` method:
836+
```php
837+
$client->call('GET /enterprises/{enterprise}/copilot/usage', [
838+
'enterprise' => 'generated',
839+
'since' => 'generated',
840+
'until' => 'generated',
841+
'page' => 1,
842+
'per_page' => 8,
843+
]);
844+
```
845+
846+
Operations method:
847+
```php
848+
$client->operations()->copilot()->usageMetricsForEnterprise( enterprise: 'generated',
849+
since: 'generated',
850+
until: 'generated',
851+
page: 1,
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/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-enterprise-members).
857+
858+
859+
### copilot/usage-metrics-for-enterprise
860+
861+
Get a summary of Copilot usage for enterprise members
862+
863+
Using the `call` method:
864+
```php
865+
$client->call('LIST /enterprises/{enterprise}/copilot/usage', [
866+
'enterprise' => 'generated',
867+
'since' => 'generated',
868+
'until' => 'generated',
869+
'page' => 1,
870+
'per_page' => 8,
871+
]);
872+
```
873+
874+
Operations method:
875+
```php
876+
$client->operations()->copilot()->usageMetricsForEnterpriseListing( enterprise: 'generated',
877+
since: 'generated',
878+
until: 'generated',
879+
page: 1,
880+
per_page: 8,
881+
);
882+
```
883+
884+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-enterprise-members).
885+
886+
831887
### dependabot/list-alerts-for-enterprise
832888

833889
List Dependabot alerts for an enterprise
@@ -3968,6 +4024,62 @@ $client->operations()->copilot()->cancelCopilotSeatAssignmentForUsers( or
39684024
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/copilot/copilot-user-management#remove-users-from-the-copilot-subscription-for-an-organization).
39694025

39704026

4027+
### copilot/usage-metrics-for-org
4028+
4029+
Get a summary of Copilot usage for organization members
4030+
4031+
Using the `call` method:
4032+
```php
4033+
$client->call('GET /orgs/{org}/copilot/usage', [
4034+
'org' => 'generated',
4035+
'since' => 'generated',
4036+
'until' => 'generated',
4037+
'page' => 1,
4038+
'per_page' => 8,
4039+
]);
4040+
```
4041+
4042+
Operations method:
4043+
```php
4044+
$client->operations()->copilot()->usageMetricsForOrg( org: 'generated',
4045+
since: 'generated',
4046+
until: 'generated',
4047+
page: 1,
4048+
per_page: 8,
4049+
);
4050+
```
4051+
4052+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-organization-members).
4053+
4054+
4055+
### copilot/usage-metrics-for-org
4056+
4057+
Get a summary of Copilot usage for organization members
4058+
4059+
Using the `call` method:
4060+
```php
4061+
$client->call('LIST /orgs/{org}/copilot/usage', [
4062+
'org' => 'generated',
4063+
'since' => 'generated',
4064+
'until' => 'generated',
4065+
'page' => 1,
4066+
'per_page' => 8,
4067+
]);
4068+
```
4069+
4070+
Operations method:
4071+
```php
4072+
$client->operations()->copilot()->usageMetricsForOrgListing( org: 'generated',
4073+
since: 'generated',
4074+
until: 'generated',
4075+
page: 1,
4076+
per_page: 8,
4077+
);
4078+
```
4079+
4080+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-organization-members).
4081+
4082+
39714083
### dependabot/list-alerts-for-org
39724084

39734085
List Dependabot alerts for an organization
@@ -7410,6 +7522,66 @@ $client->operations()->billing()->getSharedStorageBillingOrg( org: 'gener
74107522
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/billing/billing#get-shared-storage-billing-for-an-organization).
74117523

74127524

7525+
### copilot/usage-metrics-for-team
7526+
7527+
Get a summary of Copilot usage for a team
7528+
7529+
Using the `call` method:
7530+
```php
7531+
$client->call('GET /orgs/{org}/team/{team_slug}/copilot/usage', [
7532+
'org' => 'generated',
7533+
'team_slug' => 'generated',
7534+
'since' => 'generated',
7535+
'until' => 'generated',
7536+
'page' => 1,
7537+
'per_page' => 8,
7538+
]);
7539+
```
7540+
7541+
Operations method:
7542+
```php
7543+
$client->operations()->copilot()->usageMetricsForTeam( org: 'generated',
7544+
team_slug: 'generated',
7545+
since: 'generated',
7546+
until: 'generated',
7547+
page: 1,
7548+
per_page: 8,
7549+
);
7550+
```
7551+
7552+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-a-team).
7553+
7554+
7555+
### copilot/usage-metrics-for-team
7556+
7557+
Get a summary of Copilot usage for a team
7558+
7559+
Using the `call` method:
7560+
```php
7561+
$client->call('LIST /orgs/{org}/team/{team_slug}/copilot/usage', [
7562+
'org' => 'generated',
7563+
'team_slug' => 'generated',
7564+
'since' => 'generated',
7565+
'until' => 'generated',
7566+
'page' => 1,
7567+
'per_page' => 8,
7568+
]);
7569+
```
7570+
7571+
Operations method:
7572+
```php
7573+
$client->operations()->copilot()->usageMetricsForTeamListing( org: 'generated',
7574+
team_slug: 'generated',
7575+
since: 'generated',
7576+
until: 'generated',
7577+
page: 1,
7578+
per_page: 8,
7579+
);
7580+
```
7581+
7582+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-a-team).
7583+
7584+
74137585
### teams/list
74147586

74157587
List teams

0 commit comments

Comments
 (0)