summaryrefslogtreecommitdiffstats
path: root/descriptions/api.github.com/api.github.com.2022-11-28.yaml
diff options
context:
space:
mode:
authorBrendan Forster <github@brendanforster.com>2025-01-20 10:06:50 -0400
committerGitHub <noreply@github.com>2025-01-20 10:06:50 -0400
commitbd57c25aef8f4e8a5e8813d4da18c2584c28a877 (patch)
treecfed9d72facfa3563a4e68d524271e4bf95b70b3 /descriptions/api.github.com/api.github.com.2022-11-28.yaml
parentb42313397697ee856b4effdcc2727a5dbe6cbd6d (diff)
parentba7ccf49d9ca5283fe99b43fe2ee47ea63e025b7 (diff)
downloadrest-api-description-bd57c25aef8f4e8a5e8813d4da18c2584c28a877.tar.gz
rest-api-description-bd57c25aef8f4e8a5e8813d4da18c2584c28a877.zip
Merge pull request #4456 from github/openapi-update-b144bc2916df8ce6629565b83ba81ebd94af1092fcc73e96e44d8f5dcdcbf274
Update OpenAPI 3.0 Descriptions
Diffstat (limited to 'descriptions/api.github.com/api.github.com.2022-11-28.yaml')
-rw-r--r--descriptions/api.github.com/api.github.com.2022-11-28.yaml403
1 files changed, 401 insertions, 2 deletions
diff --git a/descriptions/api.github.com/api.github.com.2022-11-28.yaml b/descriptions/api.github.com/api.github.com.2022-11-28.yaml
index 8fbfce71e..75b9fed79 100644
--- a/descriptions/api.github.com/api.github.com.2022-11-28.yaml
+++ b/descriptions/api.github.com/api.github.com.2022-11-28.yaml
@@ -93,6 +93,8 @@ tags:
description: Endpoints to manage Code security using the REST API.
- name: private-registries
description: Manage private registry configurations.
+- name: hosted-compute
+ description: Manage hosted compute networking resources.
servers:
- url: https://api.github.com
externalDocs:
@@ -2129,6 +2131,7 @@ paths:
- "$ref": "#/components/parameters/dependabot-alert-comma-separated-severities"
- "$ref": "#/components/parameters/dependabot-alert-comma-separated-ecosystems"
- "$ref": "#/components/parameters/dependabot-alert-comma-separated-packages"
+ - "$ref": "#/components/parameters/dependabot-alert-comma-separated-epss"
- "$ref": "#/components/parameters/dependabot-alert-scope"
- "$ref": "#/components/parameters/dependabot-alert-sort"
- "$ref": "#/components/parameters/direction"
@@ -9784,6 +9787,7 @@ paths:
- "$ref": "#/components/parameters/dependabot-alert-comma-separated-severities"
- "$ref": "#/components/parameters/dependabot-alert-comma-separated-ecosystems"
- "$ref": "#/components/parameters/dependabot-alert-comma-separated-packages"
+ - "$ref": "#/components/parameters/dependabot-alert-comma-separated-epss"
- "$ref": "#/components/parameters/dependabot-alert-scope"
- "$ref": "#/components/parameters/dependabot-alert-sort"
- "$ref": "#/components/parameters/direction"
@@ -15498,6 +15502,270 @@ paths:
enabledForGitHubApps: false
category: billing
subcategory: billing
+ "/orgs/{org}/settings/network-configurations":
+ get:
+ summary: List hosted compute network configurations for an organization
+ description: |-
+ Lists all hosted compute network configurations configured in an organization.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:network_configurations` scope to use this endpoint.
+ tags:
+ - hosted-compute
+ operationId: hosted-compute/list-network-configurations-for-org
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/settings/network-configurations#list-hosted-compute-network-configurations-for-an-organization
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/per-page"
+ - "$ref": "#/components/parameters/page"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ type: object
+ required:
+ - total_count
+ - network_configurations
+ properties:
+ total_count:
+ type: integer
+ network_configurations:
+ type: array
+ items:
+ "$ref": "#/components/schemas/network-configuration"
+ examples:
+ default:
+ "$ref": "#/components/examples/network-configurations-paginated"
+ headers:
+ Link:
+ "$ref": "#/components/headers/link"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: settings
+ subcategory: network-configurations
+ post:
+ summary: Create a hosted compute network configuration for an organization
+ description: |-
+ Creates a hosted compute network configuration for an organization.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:network_configurations` scope to use this endpoint.
+ tags:
+ - hosted-compute
+ operationId: hosted-compute/create-network-configuration-for-org
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/settings/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ name:
+ description: Name of the network configuration. Must be between
+ 1 and 100 characters and may only contain upper and lowercase
+ letters a-z, numbers 0-9, '.', '-', and '_'.
+ type: string
+ compute_service:
+ description: The hosted compute service to use for the network configuration.
+ type: string
+ enum:
+ - none
+ - actions
+ network_settings_ids:
+ type: array
+ minItems: 1
+ maxItems: 1
+ description: The identifier of the network settings to use for the
+ network configuration. Exactly one network settings must be specified.
+ items:
+ type: string
+ required:
+ - name
+ - network_settings_ids
+ examples:
+ default:
+ value:
+ name: my-network-configuration
+ network_settings_ids:
+ - 23456789ABDCEF1
+ compute_service: actions
+ responses:
+ '201':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/network-configuration"
+ examples:
+ default:
+ "$ref": "#/components/examples/network-configuration"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: settings
+ subcategory: network-configurations
+ "/orgs/{org}/settings/network-configurations/{network_configuration_id}":
+ get:
+ summary: Get a hosted compute network configuration for an organization
+ description: |-
+ Gets a hosted compute network configuration configured in an organization.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:network_configurations` scope to use this endpoint.
+ tags:
+ - hosted-compute
+ operationId: hosted-compute/get-network-configuration-for-org
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/settings/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/network-configuration-id"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/network-configuration"
+ examples:
+ default:
+ "$ref": "#/components/examples/network-configuration"
+ headers:
+ Link:
+ "$ref": "#/components/headers/link"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: settings
+ subcategory: network-configurations
+ patch:
+ summary: Update a hosted compute network configuration for an organization
+ description: |-
+ Updates a hosted compute network configuration for an organization.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:network_configurations` scope to use this endpoint.
+ tags:
+ - hosted-compute
+ operationId: hosted-compute/update-network-configuration-for-org
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/settings/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/network-configuration-id"
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ name:
+ description: Name of the network configuration. Must be between
+ 1 and 100 characters and may only contain upper and lowercase
+ letters a-z, numbers 0-9, '.', '-', and '_'.
+ type: string
+ compute_service:
+ description: The hosted compute service to use for the network configuration.
+ type: string
+ enum:
+ - none
+ - actions
+ network_settings_ids:
+ type: array
+ minItems: 0
+ maxItems: 1
+ description: The identifier of the network settings to use for the
+ network configuration. Exactly one network settings must be specified.
+ items:
+ type: string
+ examples:
+ default:
+ value:
+ name: my-network-configuration
+ network_settings_ids:
+ - 23456789ABDCEF1
+ compute_service: actions
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/network-configuration"
+ examples:
+ default:
+ "$ref": "#/components/examples/network-configuration"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: settings
+ subcategory: network-configurations
+ delete:
+ summary: Delete a hosted compute network configuration from an organization
+ description: |-
+ Deletes a hosted compute network configuration from an organization.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:network_configurations` scope to use this endpoint.
+ tags:
+ - hosted-compute
+ operationId: hosted-compute/delete-network-configuration-from-org
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/settings/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/network-configuration-id"
+ responses:
+ '204':
+ description: Response
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: settings
+ subcategory: network-configurations
+ "/orgs/{org}/settings/network-settings/{network_settings_id}":
+ get:
+ summary: Get a hosted compute network settings resource for an organization
+ description: |-
+ Gets a hosted compute network settings resource configured for an organization.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:network_configurations` scope to use this endpoint.
+ tags:
+ - hosted-compute
+ operationId: hosted-compute/get-network-settings-for-org
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/settings/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/network-settings-id"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/network-settings"
+ examples:
+ default:
+ "$ref": "#/components/examples/network-settings"
+ headers:
+ Link:
+ "$ref": "#/components/headers/link"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: settings
+ subcategory: network-configurations
"/orgs/{org}/team/{team_slug}/copilot/metrics":
get:
summary: Get Copilot metrics for a team
@@ -28803,6 +29071,7 @@ paths:
- "$ref": "#/components/parameters/dependabot-alert-comma-separated-ecosystems"
- "$ref": "#/components/parameters/dependabot-alert-comma-separated-packages"
- "$ref": "#/components/parameters/dependabot-alert-comma-separated-manifests"
+ - "$ref": "#/components/parameters/dependabot-alert-comma-separated-epss"
- "$ref": "#/components/parameters/dependabot-alert-scope"
- "$ref": "#/components/parameters/dependabot-alert-sort"
- "$ref": "#/components/parameters/direction"
@@ -34914,7 +35183,7 @@ paths:
properties:
sub_issue_id:
type: integer
- description: The sub-issue to remove
+ description: The id of the sub-issue to remove
required:
- sub_issue_id
examples:
@@ -35028,7 +35297,8 @@ paths:
properties:
sub_issue_id:
type: integer
- description: The sub-issue to add
+ description: The id of the sub-issue to add. The sub-issue must
+ belong to the same repository as the parent issue
replace_parent:
type: boolean
description: Option that, when true, instructs the operation to
@@ -79505,6 +79775,75 @@ components:
- days_left_in_billing_cycle
- estimated_paid_storage_for_month
- estimated_storage_for_month
+ network-configuration:
+ title: Hosted compute network configuration
+ description: A hosted compute network configuration.
+ type: object
+ properties:
+ id:
+ description: The unique identifier of the network configuration.
+ type: string
+ example: 123ABC456DEF789
+ name:
+ description: The name of the network configuration.
+ type: string
+ example: my-network-configuration
+ compute_service:
+ description: The hosted compute service the network configuration supports.
+ type: string
+ enum:
+ - none
+ - actions
+ - codespaces
+ network_settings_ids:
+ description: The unique identifier of each network settings in the configuration.
+ type: array
+ items:
+ type: string
+ example: 123ABC456DEF789
+ created_on:
+ description: The time at which the network configuration was created, in
+ ISO 8601 format.
+ type: string
+ format: date-time
+ example: '2024-04-26T11:31:07Z'
+ nullable: true
+ required:
+ - id
+ - name
+ - created_on
+ network-settings:
+ title: Hosted compute network settings resource
+ description: A hosted compute network settings resource.
+ type: object
+ properties:
+ id:
+ description: The unique identifier of the network settings resource.
+ type: string
+ example: 220F78DACB92BBFBC5E6F22DE1CCF52309D
+ network_configuration_id:
+ description: The identifier of the network configuration that is using this
+ settings resource.
+ type: string
+ example: 934E208B3EE0BD60CF5F752C426BFB53562
+ name:
+ description: The name of the network settings resource.
+ type: string
+ example: my-network-settings
+ subnet_id:
+ description: The subnet this network settings resource is configured for.
+ type: string
+ example: "/subscriptions/14839728-3ad9-43ab-bd2b-fa6ad0f75e2a/resourceGroups/my-rg/providers/Microsoft.Network/virtualNetworks/my-vnet/subnets/my-subnet"
+ region:
+ description: The location of the subnet this network settings resource is
+ configured for.
+ type: string
+ example: eastus
+ required:
+ - id
+ - name
+ - subnet_id
+ - region
team-organization:
title: Team Organization
description: Team Organization
@@ -207489,6 +207828,40 @@ components:
days_left_in_billing_cycle: 20
estimated_paid_storage_for_month: 15
estimated_storage_for_month: 40
+ network-configurations-paginated:
+ value:
+ total_count: 2
+ network_configurations:
+ - id: 123456789ABCDEF
+ name: My network configuration
+ compute_service: actions
+ network_settings_ids:
+ - 23456789ABDCEF1
+ - 3456789ABDCEF12
+ created_on: '2022-10-09T23:39:01Z'
+ - id: 456789ABDCEF123
+ name: My other configuration
+ compute_service: none
+ network_settings_ids:
+ - 56789ABDCEF1234
+ - 6789ABDCEF12345
+ created_on: '2023-04-26T15:23:37Z'
+ network-configuration:
+ value:
+ id: 123456789ABCDEF
+ name: My network configuration
+ compute_service: actions
+ network_settings_ids:
+ - 23456789ABDCEF1
+ - 3456789ABDCEF12
+ created_on: '2022-10-09T23:39:01Z'
+ network-settings:
+ value:
+ id: 220F78DACB92BBFBC5E6F22DE1CCF52309D
+ network_configuration_id: 934E208B3EE0BD60CF5F752C426BFB53562
+ name: my_network_settings
+ subnet_id: "/subscriptions/14839728-3ad9-43ab-bd2b-fa6ad0f75e2a/resourceGroups/my-rg/providers/Microsoft.Network/virtualNetworks/my-vnet/subnets/my-subnet"
+ region: eastus
team-full:
value:
id: 1
@@ -225309,6 +225682,18 @@ components:
for these packages will be returned.
schema:
type: string
+ dependabot-alert-comma-separated-epss:
+ name: epss_percentage
+ in: query
+ description: |-
+ CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as:
+ - An exact number (`n`)
+ - Comparators such as `>n`, `<n`, `>=n`, `<=n`
+ - A range like `n..n`, where `n` is a number from 0.0 to 1.0
+
+ Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned.
+ schema:
+ type: string
dependabot-alert-scope:
name: scope
in: query
@@ -226033,6 +226418,20 @@ components:
required: false
schema:
type: string
+ network-configuration-id:
+ name: network_configuration_id
+ description: Unique identifier of the hosted compute network configuration.
+ in: path
+ required: true
+ schema:
+ type: string
+ network-settings-id:
+ name: network_settings_id
+ description: Unique identifier of the hosted compute network settings.
+ in: path
+ required: true
+ schema:
+ type: string
discussion-number:
name: discussion_number
description: The number that identifies the discussion.