From cb2a77847888aabaa79641bd032105ddaf8a4e26 Mon Sep 17 00:00:00 2001 From: github-openapi-bot Date: Tue, 26 Aug 2025 10:36:12 -0700 Subject: [PATCH] Update OpenAPI 3.0 Descriptions --- .../dereferenced/ghec.2022-11-28.deref.json | 40 ++++++++++++++++++- .../dereferenced/ghec.2022-11-28.deref.yaml | 25 ++++++++++++ .../ghec/dereferenced/ghec.deref.json | 40 ++++++++++++++++++- .../ghec/dereferenced/ghec.deref.yaml | 25 ++++++++++++ descriptions/ghec/ghec.2022-11-28.json | 40 ++++++++++++++++++- descriptions/ghec/ghec.2022-11-28.yaml | 25 ++++++++++++ descriptions/ghec/ghec.json | 40 ++++++++++++++++++- descriptions/ghec/ghec.yaml | 25 ++++++++++++ 8 files changed, 256 insertions(+), 4 deletions(-) diff --git a/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json index 3d5d939c0..1a5a1239f 100644 --- a/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json +++ b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json @@ -55142,13 +55142,51 @@ "properties": { "message": { "type": "string" + }, + "reassigned_resources": { + "type": "array", + "nullable": true, + "items": { + "type": "object", + "properties": { + "resource_type": { + "type": "string", + "description": "The type of resource that was reassigned." + }, + "name": { + "type": "string", + "description": "The name of the resource that was reassigned." + }, + "previous_cost_center": { + "type": "string", + "description": "The previous cost center of the resource." + } + } + } } } }, "examples": { "default": { "value": { - "message": "Resources successfully added to the cost center." + "message": "Resources successfully added to the cost center.", + "reassigned_resources": [ + { + "resource_type": "user", + "name": "monalisa", + "previous_cost_center": "old-cost-center" + }, + { + "resource_type": "organization", + "name": "octo-org", + "previous_cost_center": "another-cost-center" + }, + { + "resource_type": "repository", + "name": "octo-repo", + "previous_cost_center": "yet-another-cost-center" + } + ] } } } diff --git a/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.yaml b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.yaml index 812a6f614..0e933ae0f 100644 --- a/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.yaml +++ b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.yaml @@ -20216,10 +20216,35 @@ paths: properties: message: type: string + reassigned_resources: + type: array + nullable: true + items: + type: object + properties: + resource_type: + type: string + description: The type of resource that was reassigned. + name: + type: string + description: The name of the resource that was reassigned. + previous_cost_center: + type: string + description: The previous cost center of the resource. examples: default: value: message: Resources successfully added to the cost center. + reassigned_resources: + - resource_type: user + name: monalisa + previous_cost_center: old-cost-center + - resource_type: organization + name: octo-org + previous_cost_center: another-cost-center + - resource_type: repository + name: octo-repo + previous_cost_center: yet-another-cost-center '400': *14 '403': *29 '409': *102 diff --git a/descriptions/ghec/dereferenced/ghec.deref.json b/descriptions/ghec/dereferenced/ghec.deref.json index 3d5d939c0..1a5a1239f 100644 --- a/descriptions/ghec/dereferenced/ghec.deref.json +++ b/descriptions/ghec/dereferenced/ghec.deref.json @@ -55142,13 +55142,51 @@ "properties": { "message": { "type": "string" + }, + "reassigned_resources": { + "type": "array", + "nullable": true, + "items": { + "type": "object", + "properties": { + "resource_type": { + "type": "string", + "description": "The type of resource that was reassigned." + }, + "name": { + "type": "string", + "description": "The name of the resource that was reassigned." + }, + "previous_cost_center": { + "type": "string", + "description": "The previous cost center of the resource." + } + } + } } } }, "examples": { "default": { "value": { - "message": "Resources successfully added to the cost center." + "message": "Resources successfully added to the cost center.", + "reassigned_resources": [ + { + "resource_type": "user", + "name": "monalisa", + "previous_cost_center": "old-cost-center" + }, + { + "resource_type": "organization", + "name": "octo-org", + "previous_cost_center": "another-cost-center" + }, + { + "resource_type": "repository", + "name": "octo-repo", + "previous_cost_center": "yet-another-cost-center" + } + ] } } } diff --git a/descriptions/ghec/dereferenced/ghec.deref.yaml b/descriptions/ghec/dereferenced/ghec.deref.yaml index 812a6f614..0e933ae0f 100644 --- a/descriptions/ghec/dereferenced/ghec.deref.yaml +++ b/descriptions/ghec/dereferenced/ghec.deref.yaml @@ -20216,10 +20216,35 @@ paths: properties: message: type: string + reassigned_resources: + type: array + nullable: true + items: + type: object + properties: + resource_type: + type: string + description: The type of resource that was reassigned. + name: + type: string + description: The name of the resource that was reassigned. + previous_cost_center: + type: string + description: The previous cost center of the resource. examples: default: value: message: Resources successfully added to the cost center. + reassigned_resources: + - resource_type: user + name: monalisa + previous_cost_center: old-cost-center + - resource_type: organization + name: octo-org + previous_cost_center: another-cost-center + - resource_type: repository + name: octo-repo + previous_cost_center: yet-another-cost-center '400': *14 '403': *29 '409': *102 diff --git a/descriptions/ghec/ghec.2022-11-28.json b/descriptions/ghec/ghec.2022-11-28.json index fd9e22749..cf026565a 100644 --- a/descriptions/ghec/ghec.2022-11-28.json +++ b/descriptions/ghec/ghec.2022-11-28.json @@ -326204,13 +326204,51 @@ "properties": { "message": { "type": "string" + }, + "reassigned_resources": { + "type": "array", + "nullable": true, + "items": { + "type": "object", + "properties": { + "resource_type": { + "type": "string", + "description": "The type of resource that was reassigned." + }, + "name": { + "type": "string", + "description": "The name of the resource that was reassigned." + }, + "previous_cost_center": { + "type": "string", + "description": "The previous cost center of the resource." + } + } + } } } }, "examples": { "default": { "value": { - "message": "Resources successfully added to the cost center." + "message": "Resources successfully added to the cost center.", + "reassigned_resources": [ + { + "resource_type": "user", + "name": "monalisa", + "previous_cost_center": "old-cost-center" + }, + { + "resource_type": "organization", + "name": "octo-org", + "previous_cost_center": "another-cost-center" + }, + { + "resource_type": "repository", + "name": "octo-repo", + "previous_cost_center": "yet-another-cost-center" + } + ] } } } diff --git a/descriptions/ghec/ghec.2022-11-28.yaml b/descriptions/ghec/ghec.2022-11-28.yaml index 184732ab4..daa90865e 100644 --- a/descriptions/ghec/ghec.2022-11-28.yaml +++ b/descriptions/ghec/ghec.2022-11-28.yaml @@ -247096,10 +247096,35 @@ components: properties: message: type: string + reassigned_resources: + type: array + nullable: true + items: + type: object + properties: + resource_type: + type: string + description: The type of resource that was reassigned. + name: + type: string + description: The name of the resource that was reassigned. + previous_cost_center: + type: string + description: The previous cost center of the resource. examples: default: value: message: Resources successfully added to the cost center. + reassigned_resources: + - resource_type: user + name: monalisa + previous_cost_center: old-cost-center + - resource_type: organization + name: octo-org + previous_cost_center: another-cost-center + - resource_type: repository + name: octo-repo + previous_cost_center: yet-another-cost-center remove_resource_from_cost_center: description: Response when removing resources from a cost center content: diff --git a/descriptions/ghec/ghec.json b/descriptions/ghec/ghec.json index fd9e22749..cf026565a 100644 --- a/descriptions/ghec/ghec.json +++ b/descriptions/ghec/ghec.json @@ -326204,13 +326204,51 @@ "properties": { "message": { "type": "string" + }, + "reassigned_resources": { + "type": "array", + "nullable": true, + "items": { + "type": "object", + "properties": { + "resource_type": { + "type": "string", + "description": "The type of resource that was reassigned." + }, + "name": { + "type": "string", + "description": "The name of the resource that was reassigned." + }, + "previous_cost_center": { + "type": "string", + "description": "The previous cost center of the resource." + } + } + } } } }, "examples": { "default": { "value": { - "message": "Resources successfully added to the cost center." + "message": "Resources successfully added to the cost center.", + "reassigned_resources": [ + { + "resource_type": "user", + "name": "monalisa", + "previous_cost_center": "old-cost-center" + }, + { + "resource_type": "organization", + "name": "octo-org", + "previous_cost_center": "another-cost-center" + }, + { + "resource_type": "repository", + "name": "octo-repo", + "previous_cost_center": "yet-another-cost-center" + } + ] } } } diff --git a/descriptions/ghec/ghec.yaml b/descriptions/ghec/ghec.yaml index 184732ab4..daa90865e 100644 --- a/descriptions/ghec/ghec.yaml +++ b/descriptions/ghec/ghec.yaml @@ -247096,10 +247096,35 @@ components: properties: message: type: string + reassigned_resources: + type: array + nullable: true + items: + type: object + properties: + resource_type: + type: string + description: The type of resource that was reassigned. + name: + type: string + description: The name of the resource that was reassigned. + previous_cost_center: + type: string + description: The previous cost center of the resource. examples: default: value: message: Resources successfully added to the cost center. + reassigned_resources: + - resource_type: user + name: monalisa + previous_cost_center: old-cost-center + - resource_type: organization + name: octo-org + previous_cost_center: another-cost-center + - resource_type: repository + name: octo-repo + previous_cost_center: yet-another-cost-center remove_resource_from_cost_center: description: Response when removing resources from a cost center content: