瀏覽代碼

VOD SDK Auto Released By xiao.xwp,Version:1.42.6

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
yixiong.jxy 7 年之前
父節點
當前提交
91fb6ba0f4
共有 100 個文件被更改,包括 1265 次插入66 次删除
  1. 5 0
      ChangeLog.txt
  2. 1 1
      services/vod/add_category.go
  3. 1 1
      services/vod/add_editing_project.go
  4. 110 0
      services/vod/add_vod_template.go
  5. 1 1
      services/vod/add_watermark.go
  6. 108 0
      services/vod/add_work_flow.go
  7. 0 0
      services/vod/client.go
  8. 1 1
      services/vod/create_audit.go
  9. 119 0
      services/vod/create_upload_attached_media.go
  10. 2 1
      services/vod/create_upload_image.go
  11. 1 1
      services/vod/create_upload_video.go
  12. 1 1
      services/vod/delete_category.go
  13. 1 1
      services/vod/delete_editing_project.go
  14. 1 1
      services/vod/delete_image.go
  15. 1 1
      services/vod/delete_mezzanines.go
  16. 1 1
      services/vod/delete_stream.go
  17. 1 1
      services/vod/delete_video.go
  18. 107 0
      services/vod/delete_vod_template.go
  19. 1 1
      services/vod/delete_watermark.go
  20. 107 0
      services/vod/delete_work_flow.go
  21. 1 1
      services/vod/describe_cdn_domain_logs.go
  22. 1 1
      services/vod/describe_domain_bps_data.go
  23. 1 1
      services/vod/describe_domain_flow_data.go
  24. 1 1
      services/vod/describe_play_top_videos.go
  25. 1 1
      services/vod/describe_play_user_avg.go
  26. 1 1
      services/vod/describe_play_user_total.go
  27. 1 1
      services/vod/describe_play_video_statis.go
  28. 1 1
      services/vod/describe_refresh_quota.go
  29. 1 1
      services/vod/describe_refresh_tasks.go
  30. 1 1
      services/vod/get_audit_history.go
  31. 1 1
      services/vod/get_audit_result.go
  32. 1 1
      services/vod/get_categories.go
  33. 1 1
      services/vod/get_cdn_statis_sum.go
  34. 1 1
      services/vod/get_editing_project.go
  35. 1 1
      services/vod/get_editing_project_materials.go
  36. 1 1
      services/vod/get_image_info.go
  37. 108 0
      services/vod/get_media_dna_result.go
  38. 1 1
      services/vod/get_message_callback.go
  39. 3 3
      services/vod/get_mezzanine_info.go
  40. 1 1
      services/vod/get_oss_statis.go
  41. 1 1
      services/vod/get_play_info.go
  42. 1 1
      services/vod/get_video_config.go
  43. 1 1
      services/vod/get_video_info.go
  44. 1 1
      services/vod/get_video_infos.go
  45. 1 1
      services/vod/get_video_list.go
  46. 1 1
      services/vod/get_video_play_auth.go
  47. 1 1
      services/vod/get_video_play_info.go
  48. 107 0
      services/vod/get_vod_template.go
  49. 1 1
      services/vod/get_watermark.go
  50. 107 0
      services/vod/get_work_flow.go
  51. 1 1
      services/vod/list_ai_job.go
  52. 1 1
      services/vod/list_ai_video_category_job.go
  53. 1 1
      services/vod/list_ai_video_censor_job.go
  54. 1 1
      services/vod/list_ai_video_cover_job.go
  55. 1 1
      services/vod/list_ai_video_porn_recog_job.go
  56. 1 1
      services/vod/list_ai_video_summary_job.go
  57. 1 1
      services/vod/list_ai_video_terrorism_recog_job.go
  58. 1 1
      services/vod/list_aiasr_job.go
  59. 1 1
      services/vod/list_audit_security_ip.go
  60. 1 1
      services/vod/list_live_record_video.go
  61. 1 1
      services/vod/list_snapshots.go
  62. 107 0
      services/vod/list_vod_template.go
  63. 1 1
      services/vod/list_watermark.go
  64. 106 0
      services/vod/list_work_flow.go
  65. 1 1
      services/vod/open_vod_service.go
  66. 1 1
      services/vod/produce_editing_project_video.go
  67. 1 1
      services/vod/push_object_cache.go
  68. 1 1
      services/vod/refresh_object_caches.go
  69. 1 1
      services/vod/refresh_upload_video.go
  70. 1 1
      services/vod/register_media.go
  71. 1 1
      services/vod/search_editing_project.go
  72. 1 1
      services/vod/search_media.go
  73. 1 1
      services/vod/set_audit_security_ip.go
  74. 107 0
      services/vod/set_default_vod_template.go
  75. 1 1
      services/vod/set_default_watermark.go
  76. 1 1
      services/vod/set_editing_project_materials.go
  77. 1 1
      services/vod/set_message_callback.go
  78. 0 0
      services/vod/struct_ai_audit_result.go
  79. 0 0
      services/vod/struct_ai_job.go
  80. 0 0
      services/vod/struct_ai_job_list_in_list_ai_job.go
  81. 0 0
      services/vod/struct_ai_job_list_in_submit_ai_job.go
  82. 0 0
      services/vod/struct_ai_video_category_job.go
  83. 0 0
      services/vod/struct_ai_video_category_job_list.go
  84. 0 0
      services/vod/struct_ai_video_censor_job.go
  85. 0 0
      services/vod/struct_ai_video_censor_job_list.go
  86. 0 0
      services/vod/struct_ai_video_cover_job.go
  87. 0 0
      services/vod/struct_ai_video_cover_job_list.go
  88. 0 0
      services/vod/struct_ai_video_porn_recog_job.go
  89. 0 0
      services/vod/struct_ai_video_porn_recog_job_list.go
  90. 0 0
      services/vod/struct_ai_video_summary_job.go
  91. 0 0
      services/vod/struct_ai_video_summary_job_list.go
  92. 0 0
      services/vod/struct_ai_video_terrorism_recog_job.go
  93. 0 0
      services/vod/struct_ai_video_terrorism_recog_job_list.go
  94. 0 0
      services/vod/struct_aiasr_job.go
  95. 0 0
      services/vod/struct_aiasr_job_list.go
  96. 0 0
      services/vod/struct_audio.go
  97. 0 0
      services/vod/struct_audio_stream.go
  98. 0 0
      services/vod/struct_audio_stream_list.go
  99. 0 0
      services/vod/struct_bps_data_per_interval.go
  100. 0 0
      services/vod/struct_category.go

+ 5 - 0
ChangeLog.txt

@@ -1,3 +1,8 @@
+2018-11-30 Version: 1.42.6
+1, Add new apis called AddVodTemplate, UpdateVodTemplate, DeleteVodTemplate, ListVodTemplate, GetVodTemplate and SetDefaultVodTemplate which support vodtemplate feature.
+2, Add a new api called CreateUploadAttachedMedia to get upload auth for attached media
+3, Add new apis called AddWorkFlow, UpdateWorkFlow, DeleteWorkFlow, ListWorkFlow, GetWorkFlow  which support workflow feature.
+
 2018-11-29 Version: 1.42.5
 1, This is the first version of Uis service.
 

