Compare commits

..

2 Commits

Author SHA1 Message Date
833722eb08 v1.12.12 2026-06-11 16:57:36 +03:00
dayterr
ee35db8ec6 v1.12.11
v1.12.11
2026-03-20 17:28:03 +03:00
3 changed files with 12 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
## Version 1.12.10
## Version 1.12.12
Методы `Audits` в cloudapi/compute, cloudbroker/compute, cloudapi/account, cloudbroker/account, cloudapi/vins, cloudbroker/vins, cloudapi/rg и cloudbroker/rg стали deprecated и в следующих версиях будут удалены, вместо них необходимо использовать метод `List` в cloudapi/audit и cloudbroker/audit с соответствующими фильтрами
Метод `ListStacks` в cloudbroker/image стал deprecated и в следующих версиях будет удалён
@@ -6,16 +6,9 @@
Все методы группы `.SDN()` находятся в альфа-версии.
### Добавлено
### Исправлено
#### ClientInterface
| Идентификатор<br>задачи | Описание |
| --- | ---|
| BGOS-673 | Добавлен mock для интерфейса ClientInterface с примерами |
### Удалено
#### logical ports
#### vfpool
| Идентификатор<br>задачи | Описание |
| --- | --- |
| BGOS-668 | Поля `LogicalPortID` и `VersionID` в структуре запроса `CreateRequest` |
| BGOS-900 | Тип поля `Config` в структуре запроса `wrapperUpdateRequest` с `[]string` на `string` в cloudbroker/vfpool |

View File

@@ -69,7 +69,7 @@ type ItemResourceConsumption struct {
ResourceLimits ResourceLimits `json:"resourceLimits"`
// Resource group ID
RGID uint64 `json:"rgid"`
RGID uint64 `json:"id"`
}
type ListResourceConsumption struct {

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])
if err != nil {
return false, err
}
config = append(config, string(b))
b, err := json.Marshal(req.Config)
if err != nil {
return false, err
}
} else {
config = []string{}
config = string(b)
}
reqWrapped := wrapperUpdateRequest{