telestream_cloud_flip 2.0.0

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 (118) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +130 -0
  4. data/Rakefile +8 -0
  5. data/docs/CanceledResponse.md +8 -0
  6. data/docs/CloudNotificationSettings.md +11 -0
  7. data/docs/CloudNotificationSettingsEvents.md +11 -0
  8. data/docs/CopyProfileBody.md +9 -0
  9. data/docs/CountResponse.md +8 -0
  10. data/docs/CreateEncodingBody.md +10 -0
  11. data/docs/CreateVideoBody.md +12 -0
  12. data/docs/DeletedResponse.md +8 -0
  13. data/docs/Encoding.md +38 -0
  14. data/docs/EncodingSignedUrl.md +8 -0
  15. data/docs/EncodingSignedUrls.md +8 -0
  16. data/docs/Error.md +9 -0
  17. data/docs/ExtraFile.md +10 -0
  18. data/docs/Factory.md +25 -0
  19. data/docs/FactoryBody.md +23 -0
  20. data/docs/FactoryBodyStorageCredentialAttributes.md +11 -0
  21. data/docs/FactorySync.md +8 -0
  22. data/docs/FactorySyncBody.md +8 -0
  23. data/docs/FlipApi.md +2179 -0
  24. data/docs/PaginatedEncodingsCollection.md +11 -0
  25. data/docs/PaginatedFactoryCollection.md +11 -0
  26. data/docs/PaginatedProfilesCollection.md +11 -0
  27. data/docs/PaginatedVideoCollection.md +11 -0
  28. data/docs/PaginatedWorkflowsCollection.md +11 -0
  29. data/docs/Profile.md +135 -0
  30. data/docs/ProfileBody.md +137 -0
  31. data/docs/ResubmitVideoBody.md +8 -0
  32. data/docs/RetriedResponse.md +8 -0
  33. data/docs/SignedVideoUrl.md +8 -0
  34. data/docs/UpdateEncodingBody.md +9 -0
  35. data/docs/UploadSession.md +13 -0
  36. data/docs/Video.md +31 -0
  37. data/docs/VideoMetadata.md +7 -0
  38. data/docs/VideoUploadBody.md +24 -0
  39. data/git_push.sh +55 -0
  40. data/lib/telestream_cloud_flip/api/flip_api.rb +2385 -0
  41. data/lib/telestream_cloud_flip/api_client.rb +389 -0
  42. data/lib/telestream_cloud_flip/api_error.rb +38 -0
  43. data/lib/telestream_cloud_flip/configuration.rb +209 -0
  44. data/lib/telestream_cloud_flip/models/canceled_response.rb +189 -0
  45. data/lib/telestream_cloud_flip/models/cloud_notification_settings.rb +237 -0
  46. data/lib/telestream_cloud_flip/models/cloud_notification_settings_events.rb +239 -0
  47. data/lib/telestream_cloud_flip/models/copy_profile_body.rb +209 -0
  48. data/lib/telestream_cloud_flip/models/count_response.rb +189 -0
  49. data/lib/telestream_cloud_flip/models/create_encoding_body.rb +214 -0
  50. data/lib/telestream_cloud_flip/models/create_video_body.rb +231 -0
  51. data/lib/telestream_cloud_flip/models/deleted_response.rb +189 -0
  52. data/lib/telestream_cloud_flip/models/encoding.rb +486 -0
  53. data/lib/telestream_cloud_flip/models/encoding_signed_url.rb +189 -0
  54. data/lib/telestream_cloud_flip/models/encoding_signed_urls.rb +191 -0
  55. data/lib/telestream_cloud_flip/models/error.rb +199 -0
  56. data/lib/telestream_cloud_flip/models/extra_file.rb +221 -0
  57. data/lib/telestream_cloud_flip/models/factory.rb +388 -0
  58. data/lib/telestream_cloud_flip/models/factory_body.rb +374 -0
  59. data/lib/telestream_cloud_flip/models/factory_body_storage_credential_attributes.rb +215 -0
  60. data/lib/telestream_cloud_flip/models/factory_sync.rb +222 -0
  61. data/lib/telestream_cloud_flip/models/factory_sync_body.rb +227 -0
  62. data/lib/telestream_cloud_flip/models/paginated_encodings_collection.rb +240 -0
  63. data/lib/telestream_cloud_flip/models/paginated_factory_collection.rb +220 -0
  64. data/lib/telestream_cloud_flip/models/paginated_profiles_collection.rb +220 -0
  65. data/lib/telestream_cloud_flip/models/paginated_video_collection.rb +220 -0
  66. data/lib/telestream_cloud_flip/models/paginated_workflows_collection.rb +220 -0
  67. data/lib/telestream_cloud_flip/models/profile.rb +1777 -0
  68. data/lib/telestream_cloud_flip/models/profile_body.rb +1762 -0
  69. data/lib/telestream_cloud_flip/models/resubmit_video_body.rb +189 -0
  70. data/lib/telestream_cloud_flip/models/retried_response.rb +189 -0
  71. data/lib/telestream_cloud_flip/models/signed_video_url.rb +189 -0
  72. data/lib/telestream_cloud_flip/models/update_encoding_body.rb +199 -0
  73. data/lib/telestream_cloud_flip/models/upload_session.rb +249 -0
  74. data/lib/telestream_cloud_flip/models/video.rb +418 -0
  75. data/lib/telestream_cloud_flip/models/video_metadata.rb +179 -0
  76. data/lib/telestream_cloud_flip/models/video_upload_body.rb +362 -0
  77. data/lib/telestream_cloud_flip/uploader.rb +244 -0
  78. data/lib/telestream_cloud_flip/version.rb +18 -0
  79. data/lib/telestream_cloud_flip.rb +79 -0
  80. data/spec/api/flip_api_spec.rb +550 -0
  81. data/spec/api_client_spec.rb +226 -0
  82. data/spec/configuration_spec.rb +42 -0
  83. data/spec/models/canceled_response_spec.rb +42 -0
  84. data/spec/models/cloud_notification_settings_events_spec.rb +60 -0
  85. data/spec/models/cloud_notification_settings_spec.rb +60 -0
  86. data/spec/models/copy_profile_body_spec.rb +48 -0
  87. data/spec/models/count_response_spec.rb +42 -0
  88. data/spec/models/create_encoding_body_spec.rb +54 -0
  89. data/spec/models/create_video_body_spec.rb +66 -0
  90. data/spec/models/deleted_response_spec.rb +42 -0
  91. data/spec/models/encoding_signed_url_spec.rb +42 -0
  92. data/spec/models/encoding_signed_urls_spec.rb +42 -0
  93. data/spec/models/encoding_spec.rb +222 -0
  94. data/spec/models/error_spec.rb +48 -0
  95. data/spec/models/extra_file_spec.rb +54 -0
  96. data/spec/models/factory_body_spec.rb +136 -0
  97. data/spec/models/factory_body_storage_credential_attributes_spec.rb +60 -0
  98. data/spec/models/factory_spec.rb +148 -0
  99. data/spec/models/factory_sync_body_spec.rb +46 -0
  100. data/spec/models/factory_sync_spec.rb +46 -0
  101. data/spec/models/paginated_encodings_collection_spec.rb +60 -0
  102. data/spec/models/paginated_factory_collection_spec.rb +60 -0
  103. data/spec/models/paginated_profiles_collection_spec.rb +60 -0
  104. data/spec/models/paginated_video_collection_spec.rb +60 -0
  105. data/spec/models/paginated_workflows_collection_spec.rb +60 -0
  106. data/spec/models/profile_body_spec.rb +916 -0
  107. data/spec/models/profile_spec.rb +916 -0
  108. data/spec/models/resubmit_video_body_spec.rb +42 -0
  109. data/spec/models/retried_response_spec.rb +42 -0
  110. data/spec/models/signed_video_url_spec.rb +42 -0
  111. data/spec/models/update_encoding_body_spec.rb +48 -0
  112. data/spec/models/upload_session_spec.rb +72 -0
  113. data/spec/models/video_metadata_spec.rb +36 -0
  114. data/spec/models/video_spec.rb +180 -0
  115. data/spec/models/video_upload_body_spec.rb +138 -0
  116. data/spec/spec_helper.rb +111 -0
  117. data/telestream_cloud_flip.gemspec +47 -0
  118. metadata +396 -0
data/docs/FlipApi.md ADDED
@@ -0,0 +1,2179 @@
1
+ # TelestreamCloud::Flip::FlipApi
2
+
3
+ All URIs are relative to *https://api.cloud.telestream.net/flip/3.1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**cancel_encoding**](FlipApi.md#cancel_encoding) | **POST** /encodings/{id}/cancel.json | Cancels an Encoding.
8
+ [**copy_profile**](FlipApi.md#copy_profile) | **POST** /profiles/{id}/copy.json | Copies a given Profile
9
+ [**create_encoding**](FlipApi.md#create_encoding) | **POST** /encodings.json | Creates an Encoding
10
+ [**create_factory**](FlipApi.md#create_factory) | **POST** /factories.json | Creates a new factory
11
+ [**create_profile**](FlipApi.md#create_profile) | **POST** /profiles.json | Creates a Profile
12
+ [**create_video**](FlipApi.md#create_video) | **POST** /videos.json | Creates a Video from a provided source_url.
13
+ [**create_workorder**](FlipApi.md#create_workorder) | **POST** /workorders.json | Creates a Workorder.
14
+ [**delete_encoding**](FlipApi.md#delete_encoding) | **DELETE** /encodings/{id}.json | Deletes an Encoding from both Telestream Cloud and your storage. Returns an information whether the operation was successful.
15
+ [**delete_profile**](FlipApi.md#delete_profile) | **DELETE** /profiles/{id}.json | Deletes a given Profile
16
+ [**delete_video**](FlipApi.md#delete_video) | **DELETE** /videos/{id}.json | Deletes a Video object.
17
+ [**delete_video_source**](FlipApi.md#delete_video_source) | **DELETE** /videos/{id}/source.json | Delete a video's source file.
18
+ [**encoding**](FlipApi.md#encoding) | **GET** /encodings/{id}.json | Returns an Encoding object.
19
+ [**encodings**](FlipApi.md#encodings) | **GET** /encodings.json | Returns a list of Encoding objects
20
+ [**encodings_count**](FlipApi.md#encodings_count) | **GET** /encodings/count.json | Returns a number of Encoding objects created using a given factory.
21
+ [**factories**](FlipApi.md#factories) | **GET** /factories.json | Returns a collection of Factory objects.
22
+ [**factory**](FlipApi.md#factory) | **GET** /factories/{id}.json | Returns a Factory object.
23
+ [**notifications**](FlipApi.md#notifications) | **GET** /notifications.json | Returns a Factory's notification settings.
24
+ [**profile**](FlipApi.md#profile) | **GET** /profiles/{id_or_name}.json | Returns a Profile object.
25
+ [**profile_encodings**](FlipApi.md#profile_encodings) | **GET** /profiles/{id_or_name}/encodings.json | Returns a list of Encodings that belong to a Profile.
26
+ [**profiles**](FlipApi.md#profiles) | **GET** /profiles.json | Returns a collection of Profile objects.
27
+ [**queued_videos**](FlipApi.md#queued_videos) | **GET** /videos/queued.json | Returns a collection of Video objects queued for encoding.
28
+ [**resubmit_video**](FlipApi.md#resubmit_video) | **POST** /videos/resubmit.json | Resubmits a video to encode.
29
+ [**retry_encoding**](FlipApi.md#retry_encoding) | **POST** /encodings/{id}/retry.json | Retries a failed encoding.
30
+ [**signed_encoding_url**](FlipApi.md#signed_encoding_url) | **GET** /encodings/{id}/signed-url.json | Returns a signed url pointing to an Encoding.
31
+ [**signed_encoding_urls**](FlipApi.md#signed_encoding_urls) | **GET** /encodings/{id}/signed-urls.json | Returns a list of signed urls pointing to an Encoding's outputs.
32
+ [**signed_video_url**](FlipApi.md#signed_video_url) | **GET** /videos/{id}/signed-url.json | Returns a signed url pointing to a Video.
33
+ [**toggle_factory_sync**](FlipApi.md#toggle_factory_sync) | **POST** /factories/{id}/sync.json | Toggles synchronisation settings.
34
+ [**update_encoding**](FlipApi.md#update_encoding) | **PUT** /encodings/{id}.json | Updates an Encoding
35
+ [**update_factory**](FlipApi.md#update_factory) | **PATCH** /factories/{id}.json | Updates a Factory's settings. Returns a Factory object.
36
+ [**update_notifications**](FlipApi.md#update_notifications) | **PUT** /notifications.json | Updates a Factory's notification settings.
37
+ [**update_profile**](FlipApi.md#update_profile) | **PUT** /profiles/{id}.json | Updates a given Profile
38
+ [**upload_video**](FlipApi.md#upload_video) | **POST** /videos/upload.json | Creates an upload session.
39
+ [**video**](FlipApi.md#video) | **GET** /videos/{id}.json | Returns a Video object.
40
+ [**video_encodings**](FlipApi.md#video_encodings) | **GET** /videos/{id}/encodings.json | Returns a list of Encodings that belong to a Video.
41
+ [**video_metadata**](FlipApi.md#video_metadata) | **GET** /videos/{id}/metadata.json | Returns a Video's metadata
42
+ [**videos**](FlipApi.md#videos) | **GET** /videos.json | Returns a collection of Video objects.
43
+ [**workflows**](FlipApi.md#workflows) | **GET** /workflows.json | Returns a collection of Workflows that belong to a Factory.
44
+
45
+
46
+ # **cancel_encoding**
47
+ > CanceledResponse cancel_encoding(id, factory_id)
48
+
49
+ Cancels an Encoding.
50
+
51
+ ### Example
52
+ ```ruby
53
+ # load the gem
54
+ require 'telestream_cloud_flip'
55
+ # setup authorization
56
+ TelestreamCloud::Flip.configure do |config|
57
+ # Configure API key authorization: api_key
58
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
59
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
60
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
61
+ end
62
+
63
+ api_instance = TelestreamCloud::Flip::FlipApi.new
64
+
65
+ id = "id_example" # String | Id of an Encoding.
66
+
67
+ factory_id = "factory_id_example" # String | Id of a Factory.
68
+
69
+
70
+ begin
71
+ #Cancels an Encoding.
72
+ result = api_instance.cancel_encoding(id, factory_id)
73
+ p result
74
+ rescue TelestreamCloud::Flip::ApiError => e
75
+ puts "Exception when calling FlipApi->cancel_encoding: #{e}"
76
+ end
77
+ ```
78
+
79
+ ### Parameters
80
+
81
+ Name | Type | Description | Notes
82
+ ------------- | ------------- | ------------- | -------------
83
+ **id** | **String**| Id of an Encoding. |
84
+ **factory_id** | **String**| Id of a Factory. |
85
+
86
+ ### Return type
87
+
88
+ [**CanceledResponse**](CanceledResponse.md)
89
+
90
+ ### Authorization
91
+
92
+ [api_key](../README.md#api_key)
93
+
94
+ ### HTTP request headers
95
+
96
+ - **Content-Type**: application/json
97
+ - **Accept**: application/json
98
+
99
+
100
+
101
+ # **copy_profile**
102
+ > Profile copy_profile(id, factory_id, copy_profile_body, opts)
103
+
104
+ Copies a given Profile
105
+
106
+ ### Example
107
+ ```ruby
108
+ # load the gem
109
+ require 'telestream_cloud_flip'
110
+ # setup authorization
111
+ TelestreamCloud::Flip.configure do |config|
112
+ # Configure API key authorization: api_key
113
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
114
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
115
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
116
+ end
117
+
118
+ api_instance = TelestreamCloud::Flip::FlipApi.new
119
+
120
+ id = "id_example" # String | Id of a Profile.
121
+
122
+ factory_id = "factory_id_example" # String | Id of a Factory.
123
+
124
+ copy_profile_body = TelestreamCloud::Flip::CopyProfileBody.new # CopyProfileBody |
125
+
126
+ opts = {
127
+ expand: true # BOOLEAN | If expand option is set Profile objects will contain all command parameters, even if their value is default. By default this is not set.
128
+ }
129
+
130
+ begin
131
+ #Copies a given Profile
132
+ result = api_instance.copy_profile(id, factory_id, copy_profile_body, opts)
133
+ p result
134
+ rescue TelestreamCloud::Flip::ApiError => e
135
+ puts "Exception when calling FlipApi->copy_profile: #{e}"
136
+ end
137
+ ```
138
+
139
+ ### Parameters
140
+
141
+ Name | Type | Description | Notes
142
+ ------------- | ------------- | ------------- | -------------
143
+ **id** | **String**| Id of a Profile. |
144
+ **factory_id** | **String**| Id of a Factory. |
145
+ **copy_profile_body** | [**CopyProfileBody**](CopyProfileBody.md)| |
146
+ **expand** | **BOOLEAN**| If expand option is set Profile objects will contain all command parameters, even if their value is default. By default this is not set. | [optional]
147
+
148
+ ### Return type
149
+
150
+ [**Profile**](Profile.md)
151
+
152
+ ### Authorization
153
+
154
+ [api_key](../README.md#api_key)
155
+
156
+ ### HTTP request headers
157
+
158
+ - **Content-Type**: application/json
159
+ - **Accept**: application/json
160
+
161
+
162
+
163
+ # **create_encoding**
164
+ > Encoding create_encoding(factory_id, create_encoding_body, opts)
165
+
166
+ Creates an Encoding
167
+
168
+ ### Example
169
+ ```ruby
170
+ # load the gem
171
+ require 'telestream_cloud_flip'
172
+ # setup authorization
173
+ TelestreamCloud::Flip.configure do |config|
174
+ # Configure API key authorization: api_key
175
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
176
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
177
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
178
+ end
179
+
180
+ api_instance = TelestreamCloud::Flip::FlipApi.new
181
+
182
+ factory_id = "factory_id_example" # String | Id of a Factory.
183
+
184
+ create_encoding_body = TelestreamCloud::Flip::CreateEncodingBody.new # CreateEncodingBody |
185
+
186
+ opts = {
187
+ screenshots: true, # BOOLEAN | Determines whether the response will include screenshots. By default this is not set.
188
+ precise_status: true # BOOLEAN | Determines whether the response will include a precise status. By default this is not set.
189
+ }
190
+
191
+ begin
192
+ #Creates an Encoding
193
+ result = api_instance.create_encoding(factory_id, create_encoding_body, opts)
194
+ p result
195
+ rescue TelestreamCloud::Flip::ApiError => e
196
+ puts "Exception when calling FlipApi->create_encoding: #{e}"
197
+ end
198
+ ```
199
+
200
+ ### Parameters
201
+
202
+ Name | Type | Description | Notes
203
+ ------------- | ------------- | ------------- | -------------
204
+ **factory_id** | **String**| Id of a Factory. |
205
+ **create_encoding_body** | [**CreateEncodingBody**](CreateEncodingBody.md)| |
206
+ **screenshots** | **BOOLEAN**| Determines whether the response will include screenshots. By default this is not set. | [optional]
207
+ **precise_status** | **BOOLEAN**| Determines whether the response will include a precise status. By default this is not set. | [optional]
208
+
209
+ ### Return type
210
+
211
+ [**Encoding**](Encoding.md)
212
+
213
+ ### Authorization
214
+
215
+ [api_key](../README.md#api_key)
216
+
217
+ ### HTTP request headers
218
+
219
+ - **Content-Type**: application/json
220
+ - **Accept**: application/json
221
+
222
+
223
+
224
+ # **create_factory**
225
+ > Factory create_factory(create_factory_body, opts)
226
+
227
+ Creates a new factory
228
+
229
+ ### Example
230
+ ```ruby
231
+ # load the gem
232
+ require 'telestream_cloud_flip'
233
+ # setup authorization
234
+ TelestreamCloud::Flip.configure do |config|
235
+ # Configure API key authorization: api_key
236
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
237
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
238
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
239
+ end
240
+
241
+ api_instance = TelestreamCloud::Flip::FlipApi.new
242
+
243
+ create_factory_body = TelestreamCloud::Flip::FactoryBody.new # FactoryBody |
244
+
245
+ opts = {
246
+ with_storage_provider: true # BOOLEAN | if set to `true`, results will include a storage provider's id
247
+ }
248
+
249
+ begin
250
+ #Creates a new factory
251
+ result = api_instance.create_factory(create_factory_body, opts)
252
+ p result
253
+ rescue TelestreamCloud::Flip::ApiError => e
254
+ puts "Exception when calling FlipApi->create_factory: #{e}"
255
+ end
256
+ ```
257
+
258
+ ### Parameters
259
+
260
+ Name | Type | Description | Notes
261
+ ------------- | ------------- | ------------- | -------------
262
+ **create_factory_body** | [**FactoryBody**](FactoryBody.md)| |
263
+ **with_storage_provider** | **BOOLEAN**| if set to `true`, results will include a storage provider's id | [optional]
264
+
265
+ ### Return type
266
+
267
+ [**Factory**](Factory.md)
268
+
269
+ ### Authorization
270
+
271
+ [api_key](../README.md#api_key)
272
+
273
+ ### HTTP request headers
274
+
275
+ - **Content-Type**: application/json
276
+ - **Accept**: application/json
277
+
278
+
279
+
280
+ # **create_profile**
281
+ > Profile create_profile(factory_id, create_profile_body, opts)
282
+
283
+ Creates a Profile
284
+
285
+ ### Example
286
+ ```ruby
287
+ # load the gem
288
+ require 'telestream_cloud_flip'
289
+ # setup authorization
290
+ TelestreamCloud::Flip.configure do |config|
291
+ # Configure API key authorization: api_key
292
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
293
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
294
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
295
+ end
296
+
297
+ api_instance = TelestreamCloud::Flip::FlipApi.new
298
+
299
+ factory_id = "factory_id_example" # String | Id of a Factory.
300
+
301
+ create_profile_body = TelestreamCloud::Flip::ProfileBody.new # ProfileBody |
302
+
303
+ opts = {
304
+ exclude_advanced_services: true, # BOOLEAN |
305
+ expand: true # BOOLEAN | If expand option is set Profile objects will contain all command parameters, even if their value is default. By default it is not set.
306
+ }
307
+
308
+ begin
309
+ #Creates a Profile
310
+ result = api_instance.create_profile(factory_id, create_profile_body, opts)
311
+ p result
312
+ rescue TelestreamCloud::Flip::ApiError => e
313
+ puts "Exception when calling FlipApi->create_profile: #{e}"
314
+ end
315
+ ```
316
+
317
+ ### Parameters
318
+
319
+ Name | Type | Description | Notes
320
+ ------------- | ------------- | ------------- | -------------
321
+ **factory_id** | **String**| Id of a Factory. |
322
+ **create_profile_body** | [**ProfileBody**](ProfileBody.md)| |
323
+ **exclude_advanced_services** | **BOOLEAN**| | [optional]
324
+ **expand** | **BOOLEAN**| If expand option is set Profile objects will contain all command parameters, even if their value is default. By default it is not set. | [optional]
325
+
326
+ ### Return type
327
+
328
+ [**Profile**](Profile.md)
329
+
330
+ ### Authorization
331
+
332
+ [api_key](../README.md#api_key)
333
+
334
+ ### HTTP request headers
335
+
336
+ - **Content-Type**: application/json
337
+ - **Accept**: application/json
338
+
339
+
340
+
341
+ # **create_video**
342
+ > Video create_video(factory_id, create_video_body)
343
+
344
+ Creates a Video from a provided source_url.
345
+
346
+ ### Example
347
+ ```ruby
348
+ # load the gem
349
+ require 'telestream_cloud_flip'
350
+ # setup authorization
351
+ TelestreamCloud::Flip.configure do |config|
352
+ # Configure API key authorization: api_key
353
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
354
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
355
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
356
+ end
357
+
358
+ api_instance = TelestreamCloud::Flip::FlipApi.new
359
+
360
+ factory_id = "factory_id_example" # String | Id of a Factory.
361
+
362
+ create_video_body = TelestreamCloud::Flip::CreateVideoBody.new # CreateVideoBody |
363
+
364
+
365
+ begin
366
+ #Creates a Video from a provided source_url.
367
+ result = api_instance.create_video(factory_id, create_video_body)
368
+ p result
369
+ rescue TelestreamCloud::Flip::ApiError => e
370
+ puts "Exception when calling FlipApi->create_video: #{e}"
371
+ end
372
+ ```
373
+
374
+ ### Parameters
375
+
376
+ Name | Type | Description | Notes
377
+ ------------- | ------------- | ------------- | -------------
378
+ **factory_id** | **String**| Id of a Factory. |
379
+ **create_video_body** | [**CreateVideoBody**](CreateVideoBody.md)| |
380
+
381
+ ### Return type
382
+
383
+ [**Video**](Video.md)
384
+
385
+ ### Authorization
386
+
387
+ [api_key](../README.md#api_key)
388
+
389
+ ### HTTP request headers
390
+
391
+ - **Content-Type**: application/json
392
+ - **Accept**: application/json
393
+
394
+
395
+
396
+ # **create_workorder**
397
+ > create_workorder(factory_id, opts)
398
+
399
+ Creates a Workorder.
400
+
401
+ ### Example
402
+ ```ruby
403
+ # load the gem
404
+ require 'telestream_cloud_flip'
405
+ # setup authorization
406
+ TelestreamCloud::Flip.configure do |config|
407
+ # Configure API key authorization: api_key
408
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
409
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
410
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
411
+ end
412
+
413
+ api_instance = TelestreamCloud::Flip::FlipApi.new
414
+
415
+ factory_id = "factory_id_example" # String | Id of a Factory.
416
+
417
+ opts = {
418
+ profile_id: "profile_id_example", # String | Id of a Profile.
419
+ file: File.new("/path/to/file.txt"), # File | Input file.
420
+ source_url: "source_url_example" # String | URL pointing to an input file.
421
+ }
422
+
423
+ begin
424
+ #Creates a Workorder.
425
+ api_instance.create_workorder(factory_id, opts)
426
+ rescue TelestreamCloud::Flip::ApiError => e
427
+ puts "Exception when calling FlipApi->create_workorder: #{e}"
428
+ end
429
+ ```
430
+
431
+ ### Parameters
432
+
433
+ Name | Type | Description | Notes
434
+ ------------- | ------------- | ------------- | -------------
435
+ **factory_id** | **String**| Id of a Factory. |
436
+ **profile_id** | **String**| Id of a Profile. | [optional]
437
+ **file** | **File**| Input file. | [optional]
438
+ **source_url** | **String**| URL pointing to an input file. | [optional]
439
+
440
+ ### Return type
441
+
442
+ nil (empty response body)
443
+
444
+ ### Authorization
445
+
446
+ [api_key](../README.md#api_key)
447
+
448
+ ### HTTP request headers
449
+
450
+ - **Content-Type**: multipart/form-data
451
+ - **Accept**: application/json
452
+
453
+
454
+
455
+ # **delete_encoding**
456
+ > DeletedResponse delete_encoding(id, factory_id)
457
+
458
+ Deletes an Encoding from both Telestream Cloud and your storage. Returns an information whether the operation was successful.
459
+
460
+ ### Example
461
+ ```ruby
462
+ # load the gem
463
+ require 'telestream_cloud_flip'
464
+ # setup authorization
465
+ TelestreamCloud::Flip.configure do |config|
466
+ # Configure API key authorization: api_key
467
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
468
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
469
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
470
+ end
471
+
472
+ api_instance = TelestreamCloud::Flip::FlipApi.new
473
+
474
+ id = "id_example" # String | Id of an Encoding.
475
+
476
+ factory_id = "factory_id_example" # String | Id of a Factory.
477
+
478
+
479
+ begin
480
+ #Deletes an Encoding from both Telestream Cloud and your storage. Returns an information whether the operation was successful.
481
+ result = api_instance.delete_encoding(id, factory_id)
482
+ p result
483
+ rescue TelestreamCloud::Flip::ApiError => e
484
+ puts "Exception when calling FlipApi->delete_encoding: #{e}"
485
+ end
486
+ ```
487
+
488
+ ### Parameters
489
+
490
+ Name | Type | Description | Notes
491
+ ------------- | ------------- | ------------- | -------------
492
+ **id** | **String**| Id of an Encoding. |
493
+ **factory_id** | **String**| Id of a Factory. |
494
+
495
+ ### Return type
496
+
497
+ [**DeletedResponse**](DeletedResponse.md)
498
+
499
+ ### Authorization
500
+
501
+ [api_key](../README.md#api_key)
502
+
503
+ ### HTTP request headers
504
+
505
+ - **Content-Type**: application/json
506
+ - **Accept**: application/json
507
+
508
+
509
+
510
+ # **delete_profile**
511
+ > DeletedResponse delete_profile(id, factory_id)
512
+
513
+ Deletes a given Profile
514
+
515
+ ### Example
516
+ ```ruby
517
+ # load the gem
518
+ require 'telestream_cloud_flip'
519
+ # setup authorization
520
+ TelestreamCloud::Flip.configure do |config|
521
+ # Configure API key authorization: api_key
522
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
523
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
524
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
525
+ end
526
+
527
+ api_instance = TelestreamCloud::Flip::FlipApi.new
528
+
529
+ id = "id_example" # String | Id of a Profile
530
+
531
+ factory_id = "factory_id_example" # String | Id of a Factory.
532
+
533
+
534
+ begin
535
+ #Deletes a given Profile
536
+ result = api_instance.delete_profile(id, factory_id)
537
+ p result
538
+ rescue TelestreamCloud::Flip::ApiError => e
539
+ puts "Exception when calling FlipApi->delete_profile: #{e}"
540
+ end
541
+ ```
542
+
543
+ ### Parameters
544
+
545
+ Name | Type | Description | Notes
546
+ ------------- | ------------- | ------------- | -------------
547
+ **id** | **String**| Id of a Profile |
548
+ **factory_id** | **String**| Id of a Factory. |
549
+
550
+ ### Return type
551
+
552
+ [**DeletedResponse**](DeletedResponse.md)
553
+
554
+ ### Authorization
555
+
556
+ [api_key](../README.md#api_key)
557
+
558
+ ### HTTP request headers
559
+
560
+ - **Content-Type**: application/json
561
+ - **Accept**: application/json
562
+
563
+
564
+
565
+ # **delete_video**
566
+ > DeletedResponse delete_video(id, factory_id)
567
+
568
+ Deletes a Video object.
569
+
570
+ ### Example
571
+ ```ruby
572
+ # load the gem
573
+ require 'telestream_cloud_flip'
574
+ # setup authorization
575
+ TelestreamCloud::Flip.configure do |config|
576
+ # Configure API key authorization: api_key
577
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
578
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
579
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
580
+ end
581
+
582
+ api_instance = TelestreamCloud::Flip::FlipApi.new
583
+
584
+ id = "id_example" # String | Id of a Video.
585
+
586
+ factory_id = "factory_id_example" # String | Id of a Factory.
587
+
588
+
589
+ begin
590
+ #Deletes a Video object.
591
+ result = api_instance.delete_video(id, factory_id)
592
+ p result
593
+ rescue TelestreamCloud::Flip::ApiError => e
594
+ puts "Exception when calling FlipApi->delete_video: #{e}"
595
+ end
596
+ ```
597
+
598
+ ### Parameters
599
+
600
+ Name | Type | Description | Notes
601
+ ------------- | ------------- | ------------- | -------------
602
+ **id** | **String**| Id of a Video. |
603
+ **factory_id** | **String**| Id of a Factory. |
604
+
605
+ ### Return type
606
+
607
+ [**DeletedResponse**](DeletedResponse.md)
608
+
609
+ ### Authorization
610
+
611
+ [api_key](../README.md#api_key)
612
+
613
+ ### HTTP request headers
614
+
615
+ - **Content-Type**: application/json
616
+ - **Accept**: application/json
617
+
618
+
619
+
620
+ # **delete_video_source**
621
+ > DeletedResponse delete_video_source(id, factory_id)
622
+
623
+ Delete a video's source file.
624
+
625
+ ### Example
626
+ ```ruby
627
+ # load the gem
628
+ require 'telestream_cloud_flip'
629
+ # setup authorization
630
+ TelestreamCloud::Flip.configure do |config|
631
+ # Configure API key authorization: api_key
632
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
633
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
634
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
635
+ end
636
+
637
+ api_instance = TelestreamCloud::Flip::FlipApi.new
638
+
639
+ id = "id_example" # String | Id of a Video.
640
+
641
+ factory_id = "factory_id_example" # String | Id of a Factory.
642
+
643
+
644
+ begin
645
+ #Delete a video's source file.
646
+ result = api_instance.delete_video_source(id, factory_id)
647
+ p result
648
+ rescue TelestreamCloud::Flip::ApiError => e
649
+ puts "Exception when calling FlipApi->delete_video_source: #{e}"
650
+ end
651
+ ```
652
+
653
+ ### Parameters
654
+
655
+ Name | Type | Description | Notes
656
+ ------------- | ------------- | ------------- | -------------
657
+ **id** | **String**| Id of a Video. |
658
+ **factory_id** | **String**| Id of a Factory. |
659
+
660
+ ### Return type
661
+
662
+ [**DeletedResponse**](DeletedResponse.md)
663
+
664
+ ### Authorization
665
+
666
+ [api_key](../README.md#api_key)
667
+
668
+ ### HTTP request headers
669
+
670
+ - **Content-Type**: application/json
671
+ - **Accept**: application/json
672
+
673
+
674
+
675
+ # **encoding**
676
+ > Encoding encoding(id, factory_id, opts)
677
+
678
+ Returns an Encoding object.
679
+
680
+ ### Example
681
+ ```ruby
682
+ # load the gem
683
+ require 'telestream_cloud_flip'
684
+ # setup authorization
685
+ TelestreamCloud::Flip.configure do |config|
686
+ # Configure API key authorization: api_key
687
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
688
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
689
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
690
+ end
691
+
692
+ api_instance = TelestreamCloud::Flip::FlipApi.new
693
+
694
+ id = "id_example" # String | Id of an Encoding.
695
+
696
+ factory_id = "factory_id_example" # String | Id of a Factory.
697
+
698
+ opts = {
699
+ screenshots: true, # BOOLEAN | Determines whether the response will include screenshots. By default this is not set.
700
+ precise_status: true # BOOLEAN | Determines whether the response will include a precise status. By default this is not set.
701
+ }
702
+
703
+ begin
704
+ #Returns an Encoding object.
705
+ result = api_instance.encoding(id, factory_id, opts)
706
+ p result
707
+ rescue TelestreamCloud::Flip::ApiError => e
708
+ puts "Exception when calling FlipApi->encoding: #{e}"
709
+ end
710
+ ```
711
+
712
+ ### Parameters
713
+
714
+ Name | Type | Description | Notes
715
+ ------------- | ------------- | ------------- | -------------
716
+ **id** | **String**| Id of an Encoding. |
717
+ **factory_id** | **String**| Id of a Factory. |
718
+ **screenshots** | **BOOLEAN**| Determines whether the response will include screenshots. By default this is not set. | [optional]
719
+ **precise_status** | **BOOLEAN**| Determines whether the response will include a precise status. By default this is not set. | [optional]
720
+
721
+ ### Return type
722
+
723
+ [**Encoding**](Encoding.md)
724
+
725
+ ### Authorization
726
+
727
+ [api_key](../README.md#api_key)
728
+
729
+ ### HTTP request headers
730
+
731
+ - **Content-Type**: application/json
732
+ - **Accept**: application/json
733
+
734
+
735
+
736
+ # **encodings**
737
+ > PaginatedEncodingsCollection encodings(factory_id, opts)
738
+
739
+ Returns a list of Encoding objects
740
+
741
+ ### Example
742
+ ```ruby
743
+ # load the gem
744
+ require 'telestream_cloud_flip'
745
+ # setup authorization
746
+ TelestreamCloud::Flip.configure do |config|
747
+ # Configure API key authorization: api_key
748
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
749
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
750
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
751
+ end
752
+
753
+ api_instance = TelestreamCloud::Flip::FlipApi.new
754
+
755
+ factory_id = "factory_id_example" # String | Id of a Factory.
756
+
757
+ opts = {
758
+ video_id: "video_id_example", # String | Id of a Video. When specified, the resulting list will contain videos that belong to the Video.
759
+ status: "status_example", # String | One of `success`, `fail`, `processing`. When specified, the resulting list will contain ecodings filtered by status.
760
+ profile_id: "profile_id_example", # String | Filter by profile_id.
761
+ profile_name: "profile_name_example", # String | Filter by profile_name.
762
+ page: 56, # Integer | A page to be fetched. Default is `1`.
763
+ per_page: 56, # Integer | A number of results per page. Default is `100`.
764
+ screenshots: true, # BOOLEAN | Determines whether the response will include screenshots. By default this is not set.
765
+ precise_status: true # BOOLEAN | Determines whether the response will include a precise status. By default this is not set.
766
+ }
767
+
768
+ begin
769
+ #Returns a list of Encoding objects
770
+ result = api_instance.encodings(factory_id, opts)
771
+ p result
772
+ rescue TelestreamCloud::Flip::ApiError => e
773
+ puts "Exception when calling FlipApi->encodings: #{e}"
774
+ end
775
+ ```
776
+
777
+ ### Parameters
778
+
779
+ Name | Type | Description | Notes
780
+ ------------- | ------------- | ------------- | -------------
781
+ **factory_id** | **String**| Id of a Factory. |
782
+ **video_id** | **String**| Id of a Video. When specified, the resulting list will contain videos that belong to the Video. | [optional]
783
+ **status** | **String**| One of `success`, `fail`, `processing`. When specified, the resulting list will contain ecodings filtered by status. | [optional]
784
+ **profile_id** | **String**| Filter by profile_id. | [optional]
785
+ **profile_name** | **String**| Filter by profile_name. | [optional]
786
+ **page** | **Integer**| A page to be fetched. Default is `1`. | [optional]
787
+ **per_page** | **Integer**| A number of results per page. Default is `100`. | [optional]
788
+ **screenshots** | **BOOLEAN**| Determines whether the response will include screenshots. By default this is not set. | [optional]
789
+ **precise_status** | **BOOLEAN**| Determines whether the response will include a precise status. By default this is not set. | [optional]
790
+
791
+ ### Return type
792
+
793
+ [**PaginatedEncodingsCollection**](PaginatedEncodingsCollection.md)
794
+
795
+ ### Authorization
796
+
797
+ [api_key](../README.md#api_key)
798
+
799
+ ### HTTP request headers
800
+
801
+ - **Content-Type**: application/json
802
+ - **Accept**: application/json
803
+
804
+
805
+
806
+ # **encodings_count**
807
+ > CountResponse encodings_count(factory_id)
808
+
809
+ Returns a number of Encoding objects created using a given factory.
810
+
811
+ ### Example
812
+ ```ruby
813
+ # load the gem
814
+ require 'telestream_cloud_flip'
815
+ # setup authorization
816
+ TelestreamCloud::Flip.configure do |config|
817
+ # Configure API key authorization: api_key
818
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
819
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
820
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
821
+ end
822
+
823
+ api_instance = TelestreamCloud::Flip::FlipApi.new
824
+
825
+ factory_id = "factory_id_example" # String | Id of a Factory.
826
+
827
+
828
+ begin
829
+ #Returns a number of Encoding objects created using a given factory.
830
+ result = api_instance.encodings_count(factory_id)
831
+ p result
832
+ rescue TelestreamCloud::Flip::ApiError => e
833
+ puts "Exception when calling FlipApi->encodings_count: #{e}"
834
+ end
835
+ ```
836
+
837
+ ### Parameters
838
+
839
+ Name | Type | Description | Notes
840
+ ------------- | ------------- | ------------- | -------------
841
+ **factory_id** | **String**| Id of a Factory. |
842
+
843
+ ### Return type
844
+
845
+ [**CountResponse**](CountResponse.md)
846
+
847
+ ### Authorization
848
+
849
+ [api_key](../README.md#api_key)
850
+
851
+ ### HTTP request headers
852
+
853
+ - **Content-Type**: application/json
854
+ - **Accept**: application/json
855
+
856
+
857
+
858
+ # **factories**
859
+ > PaginatedFactoryCollection factories(opts)
860
+
861
+ Returns a collection of Factory objects.
862
+
863
+ Returns a collection of Factory objects.
864
+
865
+ ### Example
866
+ ```ruby
867
+ # load the gem
868
+ require 'telestream_cloud_flip'
869
+ # setup authorization
870
+ TelestreamCloud::Flip.configure do |config|
871
+ # Configure API key authorization: api_key
872
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
873
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
874
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
875
+ end
876
+
877
+ api_instance = TelestreamCloud::Flip::FlipApi.new
878
+
879
+ opts = {
880
+ page: 56, # Integer | A page to be fetched. Default is `1`.
881
+ per_page: 56, # Integer | A number of results per page. Default is `100`.
882
+ with_storage_provider: true # BOOLEAN | if set to `true`, results will include a storage provider's id
883
+ }
884
+
885
+ begin
886
+ #Returns a collection of Factory objects.
887
+ result = api_instance.factories(opts)
888
+ p result
889
+ rescue TelestreamCloud::Flip::ApiError => e
890
+ puts "Exception when calling FlipApi->factories: #{e}"
891
+ end
892
+ ```
893
+
894
+ ### Parameters
895
+
896
+ Name | Type | Description | Notes
897
+ ------------- | ------------- | ------------- | -------------
898
+ **page** | **Integer**| A page to be fetched. Default is `1`. | [optional]
899
+ **per_page** | **Integer**| A number of results per page. Default is `100`. | [optional]
900
+ **with_storage_provider** | **BOOLEAN**| if set to `true`, results will include a storage provider's id | [optional]
901
+
902
+ ### Return type
903
+
904
+ [**PaginatedFactoryCollection**](PaginatedFactoryCollection.md)
905
+
906
+ ### Authorization
907
+
908
+ [api_key](../README.md#api_key)
909
+
910
+ ### HTTP request headers
911
+
912
+ - **Content-Type**: application/json
913
+ - **Accept**: application/json
914
+
915
+
916
+
917
+ # **factory**
918
+ > Factory factory(id, opts)
919
+
920
+ Returns a Factory object.
921
+
922
+ Returns a Factory object.
923
+
924
+ ### Example
925
+ ```ruby
926
+ # load the gem
927
+ require 'telestream_cloud_flip'
928
+ # setup authorization
929
+ TelestreamCloud::Flip.configure do |config|
930
+ # Configure API key authorization: api_key
931
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
932
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
933
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
934
+ end
935
+
936
+ api_instance = TelestreamCloud::Flip::FlipApi.new
937
+
938
+ id = "id_example" # String | id of a factory
939
+
940
+ opts = {
941
+ with_storage_provider: true # BOOLEAN | if set to `true`, results will include a storage provider's id
942
+ }
943
+
944
+ begin
945
+ #Returns a Factory object.
946
+ result = api_instance.factory(id, opts)
947
+ p result
948
+ rescue TelestreamCloud::Flip::ApiError => e
949
+ puts "Exception when calling FlipApi->factory: #{e}"
950
+ end
951
+ ```
952
+
953
+ ### Parameters
954
+
955
+ Name | Type | Description | Notes
956
+ ------------- | ------------- | ------------- | -------------
957
+ **id** | **String**| id of a factory |
958
+ **with_storage_provider** | **BOOLEAN**| if set to `true`, results will include a storage provider's id | [optional]
959
+
960
+ ### Return type
961
+
962
+ [**Factory**](Factory.md)
963
+
964
+ ### Authorization
965
+
966
+ [api_key](../README.md#api_key)
967
+
968
+ ### HTTP request headers
969
+
970
+ - **Content-Type**: application/json
971
+ - **Accept**: application/json
972
+
973
+
974
+
975
+ # **notifications**
976
+ > CloudNotificationSettings notifications(factory_id)
977
+
978
+ Returns a Factory's notification settings.
979
+
980
+ ### Example
981
+ ```ruby
982
+ # load the gem
983
+ require 'telestream_cloud_flip'
984
+ # setup authorization
985
+ TelestreamCloud::Flip.configure do |config|
986
+ # Configure API key authorization: api_key
987
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
988
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
989
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
990
+ end
991
+
992
+ api_instance = TelestreamCloud::Flip::FlipApi.new
993
+
994
+ factory_id = "factory_id_example" # String | Id of a Factory.
995
+
996
+
997
+ begin
998
+ #Returns a Factory's notification settings.
999
+ result = api_instance.notifications(factory_id)
1000
+ p result
1001
+ rescue TelestreamCloud::Flip::ApiError => e
1002
+ puts "Exception when calling FlipApi->notifications: #{e}"
1003
+ end
1004
+ ```
1005
+
1006
+ ### Parameters
1007
+
1008
+ Name | Type | Description | Notes
1009
+ ------------- | ------------- | ------------- | -------------
1010
+ **factory_id** | **String**| Id of a Factory. |
1011
+
1012
+ ### Return type
1013
+
1014
+ [**CloudNotificationSettings**](CloudNotificationSettings.md)
1015
+
1016
+ ### Authorization
1017
+
1018
+ [api_key](../README.md#api_key)
1019
+
1020
+ ### HTTP request headers
1021
+
1022
+ - **Content-Type**: application/json
1023
+ - **Accept**: application/json
1024
+
1025
+
1026
+
1027
+ # **profile**
1028
+ > Profile profile(id_or_name, factory_id, opts)
1029
+
1030
+ Returns a Profile object.
1031
+
1032
+ ### Example
1033
+ ```ruby
1034
+ # load the gem
1035
+ require 'telestream_cloud_flip'
1036
+ # setup authorization
1037
+ TelestreamCloud::Flip.configure do |config|
1038
+ # Configure API key authorization: api_key
1039
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1040
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1041
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1042
+ end
1043
+
1044
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1045
+
1046
+ id_or_name = "id_or_name_example" # String | A name or an id of a Profile.
1047
+
1048
+ factory_id = "factory_id_example" # String | Id of a Factory.
1049
+
1050
+ opts = {
1051
+ expand: true # BOOLEAN | If expand option is set Profile objects will contain all command parameters, even if their value is default. By default this is not set.
1052
+ }
1053
+
1054
+ begin
1055
+ #Returns a Profile object.
1056
+ result = api_instance.profile(id_or_name, factory_id, opts)
1057
+ p result
1058
+ rescue TelestreamCloud::Flip::ApiError => e
1059
+ puts "Exception when calling FlipApi->profile: #{e}"
1060
+ end
1061
+ ```
1062
+
1063
+ ### Parameters
1064
+
1065
+ Name | Type | Description | Notes
1066
+ ------------- | ------------- | ------------- | -------------
1067
+ **id_or_name** | **String**| A name or an id of a Profile. |
1068
+ **factory_id** | **String**| Id of a Factory. |
1069
+ **expand** | **BOOLEAN**| If expand option is set Profile objects will contain all command parameters, even if their value is default. By default this is not set. | [optional]
1070
+
1071
+ ### Return type
1072
+
1073
+ [**Profile**](Profile.md)
1074
+
1075
+ ### Authorization
1076
+
1077
+ [api_key](../README.md#api_key)
1078
+
1079
+ ### HTTP request headers
1080
+
1081
+ - **Content-Type**: application/json
1082
+ - **Accept**: application/json
1083
+
1084
+
1085
+
1086
+ # **profile_encodings**
1087
+ > PaginatedEncodingsCollection profile_encodings(id_or_name, factory_id)
1088
+
1089
+ Returns a list of Encodings that belong to a Profile.
1090
+
1091
+ ### Example
1092
+ ```ruby
1093
+ # load the gem
1094
+ require 'telestream_cloud_flip'
1095
+ # setup authorization
1096
+ TelestreamCloud::Flip.configure do |config|
1097
+ # Configure API key authorization: api_key
1098
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1099
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1100
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1101
+ end
1102
+
1103
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1104
+
1105
+ id_or_name = "id_or_name_example" # String | Id or name of a Profile.
1106
+
1107
+ factory_id = "factory_id_example" # String | Id of a Factory.
1108
+
1109
+
1110
+ begin
1111
+ #Returns a list of Encodings that belong to a Profile.
1112
+ result = api_instance.profile_encodings(id_or_name, factory_id)
1113
+ p result
1114
+ rescue TelestreamCloud::Flip::ApiError => e
1115
+ puts "Exception when calling FlipApi->profile_encodings: #{e}"
1116
+ end
1117
+ ```
1118
+
1119
+ ### Parameters
1120
+
1121
+ Name | Type | Description | Notes
1122
+ ------------- | ------------- | ------------- | -------------
1123
+ **id_or_name** | **String**| Id or name of a Profile. |
1124
+ **factory_id** | **String**| Id of a Factory. |
1125
+
1126
+ ### Return type
1127
+
1128
+ [**PaginatedEncodingsCollection**](PaginatedEncodingsCollection.md)
1129
+
1130
+ ### Authorization
1131
+
1132
+ [api_key](../README.md#api_key)
1133
+
1134
+ ### HTTP request headers
1135
+
1136
+ - **Content-Type**: application/json
1137
+ - **Accept**: application/json
1138
+
1139
+
1140
+
1141
+ # **profiles**
1142
+ > PaginatedProfilesCollection profiles(factory_id, opts)
1143
+
1144
+ Returns a collection of Profile objects.
1145
+
1146
+ ### Example
1147
+ ```ruby
1148
+ # load the gem
1149
+ require 'telestream_cloud_flip'
1150
+ # setup authorization
1151
+ TelestreamCloud::Flip.configure do |config|
1152
+ # Configure API key authorization: api_key
1153
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1154
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1155
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1156
+ end
1157
+
1158
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1159
+
1160
+ factory_id = "factory_id_example" # String | Id of a Factory.
1161
+
1162
+ opts = {
1163
+ exclude_advanced_services: true, # BOOLEAN | Determine whether exclude Advanced Services profiles from the results. By default this is not set.
1164
+ expand: true, # BOOLEAN | If expand option is set Profile objects will contain all command parameters, even if their value is default. By default this is not set.
1165
+ page: 56, # Integer | A page to be fetched. Default is `1`.
1166
+ per_page: 56 # Integer | A number of results per page. Default is `100`.
1167
+ }
1168
+
1169
+ begin
1170
+ #Returns a collection of Profile objects.
1171
+ result = api_instance.profiles(factory_id, opts)
1172
+ p result
1173
+ rescue TelestreamCloud::Flip::ApiError => e
1174
+ puts "Exception when calling FlipApi->profiles: #{e}"
1175
+ end
1176
+ ```
1177
+
1178
+ ### Parameters
1179
+
1180
+ Name | Type | Description | Notes
1181
+ ------------- | ------------- | ------------- | -------------
1182
+ **factory_id** | **String**| Id of a Factory. |
1183
+ **exclude_advanced_services** | **BOOLEAN**| Determine whether exclude Advanced Services profiles from the results. By default this is not set. | [optional]
1184
+ **expand** | **BOOLEAN**| If expand option is set Profile objects will contain all command parameters, even if their value is default. By default this is not set. | [optional]
1185
+ **page** | **Integer**| A page to be fetched. Default is `1`. | [optional]
1186
+ **per_page** | **Integer**| A number of results per page. Default is `100`. | [optional]
1187
+
1188
+ ### Return type
1189
+
1190
+ [**PaginatedProfilesCollection**](PaginatedProfilesCollection.md)
1191
+
1192
+ ### Authorization
1193
+
1194
+ [api_key](../README.md#api_key)
1195
+
1196
+ ### HTTP request headers
1197
+
1198
+ - **Content-Type**: application/json
1199
+ - **Accept**: application/json
1200
+
1201
+
1202
+
1203
+ # **queued_videos**
1204
+ > PaginatedVideoCollection queued_videos(factory_id, opts)
1205
+
1206
+ Returns a collection of Video objects queued for encoding.
1207
+
1208
+ ### Example
1209
+ ```ruby
1210
+ # load the gem
1211
+ require 'telestream_cloud_flip'
1212
+ # setup authorization
1213
+ TelestreamCloud::Flip.configure do |config|
1214
+ # Configure API key authorization: api_key
1215
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1216
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1217
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1218
+ end
1219
+
1220
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1221
+
1222
+ factory_id = "factory_id_example" # String | Id of a Factory.
1223
+
1224
+ opts = {
1225
+ page: 56, # Integer | A page to be fetched. Default is `1`.
1226
+ per_page: 56 # Integer | A number of results per page. Default is `100`.
1227
+ }
1228
+
1229
+ begin
1230
+ #Returns a collection of Video objects queued for encoding.
1231
+ result = api_instance.queued_videos(factory_id, opts)
1232
+ p result
1233
+ rescue TelestreamCloud::Flip::ApiError => e
1234
+ puts "Exception when calling FlipApi->queued_videos: #{e}"
1235
+ end
1236
+ ```
1237
+
1238
+ ### Parameters
1239
+
1240
+ Name | Type | Description | Notes
1241
+ ------------- | ------------- | ------------- | -------------
1242
+ **factory_id** | **String**| Id of a Factory. |
1243
+ **page** | **Integer**| A page to be fetched. Default is `1`. | [optional]
1244
+ **per_page** | **Integer**| A number of results per page. Default is `100`. | [optional]
1245
+
1246
+ ### Return type
1247
+
1248
+ [**PaginatedVideoCollection**](PaginatedVideoCollection.md)
1249
+
1250
+ ### Authorization
1251
+
1252
+ [api_key](../README.md#api_key)
1253
+
1254
+ ### HTTP request headers
1255
+
1256
+ - **Content-Type**: application/json
1257
+ - **Accept**: application/json
1258
+
1259
+
1260
+
1261
+ # **resubmit_video**
1262
+ > resubmit_video(factory_id, resubmit_video_body)
1263
+
1264
+ Resubmits a video to encode.
1265
+
1266
+ Resubmits the video to encode. Please note that this option will work only for videos in `success` status.
1267
+
1268
+ ### Example
1269
+ ```ruby
1270
+ # load the gem
1271
+ require 'telestream_cloud_flip'
1272
+ # setup authorization
1273
+ TelestreamCloud::Flip.configure do |config|
1274
+ # Configure API key authorization: api_key
1275
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1276
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1277
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1278
+ end
1279
+
1280
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1281
+
1282
+ factory_id = "factory_id_example" # String | Id of a Factory.
1283
+
1284
+ resubmit_video_body = TelestreamCloud::Flip::ResubmitVideoBody.new # ResubmitVideoBody |
1285
+
1286
+
1287
+ begin
1288
+ #Resubmits a video to encode.
1289
+ api_instance.resubmit_video(factory_id, resubmit_video_body)
1290
+ rescue TelestreamCloud::Flip::ApiError => e
1291
+ puts "Exception when calling FlipApi->resubmit_video: #{e}"
1292
+ end
1293
+ ```
1294
+
1295
+ ### Parameters
1296
+
1297
+ Name | Type | Description | Notes
1298
+ ------------- | ------------- | ------------- | -------------
1299
+ **factory_id** | **String**| Id of a Factory. |
1300
+ **resubmit_video_body** | [**ResubmitVideoBody**](ResubmitVideoBody.md)| |
1301
+
1302
+ ### Return type
1303
+
1304
+ nil (empty response body)
1305
+
1306
+ ### Authorization
1307
+
1308
+ [api_key](../README.md#api_key)
1309
+
1310
+ ### HTTP request headers
1311
+
1312
+ - **Content-Type**: application/json
1313
+ - **Accept**: application/json
1314
+
1315
+
1316
+
1317
+ # **retry_encoding**
1318
+ > RetriedResponse retry_encoding(id, factory_id)
1319
+
1320
+ Retries a failed encoding.
1321
+
1322
+ ### Example
1323
+ ```ruby
1324
+ # load the gem
1325
+ require 'telestream_cloud_flip'
1326
+ # setup authorization
1327
+ TelestreamCloud::Flip.configure do |config|
1328
+ # Configure API key authorization: api_key
1329
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1330
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1331
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1332
+ end
1333
+
1334
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1335
+
1336
+ id = "id_example" # String | Id of an Encoding.
1337
+
1338
+ factory_id = "factory_id_example" # String | Id of a Factory.
1339
+
1340
+
1341
+ begin
1342
+ #Retries a failed encoding.
1343
+ result = api_instance.retry_encoding(id, factory_id)
1344
+ p result
1345
+ rescue TelestreamCloud::Flip::ApiError => e
1346
+ puts "Exception when calling FlipApi->retry_encoding: #{e}"
1347
+ end
1348
+ ```
1349
+
1350
+ ### Parameters
1351
+
1352
+ Name | Type | Description | Notes
1353
+ ------------- | ------------- | ------------- | -------------
1354
+ **id** | **String**| Id of an Encoding. |
1355
+ **factory_id** | **String**| Id of a Factory. |
1356
+
1357
+ ### Return type
1358
+
1359
+ [**RetriedResponse**](RetriedResponse.md)
1360
+
1361
+ ### Authorization
1362
+
1363
+ [api_key](../README.md#api_key)
1364
+
1365
+ ### HTTP request headers
1366
+
1367
+ - **Content-Type**: application/json
1368
+ - **Accept**: application/json
1369
+
1370
+
1371
+
1372
+ # **signed_encoding_url**
1373
+ > EncodingSignedUrl signed_encoding_url(id, factory_id)
1374
+
1375
+ Returns a signed url pointing to an Encoding.
1376
+
1377
+ ### Example
1378
+ ```ruby
1379
+ # load the gem
1380
+ require 'telestream_cloud_flip'
1381
+ # setup authorization
1382
+ TelestreamCloud::Flip.configure do |config|
1383
+ # Configure API key authorization: api_key
1384
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1385
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1386
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1387
+ end
1388
+
1389
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1390
+
1391
+ id = "id_example" # String | Id of an Encoding.
1392
+
1393
+ factory_id = "factory_id_example" # String | Id of a Factory.
1394
+
1395
+
1396
+ begin
1397
+ #Returns a signed url pointing to an Encoding.
1398
+ result = api_instance.signed_encoding_url(id, factory_id)
1399
+ p result
1400
+ rescue TelestreamCloud::Flip::ApiError => e
1401
+ puts "Exception when calling FlipApi->signed_encoding_url: #{e}"
1402
+ end
1403
+ ```
1404
+
1405
+ ### Parameters
1406
+
1407
+ Name | Type | Description | Notes
1408
+ ------------- | ------------- | ------------- | -------------
1409
+ **id** | **String**| Id of an Encoding. |
1410
+ **factory_id** | **String**| Id of a Factory. |
1411
+
1412
+ ### Return type
1413
+
1414
+ [**EncodingSignedUrl**](EncodingSignedUrl.md)
1415
+
1416
+ ### Authorization
1417
+
1418
+ [api_key](../README.md#api_key)
1419
+
1420
+ ### HTTP request headers
1421
+
1422
+ - **Content-Type**: application/json
1423
+ - **Accept**: application/json
1424
+
1425
+
1426
+
1427
+ # **signed_encoding_urls**
1428
+ > EncodingSignedUrls signed_encoding_urls(id, factory_id)
1429
+
1430
+ Returns a list of signed urls pointing to an Encoding's outputs.
1431
+
1432
+ ### Example
1433
+ ```ruby
1434
+ # load the gem
1435
+ require 'telestream_cloud_flip'
1436
+ # setup authorization
1437
+ TelestreamCloud::Flip.configure do |config|
1438
+ # Configure API key authorization: api_key
1439
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1440
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1441
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1442
+ end
1443
+
1444
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1445
+
1446
+ id = "id_example" # String | Id of an Encoding.
1447
+
1448
+ factory_id = "factory_id_example" # String | Id of a Factory.
1449
+
1450
+
1451
+ begin
1452
+ #Returns a list of signed urls pointing to an Encoding's outputs.
1453
+ result = api_instance.signed_encoding_urls(id, factory_id)
1454
+ p result
1455
+ rescue TelestreamCloud::Flip::ApiError => e
1456
+ puts "Exception when calling FlipApi->signed_encoding_urls: #{e}"
1457
+ end
1458
+ ```
1459
+
1460
+ ### Parameters
1461
+
1462
+ Name | Type | Description | Notes
1463
+ ------------- | ------------- | ------------- | -------------
1464
+ **id** | **String**| Id of an Encoding. |
1465
+ **factory_id** | **String**| Id of a Factory. |
1466
+
1467
+ ### Return type
1468
+
1469
+ [**EncodingSignedUrls**](EncodingSignedUrls.md)
1470
+
1471
+ ### Authorization
1472
+
1473
+ [api_key](../README.md#api_key)
1474
+
1475
+ ### HTTP request headers
1476
+
1477
+ - **Content-Type**: application/json
1478
+ - **Accept**: application/json
1479
+
1480
+
1481
+
1482
+ # **signed_video_url**
1483
+ > SignedVideoUrl signed_video_url(id, factory_id)
1484
+
1485
+ Returns a signed url pointing to a Video.
1486
+
1487
+ ### Example
1488
+ ```ruby
1489
+ # load the gem
1490
+ require 'telestream_cloud_flip'
1491
+ # setup authorization
1492
+ TelestreamCloud::Flip.configure do |config|
1493
+ # Configure API key authorization: api_key
1494
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1495
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1496
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1497
+ end
1498
+
1499
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1500
+
1501
+ id = "id_example" # String | Id of a Video.
1502
+
1503
+ factory_id = "factory_id_example" # String | Id of a Factory.
1504
+
1505
+
1506
+ begin
1507
+ #Returns a signed url pointing to a Video.
1508
+ result = api_instance.signed_video_url(id, factory_id)
1509
+ p result
1510
+ rescue TelestreamCloud::Flip::ApiError => e
1511
+ puts "Exception when calling FlipApi->signed_video_url: #{e}"
1512
+ end
1513
+ ```
1514
+
1515
+ ### Parameters
1516
+
1517
+ Name | Type | Description | Notes
1518
+ ------------- | ------------- | ------------- | -------------
1519
+ **id** | **String**| Id of a Video. |
1520
+ **factory_id** | **String**| Id of a Factory. |
1521
+
1522
+ ### Return type
1523
+
1524
+ [**SignedVideoUrl**](SignedVideoUrl.md)
1525
+
1526
+ ### Authorization
1527
+
1528
+ [api_key](../README.md#api_key)
1529
+
1530
+ ### HTTP request headers
1531
+
1532
+ - **Content-Type**: application/json
1533
+ - **Accept**: application/json
1534
+
1535
+
1536
+
1537
+ # **toggle_factory_sync**
1538
+ > FactorySync toggle_factory_sync(id, factory_sync_body)
1539
+
1540
+ Toggles synchronisation settings.
1541
+
1542
+ ### Example
1543
+ ```ruby
1544
+ # load the gem
1545
+ require 'telestream_cloud_flip'
1546
+ # setup authorization
1547
+ TelestreamCloud::Flip.configure do |config|
1548
+ # Configure API key authorization: api_key
1549
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1550
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1551
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1552
+ end
1553
+
1554
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1555
+
1556
+ id = "id_example" # String | id of the factory
1557
+
1558
+ factory_sync_body = TelestreamCloud::Flip::FactorySyncBody.new # FactorySyncBody |
1559
+
1560
+
1561
+ begin
1562
+ #Toggles synchronisation settings.
1563
+ result = api_instance.toggle_factory_sync(id, factory_sync_body)
1564
+ p result
1565
+ rescue TelestreamCloud::Flip::ApiError => e
1566
+ puts "Exception when calling FlipApi->toggle_factory_sync: #{e}"
1567
+ end
1568
+ ```
1569
+
1570
+ ### Parameters
1571
+
1572
+ Name | Type | Description | Notes
1573
+ ------------- | ------------- | ------------- | -------------
1574
+ **id** | **String**| id of the factory |
1575
+ **factory_sync_body** | [**FactorySyncBody**](FactorySyncBody.md)| |
1576
+
1577
+ ### Return type
1578
+
1579
+ [**FactorySync**](FactorySync.md)
1580
+
1581
+ ### Authorization
1582
+
1583
+ [api_key](../README.md#api_key)
1584
+
1585
+ ### HTTP request headers
1586
+
1587
+ - **Content-Type**: application/json
1588
+ - **Accept**: application/json
1589
+
1590
+
1591
+
1592
+ # **update_encoding**
1593
+ > Encoding update_encoding(id, factory_id, update_encoding_body, opts)
1594
+
1595
+ Updates an Encoding
1596
+
1597
+ ### Example
1598
+ ```ruby
1599
+ # load the gem
1600
+ require 'telestream_cloud_flip'
1601
+ # setup authorization
1602
+ TelestreamCloud::Flip.configure do |config|
1603
+ # Configure API key authorization: api_key
1604
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1605
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1606
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1607
+ end
1608
+
1609
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1610
+
1611
+ id = "id_example" # String | Id of an Encoding.
1612
+
1613
+ factory_id = "factory_id_example" # String | Id of a Factory.
1614
+
1615
+ update_encoding_body = TelestreamCloud::Flip::UpdateEncodingBody.new # UpdateEncodingBody |
1616
+
1617
+ opts = {
1618
+ screenshots: true, # BOOLEAN | Determines whether the response will include screenshots. By default this is not set.
1619
+ precise_status: true # BOOLEAN | Determines whether the response will include a precise status. By default this is not set.
1620
+ }
1621
+
1622
+ begin
1623
+ #Updates an Encoding
1624
+ result = api_instance.update_encoding(id, factory_id, update_encoding_body, opts)
1625
+ p result
1626
+ rescue TelestreamCloud::Flip::ApiError => e
1627
+ puts "Exception when calling FlipApi->update_encoding: #{e}"
1628
+ end
1629
+ ```
1630
+
1631
+ ### Parameters
1632
+
1633
+ Name | Type | Description | Notes
1634
+ ------------- | ------------- | ------------- | -------------
1635
+ **id** | **String**| Id of an Encoding. |
1636
+ **factory_id** | **String**| Id of a Factory. |
1637
+ **update_encoding_body** | [**UpdateEncodingBody**](UpdateEncodingBody.md)| |
1638
+ **screenshots** | **BOOLEAN**| Determines whether the response will include screenshots. By default this is not set. | [optional]
1639
+ **precise_status** | **BOOLEAN**| Determines whether the response will include a precise status. By default this is not set. | [optional]
1640
+
1641
+ ### Return type
1642
+
1643
+ [**Encoding**](Encoding.md)
1644
+
1645
+ ### Authorization
1646
+
1647
+ [api_key](../README.md#api_key)
1648
+
1649
+ ### HTTP request headers
1650
+
1651
+ - **Content-Type**: application/json
1652
+ - **Accept**: application/json
1653
+
1654
+
1655
+
1656
+ # **update_factory**
1657
+ > Factory update_factory(id, update_factory_body, opts)
1658
+
1659
+ Updates a Factory's settings. Returns a Factory object.
1660
+
1661
+ ### Example
1662
+ ```ruby
1663
+ # load the gem
1664
+ require 'telestream_cloud_flip'
1665
+ # setup authorization
1666
+ TelestreamCloud::Flip.configure do |config|
1667
+ # Configure API key authorization: api_key
1668
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1669
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1670
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1671
+ end
1672
+
1673
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1674
+
1675
+ id = "id_example" # String | id of the factory
1676
+
1677
+ update_factory_body = TelestreamCloud::Flip::FactoryBody.new # FactoryBody |
1678
+
1679
+ opts = {
1680
+ with_storage_provider: true # BOOLEAN | if set to `true`, results will include a storage provider's id
1681
+ }
1682
+
1683
+ begin
1684
+ #Updates a Factory's settings. Returns a Factory object.
1685
+ result = api_instance.update_factory(id, update_factory_body, opts)
1686
+ p result
1687
+ rescue TelestreamCloud::Flip::ApiError => e
1688
+ puts "Exception when calling FlipApi->update_factory: #{e}"
1689
+ end
1690
+ ```
1691
+
1692
+ ### Parameters
1693
+
1694
+ Name | Type | Description | Notes
1695
+ ------------- | ------------- | ------------- | -------------
1696
+ **id** | **String**| id of the factory |
1697
+ **update_factory_body** | [**FactoryBody**](FactoryBody.md)| |
1698
+ **with_storage_provider** | **BOOLEAN**| if set to `true`, results will include a storage provider's id | [optional]
1699
+
1700
+ ### Return type
1701
+
1702
+ [**Factory**](Factory.md)
1703
+
1704
+ ### Authorization
1705
+
1706
+ [api_key](../README.md#api_key)
1707
+
1708
+ ### HTTP request headers
1709
+
1710
+ - **Content-Type**: application/json
1711
+ - **Accept**: application/json
1712
+
1713
+
1714
+
1715
+ # **update_notifications**
1716
+ > CloudNotificationSettings update_notifications(factory_id, cloud_notification_settings_body)
1717
+
1718
+ Updates a Factory's notification settings.
1719
+
1720
+ ### Example
1721
+ ```ruby
1722
+ # load the gem
1723
+ require 'telestream_cloud_flip'
1724
+ # setup authorization
1725
+ TelestreamCloud::Flip.configure do |config|
1726
+ # Configure API key authorization: api_key
1727
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1728
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1729
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1730
+ end
1731
+
1732
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1733
+
1734
+ factory_id = "factory_id_example" # String | Id of a Factory.
1735
+
1736
+ cloud_notification_settings_body = TelestreamCloud::Flip::CloudNotificationSettings.new # CloudNotificationSettings |
1737
+
1738
+
1739
+ begin
1740
+ #Updates a Factory's notification settings.
1741
+ result = api_instance.update_notifications(factory_id, cloud_notification_settings_body)
1742
+ p result
1743
+ rescue TelestreamCloud::Flip::ApiError => e
1744
+ puts "Exception when calling FlipApi->update_notifications: #{e}"
1745
+ end
1746
+ ```
1747
+
1748
+ ### Parameters
1749
+
1750
+ Name | Type | Description | Notes
1751
+ ------------- | ------------- | ------------- | -------------
1752
+ **factory_id** | **String**| Id of a Factory. |
1753
+ **cloud_notification_settings_body** | [**CloudNotificationSettings**](CloudNotificationSettings.md)| |
1754
+
1755
+ ### Return type
1756
+
1757
+ [**CloudNotificationSettings**](CloudNotificationSettings.md)
1758
+
1759
+ ### Authorization
1760
+
1761
+ [api_key](../README.md#api_key)
1762
+
1763
+ ### HTTP request headers
1764
+
1765
+ - **Content-Type**: application/json
1766
+ - **Accept**: application/json
1767
+
1768
+
1769
+
1770
+ # **update_profile**
1771
+ > Profile update_profile(id, factory_id, update_profile_body, opts)
1772
+
1773
+ Updates a given Profile
1774
+
1775
+ ### Example
1776
+ ```ruby
1777
+ # load the gem
1778
+ require 'telestream_cloud_flip'
1779
+ # setup authorization
1780
+ TelestreamCloud::Flip.configure do |config|
1781
+ # Configure API key authorization: api_key
1782
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1783
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1784
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1785
+ end
1786
+
1787
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1788
+
1789
+ id = "id_example" # String |
1790
+
1791
+ factory_id = "factory_id_example" # String | Id of a Factory.
1792
+
1793
+ update_profile_body = TelestreamCloud::Flip::ProfileBody.new # ProfileBody |
1794
+
1795
+ opts = {
1796
+ exclude_advanced_services: true, # BOOLEAN |
1797
+ expand: true # BOOLEAN | If expand option is set Profile objects will contain all command parameters, even if their value is default. By default this is not set.
1798
+ }
1799
+
1800
+ begin
1801
+ #Updates a given Profile
1802
+ result = api_instance.update_profile(id, factory_id, update_profile_body, opts)
1803
+ p result
1804
+ rescue TelestreamCloud::Flip::ApiError => e
1805
+ puts "Exception when calling FlipApi->update_profile: #{e}"
1806
+ end
1807
+ ```
1808
+
1809
+ ### Parameters
1810
+
1811
+ Name | Type | Description | Notes
1812
+ ------------- | ------------- | ------------- | -------------
1813
+ **id** | **String**| |
1814
+ **factory_id** | **String**| Id of a Factory. |
1815
+ **update_profile_body** | [**ProfileBody**](ProfileBody.md)| |
1816
+ **exclude_advanced_services** | **BOOLEAN**| | [optional]
1817
+ **expand** | **BOOLEAN**| If expand option is set Profile objects will contain all command parameters, even if their value is default. By default this is not set. | [optional]
1818
+
1819
+ ### Return type
1820
+
1821
+ [**Profile**](Profile.md)
1822
+
1823
+ ### Authorization
1824
+
1825
+ [api_key](../README.md#api_key)
1826
+
1827
+ ### HTTP request headers
1828
+
1829
+ - **Content-Type**: application/json
1830
+ - **Accept**: application/json
1831
+
1832
+
1833
+
1834
+ # **upload_video**
1835
+ > UploadSession upload_video(factory_id, video_upload_body)
1836
+
1837
+ Creates an upload session.
1838
+
1839
+ ### Example
1840
+ ```ruby
1841
+ # load the gem
1842
+ require 'telestream_cloud_flip'
1843
+ # setup authorization
1844
+ TelestreamCloud::Flip.configure do |config|
1845
+ # Configure API key authorization: api_key
1846
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1847
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1848
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1849
+ end
1850
+
1851
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1852
+
1853
+ factory_id = "factory_id_example" # String | Id of a Factory.
1854
+
1855
+ video_upload_body = TelestreamCloud::Flip::VideoUploadBody.new # VideoUploadBody |
1856
+
1857
+
1858
+ begin
1859
+ #Creates an upload session.
1860
+ result = api_instance.upload_video(factory_id, video_upload_body)
1861
+ p result
1862
+ rescue TelestreamCloud::Flip::ApiError => e
1863
+ puts "Exception when calling FlipApi->upload_video: #{e}"
1864
+ end
1865
+ ```
1866
+
1867
+ ### Parameters
1868
+
1869
+ Name | Type | Description | Notes
1870
+ ------------- | ------------- | ------------- | -------------
1871
+ **factory_id** | **String**| Id of a Factory. |
1872
+ **video_upload_body** | [**VideoUploadBody**](VideoUploadBody.md)| |
1873
+
1874
+ ### Return type
1875
+
1876
+ [**UploadSession**](UploadSession.md)
1877
+
1878
+ ### Authorization
1879
+
1880
+ [api_key](../README.md#api_key)
1881
+
1882
+ ### HTTP request headers
1883
+
1884
+ - **Content-Type**: application/json
1885
+ - **Accept**: application/json
1886
+
1887
+
1888
+
1889
+ # **video**
1890
+ > Video video(id, factory_id)
1891
+
1892
+ Returns a Video object.
1893
+
1894
+ ### Example
1895
+ ```ruby
1896
+ # load the gem
1897
+ require 'telestream_cloud_flip'
1898
+ # setup authorization
1899
+ TelestreamCloud::Flip.configure do |config|
1900
+ # Configure API key authorization: api_key
1901
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1902
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1903
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1904
+ end
1905
+
1906
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1907
+
1908
+ id = "id_example" # String | Id of a Video.
1909
+
1910
+ factory_id = "factory_id_example" # String | Id of a Factory.
1911
+
1912
+
1913
+ begin
1914
+ #Returns a Video object.
1915
+ result = api_instance.video(id, factory_id)
1916
+ p result
1917
+ rescue TelestreamCloud::Flip::ApiError => e
1918
+ puts "Exception when calling FlipApi->video: #{e}"
1919
+ end
1920
+ ```
1921
+
1922
+ ### Parameters
1923
+
1924
+ Name | Type | Description | Notes
1925
+ ------------- | ------------- | ------------- | -------------
1926
+ **id** | **String**| Id of a Video. |
1927
+ **factory_id** | **String**| Id of a Factory. |
1928
+
1929
+ ### Return type
1930
+
1931
+ [**Video**](Video.md)
1932
+
1933
+ ### Authorization
1934
+
1935
+ [api_key](../README.md#api_key)
1936
+
1937
+ ### HTTP request headers
1938
+
1939
+ - **Content-Type**: application/json
1940
+ - **Accept**: application/json
1941
+
1942
+
1943
+
1944
+ # **video_encodings**
1945
+ > PaginatedEncodingsCollection video_encodings(id, factory_id, opts)
1946
+
1947
+ Returns a list of Encodings that belong to a Video.
1948
+
1949
+ ### Example
1950
+ ```ruby
1951
+ # load the gem
1952
+ require 'telestream_cloud_flip'
1953
+ # setup authorization
1954
+ TelestreamCloud::Flip.configure do |config|
1955
+ # Configure API key authorization: api_key
1956
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
1957
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1958
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
1959
+ end
1960
+
1961
+ api_instance = TelestreamCloud::Flip::FlipApi.new
1962
+
1963
+ id = "id_example" # String | Id of a Video.
1964
+
1965
+ factory_id = "factory_id_example" # String | Id of a Factory.
1966
+
1967
+ opts = {
1968
+ page: 56, # Integer | A page to be fetched. Default is `1`.
1969
+ per_page: 56, # Integer | A number of results per page. Default is `100`.
1970
+ screenshots: true, # BOOLEAN | Determines whether the response will include screenshots. By default this is not set.
1971
+ precise_status: true # BOOLEAN | Determines whether the response will include a precise status. By default this is not set.
1972
+ }
1973
+
1974
+ begin
1975
+ #Returns a list of Encodings that belong to a Video.
1976
+ result = api_instance.video_encodings(id, factory_id, opts)
1977
+ p result
1978
+ rescue TelestreamCloud::Flip::ApiError => e
1979
+ puts "Exception when calling FlipApi->video_encodings: #{e}"
1980
+ end
1981
+ ```
1982
+
1983
+ ### Parameters
1984
+
1985
+ Name | Type | Description | Notes
1986
+ ------------- | ------------- | ------------- | -------------
1987
+ **id** | **String**| Id of a Video. |
1988
+ **factory_id** | **String**| Id of a Factory. |
1989
+ **page** | **Integer**| A page to be fetched. Default is `1`. | [optional]
1990
+ **per_page** | **Integer**| A number of results per page. Default is `100`. | [optional]
1991
+ **screenshots** | **BOOLEAN**| Determines whether the response will include screenshots. By default this is not set. | [optional]
1992
+ **precise_status** | **BOOLEAN**| Determines whether the response will include a precise status. By default this is not set. | [optional]
1993
+
1994
+ ### Return type
1995
+
1996
+ [**PaginatedEncodingsCollection**](PaginatedEncodingsCollection.md)
1997
+
1998
+ ### Authorization
1999
+
2000
+ [api_key](../README.md#api_key)
2001
+
2002
+ ### HTTP request headers
2003
+
2004
+ - **Content-Type**: application/json
2005
+ - **Accept**: application/json
2006
+
2007
+
2008
+
2009
+ # **video_metadata**
2010
+ > VideoMetadata video_metadata(id, factory_id)
2011
+
2012
+ Returns a Video's metadata
2013
+
2014
+ ### Example
2015
+ ```ruby
2016
+ # load the gem
2017
+ require 'telestream_cloud_flip'
2018
+ # setup authorization
2019
+ TelestreamCloud::Flip.configure do |config|
2020
+ # Configure API key authorization: api_key
2021
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
2022
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2023
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
2024
+ end
2025
+
2026
+ api_instance = TelestreamCloud::Flip::FlipApi.new
2027
+
2028
+ id = "id_example" # String | Id of a Video.
2029
+
2030
+ factory_id = "factory_id_example" # String | Id of a Factory.
2031
+
2032
+
2033
+ begin
2034
+ #Returns a Video's metadata
2035
+ result = api_instance.video_metadata(id, factory_id)
2036
+ p result
2037
+ rescue TelestreamCloud::Flip::ApiError => e
2038
+ puts "Exception when calling FlipApi->video_metadata: #{e}"
2039
+ end
2040
+ ```
2041
+
2042
+ ### Parameters
2043
+
2044
+ Name | Type | Description | Notes
2045
+ ------------- | ------------- | ------------- | -------------
2046
+ **id** | **String**| Id of a Video. |
2047
+ **factory_id** | **String**| Id of a Factory. |
2048
+
2049
+ ### Return type
2050
+
2051
+ [**VideoMetadata**](VideoMetadata.md)
2052
+
2053
+ ### Authorization
2054
+
2055
+ [api_key](../README.md#api_key)
2056
+
2057
+ ### HTTP request headers
2058
+
2059
+ - **Content-Type**: application/json
2060
+ - **Accept**: application/json
2061
+
2062
+
2063
+
2064
+ # **videos**
2065
+ > PaginatedVideoCollection videos(factory_id, opts)
2066
+
2067
+ Returns a collection of Video objects.
2068
+
2069
+ ### Example
2070
+ ```ruby
2071
+ # load the gem
2072
+ require 'telestream_cloud_flip'
2073
+ # setup authorization
2074
+ TelestreamCloud::Flip.configure do |config|
2075
+ # Configure API key authorization: api_key
2076
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
2077
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2078
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
2079
+ end
2080
+
2081
+ api_instance = TelestreamCloud::Flip::FlipApi.new
2082
+
2083
+ factory_id = "factory_id_example" # String | Id of a Factory.
2084
+
2085
+ opts = {
2086
+ page: 56, # Integer | A page to be fetched. Default is `1`.
2087
+ per_page: 56 # Integer | A number of results per page. Default is `100`.
2088
+ }
2089
+
2090
+ begin
2091
+ #Returns a collection of Video objects.
2092
+ result = api_instance.videos(factory_id, opts)
2093
+ p result
2094
+ rescue TelestreamCloud::Flip::ApiError => e
2095
+ puts "Exception when calling FlipApi->videos: #{e}"
2096
+ end
2097
+ ```
2098
+
2099
+ ### Parameters
2100
+
2101
+ Name | Type | Description | Notes
2102
+ ------------- | ------------- | ------------- | -------------
2103
+ **factory_id** | **String**| Id of a Factory. |
2104
+ **page** | **Integer**| A page to be fetched. Default is `1`. | [optional]
2105
+ **per_page** | **Integer**| A number of results per page. Default is `100`. | [optional]
2106
+
2107
+ ### Return type
2108
+
2109
+ [**PaginatedVideoCollection**](PaginatedVideoCollection.md)
2110
+
2111
+ ### Authorization
2112
+
2113
+ [api_key](../README.md#api_key)
2114
+
2115
+ ### HTTP request headers
2116
+
2117
+ - **Content-Type**: application/json
2118
+ - **Accept**: application/json
2119
+
2120
+
2121
+
2122
+ # **workflows**
2123
+ > PaginatedWorkflowsCollection workflows(factory_id, opts)
2124
+
2125
+ Returns a collection of Workflows that belong to a Factory.
2126
+
2127
+ ### Example
2128
+ ```ruby
2129
+ # load the gem
2130
+ require 'telestream_cloud_flip'
2131
+ # setup authorization
2132
+ TelestreamCloud::Flip.configure do |config|
2133
+ # Configure API key authorization: api_key
2134
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
2135
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2136
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
2137
+ end
2138
+
2139
+ api_instance = TelestreamCloud::Flip::FlipApi.new
2140
+
2141
+ factory_id = "factory_id_example" # String | Id of a Factory.
2142
+
2143
+ opts = {
2144
+ page: 56, # Integer | A page to be fetched. Default is `1`.
2145
+ per_page: 56 # Integer | A number of results per page. Default is `100`.
2146
+ }
2147
+
2148
+ begin
2149
+ #Returns a collection of Workflows that belong to a Factory.
2150
+ result = api_instance.workflows(factory_id, opts)
2151
+ p result
2152
+ rescue TelestreamCloud::Flip::ApiError => e
2153
+ puts "Exception when calling FlipApi->workflows: #{e}"
2154
+ end
2155
+ ```
2156
+
2157
+ ### Parameters
2158
+
2159
+ Name | Type | Description | Notes
2160
+ ------------- | ------------- | ------------- | -------------
2161
+ **factory_id** | **String**| Id of a Factory. |
2162
+ **page** | **Integer**| A page to be fetched. Default is `1`. | [optional]
2163
+ **per_page** | **Integer**| A number of results per page. Default is `100`. | [optional]
2164
+
2165
+ ### Return type
2166
+
2167
+ [**PaginatedWorkflowsCollection**](PaginatedWorkflowsCollection.md)
2168
+
2169
+ ### Authorization
2170
+
2171
+ [api_key](../README.md#api_key)
2172
+
2173
+ ### HTTP request headers
2174
+
2175
+ - **Content-Type**: application/json
2176
+ - **Accept**: application/json
2177
+
2178
+
2179
+