v1.2.0
This commit is contained in:
@@ -13,30 +13,30 @@ import (
|
||||
type PFWAddRequest struct {
|
||||
// ID of compute instance
|
||||
// Required: true
|
||||
ComputeID uint64 `url:"computeId"`
|
||||
ComputeID uint64 `url:"computeId" json:"computeId"`
|
||||
|
||||
// External start port number for the rule
|
||||
// Required: true
|
||||
PublicPortStart uint64 `url:"publicPortStart"`
|
||||
PublicPortStart uint64 `url:"publicPortStart" json:"publicPortStart"`
|
||||
|
||||
// End port number (inclusive) for the ranged rule
|
||||
// Required: false
|
||||
PublicPortEnd uint64 `url:"publicPortEnd,omitempty"`
|
||||
PublicPortEnd uint64 `url:"publicPortEnd,omitempty" json:"publicPortEnd,omitempty"`
|
||||
|
||||
// Internal base port number
|
||||
// Required: true
|
||||
LocalBasePort uint64 `url:"localBasePort"`
|
||||
LocalBasePort uint64 `url:"localBasePort" json:"localBasePort"`
|
||||
|
||||
// Network protocol
|
||||
// Should be one of:
|
||||
// - tcp
|
||||
// - udp
|
||||
// Required: true
|
||||
Proto string `url:"proto"`
|
||||
Proto string `url:"proto" json:"proto"`
|
||||
|
||||
// Reason for action
|
||||
// Required: false
|
||||
Reason string `url:"reason,omitempty"`
|
||||
Reason string `url:"reason,omitempty" json:"reason,omitempty"`
|
||||
}
|
||||
|
||||
func (crq PFWAddRequest) validate() error {
|
||||
|
||||
Reference in New Issue
Block a user