This commit is contained in:
dayterr
2026-02-06 17:14:17 +03:00
parent c17b6f2336
commit d149ba19fd
16 changed files with 69 additions and 53 deletions

View File

@@ -1,4 +1,4 @@
## Version 1.13.6 ## Version 1.13.7
Методы `Audits` в cloudapi/compute, cloudbroker/compute, cloudapi/account, cloudbroker/account, cloudapi/vins, cloudbroker/vins, cloudapi/rg и cloudbroker/rg стали deprecated и в следующих версиях будут удалены, вместо них необходимо использовать метод `List` в cloudapi/audit и cloudbroker/audit с соответствующими фильтрами Методы `Audits` в cloudapi/compute, cloudbroker/compute, cloudapi/account, cloudbroker/account, cloudapi/vins, cloudbroker/vins, cloudapi/rg и cloudbroker/rg стали deprecated и в следующих версиях будут удалены, вместо них необходимо использовать метод `List` в cloudapi/audit и cloudbroker/audit с соответствующими фильтрами
Метод `ListNodes` в cloudbroker/image стал deprecated и в следующих версиях будет удалён Метод `ListNodes` в cloudbroker/image стал deprecated и в следующих версиях будет удалён
@@ -13,46 +13,41 @@
#### compute #### compute
| Идентификатор<br>задачи | Описание | | Идентификатор<br>задачи | Описание |
| --- | --- | | --- | --- |
| BGOS-751 | Опциональные поля `SDNSegmentID`, `SDNObjectGroupID`, `SDNLogicalPortDisplayName`, `SDNLogicalPortDescription` в структуры запроса в `Interface` в cloudapi/compute и в `Interface`, `InterfaceMassCreate` в cloudbroker/compute | | BGOS-757 | Опциональное поле `BLKDiscard` в структуру запроса `DiskAddRequest` в cloudbroker/compute |
| BGOS-752 | Опциональные поля `SDNSegmentID`, `SDNObjectGroupID`, `SDNLogicalPortDisplayName`, `SDNLogicalPortDescription` в структуру запроса `NetAttachRequest` в cloudapi/compute и в cloudbroker/compute | | BGOS-757 | Вычисляемое поле `BLKDiscard` в структуру ответа `ItemComputeDisk` в cloudapi/compute и в структуру ответа в `ItemDisk` в cloudbroker/compute |
#### disks #### disks
| Идентификатор<br>задачи | Описание | | Идентификатор<br>задачи | Описание |
| --- | --- | | --- | --- |
| BGOS-735 | Вычисляемое поле `Cache` в структуры ответа `ItemDiskUnattached` в cloudapi/disks и в cloudbroker/disks | | BGOS-756 | Опциональное поле `BLKDiscard` в структуры запроса `CreateRequest` и `UpdateRequest` в cloudbroker/disks |
| BGOS-756 | Поле `BLKDiscard` в структуры ответа `RecordDisk`, `ItemDisk` и `ItemDiskUnattached` в cloudapi/disks и в структуру ответа `InfoDisk` в cloudbroker/disks |
#### node #### kvmx86
| Идентификатор<br>задачи | Описание | | Идентификатор<br>задачи | Описание |
| --- | --- | | --- | --- |
| BGOS-738 | Структура запроса `AutoStartRequest`, метод `AutoStart` в cloudbroker/node | | BGOS-760 | Опциональное поле `Cache` в структуру запроса `DataDisk` в cloudbroker/kvmx86 |
| BGOS-738 | Опциональное поле `AutoStart` в структуру запроса `MaintenanceRequest` в cloudbroker/node | | BGOS-757 | Опциональное поле `BootDiskBLKDiscard` в структуры запроса `CreateBlankRequest`, `CreateRequest` и `MassCreateRequest` в cloudbroker/kvmx86 |
| BGOS-738 | Вычисляемые поля `AutoStart`, `AutoStartCount` в структуры ответов `ItemNode` и `RecordNode` в cloudbroker/node |
| BGOS-746 | Вычисляемое поле `MemAllocationRatio` в структуру ответа `RecordNode` в cloudbroker/node |
#### zone
| Идентификатор<br>задачи | Описание |
| --- | --- |
| BGOS-737 | Опциональное поле `AutoStart` в структуру запроса `UpdateRequest` в cloudbroker/zone |
| BGOS-737 | Вычисляемое поле `AutoStart` в структуры ответа `RecordZone` в cloudapi/zone и в cloudbroker/zone |
| BGOS-748 | Опциональное поле `AutoStart` в структуру запроса `CreateRequest` в cloudbroker/zone |
| BGOS-743 | Структура запроса `NodeAutoStartRequest`, метод `NodeAutoStart` в cloudbroker/zone |
### Изменено
#### sep
| Идентификатор<br>задачи | Описание |
| --- | --- |
| BGOS-740 | Тип поля `Force` с обязательного на опциональный в структуре запроса `DelConsumerNodesRequest` в cloudbroker/sep |
### Удалено ### Удалено
#### bservice #### compute
| Идентификатор<br>задачи | Описание | | Идентификатор<br>задачи | Описание |
| --- | --- | | --- | --- |
| BGOS-739 | Обязательное поле `Driver` в структурах запроса `GroupAddRequest` в cloudapi/bservice и в cloudbroker/bservice | | BGOS-755 | Опциональное поле `Cache` из структуры запроса `DiskAddRequest` в cloudapi/compute |
#### flipgroup #### disks
| Идентификатор<br>задачи | Описание | | Идентификатор<br>задачи | Описание |
| --- | --- | | --- | --- |
| BGOS-742 | Опциональное поле `RGID` из структуры запроса `ListRequest` в cloudapi/flipgroup и в cloudbroker/flipgroup | | BGOS-755 | Опциональное поле `Cache` из структуры запроса `CreateRequest` в cloudapi/disks |
| BGOS-742 | Вычисляемые поля `RGName` и `RGID` из структуры ответа `RecordFLIPGroup` в cloudapi/flipgroup и в cloudbroker/flipgroup | | BGOS-761 | Вычисляемое поле `CKey` из структуры ответа `ItemDiskUnattached` в cloudapi/disks и из структуры ответа `ItemUnattachedDisk` в cloudbroker/disks |
#### image
| Идентификатор<br>задачи | Описание |
| --- | --- |
| BGOS-758 | Поле `CKey` из структуры ответа `RecordImage` в cloudapi/image |
#### kvmx86
| Идентификатор<br>задачи | Описание |
| --- | --- |
| BGOS-755 | Опциональное поле `BootDiskCache` из структур запроса `CreateRequest` и `CreateBlankRequest` в cloudapi/kvmx86 |

