Skip to content

Commit d7387c7

Browse files
localai-botmudler
andauthored
feat(swagger): update swagger (#9962)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
1 parent 63d84a5 commit d7387c7

3 files changed

Lines changed: 109 additions & 0 deletions

File tree

swagger/docs.go

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3236,6 +3236,38 @@ const docTemplate = `{
32363236
}
32373237
}
32383238
},
3239+
"galleryop.NodeProgress": {
3240+
"type": "object",
3241+
"properties": {
3242+
"current": {
3243+
"type": "string"
3244+
},
3245+
"error": {
3246+
"type": "string"
3247+
},
3248+
"file_name": {
3249+
"type": "string"
3250+
},
3251+
"node_id": {
3252+
"type": "string"
3253+
},
3254+
"node_name": {
3255+
"type": "string"
3256+
},
3257+
"percentage": {
3258+
"type": "number"
3259+
},
3260+
"phase": {
3261+
"type": "string"
3262+
},
3263+
"status": {
3264+
"type": "string"
3265+
},
3266+
"total": {
3267+
"type": "string"
3268+
}
3269+
}
3270+
},
32393271
"galleryop.OpStatus": {
32403272
"type": "object",
32413273
"properties": {
@@ -3267,6 +3299,13 @@ const docTemplate = `{
32673299
"message": {
32683300
"type": "string"
32693301
},
3302+
"nodes": {
3303+
"description": "Nodes is the per-node breakdown for a fanned-out backend install.\nPopulated by DistributedBackendManager (per-node terminal status)\nand by the Phase 2 progress bridge (per-byte ticks). The\n/api/operations handler surfaces this so the UI can render an\nexpandable per-node view of an in-flight install.",
3304+
"type": "array",
3305+
"items": {
3306+
"$ref": "#/definitions/galleryop.NodeProgress"
3307+
}
3308+
},
32703309
"processed": {
32713310
"type": "boolean"
32723311
},

swagger/swagger.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3233,6 +3233,38 @@
32333233
}
32343234
}
32353235
},
3236+
"galleryop.NodeProgress": {
3237+
"type": "object",
3238+
"properties": {
3239+
"current": {
3240+
"type": "string"
3241+
},
3242+
"error": {
3243+
"type": "string"
3244+
},
3245+
"file_name": {
3246+
"type": "string"
3247+
},
3248+
"node_id": {
3249+
"type": "string"
3250+
},
3251+
"node_name": {
3252+
"type": "string"
3253+
},
3254+
"percentage": {
3255+
"type": "number"
3256+
},
3257+
"phase": {
3258+
"type": "string"
3259+
},
3260+
"status": {
3261+
"type": "string"
3262+
},
3263+
"total": {
3264+
"type": "string"
3265+
}
3266+
}
3267+
},
32363268
"galleryop.OpStatus": {
32373269
"type": "object",
32383270
"properties": {
@@ -3264,6 +3296,13 @@
32643296
"message": {
32653297
"type": "string"
32663298
},
3299+
"nodes": {
3300+
"description": "Nodes is the per-node breakdown for a fanned-out backend install.\nPopulated by DistributedBackendManager (per-node terminal status)\nand by the Phase 2 progress bridge (per-byte ticks). The\n/api/operations handler surfaces this so the UI can render an\nexpandable per-node view of an in-flight install.",
3301+
"type": "array",
3302+
"items": {
3303+
"$ref": "#/definitions/galleryop.NodeProgress"
3304+
}
3305+
},
32673306
"processed": {
32683307
"type": "boolean"
32693308
},

swagger/swagger.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,27 @@ definitions:
210210
$ref: '#/definitions/gallery.NodeDriftInfo'
211211
type: array
212212
type: object
213+
galleryop.NodeProgress:
214+
properties:
215+
current:
216+
type: string
217+
error:
218+
type: string
219+
file_name:
220+
type: string
221+
node_id:
222+
type: string
223+
node_name:
224+
type: string
225+
percentage:
226+
type: number
227+
phase:
228+
type: string
229+
status:
230+
type: string
231+
total:
232+
type: string
233+
type: object
213234
galleryop.OpStatus:
214235
properties:
215236
cancellable:
@@ -232,6 +253,16 @@ definitions:
232253
type: string
233254
message:
234255
type: string
256+
nodes:
257+
description: |-
258+
Nodes is the per-node breakdown for a fanned-out backend install.
259+
Populated by DistributedBackendManager (per-node terminal status)
260+
and by the Phase 2 progress bridge (per-byte ticks). The
261+
/api/operations handler surfaces this so the UI can render an
262+
expandable per-node view of an in-flight install.
263+
items:
264+
$ref: '#/definitions/galleryop.NodeProgress'
265+
type: array
235266
processed:
236267
type: boolean
237268
progress:

0 commit comments

Comments
 (0)