This commit is contained in:
dayterr
2026-02-20 17:30:02 +03:00
parent 274b349012
commit 2ded555d47
1203 changed files with 1609 additions and 1361 deletions

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// ChangeDiskStoragePolicyRequest struct to change storage policy for disk

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// CreateRequest struct to create disk

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// DeleteRequest to delete disk

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// DisksDeleteRequest struct for multiple disks

View File

@@ -2,7 +2,7 @@
package disks
import (
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/interfaces"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/interfaces"
)
// Structure for creating request to disks

View File

@@ -4,9 +4,9 @@ import (
"context"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/interfaces"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/pkg/cloudapi/k8s"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/pkg/cloudapi/lb"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/interfaces"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/pkg/cloudapi/k8s"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/pkg/cloudapi/lb"
)
// FilterByID returns ListDisks with specified ID.

View File

@@ -360,7 +360,6 @@ func TestListSearchDisks_SortByCreatedTime(t *testing.T) {
var unattachedDisks = ListDisksUnattached{
Data: []ItemDiskUnattached{
{
CKey: "",
Meta: []interface{}{
"cloudbroker",
"disk",
@@ -412,7 +411,6 @@ var unattachedDisks = ListDisksUnattached{
VMID: 0,
},
{
CKey: "",
Meta: []interface{}{
"cloudbroker",
"disk",

View File

@@ -6,7 +6,7 @@ import (
"strconv"
"strings"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// FromPlatformDiskRequest struct to create template from platform disk

View File

@@ -5,7 +5,7 @@ import (
"encoding/json"
"net/http"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// GetRequest struct to get information about disk

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// LimitIORequest struct for limit IO

View File

@@ -5,7 +5,7 @@ import (
"encoding/json"
"net/http"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// ListRequest struct to get list of disks

View File

@@ -5,7 +5,7 @@ import (
"encoding/json"
"net/http"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// ListDeletedRequest struct to get list of deleted disks

View File

@@ -5,7 +5,7 @@ import (
"encoding/json"
"net/http"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// ListTypesRequest struct to get list types of disks

View File

@@ -5,7 +5,7 @@ import (
"encoding/json"
"net/http"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// ListUnattachedRequest struct to get list of unattached disk

View File

@@ -14,6 +14,9 @@ type ItemDisk struct {
// BLK Discard
BLKDiscard bool `json:"blkdiscard"`
// Block size of disk
BlockSize string `json:"block_size"`
// Computes
Computes map[string]string `json:"computes"`
@@ -163,6 +166,9 @@ type ItemDiskUnattached struct {
// BLK Discard
BLKDiscard bool `json:"blkdiscard"`
// Block size of disk
BlockSize string `json:"block_size"`
// Boot Partition
BootPartition uint64 `json:"bootPartition"`
@@ -387,6 +393,9 @@ type RecordDisk struct {
// BLK Discard
BLKDiscard bool `json:"blkdiscard"`
// Block size of disk
BlockSize string `json:"block_size"`
// Computes
Computes map[string]string `json:"computes"`

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// RenameRequest struct to rename disk

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// ReplicateRequest struct to create an empty disk in chosen SEP and pool combination.

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// ReplicationResume struct to resume suspended replication

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// ReplicationReverseRequest struct to change role between disks replications

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// ReplicationStartRequest struct to starts replication between two chosen disks

View File

@@ -4,7 +4,7 @@ import (
"context"
"net/http"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// ReplicationStatusRequest struct to get replication status

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// ReplicationStopRequest struct to remove replication between disks completely

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// ReplicationSuspendRequest struct to pause replication with possibility to resume from pause moment

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// ResizeRequest struct to resize disk

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// RestoreRequest struct to restore a deleted unattached disk

View File

@@ -3,7 +3,7 @@ package disks
import (
"encoding/json"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/serialization"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/serialization"
)
// Serialize returns JSON-serialized []byte. Used as a wrapper over json.Marshal and json.MarshalIndent functions.

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// ShareRequest struct to share disk data

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// SnapshotDeleteRequest struct to delete snapshot

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// SnapshotRollbackRequest struct to rollback snapshot

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// UnshareRequest struct to unshare data disk