浏览代码

Generated 2019-08-10 for multimediaai.

sdk-team 6 年之前
父节点
当前提交
7419c743b2

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-09-24 Version: 1.60.175
+- Generated 2019-08-10 for `multimediaai`.
+
 2019-09-23 Version: 1.60.174
 - Generated 2019-06-12 for `MaxCompute`.
 

+ 129 - 0
services/multimediaai/client.go

@@ -0,0 +1,129 @@
+package multimediaai
+
+//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 (
+	"reflect"
+
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider"
+)
+
+// Client is the sdk client struct, each func corresponds to an OpenAPI
+type Client struct {
+	sdk.Client
+}
+
+// SetClientProperty Set Property by Reflect
+func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) {
+	v := reflect.ValueOf(client).Elem()
+	if v.FieldByName(propertyName).IsValid() && v.FieldByName(propertyName).CanSet() {
+		v.FieldByName(propertyName).Set(reflect.ValueOf(propertyValue))
+	}
+}
+
+// SetEndpointDataToClient Set EndpointMap and ENdpointType
+func SetEndpointDataToClient(client *Client) {
+	SetClientProperty(client, "EndpointMap", GetEndpointMap())
+	SetClientProperty(client, "EndpointType", GetEndpointType())
+}
+
+// NewClient creates a sdk client with environment variables
+func NewClient() (client *Client, err error) {
+	client = &Client{}
+	err = client.Init()
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithProvider creates a sdk client with providers
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) {
+	client = &Client{}
+	var pc provider.Provider
+	if len(providers) == 0 {
+		pc = provider.DefaultChain
+	} else {
+		pc = provider.NewProviderChain(providers)
+	}
+	err = client.InitWithProviderChain(regionId, pc)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential
+// this is the common api to create a sdk client
+func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithOptions(regionId, config, credential)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithAccessKey is a shortcut to create sdk client with accesskey
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithStsToken is a shortcut to create sdk client with sts token
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithEcsRamRole(regionId, roleName)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
+	SetEndpointDataToClient(client)
+	return
+}

+ 106 - 0
services/multimediaai/create_cover_task.go

@@ -0,0 +1,106 @@
+package multimediaai
+
+//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"
+)
+
+// CreateCoverTask invokes the multimediaai.CreateCoverTask API synchronously
+// api document: https://help.aliyun.com/api/multimediaai/createcovertask.html
+func (client *Client) CreateCoverTask(request *CreateCoverTaskRequest) (response *CreateCoverTaskResponse, err error) {
+	response = CreateCreateCoverTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateCoverTaskWithChan invokes the multimediaai.CreateCoverTask API asynchronously
+// api document: https://help.aliyun.com/api/multimediaai/createcovertask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateCoverTaskWithChan(request *CreateCoverTaskRequest) (<-chan *CreateCoverTaskResponse, <-chan error) {
+	responseChan := make(chan *CreateCoverTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateCoverTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateCoverTaskWithCallback invokes the multimediaai.CreateCoverTask API asynchronously
+// api document: https://help.aliyun.com/api/multimediaai/createcovertask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateCoverTaskWithCallback(request *CreateCoverTaskRequest, callback func(response *CreateCoverTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateCoverTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateCoverTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateCoverTaskRequest is the request struct for api CreateCoverTask
+type CreateCoverTaskRequest struct {
+	*requests.RpcRequest
+	VideoUrl      string `position:"Query" name:"VideoUrl"`
+	VideoName     string `position:"Query" name:"VideoName"`
+	ApplicationId string `position:"Query" name:"ApplicationId"`
+}
+
+// CreateCoverTaskResponse is the response struct for api CreateCoverTask
+type CreateCoverTaskResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	TaskId    int64  `json:"TaskId" xml:"TaskId"`
+}
+
+// CreateCreateCoverTaskRequest creates a request to invoke CreateCoverTask API
+func CreateCreateCoverTaskRequest() (request *CreateCoverTaskRequest) {
+	request = &CreateCoverTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("multimediaai", "2019-08-10", "CreateCoverTask", "multimediaai", "openAPI")
+	return
+}
+
+// CreateCreateCoverTaskResponse creates a response to parse from CreateCoverTask response
+func CreateCreateCoverTaskResponse() (response *CreateCoverTaskResponse) {
+	response = &CreateCoverTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/multimediaai/create_gif_task.go

@@ -0,0 +1,106 @@
+package multimediaai
+
+//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"
+)
+
+// CreateGifTask invokes the multimediaai.CreateGifTask API synchronously
+// api document: https://help.aliyun.com/api/multimediaai/creategiftask.html
+func (client *Client) CreateGifTask(request *CreateGifTaskRequest) (response *CreateGifTaskResponse, err error) {
+	response = CreateCreateGifTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateGifTaskWithChan invokes the multimediaai.CreateGifTask API asynchronously
+// api document: https://help.aliyun.com/api/multimediaai/creategiftask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateGifTaskWithChan(request *CreateGifTaskRequest) (<-chan *CreateGifTaskResponse, <-chan error) {
+	responseChan := make(chan *CreateGifTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateGifTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateGifTaskWithCallback invokes the multimediaai.CreateGifTask API asynchronously
+// api document: https://help.aliyun.com/api/multimediaai/creategiftask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateGifTaskWithCallback(request *CreateGifTaskRequest, callback func(response *CreateGifTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateGifTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateGifTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateGifTaskRequest is the request struct for api CreateGifTask
+type CreateGifTaskRequest struct {
+	*requests.RpcRequest
+	VideoUrl      string `position:"Query" name:"VideoUrl"`
+	VideoName     string `position:"Query" name:"VideoName"`
+	ApplicationId string `position:"Query" name:"ApplicationId"`
+}
+
+// CreateGifTaskResponse is the response struct for api CreateGifTask
+type CreateGifTaskResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	TaskId    int64  `json:"TaskId" xml:"TaskId"`
+}
+
+// CreateCreateGifTaskRequest creates a request to invoke CreateGifTask API
+func CreateCreateGifTaskRequest() (request *CreateGifTaskRequest) {
+	request = &CreateGifTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("multimediaai", "2019-08-10", "CreateGifTask", "multimediaai", "openAPI")
+	return
+}
+
+// CreateCreateGifTaskResponse creates a response to parse from CreateGifTask response
+func CreateCreateGifTaskResponse() (response *CreateGifTaskResponse) {
+	response = &CreateGifTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/multimediaai/create_label_task.go

@@ -0,0 +1,106 @@
+package multimediaai
+
+//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"
+)
+
+// CreateLabelTask invokes the multimediaai.CreateLabelTask API synchronously
+// api document: https://help.aliyun.com/api/multimediaai/createlabeltask.html
+func (client *Client) CreateLabelTask(request *CreateLabelTaskRequest) (response *CreateLabelTaskResponse, err error) {
+	response = CreateCreateLabelTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateLabelTaskWithChan invokes the multimediaai.CreateLabelTask API asynchronously
+// api document: https://help.aliyun.com/api/multimediaai/createlabeltask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateLabelTaskWithChan(request *CreateLabelTaskRequest) (<-chan *CreateLabelTaskResponse, <-chan error) {
+	responseChan := make(chan *CreateLabelTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateLabelTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateLabelTaskWithCallback invokes the multimediaai.CreateLabelTask API asynchronously
+// api document: https://help.aliyun.com/api/multimediaai/createlabeltask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateLabelTaskWithCallback(request *CreateLabelTaskRequest, callback func(response *CreateLabelTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateLabelTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateLabelTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateLabelTaskRequest is the request struct for api CreateLabelTask
+type CreateLabelTaskRequest struct {
+	*requests.RpcRequest
+	VideoUrl      string `position:"Query" name:"VideoUrl"`
+	VideoName     string `position:"Query" name:"VideoName"`
+	ApplicationId string `position:"Query" name:"ApplicationId"`
+}
+
+// CreateLabelTaskResponse is the response struct for api CreateLabelTask
+type CreateLabelTaskResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	TaskId    int64  `json:"TaskId" xml:"TaskId"`
+}
+
+// CreateCreateLabelTaskRequest creates a request to invoke CreateLabelTask API
+func CreateCreateLabelTaskRequest() (request *CreateLabelTaskRequest) {
+	request = &CreateLabelTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("multimediaai", "2019-08-10", "CreateLabelTask", "multimediaai", "openAPI")
+	return
+}
+
+// CreateCreateLabelTaskResponse creates a response to parse from CreateLabelTask response
+func CreateCreateLabelTaskResponse() (response *CreateLabelTaskResponse) {
+	response = &CreateLabelTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 20 - 0
services/multimediaai/endpoint.go

@@ -0,0 +1,20 @@
+package multimediaai
+
+// EndpointMap Endpoint Data
+var EndpointMap map[string]string
+
+// EndpointType regional or central
+var EndpointType = "regional"
+
+// GetEndpointMap Get Endpoint Data Map
+func GetEndpointMap() map[string]string {
+	if EndpointMap == nil {
+		EndpointMap = map[string]string{}
+	}
+	return EndpointMap
+}
+
+// GetEndpointType Get Endpoint Type Value
+func GetEndpointType() string {
+	return EndpointType
+}

+ 105 - 0
services/multimediaai/get_task_result.go

@@ -0,0 +1,105 @@
+package multimediaai
+
+//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"
+)
+
+// GetTaskResult invokes the multimediaai.GetTaskResult API synchronously
+// api document: https://help.aliyun.com/api/multimediaai/gettaskresult.html
+func (client *Client) GetTaskResult(request *GetTaskResultRequest) (response *GetTaskResultResponse, err error) {
+	response = CreateGetTaskResultResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetTaskResultWithChan invokes the multimediaai.GetTaskResult API asynchronously
+// api document: https://help.aliyun.com/api/multimediaai/gettaskresult.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetTaskResultWithChan(request *GetTaskResultRequest) (<-chan *GetTaskResultResponse, <-chan error) {
+	responseChan := make(chan *GetTaskResultResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetTaskResult(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetTaskResultWithCallback invokes the multimediaai.GetTaskResult API asynchronously
+// api document: https://help.aliyun.com/api/multimediaai/gettaskresult.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetTaskResultWithCallback(request *GetTaskResultRequest, callback func(response *GetTaskResultResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetTaskResultResponse
+		var err error
+		defer close(result)
+		response, err = client.GetTaskResult(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetTaskResultRequest is the request struct for api GetTaskResult
+type GetTaskResultRequest struct {
+	*requests.RpcRequest
+	TaskId requests.Integer `position:"Query" name:"TaskId"`
+}
+
+// GetTaskResultResponse is the response struct for api GetTaskResult
+type GetTaskResultResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Status    int    `json:"Status" xml:"Status"`
+	Result    Result `json:"Result" xml:"Result"`
+}
+
+// CreateGetTaskResultRequest creates a request to invoke GetTaskResult API
+func CreateGetTaskResultRequest() (request *GetTaskResultRequest) {
+	request = &GetTaskResultRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("multimediaai", "2019-08-10", "GetTaskResult", "multimediaai", "openAPI")
+	return
+}
+
+// CreateGetTaskResultResponse creates a response to parse from GetTaskResult response
+func CreateGetTaskResultResponse() (response *GetTaskResultResponse) {
+	response = &GetTaskResultResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/multimediaai/get_task_status.go

@@ -0,0 +1,104 @@
+package multimediaai
+
+//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"
+)
+
+// GetTaskStatus invokes the multimediaai.GetTaskStatus API synchronously
+// api document: https://help.aliyun.com/api/multimediaai/gettaskstatus.html
+func (client *Client) GetTaskStatus(request *GetTaskStatusRequest) (response *GetTaskStatusResponse, err error) {
+	response = CreateGetTaskStatusResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetTaskStatusWithChan invokes the multimediaai.GetTaskStatus API asynchronously
+// api document: https://help.aliyun.com/api/multimediaai/gettaskstatus.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetTaskStatusWithChan(request *GetTaskStatusRequest) (<-chan *GetTaskStatusResponse, <-chan error) {
+	responseChan := make(chan *GetTaskStatusResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetTaskStatus(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetTaskStatusWithCallback invokes the multimediaai.GetTaskStatus API asynchronously
+// api document: https://help.aliyun.com/api/multimediaai/gettaskstatus.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetTaskStatusWithCallback(request *GetTaskStatusRequest, callback func(response *GetTaskStatusResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetTaskStatusResponse
+		var err error
+		defer close(result)
+		response, err = client.GetTaskStatus(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetTaskStatusRequest is the request struct for api GetTaskStatus
+type GetTaskStatusRequest struct {
+	*requests.RpcRequest
+	TaskId requests.Integer `position:"Query" name:"TaskId"`
+}
+
+// GetTaskStatusResponse is the response struct for api GetTaskStatus
+type GetTaskStatusResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Status    int    `json:"Status" xml:"Status"`
+}
+
+// CreateGetTaskStatusRequest creates a request to invoke GetTaskStatus API
+func CreateGetTaskStatusRequest() (request *GetTaskStatusRequest) {
+	request = &GetTaskStatusRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("multimediaai", "2019-08-10", "GetTaskStatus", "multimediaai", "openAPI")
+	return
+}
+
+// CreateGetTaskStatusResponse creates a response to parse from GetTaskStatus response
+func CreateGetTaskStatusResponse() (response *GetTaskStatusResponse) {
+	response = &GetTaskStatusResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 24 - 0
services/multimediaai/struct_result.go

@@ -0,0 +1,24 @@
+package multimediaai
+
+//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.
+
+// Result is a nested struct in multimediaai response
+type Result struct {
+	ApplicationId    string `json:"ApplicationId" xml:"ApplicationId"`
+	VideoName        string `json:"VideoName" xml:"VideoName"`
+	ProcessResultUrl string `json:"ProcessResultUrl" xml:"ProcessResultUrl"`
+	AnalysisUseTime  int64  `json:"AnalysisUseTime" xml:"AnalysisUseTime"`
+}