Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fleet] Update openapi spec for Fleet upgrades #132800

Merged
merged 2 commits into from
May 24, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions x-pack/plugins/fleet/common/openapi/bundled.json
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,65 @@
}
}
},
"/agents/current_upgrades": {
"get": {
"summary": "Agents - Current Bulk Upgrades",
"tags": [],
"responses": {
"200": {
"description": "OK",
"content": {
"content": null,
"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": [
{
Expand Down Expand Up @@ -3795,6 +3854,9 @@
"rollout_duration_seconds": {
"type": "number"
},
"start_time": {
"type": "string"
},
"agents": {
"oneOf": [
{
Expand Down
42 changes: 42 additions & 0 deletions x-pack/plugins/fleet/common/openapi/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,46 @@ 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:
content: null
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:
Expand Down Expand Up @@ -2391,6 +2431,8 @@ components:
type: string
rollout_duration_seconds:
type: number
start_time:
type: string
agents:
oneOf:
- type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ properties:
type: string
rollout_duration_seconds:
type: number
start_time:
type: string
agents:
oneOf:
- type: array
Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugins/fleet/common/openapi/entrypoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
get:
summary: Agents - Current Bulk Upgrades
tags: []
responses:
'200':
description: OK
content:
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