This commit is contained in:
dayterr
2026-05-29 17:54:28 +03:00
parent 8f8a81eea4
commit 3e2edf53a5
4 changed files with 20 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
## Version 14.10.0
## Version 14.11.0
Методы `Audits` в cloudapi/compute, cloudbroker/compute, cloudapi/account, cloudbroker/account, cloudapi/vins, cloudbroker/vins, cloudapi/rg и cloudbroker/rg стали deprecated и в следующих версиях будут удалены, вместо них необходимо использовать метод `List` в cloudapi/audit и cloudbroker/audit с соответствующими фильтрами
Методы `AccessGrant`, `AccessGrantToPool`, `AccessRevoke`, `AccessRevokeToPool` в cloudbroker/sep стали deprecated и в следующих версиях будут удалены
@@ -7,9 +7,16 @@
Все методы группы `.SDN()` находятся в альфа-версии.
### Удалено
### Изменено
#### resource_optimizer
#### compute
| Идентификатор<br>задачи | Описание |
| --- | --- |
| BGOS-855 | Группа методов `resource_optimizer` |
| BGOS-874 | Поле `StoragePolicyID` с обязательного на опциональное в структуре запроса `RedeployRequest` в cloudapi/compute и cloudbroker/compute |
### Исправлено
#### vfpool
| Идентификатор<br>задачи | Описание |
| --- | --- |
| BGOS-871 | Тип поля `Config` в структуре запроса `wrapperUpdateRequest` с `[]string` на `string` в cloudbroker/vfpool |

View File

@@ -15,7 +15,7 @@ type RedeployRequest struct {
ComputeID uint64 `url:"computeId" json:"computeId" validate:"required"`
// Storage policy id of compute. The rules of the specified storage policy will be used.
// Required: true
// Required: false
StoragePolicyID uint64 `url:"storage_policy_id,omitempty" json:"storage_policy_id,omitempty"`
// ID of the new OS image, if image change is required

View File

@@ -23,7 +23,7 @@ type RedeployRequest struct {
OSVersion string `url:"os_version,omitempty" json:"os_version,omitempty"`
// Storage policy id of compute. The rules of the specified storage policy will be used.
// Required: true
// Required: false
StoragePolicyID uint64 `url:"storage_policy_id,omitempty" json:"storage_policy_id,omitempty"`
// New size for the boot disk in GB, if boot disk size change is required

View File

@@ -38,7 +38,7 @@ type UpdateRequest struct {
type wrapperUpdateRequest struct {
UpdateRequest
Config []string `url:"config,omitempty"`
Config string `url:"config,omitempty"`
}
// Update updates vfpool device
@@ -48,21 +48,15 @@ func (v VFPool) Update(ctx context.Context, req UpdateRequest) (bool, error) {
return false, validators.ValidationErrors(validators.GetErrors(err))
}
var config []string
var config string
if len(req.Config) != 0 {
config = make([]string, 0, len(req.Config))
for c := range req.Config {
b, err := json.Marshal(req.Config[c])
b, err := json.Marshal(req.Config)
if err != nil {
return false, err
}
config = append(config, string(b))
}
} else {
config = []string{}
config = string(b)
}
reqWrapped := wrapperUpdateRequest{