Browse Source

GREEN SDK Auto Released By Alibaba Cloud,Version:1.17.0

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 7 years ago
parent
commit
0ffa1dbc6b

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-05-28 Version: 1.17.0
+1, Add face 1-N,1-1 scan interface.
+
 2018-05-28 Version: 1.16.0
 1, ValidateSecurityGroup API
 

+ 1 - 1
services/green/add_faces.go

@@ -89,7 +89,7 @@ func CreateAddFacesRequest() (request *AddFacesRequest) {
 	request = &AddFacesRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "AddFaces", "/green/sface/addFaces", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "AddFaces", "/green/sface/face/add", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/add_groups.go

@@ -89,7 +89,7 @@ func CreateAddGroupsRequest() (request *AddGroupsRequest) {
 	request = &AddGroupsRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "AddGroups", "/green/sface/addGroupsOfPerson", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "AddGroups", "/green/sface/person/groups/add", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/add_person.go

@@ -89,7 +89,7 @@ func CreateAddPersonRequest() (request *AddPersonRequest) {
 	request = &AddPersonRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "AddPerson", "/green/sface/addPerson", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "AddPerson", "/green/sface/person/add", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 103 - 0
services/green/add_similarity_image.go

@@ -0,0 +1,103 @@
+package green
+
+//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"
+)
+
+// AddSimilarityImage invokes the green.AddSimilarityImage API synchronously
+// api document: https://help.aliyun.com/api/green/addsimilarityimage.html
+func (client *Client) AddSimilarityImage(request *AddSimilarityImageRequest) (response *AddSimilarityImageResponse, err error) {
+	response = CreateAddSimilarityImageResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// AddSimilarityImageWithChan invokes the green.AddSimilarityImage API asynchronously
+// api document: https://help.aliyun.com/api/green/addsimilarityimage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddSimilarityImageWithChan(request *AddSimilarityImageRequest) (<-chan *AddSimilarityImageResponse, <-chan error) {
+	responseChan := make(chan *AddSimilarityImageResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.AddSimilarityImage(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// AddSimilarityImageWithCallback invokes the green.AddSimilarityImage API asynchronously
+// api document: https://help.aliyun.com/api/green/addsimilarityimage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddSimilarityImageWithCallback(request *AddSimilarityImageRequest, callback func(response *AddSimilarityImageResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *AddSimilarityImageResponse
+		var err error
+		defer close(result)
+		response, err = client.AddSimilarityImage(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// AddSimilarityImageRequest is the request struct for api AddSimilarityImage
+type AddSimilarityImageRequest struct {
+	*requests.RoaRequest
+	ClientInfo string `position:"Query" name:"ClientInfo"`
+}
+
+// AddSimilarityImageResponse is the response struct for api AddSimilarityImage
+type AddSimilarityImageResponse struct {
+	*responses.BaseResponse
+}
+
+// CreateAddSimilarityImageRequest creates a request to invoke AddSimilarityImage API
+func CreateAddSimilarityImageRequest() (request *AddSimilarityImageRequest) {
+	request = &AddSimilarityImageRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("Green", "2018-05-09", "AddSimilarityImage", "/green/similarity/image/add", "green", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateAddSimilarityImageResponse creates a response to parse from AddSimilarityImage response
+func CreateAddSimilarityImageResponse() (response *AddSimilarityImageResponse) {
+	response = &AddSimilarityImageResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/green/delete_faces.go

@@ -89,7 +89,7 @@ func CreateDeleteFacesRequest() (request *DeleteFacesRequest) {
 	request = &DeleteFacesRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "DeleteFaces", "/green/sface/deleteFaces", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "DeleteFaces", "/green/sface/face/delete", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/delete_groups.go

@@ -89,7 +89,7 @@ func CreateDeleteGroupsRequest() (request *DeleteGroupsRequest) {
 	request = &DeleteGroupsRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "DeleteGroups", "/green/sface/deleteGroupsOfPerson", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "DeleteGroups", "/green/sface/person/groups/delete", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/delete_person.go

@@ -89,7 +89,7 @@ func CreateDeletePersonRequest() (request *DeletePersonRequest) {
 	request = &DeletePersonRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "DeletePerson", "/green/sface/deletePerson", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "DeletePerson", "/green/sface/person/delete", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 103 - 0
services/green/delete_similarity_image.go

@@ -0,0 +1,103 @@
+package green
+
+//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"
+)
+
+// DeleteSimilarityImage invokes the green.DeleteSimilarityImage API synchronously
+// api document: https://help.aliyun.com/api/green/deletesimilarityimage.html
+func (client *Client) DeleteSimilarityImage(request *DeleteSimilarityImageRequest) (response *DeleteSimilarityImageResponse, err error) {
+	response = CreateDeleteSimilarityImageResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteSimilarityImageWithChan invokes the green.DeleteSimilarityImage API asynchronously
+// api document: https://help.aliyun.com/api/green/deletesimilarityimage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteSimilarityImageWithChan(request *DeleteSimilarityImageRequest) (<-chan *DeleteSimilarityImageResponse, <-chan error) {
+	responseChan := make(chan *DeleteSimilarityImageResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteSimilarityImage(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteSimilarityImageWithCallback invokes the green.DeleteSimilarityImage API asynchronously
+// api document: https://help.aliyun.com/api/green/deletesimilarityimage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteSimilarityImageWithCallback(request *DeleteSimilarityImageRequest, callback func(response *DeleteSimilarityImageResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteSimilarityImageResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteSimilarityImage(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteSimilarityImageRequest is the request struct for api DeleteSimilarityImage
+type DeleteSimilarityImageRequest struct {
+	*requests.RoaRequest
+	ClientInfo string `position:"Query" name:"ClientInfo"`
+}
+
+// DeleteSimilarityImageResponse is the response struct for api DeleteSimilarityImage
+type DeleteSimilarityImageResponse struct {
+	*responses.BaseResponse
+}
+
+// CreateDeleteSimilarityImageRequest creates a request to invoke DeleteSimilarityImage API
+func CreateDeleteSimilarityImageRequest() (request *DeleteSimilarityImageRequest) {
+	request = &DeleteSimilarityImageRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("Green", "2018-05-09", "DeleteSimilarityImage", "/green/similarity/image/delete", "green", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateDeleteSimilarityImageResponse creates a response to parse from DeleteSimilarityImage response
+func CreateDeleteSimilarityImageResponse() (response *DeleteSimilarityImageResponse) {
+	response = &DeleteSimilarityImageResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/green/file_async_scan.go

@@ -89,7 +89,7 @@ func CreateFileAsyncScanRequest() (request *FileAsyncScanRequest) {
 	request = &FileAsyncScanRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "FileAsyncScan", "/green/file/asyncscan", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "FileAsyncScan", "/green/file/asyncscan", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/file_async_scan_results.go

@@ -89,7 +89,7 @@ func CreateFileAsyncScanResultsRequest() (request *FileAsyncScanResultsRequest)
 	request = &FileAsyncScanResultsRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "FileAsyncScanResults", "/green/file/results", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "FileAsyncScanResults", "/green/file/results", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/get_faces.go

@@ -89,7 +89,7 @@ func CreateGetFacesRequest() (request *GetFacesRequest) {
 	request = &GetFacesRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "GetFaces", "/green/sface/getFaces", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "GetFaces", "/green/sface/getFaces", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/get_groups.go

@@ -89,7 +89,7 @@ func CreateGetGroupsRequest() (request *GetGroupsRequest) {
 	request = &GetGroupsRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "GetGroups", "/green/sface/getGroups", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "GetGroups", "/green/sface/groups", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/get_person.go

@@ -89,7 +89,7 @@ func CreateGetPersonRequest() (request *GetPersonRequest) {
 	request = &GetPersonRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "GetPerson", "/green/sface/getPerson", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "GetPerson", "/green/sface/person", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/get_persons.go

@@ -89,7 +89,7 @@ func CreateGetPersonsRequest() (request *GetPersonsRequest) {
 	request = &GetPersonsRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "GetPersons", "/green/sface/getPersons", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "GetPersons", "/green/sface/group/persons", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/image_async_scan.go

@@ -89,7 +89,7 @@ func CreateImageAsyncScanRequest() (request *ImageAsyncScanRequest) {
 	request = &ImageAsyncScanRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "ImageAsyncScan", "/green/image/asyncscan", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "ImageAsyncScan", "/green/image/asyncscan", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/image_async_scan_results.go

@@ -89,7 +89,7 @@ func CreateImageAsyncScanResultsRequest() (request *ImageAsyncScanResultsRequest
 	request = &ImageAsyncScanResultsRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "ImageAsyncScanResults", "/green/image/results", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "ImageAsyncScanResults", "/green/image/results", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/image_scan_feedback.go

@@ -89,7 +89,7 @@ func CreateImageScanFeedbackRequest() (request *ImageScanFeedbackRequest) {
 	request = &ImageScanFeedbackRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "ImageScanFeedback", "/green/image/feedback", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "ImageScanFeedback", "/green/image/feedback", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/image_sync_scan.go

@@ -89,7 +89,7 @@ func CreateImageSyncScanRequest() (request *ImageSyncScanRequest) {
 	request = &ImageSyncScanRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "ImageSyncScan", "/green/image/scan", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "ImageSyncScan", "/green/image/scan", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 25 - 25
services/green/search.go → services/green/search_person.go

@@ -20,24 +20,24 @@ import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 )
 
-// Search invokes the green.Search API synchronously
-// api document: https://help.aliyun.com/api/green/search.html
-func (client *Client) Search(request *SearchRequest) (response *SearchResponse, err error) {
-	response = CreateSearchResponse()
+// SearchPerson invokes the green.SearchPerson API synchronously
+// api document: https://help.aliyun.com/api/green/searchperson.html
+func (client *Client) SearchPerson(request *SearchPersonRequest) (response *SearchPersonResponse, err error) {
+	response = CreateSearchPersonResponse()
 	err = client.DoAction(request, response)
 	return
 }
 
-// SearchWithChan invokes the green.Search API asynchronously
-// api document: https://help.aliyun.com/api/green/search.html
+// SearchPersonWithChan invokes the green.SearchPerson API asynchronously
+// api document: https://help.aliyun.com/api/green/searchperson.html
 // asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) SearchWithChan(request *SearchRequest) (<-chan *SearchResponse, <-chan error) {
-	responseChan := make(chan *SearchResponse, 1)
+func (client *Client) SearchPersonWithChan(request *SearchPersonRequest) (<-chan *SearchPersonResponse, <-chan error) {
+	responseChan := make(chan *SearchPersonResponse, 1)
 	errChan := make(chan error, 1)
 	err := client.AddAsyncTask(func() {
 		defer close(responseChan)
 		defer close(errChan)
-		response, err := client.Search(request)
+		response, err := client.SearchPerson(request)
 		if err != nil {
 			errChan <- err
 		} else {
@@ -52,16 +52,16 @@ func (client *Client) SearchWithChan(request *SearchRequest) (<-chan *SearchResp
 	return responseChan, errChan
 }
 
-// SearchWithCallback invokes the green.Search API asynchronously
-// api document: https://help.aliyun.com/api/green/search.html
+// SearchPersonWithCallback invokes the green.SearchPerson API asynchronously
+// api document: https://help.aliyun.com/api/green/searchperson.html
 // asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) SearchWithCallback(request *SearchRequest, callback func(response *SearchResponse, err error)) <-chan int {
+func (client *Client) SearchPersonWithCallback(request *SearchPersonRequest, callback func(response *SearchPersonResponse, err error)) <-chan int {
 	result := make(chan int, 1)
 	err := client.AddAsyncTask(func() {
-		var response *SearchResponse
+		var response *SearchPersonResponse
 		var err error
 		defer close(result)
-		response, err = client.Search(request)
+		response, err = client.SearchPerson(request)
 		callback(response, err)
 		result <- 1
 	})
@@ -73,30 +73,30 @@ func (client *Client) SearchWithCallback(request *SearchRequest, callback func(r
 	return result
 }
 
-// SearchRequest is the request struct for api Search
-type SearchRequest struct {
+// SearchPersonRequest is the request struct for api SearchPerson
+type SearchPersonRequest struct {
 	*requests.RoaRequest
 	ClientInfo string `position:"Query" name:"ClientInfo"`
 }
 
-// SearchResponse is the response struct for api Search
-type SearchResponse struct {
+// SearchPersonResponse is the response struct for api SearchPerson
+type SearchPersonResponse struct {
 	*responses.BaseResponse
 }
 
-// CreateSearchRequest creates a request to invoke Search API
-func CreateSearchRequest() (request *SearchRequest) {
-	request = &SearchRequest{
+// CreateSearchPersonRequest creates a request to invoke SearchPerson API
+func CreateSearchPersonRequest() (request *SearchPersonRequest) {
+	request = &SearchPersonRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "Search", "/green/sface/search", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "SearchPerson", "/green/sface/search", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }
 
-// CreateSearchResponse creates a response to parse from Search response
-func CreateSearchResponse() (response *SearchResponse) {
-	response = &SearchResponse{
+// CreateSearchPersonResponse creates a response to parse from SearchPerson response
+func CreateSearchPersonResponse() (response *SearchPersonResponse) {
+	response = &SearchPersonResponse{
 		BaseResponse: &responses.BaseResponse{},
 	}
 	return

+ 1 - 1
services/green/set_person.go

@@ -89,7 +89,7 @@ func CreateSetPersonRequest() (request *SetPersonRequest) {
 	request = &SetPersonRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "SetPerson", "/green/sface/setPerson", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "SetPerson", "/green/sface/person/update", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/text_feedback.go

@@ -89,7 +89,7 @@ func CreateTextFeedbackRequest() (request *TextFeedbackRequest) {
 	request = &TextFeedbackRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "TextFeedback", "/green/text/feedback", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "TextFeedback", "/green/text/feedback", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/text_scan.go

@@ -89,7 +89,7 @@ func CreateTextScanRequest() (request *TextScanRequest) {
 	request = &TextScanRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "TextScan", "/green/text/scan", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "TextScan", "/green/text/scan", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/video_async_scan.go

@@ -89,7 +89,7 @@ func CreateVideoAsyncScanRequest() (request *VideoAsyncScanRequest) {
 	request = &VideoAsyncScanRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "VideoAsyncScan", "/green/video/asyncscan", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "VideoAsyncScan", "/green/video/asyncscan", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/video_async_scan_results.go

@@ -89,7 +89,7 @@ func CreateVideoAsyncScanResultsRequest() (request *VideoAsyncScanResultsRequest
 	request = &VideoAsyncScanResultsRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "VideoAsyncScanResults", "/green/video/results", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "VideoAsyncScanResults", "/green/video/results", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/video_feedback.go

@@ -89,7 +89,7 @@ func CreateVideoFeedbackRequest() (request *VideoFeedbackRequest) {
 	request = &VideoFeedbackRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "VideoFeedback", "/green/video/feedback", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "VideoFeedback", "/green/video/feedback", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 103 - 0
services/green/video_sync_scan.go

@@ -0,0 +1,103 @@
+package green
+
+//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"
+)
+
+// VideoSyncScan invokes the green.VideoSyncScan API synchronously
+// api document: https://help.aliyun.com/api/green/videosyncscan.html
+func (client *Client) VideoSyncScan(request *VideoSyncScanRequest) (response *VideoSyncScanResponse, err error) {
+	response = CreateVideoSyncScanResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// VideoSyncScanWithChan invokes the green.VideoSyncScan API asynchronously
+// api document: https://help.aliyun.com/api/green/videosyncscan.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) VideoSyncScanWithChan(request *VideoSyncScanRequest) (<-chan *VideoSyncScanResponse, <-chan error) {
+	responseChan := make(chan *VideoSyncScanResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.VideoSyncScan(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// VideoSyncScanWithCallback invokes the green.VideoSyncScan API asynchronously
+// api document: https://help.aliyun.com/api/green/videosyncscan.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) VideoSyncScanWithCallback(request *VideoSyncScanRequest, callback func(response *VideoSyncScanResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *VideoSyncScanResponse
+		var err error
+		defer close(result)
+		response, err = client.VideoSyncScan(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// VideoSyncScanRequest is the request struct for api VideoSyncScan
+type VideoSyncScanRequest struct {
+	*requests.RoaRequest
+	ClientInfo string `position:"Query" name:"ClientInfo"`
+}
+
+// VideoSyncScanResponse is the response struct for api VideoSyncScan
+type VideoSyncScanResponse struct {
+	*responses.BaseResponse
+}
+
+// CreateVideoSyncScanRequest creates a request to invoke VideoSyncScan API
+func CreateVideoSyncScanRequest() (request *VideoSyncScanRequest) {
+	request = &VideoSyncScanRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("Green", "2018-05-09", "VideoSyncScan", "/green/video/syncscan", "green", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateVideoSyncScanResponse creates a response to parse from VideoSyncScan response
+func CreateVideoSyncScanResponse() (response *VideoSyncScanResponse) {
+	response = &VideoSyncScanResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/green/voice_async_scan.go

@@ -89,7 +89,7 @@ func CreateVoiceAsyncScanRequest() (request *VoiceAsyncScanRequest) {
 	request = &VoiceAsyncScanRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "VoiceAsyncScan", "/green/voice/asyncscan", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "VoiceAsyncScan", "/green/voice/asyncscan", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/green/voice_async_scan_results.go

@@ -89,7 +89,7 @@ func CreateVoiceAsyncScanResultsRequest() (request *VoiceAsyncScanResultsRequest
 	request = &VoiceAsyncScanResultsRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("Green", "2017-08-25", "VoiceAsyncScanResults", "/green/voice/results", "green", "openAPI")
+	request.InitWithApiInfo("Green", "2018-05-09", "VoiceAsyncScanResults", "/green/voice/results", "green", "openAPI")
 	request.Method = requests.POST
 	return
 }