mux_ruby 3.19.0 → 4.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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +8 -4
  4. data/docs/AssetStaticRenditions.md +2 -2
  5. data/docs/AssetsApi.md +146 -1
  6. data/docs/CreateAssetRequest.md +4 -2
  7. data/docs/CreateStaticRenditionRequest.md +20 -0
  8. data/docs/CreateStaticRenditionResponse.md +18 -0
  9. data/docs/InputSettings.md +1 -1
  10. data/docs/LiveStreamsApi.md +143 -0
  11. data/docs/MetricsApi.md +8 -8
  12. data/docs/StaticRendition.md +40 -0
  13. data/docs/UpdateLiveStreamNewAssetSettings.md +4 -2
  14. data/docs/UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest.md +18 -0
  15. data/docs/VideoView.md +33 -5
  16. data/gen/generator-config.json +1 -1
  17. data/gen/templates/README.mustache +4 -0
  18. data/lib/mux_ruby/api/assets_api.rb +140 -2
  19. data/lib/mux_ruby/api/live_streams_api.rb +132 -0
  20. data/lib/mux_ruby/api/metrics_api.rb +14 -14
  21. data/lib/mux_ruby/models/asset_static_renditions.rb +2 -2
  22. data/lib/mux_ruby/models/create_asset_request.rb +17 -5
  23. data/lib/mux_ruby/models/{create_broadcast_request.rb → create_static_rendition_request.rb} +49 -53
  24. data/lib/mux_ruby/models/{start_space_broadcast_response.rb → create_static_rendition_response.rb} +4 -4
  25. data/lib/mux_ruby/models/input_settings.rb +1 -1
  26. data/lib/mux_ruby/models/{asset_static_renditions_files.rb → static_rendition.rb} +118 -9
  27. data/lib/mux_ruby/models/update_live_stream_new_asset_settings.rb +28 -6
  28. data/lib/mux_ruby/models/{list_spaces_response.rb → update_live_stream_new_asset_settings_static_renditions_request.rb} +11 -16
  29. data/lib/mux_ruby/models/video_view.rb +158 -21
  30. data/lib/mux_ruby/version.rb +1 -1
  31. data/lib/mux_ruby.rb +4 -16
  32. data/spec/models/create_static_rendition_request_spec.rb +44 -0
  33. data/spec/models/create_static_rendition_response_spec.rb +34 -0
  34. data/spec/models/static_rendition_spec.rb +124 -0
  35. data/spec/models/update_live_stream_new_asset_settings_static_renditions_request_spec.rb +34 -0
  36. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/byebug/byebug.so +0 -0
  37. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +8 -8
  38. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/ffi_c.so +0 -0
  39. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/gem_make.out +6 -6
  40. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/mkmf.log +19 -19
  41. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +7 -7
  42. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/jaro_winkler/jaro_winkler_ext.so +0 -0
  43. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/gem_make.out +6 -6
  44. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/mkmf.log +5 -5
  45. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/psych.so +0 -0
  46. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/gem_make.out +6 -6
  47. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/mkmf.log +2 -2
  48. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/stringio.so +0 -0
  49. data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug/Makefile +3 -3
  50. data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
  51. data/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/ext/ffi_c/Makefile +3 -3
  52. data/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/lib/ffi_c.so +0 -0
  53. data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler/Makefile +3 -3
  54. data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
  55. data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/ext/psych/Makefile +3 -3
  56. data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/lib/psych.so +0 -0
  57. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/ext/stringio/Makefile +3 -3
  58. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/lib/stringio.so +0 -0
  59. metadata +172 -191
  60. data/docs/AssetStaticRenditionsFiles.md +0 -28
  61. data/docs/Broadcast.md +0 -30
  62. data/docs/BroadcastLayout.md +0 -15
  63. data/docs/BroadcastResolution.md +0 -15
  64. data/docs/BroadcastResponse.md +0 -18
  65. data/docs/BroadcastStatus.md +0 -15
  66. data/docs/CreateBroadcastRequest.md +0 -26
  67. data/docs/CreateSpaceRequest.md +0 -22
  68. data/docs/ListSpacesResponse.md +0 -18
  69. data/docs/Space.md +0 -30
  70. data/docs/SpaceResponse.md +0 -18
  71. data/docs/SpaceStatus.md +0 -15
  72. data/docs/SpaceType.md +0 -15
  73. data/docs/SpacesApi.md +0 -658
  74. data/docs/StartSpaceBroadcastResponse.md +0 -18
  75. data/docs/StopSpaceBroadcastResponse.md +0 -18
  76. data/lib/mux_ruby/api/spaces_api.rb +0 -619
  77. data/lib/mux_ruby/models/broadcast.rb +0 -305
  78. data/lib/mux_ruby/models/broadcast_layout.rb +0 -38
  79. data/lib/mux_ruby/models/broadcast_resolution.rb +0 -41
  80. data/lib/mux_ruby/models/broadcast_response.rb +0 -223
  81. data/lib/mux_ruby/models/broadcast_status.rb +0 -37
  82. data/lib/mux_ruby/models/create_space_request.rb +0 -242
  83. data/lib/mux_ruby/models/space.rb +0 -301
  84. data/lib/mux_ruby/models/space_response.rb +0 -223
  85. data/lib/mux_ruby/models/space_status.rb +0 -37
  86. data/lib/mux_ruby/models/space_type.rb +0 -36
  87. data/lib/mux_ruby/models/stop_space_broadcast_response.rb +0 -218
