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

Restore improvement: transfers swagger #4063

Merged
merged 3 commits into from
Oct 8, 2024
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
Prev Previous commit
feat(swagger): agent, add /rclone/operations/set-transfers endpoint
This endpoint will be used to control the amount of transfers during backup/restore.
  • Loading branch information
Michal-Leszczynski committed Oct 8, 2024
commit 73472fb48815392977c4701c430f63c83f8ff7ae
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
Loading