Bläddra i källkod

PVTZ SDK Auto Released By shenshi,Version:1.53.45

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 6 år sedan
förälder
incheckning
dc6014a0c2

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-03-15 Version: 1.53.45
+1, Update Dependency
+
 2019-03-15 Version: 1.53.44
 1,  Update Dependency
 

+ 2 - 1
services/pvtz/add_zone.go

@@ -76,9 +76,10 @@ func (client *Client) AddZoneWithCallback(request *AddZoneRequest, callback func
 // AddZoneRequest is the request struct for api AddZone
 type AddZoneRequest struct {
 	*requests.RpcRequest
+	ProxyPattern string `position:"Query" name:"ProxyPattern"`
+	UserClientIp string `position:"Query" name:"UserClientIp"`
 	Lang         string `position:"Query" name:"Lang"`
 	ZoneName     string `position:"Query" name:"ZoneName"`
-	UserClientIp string `position:"Query" name:"UserClientIp"`
 }
 
 // AddZoneResponse is the response struct for api AddZone

+ 2 - 2
services/pvtz/add_zone_record.go

@@ -77,13 +77,13 @@ func (client *Client) AddZoneRecordWithCallback(request *AddZoneRecordRequest, c
 type AddZoneRecordRequest struct {
 	*requests.RpcRequest
 	Rr           string           `position:"Query" name:"Rr"`
+	UserClientIp string           `position:"Query" name:"UserClientIp"`
 	ZoneId       string           `position:"Query" name:"ZoneId"`
 	Lang         string           `position:"Query" name:"Lang"`
 	Type         string           `position:"Query" name:"Type"`
-	Ttl          requests.Integer `position:"Query" name:"Ttl"`
 	Priority     requests.Integer `position:"Query" name:"Priority"`
+	Ttl          requests.Integer `position:"Query" name:"Ttl"`
 	Value        string           `position:"Query" name:"Value"`
-	UserClientIp string           `position:"Query" name:"UserClientIp"`
 }
 
 // AddZoneRecordResponse is the response struct for api AddZoneRecord

+ 2 - 2
services/pvtz/bind_zone_vpc.go

@@ -76,10 +76,10 @@ func (client *Client) BindZoneVpcWithCallback(request *BindZoneVpcRequest, callb
 // BindZoneVpcRequest is the request struct for api BindZoneVpc
 type BindZoneVpcRequest struct {
 	*requests.RpcRequest
-	Lang         string             `position:"Query" name:"Lang"`
+	UserClientIp string             `position:"Query" name:"UserClientIp"`
 	ZoneId       string             `position:"Query" name:"ZoneId"`
+	Lang         string             `position:"Query" name:"Lang"`
 	Vpcs         *[]BindZoneVpcVpcs `position:"Query" name:"Vpcs"  type:"Repeated"`
-	UserClientIp string             `position:"Query" name:"UserClientIp"`
 }
 
 // BindZoneVpcVpcs is a repeated param struct in BindZoneVpcRequest

+ 1 - 1
services/pvtz/check_zone_name.go

@@ -76,9 +76,9 @@ func (client *Client) CheckZoneNameWithCallback(request *CheckZoneNameRequest, c
 // CheckZoneNameRequest is the request struct for api CheckZoneName
 type CheckZoneNameRequest struct {
 	*requests.RpcRequest
+	UserClientIp string `position:"Query" name:"UserClientIp"`
 	Lang         string `position:"Query" name:"Lang"`
 	ZoneName     string `position:"Query" name:"ZoneName"`
-	UserClientIp string `position:"Query" name:"UserClientIp"`
 }
 
 // CheckZoneNameResponse is the response struct for api CheckZoneName

+ 2 - 2
services/pvtz/delete_zone.go

@@ -76,9 +76,9 @@ func (client *Client) DeleteZoneWithCallback(request *DeleteZoneRequest, callbac
 // DeleteZoneRequest is the request struct for api DeleteZone
 type DeleteZoneRequest struct {
 	*requests.RpcRequest
-	Lang         string `position:"Query" name:"Lang"`
-	ZoneId       string `position:"Query" name:"ZoneId"`
 	UserClientIp string `position:"Query" name:"UserClientIp"`
+	ZoneId       string `position:"Query" name:"ZoneId"`
+	Lang         string `position:"Query" name:"Lang"`
 }
 
 // DeleteZoneResponse is the response struct for api DeleteZone

+ 1 - 1
services/pvtz/delete_zone_record.go

@@ -76,9 +76,9 @@ func (client *Client) DeleteZoneRecordWithCallback(request *DeleteZoneRecordRequ
 // DeleteZoneRecordRequest is the request struct for api DeleteZoneRecord
 type DeleteZoneRecordRequest struct {
 	*requests.RpcRequest
-	Lang         string           `position:"Query" name:"Lang"`
 	RecordId     requests.Integer `position:"Query" name:"RecordId"`
 	UserClientIp string           `position:"Query" name:"UserClientIp"`
+	Lang         string           `position:"Query" name:"Lang"`
 }
 
 // DeleteZoneRecordResponse is the response struct for api DeleteZoneRecord

+ 5 - 5
services/pvtz/describe_change_logs.go

@@ -76,15 +76,15 @@ func (client *Client) DescribeChangeLogsWithCallback(request *DescribeChangeLogs
 // DescribeChangeLogsRequest is the request struct for api DescribeChangeLogs
 type DescribeChangeLogsRequest struct {
 	*requests.RpcRequest
+	EntityType     string           `position:"Query" name:"EntityType"`
+	PageSize       requests.Integer `position:"Query" name:"PageSize"`
+	UserClientIp   string           `position:"Query" name:"UserClientIp"`
+	ZoneId         string           `position:"Query" name:"ZoneId"`
 	Keyword        string           `position:"Query" name:"Keyword"`
 	Lang           string           `position:"Query" name:"Lang"`
-	ZoneId         string           `position:"Query" name:"ZoneId"`
-	PageNumber     requests.Integer `position:"Query" name:"PageNumber"`
-	PageSize       requests.Integer `position:"Query" name:"PageSize"`
 	StartTimestamp requests.Integer `position:"Query" name:"StartTimestamp"`
+	PageNumber     requests.Integer `position:"Query" name:"PageNumber"`
 	EndTimestamp   requests.Integer `position:"Query" name:"EndTimestamp"`
-	EntityType     string           `position:"Query" name:"EntityType"`
-	UserClientIp   string           `position:"Query" name:"UserClientIp"`
 }
 
 // DescribeChangeLogsResponse is the response struct for api DescribeChangeLogs

+ 3 - 2
services/pvtz/describe_regions.go

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

+ 2 - 2
services/pvtz/describe_request_graph.go

@@ -76,10 +76,10 @@ func (client *Client) DescribeRequestGraphWithCallback(request *DescribeRequestG
 // DescribeRequestGraphRequest is the request struct for api DescribeRequestGraph
 type DescribeRequestGraphRequest struct {
 	*requests.RpcRequest
-	Lang           string           `position:"Query" name:"Lang"`
+	VpcId          string           `position:"Query" name:"VpcId"`
 	UserClientIp   string           `position:"Query" name:"UserClientIp"`
 	ZoneId         string           `position:"Query" name:"ZoneId"`
-	VpcId          string           `position:"Query" name:"VpcId"`
+	Lang           string           `position:"Query" name:"Lang"`
 	StartTimestamp requests.Integer `position:"Query" name:"StartTimestamp"`
 	EndTimestamp   requests.Integer `position:"Query" name:"EndTimestamp"`
 }

+ 1 - 1
services/pvtz/describe_statistic_summary.go

@@ -76,8 +76,8 @@ func (client *Client) DescribeStatisticSummaryWithCallback(request *DescribeStat
 // DescribeStatisticSummaryRequest is the request struct for api DescribeStatisticSummary
 type DescribeStatisticSummaryRequest struct {
 	*requests.RpcRequest
-	Lang         string `position:"Query" name:"Lang"`
 	UserClientIp string `position:"Query" name:"UserClientIp"`
+	Lang         string `position:"Query" name:"Lang"`
 }
 
 // DescribeStatisticSummaryResponse is the response struct for api DescribeStatisticSummary

+ 1 - 1
services/pvtz/describe_user_service_status.go

@@ -76,8 +76,8 @@ func (client *Client) DescribeUserServiceStatusWithCallback(request *DescribeUse
 // DescribeUserServiceStatusRequest is the request struct for api DescribeUserServiceStatus
 type DescribeUserServiceStatusRequest struct {
 	*requests.RpcRequest
-	Lang         string `position:"Query" name:"Lang"`
 	UserClientIp string `position:"Query" name:"UserClientIp"`
+	Lang         string `position:"Query" name:"Lang"`
 }
 
 // DescribeUserServiceStatusResponse is the response struct for api DescribeUserServiceStatus

+ 3 - 2
services/pvtz/describe_zone_info.go

@@ -76,9 +76,9 @@ func (client *Client) DescribeZoneInfoWithCallback(request *DescribeZoneInfoRequ
 // DescribeZoneInfoRequest is the request struct for api DescribeZoneInfo
 type DescribeZoneInfoRequest struct {
 	*requests.RpcRequest
-	Lang         string `position:"Query" name:"Lang"`
-	ZoneId       string `position:"Query" name:"ZoneId"`
 	UserClientIp string `position:"Query" name:"UserClientIp"`
+	ZoneId       string `position:"Query" name:"ZoneId"`
+	Lang         string `position:"Query" name:"Lang"`
 }
 
 // DescribeZoneInfoResponse is the response struct for api DescribeZoneInfo
@@ -94,6 +94,7 @@ type DescribeZoneInfoResponse struct {
 	UpdateTime      string   `json:"UpdateTime" xml:"UpdateTime"`
 	UpdateTimestamp int      `json:"UpdateTimestamp" xml:"UpdateTimestamp"`
 	IsPtr           bool     `json:"IsPtr" xml:"IsPtr"`
+	ProxyPattern    string   `json:"ProxyPattern" xml:"ProxyPattern"`
 	BindVpcs        BindVpcs `json:"BindVpcs" xml:"BindVpcs"`
 }
 

+ 5 - 4
services/pvtz/describe_zone_records.go

@@ -76,13 +76,14 @@ func (client *Client) DescribeZoneRecordsWithCallback(request *DescribeZoneRecor
 // DescribeZoneRecordsRequest is the request struct for api DescribeZoneRecords
 type DescribeZoneRecordsRequest struct {
 	*requests.RpcRequest
-	Keyword      string           `position:"Query" name:"Keyword"`
-	Lang         string           `position:"Query" name:"Lang"`
-	ZoneId       string           `position:"Query" name:"ZoneId"`
-	PageNumber   requests.Integer `position:"Query" name:"PageNumber"`
 	PageSize     requests.Integer `position:"Query" name:"PageSize"`
 	UserClientIp string           `position:"Query" name:"UserClientIp"`
+	ZoneId       string           `position:"Query" name:"ZoneId"`
+	SearchMode   string           `position:"Query" name:"SearchMode"`
 	Tag          string           `position:"Query" name:"Tag"`
+	Lang         string           `position:"Query" name:"Lang"`
+	Keyword      string           `position:"Query" name:"Keyword"`
+	PageNumber   requests.Integer `position:"Query" name:"PageNumber"`
 }
 
 // DescribeZoneRecordsResponse is the response struct for api DescribeZoneRecords

+ 1 - 1
services/pvtz/describe_zone_vpc_tree.go

@@ -76,8 +76,8 @@ func (client *Client) DescribeZoneVpcTreeWithCallback(request *DescribeZoneVpcTr
 // DescribeZoneVpcTreeRequest is the request struct for api DescribeZoneVpcTree
 type DescribeZoneVpcTreeRequest struct {
 	*requests.RpcRequest
-	Lang         string `position:"Query" name:"Lang"`
 	UserClientIp string `position:"Query" name:"UserClientIp"`
+	Lang         string `position:"Query" name:"Lang"`
 }
 
 // DescribeZoneVpcTreeResponse is the response struct for api DescribeZoneVpcTree

+ 8 - 5
services/pvtz/describe_zones.go

@@ -76,11 +76,14 @@ func (client *Client) DescribeZonesWithCallback(request *DescribeZonesRequest, c
 // DescribeZonesRequest is the request struct for api DescribeZones
 type DescribeZonesRequest struct {
 	*requests.RpcRequest
-	Lang         string           `position:"Query" name:"Lang"`
-	PageNumber   requests.Integer `position:"Query" name:"PageNumber"`
-	PageSize     requests.Integer `position:"Query" name:"PageSize"`
-	Keyword      string           `position:"Query" name:"Keyword"`
-	UserClientIp string           `position:"Query" name:"UserClientIp"`
+	QueryVpcId    string           `position:"Query" name:"QueryVpcId"`
+	PageSize      requests.Integer `position:"Query" name:"PageSize"`
+	UserClientIp  string           `position:"Query" name:"UserClientIp"`
+	SearchMode    string           `position:"Query" name:"SearchMode"`
+	Lang          string           `position:"Query" name:"Lang"`
+	Keyword       string           `position:"Query" name:"Keyword"`
+	PageNumber    requests.Integer `position:"Query" name:"PageNumber"`
+	QueryRegionId string           `position:"Query" name:"QueryRegionId"`
 }
 
 // DescribeZonesResponse is the response struct for api DescribeZones

+ 107 - 0
services/pvtz/set_proxy_pattern.go

@@ -0,0 +1,107 @@
+package pvtz
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// SetProxyPattern invokes the pvtz.SetProxyPattern API synchronously
+// api document: https://help.aliyun.com/api/pvtz/setproxypattern.html
+func (client *Client) SetProxyPattern(request *SetProxyPatternRequest) (response *SetProxyPatternResponse, err error) {
+	response = CreateSetProxyPatternResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SetProxyPatternWithChan invokes the pvtz.SetProxyPattern API asynchronously
+// api document: https://help.aliyun.com/api/pvtz/setproxypattern.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetProxyPatternWithChan(request *SetProxyPatternRequest) (<-chan *SetProxyPatternResponse, <-chan error) {
+	responseChan := make(chan *SetProxyPatternResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SetProxyPattern(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SetProxyPatternWithCallback invokes the pvtz.SetProxyPattern API asynchronously
+// api document: https://help.aliyun.com/api/pvtz/setproxypattern.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetProxyPatternWithCallback(request *SetProxyPatternRequest, callback func(response *SetProxyPatternResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SetProxyPatternResponse
+		var err error
+		defer close(result)
+		response, err = client.SetProxyPattern(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SetProxyPatternRequest is the request struct for api SetProxyPattern
+type SetProxyPatternRequest struct {
+	*requests.RpcRequest
+	ProxyPattern string `position:"Query" name:"ProxyPattern"`
+	UserClientIp string `position:"Query" name:"UserClientIp"`
+	ZoneId       string `position:"Query" name:"ZoneId"`
+	Lang         string `position:"Query" name:"Lang"`
+}
+
+// SetProxyPatternResponse is the response struct for api SetProxyPattern
+type SetProxyPatternResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	ZoneId    string `json:"ZoneId" xml:"ZoneId"`
+}
+
+// CreateSetProxyPatternRequest creates a request to invoke SetProxyPattern API
+func CreateSetProxyPatternRequest() (request *SetProxyPatternRequest) {
+	request = &SetProxyPatternRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("pvtz", "2018-01-01", "SetProxyPattern", "pvtz", "openAPI")
+	return
+}
+
+// CreateSetProxyPatternResponse creates a response to parse from SetProxyPattern response
+func CreateSetProxyPatternResponse() (response *SetProxyPatternResponse) {
+	response = &SetProxyPatternResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 2
services/pvtz/set_zone_record_status.go

@@ -76,10 +76,10 @@ func (client *Client) SetZoneRecordStatusWithCallback(request *SetZoneRecordStat
 // SetZoneRecordStatusRequest is the request struct for api SetZoneRecordStatus
 type SetZoneRecordStatusRequest struct {
 	*requests.RpcRequest
-	Lang         string           `position:"Query" name:"Lang"`
 	RecordId     requests.Integer `position:"Query" name:"RecordId"`
-	Status       string           `position:"Query" name:"Status"`
 	UserClientIp string           `position:"Query" name:"UserClientIp"`
+	Lang         string           `position:"Query" name:"Lang"`
+	Status       string           `position:"Query" name:"Status"`
 }
 
 // SetZoneRecordStatusResponse is the response struct for api SetZoneRecordStatus

+ 4 - 2
services/pvtz/struct_region.go

@@ -17,6 +17,8 @@ package pvtz
 
 // Region is a nested struct in pvtz response
 type Region struct {
-	RegionId   string `json:"RegionId" xml:"RegionId"`
-	RegionName string `json:"RegionName" xml:"RegionName"`
+	RegionId       string `json:"RegionId" xml:"RegionId"`
+	RegionName     string `json:"RegionName" xml:"RegionName"`
+	LocalName      string `json:"LocalName" xml:"LocalName"`
+	RegionEndpoint string `json:"RegionEndpoint" xml:"RegionEndpoint"`
 }

+ 1 - 0
services/pvtz/struct_zone.go

@@ -19,6 +19,7 @@ package pvtz
 type Zone struct {
 	ZoneId          string `json:"ZoneId" xml:"ZoneId"`
 	UpdateTime      string `json:"UpdateTime" xml:"UpdateTime"`
+	ProxyPattern    string `json:"ProxyPattern" xml:"ProxyPattern"`
 	Remark          string `json:"Remark" xml:"Remark"`
 	CreateTimestamp int    `json:"CreateTimestamp" xml:"CreateTimestamp"`
 	RecordCount     int    `json:"RecordCount" xml:"RecordCount"`

+ 3 - 3
services/pvtz/update_zone_record.go

@@ -77,13 +77,13 @@ func (client *Client) UpdateZoneRecordWithCallback(request *UpdateZoneRecordRequ
 type UpdateZoneRecordRequest struct {
 	*requests.RpcRequest
 	Rr           string           `position:"Query" name:"Rr"`
-	Lang         string           `position:"Query" name:"Lang"`
 	RecordId     requests.Integer `position:"Query" name:"RecordId"`
+	UserClientIp string           `position:"Query" name:"UserClientIp"`
+	Lang         string           `position:"Query" name:"Lang"`
 	Type         string           `position:"Query" name:"Type"`
-	Ttl          requests.Integer `position:"Query" name:"Ttl"`
 	Priority     requests.Integer `position:"Query" name:"Priority"`
+	Ttl          requests.Integer `position:"Query" name:"Ttl"`
 	Value        string           `position:"Query" name:"Value"`
-	UserClientIp string           `position:"Query" name:"UserClientIp"`
 }
 
 // UpdateZoneRecordResponse is the response struct for api UpdateZoneRecord

+ 2 - 2
services/pvtz/update_zone_remark.go

@@ -76,10 +76,10 @@ func (client *Client) UpdateZoneRemarkWithCallback(request *UpdateZoneRemarkRequ
 // UpdateZoneRemarkRequest is the request struct for api UpdateZoneRemark
 type UpdateZoneRemarkRequest struct {
 	*requests.RpcRequest
-	Lang         string `position:"Query" name:"Lang"`
+	UserClientIp string `position:"Query" name:"UserClientIp"`
 	ZoneId       string `position:"Query" name:"ZoneId"`
 	Remark       string `position:"Query" name:"Remark"`
-	UserClientIp string `position:"Query" name:"UserClientIp"`
+	Lang         string `position:"Query" name:"Lang"`
 }
 
 // UpdateZoneRemarkResponse is the response struct for api UpdateZoneRemark