@@ -14,7 +14,8 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MuxRuby
17
- class AssetStaticRenditionsFiles
17
+ class StaticRendition
18
+ # Name of the static rendition file
18
19
  attr_accessor :name
19
20
 
20
21
  # Extension of the static rendition file
@@ -32,6 +33,24 @@ module MuxRuby
32
33
  # The file size in bytes
33
34
  attr_accessor :filesize
34
35
 
36
+ # Indicates the static rendition type of this specific MP4 version of this asset. This field is only valid for `static_renditions`, not for `mp4_support`.
37
+ attr_accessor :type
38
+
39
+ # Indicates the status of this specific MP4 version of this asset. This field is only valid for `static_renditions`, not for `mp4_support`. * `ready` indicates the MP4 has been generated and is ready for download * `preparing` indicates the asset has not been ingested or the static rendition is still being generated after an asset is ready * `skipped` indicates the static rendition will not be generated because the requested resolution conflicts with the asset attributes after the asset has been ingested * `errored` indicates the static rendition cannot be generated. For example, an asset could not be ingested
40
+ attr_accessor :status
41
+
42
+ # Indicates the resolution tier of this specific MP4 version of this asset. This field is only valid for `static_renditions`, not for `mp4_support`.
43
+ attr_accessor :resolution_tier
44
+
45
+ # Indicates the resolution of this specific MP4 version of this asset. This field is only valid for `static_renditions`, not for `mp4_support`.
46
+ attr_accessor :resolution
47
+
48
+ # The ID of this static rendition, used in managing this static rendition. This field is only valid for `static_renditions`, not for `mp4_support`.
49
+ attr_accessor :id
50
+
51
+ # Arbitrary user-supplied metadata set for the static rendition. Max 255 characters.
52
+ attr_accessor :passthrough
53
+
35
54
  class EnumAttributeValidator
36
55
  attr_reader :datatype
37
56
  attr_reader :allowable_values
@@ -62,7 +81,13 @@ module MuxRuby
62
81
  :'height' => :'height',
63
82
  :'width' => :'width',
64
83
  :'bitrate' => :'bitrate',
65
- :'filesize' => :'filesize'
84
+ :'filesize' => :'filesize',
85
+ :'type' => :'type',
86
+ :'status' => :'status',
87
+ :'resolution_tier' => :'resolution_tier',
88
+ :'resolution' => :'resolution',
89
+ :'id' => :'id',
90
+ :'passthrough' => :'passthrough'
66
91
  }
67
92
  end
68
93
 
@@ -79,7 +104,13 @@ module MuxRuby
79
104
  :'height' => :'Integer',
80
105
  :'width' => :'Integer',
81
106
  :'bitrate' => :'Integer',
82
- :'filesize' => :'String'
107
+ :'filesize' => :'String',
108
+ :'type' => :'String',
109
+ :'status' => :'String',
110
+ :'resolution_tier' => :'String',
111
+ :'resolution' => :'String',
112
+ :'id' => :'String',
113
+ :'passthrough' => :'String'
83
114
  }
84
115
  end
85
116
 
@@ -93,13 +124,13 @@ module MuxRuby
93
124
  # @param [Hash] attributes Model attributes in the form of hash
94
125
  def initialize(attributes = {})
95
126
  if (!attributes.is_a?(Hash))
96
- fail ArgumentError, "The input argument (attributes) must be a hash in `MuxRuby::AssetStaticRenditionsFiles` initialize method"
127
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MuxRuby::StaticRendition` initialize method"
97
128
  end
98
129
 
99
130
  # check to see if the attribute exists and convert string to symbol for hash key
100
131
  attributes = attributes.each_with_object({}) { |(k, v), h|
101
132
  if (!self.class.attribute_map.key?(k.to_sym))
102
- fail ArgumentError, "`#{k}` is not a valid attribute in `MuxRuby::AssetStaticRenditionsFiles`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
133
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MuxRuby::StaticRendition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
103
134
  end
104
135
  h[k.to_sym] = v
105
136
  }
@@ -127,6 +158,30 @@ module MuxRuby
127
158
  if attributes.key?(:'filesize')
128
159
  self.filesize = attributes[:'filesize']
129
160
  end
