v1.2.0
This commit is contained in:
@@ -11,11 +11,11 @@ import (
|
||||
type BackendCreateRequest struct {
|
||||
// ID of the load balancer instance to backendCreate
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
|
||||
// Must be unique among all backends of this load balancer - name of the new backend to create
|
||||
// Required: true
|
||||
BackendName string `url:"backendName"`
|
||||
BackendName string `url:"backendName" json:"backendName"`
|
||||
|
||||
// Algorithm
|
||||
// Should be one of:
|
||||
@@ -23,47 +23,47 @@ type BackendCreateRequest struct {
|
||||
// - static-rr
|
||||
// - leastconn
|
||||
// Required: false
|
||||
Algorithm string `url:"algorithm,omitempty"`
|
||||
Algorithm string `url:"algorithm,omitempty" json:"algorithm,omitempty"`
|
||||
|
||||
// Interval in milliseconds between two consecutive availability
|
||||
// checks of the server that is considered available
|
||||
// Required: false
|
||||
Inter uint64 `url:"inter,omitempty"`
|
||||
Inter uint64 `url:"inter,omitempty" json:"inter,omitempty"`
|
||||
|
||||
// Interval in milliseconds between two consecutive checks to
|
||||
// restore the availability of a server that is currently considered unavailable
|
||||
// Required: false
|
||||
DownInter uint64 `url:"downinter,omitempty"`
|
||||
DownInter uint64 `url:"downinter,omitempty" json:"downinter,omitempty"`
|
||||
|
||||
// Number of checks that the server must pass in order to get the available status
|
||||
// and be included in the balancing scheme again
|
||||
// Required: false
|
||||
Rise uint64 `url:"rise,omitempty"`
|
||||
Rise uint64 `url:"rise,omitempty" json:"rise,omitempty"`
|
||||
|
||||
// Number of consecutive failed availability checks,
|
||||
// after which the previously considered available server receives the status of
|
||||
// unavailable and is temporarily excluded from the balancing scheme
|
||||
// Required: false
|
||||
Fall uint64 `url:"fall,omitempty"`
|
||||
Fall uint64 `url:"fall,omitempty" json:"fall,omitempty"`
|
||||
|
||||
// Interval in milliseconds from the moment the server receives the available status,
|
||||
// after which the number of actually allowed connections to this server will be returned to 100% of the set limit
|
||||
// Required: false
|
||||
SlowStart uint64 `url:"slowstart,omitempty"`
|
||||
SlowStart uint64 `url:"slowstart,omitempty" json:"slowstart,omitempty"`
|
||||
|
||||
// Limit of simultaneous connections to the server. When this limit is reached,
|
||||
// the server is temporarily excluded from the balancing scheme
|
||||
// Required: false
|
||||
MaxConn uint64 `url:"maxconn,omitempty"`
|
||||
MaxConn uint64 `url:"maxconn,omitempty" json:"maxconn,omitempty"`
|
||||
|
||||
// Limit of connections waiting in the queue.
|
||||
// When this limit is reached, all subsequent connections will be forwarded to other servers
|
||||
// Required: false
|
||||
MaxQueue uint64 `url:"maxqueue,omitempty"`
|
||||
MaxQueue uint64 `url:"maxqueue,omitempty" json:"maxqueue,omitempty"`
|
||||
|
||||
// Server weight for use in weight balancing algorithms
|
||||
// Required: false
|
||||
Weight uint64 `url:"weight,omitempty"`
|
||||
Weight uint64 `url:"weight,omitempty" json:"weight,omitempty"`
|
||||
}
|
||||
|
||||
func (lbrq BackendCreateRequest) validate() error {
|
||||
|
||||
@@ -11,11 +11,11 @@ import (
|
||||
type BackendDeleteRequest struct {
|
||||
// ID of the load balancer instance to BackendDelete
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
|
||||
// Cannot be emtpy string - name of the backend to delete
|
||||
// Required: true
|
||||
BackendName string `url:"backendName"`
|
||||
BackendName string `url:"backendName" json:"backendName"`
|
||||
}
|
||||
|
||||
func (lbrq BackendDeleteRequest) validate() error {
|
||||
|
||||
@@ -11,64 +11,64 @@ import (
|
||||
type BackendServerAddRequest struct {
|
||||
// ID of the load balancer instance to BackendServerAdd
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
|
||||
// Must match one of the existing backens - name of the backend to add servers to
|
||||
// Required: true
|
||||
BackendName string `url:"backendName"`
|
||||
BackendName string `url:"backendName" json:"backendName"`
|
||||
|
||||
// Must be unique among all servers defined for this backend - name of the server definition to add
|
||||
// Required: true
|
||||
ServerName string `url:"serverName"`
|
||||
ServerName string `url:"serverName" json:"serverName"`
|
||||
|
||||
// IP address of the server
|
||||
// Required: true
|
||||
Address string `url:"address"`
|
||||
Address string `url:"address" json:"address"`
|
||||
|
||||
// Port number on the server
|
||||
// Required: true
|
||||
Port uint64 `url:"port"`
|
||||
Port uint64 `url:"port" json:"port"`
|
||||
|
||||
// Set to disabled if this server should be used regardless of its state
|
||||
// Required: false
|
||||
Check string `url:"check,omitempty"`
|
||||
Check string `url:"check,omitempty" json:"check,omitempty"`
|
||||
|
||||
// Interval in milliseconds between two consecutive availability checks of the server that is considered available
|
||||
// Required: false
|
||||
Inter uint64 `url:"inter,omitempty"`
|
||||
Inter uint64 `url:"inter,omitempty" json:"inter,omitempty"`
|
||||
|
||||
// Interval in milliseconds between two consecutive checks to restore
|
||||
// the availability of a server that is currently considered unavailable
|
||||
// Required: false
|
||||
DownInter uint64 `url:"downinter,omitempty"`
|
||||
DownInter uint64 `url:"downinter,omitempty" json:"downinter,omitempty"`
|
||||
|
||||
// Number of checks that the server must pass in order to get
|
||||
// the available status and be included in the balancing scheme again
|
||||
// Required: false
|
||||
Rise uint64 `url:"rise,omitempty"`
|
||||
Rise uint64 `url:"rise,omitempty" json:"rise,omitempty"`
|
||||
|
||||
// Number of consecutive failed availability checks,
|
||||
// after which the previously considered available server receives the status of unavailable and
|
||||
// is temporarily excluded from the balancing scheme
|
||||
// Required: false
|
||||
Fall uint64 `url:"fall,omitempty"`
|
||||
Fall uint64 `url:"fall,omitempty" json:"fall,omitempty"`
|
||||
|
||||
// Interval in milliseconds from the moment the server receives the available status,
|
||||
// after which the number of actually allowed connections to this server will be returned to 100% of the set limit
|
||||
// Required: false
|
||||
SlowStart uint64 `url:"slowstart,omitempty"`
|
||||
SlowStart uint64 `url:"slowstart,omitempty" json:"slowstart,omitempty"`
|
||||
|
||||
// Limit of simultaneous connections to the server. When this limit is reached, the server is temporarily excluded from the balancing scheme
|
||||
// Required: false
|
||||
MaxConn uint64 `url:"maxconn,omitempty"`
|
||||
MaxConn uint64 `url:"maxconn,omitempty" json:"maxconn,omitempty"`
|
||||
|
||||
// Limit of connections waiting in the queue. When this limit is reached, all subsequent connections will be forwarded to other servers
|
||||
// Required: false
|
||||
MaxQueue uint64 `url:"maxqueue,omitempty"`
|
||||
MaxQueue uint64 `url:"maxqueue,omitempty" json:"maxqueue,omitempty"`
|
||||
|
||||
// Server weight for use in weight balancing algorithms
|
||||
// Required: false
|
||||
Weight uint64 `url:"weight,omitempty"`
|
||||
Weight uint64 `url:"weight,omitempty" json:"weight,omitempty"`
|
||||
}
|
||||
|
||||
func (lbrq BackendServerAddRequest) validate() error {
|
||||
|
||||
@@ -11,15 +11,15 @@ import (
|
||||
type BackendServerDeleteRequest struct {
|
||||
// ID of the load balancer instance to BackendServerDelete
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
|
||||
// Must match one of the existing backens - name of the backend to add servers to
|
||||
// Required: true
|
||||
BackendName string `url:"backendName"`
|
||||
BackendName string `url:"backendName" json:"backendName"`
|
||||
|
||||
// Must be unique among all servers defined for this backend - name of the server definition to add
|
||||
// Required: true
|
||||
ServerName string `url:"serverName"`
|
||||
ServerName string `url:"serverName" json:"serverName"`
|
||||
}
|
||||
|
||||
func (lbrq BackendServerDeleteRequest) validate() error {
|
||||
|
||||
@@ -11,64 +11,64 @@ import (
|
||||
type BackendServerUpdateRequest struct {
|
||||
// ID of the load balancer instance to BackendServerAdd
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
|
||||
// Must match one of the existing backens - name of the backend to add servers to
|
||||
// Required: true
|
||||
BackendName string `url:"backendName"`
|
||||
BackendName string `url:"backendName" json:"backendName"`
|
||||
|
||||
// Must be unique among all servers defined for this backend - name of the server definition to add
|
||||
// Required: true
|
||||
ServerName string `url:"serverName"`
|
||||
ServerName string `url:"serverName" json:"serverName"`
|
||||
|
||||
// IP address of the server
|
||||
// Required: true
|
||||
Address string `url:"address"`
|
||||
Address string `url:"address" json:"address"`
|
||||
|
||||
// Port number on the server
|
||||
// Required: true
|
||||
Port uint64 `url:"port"`
|
||||
Port uint64 `url:"port" json:"port"`
|
||||
|
||||
// Set to disabled if this server should be used regardless of its state
|
||||
// Required: false
|
||||
Check string `url:"check,omitempty"`
|
||||
Check string `url:"check,omitempty" json:"check,omitempty"`
|
||||
|
||||
// Interval in milliseconds between two consecutive availability checks of the server that is considered available
|
||||
// Required: false
|
||||
Inter uint64 `url:"inter,omitempty"`
|
||||
Inter uint64 `url:"inter,omitempty" json:"inter,omitempty"`
|
||||
|
||||
// Interval in milliseconds between two consecutive checks to restore
|
||||
// the availability of a server that is currently considered unavailable
|
||||
// Required: false
|
||||
DownInter uint64 `url:"downinter,omitempty"`
|
||||
DownInter uint64 `url:"downinter,omitempty" json:"downinter,omitempty"`
|
||||
|
||||
// Number of checks that the server must pass in order to get
|
||||
// the available status and be included in the balancing scheme again
|
||||
// Required: false
|
||||
Rise uint64 `url:"rise,omitempty"`
|
||||
Rise uint64 `url:"rise,omitempty" json:"rise,omitempty"`
|
||||
|
||||
// Number of consecutive failed availability checks,
|
||||
// after which the previously considered available server receives the status of unavailable and
|
||||
// is temporarily excluded from the balancing scheme
|
||||
// Required: false
|
||||
Fall uint64 `url:"fall,omitempty"`
|
||||
Fall uint64 `url:"fall,omitempty" json:"fall,omitempty"`
|
||||
|
||||
// Interval in milliseconds from the moment the server receives the available status,
|
||||
// after which the number of actually allowed connections to this server will be returned to 100% of the set limit
|
||||
// Required: false
|
||||
SlowStart uint64 `url:"slowstart,omitempty"`
|
||||
SlowStart uint64 `url:"slowstart,omitempty" json:"slowstart,omitempty"`
|
||||
|
||||
// Limit of simultaneous connections to the server. When this limit is reached, the server is temporarily excluded from the balancing scheme
|
||||
// Required: false
|
||||
MaxConn uint64 `url:"maxconn,omitempty"`
|
||||
MaxConn uint64 `url:"maxconn,omitempty" json:"maxconn,omitempty"`
|
||||
|
||||
// Limit of connections waiting in the queue. When this limit is reached, all subsequent connections will be forwarded to other servers
|
||||
// Required: false
|
||||
MaxQueue uint64 `url:"maxqueue,omitempty"`
|
||||
MaxQueue uint64 `url:"maxqueue,omitempty" json:"maxqueue,omitempty"`
|
||||
|
||||
// Server weight for use in weight balancing algorithms
|
||||
// Required: false
|
||||
Weight uint64 `url:"weight,omitempty"`
|
||||
Weight uint64 `url:"weight,omitempty" json:"weight,omitempty"`
|
||||
}
|
||||
|
||||
func (lbrq BackendServerUpdateRequest) validate() error {
|
||||
|
||||
@@ -11,11 +11,11 @@ import (
|
||||
type BackendUpdateRequest struct {
|
||||
// ID of the load balancer instance to backendCreate
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
|
||||
// Must be unique among all backends of this load balancer - name of the new backend to create
|
||||
// Required: true
|
||||
BackendName string `url:"backendName"`
|
||||
BackendName string `url:"backendName" json:"backendName"`
|
||||
|
||||
// Algorithm
|
||||
// Should be one of:
|
||||
@@ -23,47 +23,47 @@ type BackendUpdateRequest struct {
|
||||
// - static-rr
|
||||
// - leastconn
|
||||
// Required: false
|
||||
Algorithm string `url:"algorithm,omitempty"`
|
||||
Algorithm string `url:"algorithm,omitempty" json:"algorithm,omitempty"`
|
||||
|
||||
// Interval in milliseconds between two consecutive availability
|
||||
// checks of the server that is considered available
|
||||
// Required: false
|
||||
Inter uint64 `url:"inter,omitempty"`
|
||||
Inter uint64 `url:"inter,omitempty" json:"inter,omitempty"`
|
||||
|
||||
// Interval in milliseconds between two consecutive checks to
|
||||
// restore the availability of a server that is currently considered unavailable
|
||||
// Required: false
|
||||
DownInter uint64 `url:"downinter,omitempty"`
|
||||
DownInter uint64 `url:"downinter,omitempty" json:"downinter,omitempty"`
|
||||
|
||||
// Number of checks that the server must pass in order to get the available status
|
||||
// and be included in the balancing scheme again
|
||||
// Required: false
|
||||
Rise uint64 `url:"rise,omitempty"`
|
||||
Rise uint64 `url:"rise,omitempty" json:"rise,omitempty"`
|
||||
|
||||
// Number of consecutive failed availability checks,
|
||||
// after which the previously considered available server receives the status of
|
||||
// unavailable and is temporarily excluded from the balancing scheme
|
||||
// Required: false
|
||||
Fall uint64 `url:"fall,omitempty"`
|
||||
Fall uint64 `url:"fall,omitempty" json:"fall,omitempty"`
|
||||
|
||||
// Interval in milliseconds from the moment the server receives the available status,
|
||||
// after which the number of actually allowed connections to this server will be returned to 100% of the set limit
|
||||
// Required: false
|
||||
SlowStart uint64 `url:"slowstart,omitempty"`
|
||||
SlowStart uint64 `url:"slowstart,omitempty" json:"slowstart,omitempty"`
|
||||
|
||||
// Limit of simultaneous connections to the server. When this limit is reached,
|
||||
// the server is temporarily excluded from the balancing scheme
|
||||
// Required: false
|
||||
MaxConn uint64 `url:"maxconn,omitempty"`
|
||||
MaxConn uint64 `url:"maxconn,omitempty" json:"maxconn,omitempty"`
|
||||
|
||||
// Limit of connections waiting in the queue.
|
||||
// When this limit is reached, all subsequent connections will be forwarded to other servers
|
||||
// Required: false
|
||||
MaxQueue uint64 `url:"maxqueue,omitempty"`
|
||||
MaxQueue uint64 `url:"maxqueue,omitempty" json:"maxqueue,omitempty"`
|
||||
|
||||
// Server weight for use in weight balancing algorithms
|
||||
// Required: false
|
||||
Weight uint64 `url:"weight,omitempty"`
|
||||
Weight uint64 `url:"weight,omitempty" json:"weight,omitempty"`
|
||||
}
|
||||
|
||||
func (lbrq BackendUpdateRequest) validate() error {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
type ConfigResetRequest struct {
|
||||
// ID of the load balancer instance to ConfigReset
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
}
|
||||
|
||||
func (lbrq ConfigResetRequest) validate() error {
|
||||
|
||||
@@ -11,28 +11,28 @@ import (
|
||||
type CreateRequest struct {
|
||||
// ID of the resource group where this load balancer instance will be located
|
||||
// Required: true
|
||||
RGID uint64 `url:"rgId"`
|
||||
RGID uint64 `url:"rgId" json:"rgId"`
|
||||
|
||||
// Name of the load balancer.
|
||||
// Must be unique among all load balancers in this Resource Group
|
||||
// Required: true
|
||||
Name string `url:"name"`
|
||||
Name string `url:"name" json:"name"`
|
||||
|
||||
// External network to connect this load balancer to
|
||||
// Required: true
|
||||
ExtNetID uint64 `url:"extnetId"`
|
||||
ExtNetID uint64 `url:"extnetId" json:"extnetId"`
|
||||
|
||||
// Internal network (VINS) to connect this load balancer to
|
||||
// Required: true
|
||||
VINSID uint64 `url:"vinsId"`
|
||||
VINSID uint64 `url:"vinsId" json:"vinsId"`
|
||||
|
||||
// Start now Load balancer
|
||||
// Required: false
|
||||
Start bool `url:"start"`
|
||||
Start bool `url:"start" json:"start"`
|
||||
|
||||
// Text description of this load balancer
|
||||
// Required: false
|
||||
Description string `url:"desc,omitempty"`
|
||||
Description string `url:"desc,omitempty" json:"desc,omitempty"`
|
||||
}
|
||||
|
||||
func (lbrq CreateRequest) validate() error {
|
||||
|
||||
@@ -11,11 +11,11 @@ import (
|
||||
type DeleteRequest struct {
|
||||
// ID of the load balancer instance to delete
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
|
||||
// Set to true to delete load balancer immediately bypassing recycle bin
|
||||
// Required: false
|
||||
Permanently bool `url:"permanently,omitempty"`
|
||||
Permanently bool `url:"permanently,omitempty" json:"permanently,omitempty"`
|
||||
}
|
||||
|
||||
func (lbrq DeleteRequest) validate() error {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
type DisableEnableRequest struct {
|
||||
// ID of the load balancer instance to disable/enable
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
}
|
||||
|
||||
func (lbrq DisableEnableRequest) validate() error {
|
||||
|
||||
@@ -11,26 +11,26 @@ import (
|
||||
type FrontendBindRequest struct {
|
||||
// ID of the load balancer instance to FrontendBind
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
|
||||
// Name of the frontend to update
|
||||
// Required: true
|
||||
FrontendName string `url:"frontendName"`
|
||||
FrontendName string `url:"frontendName" json:"frontendName"`
|
||||
|
||||
// Name of the binding to update
|
||||
// Required: true
|
||||
BindingName string `url:"bindingName"`
|
||||
BindingName string `url:"bindingName" json:"bindingName"`
|
||||
|
||||
// If specified must be within the IP range of either Ext Net or ViNS,
|
||||
// where this load balancer is connected - new IP address to use for this binding.
|
||||
// If omitted, current IP address is retained
|
||||
// Required: false
|
||||
BindingAddress string `url:"bindingAddress,omitempty"`
|
||||
BindingAddress string `url:"bindingAddress,omitempty" json:"bindingAddress,omitempty"`
|
||||
|
||||
// New port number to use for this binding.
|
||||
// If omitted, current port number is retained
|
||||
// Required: false
|
||||
BindingPort uint64 `url:"bindingPort,omitempty"`
|
||||
BindingPort uint64 `url:"bindingPort,omitempty" json:"bindingPort,omitempty"`
|
||||
}
|
||||
|
||||
func (lbrq FrontendBindRequest) validate() error {
|
||||
|
||||
@@ -11,15 +11,15 @@ import (
|
||||
type FrontendBindDeleteRequest struct {
|
||||
// ID of the load balancer instance to FrontendBindDelete
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
|
||||
// Name of the frontend to delete
|
||||
// Required: true
|
||||
FrontendName string `url:"frontendName"`
|
||||
FrontendName string `url:"frontendName" json:"frontendName"`
|
||||
|
||||
// Name of the binding to delete
|
||||
// Required: true
|
||||
BindingName string `url:"bindingName"`
|
||||
BindingName string `url:"bindingName" json:"bindingName"`
|
||||
}
|
||||
|
||||
func (lbrq FrontendBindDeleteRequest) validate() error {
|
||||
|
||||
@@ -11,26 +11,26 @@ import (
|
||||
type FrontendBindUpdateRequest struct {
|
||||
// ID of the load balancer instance to FrontendBindUpdate
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
|
||||
// Name of the frontend to update
|
||||
// Required: true
|
||||
FrontendName string `url:"frontendName"`
|
||||
FrontendName string `url:"frontendName" json:"frontendName"`
|
||||
|
||||
// Name of the binding to update
|
||||
// Required: true
|
||||
BindingName string `url:"bindingName"`
|
||||
BindingName string `url:"bindingName" json:"bindingName"`
|
||||
|
||||
// If specified must be within the IP range of either Ext Net or ViNS,
|
||||
// where this load balancer is connected - new IP address to use for this binding.
|
||||
// If omitted, current IP address is retained
|
||||
// Required: false
|
||||
BindingAddress string `url:"bindingAddress,omitempty"`
|
||||
BindingAddress string `url:"bindingAddress,omitempty" json:"bindingAddress,omitempty"`
|
||||
|
||||
// New port number to use for this binding.
|
||||
// If omitted, current port number is retained
|
||||
// Required: false
|
||||
BindingPort uint64 `url:"bindingPort,omitempty"`
|
||||
BindingPort uint64 `url:"bindingPort,omitempty" json:"bindingPort,omitempty"`
|
||||
}
|
||||
|
||||
func (lbrq FrontendBindUpdateRequest) validate() error {
|
||||
|
||||
@@ -11,17 +11,17 @@ import (
|
||||
type FrontendCreateRequest struct {
|
||||
// ID of the load balancer instance to FrontendCreate
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
|
||||
// Must be unique among all frontends of
|
||||
// this load balancer - name of the new frontend to create
|
||||
// Required: true
|
||||
FrontendName string `url:"frontendName"`
|
||||
FrontendName string `url:"frontendName" json:"frontendName"`
|
||||
|
||||
// Should be one of the backends existing on
|
||||
// this load balancer - name of the backend to use
|
||||
// Required: true
|
||||
BackendName string `url:"backendName"`
|
||||
BackendName string `url:"backendName" json:"backendName"`
|
||||
}
|
||||
|
||||
func (lbrq FrontendCreateRequest) validate() error {
|
||||
|
||||
@@ -11,11 +11,11 @@ import (
|
||||
type FrontendDeleteRequest struct {
|
||||
// ID of the load balancer instance to FrontendDelete
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
|
||||
// Name of the frontend to delete
|
||||
// Required: true
|
||||
FrontendName string `url:"frontendName"`
|
||||
FrontendName string `url:"frontendName" json:"frontendName"`
|
||||
}
|
||||
|
||||
func (lbrq FrontendDeleteRequest) validate() error {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
type GetRequest struct {
|
||||
// ID of the load balancer to get details for
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
}
|
||||
|
||||
func (lbrq GetRequest) validate() error {
|
||||
|
||||
@@ -10,15 +10,15 @@ import (
|
||||
type ListRequest struct {
|
||||
// Included deleted load balancers
|
||||
// Required: false
|
||||
IncludeDeleted bool `url:"includedeleted,omitempty"`
|
||||
IncludeDeleted bool `url:"includedeleted,omitempty" json:"includedeleted,omitempty"`
|
||||
|
||||
// Page number
|
||||
// Required: false
|
||||
Page uint64 `url:"page,omitempty"`
|
||||
Page uint64 `url:"page,omitempty" json:"page,omitempty"`
|
||||
|
||||
// Page size
|
||||
// Required: false
|
||||
Size uint64 `url:"size,omitempty"`
|
||||
Size uint64 `url:"size,omitempty" json:"size,omitempty"`
|
||||
}
|
||||
|
||||
// List gets list all load balancers
|
||||
|
||||
@@ -10,11 +10,11 @@ import (
|
||||
type ListDeletedRequest struct {
|
||||
// Page number
|
||||
// Required: false
|
||||
Page uint64 `url:"page,omitempty"`
|
||||
Page uint64 `url:"page,omitempty" json:"page,omitempty"`
|
||||
|
||||
// Page size
|
||||
// Required: true
|
||||
Size uint64 `url:"size,omitempty"`
|
||||
Size uint64 `url:"size,omitempty" json:"size,omitempty"`
|
||||
}
|
||||
|
||||
// ListDeleted gets list of deleted load balancers
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
type RestartRequest struct {
|
||||
// ID of the load balancer instance to restart
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
}
|
||||
|
||||
func (lbrq RestartRequest) validate() error {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
type RestoreRequest struct {
|
||||
// ID of the load balancer instance to restore
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
}
|
||||
|
||||
func (lbrq RestoreRequest) validate() error {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
type StartRequest struct {
|
||||
// ID of the load balancer instance to start
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
}
|
||||
|
||||
func (lbrq StartRequest) validate() error {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
type StopRequest struct {
|
||||
// ID of the load balancer instance to stop
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
}
|
||||
|
||||
func (lbrq StopRequest) validate() error {
|
||||
|
||||
@@ -11,12 +11,12 @@ import (
|
||||
type UpdateRequest struct {
|
||||
// ID of the load balancer to update
|
||||
// Required: true
|
||||
LBID uint64 `url:"lbId"`
|
||||
LBID uint64 `url:"lbId" json:"lbId"`
|
||||
|
||||
// New description of this load balancer.
|
||||
// If omitted, current description is retained
|
||||
// Required: true
|
||||
Description string `url:"desc"`
|
||||
Description string `url:"desc" json:"desc"`
|
||||
}
|
||||
|
||||
func (lbrq UpdateRequest) validate() error {
|
||||
|
||||
Reference in New Issue
Block a user