ソースを参照

Generated 2018-01-01 for pvtz.

sdk-team 5 年 前
コミット
1b2e5ddae3

+ 6 - 0
ChangeLog.txt

@@ -1,3 +1,9 @@
+2020-02-07 Version: v1.60.352
+- Generated 2018-01-01 for `pvtz`.
+- Fix bug for DescribeZoneInfo, delete return result of reionId.
+- Fix bug for DeleteZone, parameter zoneId change to compulsory.
+- Fix bug for SetProxyPattern, parameter zoneId change to compulsory.
+
 2020-02-05 Version: v1.60.351
 - Generated 2017-09-06 for `imm`.
 - Supported GetOfficePreviewURL.

+ 5 - 4
services/pvtz/add_zone.go

@@ -76,10 +76,11 @@ 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"`
+	ProxyPattern    string `position:"Query" name:"ProxyPattern"`
+	ZoneName        string `position:"Query" name:"ZoneName"`
+	ResourceGroupId string `position:"Query" name:"ResourceGroupId"`
+	UserClientIp    string `position:"Query" name:"UserClientIp"`
+	Lang            string `position:"Query" name:"Lang"`
 }
 
 // AddZoneResponse is the response struct for api AddZone

+ 4 - 4
services/pvtz/add_zone_record.go

@@ -77,12 +77,12 @@ 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"`
 	Priority     requests.Integer `position:"Query" name:"Priority"`
 	Ttl          requests.Integer `position:"Query" name:"Ttl"`
+	UserClientIp string           `position:"Query" name:"UserClientIp"`
+	ZoneId       string           `position:"Query" name:"ZoneId"`
+	Lang         string           `position:"Query" name:"Lang"`
 	Value        string           `position:"Query" name:"Value"`
 }
 
@@ -91,7 +91,7 @@ type AddZoneRecordResponse struct {
 	*responses.BaseResponse
 	RequestId string `json:"RequestId" xml:"RequestId"`
 	Success   bool   `json:"Success" xml:"Success"`
-	RecordId  int    `json:"RecordId" xml:"RecordId"`
+	RecordId  int64  `json:"RecordId" xml:"RecordId"`
 }
 
 // CreateAddZoneRecordRequest creates a request to invoke AddZoneRecord API

+ 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
+	ZoneName     string `position:"Query" name:"ZoneName"`
 	UserClientIp string `position:"Query" name:"UserClientIp"`
 	Lang         string `position:"Query" name:"Lang"`
-	ZoneName     string `position:"Query" name:"ZoneName"`
 }
 
 // CheckZoneNameResponse is the response struct for api CheckZoneName

+ 28 - 5
services/pvtz/client.go

@@ -18,6 +18,7 @@ package pvtz
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider"
 )
 
 // Client is the sdk client struct, each func corresponds to an OpenAPI
@@ -32,6 +33,20 @@ func NewClient() (client *Client, err error) {
 	return
 }
 
+// NewClientWithProvider creates a sdk client with providers
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) {
+	client = &Client{}
+	var pc provider.Provider
+	if len(providers) == 0 {
+		pc = provider.DefaultChain
+	} else {
+		pc = provider.NewProviderChain(providers)
+	}
+	err = client.InitWithProviderChain(regionId, pc)
+	return
+}
+
 // NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential
 // this is the common api to create a sdk client
 func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
@@ -41,7 +56,7 @@ func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.C
 }
 
 // NewClientWithAccessKey is a shortcut to create sdk client with accesskey
-// usage: https://help.aliyun.com/document_detail/66217.html
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
 func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
@@ -49,7 +64,7 @@ func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (clie
 }
 
 // NewClientWithStsToken is a shortcut to create sdk client with sts token
-// usage: https://help.aliyun.com/document_detail/66222.html
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
 func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
@@ -57,15 +72,23 @@ func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToke
 }
 
 // NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn
-// usage: https://help.aliyun.com/document_detail/66222.html
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
 func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
 	return
 }
 
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy)
+	return
+}
+
 // NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
-// usage: https://help.aliyun.com/document_detail/66223.html
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
 func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithEcsRamRole(regionId, roleName)
@@ -73,7 +96,7 @@ func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client,
 }
 
 // NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair
-// attention: rsa key pair auth is only Japan regions available
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
 func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)

+ 1 - 1
services/pvtz/delete_zone_record.go

@@ -85,7 +85,7 @@ type DeleteZoneRecordRequest struct {
 type DeleteZoneRecordResponse struct {
 	*responses.BaseResponse
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	RecordId  int    `json:"RecordId" xml:"RecordId"`
+	RecordId  int64  `json:"RecordId" xml:"RecordId"`
 }
 
 // CreateDeleteZoneRecordRequest creates a request to invoke DeleteZoneRecord API

+ 3 - 3
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
+	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"`
 	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"`
-	StartTimestamp requests.Integer `position:"Query" name:"StartTimestamp"`
-	PageNumber     requests.Integer `position:"Query" name:"PageNumber"`
-	EndTimestamp   requests.Integer `position:"Query" name:"EndTimestamp"`
 }
 
 // DescribeChangeLogsResponse is the response struct for api DescribeChangeLogs

+ 4 - 3
services/pvtz/describe_regions.go

