diff --git a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json index 4b8c5c9be..3fc6f5e4d 100644 --- a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json +++ b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json @@ -60133,13 +60133,53 @@ "properties": { "message": { "type": "string" + }, + "reassigned_resources": { + "type": [ + "array", + "null" + ], + "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-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml index cc92a452a..806aeaf9d 100644 --- a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml +++ b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml @@ -20815,10 +20815,36 @@ paths: properties: message: type: string + reassigned_resources: + type: + - array + - 'null' + 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': *27 '409': *100 diff --git a/descriptions-next/ghec/dereferenced/ghec.deref.json b/descriptions-next/ghec/dereferenced/ghec.deref.json index 4b8c5c9be..3fc6f5e4d 100644 --- a/descriptions-next/ghec/dereferenced/ghec.deref.json +++ b/descriptions-next/ghec/dereferenced/ghec.deref.json @@ -60133,13 +60133,53 @@ "properties": { "message": { "type": "string" + }, + "reassigned_resources": { + "type": [ + "array", + "null" + ], + "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-next/ghec/dereferenced/ghec.deref.yaml b/descriptions-next/ghec/dereferenced/ghec.deref.yaml index cc92a452a..806aeaf9d 100644 --- a/descriptions-next/ghec/dereferenced/ghec.deref.yaml +++ b/descriptions-next/ghec/dereferenced/ghec.deref.yaml @@ -20815,10 +20815,36 @@ paths: properties: message: type: string + reassigned_resources: + type: + - array + - 'null' + 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': *27 '409': *100 diff --git a/descriptions-next/ghec/ghec.2022-11-28.json b/descriptions-next/ghec/ghec.2022-11-28.json index 9e3648759..bc08ee3bb 100644 --- a/descriptions-next/ghec/ghec.2022-11-28.json +++ b/descriptions-next/ghec/ghec.2022-11-28.json @@ -335440,13 +335440,53 @@ "properties": { "message": { "type": "string" + }, + "reassigned_resources": { + "type": [ + "array", + "null" + ], + "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-next/ghec/ghec.2022-11-28.yaml b/descriptions-next/ghec/ghec.2022-11-28.yaml index e58c8281e..4d6638893 100644 --- a/descriptions-next/ghec/ghec.2022-11-28.yaml +++ b/descriptions-next/ghec/ghec.2022-11-28.yaml @@ -250522,10 +250522,36 @@ components: properties: message: type: string + reassigned_resources: + type: + - array + - 'null' + 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-next/ghec/ghec.json b/descriptions-next/ghec/ghec.json index 9e3648759..bc08ee3bb 100644 --- a/descriptions-next/ghec/ghec.json +++ b/descriptions-next/ghec/ghec.json @@ -335440,13 +335440,53 @@ "properties": { "message": { "type": "string" + }, + "reassigned_resources": { + "type": [ + "array", + "null" + ], + "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-next/ghec/ghec.yaml b/descriptions-next/ghec/ghec.yaml index e58c8281e..4d6638893 100644 --- a/descriptions-next/ghec/ghec.yaml +++ b/descriptions-next/ghec/ghec.yaml @@ -250522,10 +250522,36 @@ components: properties: message: type: string + reassigned_resources: + type: + - array + - 'null' + 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: