v1.6.7
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
"repository.basistech.ru/BASIS/decort-golang-sdk/internal/validators"
|
||||
)
|
||||
|
||||
// Request struct for migrate VNF
|
||||
// DeviceMigrateRequest struct for migrate VNF
|
||||
type DeviceMigrateRequest struct {
|
||||
// ID of external network
|
||||
// Required: true
|
||||
@@ -18,13 +18,11 @@ type DeviceMigrateRequest struct {
|
||||
StackID uint64 `url:"stackId" json:"stackId" validate:"required"`
|
||||
}
|
||||
|
||||
// DeviceMigrate migrate external network VNF device
|
||||
// DeviceMigrate migrates external network VNF device
|
||||
func (e ExtNet) DeviceMigrate(ctx context.Context, req DeviceMigrateRequest) (bool, error) {
|
||||
err := validators.ValidateRequest(req)
|
||||
if err != nil {
|
||||
for _, validationError := range validators.GetErrors(err) {
|
||||
return false, validators.ValidationError(validationError)
|
||||
}
|
||||
return false, validators.ValidationErrors(validators.GetErrors(err))
|
||||
}
|
||||
|
||||
url := "/cloudbroker/extnet/deviceMigrate"
|
||||
|
||||
Reference in New Issue
Block a user