This commit is contained in:
arsvolkov committed 2026-09-04 17:29:39 +04:00
1 parent fe3c7bf63a
commit dbd979b6f3
23 files changed
+450 -130

No files matched your search

+3
View File
@@ -90,6 +90,9 @@ type ListRequest struct {
// Exclude audit lines from response
// Required: false
ExcludeAuditLines bool `url:"exclude_audit_lines,omitempty" json:"exclude_audit_lines,omitempty"`
// Public Session ID
PublicSessionID string `json:"public_session_id"`
}
// List gets audit records for the specified account object
+6 -1
View File
@@ -2,7 +2,6 @@ package audit
// Main info about audit
type RecordAudit struct {
// Arguments
Arguments string `json:"args"`
@@ -41,6 +40,9 @@ type RecordAudit struct {
// User
User string `json:"user"`
// Public Session ID
PublicSessionID string `json:"public_session_id"`
}
// Main info about audit
@@ -81,6 +83,9 @@ type ItemAudit struct {
// User
User string `json:"user"`
// Public Session ID
PublicSessionID string `json:"public_session_id"`
// TTL
TTL string `json:"_ttl"`
}
-4
View File
@@ -18,10 +18,6 @@ type ListVGPURequest struct {
// Required: false
GPUID uint64 `url:"gpuId,omitempty" json:"gpuId,omitempty"`
// Find by type
// Required: false
Type string `url:"type,omitempty" json:"type,omitempty"`
// Find by status
// Required: false
Status string `url:"status,omitempty" json:"status,omitempty"`
+2 -2
View File
@@ -73,10 +73,10 @@ type Rule struct {
Protocol string `json:"protocol"`
// Priority Code Point (0-7). L2 marking
PCPTag uint64 `json:"pcp_tag"`
PCPTag *uint64 `json:"pcp_tag"`
// DSCP value (0-63). L3 marking
DSCPValue uint64 `json:"dscp_value"`
DSCPValue *uint64 `json:"dscp_value"`
// Source IP address
SrcIP string `json:"src_ip"`
+2 -2
View File
@@ -16,11 +16,11 @@ type UpdateRequest struct {
// New QoS policy name
// Required: false
Name string `url:"name,omitempty" json:"name,omitempty"`
Name *string `url:"name,omitempty" json:"name,omitempty"`
// New QoS policy description
// Required: false
Description string `url:"description,omitempty" json:"description,omitempty"`
Description *string `url:"description,omitempty" json:"description,omitempty"`
}
func (qp QoSPolicy) Update(ctx context.Context, req UpdateRequest) (*RecordQoSPolicy, error) {
+3
View File
@@ -329,6 +329,9 @@ type ItemVNFInterface struct {
// QOS
QOS QOS `json:"qos"`
// List of QoS policies
QoSPolicies []uint64 `json:"qos_policies"`
// Target
Target string `json:"target"`