Skip to content

Commit e95ff92

Browse files
committed
update openapi
1 parent 0473d08 commit e95ff92

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ghapi/metadata.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
('/codes_of_conduct', 'get', 'codes-of-conduct/get-all-codes-of-conduct', 'Get all codes of conduct', 'rest/codes-of-conduct/codes-of-conduct#get-all-codes-of-conduct', [], [], ''),
3838
('/codes_of_conduct/{key}', 'get', 'codes-of-conduct/get-conduct-code', 'Get a code of conduct', 'rest/codes-of-conduct/codes-of-conduct#get-a-code-of-conduct', [], [], ''),
3939
('/emojis', 'get', 'emojis/get', 'Get emojis', 'rest/emojis/emojis#get-emojis', [], [], ''),
40+
('/enterprises/{enterprise}/copilot/usage', 'get', 'copilot/usage-metrics-for-enterprise', 'Get a summary of Copilot usage for enterprise members', 'rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-enterprise-members', ['since', 'until', 'page', 'per_page'], [], ''),
4041
('/enterprises/{enterprise}/dependabot/alerts', 'get', 'dependabot/list-alerts-for-enterprise', 'List Dependabot alerts for an enterprise', 'rest/dependabot/alerts#list-dependabot-alerts-for-an-enterprise', ['state', 'severity', 'ecosystem', 'package', 'scope', 'sort', 'direction', 'before', 'after', 'first', 'last', 'per_page'], [], ''),
4142
('/enterprises/{enterprise}/secret-scanning/alerts', 'get', 'secret-scanning/list-alerts-for-enterprise', 'List secret scanning alerts for an enterprise', 'rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-an-enterprise', ['state', 'secret_type', 'resolution', 'sort', 'direction', 'per_page', 'before', 'after', 'validity'], [], ''),
4243
('/events', 'get', 'activity/list-public-events', 'List public events', 'rest/activity/events#list-public-events', ['per_page', 'page'], [], ''),
@@ -200,6 +201,7 @@
200201
('/orgs/{org}/copilot/billing/selected_teams', 'delete', 'copilot/cancel-copilot-seat-assignment-for-teams', 'Remove teams from the Copilot subscription for an organization', 'rest/copilot/copilot-user-management#remove-teams-from-the-copilot-subscription-for-an-organization', [], [['selected_teams', list]], ''),
201202
('/orgs/{org}/copilot/billing/selected_users', 'post', 'copilot/add-copilot-seats-for-users', 'Add users to the Copilot subscription for an organization', 'rest/copilot/copilot-user-management#add-users-to-the-copilot-subscription-for-an-organization', [], [['selected_usernames', list]], ''),
202203
('/orgs/{org}/copilot/billing/selected_users', 'delete', 'copilot/cancel-copilot-seat-assignment-for-users', 'Remove users from the Copilot subscription for an organization', 'rest/copilot/copilot-user-management#remove-users-from-the-copilot-subscription-for-an-organization', [], [['selected_usernames', list]], ''),
204+
('/orgs/{org}/copilot/usage', 'get', 'copilot/usage-metrics-for-org', 'Get a summary of Copilot usage for organization members', 'rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-organization-members', ['since', 'until', 'page', 'per_page'], [], ''),
203205
('/orgs/{org}/dependabot/alerts', 'get', 'dependabot/list-alerts-for-org', 'List Dependabot alerts for an organization', 'rest/dependabot/alerts#list-dependabot-alerts-for-an-organization', ['state', 'severity', 'ecosystem', 'package', 'scope', 'sort', 'direction', 'before', 'after', 'first', 'last', 'per_page'], [], ''),
204206
('/orgs/{org}/dependabot/secrets', 'get', 'dependabot/list-org-secrets', 'List organization secrets', 'rest/dependabot/secrets#list-organization-secrets', ['per_page', 'page'], [], ''),
205207
('/orgs/{org}/dependabot/secrets/public-key', 'get', 'dependabot/get-org-public-key', 'Get an organization public key', 'rest/dependabot/secrets#get-an-organization-public-key', [], [], ''),
@@ -337,7 +339,7 @@
337339
'Create or update a custom property for an organization',
338340
'rest/orgs/custom-properties#create-or-update-a-custom-property-for-an-organization',
339341
[],
340-
[['value_type', str], ['required', bool], ['default_value', str], ['description', str], ['allowed_values', list]],
342+
[['value_type', str], ['required', bool], ['default_value', object], ['description', str], ['allowed_values', list]],
341343
''),
342344
('/orgs/{org}/properties/schema/{custom_property_name}', 'delete', 'orgs/remove-custom-property', 'Remove a custom property for an organization', 'rest/orgs/custom-properties#remove-a-custom-property-for-an-organization', [], [], ''),
343345
('/orgs/{org}/properties/values', 'get', 'orgs/list-custom-properties-values-for-repos', 'List custom property values for organization repositories', 'rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories', ['per_page', 'page', 'repository_query'], [], ''),
@@ -394,6 +396,7 @@
394396
('/orgs/{org}/settings/billing/actions', 'get', 'billing/get-github-actions-billing-org', 'Get GitHub Actions billing for an organization', 'rest/billing/billing#get-github-actions-billing-for-an-organization', [], [], ''),
395397
('/orgs/{org}/settings/billing/packages', 'get', 'billing/get-github-packages-billing-org', 'Get GitHub Packages billing for an organization', 'rest/billing/billing#get-github-packages-billing-for-an-organization', [], [], ''),
396398
('/orgs/{org}/settings/billing/shared-storage', 'get', 'billing/get-shared-storage-billing-org', 'Get shared storage billing for an organization', 'rest/billing/billing#get-shared-storage-billing-for-an-organization', [], [], ''),
399+
('/orgs/{org}/team/{team_slug}/copilot/usage', 'get', 'copilot/usage-metrics-for-team', 'Get a summary of Copilot usage for a team', 'rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-a-team', ['since', 'until', 'page', 'per_page'], [], ''),
397400
('/orgs/{org}/teams', 'get', 'teams/list', 'List teams', 'rest/teams/teams#list-teams', ['per_page', 'page'], [], ''),
398401
('/orgs/{org}/teams', 'post', 'teams/create', 'Create a team', 'rest/teams/teams#create-a-team', [], [['name', str], ['description', str], ['maintainers', list], ['repo_names', list], ['privacy', str], ['notification_setting', str], ['permission', str, 'pull'], ['parent_team_id', int]], ''),
399402
('/orgs/{org}/teams/{team_slug}', 'get', 'teams/get-by-name', 'Get a team by name', 'rest/teams/teams#get-a-team-by-name', [], [], ''),

0 commit comments

Comments
 (0)