+ 1 - 1
services/vod/add_category.go

@@ -95,7 +95,7 @@ func CreateAddCategoryRequest() (request *AddCategoryRequest) {
 	request = &AddCategoryRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "AddCategory", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "AddCategory", "", "")
 	return
 }
 

+ 1 - 1
services/vod/add_editing_project.go

@@ -98,7 +98,7 @@ func CreateAddEditingProjectRequest() (request *AddEditingProjectRequest) {
 	request = &AddEditingProjectRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "AddEditingProject", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "AddEditingProject", "", "")
 	return
 }
 

+ 110 - 0
services/vod/add_vod_template.go

@@ -0,0 +1,110 @@
+package vod
+
+//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"
+)
+
+// AddVodTemplate invokes the vod.AddVodTemplate API synchronously
+// api document: https://help.aliyun.com/api/vod/addvodtemplate.html
+func (client *Client) AddVodTemplate(request *AddVodTemplateRequest) (response *AddVodTemplateResponse, err error) {
+	response = CreateAddVodTemplateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// AddVodTemplateWithChan invokes the vod.AddVodTemplate API asynchronously
+// api document: https://help.aliyun.com/api/vod/addvodtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddVodTemplateWithChan(request *AddVodTemplateRequest) (<-chan *AddVodTemplateResponse, <-chan error) {
+	responseChan := make(chan *AddVodTemplateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.AddVodTemplate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// AddVodTemplateWithCallback invokes the vod.AddVodTemplate API asynchronously
+// api document: https://help.aliyun.com/api/vod/addvodtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddVodTemplateWithCallback(request *AddVodTemplateRequest, callback func(response *AddVodTemplateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *AddVodTemplateResponse
+		var err error
+		defer close(result)
+		response, err = client.AddVodTemplate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// AddVodTemplateRequest is the request struct for api AddVodTemplate
+type AddVodTemplateRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	TemplateConfig       string           `position:"Query" name:"TemplateConfig"`
+	TemplateType         string           `position:"Query" name:"TemplateType"`
+	Name                 string           `position:"Query" name:"Name"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	SubTemplateType      string           `position:"Query" name:"SubTemplateType"`
+}
+
+// AddVodTemplateResponse is the response struct for api AddVodTemplate
+type AddVodTemplateResponse struct {
+	*responses.BaseResponse
+	RequestId     string `json:"RequestId" xml:"RequestId"`
+	VodTemplateId string `json:"VodTemplateId" xml:"VodTemplateId"`
+}
+
+// CreateAddVodTemplateRequest creates a request to invoke AddVodTemplate API
+func CreateAddVodTemplateRequest() (request *AddVodTemplateRequest) {
+	request = &AddVodTemplateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("vod", "2017-03-21", "AddVodTemplate", "", "")
+	return
+}
+
+// CreateAddVodTemplateResponse creates a response to parse from AddVodTemplate response
+func CreateAddVodTemplateResponse() (response *AddVodTemplateResponse) {
+	response = &AddVodTemplateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/vod/add_watermark.go

@@ -97,7 +97,7 @@ func CreateAddWatermarkRequest() (request *AddWatermarkRequest) {
 	request = &AddWatermarkRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "AddWatermark", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "AddWatermark", "", "")
 	return
 }
 

+ 108 - 0
services/vod/add_work_flow.go

@@ -0,0 +1,108 @@
+package vod
+
+//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"
+)
+
+// AddWorkFlow invokes the vod.AddWorkFlow API synchronously
+// api document: https://help.aliyun.com/api/vod/addworkflow.html
+func (client *Client) AddWorkFlow(request *AddWorkFlowRequest) (response *AddWorkFlowResponse, err error) {
+	response = CreateAddWorkFlowResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// AddWorkFlowWithChan invokes the vod.AddWorkFlow API asynchronously
+// api document: https://help.aliyun.com/api/vod/addworkflow.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddWorkFlowWithChan(request *AddWorkFlowRequest) (<-chan *AddWorkFlowResponse, <-chan error) {
+	responseChan := make(chan *AddWorkFlowResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.AddWorkFlow(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// AddWorkFlowWithCallback invokes the vod.AddWorkFlow API asynchronously
+// api document: https://help.aliyun.com/api/vod/addworkflow.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddWorkFlowWithCallback(request *AddWorkFlowRequest, callback func(response *AddWorkFlowResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *AddWorkFlowResponse
+		var err error
+		defer close(result)
+		response, err = client.AddWorkFlow(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// AddWorkFlowRequest is the request struct for api AddWorkFlow
+type AddWorkFlowRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	Name                 string           `position:"Query" name:"Name"`
+	ActionList           string           `position:"Query" name:"ActionList"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// AddWorkFlowResponse is the response struct for api AddWorkFlow
+type AddWorkFlowResponse struct {
+	*responses.BaseResponse
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	WorkFlowId string `json:"WorkFlowId" xml:"WorkFlowId"`
+}
+
+// CreateAddWorkFlowRequest creates a request to invoke AddWorkFlow API
+func CreateAddWorkFlowRequest() (request *AddWorkFlowRequest) {
+	request = &AddWorkFlowRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("vod", "2017-03-21", "AddWorkFlow", "", "")
+	return
+}
+
+// CreateAddWorkFlowResponse creates a response to parse from AddWorkFlow response
+func CreateAddWorkFlowResponse() (response *AddWorkFlowResponse) {
+	response = &AddWorkFlowResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 0 - 0
services/vod/client.go


+ 1 - 1
services/vod/create_audit.go

@@ -90,7 +90,7 @@ func CreateCreateAuditRequest() (request *CreateAuditRequest) {
 	request = &CreateAuditRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "CreateAudit", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "CreateAudit", "", "")
 	return
 }
 

+ 119 - 0
services/vod/create_upload_attached_media.go

@@ -0,0 +1,119 @@
+package vod
+
+//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"
+)
+
+// CreateUploadAttachedMedia invokes the vod.CreateUploadAttachedMedia API synchronously
+// api document: https://help.aliyun.com/api/vod/createuploadattachedmedia.html
+func (client *Client) CreateUploadAttachedMedia(request *CreateUploadAttachedMediaRequest) (response *CreateUploadAttachedMediaResponse, err error) {
+	response = CreateCreateUploadAttachedMediaResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateUploadAttachedMediaWithChan invokes the vod.CreateUploadAttachedMedia API asynchronously
+// api document: https://help.aliyun.com/api/vod/createuploadattachedmedia.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateUploadAttachedMediaWithChan(request *CreateUploadAttachedMediaRequest) (<-chan *CreateUploadAttachedMediaResponse, <-chan error) {
+	responseChan := make(chan *CreateUploadAttachedMediaResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateUploadAttachedMedia(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateUploadAttachedMediaWithCallback invokes the vod.CreateUploadAttachedMedia API asynchronously
+// api document: https://help.aliyun.com/api/vod/createuploadattachedmedia.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateUploadAttachedMediaWithCallback(request *CreateUploadAttachedMediaRequest, callback func(response *CreateUploadAttachedMediaResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateUploadAttachedMediaResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateUploadAttachedMedia(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateUploadAttachedMediaRequest is the request struct for api CreateUploadAttachedMedia
+type CreateUploadAttachedMediaRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	Description          string           `position:"Query" name:"Description"`
+	FileSize             string           `position:"Query" name:"FileSize"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	Title                string           `position:"Query" name:"Title"`
+	BusinessType         string           `position:"Query" name:"BusinessType"`
+	Tags                 string           `position:"Query" name:"Tags"`
+	StorageLocation      string           `position:"Query" name:"StorageLocation"`
+	MediaExt             string           `position:"Query" name:"MediaExt"`
+	FileName             string           `position:"Query" name:"FileName"`
+	CateId               requests.Integer `position:"Query" name:"CateId"`
+}
+
+// CreateUploadAttachedMediaResponse is the response struct for api CreateUploadAttachedMedia
+type CreateUploadAttachedMediaResponse struct {
+	*responses.BaseResponse
+	RequestId     string `json:"RequestId" xml:"RequestId"`
+	MediaId       string `json:"MediaId" xml:"MediaId"`
+	MediaURL      string `json:"MediaURL" xml:"MediaURL"`
+	UploadAddress string `json:"UploadAddress" xml:"UploadAddress"`
+	UploadAuth    string `json:"UploadAuth" xml:"UploadAuth"`
+	FileURL       string `json:"FileURL" xml:"FileURL"`
+}
+
+// CreateCreateUploadAttachedMediaRequest creates a request to invoke CreateUploadAttachedMedia API
+func CreateCreateUploadAttachedMediaRequest() (request *CreateUploadAttachedMediaRequest) {
+	request = &CreateUploadAttachedMediaRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("vod", "2017-03-21", "CreateUploadAttachedMedia", "", "")
+	return
+}
+
+// CreateCreateUploadAttachedMediaResponse creates a response to parse from CreateUploadAttachedMedia response
+func CreateCreateUploadAttachedMediaResponse() (response *CreateUploadAttachedMediaResponse) {
+	response = &CreateUploadAttachedMediaResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 1
services/vod/create_upload_image.go

@@ -81,6 +81,7 @@ type CreateUploadImageRequest struct {
 	OriginalFileName     string           `position:"Query" name:"OriginalFileName"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	ImageExt             string           `position:"Query" name:"ImageExt"`
+	CateId               requests.Integer `position:"Query" name:"CateId"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 	Title                string           `position:"Query" name:"Title"`
 	Tags                 string           `position:"Query" name:"Tags"`
@@ -102,7 +103,7 @@ func CreateCreateUploadImageRequest() (request *CreateUploadImageRequest) {
 	request = &CreateUploadImageRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "CreateUploadImage", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "CreateUploadImage", "", "")
 	return
 }
 

+ 1 - 1
services/vod/create_upload_video.go

@@ -107,7 +107,7 @@ func CreateCreateUploadVideoRequest() (request *CreateUploadVideoRequest) {
 	request = &CreateUploadVideoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "CreateUploadVideo", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "CreateUploadVideo", "", "")
 	return
 }
 

+ 1 - 1
services/vod/delete_category.go

@@ -93,7 +93,7 @@ func CreateDeleteCategoryRequest() (request *DeleteCategoryRequest) {
 	request = &DeleteCategoryRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "DeleteCategory", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "DeleteCategory", "", "")
 	return
 }
 

+ 1 - 1
services/vod/delete_editing_project.go

@@ -94,7 +94,7 @@ func CreateDeleteEditingProjectRequest() (request *DeleteEditingProjectRequest)
 	request = &DeleteEditingProjectRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "DeleteEditingProject", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "DeleteEditingProject", "", "")
 	return
 }
 

+ 1 - 1
services/vod/delete_image.go

@@ -97,7 +97,7 @@ func CreateDeleteImageRequest() (request *DeleteImageRequest) {
 	request = &DeleteImageRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "DeleteImage", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "DeleteImage", "", "")
 	return
 }
 

+ 1 - 1
services/vod/delete_mezzanines.go

@@ -96,7 +96,7 @@ func CreateDeleteMezzaninesRequest() (request *DeleteMezzaninesRequest) {
 	request = &DeleteMezzaninesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "DeleteMezzanines", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "DeleteMezzanines", "", "")
 	return
 }
 

+ 1 - 1
services/vod/delete_stream.go

@@ -94,7 +94,7 @@ func CreateDeleteStreamRequest() (request *DeleteStreamRequest) {
 	request = &DeleteStreamRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "DeleteStream", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "DeleteStream", "", "")
 	return
 }
 

+ 1 - 1
services/vod/delete_video.go

@@ -93,7 +93,7 @@ func CreateDeleteVideoRequest() (request *DeleteVideoRequest) {
 	request = &DeleteVideoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "DeleteVideo", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "DeleteVideo", "", "")
 	return
 }
 

+ 107 - 0
services/vod/delete_vod_template.go

@@ -0,0 +1,107 @@
+package vod
+
+//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"
+)
+
+// DeleteVodTemplate invokes the vod.DeleteVodTemplate API synchronously
+// api document: https://help.aliyun.com/api/vod/deletevodtemplate.html
+func (client *Client) DeleteVodTemplate(request *DeleteVodTemplateRequest) (response *DeleteVodTemplateResponse, err error) {
+	response = CreateDeleteVodTemplateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteVodTemplateWithChan invokes the vod.DeleteVodTemplate API asynchronously
+// api document: https://help.aliyun.com/api/vod/deletevodtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteVodTemplateWithChan(request *DeleteVodTemplateRequest) (<-chan *DeleteVodTemplateResponse, <-chan error) {
+	responseChan := make(chan *DeleteVodTemplateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteVodTemplate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteVodTemplateWithCallback invokes the vod.DeleteVodTemplate API asynchronously
+// api document: https://help.aliyun.com/api/vod/deletevodtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteVodTemplateWithCallback(request *DeleteVodTemplateRequest, callback func(response *DeleteVodTemplateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteVodTemplateResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteVodTemplate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteVodTemplateRequest is the request struct for api DeleteVodTemplate
+type DeleteVodTemplateRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	VodTemplateId        string           `position:"Query" name:"VodTemplateId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// DeleteVodTemplateResponse is the response struct for api DeleteVodTemplate
+type DeleteVodTemplateResponse struct {
+	*responses.BaseResponse
+	RequestId     string `json:"RequestId" xml:"RequestId"`
+	VodTemplateId string `json:"VodTemplateId" xml:"VodTemplateId"`
+}
+
+// CreateDeleteVodTemplateRequest creates a request to invoke DeleteVodTemplate API
+func CreateDeleteVodTemplateRequest() (request *DeleteVodTemplateRequest) {
+	request = &DeleteVodTemplateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("vod", "2017-03-21", "DeleteVodTemplate", "", "")
+	return
+}
+
+// CreateDeleteVodTemplateResponse creates a response to parse from DeleteVodTemplate response
+func CreateDeleteVodTemplateResponse() (response *DeleteVodTemplateResponse) {
+	response = &DeleteVodTemplateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/vod/delete_watermark.go

@@ -93,7 +93,7 @@ func CreateDeleteWatermarkRequest() (request *DeleteWatermarkRequest) {
 	request = &DeleteWatermarkRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "DeleteWatermark", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "DeleteWatermark", "", "")
 	return
 }
 

+ 107 - 0
services/vod/delete_work_flow.go

@@ -0,0 +1,107 @@
+package vod
+
+//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"
+)
+
+// DeleteWorkFlow invokes the vod.DeleteWorkFlow API synchronously
+// api document: https://help.aliyun.com/api/vod/deleteworkflow.html
+func (client *Client) DeleteWorkFlow(request *DeleteWorkFlowRequest) (response *DeleteWorkFlowResponse, err error) {
+	response = CreateDeleteWorkFlowResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteWorkFlowWithChan invokes the vod.DeleteWorkFlow API asynchronously
+// api document: https://help.aliyun.com/api/vod/deleteworkflow.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteWorkFlowWithChan(request *DeleteWorkFlowRequest) (<-chan *DeleteWorkFlowResponse, <-chan error) {
+	responseChan := make(chan *DeleteWorkFlowResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteWorkFlow(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteWorkFlowWithCallback invokes the vod.DeleteWorkFlow API asynchronously
+// api document: https://help.aliyun.com/api/vod/deleteworkflow.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteWorkFlowWithCallback(request *DeleteWorkFlowRequest, callback func(response *DeleteWorkFlowResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteWorkFlowResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteWorkFlow(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteWorkFlowRequest is the request struct for api DeleteWorkFlow
+type DeleteWorkFlowRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	WorkFlowId           string           `position:"Query" name:"WorkFlowId"`
+}
+
+// DeleteWorkFlowResponse is the response struct for api DeleteWorkFlow
+type DeleteWorkFlowResponse struct {
+	*responses.BaseResponse
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	WorkFlowId string `json:"WorkFlowId" xml:"WorkFlowId"`
+}
+
+// CreateDeleteWorkFlowRequest creates a request to invoke DeleteWorkFlow API
+func CreateDeleteWorkFlowRequest() (request *DeleteWorkFlowRequest) {
+	request = &DeleteWorkFlowRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("vod", "2017-03-21", "DeleteWorkFlow", "", "")
+	return
+}
+
+// CreateDeleteWorkFlowResponse creates a response to parse from DeleteWorkFlow response
+func CreateDeleteWorkFlowResponse() (response *DeleteWorkFlowResponse) {
+	response = &DeleteWorkFlowResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/vod/describe_cdn_domain_logs.go

@@ -103,7 +103,7 @@ func CreateDescribeCdnDomainLogsRequest() (request *DescribeCdnDomainLogsRequest
 	request = &DescribeCdnDomainLogsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "DescribeCdnDomainLogs", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "DescribeCdnDomainLogs", "", "")
 	return
 }
 

+ 1 - 1
services/vod/describe_domain_bps_data.go

@@ -106,7 +106,7 @@ func CreateDescribeDomainBpsDataRequest() (request *DescribeDomainBpsDataRequest
 	request = &DescribeDomainBpsDataRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "DescribeDomainBpsData", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "DescribeDomainBpsData", "", "")
 	return
 }
 

+ 1 - 1
services/vod/describe_domain_flow_data.go

@@ -105,7 +105,7 @@ func CreateDescribeDomainFlowDataRequest() (request *DescribeDomainFlowDataReque
 	request = &DescribeDomainFlowDataRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "DescribeDomainFlowData", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "DescribeDomainFlowData", "", "")
 	return
 }
 

+ 1 - 1
services/vod/describe_play_top_videos.go

@@ -97,7 +97,7 @@ func CreateDescribePlayTopVideosRequest() (request *DescribePlayTopVideosRequest
 	request = &DescribePlayTopVideosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "DescribePlayTopVideos", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "DescribePlayTopVideos", "", "")
 	return
 }
 

+ 1 - 1
services/vod/describe_play_user_avg.go

@@ -93,7 +93,7 @@ func CreateDescribePlayUserAvgRequest() (request *DescribePlayUserAvgRequest) {
 	request = &DescribePlayUserAvgRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "DescribePlayUserAvg", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "DescribePlayUserAvg", "", "")
 	return
 }
 

+ 1 - 1
services/vod/describe_play_user_total.go

@@ -93,7 +93,7 @@ func CreateDescribePlayUserTotalRequest() (request *DescribePlayUserTotalRequest
 	request = &DescribePlayUserTotalRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "DescribePlayUserTotal", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "DescribePlayUserTotal", "", "")
 	return
 }
 

