mux_ruby 2.0.0.pre.rc.1 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -6
  3. data/README.md +5 -4
  4. data/docs/Asset.md +4 -2
  5. data/docs/AssetsApi.md +10 -4
  6. data/docs/CreateLiveStreamRequest.md +4 -0
  7. data/docs/CreateTrackRequest.md +1 -1
  8. data/docs/DeliveryUsageApi.md +3 -3
  9. data/docs/ErrorsApi.md +1 -1
  10. data/docs/ExportDate.md +20 -0
  11. data/docs/ExportFile.md +22 -0
  12. data/docs/ExportsApi.md +69 -1
  13. data/docs/IncidentsApi.md +3 -3
  14. data/docs/ListVideoViewExportsResponse.md +22 -0
  15. data/docs/LiveStream.md +4 -0
  16. data/docs/MetricsApi.md +13 -13
  17. data/docs/PlaybackIDApi.md +1 -1
  18. data/docs/RealTimeApi.md +5 -5
  19. data/docs/RealTimeBreakdownValue.md +2 -2
  20. data/docs/RealTimeTimeseriesDatapoint.md +2 -2
  21. data/docs/URLSigningKeysApi.md +3 -3
  22. data/docs/VideoView.md +17 -1
  23. data/docs/VideoViewsApi.md +2 -2
  24. data/gen/generator-config.json +2 -1
  25. data/gen/templates/gemspec.mustache +1 -0
  26. data/lib/mux_ruby/api/assets_api.rb +16 -8
  27. data/lib/mux_ruby/api/delivery_usage_api.rb +6 -6
  28. data/lib/mux_ruby/api/dimensions_api.rb +2 -2
  29. data/lib/mux_ruby/api/direct_uploads_api.rb +2 -2
  30. data/lib/mux_ruby/api/errors_api.rb +4 -4
  31. data/lib/mux_ruby/api/exports_api.rb +61 -4
  32. data/lib/mux_ruby/api/filters_api.rb +2 -2
  33. data/lib/mux_ruby/api/incidents_api.rb +8 -8
  34. data/lib/mux_ruby/api/live_streams_api.rb +2 -2
  35. data/lib/mux_ruby/api/metrics_api.rb +28 -28
  36. data/lib/mux_ruby/api/playback_id_api.rb +4 -4
  37. data/lib/mux_ruby/api/real_time_api.rb +12 -12
  38. data/lib/mux_ruby/api/url_signing_keys_api.rb +8 -8
  39. data/lib/mux_ruby/api/video_views_api.rb +6 -6
  40. data/lib/mux_ruby/api_client.rb +2 -2
  41. data/lib/mux_ruby/api_error.rb +2 -2
  42. data/lib/mux_ruby/configuration.rb +2 -2
  43. data/lib/mux_ruby/models/abridged_video_view.rb +2 -2
  44. data/lib/mux_ruby/models/asset.rb +15 -5
  45. data/lib/mux_ruby/models/asset_errors.rb +2 -2
  46. data/lib/mux_ruby/models/asset_master.rb +2 -2
  47. data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +2 -2
  48. data/lib/mux_ruby/models/asset_recording_times.rb +2 -2
  49. data/lib/mux_ruby/models/asset_response.rb +2 -2
  50. data/lib/mux_ruby/models/asset_static_renditions.rb +2 -2
  51. data/lib/mux_ruby/models/asset_static_renditions_files.rb +2 -2
  52. data/lib/mux_ruby/models/breakdown_value.rb +2 -2
  53. data/lib/mux_ruby/models/create_asset_request.rb +2 -2
  54. data/lib/mux_ruby/models/create_live_stream_request.rb +23 -3
  55. data/lib/mux_ruby/models/create_playback_id_request.rb +2 -2
  56. data/lib/mux_ruby/models/create_playback_id_response.rb +2 -2
  57. data/lib/mux_ruby/models/create_simulcast_target_request.rb +2 -2
  58. data/lib/mux_ruby/models/create_track_request.rb +3 -3
  59. data/lib/mux_ruby/models/create_track_response.rb +2 -2
  60. data/lib/mux_ruby/models/create_upload_request.rb +2 -2
  61. data/lib/mux_ruby/models/delivery_report.rb +2 -2
  62. data/lib/mux_ruby/models/dimension_value.rb +2 -2
  63. data/lib/mux_ruby/models/disable_live_stream_response.rb +2 -2
  64. data/lib/mux_ruby/models/enable_live_stream_response.rb +2 -2
  65. data/lib/mux_ruby/models/error.rb +2 -2
  66. data/lib/mux_ruby/models/export_date.rb +229 -0
  67. data/lib/mux_ruby/models/export_file.rb +236 -0
  68. data/lib/mux_ruby/models/filter_value.rb +2 -2
  69. data/lib/mux_ruby/models/get_asset_input_info_response.rb +2 -2
  70. data/lib/mux_ruby/models/get_asset_or_live_stream_id_response.rb +2 -2
  71. data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data.rb +2 -2
  72. data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data_object.rb +2 -2
  73. data/lib/mux_ruby/models/get_asset_playback_id_response.rb +2 -2
  74. data/lib/mux_ruby/models/get_metric_timeseries_data_response.rb +2 -2
  75. data/lib/mux_ruby/models/get_overall_values_response.rb +2 -2
  76. data/lib/mux_ruby/models/get_real_time_breakdown_response.rb +2 -2
  77. data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response.rb +2 -2
  78. data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response_meta.rb +2 -2
  79. data/lib/mux_ruby/models/get_real_time_timeseries_response.rb +2 -2
  80. data/lib/mux_ruby/models/incident.rb +2 -2
  81. data/lib/mux_ruby/models/incident_breakdown.rb +2 -2
  82. data/lib/mux_ruby/models/incident_notification.rb +2 -2
  83. data/lib/mux_ruby/models/incident_notification_rule.rb +2 -2
  84. data/lib/mux_ruby/models/incident_response.rb +2 -2
  85. data/lib/mux_ruby/models/input_file.rb +2 -2
  86. data/lib/mux_ruby/models/input_info.rb +2 -2
  87. data/lib/mux_ruby/models/input_settings.rb +2 -2
  88. data/lib/mux_ruby/models/input_settings_overlay_settings.rb +2 -2
  89. data/lib/mux_ruby/models/input_track.rb +2 -2
  90. data/lib/mux_ruby/models/insight.rb +2 -2
  91. data/lib/mux_ruby/models/list_all_metric_values_response.rb +2 -2
  92. data/lib/mux_ruby/models/list_assets_response.rb +2 -2
  93. data/lib/mux_ruby/models/list_breakdown_values_response.rb +2 -2
  94. data/lib/mux_ruby/models/list_delivery_usage_response.rb +2 -2
  95. data/lib/mux_ruby/models/list_dimension_values_response.rb +2 -2
  96. data/lib/mux_ruby/models/list_dimensions_response.rb +2 -2
  97. data/lib/mux_ruby/models/list_errors_response.rb +2 -2
  98. data/lib/mux_ruby/models/list_exports_response.rb +2 -2
  99. data/lib/mux_ruby/models/list_filter_values_response.rb +2 -2
  100. data/lib/mux_ruby/models/list_filters_response.rb +2 -2
  101. data/lib/mux_ruby/models/list_filters_response_data.rb +2 -2
  102. data/lib/mux_ruby/models/list_incidents_response.rb +2 -2
  103. data/lib/mux_ruby/models/list_insights_response.rb +2 -2
  104. data/lib/mux_ruby/models/list_live_streams_response.rb +2 -2
  105. data/lib/mux_ruby/models/list_real_time_dimensions_response.rb +2 -2
  106. data/lib/mux_ruby/models/list_real_time_dimensions_response_data.rb +2 -2
  107. data/lib/mux_ruby/models/list_real_time_metrics_response.rb +2 -2
  108. data/lib/mux_ruby/models/list_related_incidents_response.rb +2 -2
  109. data/lib/mux_ruby/models/list_signing_keys_response.rb +2 -2
  110. data/lib/mux_ruby/models/list_uploads_response.rb +2 -2
  111. data/lib/mux_ruby/models/list_video_view_exports_response.rb +240 -0
  112. data/lib/mux_ruby/models/list_video_views_response.rb +2 -2
  113. data/lib/mux_ruby/models/live_stream.rb +23 -3
  114. data/lib/mux_ruby/models/live_stream_response.rb +2 -2
  115. data/lib/mux_ruby/models/metric.rb +2 -2
  116. data/lib/mux_ruby/models/notification_rule.rb +2 -2
  117. data/lib/mux_ruby/models/overall_values.rb +2 -2
  118. data/lib/mux_ruby/models/playback_id.rb +2 -2
  119. data/lib/mux_ruby/models/playback_policy.rb +2 -2
  120. data/lib/mux_ruby/models/real_time_breakdown_value.rb +9 -9
  121. data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket.rb +2 -2
  122. data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket_values.rb +2 -2
  123. data/lib/mux_ruby/models/real_time_histogram_timeseries_datapoint.rb +2 -2
  124. data/lib/mux_ruby/models/real_time_timeseries_datapoint.rb +9 -9
  125. data/lib/mux_ruby/models/score.rb +2 -2
  126. data/lib/mux_ruby/models/signal_live_stream_complete_response.rb +2 -2
  127. data/lib/mux_ruby/models/signing_key.rb +2 -2
  128. data/lib/mux_ruby/models/signing_key_response.rb +2 -2
  129. data/lib/mux_ruby/models/simulcast_target.rb +2 -2
  130. data/lib/mux_ruby/models/simulcast_target_response.rb +2 -2
  131. data/lib/mux_ruby/models/track.rb +2 -2
  132. data/lib/mux_ruby/models/update_asset_master_access_request.rb +2 -2
  133. data/lib/mux_ruby/models/update_asset_mp4_support_request.rb +2 -2
  134. data/lib/mux_ruby/models/upload.rb +2 -2
  135. data/lib/mux_ruby/models/upload_error.rb +2 -2
  136. data/lib/mux_ruby/models/upload_response.rb +2 -2
  137. data/lib/mux_ruby/models/video_view.rb +78 -6
  138. data/lib/mux_ruby/models/video_view_event.rb +2 -2
  139. data/lib/mux_ruby/models/video_view_response.rb +2 -2
  140. data/lib/mux_ruby/version.rb +3 -3
  141. data/lib/mux_ruby.rb +5 -2
  142. data/mux_ruby.gemspec +3 -2
  143. data/spec/api_client_spec.rb +2 -2
  144. data/spec/configuration_spec.rb +2 -2
  145. data/spec/models/export_date_spec.rb +40 -0
  146. data/spec/models/export_file_spec.rb +46 -0
  147. data/spec/models/list_video_view_exports_response_spec.rb +46 -0
  148. data/spec/spec_helper.rb +2 -2
  149. metadata +109 -96
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Mux API
3
3
 