161
+
162
+ if attributes.key?(:'type')
163
+ self.type = attributes[:'type']
164
+ end
165
+
166
+ if attributes.key?(:'status')
167
+ self.status = attributes[:'status']
168
+ end
169
+
170
+ if attributes.key?(:'resolution_tier')
171
+ self.resolution_tier = attributes[:'resolution_tier']
172
+ end
173
+
174
+ if attributes.key?(:'resolution')
175
+ self.resolution = attributes[:'resolution']
176
+ end
177
+
178
+ if attributes.key?(:'id')
179
+ self.id = attributes[:'id']
180
+ end
181
+
182
+ if attributes.key?(:'passthrough')
183
+ self.passthrough = attributes[:'passthrough']
184
+ end
130
185
  end
131
186
 
132
187
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -139,17 +194,25 @@ module MuxRuby
139
194
  # Check to see if the all the properties in the model are valid
140
195
  # @return true if the model is valid
141
196
  def valid?
142
- name_validator = EnumAttributeValidator.new('String', ["low.mp4", "medium.mp4", "high.mp4", "audio.m4a", "capped-1080p.mp4"])
197
+ name_validator = EnumAttributeValidator.new('String', ["low.mp4", "medium.mp4", "high.mp4", "highest.mp4", "audio.m4a", "capped-1080p.mp4", "2160p.mp4", "1440p.mp4", "1080p.mp4", "720p.mp4", "540p.mp4", "480p.mp4", "360p.mp4", "270p.mp4"])
143
198
  return false unless name_validator.valid?(@name)
144
199
  ext_validator = EnumAttributeValidator.new('String', ["mp4", "m4a"])
145
200
  return false unless ext_validator.valid?(@ext)
201
+ type_validator = EnumAttributeValidator.new('String', ["standard", "advanced"])
202
+ return false unless type_validator.valid?(@type)
203
+ status_validator = EnumAttributeValidator.new('String', ["ready", "preparing", "skipped", "errored"])
204
+ return false unless status_validator.valid?(@status)
205
+ resolution_tier_validator = EnumAttributeValidator.new('String', ["2160p", "1440p", "1080p", "720p"])
206
+ return false unless resolution_tier_validator.valid?(@resolution_tier)
207
+ resolution_validator = EnumAttributeValidator.new('String', ["highest", "audio-only", "2160p", "1440p", "1080p", "720p", "540p", "480p", "360p", "270p"])
208
+ return false unless resolution_validator.valid?(@resolution)
146
209
  true
147
210
  end
148
211
 
149
212
  # Custom attribute writer method checking allowed values (enum).
150
213
  # @param [Object] name Object to be assigned
151
214
  def name=(name)
152
- validator = EnumAttributeValidator.new('String', ["low.mp4", "medium.mp4", "high.mp4", "audio.m4a", "capped-1080p.mp4"])
215
+ validator = EnumAttributeValidator.new('String', ["low.mp4", "medium.mp4", "high.mp4", "highest.mp4", "audio.m4a", "capped-1080p.mp4", "2160p.mp4", "1440p.mp4", "1080p.mp4", "720p.mp4", "540p.mp4", "480p.mp4", "360p.mp4", "270p.mp4"])
153
216
  unless validator.valid?(name)
154
217
  fail ArgumentError, "invalid value for \"name\", must be one of #{validator.allowable_values}."
155
218
  end
@@ -166,6 +229,46 @@ module MuxRuby
166
229
  @ext = ext
167
230
  end
168
231
 
232
+ # Custom attribute writer method checking allowed values (enum).
233
+ # @param [Object] type Object to be assigned
234
+ def type=(type)
235
+ validator = EnumAttributeValidator.new('String', ["standard", "advanced"])
236
+ unless validator.valid?(type)
237
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
238
+ end
239
+ @type = type
240
+ end
241
+
242
+ # Custom attribute writer method checking allowed values (enum).
243
+ # @param [Object] status Object to be assigned
244
+ def status=(status)
245
+ validator = EnumAttributeValidator.new('String', ["ready", "preparing", "skipped", "errored"])
246
+ unless validator.valid?(status)
247
+ fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
248
+ end
249
+ @status = status
250
+ end
251
+
252
+ # Custom attribute writer method checking allowed values (enum).
253
+ # @param [Object] resolution_tier Object to be assigned
254
+ def resolution_tier=(resolution_tier)
255
+ validator = EnumAttributeValidator.new('String', ["2160p", "1440p", "1080p", "720p"])
256
+ unless validator.valid?(resolution_tier)
257
+ fail ArgumentError, "invalid value for \"resolution_tier\", must be one of #{validator.allowable_values}."
258
+ end
259
+ @resolution_tier = resolution_tier
260
+ end
261
+
262
+ # Custom attribute writer method checking allowed values (enum).
263
+ # @param [Object] resolution Object to be assigned
264
+ def resolution=(resolution)
265
+ validator = EnumAttributeValidator.new('String', ["highest", "audio-only", "2160p", "1440p", "1080p", "720p", "540p", "480p", "360p", "270p"])
266
+ unless validator.valid?(resolution)
267
+ fail ArgumentError, "invalid value for \"resolution\", must be one of #{validator.allowable_values}."
268
+ end
269
+ @resolution = resolution
270
+ end
271
+
169
272
  # Checks equality by comparing each attribute.
