Explorar o código

Generated 2014-05-15 for Slb.

sdk-team %!s(int64=6) %!d(string=hai) anos
pai
achega
e8e8e810b9

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2020-01-08 Version: v1.60.323
+- Generated 2014-05-15 for `Slb`.
+- Supported upload Regional AlicloudCertificate.
+
 2020-01-08 Version: v1.60.322
 - Generated 2014-08-15 for `Rds`.
 

+ 40 - 31
services/slb/create_load_balancer_tcp_listener.go

@@ -76,37 +76,46 @@ func (client *Client) CreateLoadBalancerTCPListenerWithCallback(request *CreateL
 // CreateLoadBalancerTCPListenerRequest is the request struct for api CreateLoadBalancerTCPListener
 type CreateLoadBalancerTCPListenerRequest struct {
 	*requests.RpcRequest
-	ResourceOwnerId           requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	HealthCheckURI            string           `position:"Query" name:"HealthCheckURI"`
-	AclStatus                 string           `position:"Query" name:"AclStatus"`
-	AclType                   string           `position:"Query" name:"AclType"`
-	EstablishedTimeout        requests.Integer `position:"Query" name:"EstablishedTimeout"`
-	PersistenceTimeout        requests.Integer `position:"Query" name:"PersistenceTimeout"`
-	VpcIds                    string           `position:"Query" name:"VpcIds"`
-	VServerGroupId            string           `position:"Query" name:"VServerGroupId"`
-	AclId                     string           `position:"Query" name:"AclId"`
-	HealthCheckMethod         string           `position:"Query" name:"HealthCheckMethod"`
-	HealthCheckDomain         string           `position:"Query" name:"HealthCheckDomain"`
-	OwnerId                   requests.Integer `position:"Query" name:"OwnerId"`
-	Tags                      string           `position:"Query" name:"Tags"`
-	LoadBalancerId            string           `position:"Query" name:"LoadBalancerId"`
-	MasterSlaveServerGroupId  string           `position:"Query" name:"MasterSlaveServerGroupId"`
-	BackendServerPort         requests.Integer `position:"Query" name:"BackendServerPort"`
-	HealthCheckInterval       requests.Integer `position:"Query" name:"healthCheckInterval"`
-	AccessKeyId               string           `position:"Query" name:"access_key_id"`
-	HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"`
-	Description               string           `position:"Query" name:"Description"`
-	UnhealthyThreshold        requests.Integer `position:"Query" name:"UnhealthyThreshold"`
-	HealthyThreshold          requests.Integer `position:"Query" name:"HealthyThreshold"`
-	Scheduler                 string           `position:"Query" name:"Scheduler"`
-	MaxConnection             requests.Integer `position:"Query" name:"MaxConnection"`
-	ListenerPort              requests.Integer `position:"Query" name:"ListenerPort"`
-	HealthCheckType           string           `position:"Query" name:"HealthCheckType"`
-	ResourceOwnerAccount      string           `position:"Query" name:"ResourceOwnerAccount"`
-	Bandwidth                 requests.Integer `position:"Query" name:"Bandwidth"`
-	OwnerAccount              string           `position:"Query" name:"OwnerAccount"`
-	HealthCheckConnectPort    requests.Integer `position:"Query" name:"HealthCheckConnectPort"`
-	HealthCheckHttpCode       string           `position:"Query" name:"HealthCheckHttpCode"`
+	ResourceOwnerId           requests.Integer                          `position:"Query" name:"ResourceOwnerId"`
+	HealthCheckURI            string                                    `position:"Query" name:"HealthCheckURI"`
+	AclStatus                 string                                    `position:"Query" name:"AclStatus"`
+	AclType                   string                                    `position:"Query" name:"AclType"`
+	EstablishedTimeout        requests.Integer                          `position:"Query" name:"EstablishedTimeout"`
+	PersistenceTimeout        requests.Integer                          `position:"Query" name:"PersistenceTimeout"`
+	VpcIds                    string                                    `position:"Query" name:"VpcIds"`
+	VServerGroupId            string                                    `position:"Query" name:"VServerGroupId"`
+	AclId                     string                                    `position:"Query" name:"AclId"`
+	PortRange                 *[]CreateLoadBalancerTCPListenerPortRange `position:"Query" name:"PortRange"  type:"Repeated"`
+	HealthCheckMethod         string                                    `position:"Query" name:"HealthCheckMethod"`
+	HealthCheckDomain         string                                    `position:"Query" name:"HealthCheckDomain"`
+	OwnerId                   requests.Integer                          `position:"Query" name:"OwnerId"`
+	Tags                      string                                    `position:"Query" name:"Tags"`
+	LoadBalancerId            string                                    `position:"Query" name:"LoadBalancerId"`
+	MasterSlaveServerGroupId  string                                    `position:"Query" name:"MasterSlaveServerGroupId"`
+	BackendServerPort         requests.Integer                          `position:"Query" name:"BackendServerPort"`
+	HealthCheckInterval       requests.Integer                          `position:"Query" name:"healthCheckInterval"`
+	ConnectionDrain           string                                    `position:"Query" name:"ConnectionDrain"`
+	AccessKeyId               string                                    `position:"Query" name:"access_key_id"`
+	HealthCheckConnectTimeout requests.Integer                          `position:"Query" name:"HealthCheckConnectTimeout"`
+	Description               string                                    `position:"Query" name:"Description"`
+	UnhealthyThreshold        requests.Integer                          `position:"Query" name:"UnhealthyThreshold"`
+	HealthyThreshold          requests.Integer                          `position:"Query" name:"HealthyThreshold"`
+	Scheduler                 string                                    `position:"Query" name:"Scheduler"`
+	MaxConnection             requests.Integer                          `position:"Query" name:"MaxConnection"`
+	ListenerPort              requests.Integer                          `position:"Query" name:"ListenerPort"`
+	HealthCheckType           string                                    `position:"Query" name:"HealthCheckType"`
+	ResourceOwnerAccount      string                                    `position:"Query" name:"ResourceOwnerAccount"`
+	Bandwidth                 requests.Integer                          `position:"Query" name:"Bandwidth"`
+	OwnerAccount              string                                    `position:"Query" name:"OwnerAccount"`
+	ConnectionDrainTimeout    requests.Integer                          `position:"Query" name:"ConnectionDrainTimeout"`
+	HealthCheckConnectPort    requests.Integer                          `position:"Query" name:"HealthCheckConnectPort"`
+	HealthCheckHttpCode       string                                    `position:"Query" name:"HealthCheckHttpCode"`
+}
+
+// CreateLoadBalancerTCPListenerPortRange is a repeated param struct in CreateLoadBalancerTCPListenerRequest
+type CreateLoadBalancerTCPListenerPortRange struct {
+	StartPort string `name:"StartPort"`
+	EndPort   string `name:"EndPort"`
 }
 
 // CreateLoadBalancerTCPListenerResponse is the response struct for api CreateLoadBalancerTCPListener

+ 36 - 27
services/slb/create_load_balancer_udp_listener.go

@@ -76,33 +76,42 @@ func (client *Client) CreateLoadBalancerUDPListenerWithCallback(request *CreateL
 // CreateLoadBalancerUDPListenerRequest is the request struct for api CreateLoadBalancerUDPListener
 type CreateLoadBalancerUDPListenerRequest struct {
 	*requests.RpcRequest
-	AccessKeyId               string           `position:"Query" name:"access_key_id"`
-	HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"`
-	ResourceOwnerId           requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	Description               string           `position:"Query" name:"Description"`
-	UnhealthyThreshold        requests.Integer `position:"Query" name:"UnhealthyThreshold"`
-	HealthyThreshold          requests.Integer `position:"Query" name:"HealthyThreshold"`
-	AclStatus                 string           `position:"Query" name:"AclStatus"`
-	Scheduler                 string           `position:"Query" name:"Scheduler"`
-	AclType                   string           `position:"Query" name:"AclType"`
-	MaxConnection             requests.Integer `position:"Query" name:"MaxConnection"`
-	PersistenceTimeout        requests.Integer `position:"Query" name:"PersistenceTimeout"`
-	VpcIds                    string           `position:"Query" name:"VpcIds"`
-	VServerGroupId            string           `position:"Query" name:"VServerGroupId"`
-	AclId                     string           `position:"Query" name:"AclId"`
-	ListenerPort              requests.Integer `position:"Query" name:"ListenerPort"`
-	ResourceOwnerAccount      string           `position:"Query" name:"ResourceOwnerAccount"`
-	Bandwidth                 requests.Integer `position:"Query" name:"Bandwidth"`
-	OwnerAccount              string           `position:"Query" name:"OwnerAccount"`
-	OwnerId                   requests.Integer `position:"Query" name:"OwnerId"`
-	Tags                      string           `position:"Query" name:"Tags"`
-	LoadBalancerId            string           `position:"Query" name:"LoadBalancerId"`
-	MasterSlaveServerGroupId  string           `position:"Query" name:"MasterSlaveServerGroupId"`
-	HealthCheckReq            string           `position:"Query" name:"healthCheckReq"`
-	BackendServerPort         requests.Integer `position:"Query" name:"BackendServerPort"`
-	HealthCheckInterval       requests.Integer `position:"Query" name:"healthCheckInterval"`
-	HealthCheckExp            string           `position:"Query" name:"healthCheckExp"`
-	HealthCheckConnectPort    requests.Integer `position:"Query" name:"HealthCheckConnectPort"`
+	ResourceOwnerId           requests.Integer                          `position:"Query" name:"ResourceOwnerId"`
+	AclStatus                 string                                    `position:"Query" name:"AclStatus"`
+	AclType                   string                                    `position:"Query" name:"AclType"`
+	PersistenceTimeout        requests.Integer                          `position:"Query" name:"PersistenceTimeout"`
+	VpcIds                    string                                    `position:"Query" name:"VpcIds"`
+	VServerGroupId            string                                    `position:"Query" name:"VServerGroupId"`
+	AclId                     string                                    `position:"Query" name:"AclId"`
+	PortRange                 *[]CreateLoadBalancerUDPListenerPortRange `position:"Query" name:"PortRange"  type:"Repeated"`
+	OwnerId                   requests.Integer                          `position:"Query" name:"OwnerId"`
+	Tags                      string                                    `position:"Query" name:"Tags"`
+	LoadBalancerId            string                                    `position:"Query" name:"LoadBalancerId"`
+	MasterSlaveServerGroupId  string                                    `position:"Query" name:"MasterSlaveServerGroupId"`
+	HealthCheckReq            string                                    `position:"Query" name:"healthCheckReq"`
+	BackendServerPort         requests.Integer                          `position:"Query" name:"BackendServerPort"`
+	HealthCheckInterval       requests.Integer                          `position:"Query" name:"healthCheckInterval"`
+	HealthCheckExp            string                                    `position:"Query" name:"healthCheckExp"`
+	ConnectionDrain           string                                    `position:"Query" name:"ConnectionDrain"`
+	AccessKeyId               string                                    `position:"Query" name:"access_key_id"`
+	HealthCheckConnectTimeout requests.Integer                          `position:"Query" name:"HealthCheckConnectTimeout"`
+	Description               string                                    `position:"Query" name:"Description"`
+	UnhealthyThreshold        requests.Integer                          `position:"Query" name:"UnhealthyThreshold"`
+	HealthyThreshold          requests.Integer                          `position:"Query" name:"HealthyThreshold"`
+	Scheduler                 string                                    `position:"Query" name:"Scheduler"`
+	MaxConnection             requests.Integer                          `position:"Query" name:"MaxConnection"`
+	ListenerPort              requests.Integer                          `position:"Query" name:"ListenerPort"`
+	ResourceOwnerAccount      string                                    `position:"Query" name:"ResourceOwnerAccount"`
+	Bandwidth                 requests.Integer                          `position:"Query" name:"Bandwidth"`
+	OwnerAccount              string                                    `position:"Query" name:"OwnerAccount"`
+	ConnectionDrainTimeout    requests.Integer                          `position:"Query" name:"ConnectionDrainTimeout"`
+	HealthCheckConnectPort    requests.Integer                          `position:"Query" name:"HealthCheckConnectPort"`
+}
+
+// CreateLoadBalancerUDPListenerPortRange is a repeated param struct in CreateLoadBalancerUDPListenerRequest
+type CreateLoadBalancerUDPListenerPortRange struct {
+	StartPort string `name:"StartPort"`
+	EndPort   string `name:"EndPort"`
 }
 
 // CreateLoadBalancerUDPListenerResponse is the response struct for api CreateLoadBalancerUDPListener

+ 1 - 1
services/slb/describe_load_balancer_https_listener_attribute.go

@@ -92,7 +92,7 @@ type DescribeLoadBalancerHTTPSListenerAttributeResponse struct {
 	RequestId              string                                                       `json:"RequestId" xml:"RequestId"`
 	ListenerPort           int                                                          `json:"ListenerPort" xml:"ListenerPort"`
 	BackendServerPort      int                                                          `json:"BackendServerPort" xml:"BackendServerPort"`
-	BackendProtocol        int                                                          `json:"BackendProtocol" xml:"BackendProtocol"`
+	BackendProtocol        string                                                       `json:"BackendProtocol" xml:"BackendProtocol"`
 	Bandwidth              int                                                          `json:"Bandwidth" xml:"Bandwidth"`
 	Status                 string                                                       `json:"Status" xml:"Status"`
 	SecurityStatus         string                                                       `json:"SecurityStatus" xml:"SecurityStatus"`

+ 32 - 29
services/slb/describe_load_balancer_tcp_listener_attribute.go

@@ -89,35 +89,38 @@ type DescribeLoadBalancerTCPListenerAttributeRequest struct {
 // DescribeLoadBalancerTCPListenerAttributeResponse is the response struct for api DescribeLoadBalancerTCPListenerAttribute
 type DescribeLoadBalancerTCPListenerAttributeResponse struct {
 	*responses.BaseResponse
-	RequestId                 string                                           `json:"RequestId" xml:"RequestId"`
-	ListenerPort              int                                              `json:"ListenerPort" xml:"ListenerPort"`
-	BackendServerPort         int                                              `json:"BackendServerPort" xml:"BackendServerPort"`
-	Status                    string                                           `json:"Status" xml:"Status"`
-	Bandwidth                 int                                              `json:"Bandwidth" xml:"Bandwidth"`
-	Scheduler                 string                                           `json:"Scheduler" xml:"Scheduler"`
-	SynProxy                  string                                           `json:"SynProxy" xml:"SynProxy"`
-	PersistenceTimeout        int                                              `json:"PersistenceTimeout" xml:"PersistenceTimeout"`
-	EstablishedTimeout        int                                              `json:"EstablishedTimeout" xml:"EstablishedTimeout"`
-	HealthCheck               string                                           `json:"HealthCheck" xml:"HealthCheck"`
-	HealthyThreshold          int                                              `json:"HealthyThreshold" xml:"HealthyThreshold"`
-	UnhealthyThreshold        int                                              `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"`
-	HealthCheckConnectTimeout int                                              `json:"HealthCheckConnectTimeout" xml:"HealthCheckConnectTimeout"`
-	HealthCheckConnectPort    int                                              `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"`
-	HealthCheckInterval       int                                              `json:"HealthCheckInterval" xml:"HealthCheckInterval"`
-	HealthCheckHttpCode       string                                           `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"`
-	HealthCheckDomain         string                                           `json:"HealthCheckDomain" xml:"HealthCheckDomain"`
-	HealthCheckURI            string                                           `json:"HealthCheckURI" xml:"HealthCheckURI"`
-	HealthCheckType           string                                           `json:"HealthCheckType" xml:"HealthCheckType"`
-	HealthCheckMethod         string                                           `json:"HealthCheckMethod" xml:"HealthCheckMethod"`
-	MaxConnection             int                                              `json:"MaxConnection" xml:"MaxConnection"`
-	VServerGroupId            string                                           `json:"VServerGroupId" xml:"VServerGroupId"`
-	MasterSlaveServerGroupId  string                                           `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"`
-	AclId                     string                                           `json:"AclId" xml:"AclId"`
-	AclType                   string                                           `json:"AclType" xml:"AclType"`
-	AclStatus                 string                                           `json:"AclStatus" xml:"AclStatus"`
-	VpcIds                    string                                           `json:"VpcIds" xml:"VpcIds"`
-	Description               string                                           `json:"Description" xml:"Description"`
-	AclIds                    AclIdsInDescribeLoadBalancerTCPListenerAttribute `json:"AclIds" xml:"AclIds"`
+	RequestId                 string                                               `json:"RequestId" xml:"RequestId"`
+	ListenerPort              int                                                  `json:"ListenerPort" xml:"ListenerPort"`
+	BackendServerPort         int                                                  `json:"BackendServerPort" xml:"BackendServerPort"`
+	Status                    string                                               `json:"Status" xml:"Status"`
+	Bandwidth                 int                                                  `json:"Bandwidth" xml:"Bandwidth"`
+	Scheduler                 string                                               `json:"Scheduler" xml:"Scheduler"`
+	SynProxy                  string                                               `json:"SynProxy" xml:"SynProxy"`
+	PersistenceTimeout        int                                                  `json:"PersistenceTimeout" xml:"PersistenceTimeout"`
+	EstablishedTimeout        int                                                  `json:"EstablishedTimeout" xml:"EstablishedTimeout"`
+	HealthCheck               string                                               `json:"HealthCheck" xml:"HealthCheck"`
+	HealthyThreshold          int                                                  `json:"HealthyThreshold" xml:"HealthyThreshold"`
+	UnhealthyThreshold        int                                                  `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"`
+	HealthCheckConnectTimeout int                                                  `json:"HealthCheckConnectTimeout" xml:"HealthCheckConnectTimeout"`
+	HealthCheckConnectPort    int                                                  `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"`
+	HealthCheckInterval       int                                                  `json:"HealthCheckInterval" xml:"HealthCheckInterval"`
+	HealthCheckHttpCode       string                                               `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"`
+	HealthCheckDomain         string                                               `json:"HealthCheckDomain" xml:"HealthCheckDomain"`
+	HealthCheckURI            string                                               `json:"HealthCheckURI" xml:"HealthCheckURI"`
+	HealthCheckType           string                                               `json:"HealthCheckType" xml:"HealthCheckType"`
+	HealthCheckMethod         string                                               `json:"HealthCheckMethod" xml:"HealthCheckMethod"`
+	MaxConnection             int                                                  `json:"MaxConnection" xml:"MaxConnection"`
+	VServerGroupId            string                                               `json:"VServerGroupId" xml:"VServerGroupId"`
+	MasterSlaveServerGroupId  string                                               `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"`
+	AclId                     string                                               `json:"AclId" xml:"AclId"`
+	AclType                   string                                               `json:"AclType" xml:"AclType"`
+	AclStatus                 string                                               `json:"AclStatus" xml:"AclStatus"`
+	VpcIds                    string                                               `json:"VpcIds" xml:"VpcIds"`
+	Description               string                                               `json:"Description" xml:"Description"`
+	ConnectionDrain           string                                               `json:"ConnectionDrain" xml:"ConnectionDrain"`
+	ConnectionDrainTimeout    int                                                  `json:"ConnectionDrainTimeout" xml:"ConnectionDrainTimeout"`
+	AclIds                    AclIdsInDescribeLoadBalancerTCPListenerAttribute     `json:"AclIds" xml:"AclIds"`
+	PortRanges                PortRangesInDescribeLoadBalancerTCPListenerAttribute `json:"PortRanges" xml:"PortRanges"`
 }
 
 // CreateDescribeLoadBalancerTCPListenerAttributeRequest creates a request to invoke DescribeLoadBalancerTCPListenerAttribute API

+ 27 - 24
services/slb/describe_load_balancer_udp_listener_attribute.go

@@ -89,30 +89,33 @@ type DescribeLoadBalancerUDPListenerAttributeRequest struct {
 // DescribeLoadBalancerUDPListenerAttributeResponse is the response struct for api DescribeLoadBalancerUDPListenerAttribute
 type DescribeLoadBalancerUDPListenerAttributeResponse struct {
 	*responses.BaseResponse
-	RequestId                 string                                           `json:"RequestId" xml:"RequestId"`
-	ListenerPort              int                                              `json:"ListenerPort" xml:"ListenerPort"`
-	BackendServerPort         int                                              `json:"BackendServerPort" xml:"BackendServerPort"`
-	Status                    string                                           `json:"Status" xml:"Status"`
-	Bandwidth                 int                                              `json:"Bandwidth" xml:"Bandwidth"`
-	Scheduler                 string                                           `json:"Scheduler" xml:"Scheduler"`
-	PersistenceTimeout        int                                              `json:"PersistenceTimeout" xml:"PersistenceTimeout"`
-	HealthCheck               string                                           `json:"HealthCheck" xml:"HealthCheck"`
-	HealthyThreshold          int                                              `json:"HealthyThreshold" xml:"HealthyThreshold"`
-	UnhealthyThreshold        int                                              `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"`
-	HealthCheckConnectTimeout int                                              `json:"HealthCheckConnectTimeout" xml:"HealthCheckConnectTimeout"`
-	HealthCheckConnectPort    int                                              `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"`
-	HealthCheckInterval       int                                              `json:"HealthCheckInterval" xml:"HealthCheckInterval"`
-	HealthCheckReq            string                                           `json:"HealthCheckReq" xml:"HealthCheckReq"`
-	HealthCheckExp            string                                           `json:"HealthCheckExp" xml:"HealthCheckExp"`
-	MaxConnection             int                                              `json:"MaxConnection" xml:"MaxConnection"`
-	VServerGroupId            string                                           `json:"VServerGroupId" xml:"VServerGroupId"`
-	MasterSlaveServerGroupId  string                                           `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"`
-	AclId                     string                                           `json:"AclId" xml:"AclId"`
-	AclType                   string                                           `json:"AclType" xml:"AclType"`
-	AclStatus                 string                                           `json:"AclStatus" xml:"AclStatus"`
-	VpcIds                    string                                           `json:"VpcIds" xml:"VpcIds"`
-	Description               string                                           `json:"Description" xml:"Description"`
-	AclIds                    AclIdsInDescribeLoadBalancerUDPListenerAttribute `json:"AclIds" xml:"AclIds"`
+	RequestId                 string                                               `json:"RequestId" xml:"RequestId"`
+	ListenerPort              int                                                  `json:"ListenerPort" xml:"ListenerPort"`
+	BackendServerPort         int                                                  `json:"BackendServerPort" xml:"BackendServerPort"`
+	Status                    string                                               `json:"Status" xml:"Status"`
+	Bandwidth                 int                                                  `json:"Bandwidth" xml:"Bandwidth"`
+	Scheduler                 string                                               `json:"Scheduler" xml:"Scheduler"`
+	PersistenceTimeout        int                                                  `json:"PersistenceTimeout" xml:"PersistenceTimeout"`
+	HealthCheck               string                                               `json:"HealthCheck" xml:"HealthCheck"`
+	HealthyThreshold          int                                                  `json:"HealthyThreshold" xml:"HealthyThreshold"`
+	UnhealthyThreshold        int                                                  `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"`
+	HealthCheckConnectTimeout int                                                  `json:"HealthCheckConnectTimeout" xml:"HealthCheckConnectTimeout"`
+	HealthCheckConnectPort    int                                                  `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"`
+	HealthCheckInterval       int                                                  `json:"HealthCheckInterval" xml:"HealthCheckInterval"`
+	HealthCheckReq            string                                               `json:"HealthCheckReq" xml:"HealthCheckReq"`
+	HealthCheckExp            string                                               `json:"HealthCheckExp" xml:"HealthCheckExp"`
+	MaxConnection             int                                                  `json:"MaxConnection" xml:"MaxConnection"`
+	VServerGroupId            string                                               `json:"VServerGroupId" xml:"VServerGroupId"`
+	MasterSlaveServerGroupId  string                                               `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"`
+	AclId                     string                                               `json:"AclId" xml:"AclId"`
+	AclType                   string                                               `json:"AclType" xml:"AclType"`
+	AclStatus                 string                                               `json:"AclStatus" xml:"AclStatus"`
+	VpcIds                    string                                               `json:"VpcIds" xml:"VpcIds"`
+	Description               string                                               `json:"Description" xml:"Description"`
+	ConnectionDrain           string                                               `json:"ConnectionDrain" xml:"ConnectionDrain"`
+	ConnectionDrainTimeout    int                                                  `json:"ConnectionDrainTimeout" xml:"ConnectionDrainTimeout"`
+	AclIds                    AclIdsInDescribeLoadBalancerUDPListenerAttribute     `json:"AclIds" xml:"AclIds"`
+	PortRanges                PortRangesInDescribeLoadBalancerUDPListenerAttribute `json:"PortRanges" xml:"PortRanges"`
 }
 
 // CreateDescribeLoadBalancerUDPListenerAttributeRequest creates a request to invoke DescribeLoadBalancerUDPListenerAttribute API

+ 42 - 33
services/slb/set_load_balancer_tcp_listener_attribute.go

@@ -76,39 +76,48 @@ func (client *Client) SetLoadBalancerTCPListenerAttributeWithCallback(request *S
 // SetLoadBalancerTCPListenerAttributeRequest is the request struct for api SetLoadBalancerTCPListenerAttribute
 type SetLoadBalancerTCPListenerAttributeRequest struct {
 	*requests.RpcRequest
-	ResourceOwnerId           requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	HealthCheckURI            string           `position:"Query" name:"HealthCheckURI"`
-	AclStatus                 string           `position:"Query" name:"AclStatus"`
-	AclType                   string           `position:"Query" name:"AclType"`
-	MasterSlaveServerGroup    string           `position:"Query" name:"MasterSlaveServerGroup"`
-	EstablishedTimeout        requests.Integer `position:"Query" name:"EstablishedTimeout"`
-	PersistenceTimeout        requests.Integer `position:"Query" name:"PersistenceTimeout"`
-	VpcIds                    string           `position:"Query" name:"VpcIds"`
-	VServerGroupId            string           `position:"Query" name:"VServerGroupId"`
-	AclId                     string           `position:"Query" name:"AclId"`
-	HealthCheckMethod         string           `position:"Query" name:"HealthCheckMethod"`
-	HealthCheckDomain         string           `position:"Query" name:"HealthCheckDomain"`
-	SynProxy                  string           `position:"Query" name:"SynProxy"`
-	OwnerId                   requests.Integer `position:"Query" name:"OwnerId"`
-	Tags                      string           `position:"Query" name:"Tags"`
-	LoadBalancerId            string           `position:"Query" name:"LoadBalancerId"`
-	MasterSlaveServerGroupId  string           `position:"Query" name:"MasterSlaveServerGroupId"`
-	HealthCheckInterval       requests.Integer `position:"Query" name:"HealthCheckInterval"`
-	AccessKeyId               string           `position:"Query" name:"access_key_id"`
-	HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"`
-	Description               string           `position:"Query" name:"Description"`
-	UnhealthyThreshold        requests.Integer `position:"Query" name:"UnhealthyThreshold"`
-	HealthyThreshold          requests.Integer `position:"Query" name:"HealthyThreshold"`
-	Scheduler                 string           `position:"Query" name:"Scheduler"`
-	MaxConnection             requests.Integer `position:"Query" name:"MaxConnection"`
-	ListenerPort              requests.Integer `position:"Query" name:"ListenerPort"`
-	HealthCheckType           string           `position:"Query" name:"HealthCheckType"`
-	ResourceOwnerAccount      string           `position:"Query" name:"ResourceOwnerAccount"`
-	Bandwidth                 requests.Integer `position:"Query" name:"Bandwidth"`
-	OwnerAccount              string           `position:"Query" name:"OwnerAccount"`
-	HealthCheckConnectPort    requests.Integer `position:"Query" name:"HealthCheckConnectPort"`
-	HealthCheckHttpCode       string           `position:"Query" name:"HealthCheckHttpCode"`
-	VServerGroup              string           `position:"Query" name:"VServerGroup"`
+	ResourceOwnerId           requests.Integer                                `position:"Query" name:"ResourceOwnerId"`
+	HealthCheckURI            string                                          `position:"Query" name:"HealthCheckURI"`
+	AclStatus                 string                                          `position:"Query" name:"AclStatus"`
+	AclType                   string                                          `position:"Query" name:"AclType"`
+	MasterSlaveServerGroup    string                                          `position:"Query" name:"MasterSlaveServerGroup"`
+	EstablishedTimeout        requests.Integer                                `position:"Query" name:"EstablishedTimeout"`
+	PersistenceTimeout        requests.Integer                                `position:"Query" name:"PersistenceTimeout"`
+	VpcIds                    string                                          `position:"Query" name:"VpcIds"`
+	VServerGroupId            string                                          `position:"Query" name:"VServerGroupId"`
+	AclId                     string                                          `position:"Query" name:"AclId"`
+	PortRange                 *[]SetLoadBalancerTCPListenerAttributePortRange `position:"Query" name:"PortRange"  type:"Repeated"`
+	HealthCheckMethod         string                                          `position:"Query" name:"HealthCheckMethod"`
+	HealthCheckDomain         string                                          `position:"Query" name:"HealthCheckDomain"`
+	SynProxy                  string                                          `position:"Query" name:"SynProxy"`
+	OwnerId                   requests.Integer                                `position:"Query" name:"OwnerId"`
+	Tags                      string                                          `position:"Query" name:"Tags"`
+	LoadBalancerId            string                                          `position:"Query" name:"LoadBalancerId"`
+	MasterSlaveServerGroupId  string                                          `position:"Query" name:"MasterSlaveServerGroupId"`
+	HealthCheckInterval       requests.Integer                                `position:"Query" name:"HealthCheckInterval"`
+	ConnectionDrain           string                                          `position:"Query" name:"ConnectionDrain"`
+	AccessKeyId               string                                          `position:"Query" name:"access_key_id"`
+	HealthCheckConnectTimeout requests.Integer                                `position:"Query" name:"HealthCheckConnectTimeout"`
+	Description               string                                          `position:"Query" name:"Description"`
+	UnhealthyThreshold        requests.Integer                                `position:"Query" name:"UnhealthyThreshold"`
+	HealthyThreshold          requests.Integer                                `position:"Query" name:"HealthyThreshold"`
+	Scheduler                 string                                          `position:"Query" name:"Scheduler"`
+	MaxConnection             requests.Integer                                `position:"Query" name:"MaxConnection"`
+	ListenerPort              requests.Integer                                `position:"Query" name:"ListenerPort"`
+	HealthCheckType           string                                          `position:"Query" name:"HealthCheckType"`
+	ResourceOwnerAccount      string                                          `position:"Query" name:"ResourceOwnerAccount"`
+	Bandwidth                 requests.Integer                                `position:"Query" name:"Bandwidth"`
+	OwnerAccount              string                                          `position:"Query" name:"OwnerAccount"`
+	ConnectionDrainTimeout    requests.Integer                                `position:"Query" name:"ConnectionDrainTimeout"`
+	HealthCheckConnectPort    requests.Integer                                `position:"Query" name:"HealthCheckConnectPort"`
+	HealthCheckHttpCode       string                                          `position:"Query" name:"HealthCheckHttpCode"`
+	VServerGroup              string                                          `position:"Query" name:"VServerGroup"`
+}
+
+// SetLoadBalancerTCPListenerAttributePortRange is a repeated param struct in SetLoadBalancerTCPListenerAttributeRequest
+type SetLoadBalancerTCPListenerAttributePortRange struct {
+	StartPort string `name:"StartPort"`
+	EndPort   string `name:"EndPort"`
 }
 
 // SetLoadBalancerTCPListenerAttributeResponse is the response struct for api SetLoadBalancerTCPListenerAttribute

+ 37 - 28
services/slb/set_load_balancer_udp_listener_attribute.go

@@ -76,34 +76,43 @@ func (client *Client) SetLoadBalancerUDPListenerAttributeWithCallback(request *S
 // SetLoadBalancerUDPListenerAttributeRequest is the request struct for api SetLoadBalancerUDPListenerAttribute
 type SetLoadBalancerUDPListenerAttributeRequest struct {
 	*requests.RpcRequest
-	AccessKeyId               string           `position:"Query" name:"access_key_id"`
-	HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"`
-	ResourceOwnerId           requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	Description               string           `position:"Query" name:"Description"`
-	UnhealthyThreshold        requests.Integer `position:"Query" name:"UnhealthyThreshold"`
-	HealthyThreshold          requests.Integer `position:"Query" name:"HealthyThreshold"`
-	AclStatus                 string           `position:"Query" name:"AclStatus"`
-	Scheduler                 string           `position:"Query" name:"Scheduler"`
-	AclType                   string           `position:"Query" name:"AclType"`
-	MasterSlaveServerGroup    string           `position:"Query" name:"MasterSlaveServerGroup"`
-	MaxConnection             requests.Integer `position:"Query" name:"MaxConnection"`
-	PersistenceTimeout        requests.Integer `position:"Query" name:"PersistenceTimeout"`
-	VpcIds                    string           `position:"Query" name:"VpcIds"`
-	VServerGroupId            string           `position:"Query" name:"VServerGroupId"`
-	AclId                     string           `position:"Query" name:"AclId"`
-	ListenerPort              requests.Integer `position:"Query" name:"ListenerPort"`
-	ResourceOwnerAccount      string           `position:"Query" name:"ResourceOwnerAccount"`
-	Bandwidth                 requests.Integer `position:"Query" name:"Bandwidth"`
-	OwnerAccount              string           `position:"Query" name:"OwnerAccount"`
-	OwnerId                   requests.Integer `position:"Query" name:"OwnerId"`
-	Tags                      string           `position:"Query" name:"Tags"`
-	LoadBalancerId            string           `position:"Query" name:"LoadBalancerId"`
-	MasterSlaveServerGroupId  string           `position:"Query" name:"MasterSlaveServerGroupId"`
-	HealthCheckReq            string           `position:"Query" name:"healthCheckReq"`
-	HealthCheckInterval       requests.Integer `position:"Query" name:"HealthCheckInterval"`
-	HealthCheckExp            string           `position:"Query" name:"healthCheckExp"`
-	HealthCheckConnectPort    requests.Integer `position:"Query" name:"HealthCheckConnectPort"`
-	VServerGroup              string           `position:"Query" name:"VServerGroup"`
+	ResourceOwnerId           requests.Integer                                `position:"Query" name:"ResourceOwnerId"`
+	AclStatus                 string                                          `position:"Query" name:"AclStatus"`
+	AclType                   string                                          `position:"Query" name:"AclType"`
+	MasterSlaveServerGroup    string                                          `position:"Query" name:"MasterSlaveServerGroup"`
+	PersistenceTimeout        requests.Integer                                `position:"Query" name:"PersistenceTimeout"`
+	VpcIds                    string                                          `position:"Query" name:"VpcIds"`
+	VServerGroupId            string                                          `position:"Query" name:"VServerGroupId"`
+	AclId                     string                                          `position:"Query" name:"AclId"`
+	PortRange                 *[]SetLoadBalancerUDPListenerAttributePortRange `position:"Query" name:"PortRange"  type:"Repeated"`
+	OwnerId                   requests.Integer                                `position:"Query" name:"OwnerId"`
+	Tags                      string                                          `position:"Query" name:"Tags"`
+	LoadBalancerId            string                                          `position:"Query" name:"LoadBalancerId"`
+	MasterSlaveServerGroupId  string                                          `position:"Query" name:"MasterSlaveServerGroupId"`
+	HealthCheckReq            string                                          `position:"Query" name:"healthCheckReq"`
+	HealthCheckInterval       requests.Integer                                `position:"Query" name:"HealthCheckInterval"`
+	HealthCheckExp            string                                          `position:"Query" name:"healthCheckExp"`
+	ConnectionDrain           string                                          `position:"Query" name:"ConnectionDrain"`
+	AccessKeyId               string                                          `position:"Query" name:"access_key_id"`
+	HealthCheckConnectTimeout requests.Integer                                `position:"Query" name:"HealthCheckConnectTimeout"`
+	Description               string                                          `position:"Query" name:"Description"`
+	UnhealthyThreshold        requests.Integer                                `position:"Query" name:"UnhealthyThreshold"`
+	HealthyThreshold          requests.Integer                                `position:"Query" name:"HealthyThreshold"`
+	Scheduler                 string                                          `position:"Query" name:"Scheduler"`
+	MaxConnection             requests.Integer                                `position:"Query" name:"MaxConnection"`
+	ListenerPort              requests.Integer                                `position:"Query" name:"ListenerPort"`
+	ResourceOwnerAccount      string                                          `position:"Query" name:"ResourceOwnerAccount"`
+	Bandwidth                 requests.Integer                                `position:"Query" name:"Bandwidth"`
+	OwnerAccount              string                                          `position:"Query" name:"OwnerAccount"`
+	ConnectionDrainTimeout    requests.Integer                                `position:"Query" name:"ConnectionDrainTimeout"`
+	HealthCheckConnectPort    requests.Integer                                `position:"Query" name:"HealthCheckConnectPort"`
+	VServerGroup              string                                          `position:"Query" name:"VServerGroup"`
+}
+
+// SetLoadBalancerUDPListenerAttributePortRange is a repeated param struct in SetLoadBalancerUDPListenerAttributeRequest
+type SetLoadBalancerUDPListenerAttributePortRange struct {
+	StartPort string `name:"StartPort"`
+	EndPort   string `name:"EndPort"`
 }
 
 // SetLoadBalancerUDPListenerAttributeResponse is the response struct for api SetLoadBalancerUDPListenerAttribute

+ 22 - 0
services/slb/struct_port_range.go

@@ -0,0 +1,22 @@
+package slb
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// PortRange is a nested struct in slb response
+type PortRange struct {
+	EndPort   int `json:"EndPort" xml:"EndPort"`
+	StartPort int `json:"StartPort" xml:"StartPort"`
+}

+ 21 - 0
services/slb/struct_port_ranges_in_describe_load_balancer_tcp_listener_attribute.go

@@ -0,0 +1,21 @@
+package slb
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// PortRangesInDescribeLoadBalancerTCPListenerAttribute is a nested struct in slb response
+type PortRangesInDescribeLoadBalancerTCPListenerAttribute struct {
+	PortRange []PortRange `json:"PortRange" xml:"PortRange"`
+}

+ 21 - 0
services/slb/struct_port_ranges_in_describe_load_balancer_udp_listener_attribute.go

@@ -0,0 +1,21 @@
+package slb
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// PortRangesInDescribeLoadBalancerUDPListenerAttribute is a nested struct in slb response
+type PortRangesInDescribeLoadBalancerUDPListenerAttribute struct {
+	PortRange []PortRange `json:"PortRange" xml:"PortRange"`
+}

+ 13 - 12
services/slb/upload_server_certificate.go

@@ -76,18 +76,19 @@ func (client *Client) UploadServerCertificateWithCallback(request *UploadServerC
 // UploadServerCertificateRequest is the request struct for api UploadServerCertificate
 type UploadServerCertificateRequest struct {
 	*requests.RpcRequest
-	AccessKeyId             string           `position:"Query" name:"access_key_id"`
-	ResourceOwnerId         requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	ServerCertificate       string           `position:"Query" name:"ServerCertificate"`
-	AliCloudCertificateName string           `position:"Query" name:"AliCloudCertificateName"`
-	AliCloudCertificateId   string           `position:"Query" name:"AliCloudCertificateId"`
-	PrivateKey              string           `position:"Query" name:"PrivateKey"`
-	ResourceGroupId         string           `position:"Query" name:"ResourceGroupId"`
-	ResourceOwnerAccount    string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount            string           `position:"Query" name:"OwnerAccount"`
-	OwnerId                 requests.Integer `position:"Query" name:"OwnerId"`
-	Tags                    string           `position:"Query" name:"Tags"`
-	ServerCertificateName   string           `position:"Query" name:"ServerCertificateName"`
+	AccessKeyId                 string           `position:"Query" name:"access_key_id"`
+	ResourceOwnerId             requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ServerCertificate           string           `position:"Query" name:"ServerCertificate"`
+	AliCloudCertificateName     string           `position:"Query" name:"AliCloudCertificateName"`
+	AliCloudCertificateId       string           `position:"Query" name:"AliCloudCertificateId"`
+	PrivateKey                  string           `position:"Query" name:"PrivateKey"`
+	ResourceGroupId             string           `position:"Query" name:"ResourceGroupId"`
+	ResourceOwnerAccount        string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount                string           `position:"Query" name:"OwnerAccount"`
+	OwnerId                     requests.Integer `position:"Query" name:"OwnerId"`
+	Tags                        string           `position:"Query" name:"Tags"`
+	AliCloudCertificateRegionId string           `position:"Query" name:"AliCloudCertificateRegionId"`
+	ServerCertificateName       string           `position:"Query" name:"ServerCertificateName"`
 }
 
 // UploadServerCertificateResponse is the response struct for api UploadServerCertificate