telestream_cloud 1.1.0 → 2.0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (306) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/README.md +16 -354
  4. data/flip/.gitignore +39 -0
  5. data/flip/.rspec +2 -0
  6. data/flip/.swagger-codegen-ignore +23 -0
  7. data/flip/.swagger-codegen/VERSION +1 -0
  8. data/flip/Gemfile +7 -0
  9. data/flip/README.md +130 -0
  10. data/flip/Rakefile +8 -0
  11. data/flip/docs/CanceledResponse.md +8 -0
  12. data/flip/docs/CloudNotificationSettings.md +11 -0
  13. data/flip/docs/CloudNotificationSettingsEvents.md +11 -0
  14. data/flip/docs/CopyProfileBody.md +9 -0
  15. data/flip/docs/CountResponse.md +8 -0
  16. data/flip/docs/CreateEncodingBody.md +10 -0
  17. data/flip/docs/CreateVideoBody.md +12 -0
  18. data/flip/docs/DeletedResponse.md +8 -0
  19. data/flip/docs/Encoding.md +38 -0
  20. data/flip/docs/EncodingSignedUrl.md +8 -0
  21. data/flip/docs/EncodingSignedUrls.md +8 -0
  22. data/flip/docs/Error.md +9 -0
  23. data/flip/docs/ExtraFile.md +10 -0
  24. data/flip/docs/Factory.md +25 -0
  25. data/flip/docs/FactoryBody.md +23 -0
  26. data/flip/docs/FactoryBodyStorageCredentialAttributes.md +11 -0
  27. data/flip/docs/FactorySync.md +8 -0
  28. data/flip/docs/FactorySyncBody.md +8 -0
  29. data/flip/docs/FlipApi.md +2179 -0
  30. data/flip/docs/PaginatedEncodingsCollection.md +11 -0
  31. data/flip/docs/PaginatedFactoryCollection.md +11 -0
  32. data/flip/docs/PaginatedProfilesCollection.md +11 -0
  33. data/flip/docs/PaginatedVideoCollection.md +11 -0
  34. data/flip/docs/PaginatedWorkflowsCollection.md +11 -0
  35. data/flip/docs/Profile.md +135 -0
  36. data/flip/docs/ProfileBody.md +137 -0
  37. data/flip/docs/ResubmitVideoBody.md +8 -0
  38. data/flip/docs/RetriedResponse.md +8 -0
  39. data/flip/docs/SignedVideoUrl.md +8 -0
  40. data/flip/docs/UpdateEncodingBody.md +9 -0
  41. data/flip/docs/UploadSession.md +13 -0
  42. data/flip/docs/Video.md +31 -0
  43. data/flip/docs/VideoMetadata.md +7 -0
  44. data/flip/docs/VideoUploadBody.md +24 -0
  45. data/flip/git_push.sh +55 -0
  46. data/flip/lib/telestream_cloud_flip.rb +79 -0
  47. data/flip/lib/telestream_cloud_flip/api/flip_api.rb +2385 -0
  48. data/flip/lib/telestream_cloud_flip/api_client.rb +389 -0
  49. data/flip/lib/telestream_cloud_flip/api_error.rb +38 -0
  50. data/flip/lib/telestream_cloud_flip/configuration.rb +209 -0
  51. data/flip/lib/telestream_cloud_flip/models/canceled_response.rb +189 -0
  52. data/flip/lib/telestream_cloud_flip/models/cloud_notification_settings.rb +237 -0
  53. data/flip/lib/telestream_cloud_flip/models/cloud_notification_settings_events.rb +239 -0
  54. data/flip/lib/telestream_cloud_flip/models/copy_profile_body.rb +209 -0
  55. data/flip/lib/telestream_cloud_flip/models/count_response.rb +189 -0
  56. data/flip/lib/telestream_cloud_flip/models/create_encoding_body.rb +214 -0
  57. data/flip/lib/telestream_cloud_flip/models/create_video_body.rb +231 -0
  58. data/flip/lib/telestream_cloud_flip/models/deleted_response.rb +189 -0
  59. data/flip/lib/telestream_cloud_flip/models/encoding.rb +486 -0
  60. data/flip/lib/telestream_cloud_flip/models/encoding_signed_url.rb +189 -0
  61. data/flip/lib/telestream_cloud_flip/models/encoding_signed_urls.rb +191 -0
  62. data/flip/lib/telestream_cloud_flip/models/error.rb +199 -0
  63. data/flip/lib/telestream_cloud_flip/models/extra_file.rb +221 -0
  64. data/flip/lib/telestream_cloud_flip/models/factory.rb +388 -0
  65. data/flip/lib/telestream_cloud_flip/models/factory_body.rb +374 -0
  66. data/flip/lib/telestream_cloud_flip/models/factory_body_storage_credential_attributes.rb +215 -0
  67. data/flip/lib/telestream_cloud_flip/models/factory_sync.rb +222 -0
  68. data/flip/lib/telestream_cloud_flip/models/factory_sync_body.rb +227 -0
  69. data/flip/lib/telestream_cloud_flip/models/paginated_encodings_collection.rb +240 -0
  70. data/flip/lib/telestream_cloud_flip/models/paginated_factory_collection.rb +220 -0
  71. data/flip/lib/telestream_cloud_flip/models/paginated_profiles_collection.rb +220 -0
  72. data/flip/lib/telestream_cloud_flip/models/paginated_video_collection.rb +220 -0
  73. data/flip/lib/telestream_cloud_flip/models/paginated_workflows_collection.rb +220 -0
  74. data/flip/lib/telestream_cloud_flip/models/profile.rb +1777 -0
  75. data/flip/lib/telestream_cloud_flip/models/profile_body.rb +1762 -0
  76. data/flip/lib/telestream_cloud_flip/models/resubmit_video_body.rb +189 -0
  77. data/flip/lib/telestream_cloud_flip/models/retried_response.rb +189 -0
  78. data/flip/lib/telestream_cloud_flip/models/signed_video_url.rb +189 -0
  79. data/flip/lib/telestream_cloud_flip/models/update_encoding_body.rb +199 -0
  80. data/flip/lib/telestream_cloud_flip/models/upload_session.rb +249 -0
  81. data/flip/lib/telestream_cloud_flip/models/video.rb +418 -0
  82. data/flip/lib/telestream_cloud_flip/models/video_metadata.rb +179 -0
  83. data/flip/lib/telestream_cloud_flip/models/video_upload_body.rb +362 -0
  84. data/flip/lib/telestream_cloud_flip/uploader.rb +244 -0
  85. data/flip/lib/telestream_cloud_flip/version.rb +18 -0
  86. data/flip/spec/api/flip_api_spec.rb +550 -0
  87. data/flip/spec/api_client_spec.rb +226 -0
  88. data/flip/spec/configuration_spec.rb +42 -0
  89. data/flip/spec/models/canceled_response_spec.rb +42 -0
  90. data/flip/spec/models/cloud_notification_settings_events_spec.rb +60 -0
  91. data/flip/spec/models/cloud_notification_settings_spec.rb +60 -0
  92. data/flip/spec/models/copy_profile_body_spec.rb +48 -0
  93. data/flip/spec/models/count_response_spec.rb +42 -0
  94. data/flip/spec/models/create_encoding_body_spec.rb +54 -0
  95. data/flip/spec/models/create_video_body_spec.rb +66 -0
  96. data/flip/spec/models/deleted_response_spec.rb +42 -0
  97. data/flip/spec/models/encoding_signed_url_spec.rb +42 -0
  98. data/flip/spec/models/encoding_signed_urls_spec.rb +42 -0
  99. data/flip/spec/models/encoding_spec.rb +222 -0
  100. data/flip/spec/models/error_spec.rb +48 -0
  101. data/flip/spec/models/extra_file_spec.rb +54 -0
  102. data/flip/spec/models/factory_body_spec.rb +136 -0
  103. data/flip/spec/models/factory_body_storage_credential_attributes_spec.rb +60 -0
  104. data/flip/spec/models/factory_spec.rb +148 -0
  105. data/flip/spec/models/factory_sync_body_spec.rb +46 -0
  106. data/flip/spec/models/factory_sync_spec.rb +46 -0
  107. data/flip/spec/models/paginated_encodings_collection_spec.rb +60 -0
  108. data/flip/spec/models/paginated_factory_collection_spec.rb +60 -0
  109. data/flip/spec/models/paginated_profiles_collection_spec.rb +60 -0
  110. data/flip/spec/models/paginated_video_collection_spec.rb +60 -0
  111. data/flip/spec/models/paginated_workflows_collection_spec.rb +60 -0
  112. data/flip/spec/models/profile_body_spec.rb +916 -0
  113. data/flip/spec/models/profile_spec.rb +916 -0
  114. data/flip/spec/models/resubmit_video_body_spec.rb +42 -0
  115. data/flip/spec/models/retried_response_spec.rb +42 -0
  116. data/flip/spec/models/signed_video_url_spec.rb +42 -0
  117. data/flip/spec/models/update_encoding_body_spec.rb +48 -0
  118. data/flip/spec/models/upload_session_spec.rb +72 -0
  119. data/flip/spec/models/video_metadata_spec.rb +36 -0
  120. data/flip/spec/models/video_spec.rb +180 -0
  121. data/flip/spec/models/video_upload_body_spec.rb +138 -0
  122. data/flip/spec/spec_helper.rb +111 -0
  123. data/flip/telestream_cloud_flip.gemspec +47 -0
  124. data/lib/telestream_cloud.rb +0 -31
  125. data/lib/telestream_cloud/flip.rb +1 -9
  126. data/lib/telestream_cloud/qc.rb +1 -0
  127. data/lib/telestream_cloud/tts.rb +1 -0
  128. data/lib/telestream_cloud/version.rb +1 -1
  129. data/qc/.gitignore +39 -0
  130. data/qc/.rspec +2 -0
  131. data/qc/.swagger-codegen-ignore +23 -0
  132. data/qc/.swagger-codegen/VERSION +1 -0
  133. data/qc/Gemfile +7 -0
  134. data/qc/README.md +58 -0
  135. data/qc/Rakefile +8 -0
  136. data/qc/docs/Alert.md +13 -0
  137. data/qc/docs/AudioStream.md +13 -0
  138. data/qc/docs/Container.md +9 -0
  139. data/qc/docs/Data.md +10 -0
  140. data/qc/docs/Data1.md +9 -0
  141. data/qc/docs/ExtraFile.md +10 -0
  142. data/qc/docs/Job.md +12 -0
  143. data/qc/docs/JobData.md +9 -0
  144. data/qc/docs/JobDetails.md +9 -0
  145. data/qc/docs/JobDetailsResult.md +8 -0
  146. data/qc/docs/JobsCollection.md +12 -0
  147. data/qc/docs/Media.md +10 -0
  148. data/qc/docs/Options.md +7 -0
  149. data/qc/docs/Project.md +12 -0
  150. data/qc/docs/Proxy.md +12 -0
  151. data/qc/docs/QcApi.md +719 -0
  152. data/qc/docs/UploadSession.md +13 -0
  153. data/qc/docs/VideoStream.md +13 -0
  154. data/qc/docs/VideoUploadBody.md +12 -0
  155. data/qc/git_push.sh +55 -0
  156. data/qc/lib/telestream_cloud_qc.rb +64 -0
  157. data/qc/lib/telestream_cloud_qc/api/qc_api.rb +781 -0
  158. data/qc/lib/telestream_cloud_qc/api_client.rb +389 -0
  159. data/qc/lib/telestream_cloud_qc/api_error.rb +38 -0
  160. data/qc/lib/telestream_cloud_qc/configuration.rb +209 -0
  161. data/qc/lib/telestream_cloud_qc/models/alert.rb +236 -0
  162. data/qc/lib/telestream_cloud_qc/models/audio_stream.rb +238 -0
  163. data/qc/lib/telestream_cloud_qc/models/container.rb +198 -0
  164. data/qc/lib/telestream_cloud_qc/models/data.rb +208 -0
  165. data/qc/lib/telestream_cloud_qc/models/data_1.rb +197 -0
  166. data/qc/lib/telestream_cloud_qc/models/extra_file.rb +221 -0
  167. data/qc/lib/telestream_cloud_qc/models/job.rb +269 -0
  168. data/qc/lib/telestream_cloud_qc/models/job_data.rb +197 -0
  169. data/qc/lib/telestream_cloud_qc/models/job_details.rb +199 -0
  170. data/qc/lib/telestream_cloud_qc/models/job_details_result.rb +190 -0
  171. data/qc/lib/telestream_cloud_qc/models/jobs_collection.rb +230 -0
  172. data/qc/lib/telestream_cloud_qc/models/media.rb +210 -0
  173. data/qc/lib/telestream_cloud_qc/models/options.rb +179 -0
  174. data/qc/lib/telestream_cloud_qc/models/project.rb +262 -0
  175. data/qc/lib/telestream_cloud_qc/models/proxy.rb +224 -0
  176. data/qc/lib/telestream_cloud_qc/models/upload_session.rb +249 -0
  177. data/qc/lib/telestream_cloud_qc/models/video_stream.rb +235 -0
  178. data/qc/lib/telestream_cloud_qc/models/video_upload_body.rb +242 -0
  179. data/qc/lib/telestream_cloud_qc/uploader.rb +244 -0
  180. data/qc/lib/telestream_cloud_qc/version.rb +18 -0
  181. data/qc/spec/api/qc_api_spec.rb +202 -0
  182. data/qc/spec/api_client_spec.rb +226 -0
  183. data/qc/spec/configuration_spec.rb +42 -0
  184. data/qc/spec/models/alert_spec.rb +72 -0
  185. data/qc/spec/models/audio_stream_spec.rb +72 -0
  186. data/qc/spec/models/container_spec.rb +48 -0
  187. data/qc/spec/models/data_1_spec.rb +48 -0
  188. data/qc/spec/models/data_spec.rb +54 -0
  189. data/qc/spec/models/extra_file_spec.rb +54 -0
  190. data/qc/spec/models/job_data_spec.rb +48 -0
  191. data/qc/spec/models/job_details_result_spec.rb +42 -0
  192. data/qc/spec/models/job_details_spec.rb +48 -0
  193. data/qc/spec/models/job_spec.rb +74 -0
  194. data/qc/spec/models/jobs_collection_spec.rb +66 -0
  195. data/qc/spec/models/media_spec.rb +54 -0
  196. data/qc/spec/models/options_spec.rb +36 -0
  197. data/qc/spec/models/project_spec.rb +70 -0
  198. data/qc/spec/models/proxy_spec.rb +66 -0
  199. data/qc/spec/models/upload_session_spec.rb +72 -0
  200. data/qc/spec/models/video_stream_spec.rb +72 -0
  201. data/qc/spec/models/video_upload_body_spec.rb +66 -0
  202. data/qc/spec/spec_helper.rb +111 -0
  203. data/qc/telestream_cloud_qc.gemspec +47 -0
  204. data/telestream_cloud.gemspec +7 -12
  205. data/tts/.gitignore +39 -0
  206. data/tts/.rspec +2 -0
  207. data/tts/.swagger-codegen-ignore +23 -0
  208. data/tts/.swagger-codegen/VERSION +1 -0
  209. data/tts/Gemfile +7 -0
  210. data/tts/README.md +92 -0
  211. data/tts/Rakefile +8 -0
  212. data/tts/docs/CorporaCollection.md +8 -0
  213. data/tts/docs/Corpus.md +9 -0
  214. data/tts/docs/ErrorResponse.md +7 -0
  215. data/tts/docs/ExtraFile.md +10 -0
  216. data/tts/docs/Fragment.md +10 -0
  217. data/tts/docs/FragmentVariant.md +9 -0
  218. data/tts/docs/Job.md +23 -0
  219. data/tts/docs/JobResult.md +8 -0
  220. data/tts/docs/JobsCollection.md +12 -0
  221. data/tts/docs/Project.md +18 -0
  222. data/tts/docs/ProjectsCollection.md +12 -0
  223. data/tts/docs/Result.md +12 -0
  224. data/tts/docs/TtsApi.md +902 -0
  225. data/tts/docs/UploadSession.md +13 -0
  226. data/tts/docs/VideoUploadBody.md +12 -0
  227. data/tts/git_push.sh +55 -0
  228. data/tts/lib/telestream_cloud_tts.rb +60 -0
  229. data/tts/lib/telestream_cloud_tts/api/tts_api.rb +946 -0
  230. data/tts/lib/telestream_cloud_tts/api_client.rb +389 -0
  231. data/tts/lib/telestream_cloud_tts/api_error.rb +38 -0
  232. data/tts/lib/telestream_cloud_tts/configuration.rb +209 -0
  233. data/tts/lib/telestream_cloud_tts/models/corpora_collection.rb +191 -0
  234. data/tts/lib/telestream_cloud_tts/models/corpus.rb +199 -0
  235. data/tts/lib/telestream_cloud_tts/models/error_response.rb +179 -0
  236. data/tts/lib/telestream_cloud_tts/models/extra_file.rb +221 -0
  237. data/tts/lib/telestream_cloud_tts/models/fragment.rb +211 -0
  238. data/tts/lib/telestream_cloud_tts/models/fragment_variant.rb +199 -0
  239. data/tts/lib/telestream_cloud_tts/models/job.rb +372 -0
  240. data/tts/lib/telestream_cloud_tts/models/job_result.rb +191 -0
  241. data/tts/lib/telestream_cloud_tts/models/jobs_collection.rb +230 -0
  242. data/tts/lib/telestream_cloud_tts/models/project.rb +322 -0
  243. data/tts/lib/telestream_cloud_tts/models/projects_collection.rb +230 -0
  244. data/tts/lib/telestream_cloud_tts/models/result.rb +230 -0
  245. data/tts/lib/telestream_cloud_tts/models/upload_session.rb +249 -0
  246. data/tts/lib/telestream_cloud_tts/models/video_upload_body.rb +241 -0
  247. data/tts/lib/telestream_cloud_tts/uploader.rb +244 -0
  248. data/tts/lib/telestream_cloud_tts/version.rb +18 -0
  249. data/tts/spec/api/tts_api_spec.rb +236 -0
  250. data/tts/spec/api_client_spec.rb +226 -0
  251. data/tts/spec/configuration_spec.rb +42 -0
  252. data/tts/spec/models/corpora_collection_spec.rb +42 -0
  253. data/tts/spec/models/corpus_spec.rb +48 -0
  254. data/tts/spec/models/error_response_spec.rb +36 -0
  255. data/tts/spec/models/extra_file_spec.rb +54 -0
  256. data/tts/spec/models/fragment_spec.rb +54 -0
  257. data/tts/spec/models/fragment_variant_spec.rb +48 -0
  258. data/tts/spec/models/job_result_spec.rb +42 -0
  259. data/tts/spec/models/job_spec.rb +136 -0
  260. data/tts/spec/models/jobs_collection_spec.rb +66 -0
  261. data/tts/spec/models/project_spec.rb +106 -0
  262. data/tts/spec/models/projects_collection_spec.rb +66 -0
  263. data/tts/spec/models/result_spec.rb +66 -0
  264. data/tts/spec/models/upload_session_spec.rb +72 -0
  265. data/tts/spec/models/video_upload_body_spec.rb +66 -0
  266. data/tts/spec/spec_helper.rb +111 -0
  267. data/tts/telestream_cloud_tts.gemspec +47 -0
  268. metadata +281 -123
  269. data/Gemfile +0 -2
  270. data/lib/telestream_cloud/api_authentication.rb +0 -66
  271. data/lib/telestream_cloud/base.rb +0 -111
  272. data/lib/telestream_cloud/config.rb +0 -87
  273. data/lib/telestream_cloud/connection.rb +0 -101
  274. data/lib/telestream_cloud/errors.rb +0 -17
  275. data/lib/telestream_cloud/faraday.rb +0 -84
  276. data/lib/telestream_cloud/modules/associations.rb +0 -55
  277. data/lib/telestream_cloud/modules/builders.rb +0 -45
  278. data/lib/telestream_cloud/modules/destroyers.rb +0 -25
  279. data/lib/telestream_cloud/modules/factory_connection.rb +0 -7
  280. data/lib/telestream_cloud/modules/finders.rb +0 -68
  281. data/lib/telestream_cloud/modules/router.rb +0 -62
  282. data/lib/telestream_cloud/modules/updatable.rb +0 -31
  283. data/lib/telestream_cloud/modules/video_state.rb +0 -16
  284. data/lib/telestream_cloud/parallel_uploader.rb +0 -52
  285. data/lib/telestream_cloud/proxies/encoding_scope.rb +0 -56
  286. data/lib/telestream_cloud/proxies/profile_scope.rb +0 -7
  287. data/lib/telestream_cloud/proxies/proxy.rb +0 -27
  288. data/lib/telestream_cloud/proxies/scope.rb +0 -94
  289. data/lib/telestream_cloud/proxies/video_scope.rb +0 -28
  290. data/lib/telestream_cloud/resources/encoding.rb +0 -47
  291. data/lib/telestream_cloud/resources/factory.rb +0 -72
  292. data/lib/telestream_cloud/resources/profile.rb +0 -22
  293. data/lib/telestream_cloud/resources/resource.rb +0 -48
  294. data/lib/telestream_cloud/resources/video.rb +0 -39
  295. data/lib/telestream_cloud/telestream_cloud.rb +0 -69
  296. data/lib/telestream_cloud/upload_session.rb +0 -40
  297. data/lib/telestream_cloud/uploader.rb +0 -123
  298. data/lib/telestream_cloud/uploader/file_reader.rb +0 -27
  299. data/spec/cloud_spec.rb +0 -132
  300. data/spec/encoding_spec.rb +0 -260
  301. data/spec/heroku_spec.rb +0 -32
  302. data/spec/panda_spec.rb +0 -206
  303. data/spec/profile_spec.rb +0 -117
  304. data/spec/spec_helper.rb +0 -18
  305. data/spec/uploader_spec.rb +0 -143
  306. data/spec/video_spec.rb +0 -399
