Browse Source

Generated 2018-02-01, 2018-07-20 for ddosbgp.

sdk-team 6 years ago
parent
commit
520a397461

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-09-20 Version: 1.60.171
+- Generated 2018-02-01, 2018-07-20 for `ddosbgp`.
+
 2019-09-19 Version: 1.60.170
 - Supported Video Abstract for IMM.
 

+ 2 - 2
services/ddosbgp/add_ip.go

@@ -76,11 +76,11 @@ func (client *Client) AddIpWithCallback(request *AddIpRequest, callback func(res
 // AddIpRequest is the request struct for api AddIp
 type AddIpRequest struct {
 	*requests.RpcRequest
-	SourceIp         string `position:"Query" name:"SourceIp"`
 	IpList           string `position:"Query" name:"IpList"`
+	ResourceGroupId  string `position:"Query" name:"ResourceGroupId"`
 	InstanceId       string `position:"Query" name:"InstanceId"`
+	SourceIp         string `position:"Query" name:"SourceIp"`
 	ResourceRegionId string `position:"Query" name:"ResourceRegionId"`
-	ResourceGroupId  string `position:"Query" name:"ResourceGroupId"`
 }
 
 // AddIpResponse is the response struct for api AddIp

+ 1 - 1
services/ddosbgp/check_grant.go

@@ -76,8 +76,8 @@ func (client *Client) CheckGrantWithCallback(request *CheckGrantRequest, callbac
 // CheckGrantRequest is the request struct for api CheckGrant
 type CheckGrantRequest struct {
 	*requests.RpcRequest
-	SourceIp        string `position:"Query" name:"SourceIp"`
 	ResourceGroupId string `position:"Query" name:"ResourceGroupId"`
+	SourceIp        string `position:"Query" name:"SourceIp"`
 }
 
 // CheckGrantResponse is the response struct for api CheckGrant

+ 2 - 2
services/ddosbgp/delete_blackhole.go

@@ -76,11 +76,11 @@ func (client *Client) DeleteBlackholeWithCallback(request *DeleteBlackholeReques
 // DeleteBlackholeRequest is the request struct for api DeleteBlackhole
 type DeleteBlackholeRequest struct {
 	*requests.RpcRequest
-	SourceIp         string `position:"Query" name:"SourceIp"`
 	Ip               string `position:"Query" name:"Ip"`
+	ResourceGroupId  string `position:"Query" name:"ResourceGroupId"`
 	InstanceId       string `position:"Query" name:"InstanceId"`
+	SourceIp         string `position:"Query" name:"SourceIp"`
 	ResourceRegionId string `position:"Query" name:"ResourceRegionId"`
-	ResourceGroupId  string `position:"Query" name:"ResourceGroupId"`
 }
 
 // DeleteBlackholeResponse is the response struct for api DeleteBlackhole

+ 2 - 2
services/ddosbgp/delete_ip.go

@@ -76,11 +76,11 @@ func (client *Client) DeleteIpWithCallback(request *DeleteIpRequest, callback fu
 // DeleteIpRequest is the request struct for api DeleteIp
 type DeleteIpRequest struct {
 	*requests.RpcRequest
-	SourceIp         string `position:"Query" name:"SourceIp"`
 	IpList           string `position:"Query" name:"IpList"`
+	ResourceGroupId  string `position:"Query" name:"ResourceGroupId"`
 	InstanceId       string `position:"Query" name:"InstanceId"`
+	SourceIp         string `position:"Query" name:"SourceIp"`
 	ResourceRegionId string `position:"Query" name:"ResourceRegionId"`
-	ResourceGroupId  string `position:"Query" name:"ResourceGroupId"`
 }
 
 // DeleteIpResponse is the response struct for api DeleteIp

+ 6 - 6
services/ddosbgp/describe_ddos_event.go

@@ -76,15 +76,15 @@ func (client *Client) DescribeDdosEventWithCallback(request *DescribeDdosEventRe
 // DescribeDdosEventRequest is the request struct for api DescribeDdosEvent
 type DescribeDdosEventRequest struct {
 	*requests.RpcRequest
-	SourceIp         string           `position:"Query" name:"SourceIp"`
 	StartTime        requests.Integer `position:"Query" name:"StartTime"`
-	EndTime          requests.Integer `position:"Query" name:"EndTime"`
+	ResourceGroupId  string           `position:"Query" name:"ResourceGroupId"`
+	SourceIp         string           `position:"Query" name:"SourceIp"`
 	PageSize         requests.Integer `position:"Query" name:"PageSize"`
-	PageNo           requests.Integer `position:"Query" name:"PageNo"`
-	InstanceId       string           `position:"Query" name:"InstanceId"`
-	Ip               string           `position:"Query" name:"Ip"`
 	ResourceRegionId string           `position:"Query" name:"ResourceRegionId"`
-	ResourceGroupId  string           `position:"Query" name:"ResourceGroupId"`
+	Ip               string           `position:"Query" name:"Ip"`
+	EndTime          requests.Integer `position:"Query" name:"EndTime"`
+	InstanceId       string           `position:"Query" name:"InstanceId"`
+	PageNo           requests.Integer `position:"Query" name:"PageNo"`
 }
 
 // DescribeDdosEventResponse is the response struct for api DescribeDdosEvent

+ 1 - 1
services/ddosbgp/describe_excpetion_count.go

@@ -76,9 +76,9 @@ func (client *Client) DescribeExcpetionCountWithCallback(request *DescribeExcpet
 // DescribeExcpetionCountRequest is the request struct for api DescribeExcpetionCount
 type DescribeExcpetionCountRequest struct {
 	*requests.RpcRequest
+	ResourceGroupId string `position:"Query" name:"ResourceGroupId"`
 	SourceIp        string `position:"Query" name:"SourceIp"`
 	DdosRegionId    string `position:"Query" name:"DdosRegionId"`
-	ResourceGroupId string `position:"Query" name:"ResourceGroupId"`
 }
 
 // DescribeExcpetionCountResponse is the response struct for api DescribeExcpetionCount

+ 7 - 7
services/ddosbgp/describe_instance_list.go

@@ -76,25 +76,25 @@ func (client *Client) DescribeInstanceListWithCallback(request *DescribeInstance
 // DescribeInstanceListRequest is the request struct for api DescribeInstanceList
 type DescribeInstanceListRequest struct {
 	*requests.RpcRequest
-	SourceIp        string                     `position:"Query" name:"SourceIp"`
-	ResourceGroupId string                     `position:"Query" name:"ResourceGroupId"`
-	InstanceIdList  string                     `position:"Query" name:"InstanceIdList"`
 	Remark          string                     `position:"Query" name:"Remark"`
-	PageNo          requests.Integer           `position:"Query" name:"PageNo"`
+	ResourceGroupId string                     `position:"Query" name:"ResourceGroupId"`
+	SourceIp        string                     `position:"Query" name:"SourceIp"`
 	PageSize        requests.Integer           `position:"Query" name:"PageSize"`
 	DdosRegionId    string                     `position:"Query" name:"DdosRegionId"`
-	IpVersion       string                     `position:"Query" name:"IpVersion"`
 	InstanceType    string                     `position:"Query" name:"InstanceType"`
+	IpVersion       string                     `position:"Query" name:"IpVersion"`
+	Tag             *[]DescribeInstanceListTag `position:"Query" name:"Tag"  type:"Repeated"`
 	Ip              string                     `position:"Query" name:"Ip"`
 	Orderby         string                     `position:"Query" name:"Orderby"`
+	InstanceIdList  string                     `position:"Query" name:"InstanceIdList"`
+	PageNo          requests.Integer           `position:"Query" name:"PageNo"`
 	Orderdire       string                     `position:"Query" name:"Orderdire"`
-	Tag             *[]DescribeInstanceListTag `position:"Query" name:"Tag"  type:"Repeated"`
 }
 
 // DescribeInstanceListTag is a repeated param struct in DescribeInstanceListRequest
 type DescribeInstanceListTag struct {
-	Key   string `name:"Key"`
 	Value string `name:"Value"`
+	Key   string `name:"Key"`
 }
 
 // DescribeInstanceListResponse is the response struct for api DescribeInstanceList

+ 2 - 2
services/ddosbgp/describe_instance_specs.go

@@ -76,11 +76,11 @@ func (client *Client) DescribeInstanceSpecsWithCallback(request *DescribeInstanc
 // DescribeInstanceSpecsRequest is the request struct for api DescribeInstanceSpecs
 type DescribeInstanceSpecsRequest struct {
 	*requests.RpcRequest
+	ResourceGroupId string `position:"Query" name:"ResourceGroupId"`
 	SourceIp        string `position:"Query" name:"SourceIp"`
-	Lang            string `position:"Query" name:"Lang"`
 	InstanceIdList  string `position:"Query" name:"InstanceIdList"`
 	DdosRegionId    string `position:"Query" name:"DdosRegionId"`
-	ResourceGroupId string `position:"Query" name:"ResourceGroupId"`
+	Lang            string `position:"Query" name:"Lang"`
 }
 
 // DescribeInstanceSpecsResponse is the response struct for api DescribeInstanceSpecs

+ 5 - 5
services/ddosbgp/describe_op_entities.go

@@ -76,17 +76,17 @@ func (client *Client) DescribeOpEntitiesWithCallback(request *DescribeOpEntities
 // DescribeOpEntitiesRequest is the request struct for api DescribeOpEntities
 type DescribeOpEntitiesRequest struct {
 	*requests.RpcRequest
+	StartTime        requests.Integer `position:"Query" name:"StartTime"`
+	ResourceGroupId  string           `position:"Query" name:"ResourceGroupId"`
 	SourceIp         string           `position:"Query" name:"SourceIp"`
-	Lang             string           `position:"Query" name:"Lang"`
-	CurrentPage      requests.Integer `position:"Query" name:"CurrentPage"`
 	PageSize         requests.Integer `position:"Query" name:"PageSize"`
-	StartTime        requests.Integer `position:"Query" name:"StartTime"`
+	Lang             string           `position:"Query" name:"Lang"`
+	ResourceRegionId string           `position:"Query" name:"ResourceRegionId"`
 	EndTime          requests.Integer `position:"Query" name:"EndTime"`
 	OrderBy          string           `position:"Query" name:"OrderBy"`
+	CurrentPage      requests.Integer `position:"Query" name:"CurrentPage"`
 	OrderDir         string           `position:"Query" name:"OrderDir"`
 	InstanceId       string           `position:"Query" name:"InstanceId"`
-	ResourceRegionId string           `position:"Query" name:"ResourceRegionId"`
-	ResourceGroupId  string           `position:"Query" name:"ResourceGroupId"`
 }
 
 // DescribeOpEntitiesResponse is the response struct for api DescribeOpEntities

+ 4 - 4
services/ddosbgp/describe_pack_ip_list.go

@@ -76,14 +76,14 @@ func (client *Client) DescribePackIpListWithCallback(request *DescribePackIpList
 // DescribePackIpListRequest is the request struct for api DescribePackIpList
 type DescribePackIpListRequest struct {
 	*requests.RpcRequest
+	ResourceGroupId string           `position:"Query" name:"ResourceGroupId"`
 	SourceIp        string           `position:"Query" name:"SourceIp"`
-	PageNo          requests.Integer `position:"Query" name:"PageNo"`
 	PageSize        requests.Integer `position:"Query" name:"PageSize"`
 	DdosRegionId    string           `position:"Query" name:"DdosRegionId"`
-	InstanceId      string           `position:"Query" name:"InstanceId"`
-	Ip              string           `position:"Query" name:"Ip"`
 	ProductName     string           `position:"Query" name:"ProductName"`
-	ResourceGroupId string           `position:"Query" name:"ResourceGroupId"`
+	Ip              string           `position:"Query" name:"Ip"`
+	InstanceId      string           `position:"Query" name:"InstanceId"`
+	PageNo          requests.Integer `position:"Query" name:"PageNo"`
 }
 
 // DescribePackIpListResponse is the response struct for api DescribePackIpList

+ 4 - 4
services/ddosbgp/describe_pack_paid_traffic.go

@@ -76,13 +76,13 @@ func (client *Client) DescribePackPaidTrafficWithCallback(request *DescribePackP
 // DescribePackPaidTrafficRequest is the request struct for api DescribePackPaidTraffic
 type DescribePackPaidTrafficRequest struct {
 	*requests.RpcRequest
+	StartTime       requests.Integer `position:"Query" name:"StartTime"`
+	ResourceGroupId string           `position:"Query" name:"ResourceGroupId"`
 	SourceIp        string           `position:"Query" name:"SourceIp"`
-	InstanceId      string           `position:"Query" name:"InstanceId"`
-	CurrentPage     requests.Integer `position:"Query" name:"CurrentPage"`
 	PageSize        requests.Integer `position:"Query" name:"PageSize"`
-	StartTime       requests.Integer `position:"Query" name:"StartTime"`
 	EndTime         requests.Integer `position:"Query" name:"EndTime"`
-	ResourceGroupId string           `position:"Query" name:"ResourceGroupId"`
+	CurrentPage     requests.Integer `position:"Query" name:"CurrentPage"`
+	InstanceId      string           `position:"Query" name:"InstanceId"`
 }
 
 // DescribePackPaidTrafficResponse is the response struct for api DescribePackPaidTraffic

+ 1 - 1
services/ddosbgp/describe_regions.go

@@ -76,8 +76,8 @@ func (client *Client) DescribeRegionsWithCallback(request *DescribeRegionsReques
 // DescribeRegionsRequest is the request struct for api DescribeRegions
 type DescribeRegionsRequest struct {
 	*requests.RpcRequest
-	SourceIp        string `position:"Query" name:"SourceIp"`
 	ResourceGroupId string `position:"Query" name:"ResourceGroupId"`
+	SourceIp        string `position:"Query" name:"SourceIp"`
 }
 
 // DescribeRegionsResponse is the response struct for api DescribeRegions

+ 2 - 2
services/ddosbgp/describe_resource_pack_instances.go

@@ -76,10 +76,10 @@ func (client *Client) DescribeResourcePackInstancesWithCallback(request *Describ
 // DescribeResourcePackInstancesRequest is the request struct for api DescribeResourcePackInstances
 type DescribeResourcePackInstancesRequest struct {
 	*requests.RpcRequest
-	SourceIp        string           `position:"Query" name:"SourceIp"`
-	PageSize        requests.Integer `position:"Query" name:"PageSize"`
 	CurrentPage     requests.Integer `position:"Query" name:"CurrentPage"`
 	ResourceGroupId string           `position:"Query" name:"ResourceGroupId"`
+	SourceIp        string           `position:"Query" name:"SourceIp"`
+	PageSize        requests.Integer `position:"Query" name:"PageSize"`
 }
 
 // DescribeResourcePackInstancesResponse is the response struct for api DescribeResourcePackInstances

+ 2 - 2
services/ddosbgp/describe_resource_pack_statistics.go

@@ -76,10 +76,10 @@ func (client *Client) DescribeResourcePackStatisticsWithCallback(request *Descri
 // DescribeResourcePackStatisticsRequest is the request struct for api DescribeResourcePackStatistics
 type DescribeResourcePackStatisticsRequest struct {
 	*requests.RpcRequest
+	ResourceGroupId string `position:"Query" name:"ResourceGroupId"`
+	InstanceId      string `position:"Query" name:"InstanceId"`
 	SourceIp        string `position:"Query" name:"SourceIp"`
 	DdosRegionId    string `position:"Query" name:"DdosRegionId"`
-	InstanceId      string `position:"Query" name:"InstanceId"`
-	ResourceGroupId string `position:"Query" name:"ResourceGroupId"`
 }
 
 // DescribeResourcePackStatisticsResponse is the response struct for api DescribeResourcePackStatistics

+ 2 - 2
services/ddosbgp/describe_resource_pack_usage.go

@@ -76,11 +76,11 @@ func (client *Client) DescribeResourcePackUsageWithCallback(request *DescribeRes
 // DescribeResourcePackUsageRequest is the request struct for api DescribeResourcePackUsage
 type DescribeResourcePackUsageRequest struct {
 	*requests.RpcRequest
-	SourceIp        string           `position:"Query" name:"SourceIp"`
 	EndTime         requests.Integer `position:"Query" name:"EndTime"`
 	StartTime       requests.Integer `position:"Query" name:"StartTime"`
-	InstanceId      string           `position:"Query" name:"InstanceId"`
 	ResourceGroupId string           `position:"Query" name:"ResourceGroupId"`
+	InstanceId      string           `position:"Query" name:"InstanceId"`
+	SourceIp        string           `position:"Query" name:"SourceIp"`
 }
 
 // DescribeResourcePackUsageResponse is the response struct for api DescribeResourcePackUsage

+ 3 - 3
services/ddosbgp/describe_traffic.go

@@ -76,13 +76,13 @@ func (client *Client) DescribeTrafficWithCallback(request *DescribeTrafficReques
 // DescribeTrafficRequest is the request struct for api DescribeTraffic
 type DescribeTrafficRequest struct {
 	*requests.RpcRequest
+	StartTime       requests.Integer `position:"Query" name:"StartTime"`
+	ResourceGroupId string           `position:"Query" name:"ResourceGroupId"`
 	SourceIp        string           `position:"Query" name:"SourceIp"`
-	InstanceId      string           `position:"Query" name:"InstanceId"`
 	Ip              string           `position:"Query" name:"Ip"`
-	StartTime       requests.Integer `position:"Query" name:"StartTime"`
 	EndTime         requests.Integer `position:"Query" name:"EndTime"`
+	InstanceId      string           `position:"Query" name:"InstanceId"`
 	Interval        requests.Integer `position:"Query" name:"Interval"`
-	ResourceGroupId string           `position:"Query" name:"ResourceGroupId"`
 }
 
 // DescribeTrafficResponse is the response struct for api DescribeTraffic

+ 20 - 15
services/ddosbgp/endpoint.go

@@ -10,21 +10,26 @@ var EndpointType = "regional"
 func GetEndpointMap() map[string]string {
 	if EndpointMap == nil {
 		EndpointMap = map[string]string{
-			"cn-shenzhen":    "ddosbgp.aliyuncs.com",
-			"cn-beijing":     "ddosbgp.aliyuncs.com",
-			"ap-south-1":     "ddosbgp.ap-southeast-1.aliyuncs.com",
-			"ap-northeast-1": "ddosbgp.ap-southeast-1.aliyuncs.com",
-			"me-east-1":      "ddosbgp.ap-southeast-1.aliyuncs.com",
-			"cn-chengdu":     "ddosbgp.aliyuncs.com",
-			"cn-qingdao":     "ddosbgp.aliyuncs.com",
-			"cn-shanghai":    "ddosbgp.aliyuncs.com",
-			"ap-southeast-2": "ddosbgp.ap-southeast-1.aliyuncs.com",
-			"ap-southeast-3": "ddosbgp.ap-southeast-1.aliyuncs.com",
-			"eu-central-1":   "ddosbgp.ap-southeast-1.aliyuncs.com",
-			"cn-huhehaote":   "ddosbgp.aliyuncs.com",
-			"ap-southeast-5": "ddosbgp.ap-southeast-1.aliyuncs.com",
-			"cn-zhangjiakou": "ddosbgp.aliyuncs.com",
-			"cn-hangzhou":    "ddosbgp.aliyuncs.com",
+			"cn-shenzhen":           "ddosbgp.aliyuncs.com",
+			"cn-beijing":            "ddosbgp.aliyuncs.com",
+			"ap-south-1":            "ddosbgp.ap-southeast-1.aliyuncs.com",
+			"eu-west-1":             "ddosbgp.ap-southeast-1.aliyuncs.com",
+			"ap-northeast-1":        "ddosbgp.ap-southeast-1.aliyuncs.com",
+			"cn-shenzhen-finance-1": "ddosbgp.aliyuncs.com",
+			"me-east-1":             "ddosbgp.ap-southeast-1.aliyuncs.com",
+			"cn-chengdu":            "ddosbgp.aliyuncs.com",
+			"cn-north-2-gov-1":      "ddosbgp.aliyuncs.com",
+			"cn-qingdao":            "ddosbgp.aliyuncs.com",
+			"cn-shanghai":           "ddosbgp.aliyuncs.com",
+			"cn-shanghai-finance-1": "ddosbgp.aliyuncs.com",
+			"cn-hangzhou-finance":   "ddosbgp.aliyuncs.com",
+			"ap-southeast-2":        "ddosbgp.ap-southeast-1.aliyuncs.com",
+			"ap-southeast-3":        "ddosbgp.ap-southeast-1.aliyuncs.com",
+			"eu-central-1":          "ddosbgp.ap-southeast-1.aliyuncs.com",
+			"cn-huhehaote":          "ddosbgp.aliyuncs.com",
+			"ap-southeast-5":        "ddosbgp.ap-southeast-1.aliyuncs.com",
+			"cn-zhangjiakou":        "ddosbgp.aliyuncs.com",
+			"cn-hangzhou":           "ddosbgp.aliyuncs.com",
 		}
 	}
 	return EndpointMap

+ 3 - 3
services/ddosbgp/modify_remark.go

@@ -76,12 +76,12 @@ func (client *Client) ModifyRemarkWithCallback(request *ModifyRemarkRequest, cal
 // ModifyRemarkRequest is the request struct for api ModifyRemark
 type ModifyRemarkRequest struct {
 	*requests.RpcRequest
+	Remark           string `position:"Query" name:"Remark"`
+	ResourceGroupId  string `position:"Query" name:"ResourceGroupId"`
+	InstanceId       string `position:"Query" name:"InstanceId"`
 	SourceIp         string `position:"Query" name:"SourceIp"`
 	Lang             string `position:"Query" name:"Lang"`
-	InstanceId       string `position:"Query" name:"InstanceId"`
-	Remark           string `position:"Query" name:"Remark"`
 	ResourceRegionId string `position:"Query" name:"ResourceRegionId"`
-	ResourceGroupId  string `position:"Query" name:"ResourceGroupId"`
 }
 
 // ModifyRemarkResponse is the response struct for api ModifyRemark

+ 1 - 1
services/ddosbgp/release_instance.go

@@ -76,8 +76,8 @@ func (client *Client) ReleaseInstanceWithCallback(request *ReleaseInstanceReques
 // ReleaseInstanceRequest is the request struct for api ReleaseInstance
 type ReleaseInstanceRequest struct {
 	*requests.RpcRequest
-	SourceIp   string `position:"Query" name:"SourceIp"`
 	InstanceId string `position:"Query" name:"InstanceId"`
+	SourceIp   string `position:"Query" name:"SourceIp"`
 }
 
 // ReleaseInstanceResponse is the response struct for api ReleaseInstance

+ 1 - 0
services/ddosbgp/struct_instance.go

@@ -26,4 +26,5 @@ type Instance struct {
 	AutoRenewal       bool   `json:"AutoRenewal" xml:"AutoRenewal"`
 	BlackholdingCount string `json:"BlackholdingCount" xml:"BlackholdingCount"`
 	GmtCreate         int64  `json:"GmtCreate" xml:"GmtCreate"`
+	InstanceType      string `json:"InstanceType" xml:"InstanceType"`
 }