Skip to content

Commit

Permalink
feat(swagger): agent, add /rclone/operations/set-transfers endpoint
Browse files Browse the repository at this point in the history
This endpoint will be used to control the amount of transfers during backup/restore.
  • Loading branch information
Michal-Leszczynski committed Oct 8, 2024
1 parent c8a246f commit 73472fb
Show file tree
Hide file tree
Showing 5 changed files with 403 additions and 2 deletions.
49 changes: 48 additions & 1 deletion v3/swagger/agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"paths": {
"/rclone/core/bwlimit": {
"post": {
"description": "This sets the bandwidth limit to that passed in",
"description": "This sets the bandwidth limit to that passed in. If the rate parameter is not supplied then the bandwidth is queried",
"summary": "Set the bandwidth limit",
"operationId": "CoreBwlimit",
"produces": [
Expand Down Expand Up @@ -54,6 +54,43 @@
"security": []
}
},
"/rclone/core/transfers": {
"post": {
"description": "This sets the default amount of transfers to that passed in. If the transfers parameter is not supplied then the transfers are queried",
"summary": "Set transfers",
"operationId": "CoreTransfers",
"produces": [
"application/json"
],
"parameters": [
{
"in": "body",
"name": "transfers",
"description": "transfers",
"schema": {
"$ref": "#/definitions/Transfers"
}
}
],
"responses": {
"200": {
"description": "transfers",
"schema": {
"$ref": "#/definitions/Transfers"
},
"headers": {}
},
"default": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/ErrorResponse"
},
"headers": {}
}
},
"security": []
}
},
"/rclone/core/stats-reset": {
"post": {
"description": "Resets stats",
Expand Down Expand Up @@ -875,6 +912,16 @@
}
}
},
"Transfers": {
"title": "transfers",
"type": "object",
"properties": {
"transfers": {
"description": "The number of file transfers to run in parallel",
"type": "integer"
}
}
},
"Jobid": {
"type": "object",
"properties": {
Expand Down
139 changes: 139 additions & 0 deletions v3/swagger/gen/agent/client/operations/core_transfers_parameters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

135 changes: 135 additions & 0 deletions v3/swagger/gen/agent/client/operations/core_transfers_responses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 73472fb

Please sign in to comment.