@@ -76,9 +76,10 @@ func (client *Client) DescribeRegionsWithCallback(request *DescribeRegionsReques
 // DescribeRegionsRequest is the request struct for api DescribeRegions
 type DescribeRegionsRequest struct {
 	*requests.RpcRequest
-	UserClientIp   string `position:"Query" name:"UserClientIp"`
-	AcceptLanguage string `position:"Query" name:"AcceptLanguage"`
-	Lang           string `position:"Query" name:"Lang"`
+	AuthorizedUserId requests.Integer `position:"Query" name:"AuthorizedUserId"`
+	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,12 +76,12 @@ func (client *Client) DescribeRequestGraphWithCallback(request *DescribeRequestG
 // DescribeRequestGraphRequest is the request struct for api DescribeRequestGraph
 type DescribeRequestGraphRequest struct {
 	*requests.RpcRequest
+	StartTimestamp requests.Integer `position:"Query" name:"StartTimestamp"`
+	EndTimestamp   requests.Integer `position:"Query" name:"EndTimestamp"`
 	VpcId          string           `position:"Query" name:"VpcId"`
 	UserClientIp   string           `position:"Query" name:"UserClientIp"`
 	ZoneId         string           `position:"Query" name:"ZoneId"`
 	Lang           string           `position:"Query" name:"Lang"`
-	StartTimestamp requests.Integer `position:"Query" name:"StartTimestamp"`
-	EndTimestamp   requests.Integer `position:"Query" name:"EndTimestamp"`
 }
 
 // DescribeRequestGraphResponse is the response struct for api DescribeRequestGraph

+ 1 - 1
services/pvtz/describe_statistic_summary.go

@@ -84,7 +84,7 @@ type DescribeStatisticSummaryRequest struct {
 type DescribeStatisticSummaryResponse struct {
 	*responses.BaseResponse
 	RequestId       string          `json:"RequestId" xml:"RequestId"`
-	TotalCount      int             `json:"TotalCount" xml:"TotalCount"`
+	TotalCount      int64           `json:"TotalCount" xml:"TotalCount"`
 	ZoneRequestTops ZoneRequestTops `json:"ZoneRequestTops" xml:"ZoneRequestTops"`
 	VpcRequestTops  VpcRequestTops  `json:"VpcRequestTops" xml:"VpcRequestTops"`
 }

+ 3 - 2
services/pvtz/describe_zone_info.go

@@ -90,11 +90,12 @@ type DescribeZoneInfoResponse struct {
 	Remark          string   `json:"Remark" xml:"Remark"`
 	RecordCount     int      `json:"RecordCount" xml:"RecordCount"`
 	CreateTime      string   `json:"CreateTime" xml:"CreateTime"`
-	CreateTimestamp int      `json:"CreateTimestamp" xml:"CreateTimestamp"`
+	CreateTimestamp int64    `json:"CreateTimestamp" xml:"CreateTimestamp"`
 	UpdateTime      string   `json:"UpdateTime" xml:"UpdateTime"`
-	UpdateTimestamp int      `json:"UpdateTimestamp" xml:"UpdateTimestamp"`
+	UpdateTimestamp int64    `json:"UpdateTimestamp" xml:"UpdateTimestamp"`
 	IsPtr           bool     `json:"IsPtr" xml:"IsPtr"`
 	ProxyPattern    string   `json:"ProxyPattern" xml:"ProxyPattern"`
+	SlaveDns        bool     `json:"SlaveDns" xml:"SlaveDns"`
 	BindVpcs        BindVpcs `json:"BindVpcs" xml:"BindVpcs"`
 }
 

+ 3 - 1
services/pvtz/describe_zone_records.go

@@ -76,6 +76,8 @@ func (client *Client) DescribeZoneRecordsWithCallback(request *DescribeZoneRecor
 // DescribeZoneRecordsRequest is the request struct for api DescribeZoneRecords
 type DescribeZoneRecordsRequest struct {
 	*requests.RpcRequest
+	OrderBy      string           `position:"Query" name:"OrderBy"`
+	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"`
@@ -83,7 +85,7 @@ type DescribeZoneRecordsRequest struct {
 	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"`
+	Direction    string           `position:"Query" name:"Direction"`
 }
 
 // DescribeZoneRecordsResponse is the response struct for api DescribeZoneRecords

+ 11 - 8
services/pvtz/describe_zones.go

@@ -76,14 +76,17 @@ func (client *Client) DescribeZonesWithCallback(request *DescribeZonesRequest, c
 // DescribeZonesRequest is the request struct for api DescribeZones
 type DescribeZonesRequest struct {
 	*requests.RpcRequest
-	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"`
+	QueryVpcId      string           `position:"Query" name:"QueryVpcId"`
+	PageNumber      requests.Integer `position:"Query" name:"PageNumber"`
+	ResourceGroupId string           `position:"Query" name:"ResourceGroupId"`
+	PageSize        requests.Integer `position:"Query" name:"PageSize"`
+	Lang            string           `position:"Query" name:"Lang"`
+	Keyword         string           `position:"Query" name:"Keyword"`
+	Direction       string           `position:"Query" name:"Direction"`
+	OrderBy         string           `position:"Query" name:"OrderBy"`
+	UserClientIp    string           `position:"Query" name:"UserClientIp"`
+	SearchMode      string           `position:"Query" name:"SearchMode"`
+	QueryRegionId   string           `position:"Query" name:"QueryRegionId"`
 }
 
 // DescribeZonesResponse is the response struct for api DescribeZones

+ 1 - 1
services/pvtz/set_zone_record_status.go

@@ -86,7 +86,7 @@ type SetZoneRecordStatusRequest struct {
 type SetZoneRecordStatusResponse struct {
 	*responses.BaseResponse
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	RecordId  int    `json:"RecordId" xml:"RecordId"`
+	RecordId  int64  `json:"RecordId" xml:"RecordId"`
 	Status    string `json:"Status" xml:"Status"`
 }
 

+ 2 - 2
services/pvtz/struct_change_log.go

@@ -23,7 +23,7 @@ type ChangeLog struct {
 	EntityId      string `json:"EntityId" xml:"EntityId"`
 	EntityName    string `json:"EntityName" xml:"EntityName"`
 	OperIp        string `json:"OperIp" xml:"OperIp"`
-	OperTimestamp int    `json:"OperTimestamp" xml:"OperTimestamp"`
-	Id            int    `json:"Id" xml:"Id"`
+	OperTimestamp int64  `json:"OperTimestamp" xml:"OperTimestamp"`
+	Id            int64  `json:"Id" xml:"Id"`
 	Content       string `json:"Content" xml:"Content"`
 }

+ 3 - 1
services/pvtz/struct_record.go

@@ -17,11 +17,13 @@ package pvtz
 
 // Record is a nested struct in pvtz response
 type Record struct {
-	RecordId int    `json:"RecordId" xml:"RecordId"`
+	RecordId int64  `json:"RecordId" xml:"RecordId"`
 	Rr       string `json:"Rr" xml:"Rr"`
 	Type     string `json:"Type" xml:"Type"`
 	Ttl      int    `json:"Ttl" xml:"Ttl"`
 	Priority int    `json:"Priority" xml:"Priority"`
 	Value    string `json:"Value" xml:"Value"`
 	Status   string `json:"Status" xml:"Status"`
+	RegionId string `json:"RegionId" xml:"RegionId"`
+	Remark   string `json:"Remark" xml:"Remark"`
 }

+ 0 - 1
services/pvtz/struct_vpc.go

@@ -21,5 +21,4 @@ type Vpc struct {
 	VpcName    string `json:"VpcName" xml:"VpcName"`
 	VpcId      string `json:"VpcId" xml:"VpcId"`
 	RegionName string `json:"RegionName" xml:"RegionName"`
-	ReionId    string `json:"ReionId" xml:"ReionId"`
 }

+ 1 - 1
services/pvtz/struct_vpc_request_top.go

@@ -20,6 +20,6 @@ type VpcRequestTop struct {
 	RegionId     string `json:"RegionId" xml:"RegionId"`
 	VpcId        string `json:"VpcId" xml:"VpcId"`
 	TunnelId     string `json:"TunnelId" xml:"TunnelId"`
-	RequestCount int    `json:"RequestCount" xml:"RequestCount"`
+	RequestCount int64  `json:"RequestCount" xml:"RequestCount"`
 	RegionName   string `json:"RegionName" xml:"RegionName"`
 }

+ 2 - 2
services/pvtz/struct_zone.go

@@ -21,11 +21,11 @@ type Zone struct {
 	UpdateTime      string `json:"UpdateTime" xml:"UpdateTime"`
 	ProxyPattern    string `json:"ProxyPattern" xml:"ProxyPattern"`
 	Remark          string `json:"Remark" xml:"Remark"`
-	CreateTimestamp int    `json:"CreateTimestamp" xml:"CreateTimestamp"`
+	CreateTimestamp int64  `json:"CreateTimestamp" xml:"CreateTimestamp"`
 	RecordCount     int    `json:"RecordCount" xml:"RecordCount"`
 	CreateTime      string `json:"CreateTime" xml:"CreateTime"`
 	ZoneName        string `json:"ZoneName" xml:"ZoneName"`
 	IsPtr           bool   `json:"IsPtr" xml:"IsPtr"`
-	UpdateTimestamp int    `json:"UpdateTimestamp" xml:"UpdateTimestamp"`
+	UpdateTimestamp int64  `json:"UpdateTimestamp" xml:"UpdateTimestamp"`
 	Vpcs            Vpcs   `json:"Vpcs" xml:"Vpcs"`
 }

+ 2 - 2
services/pvtz/struct_zone_request_top.go

@@ -18,7 +18,7 @@ package pvtz
 // ZoneRequestTop is a nested struct in pvtz response
 type ZoneRequestTop struct {
 	Time         string `json:"Time" xml:"Time"`
-	RequestCount int    `json:"RequestCount" xml:"RequestCount"`
-	Timestamp    int    `json:"Timestamp" xml:"Timestamp"`
+	RequestCount int64  `json:"RequestCount" xml:"RequestCount"`
+	Timestamp    int64  `json:"Timestamp" xml:"Timestamp"`
 	ZoneName     string `json:"ZoneName" xml:"ZoneName"`
 }

+ 107 - 0
services/pvtz/update_record_remark.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"
+)
+
+// UpdateRecordRemark invokes the pvtz.UpdateRecordRemark API synchronously
+// api document: https://help.aliyun.com/api/pvtz/updaterecordremark.html
+func (client *Client) UpdateRecordRemark(request *UpdateRecordRemarkRequest) (response *UpdateRecordRemarkResponse, err error) {
+	response = CreateUpdateRecordRemarkResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateRecordRemarkWithChan invokes the pvtz.UpdateRecordRemark API asynchronously
+// api document: https://help.aliyun.com/api/pvtz/updaterecordremark.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateRecordRemarkWithChan(request *UpdateRecordRemarkRequest) (<-chan *UpdateRecordRemarkResponse, <-chan error) {
+	responseChan := make(chan *UpdateRecordRemarkResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateRecordRemark(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateRecordRemarkWithCallback invokes the pvtz.UpdateRecordRemark API asynchronously
+// api document: https://help.aliyun.com/api/pvtz/updaterecordremark.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateRecordRemarkWithCallback(request *UpdateRecordRemarkRequest, callback func(response *UpdateRecordRemarkResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateRecordRemarkResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateRecordRemark(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateRecordRemarkRequest is the request struct for api UpdateRecordRemark
+type UpdateRecordRemarkRequest struct {
+	*requests.RpcRequest
+	Remark       string           `position:"Query" name:"Remark"`
+	RecordId     requests.Integer `position:"Query" name:"RecordId"`
+	UserClientIp string           `position:"Query" name:"UserClientIp"`
+	Lang         string           `position:"Query" name:"Lang"`
+}
+
+// UpdateRecordRemarkResponse is the response struct for api UpdateRecordRemark
+type UpdateRecordRemarkResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	RecordId  int64  `json:"RecordId" xml:"RecordId"`
+}
+
+// CreateUpdateRecordRemarkRequest creates a request to invoke UpdateRecordRemark API
+func CreateUpdateRecordRemarkRequest() (request *UpdateRecordRemarkRequest) {
+	request = &UpdateRecordRemarkRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("pvtz", "2018-01-01", "UpdateRecordRemark", "pvtz", "openAPI")
+	return
+}
+
+// CreateUpdateRecordRemarkResponse creates a response to parse from UpdateRecordRemark response
+func CreateUpdateRecordRemarkResponse() (response *UpdateRecordRemarkResponse) {
+	response = &UpdateRecordRemarkResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 4 - 4
services/pvtz/update_zone_record.go

@@ -77,12 +77,12 @@ func (client *Client) UpdateZoneRecordWithCallback(request *UpdateZoneRecordRequ
 type UpdateZoneRecordRequest struct {
 	*requests.RpcRequest
 	Rr           string           `position:"Query" name:"Rr"`
-	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"`
 	Priority     requests.Integer `position:"Query" name:"Priority"`
 	Ttl          requests.Integer `position:"Query" name:"Ttl"`
+	RecordId     requests.Integer `position:"Query" name:"RecordId"`
+	UserClientIp string           `position:"Query" name:"UserClientIp"`
+	Lang         string           `position:"Query" name:"Lang"`
 	Value        string           `position:"Query" name:"Value"`
 }
 
@@ -90,7 +90,7 @@ type UpdateZoneRecordRequest struct {
 type UpdateZoneRecordResponse struct {
 	*responses.BaseResponse
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	RecordId  int    `json:"RecordId" xml:"RecordId"`
+	RecordId  int64  `json:"RecordId" xml:"RecordId"`
 }
 
 // CreateUpdateZoneRecordRequest creates a request to invoke UpdateZoneRecord API

+ 1 - 1
services/pvtz/update_zone_remark.go

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