Skip to content

Commit

Permalink
Merge pull request #1389 from php-api-clients/GitHubEnterpriseCloud/f…
Browse files Browse the repository at this point in the history
…rom-1.1.4-306d5b5d8ae10d84736da59c5abf628f-from-1.1.4-306d5b5d8ae10d84736da59c5abf628f
  • Loading branch information
WyriHaximus authored Dec 12, 2024
2 parents 634cc61 + 70240b7 commit d25dd41
Show file tree
Hide file tree
Showing 106 changed files with 8,787 additions and 1,238 deletions.
86 changes: 86 additions & 0 deletions clients/GitHubEnterpriseCloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2368,6 +2368,92 @@ $client->operations()->enterpriseAdmin()->removeEnterpriseCustomProperty(
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/custom-properties#remove-a-custom-property-for-an-enterprise).


### repos/create-enterprise-ruleset

Create an enterprise repository ruleset

Using the `call` method:
```php
$client->call('POST /enterprises/{enterprise}/rulesets', [
'enterprise' => 'generated',
]);
```

Operations method:
```php
$client->operations()->repos()->createEnterpriseRuleset( enterprise: 'generated',
);
```

You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/rules#create-an-enterprise-repository-ruleset).


### repos/get-enterprise-ruleset

Get an enterprise repository ruleset

Using the `call` method:
```php
$client->call('GET /enterprises/{enterprise}/rulesets/{ruleset_id}', [
'enterprise' => 'generated',
'ruleset_id' => 10,
]);
```

Operations method:
```php
$client->operations()->repos()->getEnterpriseRuleset( enterprise: 'generated',
ruleset_id: 10,
);
```

You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/rules#get-an-enterprise-repository-ruleset).


### repos/update-enterprise-ruleset

Update an enterprise repository ruleset

Using the `call` method:
```php
$client->call('PUT /enterprises/{enterprise}/rulesets/{ruleset_id}', [
'enterprise' => 'generated',
'ruleset_id' => 10,
]);
```

Operations method:
```php
$client->operations()->repos()->updateEnterpriseRuleset( enterprise: 'generated',
ruleset_id: 10,
);
```

You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/rules#update-an-enterprise-repository-ruleset).


### repos/delete-enterprise-ruleset

Delete an enterprise repository ruleset

Using the `call` method:
```php
$client->call('DELETE /enterprises/{enterprise}/rulesets/{ruleset_id}', [
'enterprise' => 'generated',
'ruleset_id' => 10,
]);
```

Operations method:
```php
$client->operations()->repos()->deleteEnterpriseRuleset( enterprise: 'generated',
ruleset_id: 10,
);
```

You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/rules#delete-an-enterprise-repository-ruleset).


### secret-scanning/list-alerts-for-enterprise

List secret scanning alerts for an enterprise
Expand Down
Loading

0 comments on commit d25dd41

Please sign in to comment.