170
273
  # @param [Object] Object to be compared
171
274
  def ==(o)
@@ -176,7 +279,13 @@ module MuxRuby
176
279
  height == o.height &&
177
280
  width == o.width &&
178
281
  bitrate == o.bitrate &&
179
- filesize == o.filesize
282
+ filesize == o.filesize &&
283
+ type == o.type &&
284
+ status == o.status &&
285
+ resolution_tier == o.resolution_tier &&
286
+ resolution == o.resolution &&
287
+ id == o.id &&
288
+ passthrough == o.passthrough
180
289
  end
181
290
 
182
291
  # @see the `==` method
@@ -188,7 +297,7 @@ module MuxRuby
188
297
  # Calculates hash code according to all attributes.
189
298
  # @return [Integer] Hash code
190
299
  def hash
191
- [name, ext, height, width, bitrate, filesize].hash
300
+ [name, ext, height, width, bitrate, filesize, type, status, resolution_tier, resolution, id, passthrough].hash
192
301
  end
193
302
 
194
303
  # Builds the object from hash
@@ -14,14 +14,17 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MuxRuby
17
- # Updates the new asset settings to use to generate a new asset for this live stream. Only the `mp4_support` and `master_access` settings may be updated.
17
+ # Updates the new asset settings to use to generate a new asset for this live stream. Only the `mp4_support`, `master_access`, and `video_quality` settings may be updated.
18
18
  class UpdateLiveStreamNewAssetSettings
19
- # Specify what level of support for mp4 playback should be added to new assets generated from this live stream. * The `none` option disables MP4 support for new assets. MP4 files will not be produced for an asset generated from this live stream. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. * The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset).
19
+ # Deprecated. See the [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions#during-live-stream-creation) for the updated API. Specify what level of support for mp4 playback should be added to new assets generated from this live stream. * The `none` option disables MP4 support for new assets. MP4 files will not be produced for an asset generated from this live stream. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. * The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset).
20
20
  attr_accessor :mp4_support
21
21
 
22
22
  # Add or remove access to the master version of the video.
23
23
  attr_accessor :master_access
24
24
 
25
+ # The video quality controls the cost, quality, and available platform features for the asset. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels)
26
+ attr_accessor :video_quality
27
+
25
28
  class EnumAttributeValidator
26
29
  attr_reader :datatype
27
30
  attr_reader :allowable_values
@@ -48,7 +51,8 @@ module MuxRuby
48
51
  def self.attribute_map
49
52
  {
50
53
  :'mp4_support' => :'mp4_support',
51
- :'master_access' => :'master_access'
54
+ :'master_access' => :'master_access',
55
+ :'video_quality' => :'video_quality'
52
56
  }
53
57
  end
54
58
 
@@ -61,7 +65,8 @@ module MuxRuby
61
65
  def self.openapi_types
62
66
  {
63
67
  :'mp4_support' => :'String',
64
- :'master_access' => :'String'
68
+ :'master_access' => :'String',
69
+ :'video_quality' => :'String'
65
70
  }
66
71
  end
67
72
 
@@ -93,6 +98,10 @@ module MuxRuby
93
98
  if attributes.key?(:'master_access')
94
99
  self.master_access = attributes[:'master_access']
95
100
  end
101
+
102
+ if attributes.key?(:'video_quality')
103
+ self.video_quality = attributes[:'video_quality']
104
+ end
96
105
  end
97
106
 
98
107
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -109,6 +118,8 @@ module MuxRuby
109
118
  return false unless mp4_support_validator.valid?(@mp4_support)
110
119
  master_access_validator = EnumAttributeValidator.new('String', ["temporary", "none"])
111
120
  return false unless master_access_validator.valid?(@master_access)
121
+ video_quality_validator = EnumAttributeValidator.new('String', ["plus", "premium"])
122
+ return false unless video_quality_validator.valid?(@video_quality)
112
123
  true
113
124
  end
114
125
 
@@ -132,13 +143,24 @@ module MuxRuby
132
143
  @master_access = master_access
133
144
  end
134
145
 
146
+ # Custom attribute writer method checking allowed values (enum).
147
+ # @param [Object] video_quality Object to be assigned
148
+ def video_quality=(video_quality)
149
+ validator = EnumAttributeValidator.new('String', ["plus", "premium"])
150
+ unless validator.valid?(video_quality)
151
+ fail ArgumentError, "invalid value for \"video_quality\", must be one of #{validator.allowable_values}."
152
+ end
153
+ @video_quality = video_quality
154
+ end
155
+
135
156
  # Checks equality by comparing each attribute.
136
157
  # @param [Object] Object to be compared
137
158
  def ==(o)
138
159
  return true if self.equal?(o)
139
160
  self.class == o.class &&
140
161
  mp4_support == o.mp4_support &&
141
- master_access == o.master_access
162
+ master_access == o.master_access &&
163
+ video_quality == o.video_quality
142
164
  end
143
165
 
144
166
  # @see the `==` method
@@ -150,7 +172,7 @@ module MuxRuby
150
172
  # Calculates hash code according to all attributes.
151
173
  # @return [Integer] Hash code
152
174
  def hash
153
- [mp4_support, master_access].hash
175
+ [mp4_support, master_access, video_quality].hash
154
176
  end
155
177
 
156
178
  # Builds the object from hash
@@ -14,13 +14,13 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MuxRuby
17
- class ListSpacesResponse
18
- attr_accessor :data
17
+ class UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest
18
+ attr_accessor :static_renditions
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
21
21
  def self.attribute_map
22
22
  {
23
- :'data' => :'data'
23
+ :'static_renditions' => :'static_renditions'
24
24
  }
25
25
  end
26
26
 
@@ -32,7 +32,7 @@ module MuxRuby
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'data' => :'Array<Space>'
35
+ :'static_renditions' => :'Array<CreateStaticRenditionRequest>'
36
36
  }
37
37
  end
38
38
 
@@ -46,20 +46,20 @@ module MuxRuby
46
46
  # @param [Hash] attributes Model attributes in the form of hash
47
47
  def initialize(attributes = {})
48
48
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `MuxRuby::ListSpacesResponse` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MuxRuby::UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest` initialize method"
50
50
  end
51
51
 
52
52
  # check to see if the attribute exists and convert string to symbol for hash key
53
53
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
54
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `MuxRuby::ListSpacesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MuxRuby::UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
56
  end
57
57
  h[k.to_sym] = v
58
58
  }
59
59
 
60
- if attributes.key?(:'data')
61
- if (value = attributes[:'data']).is_a?(Array)
62
- self.data = value
60
+ if attributes.key?(:'static_renditions')
61
+ if (value = attributes[:'static_renditions']).is_a?(Array)
62
+ self.static_renditions = value
63
63
  end
64
64
  end
65
65
  end
@@ -68,17 +68,12 @@ module MuxRuby
68
68
  # @return Array for valid properties with the reasons
69
69
  def list_invalid_properties
70
70
  invalid_properties = Array.new
71
- if @data.nil?
72
- invalid_properties.push('invalid value for "data", data cannot be nil.')
73
- end
74
-
75
71
  invalid_properties
76
72
  end
77
73
 
78
74
  # Check to see if the all the properties in the model are valid
79
75
  # @return true if the model is valid
80
76
  def valid?
81
- return false if @data.nil?
82
77
  true
83
78
  end
84
79
 
@@ -87,7 +82,7 @@ module MuxRuby
87
82
  def ==(o)
88
83
  return true if self.equal?(o)
89
84
  self.class == o.class &&
90
- data == o.data
85
+ static_renditions == o.static_renditions
91
86
  end
92
87
 
93
88
  # @see the `==` method
@@ -99,7 +94,7 @@ module MuxRuby
99
94
  # Calculates hash code according to all attributes.
100
95
  # @return [Integer] Hash code
101
96
  def hash
102
- [data].hash
97
+ [static_renditions].hash
103
98
  end
104
99
 
105
100
  # Builds the object from hash
@@ -337,11 +337,39 @@ module MuxRuby
337
337
 
338
338
  attr_accessor :ad_preroll_startup_time
339
339
 
340
- attr_accessor :ad_watch_time
340
+ attr_accessor :view_dropped
341
341
 
342
- attr_accessor :view_content_watch_time
342
+ attr_accessor :client_application_name
343
343
 
344
- attr_accessor :view_dropped
344
+ attr_accessor :client_application_version
345
+
346
+ attr_accessor :video_affiliate
347
+
348
+ attr_accessor :viewer_plan
349
+
350
+ attr_accessor :viewer_plan_status
351
+
352
+ attr_accessor :viewer_plan_category
353
+
354
+ attr_accessor :view_drm_level
355
+
356
+ attr_accessor :video_brand
357
+
358
+ attr_accessor :used_pip
359
+
360
+ attr_accessor :time_shift_enabled
361
+
362
+ attr_accessor :used_captions
363
+
364
+ attr_accessor :video_codec
365
+
366
+ attr_accessor :audio_codec
367
+
368
+ attr_accessor :video_dynamic_range_type
369
+
370
+ attr_accessor :view_cdn_edge_pop
371
+
372
+ attr_accessor :view_cdn_origin
345
373
 
346
374
  # Attribute mapping from ruby-style variable name to JSON key.
347
375
  def self.attribute_map
@@ -507,9 +535,23 @@ module MuxRuby
507
535
  :'ad_playback_failure_error_type_id' => :'ad_playback_failure_error_type_id',
508
536
  :'view_content_startup_time' => :'view_content_startup_time',
509
537
  :'ad_preroll_startup_time' => :'ad_preroll_startup_time',
510
- :'ad_watch_time' => :'ad_watch_time',
511
- :'view_content_watch_time' => :'view_content_watch_time',
512
- :'view_dropped' => :'view_dropped'
538
+ :'view_dropped' => :'view_dropped',
539
+ :'client_application_name' => :'client_application_name',
540
+ :'client_application_version' => :'client_application_version',
541
+ :'video_affiliate' => :'video_affiliate',
542
+ :'viewer_plan' => :'viewer_plan',
543
+ :'viewer_plan_status' => :'viewer_plan_status',
544
+ :'viewer_plan_category' => :'viewer_plan_category',
545
+ :'view_drm_level' => :'view_drm_level',
546
+ :'video_brand' => :'video_brand',
547
+ :'used_pip' => :'used_pip',
548
+ :'time_shift_enabled' => :'time_shift_enabled',
549
+ :'used_captions' => :'used_captions',
550
+ :'video_codec' => :'video_codec',
551
+ :'audio_codec' => :'audio_codec',
552
+ :'video_dynamic_range_type' => :'video_dynamic_range_type',
553
+ :'view_cdn_edge_pop' => :'view_cdn_edge_pop',
554
+ :'view_cdn_origin' => :'view_cdn_origin'
513
555
  }
514
556
  end
515
557
 
@@ -682,9 +724,23 @@ module MuxRuby
682
724
  :'ad_playback_failure_error_type_id' => :'Integer',
683
725
  :'view_content_startup_time' => :'Integer',
684
726
  :'ad_preroll_startup_time' => :'Integer',
685
- :'ad_watch_time' => :'Integer',
686
- :'view_content_watch_time' => :'Integer',
687
- :'view_dropped' => :'Boolean'
727
+ :'view_dropped' => :'Boolean',
728
+ :'client_application_name' => :'String',
729
+ :'client_application_version' => :'String',
730
+ :'video_affiliate' => :'String',
731
+ :'viewer_plan' => :'String',
732
+ :'viewer_plan_status' => :'String',
733
+ :'viewer_plan_category' => :'String',
734
+ :'view_drm_level' => :'String',
735
+ :'video_brand' => :'String',
736
+ :'used_pip' => :'Boolean',
737
+ :'time_shift_enabled' => :'Boolean',
738
+ :'used_captions' => :'Boolean',
739
+ :'video_codec' => :'String',
740
+ :'audio_codec' => :'String',
741
+ :'video_dynamic_range_type' => :'String',
742
+ :'view_cdn_edge_pop' => :'String',
743
+ :'view_cdn_origin' => :'String'
688
744
  }
689
745
  end
690
746
 
@@ -829,8 +885,19 @@ module MuxRuby
829
885
  :'ad_playback_failure_error_type_id',
830
886
  :'view_content_startup_time',
831
887
  :'ad_preroll_startup_time',
832
- :'ad_watch_time',
833
- :'view_content_watch_time',
888
+ :'client_application_name',
889
+ :'client_application_version',
890
+ :'video_affiliate',
891
+ :'viewer_plan',
892
+ :'viewer_plan_status',
893
+ :'viewer_plan_category',
894
+ :'view_drm_level',
895
+ :'video_brand',
896
+ :'video_codec',
897
+ :'audio_codec',
898
+ :'video_dynamic_range_type',
899
+ :'view_cdn_edge_pop',
900
+ :'view_cdn_origin'
834
901
  ])
835
902
  end
836
903
 
@@ -1495,16 +1562,72 @@ module MuxRuby
1495
1562
  self.ad_preroll_startup_time = attributes[:'ad_preroll_startup_time']
1496
1563
  end
1497
1564
 
1498
- if attributes.key?(:'ad_watch_time')
1499
- self.ad_watch_time = attributes[:'ad_watch_time']
1565
+ if attributes.key?(:'view_dropped')
1566
+ self.view_dropped = attributes[:'view_dropped']
1567
+ end
1568
+
1569
+ if attributes.key?(:'client_application_name')
1570
+ self.client_application_name = attributes[:'client_application_name']
1500
1571
  end
1501
1572
 
1502
- if attributes.key?(:'view_content_watch_time')
1503
- self.view_content_watch_time = attributes[:'view_content_watch_time']
1573
+ if attributes.key?(:'client_application_version')
1574
+ self.client_application_version = attributes[:'client_application_version']
1504
1575
  end
1505
1576
 
1506
- if attributes.key?(:'view_dropped')
1507
- self.view_dropped = attributes[:'view_dropped']
1577
+ if attributes.key?(:'video_affiliate')
1578
+ self.video_affiliate = attributes[:'video_affiliate']
1579
+ end
1580
+
1581
+ if attributes.key?(:'viewer_plan')
1582
+ self.viewer_plan = attributes[:'viewer_plan']
1583
+ end
1584
+
1585
+ if attributes.key?(:'viewer_plan_status')
1586
+ self.viewer_plan_status = attributes[:'viewer_plan_status']
1587
+ end
1588
+
1589
+ if attributes.key?(:'viewer_plan_category')
1590
+ self.viewer_plan_category = attributes[:'viewer_plan_category']
1591
+ end
1592
+
1593
+ if attributes.key?(:'view_drm_level')
1594
+ self.view_drm_level = attributes[:'view_drm_level']
1595
+ end
1596
+
1597
+ if attributes.key?(:'video_brand')
1598
+ self.video_brand = attributes[:'video_brand']
1599
+ end
1600
+
1601
+ if attributes.key?(:'used_pip')
1602
+ self.used_pip = attributes[:'used_pip']
1603
+ end
1604
+
1605
+ if attributes.key?(:'time_shift_enabled')
1606
+ self.time_shift_enabled = attributes[:'time_shift_enabled']
1607
+ end
1608
+
1609
+ if attributes.key?(:'used_captions')
1610
+ self.used_captions = attributes[:'used_captions']
1611
+ end
1612
+
1613
+ if attributes.key?(:'video_codec')
1614
+ self.video_codec = attributes[:'video_codec']
1615
+ end
1616
+
1617
+ if attributes.key?(:'audio_codec')
1618
+ self.audio_codec = attributes[:'audio_codec']
1619
+ end
1620
+
1621
+ if attributes.key?(:'video_dynamic_range_type')
1622
+ self.video_dynamic_range_type = attributes[:'video_dynamic_range_type']
1623
+ end
1624
+
1625
+ if attributes.key?(:'view_cdn_edge_pop')
1626
+ self.view_cdn_edge_pop = attributes[:'view_cdn_edge_pop']
1627
+ end
1628
+
1629
+ if attributes.key?(:'view_cdn_origin')
1630
+ self.view_cdn_origin = attributes[:'view_cdn_origin']
1508
1631
  end
1509
1632
  end
1510
1633
 
@@ -1687,9 +1810,23 @@ module MuxRuby
1687
1810
  ad_playback_failure_error_type_id == o.ad_playback_failure_error_type_id &&
1688
1811
  view_content_startup_time == o.view_content_startup_time &&
1689
1812
  ad_preroll_startup_time == o.ad_preroll_startup_time &&
1690
- ad_watch_time == o.ad_watch_time &&
1691
- view_content_watch_time == o.view_content_watch_time &&
1692
- view_dropped == o.view_dropped
1813
+ view_dropped == o.view_dropped &&
1814
+ client_application_name == o.client_application_name &&
1815
+ client_application_version == o.client_application_version &&
1816
+ video_affiliate == o.video_affiliate &&
1817
+ viewer_plan == o.viewer_plan &&
1818
+ viewer_plan_status == o.viewer_plan_status &&
1819
+ viewer_plan_category == o.viewer_plan_category &&
1820
+ view_drm_level == o.view_drm_level &&
1821
+ video_brand == o.video_brand &&
1822
+ used_pip == o.used_pip &&
1823
+ time_shift_enabled == o.time_shift_enabled &&
1824
+ used_captions == o.used_captions &&
1825
+ video_codec == o.video_codec &&
1826
+ audio_codec == o.audio_codec &&
1827
+ video_dynamic_range_type == o.video_dynamic_range_type &&
1828
+ view_cdn_edge_pop == o.view_cdn_edge_pop &&
1829
+ view_cdn_origin == o.view_cdn_origin
1693
1830
  end
1694
1831
 
1695
1832
  # @see the `==` method
@@ -1701,7 +1838,7 @@ module MuxRuby
1701
1838
  # Calculates hash code according to all attributes.
1702
1839
  # @return [Integer] Hash code
1703
1840
  def hash
1704
- [view_total_upscaling, preroll_ad_asset_hostname, player_source_domain, region, viewer_user_agent, preroll_requested, page_type, startup_score, view_seek_duration, country_name, player_source_height, longitude, buffering_count, video_duration, player_source_type, city, view_id, platform_description, video_startup_preroll_request_time, viewer_device_name, video_series, viewer_application_name, updated_at, view_total_content_playback_time, cdn, player_instance_id, video_language, player_source_width, player_error_message, player_mux_plugin_version, watched, playback_score, page_url, metro, view_max_request_latency, requests_for_first_preroll, view_total_downscaling, latitude, player_source_host_name, inserted_at, view_end, mux_embed_version, player_language, page_load_time, viewer_device_category, video_startup_preroll_load_time, player_version, watch_time, player_source_stream_type, preroll_ad_tag_hostname, viewer_device_manufacturer, rebuffering_score, experiment_name, viewer_os_version, player_preload, buffering_duration, player_view_count, player_software, player_load_time, platform_summary, video_encoding_variant, player_width, view_seek_count, viewer_experience_score, view_error_id, video_variant_name, preroll_played, viewer_application_engine, viewer_os_architecture, player_error_code, buffering_rate, events, player_name, view_start, view_average_request_throughput, video_producer, error_type_id, mux_viewer_id, video_id, continent_code, session_id, exit_before_video_start, video_content_type, viewer_os_family, player_poster, view_average_request_latency, video_variant_id, player_source_duration, player_source_url, mux_api_version, video_title, id, short_time, rebuffer_percentage, time_to_first_frame, viewer_user_id, video_stream_type, player_startup_time, viewer_application_version, view_max_downscale_percentage, view_max_upscale_percentage, country_code, used_fullscreen, isp, property_id, player_autoplay, player_height, asn, asn_name, quality_score, player_software_version, player_mux_plugin_name, sub_property_id, player_remote_played, view_max_playhead_position, view_playing_time, view_session_id, viewer_connection_type, viewer_device_model, weighted_average_bitrate, custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10, live_stream_latency, asset_id, environment_id, live_stream_id, mux_embed, playback_id, player_error_context, view_drm_type, view_dropped_frame_count, view_has_ad, video_startup_failure, ad_attempt_count, ad_break_count, ad_break_error_count, ad_break_error_percentage, ad_error_count, ad_error_percentage, ad_impression_count, ad_startup_error_count, ad_startup_error_percentage, ad_exit_before_start_count, ad_exit_before_start_percentage, long_resume, long_rebuffering, playback_failure_error_type_id, playback_business_exception_error_type_id, video_startup_business_exception_error_type_id, playback_failure, ad_playback_failure_error_type_id, view_content_startup_time, ad_preroll_startup_time, ad_watch_time, view_content_watch_time, view_dropped].hash
1841
+ [view_total_upscaling, preroll_ad_asset_hostname, player_source_domain, region, viewer_user_agent, preroll_requested, page_type, startup_score, view_seek_duration, country_name, player_source_height, longitude, buffering_count, video_duration, player_source_type, city, view_id, platform_description, video_startup_preroll_request_time, viewer_device_name, video_series, viewer_application_name, updated_at, view_total_content_playback_time, cdn, player_instance_id, video_language, player_source_width, player_error_message, player_mux_plugin_version, watched, playback_score, page_url, metro, view_max_request_latency, requests_for_first_preroll, view_total_downscaling, latitude, player_source_host_name, inserted_at, view_end, mux_embed_version, player_language, page_load_time, viewer_device_category, video_startup_preroll_load_time, player_version, watch_time, player_source_stream_type, preroll_ad_tag_hostname, viewer_device_manufacturer, rebuffering_score, experiment_name, viewer_os_version, player_preload, buffering_duration, player_view_count, player_software, player_load_time, platform_summary, video_encoding_variant, player_width, view_seek_count, viewer_experience_score, view_error_id, video_variant_name, preroll_played, viewer_application_engine, viewer_os_architecture, player_error_code, buffering_rate, events, player_name, view_start, view_average_request_throughput, video_producer, error_type_id, mux_viewer_id, video_id, continent_code, session_id, exit_before_video_start, video_content_type, viewer_os_family, player_poster, view_average_request_latency, video_variant_id, player_source_duration, player_source_url, mux_api_version, video_title, id, short_time, rebuffer_percentage, time_to_first_frame, viewer_user_id, video_stream_type, player_startup_time, viewer_application_version, view_max_downscale_percentage, view_max_upscale_percentage, country_code, used_fullscreen, isp, property_id, player_autoplay, player_height, asn, asn_name, quality_score, player_software_version, player_mux_plugin_name, sub_property_id, player_remote_played, view_max_playhead_position, view_playing_time, view_session_id, viewer_connection_type, viewer_device_model, weighted_average_bitrate, custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10, live_stream_latency, asset_id, environment_id, live_stream_id, mux_embed, playback_id, player_error_context, view_drm_type, view_dropped_frame_count, view_has_ad, video_startup_failure, ad_attempt_count, ad_break_count, ad_break_error_count, ad_break_error_percentage, ad_error_count, ad_error_percentage, ad_impression_count, ad_startup_error_count, ad_startup_error_percentage, ad_exit_before_start_count, ad_exit_before_start_percentage, long_resume, long_rebuffering, playback_failure_error_type_id, playback_business_exception_error_type_id, video_startup_business_exception_error_type_id, playback_failure, ad_playback_failure_error_type_id, view_content_startup_time, ad_preroll_startup_time, view_dropped, client_application_name, client_application_version, video_affiliate, viewer_plan, viewer_plan_status, viewer_plan_category, view_drm_level, video_brand, used_pip, time_shift_enabled, used_captions, video_codec, audio_codec, video_dynamic_range_type, view_cdn_edge_pop, view_cdn_origin].hash
1705
1842
  end
1706
1843
 
1707
1844
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.1
11
11
  =end
12
12
 
13
13
  module MuxRuby
14
- VERSION = '3.19.0'
14
+ VERSION = '4.0.0'
15
15
  end