@@ -0,0 +1,13 @@
1
+ # TelestreamCloud::Tts::UploadSession
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | An unique identifier of the UploadSession. |
7
+ **location** | **String** | An URL to which chunks of the uploaded file should be sent |
8
+ **parts** | **Integer** | A number of chunks that are expected by the upstream. | [optional]
9
+ **part_size** | **Integer** | An expected size of uploaded chunks. | [optional]
10
+ **max_connections** | **Integer** | A maximum number of concurrent connections. | [optional]
11
+ **extra_files** | **Object** | An object containing additional files uploaded using the session. | [optional]
12
+
13
+
@@ -0,0 +1,12 @@
1
+ # TelestreamCloud::Tts::VideoUploadBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **file_size** | **Integer** | Size of the file that will be uploaded in `bytes`. |
7
+ **file_name** | **String** | Name of the file that will be uploaded. |
8
+ **profiles** | **String** | | [optional]
9
+ **multi_chunk** | **BOOLEAN** | | [optional] [default to true]
10
+ **extra_files** | [**Array<ExtraFile>**](ExtraFile.md) | A list of names of additional files that will be uploaded. | [optional]
11
+
12
+
@@ -0,0 +1,55 @@
1
+ #!/bin/sh
2
+ #
3
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
+ #
5
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
+ #
7
+ # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
8
+
9
+ git_user_id=$1
10
+ git_repo_id=$2
11
+ release_note=$3
12
+
13
+ if [ "$git_user_id" = "" ]; then
14
+ git_user_id="Telestream"
15
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
+ fi
17
+
18
+ if [ "$git_repo_id" = "" ]; then
19
+ git_repo_id="telestream-cloud-ruby-sdk"
20
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
+ fi
22
+
23
+ if [ "$release_note" = "" ]; then
24
+ release_note="Minor update"
25
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
+ fi
27
+
28
+ # Initialize the local directory as a Git repository
29
+ git init
30
+
31
+ # Adds the files in the local repository and stages them for commit.
32
+ git add .
33
+
34
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
+ git commit -m "$release_note"
36
+
37
+ # Sets the new remote
38
+ git_remote=`git remote`
39
+ if [ "$git_remote" = "" ]; then # git remote not defined
40
+
41
+ if [ "$GIT_TOKEN" = "" ]; then
42
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
+ else
45
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
+ fi
47
+
48
+ fi
49
+
50
+ git pull origin master
51
+
52
+ # Pushes (Forces) the changes in the local repository up to the remote repository
53
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
+ git push origin master 2>&1 | grep -v 'To https'
55
+
@@ -0,0 +1,60 @@
1
+ module TelestreamCloud
2
+ end
3
+
4
+ =begin
5
+ #Tts API
6
+
7
+ #Description
8
+
9
+ OpenAPI spec version: 2.0.0
10
+ Contact: cloudsupport@telestream.net
11
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
12
+ Swagger Codegen version: 2.3.0
13
+
14
+ =end
15
+
16
+ # Common files
17
+ require 'telestream_cloud_tts/api_client'
18
+ require 'telestream_cloud_tts/api_error'
19
+ require 'telestream_cloud_tts/version'
20
+ require 'telestream_cloud_tts/configuration'
21
+
22
+ # Models
23
+ require 'telestream_cloud_tts/models/corpora_collection'
24
+ require 'telestream_cloud_tts/models/corpus'
25
+ require 'telestream_cloud_tts/models/error_response'
26
+ require 'telestream_cloud_tts/models/extra_file'
27
+ require 'telestream_cloud_tts/models/fragment'
28
+ require 'telestream_cloud_tts/models/fragment_variant'
29
+ require 'telestream_cloud_tts/models/job'
30
+ require 'telestream_cloud_tts/models/job_result'
31
+ require 'telestream_cloud_tts/models/jobs_collection'
32
+ require 'telestream_cloud_tts/models/project'
33
+ require 'telestream_cloud_tts/models/projects_collection'
34
+ require 'telestream_cloud_tts/models/result'
35
+ require 'telestream_cloud_tts/models/upload_session'
36
+ require 'telestream_cloud_tts/models/video_upload_body'
37
+
38
+ # APIs
39
+ require 'telestream_cloud_tts/api/tts_api'
40
+
41
+ # Uploader
42
+ require 'telestream_cloud_tts/uploader'
43
+
44
+ module TelestreamCloud::Tts
45
+ class << self
46
+ # Customize default settings for the SDK using block.
47
+ # TelestreamCloud::Tts.configure do |config|
48
+ # config.username = "xxx"
49
+ # config.password = "xxx"
50
+ # end
51
+ # If no block given, return the default Configuration object.
52
+ def configure
53
+ if block_given?
54
+ yield(Configuration.default)
55
+ else
56
+ Configuration.default
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,946 @@
1
+ =begin
2
+ #Tts API
3
+
4
+ #Description
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: cloudsupport@telestream.net
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.0
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module TelestreamCloud::Tts
16
+ class TtsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Returns a collection of Corpora
24
+ # Returns a collection of Corpora
25
+ # @param project_id ID of the Project
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [CorporaCollection]
28
+ def corpora(project_id, opts = {})
29
+ data, _status_code, _headers = corpora_with_http_info(project_id, opts)
30
+ return data
31
+ end
32
+
33
+ # Returns a collection of Corpora
34
+ # Returns a collection of Corpora
35
+ # @param project_id ID of the Project
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(CorporaCollection, Fixnum, Hash)>] CorporaCollection data, response status code and response headers
38
+ def corpora_with_http_info(project_id, opts = {})
39
+ if @api_client.config.debugging
40
+ @api_client.config.logger.debug "Calling API: TtsApi.corpora ..."
41
+ end
42
+ # verify the required parameter 'project_id' is set
43
+ if @api_client.config.client_side_validation && project_id.nil?
44
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling TtsApi.corpora"
45
+ end
46
+ # resource path
47
+ local_var_path = "/projects/{projectID}/corpora".sub('{' + 'projectID' + '}', project_id.to_s)
48
+
49
+ # query parameters
50
+ query_params = {}
51
+
52
+ # header parameters
53
+ header_params = {}
54
+ # HTTP header 'Accept' (if needed)
55
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
56
+ # HTTP header 'Content-Type'
57
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
58
+
59
+ # form parameters
60
+ form_params = {}
61
+
62
+ # http body (model)
63
+ post_body = nil
64
+ auth_names = ['apiKey']
65
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
66
+ :header_params => header_params,
67
+ :query_params => query_params,
68
+ :form_params => form_params,
69
+ :body => post_body,
70
+ :auth_names => auth_names,
71
+ :return_type => 'CorporaCollection')
72
+ if @api_client.config.debugging
73
+ @api_client.config.logger.debug "API called: TtsApi#corpora\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
74
+ end
75
+ return data, status_code, headers
76
+ end
77
+
78
+ # Returns the Corpus
79
+ # Returns the Corpus
80
+ # @param project_id ID of the Project
81
+ # @param name Corpus name
82
+ # @param [Hash] opts the optional parameters
83
+ # @return [Corpus]
84
+ def corpus(project_id, name, opts = {})
85
+ data, _status_code, _headers = corpus_with_http_info(project_id, name, opts)
86
+ return data
87
+ end
88
+
89
+ # Returns the Corpus
90
+ # Returns the Corpus
91
+ # @param project_id ID of the Project
92
+ # @param name Corpus name
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [Array<(Corpus, Fixnum, Hash)>] Corpus data, response status code and response headers
95
+ def corpus_with_http_info(project_id, name, opts = {})
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug "Calling API: TtsApi.corpus ..."
98
+ end
99
+ # verify the required parameter 'project_id' is set
100
+ if @api_client.config.client_side_validation && project_id.nil?
101
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling TtsApi.corpus"
102
+ end
103
+ # verify the required parameter 'name' is set
104
+ if @api_client.config.client_side_validation && name.nil?
105
+ fail ArgumentError, "Missing the required parameter 'name' when calling TtsApi.corpus"
106
+ end
107
+ # resource path
108
+ local_var_path = "/projects/{projectID}/corpora/{name}".sub('{' + 'projectID' + '}', project_id.to_s).sub('{' + 'name' + '}', name.to_s)
109
+
110
+ # query parameters
111
+ query_params = {}
112
+
113
+ # header parameters
114
+ header_params = {}
115
+ # HTTP header 'Accept' (if needed)
116
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
117
+ # HTTP header 'Content-Type'
118
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
119
+
120
+ # form parameters
121
+ form_params = {}
122
+
123
+ # http body (model)
124
+ post_body = nil
125
+ auth_names = ['apiKey']
126
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
127
+ :header_params => header_params,
128
+ :query_params => query_params,
129
+ :form_params => form_params,
130
+ :body => post_body,
131
+ :auth_names => auth_names,
132
+ :return_type => 'Corpus')
133
+ if @api_client.config.debugging
134
+ @api_client.config.logger.debug "API called: TtsApi#corpus\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
135
+ end
136
+ return data, status_code, headers
137
+ end
138
+
139
+ # Creates a new Corpus
140
+ # Creates a new Corpus
141
+ # @param project_id ID of the Project
142
+ # @param name Corpus name
143
+ # @param body
144
+ # @param [Hash] opts the optional parameters
145
+ # @return [nil]
146
+ def create_corpus(project_id, name, body, opts = {})
147
+ create_corpus_with_http_info(project_id, name, body, opts)
148
+ return nil
149
+ end
150
+
151
+ # Creates a new Corpus
152
+ # Creates a new Corpus
153
+ # @param project_id ID of the Project
154
+ # @param name Corpus name
155
+ # @param body
156
+ # @param [Hash] opts the optional parameters
157
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
158
+ def create_corpus_with_http_info(project_id, name, body, opts = {})
159
+ if @api_client.config.debugging
160
+ @api_client.config.logger.debug "Calling API: TtsApi.create_corpus ..."
161
+ end
162
+ # verify the required parameter 'project_id' is set
163
+ if @api_client.config.client_side_validation && project_id.nil?
164
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling TtsApi.create_corpus"
165
+ end
166
+ # verify the required parameter 'name' is set
167
+ if @api_client.config.client_side_validation && name.nil?
168
+ fail ArgumentError, "Missing the required parameter 'name' when calling TtsApi.create_corpus"
169
+ end
170
+ # verify the required parameter 'body' is set
171
+ if @api_client.config.client_side_validation && body.nil?
172
+ fail ArgumentError, "Missing the required parameter 'body' when calling TtsApi.create_corpus"
173
+ end
174
+ # resource path
175
+ local_var_path = "/projects/{projectID}/corpora/{name}".sub('{' + 'projectID' + '}', project_id.to_s).sub('{' + 'name' + '}', name.to_s)
176
+
177
+ # query parameters
178
+ query_params = {}
179
+
180
+ # header parameters
181
+ header_params = {}
182
+ # HTTP header 'Accept' (if needed)
183
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
184
+ # HTTP header 'Content-Type'
185
+ header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
186
+
187
+ # form parameters
188
+ form_params = {}
189
+
190
+ # http body (model)
191
+ post_body = @api_client.object_to_http_body(body)
192
+ auth_names = ['apiKey']
193
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
194
+ :header_params => header_params,
195
+ :query_params => query_params,
196
+ :form_params => form_params,
197
+ :body => post_body,
198
+ :auth_names => auth_names)
199
+ if @api_client.config.debugging
200
+ @api_client.config.logger.debug "API called: TtsApi#create_corpus\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
201
+ end
202
+ return data, status_code, headers
203
+ end
204
+
205
+ # Creates a new Job
206
+ # Creates a new Job
207
+ # @param project_id ID of the Project
208
+ # @param job
209
+ # @param [Hash] opts the optional parameters
210
+ # @return [Job]
211
+ def create_job(project_id, job, opts = {})
212
+ data, _status_code, _headers = create_job_with_http_info(project_id, job, opts)
213
+ return data
214
+ end
215
+
216
+ # Creates a new Job
217
+ # Creates a new Job
218
+ # @param project_id ID of the Project
219
+ # @param job
220
+ # @param [Hash] opts the optional parameters
221
+ # @return [Array<(Job, Fixnum, Hash)>] Job data, response status code and response headers
222
+ def create_job_with_http_info(project_id, job, opts = {})
223
+ if @api_client.config.debugging
224
+ @api_client.config.logger.debug "Calling API: TtsApi.create_job ..."
225
+ end
226
+ # verify the required parameter 'project_id' is set
227
+ if @api_client.config.client_side_validation && project_id.nil?
228
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling TtsApi.create_job"
229
+ end
230
+ # verify the required parameter 'job' is set
231
+ if @api_client.config.client_side_validation && job.nil?
232
+ fail ArgumentError, "Missing the required parameter 'job' when calling TtsApi.create_job"
233
+ end
234
+ # resource path
235
+ local_var_path = "/projects/{projectID}/jobs".sub('{' + 'projectID' + '}', project_id.to_s)
236
+
237
+ # query parameters
238
+ query_params = {}
239
+
240
+ # header parameters
241
+ header_params = {}
242
+ # HTTP header 'Accept' (if needed)
243
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
244
+ # HTTP header 'Content-Type'
245
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
246
+
247
+ # form parameters
248
+ form_params = {}
249
+
250
+ # http body (model)
251
+ post_body = @api_client.object_to_http_body(job)
252
+ auth_names = ['apiKey']
253
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
254
+ :header_params => header_params,
255
+ :query_params => query_params,
256
+ :form_params => form_params,
257
+ :body => post_body,
258
+ :auth_names => auth_names,
259
+ :return_type => 'Job')
260
+ if @api_client.config.debugging
261
+ @api_client.config.logger.debug "API called: TtsApi#create_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
262
+ end
263
+ return data, status_code, headers
264
+ end
265
+
266
+ # Creates a new Project
267
+ # Creates a new Project
268
+ # @param project
269
+ # @param [Hash] opts the optional parameters
270
+ # @return [Project]
271
+ def create_project(project, opts = {})
272
+ data, _status_code, _headers = create_project_with_http_info(project, opts)
273
+ return data
274
+ end
275
+
276
+ # Creates a new Project
277
+ # Creates a new Project
278
+ # @param project
279
+ # @param [Hash] opts the optional parameters
280
+ # @return [Array<(Project, Fixnum, Hash)>] Project data, response status code and response headers
281
+ def create_project_with_http_info(project, opts = {})
282
+ if @api_client.config.debugging
283
+ @api_client.config.logger.debug "Calling API: TtsApi.create_project ..."
284
+ end
285
+ # verify the required parameter 'project' is set
286
+ if @api_client.config.client_side_validation && project.nil?
287
+ fail ArgumentError, "Missing the required parameter 'project' when calling TtsApi.create_project"
288
+ end
289
+ # resource path
290
+ local_var_path = "/projects"
291
+
292
+ # query parameters
293
+ query_params = {}
294
+
295
+ # header parameters
296
+ header_params = {}
297
+ # HTTP header 'Accept' (if needed)
298
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
299
+ # HTTP header 'Content-Type'
300
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
301
+
302
+ # form parameters
303
+ form_params = {}
304
+
305
+ # http body (model)
306
+ post_body = @api_client.object_to_http_body(project)
307
+ auth_names = ['apiKey']
308
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
309
+ :header_params => header_params,
310
+ :query_params => query_params,
311
+ :form_params => form_params,
312
+ :body => post_body,
313
+ :auth_names => auth_names,
314
+ :return_type => 'Project')
315
+ if @api_client.config.debugging
316
+ @api_client.config.logger.debug "API called: TtsApi#create_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
317
+ end
318
+ return data, status_code, headers
319
+ end
320
+
321
+ # Creates a new Corpus
322
+ # Creates a new Corpus
323
+ # @param project_id ID of the Project
324
+ # @param name Corpus name
325
+ # @param [Hash] opts the optional parameters
326
+ # @return [nil]
327
+ def delete_corpus(project_id, name, opts = {})
328
+ delete_corpus_with_http_info(project_id, name, opts)
329
+ return nil
330
+ end
331
+
332
+ # Creates a new Corpus
333
+ # Creates a new Corpus
334
+ # @param project_id ID of the Project
335
+ # @param name Corpus name
336
+ # @param [Hash] opts the optional parameters
337
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
338
+ def delete_corpus_with_http_info(project_id, name, opts = {})
339
+ if @api_client.config.debugging
340
+ @api_client.config.logger.debug "Calling API: TtsApi.delete_corpus ..."
341
+ end
342
+ # verify the required parameter 'project_id' is set
343
+ if @api_client.config.client_side_validation && project_id.nil?
344
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling TtsApi.delete_corpus"
345
+ end
346
+ # verify the required parameter 'name' is set
347
+ if @api_client.config.client_side_validation && name.nil?
348
+ fail ArgumentError, "Missing the required parameter 'name' when calling TtsApi.delete_corpus"
349
+ end
350
+ # resource path
351
+ local_var_path = "/projects/{projectID}/corpora/{name}".sub('{' + 'projectID' + '}', project_id.to_s).sub('{' + 'name' + '}', name.to_s)
352
+
353
+ # query parameters
354
+ query_params = {}
355
+
356
+ # header parameters
357
+ header_params = {}
358
+ # HTTP header 'Accept' (if needed)
359
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
360
+ # HTTP header 'Content-Type'
361
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
362
+
363
+ # form parameters
364
+ form_params = {}
365
+
366
+ # http body (model)
367
+ post_body = nil
368
+ auth_names = ['apiKey']
369
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
370
+ :header_params => header_params,
371
+ :query_params => query_params,
372
+ :form_params => form_params,
373
+ :body => post_body,
374
+ :auth_names => auth_names)
375
+ if @api_client.config.debugging
376
+ @api_client.config.logger.debug "API called: TtsApi#delete_corpus\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
377
+ end
378
+ return data, status_code, headers
379
+ end
380
+
381
+ # Deletes the Job
382
+ # Deletes the Job
383
+ # @param project_id ID of the Project
384
+ # @param job_id
385
+ # @param [Hash] opts the optional parameters
386
+ # @return [nil]
387
+ def delete_job(project_id, job_id, opts = {})
388
+ delete_job_with_http_info(project_id, job_id, opts)
389
+ return nil
390
+ end
391
+
392
+ # Deletes the Job
393
+ # Deletes the Job
394
+ # @param project_id ID of the Project
395
+ # @param job_id
396
+ # @param [Hash] opts the optional parameters
397
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
398
+ def delete_job_with_http_info(project_id, job_id, opts = {})
399
+ if @api_client.config.debugging
400
+ @api_client.config.logger.debug "Calling API: TtsApi.delete_job ..."
401
+ end
402
+ # verify the required parameter 'project_id' is set
403
+ if @api_client.config.client_side_validation && project_id.nil?
404
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling TtsApi.delete_job"
405
+ end
406
+ # verify the required parameter 'job_id' is set
407
+ if @api_client.config.client_side_validation && job_id.nil?
408
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling TtsApi.delete_job"
409
+ end
410
+ # resource path
411
+ local_var_path = "/projects/{projectID}/jobs/{id}".sub('{' + 'projectID' + '}', project_id.to_s).sub('{' + 'job_id' + '}', job_id.to_s)
412
+
413
+ # query parameters
414
+ query_params = {}
415
+
416
+ # header parameters
417
+ header_params = {}
418
+ # HTTP header 'Accept' (if needed)
419
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
420
+ # HTTP header 'Content-Type'
421
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
422
+
423
+ # form parameters
424
+ form_params = {}
425
+
426
+ # http body (model)
427
+ post_body = nil
428
+ auth_names = ['apiKey']
429
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
430
+ :header_params => header_params,
431
+ :query_params => query_params,
432
+ :form_params => form_params,
433
+ :body => post_body,
434
+ :auth_names => auth_names)
435
+ if @api_client.config.debugging
436
+ @api_client.config.logger.debug "API called: TtsApi#delete_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
437
+ end
438
+ return data, status_code, headers
439
+ end
440
+
441
+ # Deletes the Project
442
+ # Deletes the Project
443
+ # @param [Hash] opts the optional parameters
444
+ # @return [nil]
445
+ def delete_project(opts = {})
446
+ delete_project_with_http_info(opts)
447
+ return nil
448
+ end
449
+
450
+ # Deletes the Project
451
+ # Deletes the Project
452
+ # @param [Hash] opts the optional parameters
453
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
454
+ def delete_project_with_http_info(opts = {})
455
+ if @api_client.config.debugging
456
+ @api_client.config.logger.debug "Calling API: TtsApi.delete_project ..."
457
+ end
458
+ # resource path
459
+ local_var_path = "/projects/{projectID}"
460
+
461
+ # query parameters
462
+ query_params = {}
463
+
464
+ # header parameters
465
+ header_params = {}
466
+ # HTTP header 'Accept' (if needed)
467
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
468
+ # HTTP header 'Content-Type'
469
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
470
+
471
+ # form parameters
472
+ form_params = {}
473
+
474
+ # http body (model)
475
+ post_body = nil
476
+ auth_names = ['apiKey']
477
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
478
+ :header_params => header_params,
479
+ :query_params => query_params,
480
+ :form_params => form_params,
481
+ :body => post_body,
482
+ :auth_names => auth_names)
483
+ if @api_client.config.debugging
484
+ @api_client.config.logger.debug "API called: TtsApi#delete_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
485
+ end
486
+ return data, status_code, headers
487
+ end
488
+
489
+ # Returns the Job
490
+ # Returns the Job
491
+ # @param project_id ID of the Project
492
+ # @param job_id
493
+ # @param [Hash] opts the optional parameters
494
+ # @return [Job]
495
+ def job(project_id, job_id, opts = {})
496
+ data, _status_code, _headers = job_with_http_info(project_id, job_id, opts)
497
+ return data
498
+ end
499
+
500
+ # Returns the Job
501
+ # Returns the Job
502
+ # @param project_id ID of the Project
503
+ # @param job_id
504
+ # @param [Hash] opts the optional parameters
505
+ # @return [Array<(Job, Fixnum, Hash)>] Job data, response status code and response headers
506
+ def job_with_http_info(project_id, job_id, opts = {})
507
+ if @api_client.config.debugging
508
+ @api_client.config.logger.debug "Calling API: TtsApi.job ..."
509
+ end
510
+ # verify the required parameter 'project_id' is set
511
+ if @api_client.config.client_side_validation && project_id.nil?
512
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling TtsApi.job"
513
+ end
514
+ # verify the required parameter 'job_id' is set
515
+ if @api_client.config.client_side_validation && job_id.nil?
516
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling TtsApi.job"
517
+ end
518
+ # resource path
519
+ local_var_path = "/projects/{projectID}/jobs/{id}".sub('{' + 'projectID' + '}', project_id.to_s).sub('{' + 'job_id' + '}', job_id.to_s)
520
+
521
+ # query parameters
522
+ query_params = {}
523
+
524
+ # header parameters
525
+ header_params = {}
526
+ # HTTP header 'Accept' (if needed)
527
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
528
+ # HTTP header 'Content-Type'
529
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
530
+
531
+ # form parameters
532
+ form_params = {}
533
+
534
+ # http body (model)
535
+ post_body = nil
536
+ auth_names = ['apiKey']
537
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
538
+ :header_params => header_params,
539
+ :query_params => query_params,
540
+ :form_params => form_params,
541
+ :body => post_body,
542
+ :auth_names => auth_names,
543
+ :return_type => 'Job')
544
+ if @api_client.config.debugging
545
+ @api_client.config.logger.debug "API called: TtsApi#job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
546
+ end
547
+ return data, status_code, headers
548
+ end
549
+
550
+ # Returns the Job Result
551
+ # Returns the Job Result
552
+ # @param project_id ID of the Project
553
+ # @param job_id
554
+ # @param [Hash] opts the optional parameters
555
+ # @return [JobResult]
556
+ def job_result(project_id, job_id, opts = {})
557
+ data, _status_code, _headers = job_result_with_http_info(project_id, job_id, opts)
558
+ return data
559
+ end
560
+
561
+ # Returns the Job Result
562
+ # Returns the Job Result
563
+ # @param project_id ID of the Project
564
+ # @param job_id
565
+ # @param [Hash] opts the optional parameters
566
+ # @return [Array<(JobResult, Fixnum, Hash)>] JobResult data, response status code and response headers
567
+ def job_result_with_http_info(project_id, job_id, opts = {})
568
+ if @api_client.config.debugging
569
+ @api_client.config.logger.debug "Calling API: TtsApi.job_result ..."
570
+ end
571
+ # verify the required parameter 'project_id' is set
572
+ if @api_client.config.client_side_validation && project_id.nil?
573
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling TtsApi.job_result"
574
+ end
575
+ # verify the required parameter 'job_id' is set
576
+ if @api_client.config.client_side_validation && job_id.nil?
577
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling TtsApi.job_result"
578
+ end
579
+ # resource path
580
+ local_var_path = "/projects/{projectID}/jobs/{id}/result".sub('{' + 'projectID' + '}', project_id.to_s).sub('{' + 'job_id' + '}', job_id.to_s)
581
+
582
+ # query parameters
583
+ query_params = {}
584
+
585
+ # header parameters
586
+ header_params = {}
587
+ # HTTP header 'Accept' (if needed)
588
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
589
+ # HTTP header 'Content-Type'
590
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
591
+
592
+ # form parameters
593
+ form_params = {}
594
+
595
+ # http body (model)
596
+ post_body = nil
597
+ auth_names = ['apiKey']
598
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
599
+ :header_params => header_params,
600
+ :query_params => query_params,
601
+ :form_params => form_params,
602
+ :body => post_body,
603
+ :auth_names => auth_names,
604
+ :return_type => 'JobResult')
605
+ if @api_client.config.debugging
606
+ @api_client.config.logger.debug "API called: TtsApi#job_result\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
607
+ end
608
+ return data, status_code, headers
609
+ end
610
+
611
+ # Returns a collection of Jobs
612
+ # Returns a collection of Jobs
613
+ # @param project_id ID of the Project
614
+ # @param [Hash] opts the optional parameters
615
+ # @option opts [Integer] :page page number
616
+ # @option opts [Integer] :per_page number of records per page
617
+ # @return [JobsCollection]
618
+ def jobs(project_id, opts = {})
619
+ data, _status_code, _headers = jobs_with_http_info(project_id, opts)
620
+ return data
621
+ end
622
+
623
+ # Returns a collection of Jobs
624
+ # Returns a collection of Jobs
625
+ # @param project_id ID of the Project
626
+ # @param [Hash] opts the optional parameters
627
+ # @option opts [Integer] :page page number
628
+ # @option opts [Integer] :per_page number of records per page
629
+ # @return [Array<(JobsCollection, Fixnum, Hash)>] JobsCollection data, response status code and response headers
630
+ def jobs_with_http_info(project_id, opts = {})
631
+ if @api_client.config.debugging
632
+ @api_client.config.logger.debug "Calling API: TtsApi.jobs ..."
633
+ end
634
+ # verify the required parameter 'project_id' is set
635
+ if @api_client.config.client_side_validation && project_id.nil?
636
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling TtsApi.jobs"
637
+ end
638
+ # resource path
639
+ local_var_path = "/projects/{projectID}/jobs".sub('{' + 'projectID' + '}', project_id.to_s)
640
+
641
+ # query parameters
642
+ query_params = {}
643
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
644
+ query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
645
+
646
+ # header parameters
647
+ header_params = {}
648
+ # HTTP header 'Accept' (if needed)
649
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
650
+ # HTTP header 'Content-Type'
651
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
652
+
653
+ # form parameters
654
+ form_params = {}
655
+
656
+ # http body (model)
657
+ post_body = nil
658
+ auth_names = ['apiKey']
659
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
660
+ :header_params => header_params,
661
+ :query_params => query_params,
662
+ :form_params => form_params,
663
+ :body => post_body,
664
+ :auth_names => auth_names,
665
+ :return_type => 'JobsCollection')
666
+ if @api_client.config.debugging
667
+ @api_client.config.logger.debug "API called: TtsApi#jobs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
668
+ end
669
+ return data, status_code, headers
670
+ end
671
+
672
+ # Returns the Project
673
+ # Returns the Project
674
+ # @param project_id ID of the Project
675
+ # @param [Hash] opts the optional parameters
676
+ # @return [Project]
677
+ def project(project_id, opts = {})
678
+ data, _status_code, _headers = project_with_http_info(project_id, opts)
679
+ return data
680
+ end
681
+
682
+ # Returns the Project
683
+ # Returns the Project
684
+ # @param project_id ID of the Project
685
+ # @param [Hash] opts the optional parameters
686
+ # @return [Array<(Project, Fixnum, Hash)>] Project data, response status code and response headers
687
+ def project_with_http_info(project_id, opts = {})
688
+ if @api_client.config.debugging
689
+ @api_client.config.logger.debug "Calling API: TtsApi.project ..."
690
+ end
691
+ # verify the required parameter 'project_id' is set
692
+ if @api_client.config.client_side_validation && project_id.nil?
693
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling TtsApi.project"
694
+ end
695
+ # resource path
696
+ local_var_path = "/projects/{projectID}".sub('{' + 'projectID' + '}', project_id.to_s)
697
+
698
+ # query parameters
699
+ query_params = {}
700
+
701
+ # header parameters
702
+ header_params = {}
703
+ # HTTP header 'Accept' (if needed)
704
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
705
+ # HTTP header 'Content-Type'
706
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
707
+
708
+ # form parameters
709
+ form_params = {}
710
+
711
+ # http body (model)
712
+ post_body = nil
713
+ auth_names = ['apiKey']
714
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
715
+ :header_params => header_params,
716
+ :query_params => query_params,
717
+ :form_params => form_params,
718
+ :body => post_body,
719
+ :auth_names => auth_names,
720
+ :return_type => 'Project')
721
+ if @api_client.config.debugging
722
+ @api_client.config.logger.debug "API called: TtsApi#project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
723
+ end
724
+ return data, status_code, headers
725
+ end
726
+
727
+ # Returns a collection of Projects
728
+ # Returns a collection of Projects
729
+ # @param [Hash] opts the optional parameters
730
+ # @return [ProjectsCollection]
731
+ def projects(opts = {})
732
+ data, _status_code, _headers = projects_with_http_info(opts)
733
+ return data
734
+ end
735
+
736
+ # Returns a collection of Projects
737
+ # Returns a collection of Projects
738
+ # @param [Hash] opts the optional parameters
739
+ # @return [Array<(ProjectsCollection, Fixnum, Hash)>] ProjectsCollection data, response status code and response headers
740
+ def projects_with_http_info(opts = {})
741
+ if @api_client.config.debugging
742
+ @api_client.config.logger.debug "Calling API: TtsApi.projects ..."
743
+ end
744
+ # resource path
745
+ local_var_path = "/projects"
746
+
747
+ # query parameters
748
+ query_params = {}
749
+
750
+ # header parameters
751
+ header_params = {}
752
+ # HTTP header 'Accept' (if needed)
753
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
754
+ # HTTP header 'Content-Type'
755
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
756
+
757
+ # form parameters
758
+ form_params = {}
759
+
760
+ # http body (model)
761
+ post_body = nil
762
+ auth_names = ['apiKey']
763
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
764
+ :header_params => header_params,
765
+ :query_params => query_params,
766
+ :form_params => form_params,
767
+ :body => post_body,
768
+ :auth_names => auth_names,
769
+ :return_type => 'ProjectsCollection')
770
+ if @api_client.config.debugging
771
+ @api_client.config.logger.debug "API called: TtsApi#projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
772
+ end
773
+ return data, status_code, headers
774
+ end
775
+
776
+ # Queues training
777
+ # Queues training
778
+ # @param project_id ID of the Project
779
+ # @param [Hash] opts the optional parameters
780
+ # @return [nil]
781
+ def train_project(project_id, opts = {})
782
+ train_project_with_http_info(project_id, opts)
783
+ return nil
784
+ end
785
+
786
+ # Queues training
787
+ # Queues training
788
+ # @param project_id ID of the Project
789
+ # @param [Hash] opts the optional parameters
790
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
791
+ def train_project_with_http_info(project_id, opts = {})
792
+ if @api_client.config.debugging
793
+ @api_client.config.logger.debug "Calling API: TtsApi.train_project ..."
794
+ end
795
+ # verify the required parameter 'project_id' is set
796
+ if @api_client.config.client_side_validation && project_id.nil?
797
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling TtsApi.train_project"
798
+ end
799
+ # resource path
800
+ local_var_path = "/projects/{projectID}/train".sub('{' + 'projectID' + '}', project_id.to_s)
801
+
802
+ # query parameters
803
+ query_params = {}
804
+
805
+ # header parameters
806
+ header_params = {}
807
+ # HTTP header 'Accept' (if needed)
808
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
809
+ # HTTP header 'Content-Type'
810
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
811
+
812
+ # form parameters
813
+ form_params = {}
814
+
815
+ # http body (model)
816
+ post_body = nil
817
+ auth_names = ['apiKey']
818
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
819
+ :header_params => header_params,
820
+ :query_params => query_params,
821
+ :form_params => form_params,
822
+ :body => post_body,
823
+ :auth_names => auth_names)
824
+ if @api_client.config.debugging
825
+ @api_client.config.logger.debug "API called: TtsApi#train_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
826
+ end
827
+ return data, status_code, headers
828
+ end
829
+
830
+ # Updates an existing Project
831
+ # Updates an existing Project
832
+ # @param project
833
+ # @param [Hash] opts the optional parameters
834
+ # @return [Project]
835
+ def update_project(project, opts = {})
836
+ data, _status_code, _headers = update_project_with_http_info(project, opts)
837
+ return data
838
+ end
839
+
840
+ # Updates an existing Project
841
+ # Updates an existing Project
842
+ # @param project
843
+ # @param [Hash] opts the optional parameters
844
+ # @return [Array<(Project, Fixnum, Hash)>] Project data, response status code and response headers
845
+ def update_project_with_http_info(project, opts = {})
846
+ if @api_client.config.debugging
847
+ @api_client.config.logger.debug "Calling API: TtsApi.update_project ..."
848
+ end
849
+ # verify the required parameter 'project' is set
850
+ if @api_client.config.client_side_validation && project.nil?
851
+ fail ArgumentError, "Missing the required parameter 'project' when calling TtsApi.update_project"
852
+ end
853
+ # resource path
854
+ local_var_path = "/projects/{projectID}"
855
+
856
+ # query parameters
857
+ query_params = {}
858
+
859
+ # header parameters
860
+ header_params = {}
861
+ # HTTP header 'Accept' (if needed)
862
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
863
+ # HTTP header 'Content-Type'
864
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
865
+
866
+ # form parameters
867
+ form_params = {}
868
+
869
+ # http body (model)
870
+ post_body = @api_client.object_to_http_body(project)
871
+ auth_names = ['apiKey']
872
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
873
+ :header_params => header_params,
874
+ :query_params => query_params,
875
+ :form_params => form_params,
876
+ :body => post_body,
877
+ :auth_names => auth_names,
878
+ :return_type => 'Project')
879
+ if @api_client.config.debugging
880
+ @api_client.config.logger.debug "API called: TtsApi#update_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
881
+ end
882
+ return data, status_code, headers
883
+ end
884
+
885
+ # Creates an upload session
886
+ #
887
+ # @param project_id ID of the Project
888
+ # @param video_upload_body
889
+ # @param [Hash] opts the optional parameters
890
+ # @return [UploadSession]
891
+ def upload_video(project_id, video_upload_body, opts = {})
892
+ data, _status_code, _headers = upload_video_with_http_info(project_id, video_upload_body, opts)
893
+ return data
894
+ end
895
+
896
+ # Creates an upload session
897
+ #
898
+ # @param project_id ID of the Project
899
+ # @param video_upload_body
900
+ # @param [Hash] opts the optional parameters
901
+ # @return [Array<(UploadSession, Fixnum, Hash)>] UploadSession data, response status code and response headers
902
+ def upload_video_with_http_info(project_id, video_upload_body, opts = {})
903
+ if @api_client.config.debugging
904
+ @api_client.config.logger.debug "Calling API: TtsApi.upload_video ..."
905
+ end
906
+ # verify the required parameter 'project_id' is set
907
+ if @api_client.config.client_side_validation && project_id.nil?
908
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling TtsApi.upload_video"
909
+ end
910
+ # verify the required parameter 'video_upload_body' is set
911
+ if @api_client.config.client_side_validation && video_upload_body.nil?
912
+ fail ArgumentError, "Missing the required parameter 'video_upload_body' when calling TtsApi.upload_video"
913
+ end
914
+ # resource path
915
+ local_var_path = "/projects/{projectID}/jobs/upload".sub('{' + 'projectID' + '}', project_id.to_s)
916
+
917
+ # query parameters
918
+ query_params = {}
919
+
920
+ # header parameters
921
+ header_params = {}
922
+ # HTTP header 'Accept' (if needed)
923
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
924
+ # HTTP header 'Content-Type'
925
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
926
+
927
+ # form parameters
928
+ form_params = {}
929
+
930
+ # http body (model)
931
+ post_body = @api_client.object_to_http_body(video_upload_body)
932
+ auth_names = ['apiKey']
933
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
934
+ :header_params => header_params,
935
+ :query_params => query_params,
936
+ :form_params => form_params,
937
+ :body => post_body,
938
+ :auth_names => auth_names,
939
+ :return_type => 'UploadSession')
940
+ if @api_client.config.debugging
941
+ @api_client.config.logger.debug "API called: TtsApi#upload_video\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
942
+ end
943
+ return data, status_code, headers
944
+ end
945
+ end
946
+ end