4
- #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
4
+ #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
5
5
 
6
6
  The version of the OpenAPI document: v1
7
-
7
+ Contact: devex@mux.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
10
10
 
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Mux API
3
3
 
4
- #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
4
+ #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
5
5
 
6
6
  The version of the OpenAPI document: v1
7
-
7
+ Contact: devex@mux.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
10
10
 
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Mux API
3
3
 
4
- #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
4
+ #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
5
5
 
6
6
  The version of the OpenAPI document: v1
7
-
7
+ Contact: devex@mux.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
10
10
 
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Mux API
3
3
 
4
- #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
4
+ #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
5
5
 
6
6
  The version of the OpenAPI document: v1
7
-
7
+ Contact: devex@mux.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
10
10
 
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Mux API
3
3
 
4
- #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
4
+ #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
5
5
 
6
6
  The version of the OpenAPI document: v1
7
-
7
+ Contact: devex@mux.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
10
10
 
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Mux API
3
3
 
4
- #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
4
+ #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
5
5
 
6
6
  The version of the OpenAPI document: v1
7
-
7
+ Contact: devex@mux.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
10
10
 
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Mux API
3
3
 
4
- #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
4
+ #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
5
5
 
6
6
  The version of the OpenAPI document: v1
7
-
7
+ Contact: devex@mux.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
10
10
 
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Mux API
3
3
 
