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.
- checksums.yaml +4 -4
- data/README.md +48 -1
- data/docs/Alert.md +2 -2
- data/docs/Container.md +1 -1
- data/docs/InlineResponse200.md +9 -0
- data/docs/InlineResponse422.md +8 -0
- data/docs/Job.md +10 -0
- data/docs/JobData.md +1 -0
- data/docs/JobDetails.md +2 -0
- data/docs/JobDetailsResult.md +1 -0
- data/docs/Project.md +1 -1
- data/docs/QcApi.md +129 -26
- data/docs/Summary.md +13 -0
- data/docs/SynchronizationEvent.md +10 -0
- data/docs/Template.md +12 -0
- data/docs/VideoStream.md +1 -1
- data/lib/telestream_cloud_qc.rb +7 -2
- data/lib/telestream_cloud_qc/api/qc_api.rb +119 -15
- data/lib/telestream_cloud_qc/api_client.rb +2 -2
- data/lib/telestream_cloud_qc/api_error.rb +2 -2
- data/lib/telestream_cloud_qc/configuration.rb +3 -3
- data/lib/telestream_cloud_qc/models/alert.rb +4 -4
- data/lib/telestream_cloud_qc/models/audio_stream.rb +2 -2
- data/lib/telestream_cloud_qc/models/container.rb +3 -3
- data/lib/telestream_cloud_qc/models/data.rb +2 -2
- data/lib/telestream_cloud_qc/models/data_1.rb +2 -2
- data/lib/telestream_cloud_qc/models/extra_file.rb +2 -2
- data/lib/telestream_cloud_qc/models/inline_response_200.rb +197 -0
- data/lib/telestream_cloud_qc/models/inline_response_422.rb +188 -0
- data/lib/telestream_cloud_qc/models/job.rb +95 -5
- data/lib/telestream_cloud_qc/models/job_data.rb +16 -6
- data/lib/telestream_cloud_qc/models/job_details.rb +26 -6
- data/lib/telestream_cloud_qc/models/job_details_result.rb +17 -6
- data/lib/telestream_cloud_qc/models/jobs_collection.rb +2 -2
- data/lib/telestream_cloud_qc/models/media.rb +2 -2
- data/lib/telestream_cloud_qc/models/options.rb +2 -2
- data/lib/telestream_cloud_qc/models/project.rb +6 -4
- data/lib/telestream_cloud_qc/models/proxy.rb +2 -2
- data/lib/telestream_cloud_qc/models/summary.rb +236 -0
- data/lib/telestream_cloud_qc/models/synchronization_event.rb +206 -0
- data/lib/telestream_cloud_qc/models/template.rb +228 -0
- data/lib/telestream_cloud_qc/models/upload_session.rb +2 -2
- data/lib/telestream_cloud_qc/models/video_stream.rb +3 -3
- data/lib/telestream_cloud_qc/models/video_upload_body.rb +2 -2
- data/lib/telestream_cloud_qc/uploader.rb +12 -0
- data/lib/telestream_cloud_qc/version.rb +3 -3
- data/spec/api/qc_api_spec.rb +26 -2
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/alert_spec.rb +2 -2
- data/spec/models/audio_stream_spec.rb +2 -2
- data/spec/models/container_spec.rb +2 -2
- data/spec/models/data_1_spec.rb +2 -2
- data/spec/models/data_spec.rb +2 -2
- data/spec/models/extra_file_spec.rb +2 -2
- data/spec/models/inline_response_200_spec.rb +48 -0
- data/spec/models/inline_response_422_spec.rb +42 -0
- data/spec/models/job_data_spec.rb +8 -2
- data/spec/models/job_details_result_spec.rb +8 -2
- data/spec/models/job_details_spec.rb +14 -2
- data/spec/models/job_spec.rb +63 -3
- data/spec/models/jobs_collection_spec.rb +2 -2
- data/spec/models/media_spec.rb +2 -2
- data/spec/models/options_spec.rb +2 -2
- data/spec/models/project_spec.rb +2 -2
- data/spec/models/proxy_spec.rb +2 -2
- data/spec/models/summary_spec.rb +72 -0
- data/spec/models/synchronization_event_spec.rb +54 -0
- data/spec/models/template_spec.rb +66 -0
- data/spec/models/upload_session_spec.rb +2 -2
- data/spec/models/video_stream_spec.rb +2 -2
- data/spec/models/video_upload_body_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- data/telestream_cloud_qc.gemspec +2 -2
- metadata +35 -15
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#QC API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.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.
|
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.
|
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.
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -0,0 +1,197 @@
|
|
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 'date'
|
14
|
+
|
15
|
+
module TelestreamCloud::Qc
|
16
|
+
|
17
|
+
class InlineResponse200
|
18
|
+
attr_accessor :project_name
|
19
|
+
|
20
|
+
attr_accessor :project_id
|
21
|
+
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'project_name' => :'project_name',
|
27
|
+
:'project_id' => :'project_id'
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# Attribute type mapping.
|
32
|
+
def self.swagger_types
|
33
|
+
{
|
34
|
+
:'project_name' => :'String',
|
35
|
+
:'project_id' => :'String'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Initializes the object
|
40
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
+
def initialize(attributes = {})
|
42
|
+
return unless attributes.is_a?(Hash)
|
43
|
+
|
44
|
+
# convert string to symbol for hash key
|
45
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
46
|
+
|
47
|
+
if attributes.has_key?(:'project_name')
|
48
|
+
self.project_name = attributes[:'project_name']
|
49
|
+
end
|
50
|
+
|
51
|
+
if attributes.has_key?(:'project_id')
|
52
|
+
self.project_id = attributes[:'project_id']
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
|
57
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
58
|
+
# @return Array for valid properties with the reasons
|
59
|
+
def list_invalid_properties
|
60
|
+
invalid_properties = Array.new
|
61
|
+
return invalid_properties
|
62
|
+
end
|
63
|
+
|
64
|
+
# Check to see if the all the properties in the model are valid
|
65
|
+
# @return true if the model is valid
|
66
|
+
def valid?
|
67
|
+
return true
|
68
|
+
end
|
69
|
+
|
70
|
+
# Checks equality by comparing each attribute.
|
71
|
+
# @param [Object] Object to be compared
|
72
|
+
def ==(o)
|
73
|
+
return true if self.equal?(o)
|
74
|
+
self.class == o.class &&
|
75
|
+
project_name == o.project_name &&
|
76
|
+
project_id == o.project_id
|
77
|
+
end
|
78
|
+
|
79
|
+
# @see the `==` method
|
80
|
+
# @param [Object] Object to be compared
|
81
|
+
def eql?(o)
|
82
|
+
self == o
|
83
|
+
end
|
84
|
+
|
85
|
+
# Calculates hash code according to all attributes.
|
86
|
+
# @return [Fixnum] Hash code
|
87
|
+
def hash
|
88
|
+
[project_name, project_id].hash
|
89
|
+
end
|
90
|
+
|
91
|
+
# Builds the object from hash
|
92
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
93
|
+
# @return [Object] Returns the model itself
|
94
|
+
def build_from_hash(attributes)
|
95
|
+
return nil unless attributes.is_a?(Hash)
|
96
|
+
self.class.swagger_types.each_pair do |key, type|
|
97
|
+
if type =~ /\AArray<(.*)>/i
|
98
|
+
# check to ensure the input is an array given that the the attribute
|
99
|
+
# is documented as an array but the input is not
|
100
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
101
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
102
|
+
end
|
103
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
104
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
105
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
106
|
+
end
|
107
|
+
|
108
|
+
self
|
109
|
+
end
|
110
|
+
|
111
|
+
# Deserializes the data based on type
|
112
|
+
# @param string type Data type
|
113
|
+
# @param string value Value to be deserialized
|
114
|
+
# @return [Object] Deserialized data
|
115
|
+
def _deserialize(type, value)
|
116
|
+
case type.to_sym
|
117
|
+
when :DateTime
|
118
|
+
DateTime.parse(value)
|
119
|
+
when :Date
|
120
|
+
Date.parse(value)
|
121
|
+
when :String
|
122
|
+
value.to_s
|
123
|
+
when :Integer
|
124
|
+
value.to_i
|
125
|
+
when :Float
|
126
|
+
value.to_f
|
127
|
+
when :BOOLEAN
|
128
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
129
|
+
true
|
130
|
+
else
|
131
|
+
false
|
132
|
+
end
|
133
|
+
when :Object
|
134
|
+
# generic object (usually a Hash), return directly
|
135
|
+
value
|
136
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
137
|
+
inner_type = Regexp.last_match[:inner_type]
|
138
|
+
value.map { |v| _deserialize(inner_type, v) }
|
139
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
140
|
+
k_type = Regexp.last_match[:k_type]
|
141
|
+
v_type = Regexp.last_match[:v_type]
|
142
|
+
{}.tap do |hash|
|
143
|
+
value.each do |k, v|
|
144
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
145
|
+
end
|
146
|
+
end
|
147
|
+
else # model
|
148
|
+
temp_model = TelestreamCloud::Qc.const_get(type).new
|
149
|
+
temp_model.build_from_hash(value)
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
# Returns the string representation of the object
|
154
|
+
# @return [String] String presentation of the object
|
155
|
+
def to_s
|
156
|
+
to_hash.to_s
|
157
|
+
end
|
158
|
+
|
159
|
+
# to_body is an alias to to_hash (backward compatibility)
|
160
|
+
# @return [Hash] Returns the object in the form of hash
|
161
|
+
def to_body
|
162
|
+
to_hash
|
163
|
+
end
|
164
|
+
|
165
|
+
# Returns the object in the form of hash
|
166
|
+
# @return [Hash] Returns the object in the form of hash
|
167
|
+
def to_hash
|
168
|
+
hash = {}
|
169
|
+
self.class.attribute_map.each_pair do |attr, param|
|
170
|
+
value = self.send(attr)
|
171
|
+
next if value.nil?
|
172
|
+
hash[param] = _to_hash(value)
|
173
|
+
end
|
174
|
+
hash
|
175
|
+
end
|
176
|
+
|
177
|
+
# Outputs non-array value in the form of hash
|
178
|
+
# For object, use to_hash. Otherwise, just return the value
|
179
|
+
# @param [Object] value Any valid value
|
180
|
+
# @return [Hash] Returns the value in the form of hash
|
181
|
+
def _to_hash(value)
|
182
|
+
if value.is_a?(Array)
|
183
|
+
value.compact.map{ |v| _to_hash(v) }
|
184
|
+
elsif value.is_a?(Hash)
|
185
|
+
{}.tap do |hash|
|
186
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
187
|
+
end
|
188
|
+
elsif value.respond_to? :to_hash
|
189
|
+
value.to_hash
|
190
|
+
else
|
191
|
+
value
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
end
|
196
|
+
|
197
|
+
end
|
@@ -0,0 +1,188 @@
|
|
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 'date'
|
14
|
+
|
15
|
+
module TelestreamCloud::Qc
|
16
|
+
|
17
|
+
class InlineResponse422
|
18
|
+
attr_accessor :error
|
19
|
+
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'error' => :'error'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Attribute type mapping.
|
29
|
+
def self.swagger_types
|
30
|
+
{
|
31
|
+
:'error' => :'String'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Initializes the object
|
36
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
37
|
+
def initialize(attributes = {})
|
38
|
+
return unless attributes.is_a?(Hash)
|
39
|
+
|
40
|
+
# convert string to symbol for hash key
|
41
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
42
|
+
|
43
|
+
if attributes.has_key?(:'error')
|
44
|
+
self.error = attributes[:'error']
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
49
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
50
|
+
# @return Array for valid properties with the reasons
|
51
|
+
def list_invalid_properties
|
52
|
+
invalid_properties = Array.new
|
53
|
+
return invalid_properties
|
54
|
+
end
|
55
|
+
|
56
|
+
# Check to see if the all the properties in the model are valid
|
57
|
+
# @return true if the model is valid
|
58
|
+
def valid?
|
59
|
+
return true
|
60
|
+
end
|
61
|
+
|
62
|
+
# Checks equality by comparing each attribute.
|
63
|
+
# @param [Object] Object to be compared
|
64
|
+
def ==(o)
|
65
|
+
return true if self.equal?(o)
|
66
|
+
self.class == o.class &&
|
67
|
+
error == o.error
|
68
|
+
end
|
69
|
+
|
70
|
+
# @see the `==` method
|
71
|
+
# @param [Object] Object to be compared
|
72
|
+
def eql?(o)
|
73
|
+
self == o
|
74
|
+
end
|
75
|
+
|
76
|
+
# Calculates hash code according to all attributes.
|
77
|
+
# @return [Fixnum] Hash code
|
78
|
+
def hash
|
79
|
+
[error].hash
|
80
|
+
end
|
81
|
+
|
82
|
+
# Builds the object from hash
|
83
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
84
|
+
# @return [Object] Returns the model itself
|
85
|
+
def build_from_hash(attributes)
|
86
|
+
return nil unless attributes.is_a?(Hash)
|
87
|
+
self.class.swagger_types.each_pair do |key, type|
|
88
|
+
if type =~ /\AArray<(.*)>/i
|
89
|
+
# check to ensure the input is an array given that the the attribute
|
90
|
+
# is documented as an array but the input is not
|
91
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
92
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
93
|
+
end
|
94
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
95
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
96
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
97
|
+
end
|
98
|
+
|
99
|
+
self
|
100
|
+
end
|
101
|
+
|
102
|
+
# Deserializes the data based on type
|
103
|
+
# @param string type Data type
|
104
|
+
# @param string value Value to be deserialized
|
105
|
+
# @return [Object] Deserialized data
|
106
|
+
def _deserialize(type, value)
|
107
|
+
case type.to_sym
|
108
|
+
when :DateTime
|
109
|
+
DateTime.parse(value)
|
110
|
+
when :Date
|
111
|
+
Date.parse(value)
|
112
|
+
when :String
|
113
|
+
value.to_s
|
114
|
+
when :Integer
|
115
|
+
value.to_i
|
116
|
+
when :Float
|
117
|
+
value.to_f
|
118
|
+
when :BOOLEAN
|
119
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
120
|
+
true
|
121
|
+
else
|
122
|
+
false
|
123
|
+
end
|
124
|
+
when :Object
|
125
|
+
# generic object (usually a Hash), return directly
|
126
|
+
value
|
127
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
128
|
+
inner_type = Regexp.last_match[:inner_type]
|
129
|
+
value.map { |v| _deserialize(inner_type, v) }
|
130
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
131
|
+
k_type = Regexp.last_match[:k_type]
|
132
|
+
v_type = Regexp.last_match[:v_type]
|
133
|
+
{}.tap do |hash|
|
134
|
+
value.each do |k, v|
|
135
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
else # model
|
139
|
+
temp_model = TelestreamCloud::Qc.const_get(type).new
|
140
|
+
temp_model.build_from_hash(value)
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
# Returns the string representation of the object
|
145
|
+
# @return [String] String presentation of the object
|
146
|
+
def to_s
|
147
|
+
to_hash.to_s
|
148
|
+
end
|
149
|
+
|
150
|
+
# to_body is an alias to to_hash (backward compatibility)
|
151
|
+
# @return [Hash] Returns the object in the form of hash
|
152
|
+
def to_body
|
153
|
+
to_hash
|
154
|
+
end
|
155
|
+
|
156
|
+
# Returns the object in the form of hash
|
157
|
+
# @return [Hash] Returns the object in the form of hash
|
158
|
+
def to_hash
|
159
|
+
hash = {}
|
160
|
+
self.class.attribute_map.each_pair do |attr, param|
|
161
|
+
value = self.send(attr)
|
162
|
+
next if value.nil?
|
163
|
+
hash[param] = _to_hash(value)
|
164
|
+
end
|
165
|
+
hash
|
166
|
+
end
|
167
|
+
|
168
|
+
# Outputs non-array value in the form of hash
|
169
|
+
# For object, use to_hash. Otherwise, just return the value
|
170
|
+
# @param [Object] value Any valid value
|
171
|
+
# @return [Hash] Returns the value in the form of hash
|
172
|
+
def _to_hash(value)
|
173
|
+
if value.is_a?(Array)
|
174
|
+
value.compact.map{ |v| _to_hash(v) }
|
175
|
+
elsif value.is_a?(Hash)
|
176
|
+
{}.tap do |hash|
|
177
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
178
|
+
end
|
179
|
+
elsif value.respond_to? :to_hash
|
180
|
+
value.to_hash
|
181
|
+
else
|
182
|
+
value
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
end
|
187
|
+
|
188
|
+
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#QC API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.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.
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,12 +17,32 @@ module TelestreamCloud::Qc
|
|
17
17
|
class Job
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
+
attr_accessor :project_id
|
21
|
+
|
20
22
|
attr_accessor :status
|
21
23
|
|
24
|
+
attr_accessor :state
|
25
|
+
|
22
26
|
attr_accessor :duration
|
23
27
|
|
24
28
|
attr_accessor :type
|
25
29
|
|
30
|
+
attr_accessor :progress
|
31
|
+
|
32
|
+
attr_accessor :filename
|
33
|
+
|
34
|
+
attr_accessor :source_url
|
35
|
+
|
36
|
+
attr_accessor :created_at
|
37
|
+
|
38
|
+
attr_accessor :updated_at
|
39
|
+
|
40
|
+
attr_accessor :error_class
|
41
|
+
|
42
|
+
attr_accessor :error_message
|
43
|
+
|
44
|
+
attr_accessor :payload
|
45
|
+
|
26
46
|
attr_accessor :details
|
27
47
|
|
28
48
|
class EnumAttributeValidator
|
@@ -51,9 +71,19 @@ module TelestreamCloud::Qc
|
|
51
71
|
def self.attribute_map
|
52
72
|
{
|
53
73
|
:'id' => :'id',
|
74
|
+
:'project_id' => :'project_id',
|
54
75
|
:'status' => :'status',
|
76
|
+
:'state' => :'state',
|
55
77
|
:'duration' => :'duration',
|
56
78
|
:'type' => :'type',
|
79
|
+
:'progress' => :'progress',
|
80
|
+
:'filename' => :'filename',
|
81
|
+
:'source_url' => :'source_url',
|
82
|
+
:'created_at' => :'created_at',
|
83
|
+
:'updated_at' => :'updated_at',
|
84
|
+
:'error_class' => :'error_class',
|
85
|
+
:'error_message' => :'error_message',
|
86
|
+
:'payload' => :'payload',
|
57
87
|
:'details' => :'details'
|
58
88
|
}
|
59
89
|
end
|
@@ -62,9 +92,19 @@ module TelestreamCloud::Qc
|
|
62
92
|
def self.swagger_types
|
63
93
|
{
|
64
94
|
:'id' => :'String',
|
95
|
+
:'project_id' => :'String',
|
65
96
|
:'status' => :'String',
|
97
|
+
:'state' => :'String',
|
66
98
|
:'duration' => :'Integer',
|
67
99
|
:'type' => :'String',
|
100
|
+
:'progress' => :'Integer',
|
101
|
+
:'filename' => :'String',
|
102
|
+
:'source_url' => :'String',
|
103
|
+
:'created_at' => :'String',
|
104
|
+
:'updated_at' => :'String',
|
105
|
+
:'error_class' => :'String',
|
106
|
+
:'error_message' => :'String',
|
107
|
+
:'payload' => :'String',
|
68
108
|
:'details' => :'JobDetails'
|
69
109
|
}
|
70
110
|
end
|
@@ -81,10 +121,18 @@ module TelestreamCloud::Qc
|
|
81
121
|
self.id = attributes[:'id']
|
82
122
|
end
|
83
123
|
|
124
|
+
if attributes.has_key?(:'project_id')
|
125
|
+
self.project_id = attributes[:'project_id']
|
126
|
+
end
|
127
|
+
|
84
128
|
if attributes.has_key?(:'status')
|
85
129
|
self.status = attributes[:'status']
|
86
130
|
end
|
87
131
|
|
132
|
+
if attributes.has_key?(:'state')
|
133
|
+
self.state = attributes[:'state']
|
134
|
+
end
|
135
|
+
|
88
136
|
if attributes.has_key?(:'duration')
|
89
137
|
self.duration = attributes[:'duration']
|
90
138
|
end
|
@@ -93,6 +141,38 @@ module TelestreamCloud::Qc
|
|
93
141
|
self.type = attributes[:'type']
|
94
142
|
end
|
95
143
|
|
144
|
+
if attributes.has_key?(:'progress')
|
145
|
+
self.progress = attributes[:'progress']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.has_key?(:'filename')
|
149
|
+
self.filename = attributes[:'filename']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.has_key?(:'source_url')
|
153
|
+
self.source_url = attributes[:'source_url']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.has_key?(:'created_at')
|
157
|
+
self.created_at = attributes[:'created_at']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.has_key?(:'updated_at')
|
161
|
+
self.updated_at = attributes[:'updated_at']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.has_key?(:'error_class')
|
165
|
+
self.error_class = attributes[:'error_class']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.has_key?(:'error_message')
|
169
|
+
self.error_message = attributes[:'error_message']
|
170
|
+
end
|
171
|
+
|
172
|
+
if attributes.has_key?(:'payload')
|
173
|
+
self.payload = attributes[:'payload']
|
174
|
+
end
|
175
|
+
|
96
176
|
if attributes.has_key?(:'details')
|
97
177
|
self.details = attributes[:'details']
|
98
178
|
end
|
@@ -109,7 +189,7 @@ module TelestreamCloud::Qc
|
|
109
189
|
# Check to see if the all the properties in the model are valid
|
110
190
|
# @return true if the model is valid
|
111
191
|
def valid?
|
112
|
-
status_validator = EnumAttributeValidator.new('String', ["pending", "
|
192
|
+
status_validator = EnumAttributeValidator.new('String', ["pending", "transferring", "queued", "downloading", "uploading", "processing", "success", "error"])
|
113
193
|
return false unless status_validator.valid?(@status)
|
114
194
|
type_validator = EnumAttributeValidator.new('String', ["vidchecker", "lipsync"])
|
115
195
|
return false unless type_validator.valid?(@type)
|
@@ -119,7 +199,7 @@ module TelestreamCloud::Qc
|
|
119
199
|
# Custom attribute writer method checking allowed values (enum).
|
120
200
|
# @param [Object] status Object to be assigned
|
121
201
|
def status=(status)
|
122
|
-
validator = EnumAttributeValidator.new('String', ["pending", "
|
202
|
+
validator = EnumAttributeValidator.new('String', ["pending", "transferring", "queued", "downloading", "uploading", "processing", "success", "error"])
|
123
203
|
unless validator.valid?(status)
|
124
204
|
fail ArgumentError, "invalid value for 'status', must be one of #{validator.allowable_values}."
|
125
205
|
end
|
@@ -142,9 +222,19 @@ module TelestreamCloud::Qc
|
|
142
222
|
return true if self.equal?(o)
|
143
223
|
self.class == o.class &&
|
144
224
|
id == o.id &&
|
225
|
+
project_id == o.project_id &&
|
145
226
|
status == o.status &&
|
227
|
+
state == o.state &&
|
146
228
|
duration == o.duration &&
|
147
229
|
type == o.type &&
|
230
|
+
progress == o.progress &&
|
231
|
+
filename == o.filename &&
|
232
|
+
source_url == o.source_url &&
|
233
|
+
created_at == o.created_at &&
|
234
|
+
updated_at == o.updated_at &&
|
235
|
+
error_class == o.error_class &&
|
236
|
+
error_message == o.error_message &&
|
237
|
+
payload == o.payload &&
|
148
238
|
details == o.details
|
149
239
|
end
|
150
240
|
|
@@ -157,7 +247,7 @@ module TelestreamCloud::Qc
|
|
157
247
|
# Calculates hash code according to all attributes.
|
158
248
|
# @return [Fixnum] Hash code
|
159
249
|
def hash
|
160
|
-
[id, status, duration, type, details].hash
|
250
|
+
[id, project_id, status, state, duration, type, progress, filename, source_url, created_at, updated_at, error_class, error_message, payload, details].hash
|
161
251
|
end
|
162
252
|
|
163
253
|
# Builds the object from hash
|