+ 1 - 1
services/vod/describe_play_video_statis.go

@@ -94,7 +94,7 @@ func CreateDescribePlayVideoStatisRequest() (request *DescribePlayVideoStatisReq
 	request = &DescribePlayVideoStatisRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "DescribePlayVideoStatis", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "DescribePlayVideoStatis", "", "")
 	return
 }
 

+ 1 - 1
services/vod/describe_refresh_quota.go

@@ -94,7 +94,7 @@ func CreateDescribeRefreshQuotaRequest() (request *DescribeRefreshQuotaRequest)
 	request = &DescribeRefreshQuotaRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "DescribeRefreshQuota", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "DescribeRefreshQuota", "", "")
 	return
 }
 

+ 1 - 1
services/vod/describe_refresh_tasks.go

@@ -106,7 +106,7 @@ func CreateDescribeRefreshTasksRequest() (request *DescribeRefreshTasksRequest)
 	request = &DescribeRefreshTasksRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "DescribeRefreshTasks", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "DescribeRefreshTasks", "", "")
 	return
 }
 

+ 1 - 1
services/vod/get_audit_history.go

@@ -96,7 +96,7 @@ func CreateGetAuditHistoryRequest() (request *GetAuditHistoryRequest) {
 	request = &GetAuditHistoryRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetAuditHistory", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetAuditHistory", "", "")
 	return
 }
 

+ 1 - 1
services/vod/get_audit_result.go

@@ -96,7 +96,7 @@ func CreateGetAuditResultRequest() (request *GetAuditResultRequest) {
 	request = &GetAuditResultRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetAuditResult", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetAuditResult", "", "")
 	return
 }
 

+ 1 - 1
services/vod/get_categories.go

@@ -99,7 +99,7 @@ func CreateGetCategoriesRequest() (request *GetCategoriesRequest) {
 	request = &GetCategoriesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetCategories", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetCategories", "", "")
 	return
 }
 

+ 1 - 1
services/vod/get_cdn_statis_sum.go

@@ -99,7 +99,7 @@ func CreateGetCDNStatisSumRequest() (request *GetCDNStatisSumRequest) {
 	request = &GetCDNStatisSumRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetCDNStatisSum", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetCDNStatisSum", "", "")
 	return
 }
 

+ 1 - 1
services/vod/get_editing_project.go

@@ -95,7 +95,7 @@ func CreateGetEditingProjectRequest() (request *GetEditingProjectRequest) {
 	request = &GetEditingProjectRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetEditingProject", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetEditingProject", "", "")
 	return
 }
 

+ 1 - 1
services/vod/get_editing_project_materials.go

@@ -96,7 +96,7 @@ func CreateGetEditingProjectMaterialsRequest() (request *GetEditingProjectMateri
 	request = &GetEditingProjectMaterialsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetEditingProjectMaterials", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetEditingProjectMaterials", "", "")
 	return
 }
 

+ 1 - 1
services/vod/get_image_info.go

@@ -95,7 +95,7 @@ func CreateGetImageInfoRequest() (request *GetImageInfoRequest) {
 	request = &GetImageInfoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetImageInfo", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetImageInfo", "", "")
 	return
 }
 

+ 108 - 0
services/vod/get_media_dna_result.go

@@ -0,0 +1,108 @@
+package vod
+
+//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"
+)
+
+// GetMediaDNAResult invokes the vod.GetMediaDNAResult API synchronously
+// api document: https://help.aliyun.com/api/vod/getmediadnaresult.html
+func (client *Client) GetMediaDNAResult(request *GetMediaDNAResultRequest) (response *GetMediaDNAResultResponse, err error) {
+	response = CreateGetMediaDNAResultResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetMediaDNAResultWithChan invokes the vod.GetMediaDNAResult API asynchronously
+// api document: https://help.aliyun.com/api/vod/getmediadnaresult.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetMediaDNAResultWithChan(request *GetMediaDNAResultRequest) (<-chan *GetMediaDNAResultResponse, <-chan error) {
+	responseChan := make(chan *GetMediaDNAResultResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetMediaDNAResult(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetMediaDNAResultWithCallback invokes the vod.GetMediaDNAResult API asynchronously
+// api document: https://help.aliyun.com/api/vod/getmediadnaresult.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetMediaDNAResultWithCallback(request *GetMediaDNAResultRequest, callback func(response *GetMediaDNAResultResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetMediaDNAResultResponse
+		var err error
+		defer close(result)
+		response, err = client.GetMediaDNAResult(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetMediaDNAResultRequest is the request struct for api GetMediaDNAResult
+type GetMediaDNAResultRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      string `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount         string `position:"Query" name:"OwnerAccount"`
+	OwnerId              string `position:"Query" name:"OwnerId"`
+	MediaId              string `position:"Query" name:"MediaId"`
+}
+
+// GetMediaDNAResultResponse is the response struct for api GetMediaDNAResult
+type GetMediaDNAResultResponse struct {
+	*responses.BaseResponse
+	RequestId string    `json:"RequestId" xml:"RequestId"`
+	DNAResult DNAResult `json:"DNAResult" xml:"DNAResult"`
+}
+
+// CreateGetMediaDNAResultRequest creates a request to invoke GetMediaDNAResult API
+func CreateGetMediaDNAResultRequest() (request *GetMediaDNAResultRequest) {
+	request = &GetMediaDNAResultRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("vod", "2017-03-21", "GetMediaDNAResult", "", "")
+	return
+}
+
+// CreateGetMediaDNAResultResponse creates a response to parse from GetMediaDNAResult response
+func CreateGetMediaDNAResultResponse() (response *GetMediaDNAResultResponse) {
+	response = &GetMediaDNAResultResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/vod/get_message_callback.go

@@ -94,7 +94,7 @@ func CreateGetMessageCallbackRequest() (request *GetMessageCallbackRequest) {
 	request = &GetMessageCallbackRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetMessageCallback", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetMessageCallback", "", "")
 	return
 }
 

+ 3 - 3
services/vod/get_mezzanine_info.go

@@ -89,8 +89,8 @@ type GetMezzanineInfoRequest struct {
 // GetMezzanineInfoResponse is the response struct for api GetMezzanineInfo
 type GetMezzanineInfoResponse struct {
 	*responses.BaseResponse
-	RequestId string    `json:"RequestId" xml:"RequestId"`
-	Mezzanine Mezzanine `json:"Mezzanine" xml:"Mezzanine"`
+	RequestId string                      `json:"RequestId" xml:"RequestId"`
+	Mezzanine MezzanineInGetMezzanineInfo `json:"Mezzanine" xml:"Mezzanine"`
 }
 
 // CreateGetMezzanineInfoRequest creates a request to invoke GetMezzanineInfo API
@@ -98,7 +98,7 @@ func CreateGetMezzanineInfoRequest() (request *GetMezzanineInfoRequest) {
 	request = &GetMezzanineInfoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetMezzanineInfo", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetMezzanineInfo", "", "")
 	return
 }
 

+ 1 - 1
services/vod/get_oss_statis.go

@@ -98,7 +98,7 @@ func CreateGetOSSStatisRequest() (request *GetOSSStatisRequest) {
 	request = &GetOSSStatisRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetOSSStatis", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetOSSStatis", "", "")
 	return
 }
 

+ 1 - 1
services/vod/get_play_info.go

@@ -107,7 +107,7 @@ func CreateGetPlayInfoRequest() (request *GetPlayInfoRequest) {
 	request = &GetPlayInfoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetPlayInfo", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetPlayInfo", "", "")
 	return
 }
 

+ 1 - 1
services/vod/get_video_config.go

@@ -95,7 +95,7 @@ func CreateGetVideoConfigRequest() (request *GetVideoConfigRequest) {
 	request = &GetVideoConfigRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetVideoConfig", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetVideoConfig", "", "")
 	return
 }
 

+ 1 - 1
services/vod/get_video_info.go

@@ -96,7 +96,7 @@ func CreateGetVideoInfoRequest() (request *GetVideoInfoRequest) {
 	request = &GetVideoInfoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetVideoInfo", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetVideoInfo", "", "")
 	return
 }
 

+ 1 - 1
services/vod/get_video_infos.go

@@ -95,7 +95,7 @@ func CreateGetVideoInfosRequest() (request *GetVideoInfosRequest) {
 	request = &GetVideoInfosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetVideoInfos", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetVideoInfos", "", "")
 	return
 }
 

+ 1 - 1
services/vod/get_video_list.go

@@ -102,7 +102,7 @@ func CreateGetVideoListRequest() (request *GetVideoListRequest) {
 	request = &GetVideoListRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetVideoList", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetVideoList", "", "")
 	return
 }
 

+ 1 - 1
services/vod/get_video_play_auth.go

@@ -98,7 +98,7 @@ func CreateGetVideoPlayAuthRequest() (request *GetVideoPlayAuthRequest) {
 	request = &GetVideoPlayAuthRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetVideoPlayAuth", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetVideoPlayAuth", "", "")
 	return
 }
 

+ 1 - 1
services/vod/get_video_play_info.go

@@ -100,7 +100,7 @@ func CreateGetVideoPlayInfoRequest() (request *GetVideoPlayInfoRequest) {
 	request = &GetVideoPlayInfoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetVideoPlayInfo", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetVideoPlayInfo", "", "")
 	return
 }
 

+ 107 - 0
services/vod/get_vod_template.go

@@ -0,0 +1,107 @@
+package vod
+
+//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"
+)
+
+// GetVodTemplate invokes the vod.GetVodTemplate API synchronously
+// api document: https://help.aliyun.com/api/vod/getvodtemplate.html
+func (client *Client) GetVodTemplate(request *GetVodTemplateRequest) (response *GetVodTemplateResponse, err error) {
+	response = CreateGetVodTemplateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetVodTemplateWithChan invokes the vod.GetVodTemplate API asynchronously
+// api document: https://help.aliyun.com/api/vod/getvodtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetVodTemplateWithChan(request *GetVodTemplateRequest) (<-chan *GetVodTemplateResponse, <-chan error) {
+	responseChan := make(chan *GetVodTemplateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetVodTemplate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetVodTemplateWithCallback invokes the vod.GetVodTemplate API asynchronously
+// api document: https://help.aliyun.com/api/vod/getvodtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetVodTemplateWithCallback(request *GetVodTemplateRequest, callback func(response *GetVodTemplateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetVodTemplateResponse
+		var err error
+		defer close(result)
+		response, err = client.GetVodTemplate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetVodTemplateRequest is the request struct for api GetVodTemplate
+type GetVodTemplateRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	VodTemplateId        string           `position:"Query" name:"VodTemplateId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// GetVodTemplateResponse is the response struct for api GetVodTemplate
+type GetVodTemplateResponse struct {
+	*responses.BaseResponse
+	RequestId       string          `json:"RequestId" xml:"RequestId"`
+	VodTemplateInfo VodTemplateInfo `json:"VodTemplateInfo" xml:"VodTemplateInfo"`
+}
+
+// CreateGetVodTemplateRequest creates a request to invoke GetVodTemplate API
+func CreateGetVodTemplateRequest() (request *GetVodTemplateRequest) {
+	request = &GetVodTemplateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("vod", "2017-03-21", "GetVodTemplate", "", "")
+	return
+}
+
+// CreateGetVodTemplateResponse creates a response to parse from GetVodTemplate response
+func CreateGetVodTemplateResponse() (response *GetVodTemplateResponse) {
+	response = &GetVodTemplateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/vod/get_watermark.go

@@ -94,7 +94,7 @@ func CreateGetWatermarkRequest() (request *GetWatermarkRequest) {
 	request = &GetWatermarkRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "GetWatermark", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "GetWatermark", "", "")
 	return
 }
 

+ 107 - 0
services/vod/get_work_flow.go

@@ -0,0 +1,107 @@
+package vod
+
+//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"
+)
+
+// GetWorkFlow invokes the vod.GetWorkFlow API synchronously
+// api document: https://help.aliyun.com/api/vod/getworkflow.html
+func (client *Client) GetWorkFlow(request *GetWorkFlowRequest) (response *GetWorkFlowResponse, err error) {
+	response = CreateGetWorkFlowResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetWorkFlowWithChan invokes the vod.GetWorkFlow API asynchronously
+// api document: https://help.aliyun.com/api/vod/getworkflow.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetWorkFlowWithChan(request *GetWorkFlowRequest) (<-chan *GetWorkFlowResponse, <-chan error) {
+	responseChan := make(chan *GetWorkFlowResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetWorkFlow(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetWorkFlowWithCallback invokes the vod.GetWorkFlow API asynchronously
+// api document: https://help.aliyun.com/api/vod/getworkflow.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetWorkFlowWithCallback(request *GetWorkFlowRequest, callback func(response *GetWorkFlowResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetWorkFlowResponse
+		var err error
+		defer close(result)
+		response, err = client.GetWorkFlow(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetWorkFlowRequest is the request struct for api GetWorkFlow
+type GetWorkFlowRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	WorkFlowId           string           `position:"Query" name:"WorkFlowId"`
+}
+
+// GetWorkFlowResponse is the response struct for api GetWorkFlow
+type GetWorkFlowResponse struct {
+	*responses.BaseResponse
+	RequestId    string       `json:"RequestId" xml:"RequestId"`
+	WorkFlowInfo WorkFlowInfo `json:"WorkFlowInfo" xml:"WorkFlowInfo"`
+}
+
+// CreateGetWorkFlowRequest creates a request to invoke GetWorkFlow API
+func CreateGetWorkFlowRequest() (request *GetWorkFlowRequest) {
+	request = &GetWorkFlowRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("vod", "2017-03-21", "GetWorkFlow", "", "")
+	return
+}
+
+// CreateGetWorkFlowResponse creates a response to parse from GetWorkFlow response
+func CreateGetWorkFlowResponse() (response *GetWorkFlowResponse) {
+	response = &GetWorkFlowResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/vod/list_ai_job.go

@@ -96,7 +96,7 @@ func CreateListAIJobRequest() (request *ListAIJobRequest) {
 	request = &ListAIJobRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "ListAIJob", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "ListAIJob", "", "")
 	return
 }
 

+ 1 - 1
services/vod/list_ai_video_category_job.go

@@ -96,7 +96,7 @@ func CreateListAIVideoCategoryJobRequest() (request *ListAIVideoCategoryJobReque
 	request = &ListAIVideoCategoryJobRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "ListAIVideoCategoryJob", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "ListAIVideoCategoryJob", "", "")
 	return
 }
 

+ 1 - 1
services/vod/list_ai_video_censor_job.go

@@ -96,7 +96,7 @@ func CreateListAIVideoCensorJobRequest() (request *ListAIVideoCensorJobRequest)
 	request = &ListAIVideoCensorJobRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "ListAIVideoCensorJob", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "ListAIVideoCensorJob", "", "")
 	return
 }
 

+ 1 - 1
services/vod/list_ai_video_cover_job.go

@@ -96,7 +96,7 @@ func CreateListAIVideoCoverJobRequest() (request *ListAIVideoCoverJobRequest) {
 	request = &ListAIVideoCoverJobRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "ListAIVideoCoverJob", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "ListAIVideoCoverJob", "", "")
 	return
 }
 

+ 1 - 1
services/vod/list_ai_video_porn_recog_job.go

@@ -96,7 +96,7 @@ func CreateListAIVideoPornRecogJobRequest() (request *ListAIVideoPornRecogJobReq
 	request = &ListAIVideoPornRecogJobRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "ListAIVideoPornRecogJob", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "ListAIVideoPornRecogJob", "", "")
 	return
 }
 

+ 1 - 1
services/vod/list_ai_video_summary_job.go

@@ -96,7 +96,7 @@ func CreateListAIVideoSummaryJobRequest() (request *ListAIVideoSummaryJobRequest
 	request = &ListAIVideoSummaryJobRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "ListAIVideoSummaryJob", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "ListAIVideoSummaryJob", "", "")
 	return
 }
 

+ 1 - 1
services/vod/list_ai_video_terrorism_recog_job.go

@@ -96,7 +96,7 @@ func CreateListAIVideoTerrorismRecogJobRequest() (request *ListAIVideoTerrorismR
 	request = &ListAIVideoTerrorismRecogJobRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "ListAIVideoTerrorismRecogJob", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "ListAIVideoTerrorismRecogJob", "", "")
 	return
 }
 

+ 1 - 1
services/vod/list_aiasr_job.go

@@ -96,7 +96,7 @@ func CreateListAIASRJobRequest() (request *ListAIASRJobRequest) {
 	request = &ListAIASRJobRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "ListAIASRJob", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "ListAIASRJob", "", "")
 	return
 }
 

+ 1 - 1
services/vod/list_audit_security_ip.go

@@ -91,7 +91,7 @@ func CreateListAuditSecurityIpRequest() (request *ListAuditSecurityIpRequest) {
 	request = &ListAuditSecurityIpRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "ListAuditSecurityIp", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "ListAuditSecurityIp", "", "")
 	return
 }
 

+ 1 - 1
services/vod/list_live_record_video.go

@@ -103,7 +103,7 @@ func CreateListLiveRecordVideoRequest() (request *ListLiveRecordVideoRequest) {
 	request = &ListLiveRecordVideoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "ListLiveRecordVideo", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "ListLiveRecordVideo", "", "")
 	return
 }
 

+ 1 - 1
services/vod/list_snapshots.go

@@ -98,7 +98,7 @@ func CreateListSnapshotsRequest() (request *ListSnapshotsRequest) {
 	request = &ListSnapshotsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "ListSnapshots", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "ListSnapshots", "", "")
 	return
 }
 

+ 107 - 0
services/vod/list_vod_template.go

@@ -0,0 +1,107 @@
+package vod
+
+//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"
+)
+
+// ListVodTemplate invokes the vod.ListVodTemplate API synchronously
+// api document: https://help.aliyun.com/api/vod/listvodtemplate.html
+func (client *Client) ListVodTemplate(request *ListVodTemplateRequest) (response *ListVodTemplateResponse, err error) {
+	response = CreateListVodTemplateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListVodTemplateWithChan invokes the vod.ListVodTemplate API asynchronously
+// api document: https://help.aliyun.com/api/vod/listvodtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListVodTemplateWithChan(request *ListVodTemplateRequest) (<-chan *ListVodTemplateResponse, <-chan error) {
+	responseChan := make(chan *ListVodTemplateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListVodTemplate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListVodTemplateWithCallback invokes the vod.ListVodTemplate API asynchronously
+// api document: https://help.aliyun.com/api/vod/listvodtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListVodTemplateWithCallback(request *ListVodTemplateRequest, callback func(response *ListVodTemplateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListVodTemplateResponse
+		var err error
+		defer close(result)
+		response, err = client.ListVodTemplate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListVodTemplateRequest is the request struct for api ListVodTemplate
+type ListVodTemplateRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	TemplateType         string           `position:"Query" name:"TemplateType"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// ListVodTemplateResponse is the response struct for api ListVodTemplate
+type ListVodTemplateResponse struct {
+	*responses.BaseResponse
+	RequestId           string            `json:"RequestId" xml:"RequestId"`
+	VodTemplateInfoList []VodTemplateInfo `json:"VodTemplateInfoList" xml:"VodTemplateInfoList"`
+}
+
+// CreateListVodTemplateRequest creates a request to invoke ListVodTemplate API
+func CreateListVodTemplateRequest() (request *ListVodTemplateRequest) {
+	request = &ListVodTemplateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("vod", "2017-03-21", "ListVodTemplate", "", "")
+	return
+}
+
+// CreateListVodTemplateResponse creates a response to parse from ListVodTemplate response
+func CreateListVodTemplateResponse() (response *ListVodTemplateResponse) {
+	response = &ListVodTemplateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/vod/list_watermark.go

@@ -93,7 +93,7 @@ func CreateListWatermarkRequest() (request *ListWatermarkRequest) {
 	request = &ListWatermarkRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "ListWatermark", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "ListWatermark", "", "")
 	return
 }
 

+ 106 - 0
services/vod/list_work_flow.go

@@ -0,0 +1,106 @@
+package vod
+
+//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"
+)
+
+// ListWorkFlow invokes the vod.ListWorkFlow API synchronously
+// api document: https://help.aliyun.com/api/vod/listworkflow.html
+func (client *Client) ListWorkFlow(request *ListWorkFlowRequest) (response *ListWorkFlowResponse, err error) {
+	response = CreateListWorkFlowResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListWorkFlowWithChan invokes the vod.ListWorkFlow API asynchronously
+// api document: https://help.aliyun.com/api/vod/listworkflow.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListWorkFlowWithChan(request *ListWorkFlowRequest) (<-chan *ListWorkFlowResponse, <-chan error) {
+	responseChan := make(chan *ListWorkFlowResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListWorkFlow(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListWorkFlowWithCallback invokes the vod.ListWorkFlow API asynchronously
+// api document: https://help.aliyun.com/api/vod/listworkflow.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListWorkFlowWithCallback(request *ListWorkFlowRequest, callback func(response *ListWorkFlowResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListWorkFlowResponse
+		var err error
+		defer close(result)
+		response, err = client.ListWorkFlow(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListWorkFlowRequest is the request struct for api ListWorkFlow
+type ListWorkFlowRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// ListWorkFlowResponse is the response struct for api ListWorkFlow
+type ListWorkFlowResponse struct {
+	*responses.BaseResponse
+	RequestId        string         `json:"RequestId" xml:"RequestId"`
+	WorkFlowInfoList []WorkFlowInfo `json:"WorkFlowInfoList" xml:"WorkFlowInfoList"`
+}
+
+// CreateListWorkFlowRequest creates a request to invoke ListWorkFlow API
+func CreateListWorkFlowRequest() (request *ListWorkFlowRequest) {
+	request = &ListWorkFlowRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("vod", "2017-03-21", "ListWorkFlow", "", "")
+	return
+}
+
+// CreateListWorkFlowResponse creates a response to parse from ListWorkFlow response
+func CreateListWorkFlowResponse() (response *ListWorkFlowResponse) {
+	response = &ListWorkFlowResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/vod/open_vod_service.go

@@ -96,7 +96,7 @@ func CreateOpenVodServiceRequest() (request *OpenVodServiceRequest) {
 	request = &OpenVodServiceRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "OpenVodService", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "OpenVodService", "", "")
 	return
 }
 

+ 1 - 1
services/vod/produce_editing_project_video.go

@@ -102,7 +102,7 @@ func CreateProduceEditingProjectVideoRequest() (request *ProduceEditingProjectVi
 	request = &ProduceEditingProjectVideoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "ProduceEditingProjectVideo", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "ProduceEditingProjectVideo", "", "")
 	return
 }
 

+ 1 - 1
services/vod/push_object_cache.go

@@ -95,7 +95,7 @@ func CreatePushObjectCacheRequest() (request *PushObjectCacheRequest) {
 	request = &PushObjectCacheRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "PushObjectCache", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "PushObjectCache", "", "")
 	return
 }
 

+ 1 - 1
services/vod/refresh_object_caches.go

@@ -96,7 +96,7 @@ func CreateRefreshObjectCachesRequest() (request *RefreshObjectCachesRequest) {
 	request = &RefreshObjectCachesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "RefreshObjectCaches", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "RefreshObjectCaches", "", "")
 	return
 }
 

+ 1 - 1
services/vod/refresh_upload_video.go

@@ -96,7 +96,7 @@ func CreateRefreshUploadVideoRequest() (request *RefreshUploadVideoRequest) {
 	request = &RefreshUploadVideoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "RefreshUploadVideo", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "RefreshUploadVideo", "", "")
 	return
 }
 

+ 1 - 1
services/vod/register_media.go

@@ -98,7 +98,7 @@ func CreateRegisterMediaRequest() (request *RegisterMediaRequest) {
 	request = &RegisterMediaRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "RegisterMedia", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "RegisterMedia", "", "")
 	return
 }
 

+ 1 - 1
services/vod/search_editing_project.go

@@ -102,7 +102,7 @@ func CreateSearchEditingProjectRequest() (request *SearchEditingProjectRequest)
 	request = &SearchEditingProjectRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "SearchEditingProject", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "SearchEditingProject", "", "")
 	return
 }
 

+ 1 - 1
services/vod/search_media.go

@@ -102,7 +102,7 @@ func CreateSearchMediaRequest() (request *SearchMediaRequest) {
 	request = &SearchMediaRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "SearchMedia", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "SearchMedia", "", "")
 	return
 }
 

+ 1 - 1
services/vod/set_audit_security_ip.go

@@ -92,7 +92,7 @@ func CreateSetAuditSecurityIpRequest() (request *SetAuditSecurityIpRequest) {
 	request = &SetAuditSecurityIpRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "SetAuditSecurityIp", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "SetAuditSecurityIp", "", "")
 	return
 }
 

+ 107 - 0
services/vod/set_default_vod_template.go

@@ -0,0 +1,107 @@
+package vod
+
+//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"
+)
+
+// SetDefaultVodTemplate invokes the vod.SetDefaultVodTemplate API synchronously
+// api document: https://help.aliyun.com/api/vod/setdefaultvodtemplate.html
+func (client *Client) SetDefaultVodTemplate(request *SetDefaultVodTemplateRequest) (response *SetDefaultVodTemplateResponse, err error) {
+	response = CreateSetDefaultVodTemplateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SetDefaultVodTemplateWithChan invokes the vod.SetDefaultVodTemplate API asynchronously
+// api document: https://help.aliyun.com/api/vod/setdefaultvodtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetDefaultVodTemplateWithChan(request *SetDefaultVodTemplateRequest) (<-chan *SetDefaultVodTemplateResponse, <-chan error) {
+	responseChan := make(chan *SetDefaultVodTemplateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SetDefaultVodTemplate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SetDefaultVodTemplateWithCallback invokes the vod.SetDefaultVodTemplate API asynchronously
+// api document: https://help.aliyun.com/api/vod/setdefaultvodtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetDefaultVodTemplateWithCallback(request *SetDefaultVodTemplateRequest, callback func(response *SetDefaultVodTemplateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SetDefaultVodTemplateResponse
+		var err error
+		defer close(result)
+		response, err = client.SetDefaultVodTemplate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SetDefaultVodTemplateRequest is the request struct for api SetDefaultVodTemplate
+type SetDefaultVodTemplateRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	VodTemplateId        string           `position:"Query" name:"VodTemplateId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// SetDefaultVodTemplateResponse is the response struct for api SetDefaultVodTemplate
+type SetDefaultVodTemplateResponse struct {
+	*responses.BaseResponse
+	RequestId     string `json:"RequestId" xml:"RequestId"`
+	VodTemplateId string `json:"VodTemplateId" xml:"VodTemplateId"`
+}
+
+// CreateSetDefaultVodTemplateRequest creates a request to invoke SetDefaultVodTemplate API
+func CreateSetDefaultVodTemplateRequest() (request *SetDefaultVodTemplateRequest) {
+	request = &SetDefaultVodTemplateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("vod", "2017-03-21", "SetDefaultVodTemplate", "", "")
+	return
+}
+
+// CreateSetDefaultVodTemplateResponse creates a response to parse from SetDefaultVodTemplate response
+func CreateSetDefaultVodTemplateResponse() (response *SetDefaultVodTemplateResponse) {
+	response = &SetDefaultVodTemplateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/vod/set_default_watermark.go

@@ -93,7 +93,7 @@ func CreateSetDefaultWatermarkRequest() (request *SetDefaultWatermarkRequest) {
 	request = &SetDefaultWatermarkRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "SetDefaultWatermark", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "SetDefaultWatermark", "", "")
 	return
 }
 

+ 1 - 1
services/vod/set_editing_project_materials.go

@@ -95,7 +95,7 @@ func CreateSetEditingProjectMaterialsRequest() (request *SetEditingProjectMateri
 	request = &SetEditingProjectMaterialsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "SetEditingProjectMaterials", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "SetEditingProjectMaterials", "", "")
 	return
 }
 

+ 1 - 1
services/vod/set_message_callback.go

@@ -99,7 +99,7 @@ func CreateSetMessageCallbackRequest() (request *SetMessageCallbackRequest) {
 	request = &SetMessageCallbackRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("vod", "2017-03-21", "SetMessageCallback", "vod", "openAPI")
+	request.InitWithApiInfo("vod", "2017-03-21", "SetMessageCallback", "", "")
 	return
 }
 

+ 0 - 0
services/vod/struct_ai_audit_result.go


+ 0 - 0
services/vod/struct_ai_job.go


+ 0 - 0
services/vod/struct_ai_job_list_in_list_ai_job.go


+ 0 - 0
services/vod/struct_ai_job_list_in_submit_ai_job.go


+ 0 - 0
services/vod/struct_ai_video_category_job.go


+ 0 - 0
services/vod/struct_ai_video_category_job_list.go


+ 0 - 0
services/vod/struct_ai_video_censor_job.go


+ 0 - 0
services/vod/struct_ai_video_censor_job_list.go


+ 0 - 0
services/vod/struct_ai_video_cover_job.go


+ 0 - 0
services/vod/struct_ai_video_cover_job_list.go


+ 0 - 0
services/vod/struct_ai_video_porn_recog_job.go


+ 0 - 0
services/vod/struct_ai_video_porn_recog_job_list.go


+ 0 - 0
services/vod/struct_ai_video_summary_job.go


+ 0 - 0
services/vod/struct_ai_video_summary_job_list.go


+ 0 - 0
services/vod/struct_ai_video_terrorism_recog_job.go


+ 0 - 0
services/vod/struct_ai_video_terrorism_recog_job_list.go


+ 0 - 0
services/vod/struct_aiasr_job.go


+ 0 - 0
services/vod/struct_aiasr_job_list.go


+ 0 - 0
services/vod/struct_audio.go


+ 0 - 0
services/vod/struct_audio_stream.go


+ 0 - 0
services/vod/struct_audio_stream_list.go


+ 0 - 0
services/vod/struct_bps_data_per_interval.go


+ 0 - 0
services/vod/struct_category.go


部分文件因文件數量過多而無法顯示