4
- #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
4
+ #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
5
5
 
6
6
  The version of the OpenAPI document: v1
7
-
7
+ Contact: devex@mux.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
10
10
 
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Mux API
3
3
 
4
- #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
4
+ #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
5
5
 
6
6
  The version of the OpenAPI document: v1
7
-
7
+ Contact: devex@mux.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
10
10
 
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Mux API
3
3
 
4
- #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
4
+ #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
5
5
 
6
6
  The version of the OpenAPI document: v1
7
-
7
+ Contact: devex@mux.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
10
10
 
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Mux API
3
3
 
4
- #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
4
+ #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
5
5
 
6
6
  The version of the OpenAPI document: v1
7
-
7
+ Contact: devex@mux.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
10
10
 
@@ -0,0 +1,240 @@
1
+ =begin
2
+ #Mux API
3
+
4
+ #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
5
+
6
+ The version of the OpenAPI document: v1
7
+ Contact: devex@mux.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MuxRuby
17
+ class ListVideoViewExportsResponse
18
+ attr_accessor :data
19
+
20
+ attr_accessor :total_row_count
21
+
22
+ attr_accessor :timeframe
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'data' => :'data',
28
+ :'total_row_count' => :'total_row_count',
29
+ :'timeframe' => :'timeframe'
30
+ }
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'data' => :'Array<ExportDate>',
42
+ :'total_row_count' => :'Integer',
43
+ :'timeframe' => :'Array<Integer>'
44
+ }
45
+ end
46
+
47
+ # List of attributes with nullable: true
48
+ def self.openapi_nullable
49
+ Set.new([
50
+ ])
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ if (!attributes.is_a?(Hash))
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MuxRuby::ListVideoViewExportsResponse` initialize method"
58
+ end
59
+
60
+ # check to see if the attribute exists and convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!self.class.attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MuxRuby::ListVideoViewExportsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'data')
69
+ if (value = attributes[:'data']).is_a?(Array)
70
+ self.data = value
71
+ end
72
+ end
73
+
74
+ if attributes.key?(:'total_row_count')
75
+ self.total_row_count = attributes[:'total_row_count']
76
+ end
77
+
78
+ if attributes.key?(:'timeframe')
79
+ if (value = attributes[:'timeframe']).is_a?(Array)
80
+ self.timeframe = value
81
+ end
82
+ end
83
+ end
84
+
85
+ # Show invalid properties with the reasons. Usually used together with valid?
86
+ # @return Array for valid properties with the reasons
87
+ def list_invalid_properties
88
+ invalid_properties = Array.new
89
+ invalid_properties
90
+ end
91
+
92
+ # Check to see if the all the properties in the model are valid
93
+ # @return true if the model is valid
94
+ def valid?
95
+ true
96
+ end
97
+
98
+ # Checks equality by comparing each attribute.
99
+ # @param [Object] Object to be compared
100
+ def ==(o)
101
+ return true if self.equal?(o)
102
+ self.class == o.class &&
103
+ data == o.data &&
104
+ total_row_count == o.total_row_count &&
105
+ timeframe == o.timeframe
106
+ end
107
+
108
+ # @see the `==` method
109
+ # @param [Object] Object to be compared
110
+ def eql?(o)
111
+ self == o
112
+ end
113
+
114
+ # Calculates hash code according to all attributes.
115
+ # @return [Integer] Hash code
116
+ def hash
117
+ [data, total_row_count, timeframe].hash
118
+ end
119
+
120
+ # Builds the object from hash
121
+ # @param [Hash] attributes Model attributes in the form of hash
122
+ # @return [Object] Returns the model itself
123
+ def self.build_from_hash(attributes)
124
+ new.build_from_hash(attributes)
125
+ end
126
+
127
+ # Builds the object from hash
128
+ # @param [Hash] attributes Model attributes in the form of hash
129
+ # @return [Object] Returns the model itself
130
+ def build_from_hash(attributes)
131
+ return nil unless attributes.is_a?(Hash)
132
+ self.class.openapi_types.each_pair do |key, type|
133
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
134
+ self.send("#{key}=", nil)
135
+ elsif type =~ /\AArray<(.*)>/i
136
+ # check to ensure the input is an array given that the attribute
137
+ # is documented as an array but the input is not
138
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
139
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
140
+ end
141
+ elsif !attributes[self.class.attribute_map[key]].nil?
142
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
143
+ end
144
+ end
145
+
146
+ self
147
+ end
148
+
149
+ # Deserializes the data based on type
150
+ # @param string type Data type
151
+ # @param string value Value to be deserialized
152
+ # @return [Object] Deserialized data
153
+ def _deserialize(type, value)
154
+ case type.to_sym
155
+ when :Time
156
+ Time.parse(value)
157
+ when :Date
158
+ Date.parse(value)
159
+ when :String
160
+ value.to_s
161
+ when :Integer
162
+ value.to_i
163
+ when :Float
164
+ value.to_f
165
+ when :Boolean
166
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
167
+ true
168
+ else
169
+ false
170
+ end
171
+ when :Object
172
+ # generic object (usually a Hash), return directly
173
+ value
174
+ when /\AArray<(?<inner_type>.+)>\z/
175
+ inner_type = Regexp.last_match[:inner_type]
176
+ value.map { |v| _deserialize(inner_type, v) }
177
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
178
+ k_type = Regexp.last_match[:k_type]
179
+ v_type = Regexp.last_match[:v_type]
180
+ {}.tap do |hash|
181
+ value.each do |k, v|
182
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
183
+ end
184
+ end
185
+ else # model
186
+ # models (e.g. Pet) or oneOf
187
+ klass = MuxRuby.const_get(type)
188
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
189
+ end
190
+ end
191
+
192
+ # Returns the string representation of the object
193
+ # @return [String] String presentation of the object
194
+ def to_s
195
+ to_hash.to_s
196
+ end
197
+
198
+ # to_body is an alias to to_hash (backward compatibility)
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_body
201
+ to_hash
202
+ end
203
+
204
+ # Returns the object in the form of hash
205
+ # @return [Hash] Returns the object in the form of hash
206
+ def to_hash
207
+ hash = {}
208
+ self.class.attribute_map.each_pair do |attr, param|
209
+ value = self.send(attr)
210
+ if value.nil?
211
+ is_nullable = self.class.openapi_nullable.include?(attr)
212
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
213
+ end
214
+
215
+ hash[param] = _to_hash(value)
216
+ end
217
+ hash
218
+ end
219
+
220
+ # Outputs non-array value in the form of hash
221
+ # For object, use to_hash. Otherwise, just return the value
222
+ # @param [Object] value Any valid value
223
+ # @return [Hash] Returns the value in the form of hash
224
+ def _to_hash(value)
225
+ if value.is_a?(Array)
226
+ value.compact.map { |v| _to_hash(v) }
227
+ elsif value.is_a?(Hash)
228
+ {}.tap do |hash|
229
+ value.each { |k, v| hash[k] = _to_hash(v) }
230
+ end
231
+ elsif value.respond_to? :to_hash
232
+ value.to_hash
233
+ else
234
+ value
235
+ end
236
+ end
237
+
238
+ end
239
+
240
+ end
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Mux API
3
3
 
4
- #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
4
+ #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
5
5
 
6
6
  The version of the OpenAPI document: v1
7
-
7
+ Contact: devex@mux.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
10
10
 
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Mux API
3
3
 
4
- #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
4
+ #Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
5
5
 
6
6
  The version of the OpenAPI document: v1
7
-
7
+ Contact: devex@mux.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
10
10
 
@@ -41,12 +41,18 @@ module MuxRuby
41
41
  # Arbitrary metadata set for the asset. Max 255 characters.
42
42
  attr_accessor :passthrough
43
43
 
44
+ # The live stream only processes the audio track if the value is set to true. Mux drops the video track if broadcasted.
45
+ attr_accessor :audio_only
46
+
44
47
  # When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. **Min**: 0.1s. **Max**: 300s (5 minutes).
45
48
  attr_accessor :reconnect_window
46
49
 
47
50
  # Latency is the time from when the streamer does something in real life to when you see it happen in the player. Set this if you want lower latency for your live stream. **Note**: Reconnect windows are incompatible with Reduced Latency and will always be set to zero (0) seconds. See the [Reduce live stream latency guide](https://docs.mux.com/guides/video/reduce-live-stream-latency) to understand the tradeoffs.
48
51
  attr_accessor :reduced_latency
49
52
 
53
+ # Latency is the time from when the streamer does something in real life to when you see it happen in the player. Setting this option will enable compatibility with the LL-HLS specification for low-latency streaming. This typically has lower latency than Reduced Latency streams, and cannot be combined with Reduced Latency. Note: Reconnect windows are incompatible with Low Latency and will always be set to zero (0) seconds.
54
+ attr_accessor :low_latency
55
+
50
56
  # Each Simulcast Target contains configuration details to broadcast (or \"restream\") a live stream to a third-party streaming service. [See the Stream live to 3rd party platforms guide](https://docs.mux.com/guides/video/stream-live-to-3rd-party-platforms).
51
57
  attr_accessor :simulcast_targets
52
58
 
@@ -87,8 +93,10 @@ module MuxRuby
87
93
  :'playback_ids' => :'playback_ids',
88
94
  :'new_asset_settings' => :'new_asset_settings',
89
95
  :'passthrough' => :'passthrough',
96
+ :'audio_only' => :'audio_only',
90
97
  :'reconnect_window' => :'reconnect_window',
91
98
  :'reduced_latency' => :'reduced_latency',
99
+ :'low_latency' => :'low_latency',
92
100
  :'simulcast_targets' => :'simulcast_targets',
93
101
  :'test' => :'test'
94
102
  }
@@ -111,8 +119,10 @@ module MuxRuby
111
119
  :'playback_ids' => :'Array<PlaybackID>',
112
120
  :'new_asset_settings' => :'CreateAssetRequest',
113
121
  :'passthrough' => :'String',
122
+ :'audio_only' => :'Boolean',
114
123
  :'reconnect_window' => :'Float',
115
124
  :'reduced_latency' => :'Boolean',
125
+ :'low_latency' => :'Boolean',
116
126
  :'simulcast_targets' => :'Array<SimulcastTarget>',
117
127
  :'test' => :'Boolean'
118
128
  }
@@ -179,6 +189,10 @@ module MuxRuby
179
189
  self.passthrough = attributes[:'passthrough']
180
190
  end
181
191
 
192
+ if attributes.key?(:'audio_only')
193
+ self.audio_only = attributes[:'audio_only']
194
+ end
195
+
182
196
  if attributes.key?(:'reconnect_window')
183
197
  self.reconnect_window = attributes[:'reconnect_window']
184
198
  else
@@ -189,6 +203,10 @@ module MuxRuby
189
203
  self.reduced_latency = attributes[:'reduced_latency']
190
204
  end
191
205
 
206
+ if attributes.key?(:'low_latency')
207
+ self.low_latency = attributes[:'low_latency']
208
+ end
209
+
192
210
  if attributes.key?(:'simulcast_targets')
193
211
  if (value = attributes[:'simulcast_targets']).is_a?(Array)
194
212
  self.simulcast_targets = value
@@ -239,8 +257,10 @@ module MuxRuby
239
257
  playback_ids == o.playback_ids &&
240
258
  new_asset_settings == o.new_asset_settings &&
241
259
  passthrough == o.passthrough &&
260
+ audio_only == o.audio_only &&
242
261
  reconnect_window == o.reconnect_window &&
243
262
  reduced_latency == o.reduced_latency &&
263
+ low_latency == o.low_latency &&
244
264
  simulcast_targets == o.simulcast_targets &&
245
265
  test == o.test
246
266
  end
@@ -254,7 +274,7 @@ module MuxRuby
254
274
  # Calculates hash code according to all attributes.
255
275
  # @return [Integer] Hash code
256
276
  def hash
257
- [id, created_at, stream_key, active_asset_id, recent_asset_ids, status, playback_ids, new_asset_settings, passthrough, reconnect_window, reduced_latency, simulcast_targets, test].hash
277
+ [id, created_at, stream_key, active_asset_id, recent_asset_ids, status, playback_ids, new_asset_settings, passthrough, audio_only, reconnect_window, reduced_latency, low_latency, simulcast_targets, test].hash
258
278
  end
259
279
 
260
280
  # Builds the object from hash