v1.12.2
This commit is contained in:
@@ -25,7 +25,7 @@ type MigrateRequest struct {
|
||||
Force bool `url:"force,omitempty" json:"force,omitempty"`
|
||||
}
|
||||
|
||||
type asyncWrapperMigrateRequest struct {
|
||||
type AsyncWrapperMigrateRequest struct {
|
||||
MigrateRequest
|
||||
SyncMode bool `url:"sync"`
|
||||
}
|
||||
@@ -39,7 +39,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, SyncMode: true}
|
||||
|
||||
res, err := c.client.DecortApiCall(ctx, http.MethodPost, url, syncReq)
|
||||
if err != nil {
|
||||
@@ -63,7 +63,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, SyncMode: false}
|
||||
|
||||
res, err := c.client.DecortApiCall(ctx, http.MethodPost, url, asyncReq)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user