Skip to content

Commit 876e59f

Browse files
octokitbotgr2m
andauthored
feat(GHES 3.6): SCIM endpoints (#497)
Co-authored-by: Gregor Martynus <[email protected]>
1 parent 8fec1cd commit 876e59f

File tree

11 files changed

+5718
-955
lines changed

11 files changed

+5718
-955
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ jobs:
3535
- run: npm ci
3636
- run: npm run lint
3737
- run: npm run build
38+
- run: VERSION=`npm info @octokit/openapi version` npm run update-endpoints
3839
if: ${{ always() }}

docs/ghe-36.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ octokit.enterpriseAdmin.deletePreReceiveEnvironment({
3838
});
3939
octokit.enterpriseAdmin.deletePreReceiveHook({ pre_receive_hook_id });
4040
octokit.enterpriseAdmin.deletePublicKey({ key_ids });
41+
octokit.enterpriseAdmin.deleteScimGroupFromEnterprise({
42+
enterprise,
43+
scim_group_id,
44+
});
4145
octokit.enterpriseAdmin.deleteUser({ username });
46+
octokit.enterpriseAdmin.deleteUserFromEnterprise({ enterprise, scim_user_id });
4247
octokit.enterpriseAdmin.demoteSiteAdministrator({ username });
4348
octokit.enterpriseAdmin.disableSelectedOrganizationGithubActionsEnterprise({
4449
enterprise,
@@ -78,6 +83,15 @@ octokit.enterpriseAdmin.getPreReceiveHookForRepo({
7883
repo,
7984
pre_receive_hook_id,
8085
});
86+
octokit.enterpriseAdmin.getProvisioningInformationForEnterpriseGroup({
87+
enterprise,
88+
scim_group_id,
89+
excludedAttributes,
90+
});
91+
octokit.enterpriseAdmin.getProvisioningInformationForEnterpriseUser({
92+
enterprise,
93+
scim_user_id,
94+
});
8195
octokit.enterpriseAdmin.getPullRequestStats();
8296
octokit.enterpriseAdmin.getRepoStats();
8397
octokit.enterpriseAdmin.getSettings({ origin });
@@ -115,6 +129,19 @@ octokit.enterpriseAdmin.listPreReceiveHooksForRepo({
115129
direction,
116130
sort,
117131
});
132+
octokit.enterpriseAdmin.listProvisionedGroupsEnterprise({
133+
enterprise,
134+
startIndex,
135+
count,
136+
filter,
137+
excludedAttributes,
138+
});
139+
octokit.enterpriseAdmin.listProvisionedIdentitiesEnterprise({
140+
enterprise,
141+
startIndex,
142+
count,
143+
filter,
144+
});
118145
octokit.enterpriseAdmin.listPublicKeys({
119146
per_page,
120147
page,
@@ -127,6 +154,20 @@ octokit.enterpriseAdmin.listSelectedOrganizationsEnabledGithubActionsEnterprise(
127154
);
128155
octokit.enterpriseAdmin.pingGlobalWebhook({ hook_id });
129156
octokit.enterpriseAdmin.promoteUserToBeSiteAdministrator({ username });
157+
octokit.enterpriseAdmin.provisionAndInviteEnterpriseGroup({
158+
enterprise,
159+
schemas,
160+
displayName,
161+
members,
162+
});
163+
octokit.enterpriseAdmin.provisionAndInviteEnterpriseUser({
164+
enterprise,
165+
schemas,
166+
userName,
167+
name,
168+
emails,
169+
groups,
170+
});
130171
octokit.enterpriseAdmin.removeAllCustomLabelsFromSelfHostedRunnerForEnterprise({
131172
enterprise,
132173
runner_id,
@@ -163,6 +204,22 @@ octokit.enterpriseAdmin.setGithubActionsPermissionsEnterprise({
163204
enabled_organizations,
164205
allowed_actions,
165206
});
207+
octokit.enterpriseAdmin.setInformationForProvisionedEnterpriseGroup({
208+
enterprise,
209+
scim_group_id,
210+
schemas,
211+
displayName,
212+
members,
213+
});
214+
octokit.enterpriseAdmin.setInformationForProvisionedEnterpriseUser({
215+
enterprise,
216+
scim_user_id,
217+
schemas,
218+
userName,
219+
name,
220+
emails,
221+
groups,
222+
});
166223
octokit.enterpriseAdmin.setSelectedOrganizationsEnabledGithubActionsEnterprise({
167224
enterprise,
168225
selected_organization_ids,
@@ -176,6 +233,18 @@ octokit.enterpriseAdmin.suspendUser({ username, reason });
176233
octokit.enterpriseAdmin.syncLdapMappingForTeam({ team_id });
177234
octokit.enterpriseAdmin.syncLdapMappingForUser({ username });
178235
octokit.enterpriseAdmin.unsuspendUser({ username, reason });
236+
octokit.enterpriseAdmin.updateAttributeForEnterpriseGroup({
237+
enterprise,
238+
scim_group_id,
239+
schemas,
240+
Operations,
241+
});
242+
octokit.enterpriseAdmin.updateAttributeForEnterpriseUser({
243+
enterprise,
244+
scim_user_id,
245+
schemas,
246+
Operations,
247+
});
179248
octokit.enterpriseAdmin.updateGlobalWebhook({
180249
hook_id,
181250
config,

0 commit comments

Comments
 (0)