diff --git a/CHANGELOG.md b/CHANGELOG.md index e98da72..c745b8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,18 +1,14 @@ -## Version 1.9.1 +## Version 1.9.2 -### Исправлено +### Добавлено -#### flipgroup +#### kvmvm | Идентификатор
задачи | Описание | | --- | --- | -| BGOS-194 | Изменен тип поля `ClientIDs` c []string на []uint64 в структуре `ListRequest` в cloudapi/flipgroup | +| BGOS-196 | Опциональное поле `MTU` в структуре `CreateRequest/Interface` в cloudapi/kvmvm и cloudbroker/kvmvm | -#### k8s -| Идентификатор
задачи | Описание | -| --- | --- | -| BGOS-193 | Изменен тип возвращаемых данных метода `WorkersGroupAdd` c uint64, error на string, error в cloudapi/k8s | +### Удалено -#### lb | Идентификатор
задачи | Описание | | --- | --- | -| BGOS-194 | Исправлена валидация полей `ExtNetID` и `VINSID` в структурах `CreateRequest` в cloudapi/lb и cloudbroker/lb | \ No newline at end of file +| BGOS-197 | Readme-файл `README_EN.md` | \ No newline at end of file diff --git a/README_EN.md b/README_EN.md deleted file mode 100644 index 5189b0c..0000000 --- a/README_EN.md +++ /dev/null @@ -1,62 +0,0 @@ -# Decort SDK - -Decort SDK is a library, written in GO (Golang) for interact with the **DECORT** API. -The library contents structures and methods for requesting to an user (cloudapi) and admin (cloudbroker) groups of API. -Also the library have structures for responses. - -## Contents - -- [Install](#install) -- [API List](#api-list) -- [Examples](#examples) -- [Examples2](#examples2) - -## Install - -```bash -go get -u repository.basistech.ru/BASIS/decort-golang-sdk -``` - -## API List - -## Examples - -```go -package main - -import ( - "context" - "fmt" - "log" - - "repository.basistech.ru/BASIS/decort-golang-sdk/config" - "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/kvmx86" -) - -func main() { - cfg := config.Config{ - AppID: "", - AppSecret: "", - SSOURL: "https://sso.digitalenergy.online", - DecortURL: "https://mr4.digitalenergy.online", - Retries: 5, - } - client := decort.New(cfg) - req := kvmx86.CreateRequest{ - RGID: 123, - Name: "compute", - CPU: 4, - RAM: 4096, - ImageID: 321, - } - - res, err := client.KVMX86().Create(context.Background(), req) - if err != nil { - log.Fatal(err) - } - - fmt.Println(res) -} -``` - -## Examples2 diff --git a/pkg/cloudapi/kvmx86/create.go b/pkg/cloudapi/kvmx86/create.go index df54d50..2aa948c 100644 --- a/pkg/cloudapi/kvmx86/create.go +++ b/pkg/cloudapi/kvmx86/create.go @@ -26,6 +26,11 @@ type Interface struct { // IP address to assign to this VM when connecting to the specified network // Required: false IPAddr string `url:"ipAddr,omitempty" json:"ipAddr,omitempty"` + + // Maximum transmission unit, must be 1-9216 + // Used only to DPDK net type + // Required: false + MTU uint64 `url:"mtu,omitempty" json:"mtu,omitempty" validate:"omitempty,mtu"` } // DataDisk detailed struct for DataDisks field in CreateRequest and CreateBlankRequest diff --git a/pkg/cloudbroker/kvmx86/create.go b/pkg/cloudbroker/kvmx86/create.go index add6a53..77590f6 100644 --- a/pkg/cloudbroker/kvmx86/create.go +++ b/pkg/cloudbroker/kvmx86/create.go @@ -26,6 +26,11 @@ type Interface struct { // IP address to assign to this VM when connecting to the specified network // Required: false IPAddr string `url:"ipAddr,omitempty" json:"ipAddr,omitempty"` + + // Maximum transmission unit, must be 1-9216 + // Used only to DPDK net type + // Required: false + MTU uint64 `url:"mtu,omitempty" json:"mtu,omitempty" validate:"omitempty,mtu"` } // DataDisk detailed struct for DataDisks field in CreateRequest, CreateBlankRequest and MassCreateRequest