View File

@@ -58,10 +58,6 @@ type DiskAddRequest struct {
// Desired bus number (hex string, e.g. "0x03") // Desired bus number (hex string, e.g. "0x03")
// Required: false // Required: false
BusNumber string `url:"bus_number,omitempty" json:"bus_number,omitempty"` BusNumber string `url:"bus_number,omitempty" json:"bus_number,omitempty"`
// Disk cache mode
// Required: false
Cache string `url:"cache,omitempty" json:"cache,omitempty"`
} }
// DiskAdd creates new disk and attach to compute // DiskAdd creates new disk and attach to compute

View File

@@ -789,6 +789,9 @@ type ItemComputeDisk struct {
// Account ID // Account ID
AccountID uint64 `json:"accountId"` AccountID uint64 `json:"accountId"`
// BLK Discard
BLKDiscard bool `json:"blkdiscard"`
// Boot partition // Boot partition
BootPartition uint64 `json:"bootPartition"` BootPartition uint64 `json:"bootPartition"`

View File

@@ -37,10 +37,6 @@ type CreateRequest struct {
// Pool name to create disk // Pool name to create disk
// Required: false // Required: false
Pool string `url:"pool,omitempty" json:"pool,omitempty"` Pool string `url:"pool,omitempty" json:"pool,omitempty"`
// Cache mode of disk
// Required: false
Cache string `url:"cache,omitempty" json:"cache,omitempty"`
} }
// Create creates a disk // Create creates a disk

View File

