This commit is contained in:
dayterr
2026-04-17 17:10:10 +03:00
parent cd67633a52
commit 5e5d90e24f
22 changed files with 752 additions and 112 deletions

View File

@@ -9,7 +9,7 @@ import (
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v14/internal/validators"
)
// DetachLogicalPortsRequest struct to detach an logical port from a network object group
// DetachLogicalPortsRequest struct to detach logical ports from a network object group
type DetachLogicalPortsRequest struct {
// ID of a network object group
// Required: true
@@ -23,13 +23,19 @@ type DetachLogicalPortsRequest struct {
// Required: true
VersionID uint64 `url:"version_id" json:"version_id" validate:"required"`
// Port bindings
// Required: true
PortBindings []DetachLogicalPortBinding `url:"port_bindings" json:"port_bindings" validate:"required,dive"`
}
type DetachLogicalPortBinding struct {
// ID of a logical port
// Required: true
LogicalPortID string `url:"logical_port_id" json:"logical_port_id" validate:"required"`
PortID string `url:"port_id" json:"port_id" validate:"required"`
// Version of a logical port
// Required: true
LogicalPortVersion uint64 `url:"logical_port_version" json:"logical_port_version" validate:"required"`
PortVersion uint64 `url:"port_version" json:"port_version" validate:"required"`
}
// DetachLogicalPorts detaches logical ports from a network object group