2 Commits
Author SHA1 Message Date
src 2ba8f61cb5 v1.0.9 2026-10-30 16:45:47 +03:00
src 3e25635f9b v1.0.8 2026-10-22 11:21:01 +03:00
12 changed files with 56 additions and 205 deletions

No files matched your search

+8 -19
View File
@@ -1,23 +1,12 @@
## Version 1.0.7
### Добавлено
| Идентификатор задачи | Описание |
|----------------------|------------------------------------------------------------------------|
| COD-63 | Добавлен метод `DeEss.Describe` (`POST /digitalenergy/ess/describe`) |
| COD-63 | Добавлен метод `DeEss.Incidents` (`POST /digitalenergy/ess/incidents`) |
| COD-63 | Добавлен метод `DeEss.Install` (`POST /digitalenergy/ess/install`) |
| COD-63 | Добавлен метод `DeEss.Uninstall` (`POST /digitalenergy/ess/uninstall`) |
## Version 1.0.9
### Изменено
| Идентификатор задачи | Описание |
|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| COD-63 | Изменён метод `DeCluster.Create` (`POST /digitalenergy/cluster/create`): добавлены новые необязательные поля запроса `EssAuthToken` и `InstallEss` |
| COD-63 | Изменён метод `DeCluster.Get` (`POST /digitalenergy/cluster/get`): в ответе добавлены необязательные поля `EssAuthToken` и `InstalledEss` |
| COD-63 | Изменён метод `DeClusterTemplate.Get` (`POST /digitalenergy/clusterTemplate/get`): в ответе добавлены необязательные поля `EssAuthToken` и `InstallEss` |
| COD-63 | Изменён метод `DeClusterTemplate.Update` (`POST /digitalenergy/clusterTemplate/update`): добавлены новые необязательные поля запроса `ExtraCluster.EssAuthToken` и `ExtraCluster.InstallEss` |
| COD-63 | Изменён метод `DeCsidynamix.Install` (`POST /digitalenergy/csidynamix/install`): удалено поле запроса `CsiDriverName` |
| COD-63 | Изменён метод `DeCsidynamix.Reinstall` (`POST /digitalenergy/csidynamix/reinstall`): удалено поле запроса `CsiDriverName` |
| COD-63 | Изменён метод `DxCompute.Get` (`POST /dynamix/compute/get`): в ответе добавлено необязательное поле `FolderID` |
| COD-63 | Изменён метод `DxCompute.List` (`POST /dynamix/compute/list`): в ответе добавлено необязательное поле `FolderID` |
|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| COD-74 | Изменён метод `DxDisks.ListTypes` (`POST /dynamix/disk/listTypes`): в ответе тип поля `Records` изменён с `[]any` на `[]SEPData` |
| COD-74 | Изменён метод `DxExtNet.List` (`POST /dynamix/extnet/list`): в ответе удалено необязательное поле `FreeIPs` |
| COD-74 | Изменён метод `DxK8CI.List` (`POST /dynamix/k8ci/list`): в ответе удалены необязательные поля `CreatedTime`, `Desc`, `LBImageID`, `NetworkPlugins`, `Status` и `Version` |
| COD-74 | Изменён метод `DxRG.List` (`POST /dynamix/rg/list`): в ответе удалены необязательные поля `ACL`, `AccountACL`, `AccountName`, `CPUAllocationParameter`, `CPUAllocationRatio`, `ComputeFeatures`, `CreatedBy`, `CreatedTime`, `DefNetID`, `DefNetType`, `DeletedBy`, `DeletedTime`, `Desc`, `Dirty`, `GID`, `GUID`, `LockStatus`, `Milestones`, `ResourceLimits`, `ResourceTypes`, `SDNAccessGroupID`, `Secret`, `Status`, `StoragePolicyIDs`, `UniqPools`, `UpdatedBy`, `UpdatedTime`, `VMs` и `ViNS` |
| COD-74 | Изменён метод `DxSP.List` (`POST /dynamix/sp/list`): в ответе удалены необязательные поля `Description`, `GUID`, `LimitIOPS`, `Status`, `StoragePolicyID` и `Usage` |
| COD-74 | Изменён метод `DxViNS.List` (`POST /dynamix/vins/list`): в ответе удалены необязательные поля `AccountID`, `AccountName`, `CreatedBy`, `CreatedTime`, `DeletedBy`, `DeletedTime`, `ExternalIP`, `FreeIPs`, `Name`, `RGName`, `UpdatedBy`, `UpdatedTime` и `VXLANID` |
+2
View File
@@ -3,6 +3,8 @@ module repository.basistech.ru/BASIS/de-golang-sdk
go 1.26.0
retract (
v1.0.8 // Pre-release version for DE 1.8.0, doesn't contain some changes
v1.0.7 // Pre-release version for DE 1.8.0, doesn't contain some changes
v1.0.6 // Pre-release version for DE 1.8.0, doesn't contain some changes
v1.0.5 // Pre-release version for DE 1.8.0, doesn't contain some changes
v1.0.4 // Pre-release version for DE 1.8.0, doesn't contain some changes
-5
View File
@@ -125,8 +125,6 @@ type InstallRequest struct {
// Required.
ReleaseNamespace string `json:"releaseNamespace" form:"releaseNamespace"`
// Hostname for custom app
//
// Required.
Hostname string `json:"hostname" form:"hostname"`
// Install timeout in minutes. Max is 60 minutes, min is 5 minutes. If not specified, default timeout of 10 minutes will be used
InstallTimeout int64 `json:"installTimeout" form:"installTimeout"`
@@ -159,9 +157,6 @@ func (a *DeCustomAppService) Install(ctx context.Context, req InstallRequest) (C
if utils.IsRequiredParamMissing(req.ReleaseNamespace) {
missingRequiredParams = append(missingRequiredParams, "releaseNamespace")
}
if utils.IsRequiredParamMissing(req.Hostname) {
missingRequiredParams = append(missingRequiredParams, "hostname")
}
if len(missingRequiredParams) > 0 {
return result, utils.MissingRequiredParamsError(missingRequiredParams)
}
-3
View File
@@ -112,8 +112,6 @@ type InstallRequest struct {
//
// Required.
ClusterID int64 `json:"clusterId" form:"clusterId"`
// hostname for integagent
IntegagentHostname string `json:"integagentHostname" form:"integagentHostname"`
// images apps repository ID. If the ID is zero or the value is empty, the default images apps repository will be used.
AppsRepositoryID int64 `json:"appsRepositoryId" form:"appsRepositoryId"`
// charts repository ID. If the ID is zero or the value is empty, the default charts repository will be used.
@@ -160,7 +158,6 @@ func (a *DeFalcoService) Install(ctx context.Context, req InstallRequest) (Creat
}
utils.ParameterAddToHeaderOrQuery(formParams, "clusterId", req.ClusterID, "", "")
utils.ParameterAddToHeaderOrQuery(formParams, "integagentHostname", req.IntegagentHostname, "", "")
utils.ParameterAddToHeaderOrQuery(formParams, "appsRepositoryId", req.AppsRepositoryID, "", "")
utils.ParameterAddToHeaderOrQuery(formParams, "chartsRepositoryId", req.ChartsRepositoryID, "", "")
utils.ParameterAddToHeaderOrQuery(formParams, "downloadChartAnyway", req.DownloadChartAnyway, "", "")
-3
View File
@@ -116,8 +116,6 @@ type InstallRequest struct {
//
// Required.
Hostname string `json:"hostname" form:"hostname"`
// Hostname for integagent
IntegagentHostname string `json:"integagentHostname" form:"integagentHostname"`
// images apps repository ID. If the ID is zero or the value is empty, the default images apps repository will be used.
AppsRepositoryID int64 `json:"appsRepositoryId" form:"appsRepositoryId"`
// charts repository ID. If the ID is zero or the value is empty, the default charts repository will be used.
@@ -170,7 +168,6 @@ func (a *DeIstioService) Install(ctx context.Context, req InstallRequest) (Creat
utils.ParameterAddToHeaderOrQuery(formParams, "clusterId", req.ClusterID, "", "")
utils.ParameterAddToHeaderOrQuery(formParams, "hostname", req.Hostname, "", "")
utils.ParameterAddToHeaderOrQuery(formParams, "integagentHostname", req.IntegagentHostname, "", "")
utils.ParameterAddToHeaderOrQuery(formParams, "appsRepositoryId", req.AppsRepositoryID, "", "")
utils.ParameterAddToHeaderOrQuery(formParams, "chartsRepositoryId", req.ChartsRepositoryID, "", "")
utils.ParameterAddToHeaderOrQuery(formParams, "workerGroupName", req.WorkerGroupName, "", "")
-3
View File
@@ -112,8 +112,6 @@ type InstallRequest struct {
//
// Required.
ClusterID int64 `json:"clusterId" form:"clusterId"`
// Hostname for integagent
IntegagentHostname string `json:"integagentHostname" form:"integagentHostname"`
// images apps repository ID. If the ID is zero or the value is empty, the default images apps repository will be used.
AppsRepositoryID int64 `json:"appsRepositoryId" form:"appsRepositoryId"`
// charts repository ID. If the ID is zero or the value is empty, the default charts repository will be used.
@@ -162,7 +160,6 @@ func (a *DeOpenELBService) Install(ctx context.Context, req InstallRequest) (Cre
}
utils.ParameterAddToHeaderOrQuery(formParams, "clusterId", req.ClusterID, "", "")
utils.ParameterAddToHeaderOrQuery(formParams, "integagentHostname", req.IntegagentHostname, "", "")
utils.ParameterAddToHeaderOrQuery(formParams, "appsRepositoryId", req.AppsRepositoryID, "", "")
utils.ParameterAddToHeaderOrQuery(formParams, "chartsRepositoryId", req.ChartsRepositoryID, "", "")
utils.ParameterAddToHeaderOrQuery(formParams, "workerGroupName", req.WorkerGroupName, "", "")
+11 -1
View File
@@ -3,7 +3,7 @@
package dx_disks
type ListDiskTypesResult struct {
Records []any `json:"records,omitempty"`
Records []SEPData `json:"records,omitempty"`
}
type ListDiskTypesResultWithError struct {
@@ -12,3 +12,13 @@ type ListDiskTypesResultWithError struct {
Message string `json:"message,omitempty"`
Result ListDiskTypesResult `json:"result,omitempty"`
}
type SEPData struct {
Pools []SEPPool `json:"pools,omitempty"`
SEPID int64 `json:"sepId,omitempty"`
SEPName string `json:"sepName,omitempty"`
}
type SEPPool struct {
Name string `json:"name,omitempty"`
}
+8 -14
View File
@@ -19,19 +19,6 @@ type CloudAPIExtNetExcluded struct {
VMID int64 `json:"vmId,omitempty"`
}
type CloudAPIExtNetItemExtNet struct {
// Free IPs
FreeIPs int64 `json:"freeIps,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// IPCIDR
IPCIDR string `json:"ipcidr,omitempty"`
// Name
Name string `json:"name,omitempty"`
// Status
Status string `json:"status,omitempty"`
}
type CloudAPIExtNetItemReservation struct {
// Account ID
AccountID int64 `json:"account_id,omitempty"`
@@ -148,6 +135,13 @@ type CloudAPIExtNetVNFs struct {
DHCP int64 `json:"dhcp,omitempty"`
}
type ExtNet struct {
ID int64 `json:"id,omitempty"`
IPCIDR string `json:"ipcidr,omitempty"`
Name string `json:"name,omitempty"`
Status string `json:"status,omitempty"`
}
type GetExtNetResult struct {
Record CloudAPIExtNetRecordExtNet `json:"record,omitempty"`
}
@@ -160,7 +154,7 @@ type GetExtNetResultWithError struct {
}
type ListExtNetResult struct {
Records []CloudAPIExtNetItemExtNet `json:"records,omitempty"`
Records []ExtNet `json:"records,omitempty"`
}
type ListExtNetResultWithError struct {
+6 -20
View File
@@ -2,25 +2,6 @@
package dx_k8ci
type CloudAPIK8CIItemK8CI struct {
// Created time
CreatedTime int64 `json:"createdTime,omitempty"`
// Description
Desc string `json:"desc,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// LB image ID
LBImageID int64 `json:"lbImageId,omitempty"`
// Name
Name string `json:"name,omitempty"`
// Network plugins
NetworkPlugins []string `json:"networkPlugins,omitempty"`
// Status
Status string `json:"status,omitempty"`
// Version
Version string `json:"version,omitempty"`
}
type CloudAPIK8CIRecordK8CI struct {
// Description
Desc string `json:"desc,omitempty"`
@@ -45,8 +26,13 @@ type GetK8CIResultWithError struct {
Result GetK8CIResult `json:"result,omitempty"`
}
type K8CI struct {
ID int64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
}
type ListK8CIResult struct {
Records []CloudAPIK8CIItemK8CI `json:"records,omitempty"`
Records []K8CI `json:"records,omitempty"`
}
type ListK8CIResultWithError struct {
+7 -67
View File
@@ -19,72 +19,6 @@ type CloudAPIRGItemACL struct {
UserGroupID string `json:"userGroupId,omitempty"`
}
type CloudAPIRGItemResourceGroup struct {
AccountACL CloudAPIRGItemACL `json:"accountAcl,omitempty"`
// Account ID
AccountID int64 `json:"accountId,omitempty"`
// Account name
AccountName string `json:"accountName,omitempty"`
// Access Control List
ACL []CloudAPIRGItemACL `json:"acl,omitempty"`
// Compute Features
ComputeFeatures []string `json:"computeFeatures,omitempty"`
// CPU allocation parameter
CPUAllocationParameter string `json:"cpu_allocation_parameter,omitempty"`
// CPU allocation ratio
CPUAllocationRatio int64 `json:"cpu_allocation_ratio,omitempty"`
// Created by
CreatedBy string `json:"createdBy,omitempty"`
// Created time
CreatedTime int64 `json:"createdTime,omitempty"`
// DefNetID
DefNetID int64 `json:"def_net_id,omitempty"`
// DefNetType
DefNetType string `json:"def_net_type,omitempty"`
// Deleted by
DeletedBy string `json:"deletedBy,omitempty"`
// Deleted time
DeletedTime int64 `json:"deletedTime,omitempty"`
// Description
Desc string `json:"desc,omitempty"`
// Dirty
Dirty bool `json:"dirty,omitempty"`
// Grid ID
GID int64 `json:"gid,omitempty"`
// GUID
GUID int64 `json:"guid,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// Lock status
LockStatus string `json:"lockStatus,omitempty"`
// Milestones
Milestones int64 `json:"milestones,omitempty"`
// Name
Name string `json:"name,omitempty"`
// Resource limits
ResourceLimits CloudAPIRGResourceLimits `json:"resourceLimits,omitempty"`
// List of resource types
ResourceTypes []string `json:"resourceTypes,omitempty"`
// SDN access group id
SDNAccessGroupID string `json:"sdn_access_group_id,omitempty"`
// Secret
Secret string `json:"secret,omitempty"`
// Status
Status string `json:"status,omitempty"`
// Storage policy ids
StoragePolicyIDs []int64 `json:"storage_policy_ids,omitempty"`
// UniqPools
UniqPools []string `json:"uniqPools,omitempty"`
// Updated by
UpdatedBy string `json:"updatedBy,omitempty"`
// Updated time
UpdatedTime int64 `json:"updatedTime,omitempty"`
// List of VINS IDs
ViNS []int64 `json:"vins,omitempty"`
// List of compute IDs
VMs []int64 `json:"vms,omitempty"`
}
type CloudAPIRGRecordResourceGroup struct {
// Account ID
AccountID int64 `json:"accountId,omitempty"`
@@ -184,7 +118,7 @@ type GetRGResultWithError struct {
}
type ListRGResult struct {
Records []CloudAPIRGItemResourceGroup `json:"records,omitempty"`
Records []ResourceGroup `json:"records,omitempty"`
}
type ListRGResultWithError struct {
@@ -193,3 +127,9 @@ type ListRGResultWithError struct {
Message string `json:"message,omitempty"`
Result ListRGResult `json:"result,omitempty"`
}
type ResourceGroup struct {
AccountID int64 `json:"accountId,omitempty"`
ID int64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
}
+5 -30
View File
@@ -3,38 +3,14 @@
package dx_sp
type AccessSEPPool struct {
// Pool names
PoolNames []string `json:"pool_names,omitempty"`
// SEP ID
SEPID int64 `json:"sep_id,omitempty"`
// SEP name
SEPName string `json:"sep_name,omitempty"`
}
type ItemStoragePolicy struct {
// List of pools in SEP for storage policy
AccessSEPsPools []AccessSEPPool `json:"access_seps_pools,omitempty"`
// Description of the storage policy
Description string `json:"description,omitempty"`
// GUID
GUID int64 `json:"guid,omitempty"`
// ID of the storage policy
ID int64 `json:"id,omitempty"`
// Max IOPS for the sotrage policy
LimitIOPS int64 `json:"limit_iops,omitempty"`
// Name of the storage policy
Name string `json:"name,omitempty"`
// Status of the storage policy
Status string `json:"status,omitempty"`
// Storage policy ID
StoragePolicyID int64 `json:"storage_policy_id,omitempty"`
// Which accounts and resource groups use the storage policy
Usage Usage `json:"usage,omitempty"`
}
type ListSecurityPoliciesResult struct {
DxVersion Version `json:"dxVersion,omitempty"`
Records []ItemStoragePolicy `json:"records,omitempty"`
Records []StoragePolicy `json:"records,omitempty"`
}
type ListSecurityPoliciesResultWithError struct {
@@ -44,9 +20,8 @@ type ListSecurityPoliciesResultWithError struct {
Result ListSecurityPoliciesResult `json:"result,omitempty"`
}
type Usage struct {
// List of accounts
Accounts []int64 `json:"accounts,omitempty"`
// List of resource groups
Resgroups []int64 `json:"resgroups,omitempty"`
type StoragePolicy struct {
AccessSEPsPools []AccessSEPPool `json:"access_seps_pools,omitempty"`
ID int64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
}
+9 -40
View File
@@ -49,45 +49,6 @@ type CloudAPIViNSItemRoutes struct {
NetMask string `json:"netmask,omitempty"`
}
type CloudAPIViNSItemViNS struct {
// Account ID
AccountID int64 `json:"accountId,omitempty"`
// Account name
AccountName string `json:"accountName,omitempty"`
// Created by
CreatedBy string `json:"createdBy,omitempty"`
// Created time
CreatedTime int64 `json:"createdTime,omitempty"`
// Deleted by
DeletedBy string `json:"deletedBy,omitempty"`
// Deleted time
DeletedTime int64 `json:"deletedTime,omitempty"`
// External IP
ExternalIP string `json:"externalIP,omitempty"`
// Extnet ID
ExtNetID int64 `json:"extnetId,omitempty"`
// Free IPs
FreeIPs int64 `json:"freeIPs,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// Name
Name string `json:"name,omitempty"`
// Network
Network string `json:"network,omitempty"`
// Resource group ID
RGID int64 `json:"rgId,omitempty"`
// Resource group name
RGName string `json:"rgName,omitempty"`
// Status
Status string `json:"status,omitempty"`
// Updated by
UpdatedBy string `json:"updatedBy,omitempty"`
// Updated time
UpdatedTime int64 `json:"updatedTime,omitempty"`
// VXLAN ID
VXLANID int64 `json:"vxlanId,omitempty"`
}
type CloudAPIViNSItemViNSCompute struct {
// ID
ID int64 `json:"id,omitempty"`
@@ -516,7 +477,7 @@ type GetViNSResultWithError struct {
}
type ListViNSResult struct {
Records []CloudAPIViNSItemViNS `json:"records,omitempty"`
Records []ViNS `json:"records,omitempty"`
}
type ListViNSResultWithError struct {
@@ -525,3 +486,11 @@ type ListViNSResultWithError struct {
Message string `json:"message,omitempty"`
Result ListViNSResult `json:"result,omitempty"`
}
type ViNS struct {
ExtNetID int64 `json:"extnetId,omitempty"`
ID int64 `json:"id,omitempty"`
Network string `json:"network,omitempty"`
RGID int64 `json:"rgId,omitempty"`
Status string `json:"status,omitempty"`
}