telestream_cloud_qc 2.0.0 → 2.0.4

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 (75) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +48 -1
  3. data/docs/Alert.md +2 -2
  4. data/docs/Container.md +1 -1
  5. data/docs/InlineResponse200.md +9 -0
  6. data/docs/InlineResponse422.md +8 -0
  7. data/docs/Job.md +10 -0
  8. data/docs/JobData.md +1 -0
  9. data/docs/JobDetails.md +2 -0
  10. data/docs/JobDetailsResult.md +1 -0
  11. data/docs/Project.md +1 -1
  12. data/docs/QcApi.md +129 -26
  13. data/docs/Summary.md +13 -0
  14. data/docs/SynchronizationEvent.md +10 -0
  15. data/docs/Template.md +12 -0
  16. data/docs/VideoStream.md +1 -1
  17. data/lib/telestream_cloud_qc.rb +7 -2
  18. data/lib/telestream_cloud_qc/api/qc_api.rb +119 -15
  19. data/lib/telestream_cloud_qc/api_client.rb +2 -2
  20. data/lib/telestream_cloud_qc/api_error.rb +2 -2
  21. data/lib/telestream_cloud_qc/configuration.rb +3 -3
  22. data/lib/telestream_cloud_qc/models/alert.rb +4 -4
  23. data/lib/telestream_cloud_qc/models/audio_stream.rb +2 -2
  24. data/lib/telestream_cloud_qc/models/container.rb +3 -3
  25. data/lib/telestream_cloud_qc/models/data.rb +2 -2
  26. data/lib/telestream_cloud_qc/models/data_1.rb +2 -2
  27. data/lib/telestream_cloud_qc/models/extra_file.rb +2 -2
  28. data/lib/telestream_cloud_qc/models/inline_response_200.rb +197 -0
  29. data/lib/telestream_cloud_qc/models/inline_response_422.rb +188 -0
  30. data/lib/telestream_cloud_qc/models/job.rb +95 -5
  31. data/lib/telestream_cloud_qc/models/job_data.rb +16 -6
  32. data/lib/telestream_cloud_qc/models/job_details.rb +26 -6
  33. data/lib/telestream_cloud_qc/models/job_details_result.rb +17 -6
  34. data/lib/telestream_cloud_qc/models/jobs_collection.rb +2 -2
  35. data/lib/telestream_cloud_qc/models/media.rb +2 -2
  36. data/lib/telestream_cloud_qc/models/options.rb +2 -2
  37. data/lib/telestream_cloud_qc/models/project.rb +6 -4
  38. data/lib/telestream_cloud_qc/models/proxy.rb +2 -2
  39. data/lib/telestream_cloud_qc/models/summary.rb +236 -0
  40. data/lib/telestream_cloud_qc/models/synchronization_event.rb +206 -0
  41. data/lib/telestream_cloud_qc/models/template.rb +228 -0
  42. data/lib/telestream_cloud_qc/models/upload_session.rb +2 -2
  43. data/lib/telestream_cloud_qc/models/video_stream.rb +3 -3
  44. data/lib/telestream_cloud_qc/models/video_upload_body.rb +2 -2
  45. data/lib/telestream_cloud_qc/uploader.rb +12 -0
  46. data/lib/telestream_cloud_qc/version.rb +3 -3
  47. data/spec/api/qc_api_spec.rb +26 -2
  48. data/spec/api_client_spec.rb +2 -2
  49. data/spec/configuration_spec.rb +2 -2
  50. data/spec/models/alert_spec.rb +2 -2
  51. data/spec/models/audio_stream_spec.rb +2 -2
  52. data/spec/models/container_spec.rb +2 -2
  53. data/spec/models/data_1_spec.rb +2 -2
  54. data/spec/models/data_spec.rb +2 -2
  55. data/spec/models/extra_file_spec.rb +2 -2
  56. data/spec/models/inline_response_200_spec.rb +48 -0
  57. data/spec/models/inline_response_422_spec.rb +42 -0
  58. data/spec/models/job_data_spec.rb +8 -2
  59. data/spec/models/job_details_result_spec.rb +8 -2
  60. data/spec/models/job_details_spec.rb +14 -2
  61. data/spec/models/job_spec.rb +63 -3
  62. data/spec/models/jobs_collection_spec.rb +2 -2
  63. data/spec/models/media_spec.rb +2 -2
  64. data/spec/models/options_spec.rb +2 -2
  65. data/spec/models/project_spec.rb +2 -2
  66. data/spec/models/proxy_spec.rb +2 -2
  67. data/spec/models/summary_spec.rb +72 -0
  68. data/spec/models/synchronization_event_spec.rb +54 -0
  69. data/spec/models/template_spec.rb +66 -0
  70. data/spec/models/upload_session_spec.rb +2 -2
  71. data/spec/models/video_stream_spec.rb +2 -2
  72. data/spec/models/video_upload_body_spec.rb +2 -2
  73. data/spec/spec_helper.rb +2 -2
  74. data/telestream_cloud_qc.gemspec +2 -2
  75. metadata +35 -15
data/docs/Summary.md ADDED
@@ -0,0 +1,13 @@
1
+ # TelestreamCloud::Qc::Summary
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **num_sync_events** | **Integer** | Total number of synchronization detection events considered for summary. | [optional]
7
+ **avsync_analysis** | **String** | | [optional]
8
+ **avsync_inference** | **String** | | [optional]
9
+ **confidence** | **Float** | Confidence of avsync_inference and avsync_analysis. 'confidence' is a value between 0 and 100. confidence >= 90 - Very high confidence. 80 <= confidence < 90 - High confidence. 70 <= confidence < 80 - Should be reviewed by human. | [optional]
10
+ **skew** | **Integer** | Skew estimate in #frames; Skew is the number of frames that audio is delayed to the video | [optional]
11
+ **total_length** | **Float** | | [optional]
12
+
13
+
@@ -0,0 +1,10 @@
1
+ # TelestreamCloud::Qc::SynchronizationEvent
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **timestamp** | **String** | | [optional]
7
+ **skew** | **Integer** | | [optional]
8
+ **result** | **String** | | [optional]
9
+
10
+
data/docs/Template.md ADDED
@@ -0,0 +1,12 @@
1
+ # TelestreamCloud::Qc::Template
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | | [optional]
7
+ **type** | **String** | | [optional]
8
+ **description** | **String** | | [optional]
9
+ **produces** | **Hash<String, String>** | | [optional]
10
+ **takes** | **Hash<String, String>** | | [optional]
11
+
12
+
data/docs/VideoStream.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **duration** | **Integer** | Video stream duration measured in seconds. | [optional]
6
+ **duration** | **Float** | Video stream duration measured in seconds. | [optional]
7
7
  **codec** | **String** | | [optional]
8
8
  **width** | **Integer** | | [optional]
9
9
  **height** | **Integer** | | [optional]
@@ -6,10 +6,10 @@ end
6
6
 
7
7
  #QC API
8
8
 
9
- OpenAPI spec version: 2.0.0
9
+ OpenAPI spec version: 2.0.3
10
10
  Contact: cloudsupport@telestream.net
11
11
  Generated by: https://github.com/swagger-api/swagger-codegen.git
12
- Swagger Codegen version: 2.3.0
12
+ Swagger Codegen version: 2.3.1
13
13
 
14
14
  =end
15
15
 
@@ -26,6 +26,8 @@ require 'telestream_cloud_qc/models/container'
26
26
  require 'telestream_cloud_qc/models/data'
27
27
  require 'telestream_cloud_qc/models/data_1'
28
28
  require 'telestream_cloud_qc/models/extra_file'
29
+ require 'telestream_cloud_qc/models/inline_response_200'
30
+ require 'telestream_cloud_qc/models/inline_response_422'
29
31
  require 'telestream_cloud_qc/models/job'
30
32
  require 'telestream_cloud_qc/models/job_data'
31
33
  require 'telestream_cloud_qc/models/job_details'
@@ -35,6 +37,9 @@ require 'telestream_cloud_qc/models/media'
35
37
  require 'telestream_cloud_qc/models/options'
36
38
  require 'telestream_cloud_qc/models/project'
37
39
  require 'telestream_cloud_qc/models/proxy'
40
+ require 'telestream_cloud_qc/models/summary'
41
+ require 'telestream_cloud_qc/models/synchronization_event'
42
+ require 'telestream_cloud_qc/models/template'
38
43
  require 'telestream_cloud_qc/models/upload_session'
39
44
  require 'telestream_cloud_qc/models/video_stream'
40
45
  require 'telestream_cloud_qc/models/video_upload_body'
@@ -3,10 +3,10 @@
3
3
 
4
4
  #QC API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.3
7
7
  Contact: cloudsupport@telestream.net
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.0
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -67,7 +67,7 @@ module TelestreamCloud::Qc
67
67
 
68
68
  # http body (model)
69
69
  post_body = nil
70
- auth_names = ['apiKey']
70
+ auth_names = ['api_key']
71
71
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
72
72
  :header_params => header_params,
73
73
  :query_params => query_params,
@@ -127,7 +127,7 @@ module TelestreamCloud::Qc
127
127
 
128
128
  # http body (model)
129
129
  post_body = @api_client.object_to_http_body(data)
130
- auth_names = ['apiKey']
130
+ auth_names = ['api_key']
131
131
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
132
132
  :header_params => header_params,
133
133
  :query_params => query_params,
@@ -178,7 +178,7 @@ module TelestreamCloud::Qc
178
178
 
179
179
  # http body (model)
180
180
  post_body = @api_client.object_to_http_body(opts[:'data'])
181
- auth_names = ['apiKey']
181
+ auth_names = ['api_key']
182
182
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
183
183
  :header_params => header_params,
184
184
  :query_params => query_params,
@@ -239,7 +239,7 @@ module TelestreamCloud::Qc
239
239
 
240
240
  # http body (model)
241
241
  post_body = nil
242
- auth_names = ['apiKey']
242
+ auth_names = ['api_key']
243
243
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
244
244
  :header_params => header_params,
245
245
  :query_params => query_params,
@@ -294,7 +294,7 @@ module TelestreamCloud::Qc
294
294
 
295
295
  # http body (model)
296
296
  post_body = nil
297
- auth_names = ['apiKey']
297
+ auth_names = ['api_key']
298
298
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
299
299
  :header_params => header_params,
300
300
  :query_params => query_params,
@@ -308,6 +308,61 @@ module TelestreamCloud::Qc
308
308
  return data, status_code, headers
309
309
  end
310
310
 
311
+ # Import Vidchecker template
312
+ #
313
+ # @param [Hash] opts the optional parameters
314
+ # @option opts [String] :name
315
+ # @option opts [File] :file
316
+ # @return [Array<InlineResponse200>]
317
+ def import_template(opts = {})
318
+ data, _status_code, _headers = import_template_with_http_info(opts)
319
+ return data
320
+ end
321
+
322
+ # Import Vidchecker template
323
+ #
324
+ # @param [Hash] opts the optional parameters
325
+ # @option opts [String] :name
326
+ # @option opts [File] :file
327
+ # @return [Array<(Array<InlineResponse200>, Fixnum, Hash)>] Array<InlineResponse200> data, response status code and response headers
328
+ def import_template_with_http_info(opts = {})
329
+ if @api_client.config.debugging
330
+ @api_client.config.logger.debug "Calling API: QcApi.import_template ..."
331
+ end
332
+ # resource path
333
+ local_var_path = "/projects/import.json"
334
+
335
+ # query parameters
336
+ query_params = {}
337
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
338
+
339
+ # header parameters
340
+ header_params = {}
341
+ # HTTP header 'Accept' (if needed)
342
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
343
+ # HTTP header 'Content-Type'
344
+ header_params['Content-Type'] = @api_client.select_header_content_type(['text/xml'])
345
+
346
+ # form parameters
347
+ form_params = {}
348
+ form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
349
+
350
+ # http body (model)
351
+ post_body = nil
352
+ auth_names = ['api_key']
353
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
354
+ :header_params => header_params,
355
+ :query_params => query_params,
356
+ :form_params => form_params,
357
+ :body => post_body,
358
+ :auth_names => auth_names,
359
+ :return_type => 'Array<InlineResponse200>')
360
+ if @api_client.config.debugging
361
+ @api_client.config.logger.debug "API called: QcApi#import_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
362
+ end
363
+ return data, status_code, headers
364
+ end
365
+
311
366
  # Get jobs form projects
312
367
  #
313
368
  # @param project_id A unique identifier of a Project.
@@ -361,7 +416,7 @@ module TelestreamCloud::Qc
361
416
 
362
417
  # http body (model)
363
418
  post_body = nil
364
- auth_names = ['apiKey']
419
+ auth_names = ['api_key']
365
420
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
366
421
  :header_params => header_params,
367
422
  :query_params => query_params,
@@ -410,7 +465,7 @@ module TelestreamCloud::Qc
410
465
 
411
466
  # http body (model)
412
467
  post_body = nil
413
- auth_names = ['apiKey']
468
+ auth_names = ['api_key']
414
469
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
415
470
  :header_params => header_params,
416
471
  :query_params => query_params,
@@ -467,7 +522,7 @@ module TelestreamCloud::Qc
467
522
 
468
523
  # http body (model)
469
524
  post_body = @api_client.object_to_http_body(opts[:'data'])
470
- auth_names = ['apiKey']
525
+ auth_names = ['api_key']
471
526
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
472
527
  :header_params => header_params,
473
528
  :query_params => query_params,
@@ -528,7 +583,7 @@ module TelestreamCloud::Qc
528
583
 
529
584
  # http body (model)
530
585
  post_body = nil
531
- auth_names = ['apiKey']
586
+ auth_names = ['api_key']
532
587
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
533
588
  :header_params => header_params,
534
589
  :query_params => query_params,
@@ -589,7 +644,7 @@ module TelestreamCloud::Qc
589
644
 
590
645
  # http body (model)
591
646
  post_body = nil
592
- auth_names = ['apiKey']
647
+ auth_names = ['api_key']
593
648
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
594
649
  :header_params => header_params,
