[Fleet] Update openapi spec for Fleet upgrades (#132800)

This commit is contained in:
Nicolas Chaulet 2022-05-24 10:55:46 -04:00 committed by GitHub
parent ad9e558f78
commit c9b1832654
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 144 additions and 0 deletions

View file

@ -1256,6 +1256,64 @@
}
}
},
"/agents/current_upgrades": {
"get": {
"summary": "Agents - Current Bulk Upgrades",
"tags": [],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"actionId": {
"type": "string"
},
"complete": {
"type": "boolean"
},
"nbAgents": {
"type": "number"
},
"nbAgentsAck": {
"type": "number"
},
"version": {
"type": "string"
},
"startTime": {
"type": "string"
}
},
"required": [
"actionId",
"complete",
"nbAgents",
"nbAgentsAck",
"version",
"startTime"
]
}
}
},
"required": [
"items"
]
}
}
}
}
},
"operationId": "agents-current-upgrades"
}
},
"/agents/{agentId}": {
"parameters": [
{
@ -3795,6 +3853,9 @@
"rollout_duration_seconds": {
"type": "number"
},
"start_time": {
"type": "string"
},
"agents": {
"oneOf": [
{

View file

@ -774,6 +774,45 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/bulk_upgrade_agents'
/agents/current_upgrades:
get:
summary: Agents - Current Bulk Upgrades
tags: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
items:
type: array
items:
type: object
properties:
actionId:
type: string
complete:
type: boolean
nbAgents:
type: number
nbAgentsAck:
type: number
version:
type: string
startTime:
type: string
required:
- actionId
- complete
- nbAgents
- nbAgentsAck
- version
- startTime
required:
- items
operationId: agents-current-upgrades
/agents/{agentId}:
parameters:
- schema:
@ -2391,6 +2430,8 @@ components:
type: string
rollout_duration_seconds:
type: number
start_time:
type: string
agents:
oneOf:
- type: array

View file

@ -7,6 +7,8 @@ properties:
type: string
rollout_duration_seconds:
type: number
start_time:
type: string
agents:
oneOf:
- type: array

View file

@ -55,6 +55,8 @@ paths:
$ref: paths/agents.yaml
/agents/bulk_upgrade:
$ref: paths/agents@bulk_upgrade.yaml
/agents/current_upgrades:
$ref: paths/agents@current_upgrades.yaml
'/agents/{agentId}':
$ref: 'paths/agents@{agent_id}.yaml'
'/agents/{agentId}/actions':

View file

@ -0,0 +1,38 @@
get:
summary: Agents - Current Bulk Upgrades
tags: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
items:
type: array
items:
type: object
properties:
actionId:
type: string
complete:
type: boolean
nbAgents:
type: number
nbAgentsAck:
type: number
version:
type: string
startTime:
type: string
required:
- actionId
- complete
- nbAgents
- nbAgentsAck
- version
- startTime
required:
- items
operationId: agents-current-upgrades