telestream_cloud_qc 2.0.0 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -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
 
@@ -238,6 +238,18 @@ module TelestreamCloud::Qc
238
238
  end
239
239
 
240
240
  @client.upload_video(@factory_id, @params)
241
+ when "TelestreamCloud::Qc::QcApi"
242
+ @project_id ||= @params.delete(:project_id) do |key|
243
+ raise KeyError, "key not found: #{key}"
244
+ end
245
+
246
+ @client.upload_video(@project_id, @params)
247
+ when "TelestreamCloud::Tts::TtsApi"
248
+ @project_id ||= @params.delete(:project_id) do |key|
249
+ raise KeyError, "key not found: #{key}"
250
+ end
251
+
252
+ @client.upload_video(@project_id, @params)
241
253
  end
242
254
  end
243
255
  end
@@ -6,13 +6,13 @@ 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
 
16
16
  module TelestreamCloud::Qc
17
- VERSION = "2.0.0"
17
+ VERSION = "2.0.4"
18
18
  end
@@ -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
 
@@ -95,6 +95,19 @@ describe 'QcApi' do
95
95
  end
96
96
  end
97
97
 
98
+ # unit tests for import_template
99
+ # Import Vidchecker template
100
+ #
101
+ # @param [Hash] opts the optional parameters
102
+ # @option opts [String] :name
103
+ # @option opts [File] :file
104
+ # @return [Array<InlineResponse200>]
105
+ describe 'import_template test' do
106
+ it "should work" do
107
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
108
+ end
109
+ end
110
+
98
111
  # unit tests for list_jobs
99
112
  # Get jobs form projects
100
113
  #
@@ -186,6 +199,17 @@ describe 'QcApi' do
186
199
  end
187
200
  end
188
201
 
202
+ # unit tests for templates
203
+ # List all templates
204
+ #
205
+ # @param [Hash] opts the optional parameters
206
+ # @return [Array<Template>]
207
+ describe 'templates test' do
208
+ it "should work" do
209
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
210
+ end
211
+ end
212
+
189
213
  # unit tests for upload_video
190
214
  # Creates an upload session
191
215
  #
@@ -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
 
@@ -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
 
@@ -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
 
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #Qc API
3
+
4
+ #QC API
5
+
6
+ OpenAPI spec version: 2.0.3
7
+ Contact: cloudsupport@telestream.net
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TelestreamCloud::Qc::InlineResponse200
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'InlineResponse200' do
21
+ before do
22
+ # run before each test
23
+ @instance = TelestreamCloud::Qc::InlineResponse200.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of InlineResponse200' do
31
+ it 'should create an instance of InlineResponse200' do
32
+ expect(@instance).to be_instance_of(TelestreamCloud::Qc::InlineResponse200)
33
+ end
34
+ end
35
+ describe 'test attribute "project_name"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "project_id"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
48
+
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #Qc API
3
+
4
+ #QC API
5
+
6
+ OpenAPI spec version: 2.0.3
7
+ Contact: cloudsupport@telestream.net
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TelestreamCloud::Qc::InlineResponse422
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'InlineResponse422' do
21
+ before do
22
+ # run before each test
23
+ @instance = TelestreamCloud::Qc::InlineResponse422.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of InlineResponse422' do
31
+ it 'should create an instance of InlineResponse422' do
32
+ expect(@instance).to be_instance_of(TelestreamCloud::Qc::InlineResponse422)
33
+ end
34
+ end
35
+ describe 'test attribute "error"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
42
+
@@ -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
 
@@ -44,5 +44,11 @@ describe 'JobData' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "payload"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
47
53
  end
48
54
 
@@ -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
 
@@ -38,5 +38,11 @@ describe 'JobDetailsResult' do
38
38
  end
39
39
  end
40
40
 
41
+ describe 'test attribute "reports"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
41
47
  end
42
48
 
@@ -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
 
@@ -44,5 +44,17 @@ describe 'JobDetails' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "synchronization_events"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "summary"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
47
59
  end
48
60
 
@@ -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
 
@@ -38,16 +38,28 @@ describe 'Job' do
38
38
  end
39
39
  end
40
40
 
41
+ describe 'test attribute "project_id"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
41
47
  describe 'test attribute "status"' do
42
48
  it 'should work' do
43
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
- #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pending", "transfering", "queued", "downloading", "uploading", "processing", "success", "error"])
50
+ #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pending", "transferring", "queued", "downloading", "uploading", "processing", "success", "error"])
45
51
  #validator.allowable_values.each do |value|
46
52
  # expect { @instance.status = value }.not_to raise_error
47
53
  #end
48
54
  end
49
55
  end
50
56
 
57
+ describe 'test attribute "state"' do
58
+ it 'should work' do
59
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
60
+ end
61
+ end
62
+
51
63
  describe 'test attribute "duration"' do
52
64
  it 'should work' do
53
65
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -64,6 +76,54 @@ describe 'Job' do
64
76
  end
65
77
  end
66
78
 
79
+ describe 'test attribute "progress"' do
80
+ it 'should work' do
81
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
+ end
83
+ end
84
+
85
+ describe 'test attribute "filename"' do
86
+ it 'should work' do
87
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
88
+ end
89
+ end
90
+
91
+ describe 'test attribute "source_url"' do
92
+ it 'should work' do
93
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
94
+ end
95
+ end
96
+
97
+ describe 'test attribute "created_at"' do
98
+ it 'should work' do
99
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
100
+ end
101
+ end
102
+
103
+ describe 'test attribute "updated_at"' do
104
+ it 'should work' do
105
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
106
+ end
107
+ end
108
+
109
+ describe 'test attribute "error_class"' do
110
+ it 'should work' do
111
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
112
+ end
113
+ end
114
+
115
+ describe 'test attribute "error_message"' do
116
+ it 'should work' do
117
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
118
+ end
119
+ end
120
+
121
+ describe 'test attribute "payload"' do
122
+ it 'should work' do
123
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
124
+ end
125
+ end
126
+
67
127
  describe 'test attribute "details"' do
68
128
  it 'should work' do
69
129
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers