lb

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BandwidthBillingScheme

type BandwidthBillingScheme struct {
	BillingCycleId    string                              `json:"BillingCycleId"`
	BillingItems      []BandwidthBillingSchemeBillingItem `json:"BillingItems"`
	BillingMethod     string                              `json:"BillingMethod"`
	BillingSchemeId   string                              `json:"BillingSchemeId"`
	BillingSchemeName string                              `json:"BillingSchemeName"`
	BillingType       string                              `json:"BillingType"`
	GoodsId           int                                 `json:"GoodsId"`
}

type BandwidthBillingSchemeBillingItem

type BandwidthBillingSchemeBillingItem struct {
	AttrId string `json:"AttrId"`
	Id     string `json:"Id"`
	Key    string `json:"Key"`
	Name   string `json:"Name"`
	Size   int    `json:"Size"`
}

type BandwidthBillingSchemeData

type BandwidthBillingSchemeData struct {
	BillingScheme []BandwidthBillingScheme `json:"BillingScheme"`
	ConfId        int                      `json:"ConfId"`
	ConfName      string                   `json:"ConfName"`
}

type BandwidthBillingSchemeRequest

type BandwidthBillingSchemeRequest struct {
	*cdshttp.BaseRequest
	RegionCode        string `json:"RegionCode"`
	AvailableZoneCode string `json:"AvailableZoneCode"`
	Type              string `json:"Type"`
	VpcId             string `json:"VpcId"`
}

func NewBandwidthBillingSchemeRequest

func NewBandwidthBillingSchemeRequest() (request *BandwidthBillingSchemeRequest)

func (*BandwidthBillingSchemeRequest) FromJsonString

func (r *BandwidthBillingSchemeRequest) FromJsonString(s string) error

func (*BandwidthBillingSchemeRequest) ToJsonString

func (r *BandwidthBillingSchemeRequest) ToJsonString() string

type BandwidthBillingSchemeResponse

type BandwidthBillingSchemeResponse struct {
	*cdshttp.BaseResponse

	Code    string                       `json:"Code"`
	Data    []BandwidthBillingSchemeData `json:"Data"`
	Message string                       `json:"Message"`
}

func NewBandwidthBillingSchemeResponse

func NewBandwidthBillingSchemeResponse() (response *BandwidthBillingSchemeResponse)

func (*BandwidthBillingSchemeResponse) FromJsonString

func (r *BandwidthBillingSchemeResponse) FromJsonString(s string) error

func (*BandwidthBillingSchemeResponse) ToJsonString

func (r *BandwidthBillingSchemeResponse) ToJsonString() string

type Client

type Client struct {
	utils.Client
}

func NewClient

