PageRenderTime 57ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/public/plugin/ckfinder/core/connector/php/vendor/microsoft/windowsazure/WindowsAzure/MediaServices/Internal/IMediaServices.php

https://gitlab.com/vietdhtn/myweb
PHP | 446 lines | 49 code | 49 blank | 348 comment | 0 complexity | 5cb51770da4e76872a2ea9d4115f55fe MD5 | raw file
  1. <?php
  2. /**
  3. * LICENSE: Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  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. * PHP version 5
  15. *
  16. * @category Microsoft
  17. * @package WindowsAzure\MediaServices\Internal
  18. * @author Azure PHP SDK <azurephpsdk@microsoft.com>
  19. * @copyright Microsoft Corporation
  20. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
  21. * @link https://github.com/windowsazure/azure-sdk-for-php
  22. */
  23. namespace WindowsAzure\MediaServices\Internal;
  24. use WindowsAzure\Common\Internal\FilterableService;
  25. /**
  26. * This interface has all REST APIs provided by Windows Azure for Blob service.
  27. *
  28. * @category Microsoft
  29. * @package WindowsAzure\MediaServices\Internal
  30. * @author Azure PHP SDK <azurephpsdk@microsoft.com>
  31. * @copyright Microsoft Corporation
  32. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
  33. * @version Release: 0.4.0_2014-01
  34. * @link https://github.com/windowsazure/azure-sdk-for-php
  35. * @see http://msdn.microsoft.com/en-us/library/windowsazure/dd135733.aspx
  36. */
  37. interface IMediaServices extends FilterableService
  38. {
  39. /**
  40. * Create new asset
  41. *
  42. * @param WindowsAzure\MediaServices\Models\Asset $asset Asset data
  43. *
  44. * @return WindowsAzure\MediaServices\Models\Asset Created asset
  45. */
  46. public function createAsset($asset);
  47. /**
  48. * Get asset
  49. *
  50. * @param WindowsAzure\MediaServices\Models\Asset|string $asset Asset data or
  51. * asset Id
  52. *
  53. * @return WindowsAzure\MediaServices\Models\Asset
  54. */
  55. public function getAsset($asset);
  56. /**
  57. * Get asset list
  58. *
  59. * @return array
  60. */
  61. public function getAssetList();
  62. /**
  63. * Get asset locators
  64. *
  65. * @param WindowsAzure\MediaServices\Models\Asset|string $asset Asset data or
  66. * asset Id
  67. *
  68. * @return array
  69. */
  70. public function getAssetLocators($asset);
  71. /**
  72. * Get parent assets of asset
  73. *
  74. * @param WindowsAzure\MediaServices\Models\Asset|string $asset Asset data or
  75. * asset Id
  76. *
  77. * @return array
  78. */
  79. public function getAssetParentAssets($asset);
  80. /**
  81. * Get assetFiles of asset
  82. *
  83. * @param WindowsAzure\MediaServices\Models\Asset|string $asset Asset data or
  84. * asset Id
  85. *
  86. * @return array
  87. */
  88. public function getAssetAssetFileList($asset);
  89. /**
  90. * Get storage account of asset
  91. *
  92. * @param WindowsAzure\MediaServices\Models\Asset|string $asset Asset data or
  93. * asset Id
  94. *
  95. * @return WindowsAzure\MediaServices\Models\StorageAccount
  96. */
  97. public function getAssetStorageAccount($asset);
  98. /**
  99. * Update asset
  100. *
  101. * @param WindowsAzure\MediaServices\Models\Asset $asset New asset data with
  102. * valid id
  103. *
  104. * @return none
  105. */
  106. public function updateAsset($asset);
  107. /**
  108. * Delete asset
  109. *
  110. * @param WindowsAzure\MediaServices\Models\Asset|string $asset Asset data or
  111. * asset Id
  112. *
  113. * @return none
  114. */
  115. public function deleteAsset($asset);
  116. /**
  117. * Create new access policy
  118. *
  119. * @param WindowsAzure\MediaServices\Models\AccessPolicy $accessPolicy Access
  120. * policy data
  121. *
  122. * @return WindowsAzure\MediaServices\Models\AccessPolicy
  123. */
  124. public function createAccessPolicy($accessPolicy);
  125. /**
  126. * Get AccessPolicy.
  127. *
  128. * @param WindowsAzure\MediaServices\Models\AccessPolicy|string $accessPolicy A
  129. * AccessPolicy data or AccessPolicy Id
  130. *
  131. * @return WindowsAzure\MediaServices\Models\AccessPolicy
  132. */
  133. public function getAccessPolicy($accessPolicy);
  134. /**
  135. * Get list of AccessPolicies.
  136. *
  137. * @return array
  138. */
  139. public function getAccessPolicyList();
  140. /**
  141. * Delete access policy
  142. *
  143. * @param WindowsAzure\MediaServices\Models\AccessPolicy|string $accessPolicy A
  144. * Access policy data or access policy Id
  145. *
  146. * @return none
  147. */
  148. public function deleteAccessPolicy($accessPolicy);
  149. /**
  150. * Create new locator
  151. *
  152. * @param WindowsAzure\MediaServices\Models\Locator $locator Locator data
  153. *
  154. * @return WindowsAzure\MediaServices\Models\Locator
  155. */
  156. public function createLocator($locator);
  157. /**
  158. * Get Locator.
  159. *
  160. * @param WindowsAzure\MediaServices\Models\Locator|string $locator Locator data
  161. * or locator Id
  162. *
  163. * @return WindowsAzure\MediaServices\Models\Locator
  164. */
  165. public function getLocator($locator);
  166. /**
  167. * Get Locator access policy.
  168. *
  169. * @param WindowsAzure\MediaServices\Models\Locator|string $locator Locator data
  170. * or locator Id
  171. *
  172. * @return WindowsAzure\MediaServices\Models\Locator
  173. */
  174. public function getLocatorAccessPolicy($locator);
  175. /**
  176. * Get Locator asset.
  177. *
  178. * @param WindowsAzure\MediaServices\Models\Locator|string $locator Locator data
  179. * or locator Id
  180. *
  181. * @return WindowsAzure\MediaServices\Models\Locator
  182. */
  183. public function getLocatorAsset($locator);
  184. /**
  185. * Get list of Locators.
  186. *
  187. * @return array
  188. */
  189. public function getLocatorList();
  190. /**
  191. * Update locator
  192. *
  193. * @param WindowsAzure\MediaServices\Models\Locator $locator New locator data
  194. * with valid id
  195. *
  196. * @return none
  197. */
  198. public function updateLocator($locator);
  199. /**
  200. * Delete locator
  201. *
  202. * @param WindowsAzure\MediaServices\Models\Locator|string $locator Asset data
  203. * or asset Id
  204. *
  205. * @return none
  206. */
  207. public function deleteLocator($locator);
  208. /**
  209. * Generate file info for all files in asset
  210. *
  211. * @param WindowsAzure\MediaServices\Models\Asset|string $asset Asset data or
  212. * asset Id
  213. *
  214. * @return none
  215. */
  216. public function createFileInfos($asset);
  217. /**
  218. * Get asset file.
  219. *
  220. * @param WindowsAzure\MediaServices\Models\AssetFile|string $assetFile AssetFile
  221. * data or assetFile Id
  222. *
  223. * @return WindowsAzure\MediaServices\Models\AssetFile
  224. */
  225. public function getAssetFile($assetFile);
  226. /**
  227. * Get list of all asset files.
  228. *
  229. * @return array
  230. */
  231. public function getAssetFileList();
  232. /**
  233. * Update asset file
  234. *
  235. * @param WindowsAzure\MediaServices\Models\AssetFile $assetFile New AssetFile
  236. * data
  237. *
  238. * @return none
  239. */
  240. public function updateAssetFile($assetFile);
  241. /**
  242. * Upload asset file to storage.
  243. *
  244. * @param WindowsAzure\MediaServices\Models\Locator $locator Write locator for
  245. * file upload
  246. *
  247. * @param string $name Uploading filename
  248. * @param string $body Uploading content
  249. *
  250. * @return none
  251. */
  252. public function uploadAssetFile($locator, $name, $body);
  253. /**
  254. * Create a job.
  255. *
  256. * @param WindowsAzure\MediaServices\Models\Job $job Job data
  257. * @param array $inputAssets Input assets list
  258. * @param array $tasks Performed tasks
  259. * array (optional)
  260. *
  261. * @return array
  262. */
  263. public function createJob($job, $inputAssets, $tasks = null);
  264. /**
  265. * Get Job.
  266. *
  267. * @param WindowsAzure\MediaServices\Models\Job|string $job Job data or job Id
  268. *
  269. * @return WindowsAzure\MediaServices\Models\Job
  270. */
  271. public function getJob($job);
  272. /**
  273. * Get list of Jobs.
  274. *
  275. * @return array
  276. */
  277. public function getJobList();
  278. /**
  279. * Get status of a job
  280. *
  281. * @param WindowsAzure\MediaServices\Models\Job|string $job Job data or job Id
  282. *
  283. * @return string
  284. */
  285. public function getJobStatus($job);
  286. /**
  287. * Get job tasks.
  288. *
  289. * @param WindowsAzure\MediaServices\Models\Job|string $job Job data or job Id
  290. *
  291. * @return array
  292. */
  293. public function getJobTasks($job);
  294. /**
  295. * Get job input assets.
  296. *
  297. * @param WindowsAzure\MediaServices\Models\Job|string $job Job data or job Id
  298. *
  299. * @return array
  300. */
  301. public function getJobInputMediaAssets($job);
  302. /**
  303. * Get job output assets.
  304. *
  305. * @param WindowsAzure\MediaServices\Models\Job|string $job Job data or job Id
  306. *
  307. * @return array
  308. */
  309. public function getJobOutputMediaAssets($job);
  310. /**
  311. * Cancel a job
  312. *
  313. * @param WindowsAzure\MediaServices\Models\Job|string $job Job data or job Id
  314. *
  315. * @return none
  316. */
  317. public function cancelJob($job);
  318. /**
  319. * Delete job
  320. *
  321. * @param WindowsAzure\MediaServices\Models\Job|string $job Job data or job Id
  322. *
  323. * @return none
  324. */
  325. public function deleteJob($job);
  326. /**
  327. * Get list of tasks.
  328. *
  329. * @return array
  330. */
  331. public function getTaskList();
  332. /**
  333. * Create a job.
  334. *
  335. * @param WindowsAzure\MediaServices\Models\JobTemplate $jobTemplate Job
  336. * template data
  337. *
  338. * @param array $taskTemplates Performed
  339. * tasks template array
  340. *
  341. * @return array
  342. */
  343. public function createJobTemplate($jobTemplate, $taskTemplates);
  344. /**
  345. * Get job template.
  346. *
  347. * @param WindowsAzure\MediaServices\Models\JobTemplate|string $jobTemplate Job
  348. * template data or jobTemplate Id
  349. *
  350. * @return WindowsAzure\MediaServices\Models\JobTemplate
  351. */
  352. public function getJobTemplate($jobTemplate);
  353. /**
  354. * Get list of Job Templates.
  355. *
  356. * @return array
  357. */
  358. public function getJobTemplateList();
  359. /**
  360. * Get task templates for job template.
  361. *
  362. * @param WindowsAzure\MediaServices\Models\JobTemplate|string $jobTemplate Job
  363. * template data or jobTemplate Id
  364. *
  365. * @return array
  366. */
  367. public function getJobTemplateTaskTemplateList($jobTemplate);
  368. /**
  369. * Delete job template
  370. *
  371. * @param WindowsAzure\MediaServices\Models\JobTemplate|string $jobTemplate Job
  372. * template data or job template Id
  373. *
  374. * @return none
  375. */
  376. public function deleteJobTemplate($jobTemplate);
  377. /**
  378. * Get list of task templates.
  379. *
  380. * @return array
  381. */
  382. public function getTaskTemplateList();
  383. /**
  384. * Get list of all media processors asset files
  385. *
  386. * @return array
  387. */
  388. public function getMediaProcessors();
  389. /**
  390. * Get media processor by name with latest version
  391. *
  392. * @param string $name Media processor name
  393. *
  394. * @return WindowsAzure\MediaServices\Models\JobTemplate\MediaProcessor
  395. */
  396. public function getLatestMediaProcessor($name);
  397. }