Skip to content

Commit ce46188

Browse files
authored
Merge pull request #1184 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-9ba395332ab1fb03d596ca95c67b1ffc-from-1.1.4-9ba395332ab1fb03d596ca95c67b1ffc
2 parents 91e50ac + 9aab881 commit ce46188

File tree

56 files changed

+4885
-198
lines changed

Some content is hidden

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

56 files changed

+4885
-198
lines changed

clients/GitHubEnterpriseCloud/README.md

Lines changed: 100 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2136,6 +2136,70 @@ $client->operations()->billing()->getGithubAdvancedSecurityBillingGhe( en
21362136
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/billing#get-github-advanced-security-active-committers-for-an-enterprise).
21372137

21382138

2139+
### billing/get-all-cost-centers
2140+
2141+
Get all cost centers for an enterprise
2142+
2143+
Using the `call` method:
2144+
```php
2145+
$client->call('GET /enterprises/{enterprise}/settings/billing/cost-centers', [
2146+
'enterprise' => 'generated',
2147+
]);
2148+
```
2149+
2150+
Operations method:
2151+
```php
2152+
$client->operations()->billing()->getAllCostCenters( enterprise: 'generated',
2153+
);
2154+
```
2155+
2156+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/billing#get-all-cost-centers-for-an-enterprise).
2157+
2158+
2159+
### billing/add-resource-to-cost-center
2160+
2161+
Add users to a cost center
2162+
2163+
Using the `call` method:
2164+
```php
2165+
$client->call('POST /enterprises/{enterprise}/settings/billing/cost-centers/{cost_center_id}/resource', [
2166+
'enterprise' => 'generated',
2167+
'cost_center_id' => 'generated',
2168+
]);
2169+
```
2170+
2171+
Operations method:
2172+
```php
2173+
$client->operations()->billing()->addResourceToCostCenter( enterprise: 'generated',
2174+
cost_center_id: 'generated',
2175+
);
2176+
```
2177+
2178+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/billing#add-users-to-a-cost-center).
2179+
2180+
2181+
### billing/remove-resource-from-cost-center
2182+
2183+
Remove users from a cost center
2184+
2185+
Using the `call` method:
2186+
```php
2187+
$client->call('DELETE /enterprises/{enterprise}/settings/billing/cost-centers/{cost_center_id}/resource', [
2188+
'enterprise' => 'generated',
2189+
'cost_center_id' => 'generated',
2190+
]);
2191+
```
2192+
2193+
Operations method:
2194+
```php
2195+
$client->operations()->billing()->removeResourceFromCostCenter( enterprise: 'generated',
2196+
cost_center_id: 'generated',
2197+
);
2198+
```
2199+
2200+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/billing#remove-users-from-a-cost-center).
2201+
2202+
21392203
### billing/get-github-packages-billing-ghe
21402204

21412205
Get GitHub Packages billing for an enterprise
@@ -2176,6 +2240,36 @@ $client->operations()->billing()->getSharedStorageBillingGhe( enterprise:
21762240
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/billing#get-shared-storage-billing-for-an-enterprise).
21772241

21782242

2243+
### billing/get-github-billing-usage-report-ghe
2244+
2245+
Get billing usage report for an enterprise
2246+
2247+
Using the `call` method:
2248+
```php
2249+
$client->call('GET /enterprises/{enterprise}/settings/billing/usage', [
2250+
'enterprise' => 'generated',
2251+
'year' => 4,
2252+
'month' => 5,
2253+
'day' => 3,
2254+
'hour' => 4,
2255+
'cost_center_id' => 'generated',
2256+
]);
2257+
```
2258+
2259+
Operations method:
2260+
```php
2261+
$client->operations()->billing()->getGithubBillingUsageReportGhe( enterprise: 'generated',
2262+
year: 4,
2263+
month: 5,
2264+
day: 3,
2265+
hour: 4,
2266+
cost_center_id: 'generated',
2267+
);
2268+
```
2269+
2270+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/billing#get-billing-usage-report-for-an-enterprise).
2271+
2272+
21792273
### secret-scanning/post-security-product-enablement-for-enterprise
21802274

21812275
Enable or disable a security feature
@@ -23761,7 +23855,7 @@ You can find more about this operation over at the [API method documentation](ht
2376123855

2376223856
### repos/list-tag-protection
2376323857

23764-
List tag protection states for a repository
23858+
Deprecated - List tag protection states for a repository
2376523859

2376623860
Using the `call` method:
2376723861
```php
@@ -23778,12 +23872,12 @@ $client->operations()->repos()->listTagProtection( owner: 'generated',
2377823872
);
2377923873
```
2378023874

23781-
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/repos/tags#list-tag-protection-states-for-a-repository).
23875+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/repos/tags#deprecated---list-tag-protection-states-for-a-repository).
2378223876

2378323877

2378423878
### repos/create-tag-protection
2378523879

23786-
Create a tag protection state for a repository
23880+
Deprecated - Create a tag protection state for a repository
2378723881

2378823882
Using the `call` method:
2378923883
```php
@@ -23800,12 +23894,12 @@ $client->operations()->repos()->createTagProtection( owner: 'generated',
2380023894
);
2380123895
```
2380223896

23803-
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/repos/tags#create-a-tag-protection-state-for-a-repository).
23897+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/repos/tags#deprecated---create-a-tag-protection-state-for-a-repository).
2380423898

2380523899

2380623900
### repos/delete-tag-protection
2380723901

23808-
Delete a tag protection state for a repository
23902+
Deprecated - Delete a tag protection state for a repository
2380923903

2381023904
Using the `call` method:
2381123905
```php
@@ -23824,7 +23918,7 @@ $client->operations()->repos()->deleteTagProtection( owner: 'generated',
2382423918
);
2382523919
```
2382623920

23827-
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/repos/tags#delete-a-tag-protection-state-for-a-repository).
23921+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/repos/tags#deprecated---delete-a-tag-protection-state-for-a-repository).
2382823922

2382923923

2383023924
### repos/download-tarball-archive

0 commit comments

Comments
 (0)