Bladeren bron

CLOUDAUTH SDK Auto Released By gongpei.gp,Version:1.53.91

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 6 jaren geleden
bovenliggende
commit
6de31f05f8

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-04-09 Version: 1.53.91
+1, Add Apis for offline VerifySDK.
+
 2019-04-08 Version: 1.53.90
 1, Modify DescribeBackupPlanList DBS interface.
 2, Modify DescribeFullBackupList DBS interface.

+ 1 - 1
services/cloudauth/compare_faces.go

@@ -99,7 +99,7 @@ func CreateCompareFacesRequest() (request *CompareFacesRequest) {
 	request = &CompareFacesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cloudauth", "2018-09-16", "CompareFaces", "CloudAuth", "openAPI")
+	request.InitWithApiInfo("Cloudauth", "2018-09-16", "CompareFaces", "cloudauth", "openAPI")
 	return
 }
 

+ 109 - 0
services/cloudauth/create_auth_key.go

@@ -0,0 +1,109 @@
+package cloudauth
+
+//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"
+)
+
+// CreateAuthKey invokes the cloudauth.CreateAuthKey API synchronously
+// api document: https://help.aliyun.com/api/cloudauth/createauthkey.html
+func (client *Client) CreateAuthKey(request *CreateAuthKeyRequest) (response *CreateAuthKeyResponse, err error) {
+	response = CreateCreateAuthKeyResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateAuthKeyWithChan invokes the cloudauth.CreateAuthKey API asynchronously
+// api document: https://help.aliyun.com/api/cloudauth/createauthkey.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateAuthKeyWithChan(request *CreateAuthKeyRequest) (<-chan *CreateAuthKeyResponse, <-chan error) {
+	responseChan := make(chan *CreateAuthKeyResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateAuthKey(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateAuthKeyWithCallback invokes the cloudauth.CreateAuthKey API asynchronously
+// api document: https://help.aliyun.com/api/cloudauth/createauthkey.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateAuthKeyWithCallback(request *CreateAuthKeyRequest, callback func(response *CreateAuthKeyResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateAuthKeyResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateAuthKey(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateAuthKeyRequest is the request struct for api CreateAuthKey
+type CreateAuthKeyRequest struct {
+	*requests.RpcRequest
+	BizType      string           `position:"Query" name:"BizType"`
+	UserDeviceId string           `position:"Query" name:"UserDeviceId"`
+	SourceIp     string           `position:"Query" name:"SourceIp"`
+	Test         requests.Boolean `position:"Query" name:"Test"`
+	AuthYears    requests.Integer `position:"Query" name:"AuthYears"`
+	Lang         string           `position:"Query" name:"Lang"`
+}
+
+// CreateAuthKeyResponse is the response struct for api CreateAuthKey
+type CreateAuthKeyResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	AuthKey   string `json:"AuthKey" xml:"AuthKey"`
+}
+
+// CreateCreateAuthKeyRequest creates a request to invoke CreateAuthKey API
+func CreateCreateAuthKeyRequest() (request *CreateAuthKeyRequest) {
+	request = &CreateAuthKeyRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cloudauth", "2018-09-16", "CreateAuthKey", "cloudauth", "openAPI")
+	return
+}
+
+// CreateCreateAuthKeyResponse creates a response to parse from CreateAuthKey response
+func CreateCreateAuthKeyResponse() (response *CreateAuthKeyResponse) {
+	response = &CreateAuthKeyResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/cloudauth/create_verify_sdk.go

@@ -0,0 +1,107 @@
+package cloudauth
+
+//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"
+)
+
+// CreateVerifySDK invokes the cloudauth.CreateVerifySDK API synchronously
+// api document: https://help.aliyun.com/api/cloudauth/createverifysdk.html
+func (client *Client) CreateVerifySDK(request *CreateVerifySDKRequest) (response *CreateVerifySDKResponse, err error) {
+	response = CreateCreateVerifySDKResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateVerifySDKWithChan invokes the cloudauth.CreateVerifySDK API asynchronously
+// api document: https://help.aliyun.com/api/cloudauth/createverifysdk.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateVerifySDKWithChan(request *CreateVerifySDKRequest) (<-chan *CreateVerifySDKResponse, <-chan error) {
+	responseChan := make(chan *CreateVerifySDKResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateVerifySDK(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateVerifySDKWithCallback invokes the cloudauth.CreateVerifySDK API asynchronously
+// api document: https://help.aliyun.com/api/cloudauth/createverifysdk.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateVerifySDKWithCallback(request *CreateVerifySDKRequest, callback func(response *CreateVerifySDKResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateVerifySDKResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateVerifySDK(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateVerifySDKRequest is the request struct for api CreateVerifySDK
+type CreateVerifySDKRequest struct {
+	*requests.RpcRequest
+	SourceIp string `position:"Query" name:"SourceIp"`
+	AppUrl   string `position:"Query" name:"AppUrl"`
+	Lang     string `position:"Query" name:"Lang"`
+	Platform string `position:"Query" name:"Platform"`
+}
+
+// CreateVerifySDKResponse is the response struct for api CreateVerifySDK
+type CreateVerifySDKResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	TaskId    string `json:"TaskId" xml:"TaskId"`
+}
+
+// CreateCreateVerifySDKRequest creates a request to invoke CreateVerifySDK API
+func CreateCreateVerifySDKRequest() (request *CreateVerifySDKRequest) {
+	request = &CreateVerifySDKRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cloudauth", "2018-09-16", "CreateVerifySDK", "cloudauth", "openAPI")
+	return
+}
+
+// CreateCreateVerifySDKResponse creates a response to parse from CreateVerifySDK response
+func CreateCreateVerifySDKResponse() (response *CreateVerifySDKResponse) {
+	response = &CreateVerifySDKResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 116 - 0
services/cloudauth/describe_device_info.go

@@ -0,0 +1,116 @@
+package cloudauth
+
+//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"
+)
+
+// DescribeDeviceInfo invokes the cloudauth.DescribeDeviceInfo API synchronously
+// api document: https://help.aliyun.com/api/cloudauth/describedeviceinfo.html
+func (client *Client) DescribeDeviceInfo(request *DescribeDeviceInfoRequest) (response *DescribeDeviceInfoResponse, err error) {
+	response = CreateDescribeDeviceInfoResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeDeviceInfoWithChan invokes the cloudauth.DescribeDeviceInfo API asynchronously
+// api document: https://help.aliyun.com/api/cloudauth/describedeviceinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDeviceInfoWithChan(request *DescribeDeviceInfoRequest) (<-chan *DescribeDeviceInfoResponse, <-chan error) {
+	responseChan := make(chan *DescribeDeviceInfoResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeDeviceInfo(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeDeviceInfoWithCallback invokes the cloudauth.DescribeDeviceInfo API asynchronously
+// api document: https://help.aliyun.com/api/cloudauth/describedeviceinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDeviceInfoWithCallback(request *DescribeDeviceInfoRequest, callback func(response *DescribeDeviceInfoResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeDeviceInfoResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeDeviceInfo(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeDeviceInfoRequest is the request struct for api DescribeDeviceInfo
+type DescribeDeviceInfoRequest struct {
+	*requests.RpcRequest
+	BizType         string           `position:"Query" name:"BizType"`
+	UserDeviceId    string           `position:"Query" name:"UserDeviceId"`
+	TotalCount      requests.Integer `position:"Query" name:"TotalCount"`
+	SourceIp        string           `position:"Query" name:"SourceIp"`
+	PageSize        requests.Integer `position:"Query" name:"PageSize"`
+	CurrentPage     requests.Integer `position:"Query" name:"CurrentPage"`
+	Lang            string           `position:"Query" name:"Lang"`
+	ExpiredEndDay   string           `position:"Query" name:"ExpiredEndDay"`
+	DeviceId        string           `position:"Query" name:"DeviceId"`
+	ExpiredStartDay string           `position:"Query" name:"ExpiredStartDay"`
+}
+
+// DescribeDeviceInfoResponse is the response struct for api DescribeDeviceInfo
+type DescribeDeviceInfoResponse struct {
+	*responses.BaseResponse
+	RequestId      string         `json:"RequestId" xml:"RequestId"`
+	PageSize       int            `json:"PageSize" xml:"PageSize"`
+	CurrentPage    int            `json:"CurrentPage" xml:"CurrentPage"`
+	TotalCount     int            `json:"TotalCount" xml:"TotalCount"`
+	DeviceInfoList DeviceInfoList `json:"DeviceInfoList" xml:"DeviceInfoList"`
+}
+
+// CreateDescribeDeviceInfoRequest creates a request to invoke DescribeDeviceInfo API
+func CreateDescribeDeviceInfoRequest() (request *DescribeDeviceInfoRequest) {
+	request = &DescribeDeviceInfoRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cloudauth", "2018-09-16", "DescribeDeviceInfo", "cloudauth", "openAPI")
+	return
+}
+
+// CreateDescribeDeviceInfoResponse creates a response to parse from DescribeDeviceInfo response
+func CreateDescribeDeviceInfoResponse() (response *DescribeDeviceInfoResponse) {
+	response = &DescribeDeviceInfoResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/cloudauth/describe_verify_sdk.go

@@ -0,0 +1,106 @@
+package cloudauth
+
+//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"
+)
+
+// DescribeVerifySDK invokes the cloudauth.DescribeVerifySDK API synchronously
+// api document: https://help.aliyun.com/api/cloudauth/describeverifysdk.html
+func (client *Client) DescribeVerifySDK(request *DescribeVerifySDKRequest) (response *DescribeVerifySDKResponse, err error) {
+	response = CreateDescribeVerifySDKResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeVerifySDKWithChan invokes the cloudauth.DescribeVerifySDK API asynchronously
+// api document: https://help.aliyun.com/api/cloudauth/describeverifysdk.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeVerifySDKWithChan(request *DescribeVerifySDKRequest) (<-chan *DescribeVerifySDKResponse, <-chan error) {
+	responseChan := make(chan *DescribeVerifySDKResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeVerifySDK(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeVerifySDKWithCallback invokes the cloudauth.DescribeVerifySDK API asynchronously
+// api document: https://help.aliyun.com/api/cloudauth/describeverifysdk.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeVerifySDKWithCallback(request *DescribeVerifySDKRequest, callback func(response *DescribeVerifySDKResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeVerifySDKResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeVerifySDK(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeVerifySDKRequest is the request struct for api DescribeVerifySDK
+type DescribeVerifySDKRequest struct {
+	*requests.RpcRequest
+	SourceIp string `position:"Query" name:"SourceIp"`
+	Lang     string `position:"Query" name:"Lang"`
+	TaskId   string `position:"Query" name:"TaskId"`
+}
+
+// DescribeVerifySDKResponse is the response struct for api DescribeVerifySDK
+type DescribeVerifySDKResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	SdkUrl    string `json:"SdkUrl" xml:"SdkUrl"`
+}
+
+// CreateDescribeVerifySDKRequest creates a request to invoke DescribeVerifySDK API
+func CreateDescribeVerifySDKRequest() (request *DescribeVerifySDKRequest) {
+	request = &DescribeVerifySDKRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cloudauth", "2018-09-16", "DescribeVerifySDK", "cloudauth", "openAPI")
+	return
+}
+
+// CreateDescribeVerifySDKResponse creates a response to parse from DescribeVerifySDK response
+func CreateDescribeVerifySDKResponse() (response *DescribeVerifySDKResponse) {
+	response = &DescribeVerifySDKResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/cloudauth/detect_face_attributes.go

@@ -101,7 +101,7 @@ func CreateDetectFaceAttributesRequest() (request *DetectFaceAttributesRequest)
 	request = &DetectFaceAttributesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cloudauth", "2018-09-16", "DetectFaceAttributes", "CloudAuth", "openAPI")
+	request.InitWithApiInfo("Cloudauth", "2018-09-16", "DetectFaceAttributes", "cloudauth", "openAPI")
 	return
 }
 

+ 1 - 1
services/cloudauth/get_materials.go

@@ -97,7 +97,7 @@ func CreateGetMaterialsRequest() (request *GetMaterialsRequest) {
 	request = &GetMaterialsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cloudauth", "2018-09-16", "GetMaterials", "CloudAuth", "openAPI")
+	request.InitWithApiInfo("Cloudauth", "2018-09-16", "GetMaterials", "cloudauth", "openAPI")
 	return
 }
 

+ 1 - 1
services/cloudauth/get_status.go

@@ -97,7 +97,7 @@ func CreateGetStatusRequest() (request *GetStatusRequest) {
 	request = &GetStatusRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cloudauth", "2018-09-16", "GetStatus", "CloudAuth", "openAPI")
+	request.InitWithApiInfo("Cloudauth", "2018-09-16", "GetStatus", "cloudauth", "openAPI")
 	return
 }
 

+ 1 - 1
services/cloudauth/get_verify_token.go

@@ -100,7 +100,7 @@ func CreateGetVerifyTokenRequest() (request *GetVerifyTokenRequest) {
 	request = &GetVerifyTokenRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cloudauth", "2018-09-16", "GetVerifyToken", "CloudAuth", "openAPI")
+	request.InitWithApiInfo("Cloudauth", "2018-09-16", "GetVerifyToken", "cloudauth", "openAPI")
 	return
 }
 

+ 114 - 0
services/cloudauth/modify_device_info.go

@@ -0,0 +1,114 @@
+package cloudauth
+
+//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"
+)
+
+// ModifyDeviceInfo invokes the cloudauth.ModifyDeviceInfo API synchronously
+// api document: https://help.aliyun.com/api/cloudauth/modifydeviceinfo.html
+func (client *Client) ModifyDeviceInfo(request *ModifyDeviceInfoRequest) (response *ModifyDeviceInfoResponse, err error) {
+	response = CreateModifyDeviceInfoResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ModifyDeviceInfoWithChan invokes the cloudauth.ModifyDeviceInfo API asynchronously
+// api document: https://help.aliyun.com/api/cloudauth/modifydeviceinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDeviceInfoWithChan(request *ModifyDeviceInfoRequest) (<-chan *ModifyDeviceInfoResponse, <-chan error) {
+	responseChan := make(chan *ModifyDeviceInfoResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ModifyDeviceInfo(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ModifyDeviceInfoWithCallback invokes the cloudauth.ModifyDeviceInfo API asynchronously
+// api document: https://help.aliyun.com/api/cloudauth/modifydeviceinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDeviceInfoWithCallback(request *ModifyDeviceInfoRequest, callback func(response *ModifyDeviceInfoResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ModifyDeviceInfoResponse
+		var err error
+		defer close(result)
+		response, err = client.ModifyDeviceInfo(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ModifyDeviceInfoRequest is the request struct for api ModifyDeviceInfo
+type ModifyDeviceInfoRequest struct {
+	*requests.RpcRequest
+	UserDeviceId string `position:"Query" name:"UserDeviceId"`
+	BizType      string `position:"Query" name:"BizType"`
+	Duration     string `position:"Query" name:"Duration"`
+	ExpiredDay   string `position:"Query" name:"ExpiredDay"`
+	SourceIp     string `position:"Query" name:"SourceIp"`
+	Lang         string `position:"Query" name:"Lang"`
+	DeviceId     string `position:"Query" name:"DeviceId"`
+}
+
+// ModifyDeviceInfoResponse is the response struct for api ModifyDeviceInfo
+type ModifyDeviceInfoResponse struct {
+	*responses.BaseResponse
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	DeviceId     string `json:"DeviceId" xml:"DeviceId"`
+	UserDeviceId string `json:"UserDeviceId" xml:"UserDeviceId"`
+	BizType      string `json:"BizType" xml:"BizType"`
+	BeginDay     string `json:"BeginDay" xml:"BeginDay"`
+	ExpiredDay   string `json:"ExpiredDay" xml:"ExpiredDay"`
+}
+
+// CreateModifyDeviceInfoRequest creates a request to invoke ModifyDeviceInfo API
+func CreateModifyDeviceInfoRequest() (request *ModifyDeviceInfoRequest) {
+	request = &ModifyDeviceInfoRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cloudauth", "2018-09-16", "ModifyDeviceInfo", "cloudauth", "openAPI")
+	return
+}
+
+// CreateModifyDeviceInfoResponse creates a response to parse from ModifyDeviceInfo response
+func CreateModifyDeviceInfoResponse() (response *ModifyDeviceInfoResponse) {
+	response = &ModifyDeviceInfoResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 25 - 0
services/cloudauth/struct_device_info.go

@@ -0,0 +1,25 @@
+package cloudauth
+
+//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.
+
+// DeviceInfo is a nested struct in cloudauth response
+type DeviceInfo struct {
+	DeviceId     string `json:"DeviceId" xml:"DeviceId"`
+	UserDeviceId string `json:"UserDeviceId" xml:"UserDeviceId"`
+	BizType      string `json:"BizType" xml:"BizType"`
+	BeginDay     string `json:"BeginDay" xml:"BeginDay"`
+	ExpiredDay   string `json:"ExpiredDay" xml:"ExpiredDay"`
+}

+ 21 - 0
services/cloudauth/struct_device_info_list.go

@@ -0,0 +1,21 @@
+package cloudauth
+
+//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.
+
+// DeviceInfoList is a nested struct in cloudauth response
+type DeviceInfoList struct {
+	DeviceInfo []DeviceInfo `json:"DeviceInfo" xml:"DeviceInfo"`
+}

+ 1 - 1
services/cloudauth/submit_materials.go

@@ -103,7 +103,7 @@ func CreateSubmitMaterialsRequest() (request *SubmitMaterialsRequest) {
 	request = &SubmitMaterialsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cloudauth", "2018-09-16", "SubmitMaterials", "CloudAuth", "openAPI")
+	request.InitWithApiInfo("Cloudauth", "2018-09-16", "SubmitMaterials", "cloudauth", "openAPI")
 	return
 }
 

+ 1 - 1
services/cloudauth/submit_verification.go

@@ -104,7 +104,7 @@ func CreateSubmitVerificationRequest() (request *SubmitVerificationRequest) {
 	request = &SubmitVerificationRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cloudauth", "2018-09-16", "SubmitVerification", "CloudAuth", "openAPI")
+	request.InitWithApiInfo("Cloudauth", "2018-09-16", "SubmitVerification", "cloudauth", "openAPI")
 	return
 }