Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eaf2672f6b | ||
|
|
2ba8f61cb5 |
No files matched your search
+6
-7
@@ -1,10 +1,9 @@
|
|||||||
## Version v1.0.8
|
## Version 1.0.10
|
||||||
|
|
||||||
### Изменено
|
### Изменено
|
||||||
|
|
||||||
| Идентификатор задачи | Описание |
|
| Идентификатор задачи | Описание |
|
||||||
|----------------------|-----------------------------------------------------------------------------------------------------------------------------|
|
|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| COD-66 | Изменён метод `DeCustomApp.Install` (`POST /digitalenergy/customapp/install`): поле запроса `hostname` стало необязательным |
|
| COD-78 | Изменён метод `DeCluster.Create` (`POST /digitalenergy/cluster/create`): добавлены новые необязательные поля запроса `Podkiller`, `RequeueInterval` и `SkipNamespaces` |
|
||||||
| COD-66 | Изменён метод `DeFalco.Install` (`POST /digitalenergy/falco/install`): удалено поле запроса `IntegagentHostname` |
|
| COD-78 | Изменён метод `DeClusterTemplate.Update` (`POST /digitalenergy/clusterTemplate/update`): добавлены новые необязательные поля запроса `ExtraCluster.Podkiller`, `ExtraCluster.RequeueInterval`, `ExtraCluster.Severities` и `ExtraCluster.SkipNamespaces` |
|
||||||
| COD-66 | Изменён метод `DeIstio.Install` (`POST /digitalenergy/istio/install`): удалено поле запроса `IntegagentHostname` |
|
| COD-78 | Изменён метод `DeTrivy.Install` (`POST /digitalenergy/trivy/install`): добавлены новые необязательные поля запроса `Podkiller`, `RequeueInterval` и `SkipNamespaces` |
|
||||||
| COD-66 | Изменён метод `DeOpenELB.Install` (`POST /digitalenergy/openelb/install`): удалено поле запроса `IntegagentHostname` |
|
|
||||||
@@ -3,6 +3,8 @@ module repository.basistech.ru/BASIS/de-golang-sdk
|
|||||||
go 1.26.0
|
go 1.26.0
|
||||||
|
|
||||||
retract (
|
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.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.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
|
v1.0.4 // Pre-release version for DE 1.8.0, doesn't contain some changes
|
||||||
|
|||||||
@@ -1274,6 +1274,12 @@ type CreateRequest struct {
|
|||||||
ClusterTemplateDescription string `json:"clusterTemplateDescription" form:"clusterTemplateDescription"`
|
ClusterTemplateDescription string `json:"clusterTemplateDescription" form:"clusterTemplateDescription"`
|
||||||
// Share cluster template for any users
|
// Share cluster template for any users
|
||||||
SharedClusterTemplate bool `json:"sharedClusterTemplate" form:"sharedClusterTemplate"`
|
SharedClusterTemplate bool `json:"sharedClusterTemplate" form:"sharedClusterTemplate"`
|
||||||
|
// on podkiller
|
||||||
|
Podkiller bool `json:"podkiller" form:"podkiller"`
|
||||||
|
// time to check report
|
||||||
|
RequeueInterval int64 `json:"requeueInterval" form:"requeueInterval"`
|
||||||
|
// set skip Namespaces
|
||||||
|
SkipNamespaces []string `json:"skipNamespaces,omitempty" form:"skipNamespaces,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create cluster
|
// Create cluster
|
||||||
@@ -1642,6 +1648,11 @@ func (a *DeClusterService) Create(ctx context.Context, req CreateRequest) (Clust
|
|||||||
utils.ParameterAddToHeaderOrQuery(formParams, "clusterTemplateName", req.ClusterTemplateName, "", "")
|
utils.ParameterAddToHeaderOrQuery(formParams, "clusterTemplateName", req.ClusterTemplateName, "", "")
|
||||||
utils.ParameterAddToHeaderOrQuery(formParams, "clusterTemplateDescription", req.ClusterTemplateDescription, "", "")
|
utils.ParameterAddToHeaderOrQuery(formParams, "clusterTemplateDescription", req.ClusterTemplateDescription, "", "")
|
||||||
utils.ParameterAddToHeaderOrQuery(formParams, "sharedClusterTemplate", req.SharedClusterTemplate, "", "")
|
utils.ParameterAddToHeaderOrQuery(formParams, "sharedClusterTemplate", req.SharedClusterTemplate, "", "")
|
||||||
|
utils.ParameterAddToHeaderOrQuery(formParams, "podkiller", req.Podkiller, "", "")
|
||||||
|
utils.ParameterAddToHeaderOrQuery(formParams, "requeueInterval", req.RequeueInterval, "", "")
|
||||||
|
if !utils.IsZeroValue(req.SkipNamespaces) {
|
||||||
|
utils.ParameterAddToHeaderOrQuery(formParams, "skipNamespaces", req.SkipNamespaces, "", "multi")
|
||||||
|
}
|
||||||
|
|
||||||
httpReq, err := a.client.PrepareRequest(ctx, requestPath, method, requestBody, headerParams, queryParams, formParams, formFiles)
|
httpReq, err := a.client.PrepareRequest(ctx, requestPath, method, requestBody, headerParams, queryParams, formParams, formFiles)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -261,9 +261,13 @@ type CreateClusterRequest struct {
|
|||||||
MastersDynamixSEPID int64 `json:"mastersDynamixSEPId"`
|
MastersDynamixSEPID int64 `json:"mastersDynamixSEPId"`
|
||||||
MastersDynamixSEPPool string `json:"mastersDynamixSEPPool"`
|
MastersDynamixSEPPool string `json:"mastersDynamixSEPPool"`
|
||||||
PackageRepository int64 `json:"packageRepository"`
|
PackageRepository int64 `json:"packageRepository"`
|
||||||
|
Podkiller bool `json:"podkiller"`
|
||||||
ProvideDNS bool `json:"provideDNS"`
|
ProvideDNS bool `json:"provideDNS"`
|
||||||
|
RequeueInterval int64 `json:"requeueInterval"`
|
||||||
SaveComputesOnFailedK8SCreation bool `json:"saveComputesOnFailedK8SCreation"`
|
SaveComputesOnFailedK8SCreation bool `json:"saveComputesOnFailedK8SCreation"`
|
||||||
|
Severities []string `json:"severities,omitempty"`
|
||||||
SharedClusterTemplate bool `json:"sharedClusterTemplate"`
|
SharedClusterTemplate bool `json:"sharedClusterTemplate"`
|
||||||
|
SkipNamespaces []string `json:"skipNamespaces,omitempty"`
|
||||||
StoragePolicyID int64 `json:"storagePolicyId"`
|
StoragePolicyID int64 `json:"storagePolicyId"`
|
||||||
UseCustomExternalLBAddresses bool `json:"useCustomExternalLBAddresses"`
|
UseCustomExternalLBAddresses bool `json:"useCustomExternalLBAddresses"`
|
||||||
UseCustomInternalLBAddresses bool `json:"useCustomInternalLBAddresses"`
|
UseCustomInternalLBAddresses bool `json:"useCustomInternalLBAddresses"`
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ func (a *DeTrivyService) Describe(ctx context.Context, req DescribeRequest) (Des
|
|||||||
}
|
}
|
||||||
|
|
||||||
type InstallRequest struct {
|
type InstallRequest struct {
|
||||||
// Cluster ID
|
// cluster ID
|
||||||
//
|
//
|
||||||
// Required.
|
// Required.
|
||||||
ClusterID int64 `json:"clusterId" form:"clusterId"`
|
ClusterID int64 `json:"clusterId" form:"clusterId"`
|
||||||
@@ -115,6 +115,12 @@ type InstallRequest struct {
|
|||||||
ChartsRepositoryID int64 `json:"chartsRepositoryId" form:"chartsRepositoryId"`
|
ChartsRepositoryID int64 `json:"chartsRepositoryId" form:"chartsRepositoryId"`
|
||||||
// download chart anyway
|
// download chart anyway
|
||||||
DownloadChartAnyway bool `json:"downloadChartAnyway" form:"downloadChartAnyway"`
|
DownloadChartAnyway bool `json:"downloadChartAnyway" form:"downloadChartAnyway"`
|
||||||
|
// on podkiller
|
||||||
|
Podkiller bool `json:"podkiller" form:"podkiller"`
|
||||||
|
// time to check report
|
||||||
|
RequeueInterval int64 `json:"requeueInterval" form:"requeueInterval"`
|
||||||
|
// set skip Namespaces
|
||||||
|
SkipNamespaces []string `json:"skipNamespaces,omitempty" form:"skipNamespaces,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Install Trivy
|
// Install Trivy
|
||||||
@@ -158,6 +164,11 @@ func (a *DeTrivyService) Install(ctx context.Context, req InstallRequest) (Insta
|
|||||||
utils.ParameterAddToHeaderOrQuery(formParams, "appsRepositoryId", req.AppsRepositoryID, "", "")
|
utils.ParameterAddToHeaderOrQuery(formParams, "appsRepositoryId", req.AppsRepositoryID, "", "")
|
||||||
utils.ParameterAddToHeaderOrQuery(formParams, "chartsRepositoryId", req.ChartsRepositoryID, "", "")
|
utils.ParameterAddToHeaderOrQuery(formParams, "chartsRepositoryId", req.ChartsRepositoryID, "", "")
|
||||||
utils.ParameterAddToHeaderOrQuery(formParams, "downloadChartAnyway", req.DownloadChartAnyway, "", "")
|
utils.ParameterAddToHeaderOrQuery(formParams, "downloadChartAnyway", req.DownloadChartAnyway, "", "")
|
||||||
|
utils.ParameterAddToHeaderOrQuery(formParams, "podkiller", req.Podkiller, "", "")
|
||||||
|
utils.ParameterAddToHeaderOrQuery(formParams, "requeueInterval", req.RequeueInterval, "", "")
|
||||||
|
if !utils.IsZeroValue(req.SkipNamespaces) {
|
||||||
|
utils.ParameterAddToHeaderOrQuery(formParams, "skipNamespaces", req.SkipNamespaces, "", "multi")
|
||||||
|
}
|
||||||
|
|
||||||
httpReq, err := a.client.PrepareRequest(ctx, requestPath, method, requestBody, headerParams, queryParams, formParams, formFiles)
|
httpReq, err := a.client.PrepareRequest(ctx, requestPath, method, requestBody, headerParams, queryParams, formParams, formFiles)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
+11
-1
@@ -3,7 +3,7 @@
|
|||||||
package dx_disks
|
package dx_disks
|
||||||
|
|
||||||
type ListDiskTypesResult struct {
|
type ListDiskTypesResult struct {
|
||||||
Records []any `json:"records,omitempty"`
|
Records []SEPData `json:"records,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListDiskTypesResultWithError struct {
|
type ListDiskTypesResultWithError struct {
|
||||||
@@ -12,3 +12,13 @@ type ListDiskTypesResultWithError struct {
|
|||||||
Message string `json:"message,omitempty"`
|
Message string `json:"message,omitempty"`
|
||||||
Result ListDiskTypesResult `json:"result,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"`
|
||||||
|
}
|
||||||
@@ -19,19 +19,6 @@ type CloudAPIExtNetExcluded struct {
|
|||||||
VMID int64 `json:"vmId,omitempty"`
|
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 {
|
type CloudAPIExtNetItemReservation struct {
|
||||||
// Account ID
|
// Account ID
|
||||||
AccountID int64 `json:"account_id,omitempty"`
|
AccountID int64 `json:"account_id,omitempty"`
|
||||||
@@ -148,6 +135,13 @@ type CloudAPIExtNetVNFs struct {
|
|||||||
DHCP int64 `json:"dhcp,omitempty"`
|
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 {
|
type GetExtNetResult struct {
|
||||||
Record CloudAPIExtNetRecordExtNet `json:"record,omitempty"`
|
Record CloudAPIExtNetRecordExtNet `json:"record,omitempty"`
|
||||||
}
|
}
|
||||||
@@ -160,7 +154,7 @@ type GetExtNetResultWithError struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ListExtNetResult struct {
|
type ListExtNetResult struct {
|
||||||
Records []CloudAPIExtNetItemExtNet `json:"records,omitempty"`
|
Records []ExtNet `json:"records,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListExtNetResultWithError struct {
|
type ListExtNetResultWithError struct {
|
||||||
|
|||||||
+6
-20
@@ -2,25 +2,6 @@
|
|||||||
|
|
||||||
package dx_k8ci
|
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 {
|
type CloudAPIK8CIRecordK8CI struct {
|
||||||
// Description
|
// Description
|
||||||
Desc string `json:"desc,omitempty"`
|
Desc string `json:"desc,omitempty"`
|
||||||
@@ -45,8 +26,13 @@ type GetK8CIResultWithError struct {
|
|||||||
Result GetK8CIResult `json:"result,omitempty"`
|
Result GetK8CIResult `json:"result,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type K8CI struct {
|
||||||
|
ID int64 `json:"id,omitempty"`
|
||||||
|
Name string `json:"name,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
type ListK8CIResult struct {
|
type ListK8CIResult struct {
|
||||||
Records []CloudAPIK8CIItemK8CI `json:"records,omitempty"`
|
Records []K8CI `json:"records,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListK8CIResultWithError struct {
|
type ListK8CIResultWithError struct {
|
||||||
|
|||||||
+7
-67
@@ -19,72 +19,6 @@ type CloudAPIRGItemACL struct {
|
|||||||
UserGroupID string `json:"userGroupId,omitempty"`
|
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 {
|
type CloudAPIRGRecordResourceGroup struct {
|
||||||
// Account ID
|
// Account ID
|
||||||
AccountID int64 `json:"accountId,omitempty"`
|
AccountID int64 `json:"accountId,omitempty"`
|
||||||
@@ -184,7 +118,7 @@ type GetRGResultWithError struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ListRGResult struct {
|
type ListRGResult struct {
|
||||||
Records []CloudAPIRGItemResourceGroup `json:"records,omitempty"`
|
Records []ResourceGroup `json:"records,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListRGResultWithError struct {
|
type ListRGResultWithError struct {
|
||||||
@@ -193,3 +127,9 @@ type ListRGResultWithError struct {
|
|||||||
Message string `json:"message,omitempty"`
|
Message string `json:"message,omitempty"`
|
||||||
Result ListRGResult `json:"result,omitempty"`
|
Result ListRGResult `json:"result,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ResourceGroup struct {
|
||||||
|
AccountID int64 `json:"accountId,omitempty"`
|
||||||
|
ID int64 `json:"id,omitempty"`
|
||||||
|
Name string `json:"name,omitempty"`
|
||||||
|
}
|
||||||
+8
-33
@@ -3,38 +3,14 @@
|
|||||||
package dx_sp
|
package dx_sp
|
||||||
|
|
||||||
type AccessSEPPool struct {
|
type AccessSEPPool struct {
|
||||||
// Pool names
|
|
||||||
PoolNames []string `json:"pool_names,omitempty"`
|
PoolNames []string `json:"pool_names,omitempty"`
|
||||||
// SEP ID
|
SEPID int64 `json:"sep_id,omitempty"`
|
||||||
SEPID int64 `json:"sep_id,omitempty"`
|
SEPName string `json:"sep_name,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 {
|
type ListSecurityPoliciesResult struct {
|
||||||
DxVersion Version `json:"dxVersion,omitempty"`
|
DxVersion Version `json:"dxVersion,omitempty"`
|
||||||
Records []ItemStoragePolicy `json:"records,omitempty"`
|
Records []StoragePolicy `json:"records,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListSecurityPoliciesResultWithError struct {
|
type ListSecurityPoliciesResultWithError struct {
|
||||||
@@ -44,9 +20,8 @@ type ListSecurityPoliciesResultWithError struct {
|
|||||||
Result ListSecurityPoliciesResult `json:"result,omitempty"`
|
Result ListSecurityPoliciesResult `json:"result,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Usage struct {
|
type StoragePolicy struct {
|
||||||
// List of accounts
|
AccessSEPsPools []AccessSEPPool `json:"access_seps_pools,omitempty"`
|
||||||
Accounts []int64 `json:"accounts,omitempty"`
|
ID int64 `json:"id,omitempty"`
|
||||||
// List of resource groups
|
Name string `json:"name,omitempty"`
|
||||||
Resgroups []int64 `json:"resgroups,omitempty"`
|
|
||||||
}
|
}
|
||||||
+9
-40
@@ -49,45 +49,6 @@ type CloudAPIViNSItemRoutes struct {
|
|||||||
NetMask string `json:"netmask,omitempty"`
|
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 {
|
type CloudAPIViNSItemViNSCompute struct {
|
||||||
// ID
|
// ID
|
||||||
ID int64 `json:"id,omitempty"`
|
ID int64 `json:"id,omitempty"`
|
||||||
@@ -516,7 +477,7 @@ type GetViNSResultWithError struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ListViNSResult struct {
|
type ListViNSResult struct {
|
||||||
Records []CloudAPIViNSItemViNS `json:"records,omitempty"`
|
Records []ViNS `json:"records,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListViNSResultWithError struct {
|
type ListViNSResultWithError struct {
|
||||||
@@ -525,3 +486,11 @@ type ListViNSResultWithError struct {
|
|||||||
Message string `json:"message,omitempty"`
|
Message string `json:"message,omitempty"`
|
||||||
Result ListViNSResult `json:"result,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"`
|
||||||
|
}
|
||||||
Reference in new issue
Block a user