query_editing_job_list.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. package mts
  2. //Licensed under the Apache License, Version 2.0 (the "License");
  3. //you may not use this file except in compliance with the License.
  4. //You may obtain a copy of the License at
  5. //
  6. //http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. //Unless required by applicable law or agreed to in writing, software
  9. //distributed under the License is distributed on an "AS IS" BASIS,
  10. //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. //See the License for the specific language governing permissions and
  12. //limitations under the License.
  13. //
  14. // Code generated by Alibaba Cloud SDK Code Generator.
  15. // Changes may cause incorrect behavior and will be lost if the code is regenerated.
  16. import (
  17. "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
  18. "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
  19. )
  20. func (client *Client) QueryEditingJobList(request *QueryEditingJobListRequest) (response *QueryEditingJobListResponse, err error) {
  21. response = CreateQueryEditingJobListResponse()
  22. err = client.DoAction(request, response)
  23. return
  24. }
  25. func (client *Client) QueryEditingJobListWithChan(request *QueryEditingJobListRequest) (<-chan *QueryEditingJobListResponse, <-chan error) {
  26. responseChan := make(chan *QueryEditingJobListResponse, 1)
  27. errChan := make(chan error, 1)
  28. err := client.AddAsyncTask(func() {
  29. defer close(responseChan)
  30. defer close(errChan)
  31. response, err := client.QueryEditingJobList(request)
  32. responseChan <- response
  33. errChan <- err
  34. })
  35. if err != nil {
  36. errChan <- err
  37. close(responseChan)
  38. close(errChan)
  39. }
  40. return responseChan, errChan
  41. }
  42. func (client *Client) QueryEditingJobListWithCallback(request *QueryEditingJobListRequest, callback func(response *QueryEditingJobListResponse, err error)) <-chan int {
  43. result := make(chan int, 1)
  44. err := client.AddAsyncTask(func() {
  45. var response *QueryEditingJobListResponse
  46. var err error
  47. defer close(result)
  48. response, err = client.QueryEditingJobList(request)
  49. callback(response, err)
  50. result <- 1
  51. })
  52. if err != nil {
  53. defer close(result)
  54. callback(nil, err)
  55. result <- 0
  56. }
  57. return result
  58. }
  59. type QueryEditingJobListRequest struct {
  60. *requests.RpcRequest
  61. ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
  62. ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"`
  63. JobIds string `position:"Query" name:"JobIds"`
  64. OwnerAccount string `position:"Query" name:"OwnerAccount"`
  65. OwnerId requests.Integer `position:"Query" name:"OwnerId"`
  66. }
  67. type QueryEditingJobListResponse struct {
  68. *responses.BaseResponse
  69. RequestId string `json:"RequestId" xml:"RequestId"`
  70. NonExistJobIds struct {
  71. String []string `json:"String" xml:"String"`
  72. } `json:"NonExistJobIds" xml:"NonExistJobIds"`
  73. JobList struct {
  74. Job []struct {
  75. JobId string `json:"JobId" xml:"JobId"`
  76. State string `json:"State" xml:"State"`
  77. Code string `json:"Code" xml:"Code"`
  78. Message string `json:"Message" xml:"Message"`
  79. Percent int `json:"Percent" xml:"Percent"`
  80. PipelineId string `json:"PipelineId" xml:"PipelineId"`
  81. CreationTime string `json:"CreationTime" xml:"CreationTime"`
  82. FinishTime string `json:"FinishTime" xml:"FinishTime"`
  83. EditingConfig struct {
  84. TemplateId string `json:"TemplateId" xml:"TemplateId"`
  85. UserData string `json:"UserData" xml:"UserData"`
  86. Rotate string `json:"Rotate" xml:"Rotate"`
  87. VideoStreamMap string `json:"VideoStreamMap" xml:"VideoStreamMap"`
  88. AudioStreamMap string `json:"AudioStreamMap" xml:"AudioStreamMap"`
  89. DeWatermark string `json:"DeWatermark" xml:"DeWatermark"`
  90. Priority string `json:"Priority" xml:"Priority"`
  91. WaterMarkConfigUrl string `json:"WaterMarkConfigUrl" xml:"WaterMarkConfigUrl"`
  92. MergeConfigUrl string `json:"MergeConfigUrl" xml:"MergeConfigUrl"`
  93. DigiWaterMark struct {
  94. Type string `json:"Type" xml:"Type"`
  95. Alpha string `json:"Alpha" xml:"Alpha"`
  96. InputFile2 struct {
  97. Bucket string `json:"Bucket" xml:"Bucket"`
  98. Location string `json:"Location" xml:"Location"`
  99. Object string `json:"Object" xml:"Object"`
  100. } `json:"InputFile" xml:"InputFile"`
  101. } `json:"DigiWaterMark" xml:"DigiWaterMark"`
  102. OutputFile struct {
  103. Bucket string `json:"Bucket" xml:"Bucket"`
  104. Location string `json:"Location" xml:"Location"`
  105. Object string `json:"Object" xml:"Object"`
  106. RoleArn string `json:"RoleArn" xml:"RoleArn"`
  107. } `json:"OutputFile" xml:"OutputFile"`
  108. M3U8NonStandardSupport struct {
  109. TS struct {
  110. Md5Support bool `json:"Md5Support" xml:"Md5Support"`
  111. SizeSupport bool `json:"SizeSupport" xml:"SizeSupport"`
  112. } `json:"TS" xml:"TS"`
  113. } `json:"M3U8NonStandardSupport" xml:"M3U8NonStandardSupport"`
  114. Properties struct {
  115. Width string `json:"Width" xml:"Width"`
  116. Height string `json:"Height" xml:"Height"`
  117. Bitrate string `json:"Bitrate" xml:"Bitrate"`
  118. Duration string `json:"Duration" xml:"Duration"`
  119. Fps string `json:"Fps" xml:"Fps"`
  120. FileSize string `json:"FileSize" xml:"FileSize"`
  121. FileFormat string `json:"FileFormat" xml:"FileFormat"`
  122. Streams struct {
  123. VideoStreamList struct {
  124. VideoStream []struct {
  125. Index string `json:"Index" xml:"Index"`
  126. CodecName string `json:"CodecName" xml:"CodecName"`
  127. CodecLongName string `json:"CodecLongName" xml:"CodecLongName"`
  128. Profile string `json:"Profile" xml:"Profile"`
  129. CodecTimeBase string `json:"CodecTimeBase" xml:"CodecTimeBase"`
  130. CodecTagString string `json:"CodecTagString" xml:"CodecTagString"`
  131. CodecTag string `json:"CodecTag" xml:"CodecTag"`
  132. Width string `json:"Width" xml:"Width"`
  133. Height string `json:"Height" xml:"Height"`
  134. HasBFrames string `json:"HasBFrames" xml:"HasBFrames"`
  135. Sar string `json:"Sar" xml:"Sar"`
  136. Dar string `json:"Dar" xml:"Dar"`
  137. PixFmt string `json:"PixFmt" xml:"PixFmt"`
  138. Level string `json:"Level" xml:"Level"`
  139. Fps string `json:"Fps" xml:"Fps"`
  140. AvgFPS string `json:"AvgFPS" xml:"AvgFPS"`
  141. Timebase string `json:"Timebase" xml:"Timebase"`
  142. StartTime string `json:"StartTime" xml:"StartTime"`
  143. Duration string `json:"Duration" xml:"Duration"`
  144. Bitrate string `json:"Bitrate" xml:"Bitrate"`
  145. NumFrames string `json:"NumFrames" xml:"NumFrames"`
  146. Lang string `json:"Lang" xml:"Lang"`
  147. NetworkCost struct {
  148. PreloadTime string `json:"PreloadTime" xml:"PreloadTime"`
  149. CostBandwidth string `json:"CostBandwidth" xml:"CostBandwidth"`
  150. AvgBitrate string `json:"AvgBitrate" xml:"AvgBitrate"`
  151. } `json:"NetworkCost" xml:"NetworkCost"`
  152. } `json:"VideoStream" xml:"VideoStream"`
  153. } `json:"VideoStreamList" xml:"VideoStreamList"`
  154. AudioStreamList struct {
  155. AudioStream []struct {
  156. Index string `json:"Index" xml:"Index"`
  157. CodecName string `json:"CodecName" xml:"CodecName"`
  158. CodecTimeBase string `json:"CodecTimeBase" xml:"CodecTimeBase"`
  159. CodecLongName string `json:"CodecLongName" xml:"CodecLongName"`
  160. CodecTagString string `json:"CodecTagString" xml:"CodecTagString"`
  161. CodecTag string `json:"CodecTag" xml:"CodecTag"`
  162. SampleFmt string `json:"SampleFmt" xml:"SampleFmt"`
  163. Samplerate string `json:"Samplerate" xml:"Samplerate"`
  164. Channels string `json:"Channels" xml:"Channels"`
  165. ChannelLayout string `json:"ChannelLayout" xml:"ChannelLayout"`
  166. Timebase string `json:"Timebase" xml:"Timebase"`
  167. StartTime string `json:"StartTime" xml:"StartTime"`
  168. Duration string `json:"Duration" xml:"Duration"`
  169. Bitrate string `json:"Bitrate" xml:"Bitrate"`
  170. NumFrames string `json:"NumFrames" xml:"NumFrames"`
  171. Lang string `json:"Lang" xml:"Lang"`
  172. } `json:"AudioStream" xml:"AudioStream"`
  173. } `json:"AudioStreamList" xml:"AudioStreamList"`
  174. SubtitleStreamList struct {
  175. SubtitleStream []struct {
  176. Index string `json:"Index" xml:"Index"`
  177. Lang string `json:"Lang" xml:"Lang"`
  178. } `json:"SubtitleStream" xml:"SubtitleStream"`
  179. } `json:"SubtitleStreamList" xml:"SubtitleStreamList"`
  180. } `json:"Streams" xml:"Streams"`
  181. Format struct {
  182. NumStreams string `json:"NumStreams" xml:"NumStreams"`
  183. NumPrograms string `json:"NumPrograms" xml:"NumPrograms"`
  184. FormatName string `json:"FormatName" xml:"FormatName"`
  185. FormatLongName string `json:"FormatLongName" xml:"FormatLongName"`
  186. StartTime string `json:"StartTime" xml:"StartTime"`
  187. Duration string `json:"Duration" xml:"Duration"`
  188. Size string `json:"Size" xml:"Size"`
  189. Bitrate string `json:"Bitrate" xml:"Bitrate"`
  190. } `json:"Format" xml:"Format"`
  191. } `json:"Properties" xml:"Properties"`
  192. Clip struct {
  193. TimeSpan struct {
  194. Seek string `json:"Seek" xml:"Seek"`
  195. Duration string `json:"Duration" xml:"Duration"`
  196. } `json:"TimeSpan" xml:"TimeSpan"`
  197. } `json:"Clip" xml:"Clip"`
  198. SuperReso struct {
  199. IsHalfSample string `json:"IsHalfSample" xml:"IsHalfSample"`
  200. } `json:"SuperReso" xml:"SuperReso"`
  201. SubtitleConfig struct {
  202. SubtitleList struct {
  203. Subtitle []struct {
  204. Map string `json:"Map" xml:"Map"`
  205. } `json:"Subtitle" xml:"Subtitle"`
  206. } `json:"SubtitleList" xml:"SubtitleList"`
  207. ExtSubtitleList struct {
  208. ExtSubtitle []struct {
  209. FontName string `json:"FontName" xml:"FontName"`
  210. CharEnc string `json:"CharEnc" xml:"CharEnc"`
  211. Input struct {
  212. Bucket string `json:"Bucket" xml:"Bucket"`
  213. Location string `json:"Location" xml:"Location"`
  214. Object string `json:"Object" xml:"Object"`
  215. } `json:"Input" xml:"Input"`
  216. } `json:"ExtSubtitle" xml:"ExtSubtitle"`
  217. } `json:"ExtSubtitleList" xml:"ExtSubtitleList"`
  218. } `json:"SubtitleConfig" xml:"SubtitleConfig"`
  219. TransConfig struct {
  220. TransMode string `json:"TransMode" xml:"TransMode"`
  221. IsCheckReso string `json:"IsCheckReso" xml:"IsCheckReso"`
  222. IsCheckResoFail string `json:"IsCheckResoFail" xml:"IsCheckResoFail"`
  223. IsCheckVideoBitrate string `json:"IsCheckVideoBitrate" xml:"IsCheckVideoBitrate"`
  224. IsCheckAudioBitrate string `json:"IsCheckAudioBitrate" xml:"IsCheckAudioBitrate"`
  225. AdjDarMethod string `json:"AdjDarMethod" xml:"AdjDarMethod"`
  226. IsCheckVideoBitrateFail string `json:"IsCheckVideoBitrateFail" xml:"IsCheckVideoBitrateFail"`
  227. IsCheckAudioBitrateFail string `json:"IsCheckAudioBitrateFail" xml:"IsCheckAudioBitrateFail"`
  228. Duration string `json:"Duration" xml:"Duration"`
  229. } `json:"TransConfig" xml:"TransConfig"`
  230. MuxConfig struct {
  231. Segment struct {
  232. Duration string `json:"Duration" xml:"Duration"`
  233. } `json:"Segment" xml:"Segment"`
  234. Gif struct {
  235. Loop string `json:"Loop" xml:"Loop"`
  236. FinalDelay string `json:"FinalDelay" xml:"FinalDelay"`
  237. IsCustomPalette string `json:"IsCustomPalette" xml:"IsCustomPalette"`
  238. DitherMode string `json:"DitherMode" xml:"DitherMode"`
  239. } `json:"Gif" xml:"Gif"`
  240. } `json:"MuxConfig" xml:"MuxConfig"`
  241. Audio struct {
  242. Codec string `json:"Codec" xml:"Codec"`
  243. Profile string `json:"Profile" xml:"Profile"`
  244. Samplerate string `json:"Samplerate" xml:"Samplerate"`
  245. Bitrate string `json:"Bitrate" xml:"Bitrate"`
  246. Channels string `json:"Channels" xml:"Channels"`
  247. Qscale string `json:"Qscale" xml:"Qscale"`
  248. Volume struct {
  249. Level string `json:"Level" xml:"Level"`
  250. Method string `json:"Method" xml:"Method"`
  251. } `json:"Volume" xml:"Volume"`
  252. } `json:"Audio" xml:"Audio"`
  253. Video struct {
  254. Codec string `json:"Codec" xml:"Codec"`
  255. Profile string `json:"Profile" xml:"Profile"`
  256. Bitrate string `json:"Bitrate" xml:"Bitrate"`
  257. Crf string `json:"Crf" xml:"Crf"`
  258. Width string `json:"Width" xml:"Width"`
  259. Height string `json:"Height" xml:"Height"`
  260. Fps string `json:"Fps" xml:"Fps"`
  261. Gop string `json:"Gop" xml:"Gop"`
  262. Preset string `json:"Preset" xml:"Preset"`
  263. ScanMode string `json:"ScanMode" xml:"ScanMode"`
  264. Bufsize string `json:"Bufsize" xml:"Bufsize"`
  265. Maxrate string `json:"Maxrate" xml:"Maxrate"`
  266. PixFmt string `json:"PixFmt" xml:"PixFmt"`
  267. Degrain string `json:"Degrain" xml:"Degrain"`
  268. Qscale string `json:"Qscale" xml:"Qscale"`
  269. Crop string `json:"Crop" xml:"Crop"`
  270. Pad string `json:"Pad" xml:"Pad"`
  271. MaxFps string `json:"MaxFps" xml:"MaxFps"`
  272. BitrateBnd struct {
  273. Max string `json:"Max" xml:"Max"`
  274. Min string `json:"Min" xml:"Min"`
  275. } `json:"BitrateBnd" xml:"BitrateBnd"`
  276. } `json:"Video" xml:"Video"`
  277. Container struct {
  278. Format string `json:"Format" xml:"Format"`
  279. } `json:"Container" xml:"Container"`
  280. Encryption struct {
  281. Type string `json:"Type" xml:"Type"`
  282. Id string `json:"Id" xml:"Id"`
  283. Key string `json:"Key" xml:"Key"`
  284. KeyUri string `json:"KeyUri" xml:"KeyUri"`
  285. KeyType string `json:"KeyType" xml:"KeyType"`
  286. SkipCnt string `json:"SkipCnt" xml:"SkipCnt"`
  287. } `json:"Encryption" xml:"Encryption"`
  288. Editing struct {
  289. Timeline struct {
  290. TimelineConfig struct {
  291. TimelineConfigVideo struct {
  292. Width string `json:"Width" xml:"Width"`
  293. Height string `json:"Height" xml:"Height"`
  294. BgColor string `json:"BgColor" xml:"BgColor"`
  295. Fps string `json:"Fps" xml:"Fps"`
  296. } `json:"TimelineConfigVideo" xml:"TimelineConfigVideo"`
  297. TimelineConfigAudio struct {
  298. Samplerate string `json:"Samplerate" xml:"Samplerate"`
  299. ChannelLayout string `json:"ChannelLayout" xml:"ChannelLayout"`
  300. Channels string `json:"Channels" xml:"Channels"`
  301. } `json:"TimelineConfigAudio" xml:"TimelineConfigAudio"`
  302. } `json:"TimelineConfig" xml:"TimelineConfig"`
  303. TrackList struct {
  304. Track []struct {
  305. Id string `json:"Id" xml:"Id"`
  306. Type string `json:"Type" xml:"Type"`
  307. Order string `json:"Order" xml:"Order"`
  308. Clips struct {
  309. Clip []struct {
  310. ClipID string `json:"clipID" xml:"clipID"`
  311. In string `json:"In" xml:"In"`
  312. Out string `json:"Out" xml:"Out"`
  313. ClipsConfig struct {
  314. ClipsConfigVideo struct {
  315. L string `json:"L" xml:"L"`
  316. T string `json:"T" xml:"T"`
  317. } `json:"ClipsConfigVideo" xml:"ClipsConfigVideo"`
  318. } `json:"ClipsConfig" xml:"ClipsConfig"`
  319. } `json:"Clip" xml:"Clip"`
  320. } `json:"Clips" xml:"Clips"`
  321. } `json:"Track" xml:"Track"`
  322. } `json:"TrackList" xml:"TrackList"`
  323. } `json:"Timeline" xml:"Timeline"`
  324. ClipList struct {
  325. Clip []struct {
  326. Id string `json:"Id" xml:"Id"`
  327. Type string `json:"Type" xml:"Type"`
  328. SourceType string `json:"SourceType" xml:"SourceType"`
  329. SourceID string `json:"SourceID" xml:"SourceID"`
  330. SourceStrmMap string `json:"SourceStrmMap" xml:"SourceStrmMap"`
  331. In string `json:"In" xml:"In"`
  332. Out string `json:"Out" xml:"Out"`
  333. Effects struct {
  334. Effect []struct {
  335. Effect string `json:"Effect" xml:"Effect"`
  336. EffectConfig string `json:"EffectConfig" xml:"EffectConfig"`
  337. } `json:"Effect" xml:"Effect"`
  338. } `json:"Effects" xml:"Effects"`
  339. } `json:"Clip" xml:"Clip"`
  340. } `json:"ClipList" xml:"ClipList"`
  341. } `json:"Editing" xml:"Editing"`
  342. WaterMarkList struct {
  343. WaterMark []struct {
  344. WaterMarkTemplateId string `json:"WaterMarkTemplateId" xml:"WaterMarkTemplateId"`
  345. Width string `json:"Width" xml:"Width"`
  346. Height string `json:"Height" xml:"Height"`
  347. Dx string `json:"Dx" xml:"Dx"`
  348. Dy string `json:"Dy" xml:"Dy"`
  349. ReferPos string `json:"ReferPos" xml:"ReferPos"`
  350. Type string `json:"Type" xml:"Type"`
  351. InputFile1 struct {
  352. Bucket string `json:"Bucket" xml:"Bucket"`
  353. Location string `json:"Location" xml:"Location"`
  354. Object string `json:"Object" xml:"Object"`
  355. } `json:"InputFile" xml:"InputFile"`
  356. } `json:"WaterMark" xml:"WaterMark"`
  357. } `json:"WaterMarkList" xml:"WaterMarkList"`
  358. MergeList struct {
  359. Merge []struct {
  360. MergeURL string `json:"MergeURL" xml:"MergeURL"`
  361. Start string `json:"Start" xml:"Start"`
  362. Duration string `json:"Duration" xml:"Duration"`
  363. RoleArn string `json:"RoleArn" xml:"RoleArn"`
  364. } `json:"Merge" xml:"Merge"`
  365. } `json:"MergeList" xml:"MergeList"`
  366. } `json:"EditingConfig" xml:"EditingConfig"`
  367. MNSMessageResult struct {
  368. MessageId string `json:"MessageId" xml:"MessageId"`
  369. ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
  370. ErrorCode string `json:"ErrorCode" xml:"ErrorCode"`
  371. } `json:"MNSMessageResult" xml:"MNSMessageResult"`
  372. EditingInputs struct {
  373. EditingInput []struct {
  374. Id string `json:"Id" xml:"Id"`
  375. InputFile struct {
  376. Bucket string `json:"Bucket" xml:"Bucket"`
  377. Location string `json:"Location" xml:"Location"`
  378. Object string `json:"Object" xml:"Object"`
  379. } `json:"InputFile" xml:"InputFile"`
  380. InputConfig struct {
  381. DeinterlaceMethod string `json:"DeinterlaceMethod" xml:"DeinterlaceMethod"`
  382. IsNormalSar string `json:"IsNormalSar" xml:"IsNormalSar"`
  383. } `json:"InputConfig" xml:"InputConfig"`
  384. } `json:"EditingInput" xml:"EditingInput"`
  385. } `json:"EditingInputs" xml:"EditingInputs"`
  386. } `json:"Job" xml:"Job"`
  387. } `json:"JobList" xml:"JobList"`
  388. }
  389. func CreateQueryEditingJobListRequest() (request *QueryEditingJobListRequest) {
  390. request = &QueryEditingJobListRequest{
  391. RpcRequest: &requests.RpcRequest{},
  392. }
  393. request.InitWithApiInfo("Mts", "2014-06-18", "QueryEditingJobList", "mts", "openAPI")
  394. return
  395. }
  396. func CreateQueryEditingJobListResponse() (response *QueryEditingJobListResponse) {
  397. response = &QueryEditingJobListResponse{
  398. BaseResponse: &responses.BaseResponse{},
  399. }
  400. return
  401. }