595
650
  :query_params => query_params,
@@ -643,7 +698,7 @@ module TelestreamCloud::Qc
643
698
 
644
699
  # http body (model)
645
700
  post_body = nil
646
- auth_names = ['apiKey']
701
+ auth_names = ['api_key']
647
702
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
648
703
  :header_params => header_params,
649
704
  :query_params => query_params,
@@ -703,7 +758,7 @@ module TelestreamCloud::Qc
703
758
 
704
759
  # http body (model)
705
760
  post_body = nil
706
- auth_names = ['apiKey']
761
+ auth_names = ['api_key']
707
762
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
708
763
  :header_params => header_params,
709
764
  :query_params => query_params,
@@ -717,6 +772,55 @@ module TelestreamCloud::Qc
717
772
  return data, status_code, headers
718
773
  end
719
774
 
775
+ # List all templates
776
+ #
777
+ # @param [Hash] opts the optional parameters
778
+ # @return [Array<Template>]
779
+ def templates(opts = {})
780
+ data, _status_code, _headers = templates_with_http_info(opts)
781
+ return data
782
+ end
783
+
784
+ # List all templates
785
+ #
786
+ # @param [Hash] opts the optional parameters
787
+ # @return [Array<(Array<Template>, Fixnum, Hash)>] Array<Template> data, response status code and response headers
788
+ def templates_with_http_info(opts = {})
789
+ if @api_client.config.debugging
790
+ @api_client.config.logger.debug "Calling API: QcApi.templates ..."
791
+ end
792
+ # resource path
793
+ local_var_path = "/templates.json"
794
+
795
+ # query parameters
796
+ query_params = {}
797
+
798
+ # header parameters
799
+ header_params = {}
800
+ # HTTP header 'Accept' (if needed)
801
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
802
+ # HTTP header 'Content-Type'
803
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
804
+
805
+ # form parameters
806
+ form_params = {}
807
+
808
+ # http body (model)
809
+ post_body = nil
810
+ auth_names = ['api_key']
811
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
812
+ :header_params => header_params,
813
+ :query_params => query_params,
814
+ :form_params => form_params,
815
+ :body => post_body,
816
+ :auth_names => auth_names,
817
+ :return_type => 'Array<Template>')
818
+ if @api_client.config.debugging
819
+ @api_client.config.logger.debug "API called: QcApi#templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
820
+ end
821
+ return data, status_code, headers
822
+ end
823
+
720
824
  # Creates an upload session
721
825
  #
722
826
  # @param project_id A unique identifier of a Project.
@@ -764,7 +868,7 @@ module TelestreamCloud::Qc
764
868
 
765
869
  # http body (model)
766
870
  post_body = @api_client.object_to_http_body(video_upload_body)
767
- auth_names = ['apiKey']
871
+ auth_names = ['api_key']
768
872
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
769
873
  :header_params => header_params,
770
874
  :query_params => query_params,
@@ -3,10 +3,10 @@
3
3
 
4
4
  #QC API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.3
7
7
  Contact: cloudsupport@telestream.net
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.0
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #QC API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.3
7
7
  Contact: cloudsupport@telestream.net
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.0
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #QC API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.3
7
7
  Contact: cloudsupport@telestream.net
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.0
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -196,7 +196,7 @@ module TelestreamCloud::Qc
196
196
  # Returns Auth Settings hash for api client.
197
197
  def auth_settings
198
198
  {
199
- 'apiKey' =>
199
+ 'api_key' =>
200
200
  {
201
201
  type: 'api_key',
202
202
  in: 'header',
@@ -3,10 +3,10 @@
3
3
 
4
4
  #QC API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.3
7
7
  Contact: cloudsupport@telestream.net
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.0
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -48,8 +48,8 @@ module TelestreamCloud::Qc
48
48
  {
49
49
  :'level' => :'String',
50
50
  :'info' => :'String',
51
- :'_begin' => :'String',
52
- :'_end' => :'String',
51
+ :'_begin' => :'Float',
52
+ :'_end' => :'Float',
53
53
  :'stream' => :'Integer',
54
54
  :'detail' => :'String'
55
55
  }
@@ -3,10 +3,10 @@
3
3
 
4
4
  #QC API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.3
7
7
  Contact: cloudsupport@telestream.net
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.0
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #QC API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.3
7
7
  Contact: cloudsupport@telestream.net
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.0
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -33,7 +33,7 @@ module TelestreamCloud::Qc
33
33
  def self.swagger_types
34
34
  {
35
35
  :'type' => :'String',
36
- :'bitrate' => :'String'
36
+ :'bitrate' => :'Integer'
37
37
  }
38
38
  end
39
39
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #QC API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.3
7
7
  Contact: cloudsupport@telestream.net
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.0
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12