func NewClient(credential *utils.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func (*Client) BandwidthBillingScheme

func (c *Client) BandwidthBillingScheme(request *BandwidthBillingSchemeRequest) (response *BandwidthBillingSchemeResponse, err error)

func (*Client) DescribeTask

func (c *Client) DescribeTask(request *DescribeTaskRequest) (response *DescribeTaskResponse, err error)

func (*Client) DescribeVpcSlb

func (c *Client) DescribeVpcSlb(request *DescribeVpcSlbRequest) (response *DescribeVpcSlbResponse, err error)

func (*Client) PackageCreateSlb

func (c *Client) PackageCreateSlb(request *PackageCreateSlbRequest) (response *PackageCreateSlbResponse, err error)

func (*Client) VpcSlbBillingScheme

func (c *Client) VpcSlbBillingScheme(request *VpcSlbBillingSchemeRequest) (response *VpcSlbBillingSchemeResponse, err error)

func (*Client) VpcSlbClearListen

func (c *Client) VpcSlbClearListen(request *VpcSlbClearListenRequest) (response *VpcSlbClearListenResponse, err error)

func (*Client) VpcSlbUpdateListen

func (c *Client) VpcSlbUpdateListen(request *VpcSlbUpdateListenRequest) (response *VpcSlbUpdateListenResponse, err error)

type DescribeTaskRequest

type DescribeTaskRequest struct {
	*cdshttp.BaseRequest
	TaskId string `json:"TaskId"`
}

func NewDescribeTaskRequest

func NewDescribeTaskRequest() (request *DescribeTaskRequest)

func (*DescribeTaskRequest) FromJsonString

func (r *DescribeTaskRequest) FromJsonString(s string) error

func (*DescribeTaskRequest) ToJsonString

func (r *DescribeTaskRequest) ToJsonString() string

type DescribeTaskResponse

type DescribeTaskResponse struct {
	*cdshttp.BaseResponse
	Data      DescribeTaskResponseData `json:"Data"`
	Code      string                   `json:"Code"`
	Message   string                   `json:"Message"`
	RequestId string                   `json:"RequestId"`
}

func NewDescribeTaskResponse

func NewDescribeTaskResponse() (response *DescribeTaskResponse)

func (*DescribeTaskResponse) FromJsonString

func (r *DescribeTaskResponse) FromJsonString(s string) error

func (*DescribeTaskResponse) ToJsonString

func (r *DescribeTaskResponse) ToJsonString() string

type DescribeTaskResponseData

type DescribeTaskResponseData struct {
	TaskStatus string `json:"TaskStatus"`
	ResourceId string `json:"ResourceId"`
}

type DescribeVpcSlbRequest

type DescribeVpcSlbRequest struct {
	*cdshttp.BaseRequest
	SlbID   string `json:"SlbId,omitempty"`
	SlbName string `json:"SlbName,omitempty"`
}

func NewDescribeVpcSlbRequest

func NewDescribeVpcSlbRequest() (request *DescribeVpcSlbRequest)

func (*DescribeVpcSlbRequest) FromJsonString

func (r *DescribeVpcSlbRequest) FromJsonString(s string) error

func (*DescribeVpcSlbRequest) ToJsonString

func (r *DescribeVpcSlbRequest) ToJsonString() string

type DescribeVpcSlbResponse

type DescribeVpcSlbResponse struct {
	*cdshttp.BaseResponse

	Data      DescribeVpcSlbResponseSlbInfo `json:"Data"`
	Code      string                        `json:"Code"`
	Message   string                        `json:"Message"`
	RequestId string                        `json:"RequestId"`
}

func NewDescribeVpcSlbResponse

func NewDescribeVpcSlbResponse() (response *DescribeVpcSlbResponse)

func (*DescribeVpcSlbResponse) FromJsonString

func (r *DescribeVpcSlbResponse) FromJsonString(s string) error

func (*DescribeVpcSlbResponse) ToJsonString

func (r *DescribeVpcSlbResponse) ToJsonString() string

type DescribeVpcSlbResponseListenInfo

type DescribeVpcSlbResponseListenInfo struct {
	ListenId       string                         `json:"ListenId"`
	ListenPort     string                         `json:"ListenPort"`
	ListenProtocol string                         `json:"ListenProtocol"`
	RsList         []DescribeVpcSlbResponseRsInfo `json:"RsList"`
}

type DescribeVpcSlbResponseRsInfo

type DescribeVpcSlbResponseRsInfo struct {
	RsIp   string `json:"RsIp"`
	RsPort string `json:"RsPort"`
}

type DescribeVpcSlbResponseSlbInfo

type DescribeVpcSlbResponseSlbInfo struct {
	BandwidthId   string                          `json:"BandwidthId"`
	BandwidthName string                          `json:"BandwidthName"`
	Qos           int                             `json:"Qos"`
	SlbId         string                          `json:"SlbId"`
	SlbName       string                          `json:"SlbName"`
	SlbStatus     string                          `json:"SlbStatus"`
	VipList       []DescribeVpcSlbResponseVipInfo `json:"VipList"`
}

type DescribeVpcSlbResponseVipInfo

type DescribeVpcSlbResponseVipInfo struct {
	ListenList interface{} `json:"ListenList"`
	Vip        string      `json:"Vip"`
	VipId      string      `json:"VipId"`
	VipType    string      `json:"VipType"`
}

type PackageCreateSlbBandwidthInfo

type PackageCreateSlbBandwidthInfo struct {
	Name            string `json:"Name"`
	BillingSchemeId string `json:"BillingSchemeId"`
	Qos             int    `json:"Qos"`
	Type            string `json:"Type"`
	SubjectId       int    `json:"SubjectId,omitempty"`
	IsAutoRenewal   bool   `json:"IsAutoRenewal,omitempty"`
	IsToMonth       bool   `json:"IsToMonth,omitempty"`
	Duration        int    `json:"Duration,omitempty"`
	EipCount        int    `json:"EipCount"`
}

type PackageCreateSlbInfo

type PackageCreateSlbInfo struct {
	BillingSchemeId string `json:"BillingSchemeId"`
	NetType         string `json:"NetType"`
	Name            string `json:"Name"`
	SubjectId       int    `json:"SubjectId,omitempty"`
}

type PackageCreateSlbRequest

type PackageCreateSlbRequest struct {
	*cdshttp.BaseRequest
	UserId            string                        `json:"-"`
	CustomerId        string                        `json:"-"`
	VpcId             string                        `json:"VpcId"`
	AvailableZoneCode string                        `json:"AvailableZoneCode"`
	Level             int                           `json:"Level,omitempty"`
	SlbInfo           PackageCreateSlbInfo          `json:"SlbInfo"`
	BandwidthInfo     PackageCreateSlbBandwidthInfo `json:"BandwidthInfo"`
}

func NewPackageCreateSlbRequest

func NewPackageCreateSlbRequest() (request *PackageCreateSlbRequest)

func (*PackageCreateSlbRequest) FromJsonString

func (r *PackageCreateSlbRequest) FromJsonString(s string) error

func (*PackageCreateSlbRequest) ToJsonString

func (r *PackageCreateSlbRequest) ToJsonString() string

type PackageCreateSlbResponse

type PackageCreateSlbResponse struct {
	*cdshttp.BaseResponse
	Data      PackageCreateSlbResponseData `json:"Data"`
	Code      string                       `json:"Code"`
	Message   string                       `json:"Message"`
	RequestId string                       `json:"RequestId"`
	TaskId    string                       `json:"TaskId"`
}

func NewPackageCreateSlbResponse

func NewPackageCreateSlbResponse() (response *PackageCreateSlbResponse)

func (*PackageCreateSlbResponse) FromJsonString

func (r *PackageCreateSlbResponse) FromJsonString(s string) error

func (*PackageCreateSlbResponse) ToJsonString

func (r *PackageCreateSlbResponse) ToJsonString() string

type PackageCreateSlbResponseData

type PackageCreateSlbResponseData struct {
	SlbId string `json:"SlbId"`
}

type VpcSlbBillingSchemeRequest

type VpcSlbBillingSchemeRequest struct {
	*cdshttp.BaseRequest
	AvailableZoneCode string `json:"AvailableZoneCode"`
	BillingMethod     string `json:"BillingMethod"`
	NetType           string `json:"NetType"`
}

func NewVpcSlbBillingSchemeRequest

func NewVpcSlbBillingSchemeRequest() (request *VpcSlbBillingSchemeRequest)

func (*VpcSlbBillingSchemeRequest) FromJsonString

func (r *VpcSlbBillingSchemeRequest) FromJsonString(s string) error

func (*VpcSlbBillingSchemeRequest) ToJsonString

func (r *VpcSlbBillingSchemeRequest) ToJsonString() string

type VpcSlbBillingSchemeResponse

type VpcSlbBillingSchemeResponse struct {
	*cdshttp.BaseResponse
	Data      []VpcSlbBillingSchemeResponseData `json:"Data"`
	Code      string                            `json:"Code"`
	Message   string                            `json:"Message"`
	RequestId string                            `json:"RequestId"`
}

func NewVpcSlbBillingSchemeResponse

func NewVpcSlbBillingSchemeResponse() (response *VpcSlbBillingSchemeResponse)

func (*VpcSlbBillingSchemeResponse) FromJsonString

func (r *VpcSlbBillingSchemeResponse) FromJsonString(s string) error

func (*VpcSlbBillingSchemeResponse) ToJsonString

func (r *VpcSlbBillingSchemeResponse) ToJsonString() string

type VpcSlbBillingSchemeResponseBillingItem

type VpcSlbBillingSchemeResponseBillingItem struct {
	Key    string `json:"Key"`
	Id     string `json:"Id"`
	Name   string `json:"Name"`
	AttrId string `json:"AttrId"`
	Size   int    `json:"Size"`
}

type VpcSlbBillingSchemeResponseData

type VpcSlbBillingSchemeResponseData struct {
	GoodsId           int                                      `json:"GoodsId"`
	BillingMethod     string                                   `json:"BillingMethod"`
	BillingType       string                                   `json:"BillingType"`
	BillingSchemeId   string                                   `json:"BillingSchemeId"`
	BillingSchemeName string                                   `json:"BillingSchemeName"`
	BillingCycleId    string                                   `json:"BillingCycleId"`
	BillingItems      []VpcSlbBillingSchemeResponseBillingItem `json:"BillingItems"`
	ConfId            int                                      `json:"ConfId"`
	ConfName          string                                   `json:"ConfName"`
	Description       string                                   `json:"Description"`
}

type VpcSlbClearListenRequest

type VpcSlbClearListenRequest struct {
	*cdshttp.BaseRequest
	SlbId string `json:"SlbId"`
}

func NewVpcSlbClearListenRequest

func NewVpcSlbClearListenRequest() (request *VpcSlbClearListenRequest)

func (*VpcSlbClearListenRequest) FromJsonString

func (r *VpcSlbClearListenRequest) FromJsonString(s string) error

func (*VpcSlbClearListenRequest) ToJsonString

func (r *VpcSlbClearListenRequest) ToJsonString() string

type VpcSlbClearListenResponse

type VpcSlbClearListenResponse struct {
	*cdshttp.BaseResponse
	Data      VpcSlbClearListenResponseData `json:"Data"`
	Code      string                        `json:"Code"`
	Message   string                        `json:"Message"`
	RequestId string                        `json:"RequestId"`
	TaskId    string                        `json:"TaskId"`
}

func NewVpcSlbClearListenResponse

func NewVpcSlbClearListenResponse() (response *VpcSlbClearListenResponse)

func (*VpcSlbClearListenResponse) FromJsonString

func (r *VpcSlbClearListenResponse) FromJsonString(s string) error

func (*VpcSlbClearListenResponse) ToJsonString

func (r *VpcSlbClearListenResponse) ToJsonString() string

type VpcSlbClearListenResponseData

type VpcSlbClearListenResponseData struct {
}

type VpcSlbUpdateListenRequest

type VpcSlbUpdateListenRequest struct {
	*cdshttp.BaseRequest
	SlbId        string                            `json:"SlbId"`
	Platform     string                            `json:"Platform"`
	ListenList   []VpcSlbUpdateListenRequestListen `json:"ListenList"`
	OperatorType string                            `json:"OperatorType"`
}

func NewVpcSlbUpdateListenRequest

func NewVpcSlbUpdateListenRequest() (request *VpcSlbUpdateListenRequest)

func (*VpcSlbUpdateListenRequest) FromJsonString

func (r *VpcSlbUpdateListenRequest) FromJsonString(s string) error

func (*VpcSlbUpdateListenRequest) ToJsonString

func (r *VpcSlbUpdateListenRequest) ToJsonString() string

type VpcSlbUpdateListenRequestHealthCheck

type VpcSlbUpdateListenRequestHealthCheck struct {
	Protocol         string `json:"Protocol"`
	Virtualhost      string `json:"Virtualhost"`
	Port             int    `json:"Port,omitempty"`
	Path             string `json:"Path,omitempty"`
	StatusCode       int    `json:"StatusCode,omitempty"`
	ConnectTimeout   int    `json:"ConnectTimeout,omitempty"`
	DelayLoop        int    `json:"DelayLoop,omitempty"`
	Retry            int    `json:"Retry,omitempty"`
	DelayBeforeRetry int    `json:"DelayBeforeRetry,omitempty"`
}

type VpcSlbUpdateListenRequestListen

type VpcSlbUpdateListenRequestListen struct {
	ListenIp       string                               `json:"ListenIp"`
	ListenPort     int                                  `json:"ListenPort"`
	ListenProtocol string                               `json:"ListenProtocol"`
	Scheduler      string                               `json:"Scheduler"`
	ListenName     string                               `json:"ListenName"`
	Timeout        int                                  `json:"Timeout"`
	RsList         []VpcSlbUpdateListenRequestRs        `json:"RsList"`
	HealthCheck    VpcSlbUpdateListenRequestHealthCheck `json:"HealthCheck"`
}

type VpcSlbUpdateListenRequestRs

type VpcSlbUpdateListenRequestRs struct {
	RsId    string `json:"RsId"`
	RsName  string `json:"RsName"`
	RsType  string `json:"RsType"`
	RsWanIp string `json:"RsWanIp"`
	RsLanIp string `json:"RsLanIp"`
	RsPort  int    `json:"RsPort"`
	Weight  int    `json:"Weight"`
}

type VpcSlbUpdateListenResponse

type VpcSlbUpdateListenResponse struct {
	*cdshttp.BaseResponse
	Data      VpcSlbUpdateListenResponseData `json:"Data"`
	Code      string                         `json:"Code"`
	Message   string                         `json:"Message"`
	RequestId string                         `json:"RequestId"`
	TaskId    string                         `json:"TaskId"`
}

func NewVpcSlbUpdateListenResponse

func NewVpcSlbUpdateListenResponse() (response *VpcSlbUpdateListenResponse)

func (*VpcSlbUpdateListenResponse) FromJsonString

func (r *VpcSlbUpdateListenResponse) FromJsonString(s string) error

func (*VpcSlbUpdateListenResponse) ToJsonString

func (r *VpcSlbUpdateListenResponse) ToJsonString() string

type VpcSlbUpdateListenResponseData

type VpcSlbUpdateListenResponseData struct {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL