Jelajahi Sumber

Add a new field named Input to SubmitAIJob api request to set the input file of AI job.

sdk-team 6 tahun lalu
induk
melakukan
375ab843e7

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2019-07-18 Version: 1.60.68
+- Add a new field named Input to SubmitAIJob api request to set the input file of AI job.
+- Change the field MediaId of SubmitAIJob api to non-mandatory.
+
 2019-07-18 Version: 1.60.67
 - Supported open api for dbaudit management.
 

+ 1 - 1
services/vod/register_media.go

@@ -82,7 +82,7 @@ type RegisterMediaRequest struct {
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 	RegisterMetadatas    string           `position:"Query" name:"RegisterMetadatas"`
-	WorkFlowId           string           `position:"Query" name:"WorkFlowId"`
+	WorkflowId           string           `position:"Query" name:"WorkflowId"`
 }
 
 // RegisterMediaResponse is the response struct for api RegisterMedia

+ 1 - 0
services/vod/submit_ai_job.go

@@ -77,6 +77,7 @@ func (client *Client) SubmitAIJobWithCallback(request *SubmitAIJobRequest, callb
 type SubmitAIJobRequest struct {
 	*requests.RpcRequest
 	UserData             string `position:"Query" name:"UserData"`
+	Input                string `position:"Query" name:"Input"`
 	ResourceOwnerId      string `position:"Query" name:"ResourceOwnerId"`
 	Types                string `position:"Query" name:"Types"`
 	ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"`

+ 6 - 5
services/vod/upload_media_by_url.go

@@ -76,17 +76,18 @@ func (client *Client) UploadMediaByURLWithCallback(request *UploadMediaByURLRequ
 // UploadMediaByURLRequest is the request struct for api UploadMediaByURL
 type UploadMediaByURLRequest struct {
 	*requests.RpcRequest
-	UserData             string           `position:"Query" name:"UserData"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	TemplateGroupId      string           `position:"Query" name:"TemplateGroupId"`
-	UploadMetadatas      string           `position:"Query" name:"UploadMetadatas"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	UploadURLs           string           `position:"Query" name:"UploadURLs"`
-	AppId                string           `position:"Query" name:"AppId"`
 	MessageCallback      string           `position:"Query" name:"MessageCallback"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 	Priority             string           `position:"Query" name:"Priority"`
 	StorageLocation      string           `position:"Query" name:"StorageLocation"`
+	UserData             string           `position:"Query" name:"UserData"`
+	TemplateGroupId      string           `position:"Query" name:"TemplateGroupId"`
+	UploadMetadatas      string           `position:"Query" name:"UploadMetadatas"`
+	UploadURLs           string           `position:"Query" name:"UploadURLs"`
+	AppId                string           `position:"Query" name:"AppId"`
+	WorkflowId           string           `position:"Query" name:"WorkflowId"`
 }
 
 // UploadMediaByURLResponse is the response struct for api UploadMediaByURL