@@ -11,6 +11,9 @@ type ItemDisk struct {
// Account name // Account name
AccountName string `json:"accountName"` AccountName string `json:"accountName"`
// BLK Discard
BLKDiscard bool `json:"blkdiscard"`
// Computes // Computes
Computes map[string]string `json:"computes"` Computes map[string]string `json:"computes"`
@@ -145,9 +148,6 @@ type ItemDisk struct {
} }
type ItemDiskUnattached struct { type ItemDiskUnattached struct {
// CKey
CKey string `json:"_ckey"`
// Meta // Meta
Meta []interface{} `json:"_meta"` Meta []interface{} `json:"_meta"`
@@ -160,6 +160,9 @@ type ItemDiskUnattached struct {
// Access Control List // Access Control List
ACL map[string]interface{} `json:"acl"` ACL map[string]interface{} `json:"acl"`
// BLK Discard
BLKDiscard bool `json:"blkdiscard"`
// Boot Partition // Boot Partition
BootPartition uint64 `json:"bootPartition"` BootPartition uint64 `json:"bootPartition"`
@@ -381,6 +384,9 @@ type RecordDisk struct {
// Account name // Account name
AccountName string `json:"accountName"` AccountName string `json:"accountName"`
// BLK Discard
BLKDiscard bool `json:"blkdiscard"`
// Computes // Computes
Computes map[string]string `json:"computes"` Computes map[string]string `json:"computes"`

View File

@@ -92,9 +92,6 @@ type RecordImage struct {
// UNCPathj // UNCPathj
UNCPath string `json:"UNCPath"` UNCPath string `json:"UNCPath"`
// CKey
CKey string `json:"_ckey"`
// Account ID // Account ID
AccountID uint64 `json:"accountId"` AccountID uint64 `json:"accountId"`

View File

@@ -225,10 +225,6 @@ type CreateRequest struct {
// Zone ID // Zone ID
// Required: false // Required: false
ZoneID uint64 `url:"zoneId,omitempty" json:"zoneId,omitempty"` ZoneID uint64 `url:"zoneId,omitempty" json:"zoneId,omitempty"`
// Cache mode for boot disk
// Required: false
BootDiskCache string `url:"boot_disk_cache,omitempty" json:"boot_disk_cache,omitempty"`
} }
// GetRAM returns RAM field values // GetRAM returns RAM field values

View File

@@ -115,10 +115,6 @@ type CreateBlankRequest struct {
// The OS version that will be installed on the virtual machine // The OS version that will be installed on the virtual machine
// Required: false // Required: false
OSVersion string `url:"os_version,omitempty" json:"os_version,omitempty"` OSVersion string `url:"os_version,omitempty" json:"os_version,omitempty"`
// Cache mode for boot disk
// Required: false
BootDiskCache string `url:"boot_disk_cache,omitempty" json:"boot_disk_cache,omitempty"`
} }
// GetRAM returns RAM field values // GetRAM returns RAM field values

View File

@@ -62,6 +62,10 @@ type DiskAddRequest struct {
// Disk cache mode // Disk cache mode
// Required: false // Required: false
Cache string `url:"cache,omitempty" json:"cache,omitempty"` Cache string `url:"cache,omitempty" json:"cache,omitempty"`
// BLK Discard
// Required: false
BLKDiscard interface{} `url:"blkdiscard" json:"blkdiscard" validate:"omitempty,isBool"`
} }
// DiskAdd creates new disk and attach to compute // DiskAdd creates new disk and attach to compute

View File

@@ -391,6 +391,9 @@ type ItemDisk struct {
// Access Control List // Access Control List
ACL ItemACL `json:"acl"` ACL ItemACL `json:"acl"`
// BLK Discard
BLKDiscard bool `json:"blkdiscard"`
// Boot partition // Boot partition
BootPartition uint64 `json:"bootPartition"` BootPartition uint64 `json:"bootPartition"`

View File

@@ -41,6 +41,10 @@ type CreateRequest struct {
// Cache mode of disk // Cache mode of disk
// Required: false // Required: false
Cache string `url:"cache,omitempty" json:"cache,omitempty"` Cache string `url:"cache,omitempty" json:"cache,omitempty"`
// BLK Discard
// Required: false
BLKDiscard interface{} `url:"blkdiscard,omitempty" json:"blkdiscard,omitempty" validate:"omitempty,isBool"`
} }
// Create creates a disk // Create creates a disk

View File

@@ -53,6 +53,9 @@ type InfoDisk struct {
// Access Control Control // Access Control Control
ACL map[string]interface{} `json:"acl"` ACL map[string]interface{} `json:"acl"`
// BLK Discard
BLKDiscard bool `json:"blkdiscard"`
// Boot partition // Boot partition
BootPartition uint64 `json:"bootPartition"` BootPartition uint64 `json:"bootPartition"`
@@ -264,9 +267,6 @@ type SearchListDisks []ItemDisk
// Main information about unattached disk // Main information about unattached disk
type ItemUnattachedDisk struct { type ItemUnattachedDisk struct {
// CKey
CKey string `json:"_ckey"`
// Meta // Meta
Meta []interface{} `json:"_meta"` Meta []interface{} `json:"_meta"`

View File

@@ -17,6 +17,10 @@ type UpdateRequest struct {
// Cache mode of disk // Cache mode of disk
// Required: false // Required: false
Cache string `url:"cache,omitempty" json:"cache,omitempty"` Cache string `url:"cache,omitempty" json:"cache,omitempty"`
// BLK Discard
// Required: false
BLKDiscard interface{} `url:"blkdiscard,omitempty" json:"blkdiscard,omitempty" validate:"omitempty,isBool"`
} }
// Update updates disk // Update updates disk

View File

@@ -106,6 +106,10 @@ type DataDisk struct {
// Specify image id for create disk from template // Specify image id for create disk from template
// Required: false // Required: false
ImageID uint64 `url:"imageId,omitempty" json:"imageId,omitempty"` ImageID uint64 `url:"imageId,omitempty" json:"imageId,omitempty"`
// Cache mode for disk
// Required: false
Cache string `url:"cache,omitempty" json:"cache,omitempty"`
} }
// CreateRequest struct to create KVM x86 VM // CreateRequest struct to create KVM x86 VM
@@ -231,6 +235,10 @@ type CreateRequest struct {
// Cache mode for boot disk // Cache mode for boot disk
// Required: false // Required: false
BootDiskCache string `url:"boot_disk_cache,omitempty" json:"boot_disk_cache,omitempty"` BootDiskCache string `url:"boot_disk_cache,omitempty" json:"boot_disk_cache,omitempty"`
// Boot Disk BLK Discard
// Required: false
BootDiskBLKDiscard interface{} `url:"boot_disk_blkdiscard,omitempty" json:"boot_disk_blkdiscard,omitempty" validate:"omitempty,isBool"`
} }
// GetRAM returns RAM field values // GetRAM returns RAM field values

View File

@@ -119,6 +119,10 @@ type CreateBlankRequest struct {
// Cache mode for boot disk // Cache mode for boot disk
// Required: false // Required: false
BootDiskCache string `url:"boot_disk_cache,omitempty" json:"boot_disk_cache,omitempty"` BootDiskCache string `url:"boot_disk_cache,omitempty" json:"boot_disk_cache,omitempty"`
// Boot Disk BLK Discard
// Required: false
BootDiskBLKDiscard interface{} `url:"boot_disk_blkdiscard" json:"boot_disk_blkdiscard" validate:"omitempty,isBool"`
} }
// GetRAM returns RAM field values // GetRAM returns RAM field values

View File

@@ -156,6 +156,10 @@ type MassCreateRequest struct {
// Cache mode for boot disk // Cache mode for boot disk
// Required: false // Required: false
BootDiskCache string `url:"boot_disk_cache,omitempty" json:"boot_disk_cache,omitempty"` BootDiskCache string `url:"boot_disk_cache,omitempty" json:"boot_disk_cache,omitempty"`
// Boot Disk BLK Discard
// Required: false
BootDiskBLKDiscard interface{} `url:"boot_disk_blkdiscard" json:"boot_disk_blkdiscard" validate:"omitempty,isBool"`
} }
type asyncWrapperMassCreateRequest struct { type asyncWrapperMassCreateRequest struct {