Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a59feae2f2 | ||
|
|
aac7108d8a |
57
CHANGELOG.md
Normal file
57
CHANGELOG.md
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
## Version 13.2.0
|
||||||
|
|
||||||
|
Методы `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 и в следующих версиях будет удалён
|
||||||
|
Методы `AccessGrant`, `AccessGrantToPool`, `AccessRevoke`, `AccessRevokeToPool` в cloudbroker/sep стали deprecated и в следующих версиях будут удалены
|
||||||
|
Методы `ComputeCISet`, `ComputeCIUnset`, `GetAudits` в cloudbroker/computeGetAudits и `GetAudits` в cloudbroker/compute стали deprecated и будут удалены в следующих версиях
|
||||||
|
|
||||||
|
Все методы группы `.SDN()` находятся в альфа-версии.
|
||||||
|
|
||||||
|
### Добавлено
|
||||||
|
|
||||||
|
#### audit
|
||||||
|
| Идентификатор<br>задачи | Описание |
|
||||||
|
| --- | ---|
|
||||||
|
| BGOS-706 | Поля `ResgroupID`, `AccountID`, `ComputeID` в структуру ответа `RecordAudit` в cloudbroker/audit |
|
||||||
|
|
||||||
|
#### compute
|
||||||
|
| Идентификатор<br>задачи | Описание |
|
||||||
|
| --- | --- |
|
||||||
|
| BGOS-703 | Опциональное поле `NetMask` в структуру запроса `NetAttachRequest` в cloudbroker/compute |
|
||||||
|
| BGOS-704 | Поле `SepID` в структуру ответа `InfoDisk` в cloudapi/compute и cloudbroker/compute |
|
||||||
|
|
||||||
|
#### kvmx86
|
||||||
|
| Идентификатор<br>задачи | Описание |
|
||||||
|
| --- | --- |
|
||||||
|
| BGOS-703 | Опциональное поле `NetMask` в структуры запросов `Interface` в cloudapi/kvmx86 и cloudbroker/kvmx86 |
|
||||||
|
|
||||||
|
#### sep
|
||||||
|
| Идентификатор<br>задачи | Описание |
|
||||||
|
| --- | ---|
|
||||||
|
| BGOS-704 | Опциональное поле `SepIDs` в структуре запроса `ListRequest` в cloudbroker/sep |
|
||||||
|
|
||||||
|
#### storage policy
|
||||||
|
| Идентификатор<br>задачи | Описание |
|
||||||
|
| --- | ---|
|
||||||
|
| BGOS-708 | Поле `SepTechStatus` в структуру запроса `ListRequest` в cloudapi/stpolicy и в cloudbroker/stpolicy |
|
||||||
|
| BGOS-710 | Обязательное поле `AccessSEPsPool` в структуру запроса `UpdateRequest` в cloudbroker/stpolicy |
|
||||||
|
|
||||||
|
#### trunk
|
||||||
|
| Идентификатор<br>задачи | Описание |
|
||||||
|
| --- | ---|
|
||||||
|
| BGOS-705 | Поле `MTU` в структуру ответа `ItemTrunk` в cloudapi/trunk и в cloudbroker/trunk |
|
||||||
|
| BGOS-705 | Опциональное поле `MTU` в структуры запроса`CreateRequest` и `UpdateRequest` в cloudbroker/trunk |
|
||||||
|
|
||||||
|
### Изменено
|
||||||
|
|
||||||
|
#### compute
|
||||||
|
| Идентификатор<br>задачи | Описание |
|
||||||
|
| --- | --- |
|
||||||
|
| BGOS-707 | Поле `Value` стало обязательным в структурах запроса `AntiAffinityRuleAddRequest`, `AntiAffinityRuleRemoveRequest`, `AffinityRuleAddRequest` и `AffinityRuleRemoveRequest` в cloudapi/compute и в cloudbroker/compute |
|
||||||
|
| BGOS-707 | Тип поля `StoragePolicyID` изменен с обязательного на опциональный в структуре запроса`CloneRequest` в cloudbroker/compute |
|
||||||
|
| BGOS-707 | Тип поля `ComputeID` с `uint64` на `string` в структуре запроса `GetCloneStatusRequest` в cloudbroker/compute |
|
||||||
|
|
||||||
|
#### node
|
||||||
|
| Идентификатор<br>задачи | Описание |
|
||||||
|
| --- | --- |
|
||||||
|
| BGOS-709 | Поле `VFNum` заменено на поле `FNID` в структуре `VFParam` в структуре запроса `SetVFsParamsRequest` в cloudbroker/node |
|
||||||
@@ -471,3 +471,10 @@ func addressPoolNetTypeValidator(fe validator.FieldLevel) bool {
|
|||||||
|
|
||||||
return IsInSlice(fieldValue, addressPoolNetTypeValues)
|
return IsInSlice(fieldValue, addressPoolNetTypeValues)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// sepTechStatusValidator is used to validate SepTechStatus fields
|
||||||
|
func sepTechStatusValidator(fe validator.FieldLevel) bool {
|
||||||
|
fieldValue := fe.Field().String()
|
||||||
|
|
||||||
|
return IsInSlice(fieldValue, sepTechStatusValues)
|
||||||
|
}
|
||||||
|
|||||||
@@ -366,6 +366,12 @@ func errorMessage(fe validator.FieldError) string {
|
|||||||
prefix,
|
prefix,
|
||||||
fe.Field(),
|
fe.Field(),
|
||||||
joinValues(ipTypeValues))
|
joinValues(ipTypeValues))
|
||||||
|
|
||||||
|
case "sepTechStatus":
|
||||||
|
return fmt.Sprintf("%s %s must be one of the following: %s",
|
||||||
|
prefix,
|
||||||
|
fe.Field(),
|
||||||
|
joinValues(sepTechStatusValues))
|
||||||
}
|
}
|
||||||
|
|
||||||
return fe.Error()
|
return fe.Error()
|
||||||
|
|||||||
@@ -311,5 +311,10 @@ func registerAllValidators(validate *validator.Validate) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err = validate.RegisterValidation("sepTechStatus", sepTechStatusValidator)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,8 @@ var (
|
|||||||
addressPoolNetTypeValues = []string{"IPv4", "IPv6", "MAC"}
|
addressPoolNetTypeValues = []string{"IPv4", "IPv6", "MAC"}
|
||||||
|
|
||||||
ipTypeValues = []string{"v4, v6"}
|
ipTypeValues = []string{"v4, v6"}
|
||||||
|
|
||||||
|
sepTechStatusValues = []string{"ENABLED", "DISABLED"}
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -68,9 +68,6 @@ type ResourceLimits struct {
|
|||||||
// RAM size, MB
|
// RAM size, MB
|
||||||
CUM float64 `json:"CU_M"`
|
CUM float64 `json:"CU_M"`
|
||||||
|
|
||||||
// Traffic volume, GB
|
|
||||||
CUNP float64 `json:"CU_NP"`
|
|
||||||
|
|
||||||
// Number of graphics cores
|
// Number of graphics cores
|
||||||
GPUUnits float64 `json:"gpu_units"`
|
GPUUnits float64 `json:"gpu_units"`
|
||||||
|
|
||||||
@@ -150,9 +147,6 @@ type Resource struct {
|
|||||||
// Number of External IPs
|
// Number of External IPs
|
||||||
ExtIPs int64 `json:"extips"`
|
ExtIPs int64 `json:"extips"`
|
||||||
|
|
||||||
// External traffic
|
|
||||||
ExtTraffic int64 `json:"exttraffic"`
|
|
||||||
|
|
||||||
// Number of grafic cores
|
// Number of grafic cores
|
||||||
GPU int64 `json:"gpu"`
|
GPU int64 `json:"gpu"`
|
||||||
|
|
||||||
@@ -554,9 +548,6 @@ type LimitsRG struct {
|
|||||||
// Number of External IPs
|
// Number of External IPs
|
||||||
ExtIPs int64 `json:"extips"`
|
ExtIPs int64 `json:"extips"`
|
||||||
|
|
||||||
// External traffic
|
|
||||||
ExtTraffic int64 `json:"exttraffic"`
|
|
||||||
|
|
||||||
// Number of grafic cores
|
// Number of grafic cores
|
||||||
GPU int64 `json:"gpu"`
|
GPU int64 `json:"gpu"`
|
||||||
|
|
||||||
@@ -565,6 +556,9 @@ type LimitsRG struct {
|
|||||||
|
|
||||||
// SEPs
|
// SEPs
|
||||||
SEPs uint64 `json:"seps"`
|
SEPs uint64 `json:"seps"`
|
||||||
|
|
||||||
|
// Policies
|
||||||
|
Policies map[string]Policy `json:"policies"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Main information about resource group
|
// Main information about resource group
|
||||||
|
|||||||
@@ -38,9 +38,8 @@ type AffinityRuleAddRequest struct {
|
|||||||
Key string `url:"key" json:"key" validate:"required"`
|
Key string `url:"key" json:"key" validate:"required"`
|
||||||
|
|
||||||
// Value that must match the key to be taken into account when analyzing this rule
|
// Value that must match the key to be taken into account when analyzing this rule
|
||||||
// Required: false
|
// Required: true
|
||||||
// Not required on purpose: despite required tag on platform, empty string is allowed
|
Value string `url:"value" json:"value" validate:"required"`
|
||||||
Value string `url:"value" json:"value"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AffinityRuleAdd add affinity rule
|
// AffinityRuleAdd add affinity rule
|
||||||
|
|||||||
@@ -38,9 +38,8 @@ type AffinityRuleRemoveRequest struct {
|
|||||||
Key string `url:"key" json:"key" validate:"required"`
|
Key string `url:"key" json:"key" validate:"required"`
|
||||||
|
|
||||||
// Value that must match the key to be taken into account when analyzing this rule
|
// Value that must match the key to be taken into account when analyzing this rule
|
||||||
// Required: false
|
// Required: true
|
||||||
// Not required on purpose: despite required tag on platform, empty string is allowed
|
Value string `url:"value" json:"value" validate:"required"`
|
||||||
Value string `url:"value" json:"value"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AffinityRuleRemove remove affinity rule
|
// AffinityRuleRemove remove affinity rule
|
||||||
|
|||||||
@@ -38,9 +38,8 @@ type AntiAffinityRuleAddRequest struct {
|
|||||||
Key string `url:"key" json:"key" validate:"required"`
|
Key string `url:"key" json:"key" validate:"required"`
|
||||||
|
|
||||||
// Value that must match the key to be taken into account when analyzing this rule
|
// Value that must match the key to be taken into account when analyzing this rule
|
||||||
// Required: false
|
// Required: true
|
||||||
// Not required on purpose: despite required tag on platform, empty string is allowed
|
Value string `url:"value" json:"value" validate:"required"`
|
||||||
Value string `url:"value" json:"value"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AntiAffinityRuleAdd add anti affinity rule
|
// AntiAffinityRuleAdd add anti affinity rule
|
||||||
|
|||||||
@@ -38,9 +38,8 @@ type AntiAffinityRuleRemoveRequest struct {
|
|||||||
Key string `url:"key" json:"key" validate:"required"`
|
Key string `url:"key" json:"key" validate:"required"`
|
||||||
|
|
||||||
// Value that must match the key to be taken into account when analyzing this rule
|
// Value that must match the key to be taken into account when analyzing this rule
|
||||||
// Required: false
|
// Required: true
|
||||||
// Not required on purpose: despite required tag on platform, empty string is allowed
|
Value string `url:"value" json:"value" validate:"required"`
|
||||||
Value string `url:"value" json:"value"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AntiAffinityRuleRemove remove anti affinity rule
|
// AntiAffinityRuleRemove remove anti affinity rule
|
||||||
|
|||||||
@@ -1237,6 +1237,9 @@ type ListInfoDisks []InfoDisk
|
|||||||
type InfoDisk struct {
|
type InfoDisk struct {
|
||||||
// ID
|
// ID
|
||||||
ID uint64 `json:"id"`
|
ID uint64 `json:"id"`
|
||||||
|
|
||||||
|
// SEP ID
|
||||||
|
SepID int64 `json:"sepId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// List information about computes
|
// List information about computes
|
||||||
|
|||||||
@@ -35,6 +35,11 @@ type Interface struct {
|
|||||||
// Required: false
|
// Required: false
|
||||||
MTU uint64 `url:"mtu,omitempty" json:"mtu,omitempty" validate:"omitempty,mtu"`
|
MTU uint64 `url:"mtu,omitempty" json:"mtu,omitempty" validate:"omitempty,mtu"`
|
||||||
|
|
||||||
|
// Net mask
|
||||||
|
// Used only to DPDK or VFNIC net type
|
||||||
|
// Required: false
|
||||||
|
NetMask uint64 `url:"netMask,omitempty" json:"netMask,omitempty"`
|
||||||
|
|
||||||
// MAC address to assign to this VM when connecting to the specified network
|
// MAC address to assign to this VM when connecting to the specified network
|
||||||
// Required: false
|
// Required: false
|
||||||
MAC string `url:"mac,omitempty" json:"mac,omitempty" validate:"omitempty"`
|
MAC string `url:"mac,omitempty" json:"mac,omitempty" validate:"omitempty"`
|
||||||
|
|||||||
@@ -14,9 +14,6 @@ type Resource struct {
|
|||||||
// Number of External IPs
|
// Number of External IPs
|
||||||
ExtIPs int64 `json:"extips"`
|
ExtIPs int64 `json:"extips"`
|
||||||
|
|
||||||
// External traffic
|
|
||||||
ExtTraffic int64 `json:"exttraffic"`
|
|
||||||
|
|
||||||
// Number of grafic cores
|
// Number of grafic cores
|
||||||
GPU int64 `json:"gpu"`
|
GPU int64 `json:"gpu"`
|
||||||
|
|
||||||
@@ -846,9 +843,6 @@ type RecordResourceUsage struct {
|
|||||||
// Number of external IPs
|
// Number of external IPs
|
||||||
ExtIPs uint64 `json:"extips"`
|
ExtIPs uint64 `json:"extips"`
|
||||||
|
|
||||||
// ExtraTraffic
|
|
||||||
ExtraTraffic uint64 `json:"exttraffic"`
|
|
||||||
|
|
||||||
// Number of GPU
|
// Number of GPU
|
||||||
GPU uint64 `json:"gpu"`
|
GPU uint64 `json:"gpu"`
|
||||||
|
|
||||||
|
|||||||
@@ -56,6 +56,10 @@ type ListRequest struct {
|
|||||||
// Search by pool name
|
// Search by pool name
|
||||||
// Required: false
|
// Required: false
|
||||||
PoolName string `url:"pool_name,omitempty" json:"pool_name,omitempty"`
|
PoolName string `url:"pool_name,omitempty" json:"pool_name,omitempty"`
|
||||||
|
|
||||||
|
// Filter SEP's by tech status (ENABLED, DISABLED)
|
||||||
|
// Required: false
|
||||||
|
SepTechStatus string `url:"sep_tech_status,omitempty" json:"sep_tech_status,omitempty" validate:"omitempty,sepTechStatus"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// List gets list of storage policies as a ListStoragePolicies struct
|
// List gets list of storage policies as a ListStoragePolicies struct
|
||||||
|
|||||||
@@ -77,6 +77,9 @@ type AccessSEPPool struct {
|
|||||||
|
|
||||||
// Pool names
|
// Pool names
|
||||||
PoolNames []string `json:"pool_names"`
|
PoolNames []string `json:"pool_names"`
|
||||||
|
|
||||||
|
// Technical status of the SEP
|
||||||
|
SepTechStatus string `json:"sep_tech_status"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Usage struct {
|
type Usage struct {
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ type ItemTrunk struct {
|
|||||||
// MAC
|
// MAC
|
||||||
MAC string `json:"mac"`
|
MAC string `json:"mac"`
|
||||||
|
|
||||||
|
// MTU
|
||||||
|
MTU uint64 `json:"mtu"`
|
||||||
|
|
||||||
// Name of a trunk
|
// Name of a trunk
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
|
||||||
|
|||||||
@@ -156,9 +156,6 @@ type Resources struct {
|
|||||||
// ExtIPs
|
// ExtIPs
|
||||||
ExtIPs uint64 `json:"extips"`
|
ExtIPs uint64 `json:"extips"`
|
||||||
|
|
||||||
// ExtTraffic
|
|
||||||
ExtTraffic uint64 `json:"exttraffic"`
|
|
||||||
|
|
||||||
// GPU
|
// GPU
|
||||||
GPU uint64 `json:"gpu"`
|
GPU uint64 `json:"gpu"`
|
||||||
|
|
||||||
|
|||||||
@@ -71,9 +71,6 @@ type Resource struct {
|
|||||||
// Number of External IPs
|
// Number of External IPs
|
||||||
ExtIPs int64 `json:"extips"`
|
ExtIPs int64 `json:"extips"`
|
||||||
|
|
||||||
// External traffic
|
|
||||||
ExtTraffic int64 `json:"exttraffic"`
|
|
||||||
|
|
||||||
// Number of grafic cores
|
// Number of grafic cores
|
||||||
GPU int64 `json:"gpu"`
|
GPU int64 `json:"gpu"`
|
||||||
|
|
||||||
@@ -143,9 +140,6 @@ type ResourceLimits struct {
|
|||||||
// CuM
|
// CuM
|
||||||
CuM float64 `json:"CU_M"`
|
CuM float64 `json:"CU_M"`
|
||||||
|
|
||||||
// CuNP
|
|
||||||
CuNP float64 `json:"CU_NP"`
|
|
||||||
|
|
||||||
// GPUUnits
|
// GPUUnits
|
||||||
GPUUnits float64 `json:"gpu_units"`
|
GPUUnits float64 `json:"gpu_units"`
|
||||||
|
|
||||||
@@ -480,9 +474,6 @@ type Limits struct {
|
|||||||
// External IPs
|
// External IPs
|
||||||
ExtIPs int64 `json:"extips"`
|
ExtIPs int64 `json:"extips"`
|
||||||
|
|
||||||
// External traffic
|
|
||||||
ExtTraffic int64 `json:"exttraffic"`
|
|
||||||
|
|
||||||
// Number of GPU
|
// Number of GPU
|
||||||
GPU int64 `json:"gpu"`
|
GPU int64 `json:"gpu"`
|
||||||
|
|
||||||
@@ -491,6 +482,9 @@ type Limits struct {
|
|||||||
|
|
||||||
// SEPs number
|
// SEPs number
|
||||||
SEPs uint64 `json:"seps"`
|
SEPs uint64 `json:"seps"`
|
||||||
|
|
||||||
|
// Policies
|
||||||
|
Policies map[string]Policy `json:"policies"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resources of resource group
|
// Resources of resource group
|
||||||
|
|||||||
@@ -95,6 +95,15 @@ type RecordAudit struct {
|
|||||||
|
|
||||||
// TTL
|
// TTL
|
||||||
TTL string `json:"_ttl"`
|
TTL string `json:"_ttl"`
|
||||||
|
|
||||||
|
// Resgroup ID
|
||||||
|
ResgroupID uint64 `json:"resgroup_id"`
|
||||||
|
|
||||||
|
// Account ID
|
||||||
|
AccountID uint64 `json:"account_id"`
|
||||||
|
|
||||||
|
// Compute ID
|
||||||
|
ComputeID uint64 `json:"compute_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// List of Linked Jobs
|
// List of Linked Jobs
|
||||||
|
|||||||
@@ -14,6 +14,9 @@ type RestoreDiskFromBackupRequest struct {
|
|||||||
// Compute ID
|
// Compute ID
|
||||||
ComputeID uint64 `url:"computeId" json:"computeId" validate:"required"`
|
ComputeID uint64 `url:"computeId" json:"computeId" validate:"required"`
|
||||||
|
|
||||||
|
// Node ID
|
||||||
|
NodeID uint64 `url:"nodeId,omitempty" json:"nodeId,omitempty"`
|
||||||
|
|
||||||
// Disk ID
|
// Disk ID
|
||||||
DiskID uint64 `url:"diskId" json:"diskId" validate:"required"`
|
DiskID uint64 `url:"diskId" json:"diskId" validate:"required"`
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,9 @@ type RestoreDisksFromBackupRequest struct {
|
|||||||
// Compute ID
|
// Compute ID
|
||||||
ComputeID uint64 `url:"computeId" json:"computeId" validate:"required"`
|
ComputeID uint64 `url:"computeId" json:"computeId" validate:"required"`
|
||||||
|
|
||||||
|
// Node ID
|
||||||
|
NodeID uint64 `url:"nodeId,omitempty" json:"nodeId,omitempty"`
|
||||||
|
|
||||||
//Backup files
|
//Backup files
|
||||||
BackupFiles []BackupFile `url:"disks" json:"disks" validate:"required,dive"`
|
BackupFiles []BackupFile `url:"disks" json:"disks" validate:"required,dive"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,9 +40,8 @@ type AffinityRuleAddRequest struct {
|
|||||||
Key string `url:"key" json:"key" validate:"required"`
|
Key string `url:"key" json:"key" validate:"required"`
|
||||||
|
|
||||||
// Value that must match the key to be taken into account when analyzing this rule
|
// Value that must match the key to be taken into account when analyzing this rule
|
||||||
// Required: false
|
// Required: true
|
||||||
// Not required on purpose: despite required tag on platform, empty string is allowed
|
Value string `url:"value" json:"value" validate:"required"`
|
||||||
Value string `url:"value" json:"value"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AffinityRuleAdd adds affinity rule
|
// AffinityRuleAdd adds affinity rule
|
||||||
|
|||||||
@@ -38,9 +38,8 @@ type AffinityRuleRemoveRequest struct {
|
|||||||
Key string `url:"key" json:"key" validate:"required"`
|
Key string `url:"key" json:"key" validate:"required"`
|
||||||
|
|
||||||
// Value that must match the key to be taken into account when analyzing this rule
|
// Value that must match the key to be taken into account when analyzing this rule
|
||||||
// Required: false
|
// Required: true
|
||||||
// Not required on purpose: despite required tag on platform, empty string is allowed
|
Value string `url:"value" json:"value" validate:"required"`
|
||||||
Value string `url:"value" json:"value"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AffinityRuleRemove remove affinity rule
|
// AffinityRuleRemove remove affinity rule
|
||||||
|
|||||||
@@ -38,9 +38,8 @@ type AntiAffinityRuleAddRequest struct {
|
|||||||
Key string `url:"key" json:"key" validate:"required"`
|
Key string `url:"key" json:"key" validate:"required"`
|
||||||
|
|
||||||
// Value that must match the key to be taken into account when analyzing this rule
|
// Value that must match the key to be taken into account when analyzing this rule
|
||||||
// Required: false
|
// Required: true
|
||||||
// Not required on purpose: despite required tag on platform, empty string is allowed
|
Value string `url:"value" json:"value" validate:"required"`
|
||||||
Value string `url:"value" json:"value"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AntiAffinityRuleAdd adds anti affinity rule
|
// AntiAffinityRuleAdd adds anti affinity rule
|
||||||
|
|||||||
@@ -38,9 +38,8 @@ type AntiAffinityRuleRemoveRequest struct {
|
|||||||
Key string `url:"key" json:"key" validate:"required"`
|
Key string `url:"key" json:"key" validate:"required"`
|
||||||
|
|
||||||
// Value that must match the key to be taken into account when analyzing this rule
|
// Value that must match the key to be taken into account when analyzing this rule
|
||||||
// Required: false
|
// Required: true
|
||||||
// Not required on purpose: despite required tag on platform, empty string is allowed
|
Value string `url:"value" json:"value" validate:"required"`
|
||||||
Value string `url:"value" json:"value"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AntiAffinityRuleRemove removes anti affinity rule
|
// AntiAffinityRuleRemove removes anti affinity rule
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ type CloneRequest struct {
|
|||||||
Name string `url:"name" json:"name" validate:"required"`
|
Name string `url:"name" json:"name" validate:"required"`
|
||||||
|
|
||||||
// ID of the Storage Policy
|
// ID of the Storage Policy
|
||||||
// Required: true
|
// Required: false
|
||||||
StoragePolicyID uint64 `url:"storage_policy_id" json:"storage_policy_id" validate:"required"`
|
StoragePolicyID uint64 `url:"storage_policy_id" json:"storage_policy_id"`
|
||||||
|
|
||||||
// Timestamp of the parent's snapshot to create clone from
|
// Timestamp of the parent's snapshot to create clone from
|
||||||
// Required: false
|
// Required: false
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import (
|
|||||||
type GetCloneStatusRequest struct {
|
type GetCloneStatusRequest struct {
|
||||||
// ID of compute instance
|
// ID of compute instance
|
||||||
// Required: true
|
// Required: true
|
||||||
ComputeID uint64 `url:"compute_id" json:"compute_id" validate:"required"`
|
ComputeID string `url:"compute_id" json:"compute_id" validate:"required"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetCloneStatus gets information about compute clone status as a RecordCloneStatus struct
|
// GetCloneStatus gets information about compute clone status as a RecordCloneStatus struct
|
||||||
|
|||||||
@@ -841,7 +841,7 @@ type InfoCompute struct {
|
|||||||
SnapSets ListSnapshots `json:"snapSets"`
|
SnapSets ListSnapshots `json:"snapSets"`
|
||||||
|
|
||||||
// Node ID
|
// Node ID
|
||||||
NodeID uint64 `json:"nodeId"`
|
NodeID uint64 `json:"node_id"`
|
||||||
|
|
||||||
// Node name
|
// Node name
|
||||||
NodeName string `json:"nodeName"`
|
NodeName string `json:"nodeName"`
|
||||||
@@ -1171,6 +1171,9 @@ type RecordCompute struct {
|
|||||||
|
|
||||||
// Zone ID
|
// Zone ID
|
||||||
ZoneID uint64 `json:"zoneId"`
|
ZoneID uint64 `json:"zoneId"`
|
||||||
|
|
||||||
|
//todo
|
||||||
|
_ uint64 `json:"nodeId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type LoaderMetaIso struct {
|
type LoaderMetaIso struct {
|
||||||
@@ -1280,6 +1283,9 @@ type ItemDeletedCompute struct {
|
|||||||
type InfoDisk struct {
|
type InfoDisk struct {
|
||||||
// ID
|
// ID
|
||||||
ID uint64 `json:"id"`
|
ID uint64 `json:"id"`
|
||||||
|
|
||||||
|
// SEP ID
|
||||||
|
SepID int64 `json:"sepId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// List computes
|
// List computes
|
||||||
|
|||||||
@@ -45,6 +45,11 @@ type NetAttachRequest struct {
|
|||||||
// Required: false
|
// Required: false
|
||||||
MTU uint64 `url:"mtu,omitempty" json:"mtu,omitempty" validate:"omitempty,mtu"`
|
MTU uint64 `url:"mtu,omitempty" json:"mtu,omitempty" validate:"omitempty,mtu"`
|
||||||
|
|
||||||
|
// Net mask
|
||||||
|
// Used only to DPDK or VFNIC net type
|
||||||
|
// Required: false
|
||||||
|
NetMask uint64 `url:"netMask,omitempty" json:"netMask,omitempty"`
|
||||||
|
|
||||||
// Unique identifier of logical port on SDN side
|
// Unique identifier of logical port on SDN side
|
||||||
// Required: false
|
// Required: false
|
||||||
SDNInterfaceID string `url:"sdn_interface_id,omitempty" json:"sdn_interface_id,omitempty" validate:"omitempty"`
|
SDNInterfaceID string `url:"sdn_interface_id,omitempty" json:"sdn_interface_id,omitempty" validate:"omitempty"`
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ type StartRequest struct {
|
|||||||
|
|
||||||
// ID of node to start compute
|
// ID of node to start compute
|
||||||
// Required: false
|
// Required: false
|
||||||
NodeID uint64 `url:"nodeId,omitempty" json:"nodeId,omitempty"`
|
NodeID uint64 `url:"node_id,omitempty" json:"node_id,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start starts compute
|
// Start starts compute
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ var grids = ListGrids{
|
|||||||
DiskSize: 976,
|
DiskSize: 976,
|
||||||
DiskSizeMax: 1200,
|
DiskSizeMax: 1200,
|
||||||
ExtIPs: 132,
|
ExtIPs: 132,
|
||||||
ExtTraffic: 0,
|
|
||||||
GPU: 79500,
|
GPU: 79500,
|
||||||
RAM: 0,
|
RAM: 0,
|
||||||
SEPs: map[string]map[string]DiskUsage{},
|
SEPs: map[string]map[string]DiskUsage{},
|
||||||
@@ -21,7 +20,6 @@ var grids = ListGrids{
|
|||||||
DiskSize: 976,
|
DiskSize: 976,
|
||||||
DiskSizeMax: 1200,
|
DiskSizeMax: 1200,
|
||||||
ExtIPs: 132,
|
ExtIPs: 132,
|
||||||
ExtTraffic: 0,
|
|
||||||
GPU: 0,
|
GPU: 0,
|
||||||
RAM: 152600,
|
RAM: 152600,
|
||||||
SEPs: map[string]map[string]DiskUsage{},
|
SEPs: map[string]map[string]DiskUsage{},
|
||||||
@@ -41,7 +39,6 @@ var grids = ListGrids{
|
|||||||
DiskSize: 976,
|
DiskSize: 976,
|
||||||
DiskSizeMax: 1200,
|
DiskSizeMax: 1200,
|
||||||
ExtIPs: 132,
|
ExtIPs: 132,
|
||||||
ExtTraffic: 0,
|
|
||||||
GPU: 79500,
|
GPU: 79500,
|
||||||
RAM: 0,
|
RAM: 0,
|
||||||
SEPs: map[string]map[string]DiskUsage{},
|
SEPs: map[string]map[string]DiskUsage{},
|
||||||
@@ -51,7 +48,6 @@ var grids = ListGrids{
|
|||||||
DiskSize: 976,
|
DiskSize: 976,
|
||||||
DiskSizeMax: 1200,
|
DiskSizeMax: 1200,
|
||||||
ExtIPs: 132,
|
ExtIPs: 132,
|
||||||
ExtTraffic: 0,
|
|
||||||
GPU: 0,
|
GPU: 0,
|
||||||
RAM: 152600,
|
RAM: 152600,
|
||||||
SEPs: map[string]map[string]DiskUsage{},
|
SEPs: map[string]map[string]DiskUsage{},
|
||||||
@@ -71,7 +67,6 @@ var grids = ListGrids{
|
|||||||
DiskSize: 976,
|
DiskSize: 976,
|
||||||
DiskSizeMax: 1200,
|
DiskSizeMax: 1200,
|
||||||
ExtIPs: 132,
|
ExtIPs: 132,
|
||||||
ExtTraffic: 0,
|
|
||||||
GPU: 79500,
|
GPU: 79500,
|
||||||
RAM: 0,
|
RAM: 0,
|
||||||
SEPs: map[string]map[string]DiskUsage{},
|
SEPs: map[string]map[string]DiskUsage{},
|
||||||
@@ -81,7 +76,6 @@ var grids = ListGrids{
|
|||||||
DiskSize: 976,
|
DiskSize: 976,
|
||||||
DiskSizeMax: 1200,
|
DiskSizeMax: 1200,
|
||||||
ExtIPs: 132,
|
ExtIPs: 132,
|
||||||
ExtTraffic: 0,
|
|
||||||
GPU: 0,
|
GPU: 0,
|
||||||
RAM: 152600,
|
RAM: 152600,
|
||||||
SEPs: map[string]map[string]DiskUsage{},
|
SEPs: map[string]map[string]DiskUsage{},
|
||||||
|
|||||||
@@ -43,9 +43,6 @@ type RecordResource struct {
|
|||||||
// External IPs
|
// External IPs
|
||||||
ExtIPs uint64 `json:"extips"`
|
ExtIPs uint64 `json:"extips"`
|
||||||
|
|
||||||
// External traffic
|
|
||||||
ExtTraffic uint64 `json:"exttraffic"`
|
|
||||||
|
|
||||||
// Number of GPU
|
// Number of GPU
|
||||||
GPU uint64 `json:"gpu"`
|
GPU uint64 `json:"gpu"`
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,11 @@ type Interface struct {
|
|||||||
// Required: false
|
// Required: false
|
||||||
MAC string `url:"mac,omitempty" json:"mac,omitempty" validate:"omitempty"`
|
MAC string `url:"mac,omitempty" json:"mac,omitempty" validate:"omitempty"`
|
||||||
|
|
||||||
|
// Net mask
|
||||||
|
// Used only to DPDK or VFNIC net type
|
||||||
|
// Required: false
|
||||||
|
NetMask uint64 `url:"netMask,omitempty" json:"netMask,omitempty"`
|
||||||
|
|
||||||
// SDN interface id
|
// SDN interface id
|
||||||
// Required: false
|
// Required: false
|
||||||
SDNInterfaceID string `url:"sdn_interface_id,omitempty" json:"sdn_interface_id,omitempty"`
|
SDNInterfaceID string `url:"sdn_interface_id,omitempty" json:"sdn_interface_id,omitempty"`
|
||||||
|
|||||||
@@ -82,6 +82,9 @@ type RecordNode struct {
|
|||||||
|
|
||||||
// SDN Hypervisor Name
|
// SDN Hypervisor Name
|
||||||
SDNHypervisorName string `json:"sdn_hypervisor_name"`
|
SDNHypervisorName string `json:"sdn_hypervisor_name"`
|
||||||
|
|
||||||
|
// CPU used by the node
|
||||||
|
UsableCPUs []string `json:"usable_cpus"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resource consumption of the node
|
// Resource consumption of the node
|
||||||
@@ -291,10 +294,13 @@ type ItemNode struct {
|
|||||||
CPUAllocationRatio float64 `json:"cpu_allocation_ratio"`
|
CPUAllocationRatio float64 `json:"cpu_allocation_ratio"`
|
||||||
|
|
||||||
// MemAllocationRatio
|
// MemAllocationRatio
|
||||||
|
|
||||||
MemAllocationRatio float64 `json:"mem_allocation_ratio"`
|
MemAllocationRatio float64 `json:"mem_allocation_ratio"`
|
||||||
|
|
||||||
// Packages
|
// Packages
|
||||||
Packages map[string]PackageInfo `json:"packages"`
|
Packages map[string]PackageInfo `json:"packages"`
|
||||||
|
|
||||||
|
// CPU used by the node
|
||||||
|
UsableCPUs []string `json:"usable_cpus"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type PackageInfo struct {
|
type PackageInfo struct {
|
||||||
|
|||||||
@@ -5,13 +5,14 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/constants"
|
||||||
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
|
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
|
||||||
)
|
)
|
||||||
|
|
||||||
type VFParam struct {
|
type VFParam struct {
|
||||||
// Number of VF to assign
|
// ID of the FN
|
||||||
// Required: true
|
// Required: true
|
||||||
VFNum uint64 `url:"vfNum" json:"vfNum" validate:"required"`
|
FNID uint64 `url:"fnId" json:"fnId" validate:"required"`
|
||||||
|
|
||||||
// Trust
|
// Trust
|
||||||
// Required: true
|
// Required: true
|
||||||
@@ -46,7 +47,7 @@ func (n Node) SetVFsParams(ctx context.Context, req SetVFsParamsRequest) (bool,
|
|||||||
|
|
||||||
url := "/cloudbroker/node/setVFsParams"
|
url := "/cloudbroker/node/setVFsParams"
|
||||||
|
|
||||||
res, err := n.client.DecortApiCall(ctx, http.MethodPost, url, req)
|
res, err := n.client.DecortApiCallCtype(ctx, http.MethodPost, url, constants.MIMEJSON, req)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
|
|||||||
@@ -35,9 +35,6 @@ type Reservation struct {
|
|||||||
// External IPs
|
// External IPs
|
||||||
ExtIPs int64 `json:"extips"`
|
ExtIPs int64 `json:"extips"`
|
||||||
|
|
||||||
// External traffic
|
|
||||||
ExtTraffic int64 `json:"exttraffic"`
|
|
||||||
|
|
||||||
// Number of GPU
|
// Number of GPU
|
||||||
GPU int64 `json:"gpu"`
|
GPU int64 `json:"gpu"`
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ type ListRequest struct {
|
|||||||
// Required: false
|
// Required: false
|
||||||
SortBy string `url:"sortBy,omitempty" json:"sortBy,omitempty" validate:"omitempty,sortBy"`
|
SortBy string `url:"sortBy,omitempty" json:"sortBy,omitempty" validate:"omitempty,sortBy"`
|
||||||
|
|
||||||
|
// Sort by SEP IDs
|
||||||
|
SepIDs []uint64 `url:"sep_ids,omitempty" json:"sep_ids,omitempty"`
|
||||||
|
|
||||||
// Page size
|
// Page size
|
||||||
// Required: false
|
// Required: false
|
||||||
Size uint64 `url:"size,omitempty" json:"size,omitempty"`
|
Size uint64 `url:"size,omitempty" json:"size,omitempty"`
|
||||||
|
|||||||
@@ -56,6 +56,10 @@ type ListRequest struct {
|
|||||||
// Search by pool name
|
// Search by pool name
|
||||||
// Required: false
|
// Required: false
|
||||||
PoolName string `url:"pool_name,omitempty" json:"pool_name,omitempty"`
|
PoolName string `url:"pool_name,omitempty" json:"pool_name,omitempty"`
|
||||||
|
|
||||||
|
// Filter SEP's by tech status (ENABLED, DISABLED)
|
||||||
|
// Required: false
|
||||||
|
SepTechStatus string `url:"sep_tech_status,omitempty" json:"sep_tech_status,omitempty" validate:"omitempty,sepTechStatus"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// List gets list of storage policies as a ListStoragePolicies struct
|
// List gets list of storage policies as a ListStoragePolicies struct
|
||||||
|
|||||||
@@ -103,6 +103,9 @@ type AccessSEPPool struct {
|
|||||||
|
|
||||||
// Pool names
|
// Pool names
|
||||||
PoolNames []string `json:"pool_names"`
|
PoolNames []string `json:"pool_names"`
|
||||||
|
|
||||||
|
// Technical status of the SEP
|
||||||
|
SepTechStatus string `json:"sep_tech_status"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Usage struct {
|
type Usage struct {
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/constants"
|
||||||
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
|
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -13,6 +14,10 @@ type UpdateRequest struct {
|
|||||||
// Required: true
|
// Required: true
|
||||||
StoragePolicyID uint64 `url:"storage_policy_id" json:"storage_policy_id" validate:"required"`
|
StoragePolicyID uint64 `url:"storage_policy_id" json:"storage_policy_id" validate:"required"`
|
||||||
|
|
||||||
|
// List of storage endpoint access objects
|
||||||
|
// Required: true
|
||||||
|
AccessSEPsPools []AccessSEPsPool `url:"access_seps_pools" json:"access_seps_pools" validate:"required"`
|
||||||
|
|
||||||
// New name for the storage policy
|
// New name for the storage policy
|
||||||
// Required: false
|
// Required: false
|
||||||
Name string `url:"name,omitempty" json:"name,omitempty"`
|
Name string `url:"name,omitempty" json:"name,omitempty"`
|
||||||
@@ -51,6 +56,6 @@ func (sp StPolicy) UpdateRaw(ctx context.Context, req UpdateRequest) ([]byte, er
|
|||||||
|
|
||||||
url := "/cloudbroker/storage_policy/update"
|
url := "/cloudbroker/storage_policy/update"
|
||||||
|
|
||||||
res, err := sp.client.DecortApiCall(ctx, http.MethodPost, url, req)
|
res, err := sp.client.DecortApiCallCtype(ctx, http.MethodPost, url, constants.MIMEJSON, req)
|
||||||
return res, err
|
return res, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,6 +33,11 @@ type CreateRequest struct {
|
|||||||
// Native VLAN ID
|
// Native VLAN ID
|
||||||
// Required: false
|
// Required: false
|
||||||
NativeVLANID uint64 `url:"native_vlan_id,omitempty" json:"native_vlan_id,omitempty"`
|
NativeVLANID uint64 `url:"native_vlan_id,omitempty" json:"native_vlan_id,omitempty"`
|
||||||
|
|
||||||
|
// MTU
|
||||||
|
// Default value: 1500
|
||||||
|
// Required: false
|
||||||
|
MTU uint64 `url:"mtu,omitempty" json:"mtu,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create creates a user.
|
// Create creates a user.
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ type ItemTrunk struct {
|
|||||||
// MAC
|
// MAC
|
||||||
MAC string `json:"mac"`
|
MAC string `json:"mac"`
|
||||||
|
|
||||||
|
// MTU
|
||||||
|
MTU uint64 `json:"mtu"`
|
||||||
|
|
||||||
// Name of a trunk
|
// Name of a trunk
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,11 @@ type UpdateRequest struct {
|
|||||||
// New native VLAN ID
|
// New native VLAN ID
|
||||||
// Required: false
|
// Required: false
|
||||||
NativeVLANID uint64 `url:"native_vlan_id,omitempty" json:"native_vlan_id,omitempty"`
|
NativeVLANID uint64 `url:"native_vlan_id,omitempty" json:"native_vlan_id,omitempty"`
|
||||||
|
|
||||||
|
// MTU
|
||||||
|
// Default value: 1500
|
||||||
|
// Required: false
|
||||||
|
MTU uint64 `url:"mtu,omitempty" json:"mtu,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update updates a trunk
|
// Update updates a trunk
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package user
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
|
||||||
|
|
||||||
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
|
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v13/internal/validators"
|
||||||
)
|
)
|
||||||
@@ -14,9 +13,9 @@ type CreateRequest struct {
|
|||||||
// Required: true
|
// Required: true
|
||||||
Username string `url:"username" json:"username" validate:"required"`
|
Username string `url:"username" json:"username" validate:"required"`
|
||||||
|
|
||||||
// Email addresses of the user.
|
// Email address of the user.
|
||||||
// Required: true
|
// Required: true
|
||||||
EmailAddress []string `url:"emailaddress" json:"emailaddress" validate:"required"`
|
EmailAddress string `url:"emailaddress" json:"emailaddress" validate:"required"`
|
||||||
|
|
||||||
// Password of user
|
// Password of user
|
||||||
// Required: false
|
// Required: false
|
||||||
@@ -34,23 +33,18 @@ type CreateRequest struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create creates a user.
|
// Create creates a user.
|
||||||
func (u User) Create(ctx context.Context, req CreateRequest) (bool, error) {
|
func (u User) Create(ctx context.Context, req CreateRequest) (string, error) {
|
||||||
err := validators.ValidateRequest(req)
|
err := validators.ValidateRequest(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, validators.ValidationErrors(validators.GetErrors(err))
|
return "", validators.ValidationErrors(validators.GetErrors(err))
|
||||||
}
|
}
|
||||||
|
|
||||||
url := "/cloudbroker/user/create"
|
url := "/cloudbroker/user/create"
|
||||||
|
|
||||||
res, err := u.client.DecortApiCall(ctx, http.MethodPost, url, req)
|
res, err := u.client.DecortApiCall(ctx, http.MethodPost, url, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err := strconv.ParseBool(string(res))
|
return string(res), nil
|
||||||
if err != nil {
|
|
||||||
return false, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return result, nil
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,6 +28,11 @@ type GetAuditRequest struct {
|
|||||||
// Required: false
|
// Required: false
|
||||||
TimestampTo uint64 `url:"timestampTo,omitempty" json:"timestampTo,omitempty"`
|
TimestampTo uint64 `url:"timestampTo,omitempty" json:"timestampTo,omitempty"`
|
||||||
|
|
||||||
|
// Sort by a field, format +|-(field)
|
||||||
|
// Default: -timestamp
|
||||||
|
// Required: false
|
||||||
|
SortBy string `url:"sortBy,omitempty" json:"sortBy,omitempty" validate:"omitempty,sortBy"`
|
||||||
|
|
||||||
// Page number.
|
// Page number.
|
||||||
// Required: false
|
// Required: false
|
||||||
Page uint64 `url:"page,omitempty" json:"page,omitempty"`
|
Page uint64 `url:"page,omitempty" json:"page,omitempty"`
|
||||||
|
|||||||
@@ -104,16 +104,16 @@ type ItemAudit struct {
|
|||||||
Call string `json:"Call"`
|
Call string `json:"Call"`
|
||||||
|
|
||||||
// Response time
|
// Response time
|
||||||
ResponseTime ResponseTime `json:"Response Time"`
|
ResponseTime ResponseTime `json:"responsetime"`
|
||||||
|
|
||||||
// StatusCode
|
// StatusCode
|
||||||
StatusCode StatusCode `json:"Status Code"`
|
StatusCode StatusCode `json:"statuscode"`
|
||||||
|
|
||||||
// Guid
|
// Guid
|
||||||
GUID string `json:"Guid"`
|
GUID string `json:"Guid"`
|
||||||
|
|
||||||
// Time
|
// Time
|
||||||
Time float64 `json:"Time"`
|
Time float64 `json:"timestampEnd"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListAudits struct {
|
type ListAudits struct {
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ type ListGroupsRequest struct {
|
|||||||
// Required: false
|
// Required: false
|
||||||
DisplayName string `url:"display_name,omitempty" json:"display_name,omitempty"`
|
DisplayName string `url:"display_name,omitempty" json:"display_name,omitempty"`
|
||||||
|
|
||||||
|
// Owner display name filter
|
||||||
|
// Required: false
|
||||||
|
OwnerDisplayName string `url:"owner_display_name,omitempty" json:"owner_display_name,omitempty"`
|
||||||
|
|
||||||
// Page number for pagination
|
// Page number for pagination
|
||||||
// Required: false
|
// Required: false
|
||||||
Page uint64 `url:"page,omitempty" json:"page,omitempty"`
|
Page uint64 `url:"page,omitempty" json:"page,omitempty"`
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
package acsgroups
|
package acsgroups
|
||||||
|
|
||||||
type AccessGroupItem struct {
|
type AccessGroupItem struct {
|
||||||
Name string `json:"display_name"`
|
Name string `json:"display_name"`
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
|
Comment string `json:"comment"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type AccessGroupList struct {
|
type AccessGroupList struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user