v16.4.0
This commit is contained in:
dayterr committed 2026-09-18 16:56:47 +03:00
1 parent 4c05d94552
commit 2c7f0d29df
159 files changed
+2249 -216

No files matched your search

+3 -3
View File
@@ -22,7 +22,7 @@ type MigrateRequest struct {
type AsyncWrapperMigrateRequest struct {
MigrateRequest
SyncMode bool `url:"sync"`
AsyncMode bool `url:"async_mode"`
}
// Migrate migrates compute to another node
@@ -34,7 +34,7 @@ func (c Compute) Migrate(ctx context.Context, req MigrateRequest) (bool, error)
url := "/cloudbroker/compute/migrate"
syncReq := AsyncWrapperMigrateRequest{MigrateRequest: req, SyncMode: true}
syncReq := AsyncWrapperMigrateRequest{MigrateRequest: req, AsyncMode: false}
res, err := c.client.DecortApiCall(ctx, http.MethodPost, url, syncReq)
if err != nil {
@@ -58,7 +58,7 @@ func (c Compute) AsyncMigrate(ctx context.Context, req MigrateRequest) (string,
url := "/cloudbroker/compute/migrate"
asyncReq := AsyncWrapperMigrateRequest{MigrateRequest: req, SyncMode: false}
asyncReq := AsyncWrapperMigrateRequest{MigrateRequest: req, AsyncMode: true}
res, err := c.client.DecortApiCall(ctx, http.MethodPost, url, asyncReq)
if err != nil {