mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-23 07:08:08 +09:00
Updates to vendors etc
This commit is contained in:
34
vendor/knplabs/github-api/lib/Github/Api/Copilot/Usage.php
vendored
Normal file
34
vendor/knplabs/github-api/lib/Github/Api/Copilot/Usage.php
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace Github\Api\Copilot;
|
||||
|
||||
use Github\Api\AbstractApi;
|
||||
|
||||
class Usage extends AbstractApi
|
||||
{
|
||||
public function orgUsageSummary(string $organization, array $params = []): array
|
||||
{
|
||||
return $this->get('/orgs/'.rawurlencode($organization).'/copilot/usage', $params);
|
||||
}
|
||||
|
||||
public function orgTeamUsageSummary(string $organization, string $teamSlug, array $params = []): array
|
||||
{
|
||||
return $this->get(
|
||||
'/orgs/'.rawurlencode($organization).'/team/'.rawurlencode($teamSlug).'/copilot/usage',
|
||||
$params
|
||||
);
|
||||
}
|
||||
|
||||
public function enterpriseUsageSummary(string $enterprise, array $params = []): array
|
||||
{
|
||||
return $this->get('/enterprises/'.rawurlencode($enterprise).'/copilot/usage', $params);
|
||||
}
|
||||
|
||||
public function enterpriseTeamUsageSummary(string $enterprise, string $teamSlug, array $params = []): array
|
||||
{
|
||||
return $this->get(
|
||||
'/enterprises/'.rawurlencode($enterprise).'/team/'.rawurlencode($teamSlug).'/copilot/usage',
|
||||
$params
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user