mux_ruby 3.9.0 → 3.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/CODEOWNERS +1 -1
  3. data/Gemfile.lock +2 -2
  4. data/README.md +4 -4
  5. data/docs/Asset.md +7 -1
  6. data/docs/AssetGeneratedSubtitleSettings.md +22 -0
  7. data/docs/AssetNonStandardInputReasons.md +3 -1
  8. data/docs/AssetsApi.md +1 -1
  9. data/docs/CreateAssetRequest.md +5 -1
  10. data/docs/CreateLiveStreamRequest.md +3 -3
  11. data/docs/CreateTrackRequest.md +2 -2
  12. data/docs/DeliveryReport.md +2 -0
  13. data/docs/DeliveryReportDeliveredSecondsByResolution.md +5 -1
  14. data/docs/DirectUploadsApi.md +1 -1
  15. data/docs/GetMonitoringBreakdownTimeseriesResponse.md +22 -0
  16. data/docs/InputSettings.md +7 -5
  17. data/docs/LiveStream.md +4 -4
  18. data/docs/MetricsApi.md +2 -2
  19. data/docs/MonitoringApi.md +93 -6
  20. data/docs/MonitoringBreakdownTimeseriesDatapoint.md +22 -0
  21. data/docs/MonitoringBreakdownTimeseriesValues.md +20 -0
  22. data/docs/RealTimeApi.md +8 -6
  23. data/docs/SigningKeysApi.md +291 -0
  24. data/docs/Track.md +4 -4
  25. data/docs/URLSigningKeysApi.md +4 -4
  26. data/docs/UpdateLiveStreamRequest.md +1 -1
  27. data/docs/VideoView.md +33 -1
  28. data/examples/video/exercise-signing-keys.rb +5 -4
  29. data/gen/generator-config.json +1 -1
  30. data/gen/package.json +1 -1
  31. data/gen/yarn.lock +593 -129
  32. data/lib/mux_ruby/api/assets_api.rb +2 -2
  33. data/lib/mux_ruby/api/direct_uploads_api.rb +2 -2
  34. data/lib/mux_ruby/api/metrics_api.rb +9 -9
  35. data/lib/mux_ruby/api/monitoring_api.rb +110 -9
  36. data/lib/mux_ruby/api/real_time_api.rb +9 -6
  37. data/lib/mux_ruby/api/signing_keys_api.rb +266 -0
  38. data/lib/mux_ruby/api/url_signing_keys_api.rb +8 -8
  39. data/lib/mux_ruby/models/asset.rb +68 -2
  40. data/lib/mux_ruby/models/asset_generated_subtitle_settings.rb +275 -0
  41. data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +14 -4
  42. data/lib/mux_ruby/models/create_asset_request.rb +48 -4
  43. data/lib/mux_ruby/models/create_live_stream_request.rb +3 -3
  44. data/lib/mux_ruby/models/create_track_request.rb +4 -3
  45. data/lib/mux_ruby/models/delivery_report.rb +23 -1
  46. data/lib/mux_ruby/models/delivery_report_delivered_seconds_by_resolution.rb +22 -2
  47. data/lib/mux_ruby/models/get_monitoring_breakdown_timeseries_response.rb +240 -0
  48. data/lib/mux_ruby/models/input_settings.rb +18 -6
  49. data/lib/mux_ruby/models/live_stream.rb +4 -4
  50. data/lib/mux_ruby/models/live_stream_embedded_subtitle_settings.rb +2 -2
  51. data/lib/mux_ruby/models/monitoring_breakdown_timeseries_datapoint.rb +236 -0
  52. data/lib/mux_ruby/models/monitoring_breakdown_timeseries_values.rb +229 -0
  53. data/lib/mux_ruby/models/track.rb +4 -4
  54. data/lib/mux_ruby/models/update_live_stream_request.rb +1 -1
  55. data/lib/mux_ruby/models/video_view.rb +162 -5
  56. data/lib/mux_ruby/version.rb +1 -1
  57. data/lib/mux_ruby.rb +5 -0
  58. data/spec/api/signing_keys_api_spec.rb +83 -0
  59. data/spec/models/asset_generated_subtitle_settings_spec.rb +50 -0
  60. data/spec/models/get_monitoring_breakdown_timeseries_response_spec.rb +46 -0
  61. data/spec/models/monitoring_breakdown_timeseries_datapoint_spec.rb +46 -0
  62. data/spec/models/monitoring_breakdown_timeseries_values_spec.rb +40 -0
  63. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/byebug/byebug.so +0 -0
  64. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +6 -6
  65. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.15.5/ffi_c.so +0 -0
  66. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.15.5/gem_make.out +6 -6
  67. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.15.5/mkmf.log +15 -15
  68. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.4/gem_make.out +14 -14
  69. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.4/jaro_winkler/jaro_winkler_ext.so +0 -0
  70. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/gem_make.out +6 -6
  71. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/mkmf.log +4 -4
  72. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/psych.so +0 -0
  73. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/gem_make.out +6 -6
  74. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/mkmf.log +2 -2
  75. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/stringio.so +0 -0
  76. data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug/Makefile +6 -6
  77. data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
  78. data/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +6 -6
  79. data/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/lib/ffi_c.so +0 -0
  80. data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +6 -6
  81. data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
  82. data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/ext/psych/Makefile +6 -6
  83. data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/lib/psych.so +0 -0
  84. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/ext/stringio/Makefile +6 -6
  85. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/lib/stringio.so +0 -0
  86. data/vendor/bundle/ruby/3.2.0/specifications/ast-2.4.2.gemspec +2 -2
  87. data/vendor/bundle/ruby/3.2.0/specifications/byebug-11.1.3.gemspec +2 -2
  88. data/vendor/bundle/ruby/3.2.0/specifications/coderay-1.1.3.gemspec +2 -2
  89. data/vendor/bundle/ruby/3.2.0/specifications/diff-lcs-1.5.0.gemspec +2 -2
  90. data/vendor/bundle/ruby/3.2.0/specifications/ethon-0.16.0.gemspec +2 -2
  91. data/vendor/bundle/ruby/3.2.0/specifications/ffi-1.15.5.gemspec +2 -2
  92. data/vendor/bundle/ruby/3.2.0/specifications/jaro_winkler-1.5.4.gemspec +2 -2
  93. data/vendor/bundle/ruby/3.2.0/specifications/method_source-1.0.0.gemspec +2 -2
  94. data/vendor/bundle/ruby/3.2.0/specifications/parallel-1.22.1.gemspec +2 -2
  95. data/vendor/bundle/ruby/3.2.0/specifications/parser-3.1.2.0.gemspec +2 -2
  96. data/vendor/bundle/ruby/3.2.0/specifications/pry-0.13.1.gemspec +2 -2
  97. data/vendor/bundle/ruby/3.2.0/specifications/pry-byebug-3.9.0.gemspec +2 -2
  98. data/vendor/bundle/ruby/3.2.0/specifications/psych-4.0.4.gemspec +2 -2
  99. data/vendor/bundle/ruby/3.2.0/specifications/rainbow-3.1.1.gemspec +2 -2
  100. data/vendor/bundle/ruby/3.2.0/specifications/rake-13.0.6.gemspec +2 -2
  101. data/vendor/bundle/ruby/3.2.0/specifications/rspec-3.11.0.gemspec +2 -2
  102. data/vendor/bundle/ruby/3.2.0/specifications/rspec-core-3.11.0.gemspec +2 -2
  103. data/vendor/bundle/ruby/3.2.0/specifications/rspec-expectations-3.11.0.gemspec +2 -2
  104. data/vendor/bundle/ruby/3.2.0/specifications/rspec-mocks-3.11.1.gemspec +2 -2
  105. data/vendor/bundle/ruby/3.2.0/specifications/rspec-support-3.11.0.gemspec +2 -2
  106. data/vendor/bundle/ruby/3.2.0/specifications/rubocop-0.66.0.gemspec +2 -2
  107. data/vendor/bundle/ruby/3.2.0/specifications/ruby-progressbar-1.11.0.gemspec +2 -2
  108. data/vendor/bundle/ruby/3.2.0/specifications/solid_assert-1.1.0.gemspec +2 -2
  109. data/vendor/bundle/ruby/3.2.0/specifications/stringio-3.0.2.gemspec +2 -2
  110. data/vendor/bundle/ruby/3.2.0/specifications/typhoeus-1.4.0.gemspec +2 -2
  111. data/vendor/bundle/ruby/3.2.0/specifications/unicode-display_width-1.5.0.gemspec +2 -2
  112. metadata +160 -140
@@ -0,0 +1,266 @@
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 'cgi'
14
+
15
+ module MuxRuby
16
+ class SigningKeysApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create a signing key
23
+ # Creates a new signing key pair. When creating a new signing key, the API will generate a 2048-bit RSA key-pair and return the private key and a generated key-id; the public key will be stored at Mux to validate signed tokens.
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [SigningKeyResponse]
26
+ def create_signing_key(opts = {})
27
+ data, _status_code, _headers = create_signing_key_with_http_info(opts)
28
+ data
29
+ end
30
+
31
+ # Create a signing key
32
+ # Creates a new signing key pair. When creating a new signing key, the API will generate a 2048-bit RSA key-pair and return the private key and a generated key-id; the public key will be stored at Mux to validate signed tokens.
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(SigningKeyResponse, Integer, Hash)>] SigningKeyResponse data, response status code and response headers
35
+ def create_signing_key_with_http_info(opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: SigningKeysApi.create_signing_key ...'
38
+ end
39
+ # resource path
40
+ local_var_path = '/system/v1/signing-keys'
41
+
42
+ # query parameters
43
+ query_params = opts[:query_params] || {}
44
+
45
+ # header parameters
46
+ header_params = opts[:header_params] || {}
47
+ # HTTP header 'Accept' (if needed)
48
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
49
+
50
+ # form parameters
51
+ form_params = opts[:form_params] || {}
52
+
53
+ # http body (model)
54
+ post_body = opts[:debug_body]
55
+
56
+ # return_type
57
+ return_type = opts[:debug_return_type] || 'SigningKeyResponse'
58
+
59
+ # auth_names
60
+ auth_names = opts[:debug_auth_names] || ['accessToken']
61
+
62
+ new_options = opts.merge(
63
+ :operation => :"SigningKeysApi.create_signing_key",
64
+ :header_params => header_params,
65
+ :query_params => query_params,
66
+ :form_params => form_params,
67
+ :body => post_body,
68
+ :auth_names => auth_names,
69
+ :return_type => return_type
70
+ )
71
+
72
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
73
+ if @api_client.config.debugging
74
+ @api_client.config.logger.debug "API called: SigningKeysApi#create_signing_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
+ end
76
+ return data, status_code, headers
77
+ end
78
+
79
+ # Delete a signing key
80
+ # Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no JWTs can be signed using the key again.
81
+ # @param signing_key_id [String] The ID of the signing key.
82
+ # @param [Hash] opts the optional parameters
83
+ # @return [nil]
84
+ def delete_signing_key(signing_key_id, opts = {})
85
+ delete_signing_key_with_http_info(signing_key_id, opts)
86
+ nil
87
+ end
88
+
89
+ # Delete a signing key
90
+ # Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no JWTs can be signed using the key again.
91
+ # @param signing_key_id [String] The ID of the signing key.
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
94
+ def delete_signing_key_with_http_info(signing_key_id, opts = {})
95
+ if @api_client.config.debugging
96
+ @api_client.config.logger.debug 'Calling API: SigningKeysApi.delete_signing_key ...'
97
+ end
98
+ # verify the required parameter 'signing_key_id' is set
99
+ if @api_client.config.client_side_validation && signing_key_id.nil?
100
+ fail ArgumentError, "Missing the required parameter 'signing_key_id' when calling SigningKeysApi.delete_signing_key"
101
+ end
102
+ # resource path
103
+ local_var_path = '/system/v1/signing-keys/{SIGNING_KEY_ID}'.sub('{' + 'SIGNING_KEY_ID' + '}', CGI.escape(signing_key_id.to_s))
104
+
105
+ # query parameters
106
+ query_params = opts[:query_params] || {}
107
+
108
+ # header parameters
109
+ header_params = opts[:header_params] || {}
110
+
111
+ # form parameters
112
+ form_params = opts[:form_params] || {}
113
+
114
+ # http body (model)
115
+ post_body = opts[:debug_body]
116
+
117
+ # return_type
118
+ return_type = opts[:debug_return_type]
119
+
120
+ # auth_names
121
+ auth_names = opts[:debug_auth_names] || ['accessToken']
122
+
123
+ new_options = opts.merge(
124
+ :operation => :"SigningKeysApi.delete_signing_key",
125
+ :header_params => header_params,
126
+ :query_params => query_params,
127
+ :form_params => form_params,
128
+ :body => post_body,
129
+ :auth_names => auth_names,
130
+ :return_type => return_type
131
+ )
132
+
133
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
134
+ if @api_client.config.debugging
135
+ @api_client.config.logger.debug "API called: SigningKeysApi#delete_signing_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
136
+ end
137
+ return data, status_code, headers
138
+ end
139
+
140
+ # Retrieve a signing key
141
+ # Retrieves the details of a signing key that has previously been created. Supply the unique signing key ID that was returned from your previous request, and Mux will return the corresponding signing key information. **The private key is not returned in this response.**
142
+ # @param signing_key_id [String] The ID of the signing key.
143
+ # @param [Hash] opts the optional parameters
144
+ # @return [SigningKeyResponse]
145
+ def get_signing_key(signing_key_id, opts = {})
146
+ data, _status_code, _headers = get_signing_key_with_http_info(signing_key_id, opts)
147
+ data
148
+ end
149
+
150
+ # Retrieve a signing key
151
+ # Retrieves the details of a signing key that has previously been created. Supply the unique signing key ID that was returned from your previous request, and Mux will return the corresponding signing key information. **The private key is not returned in this response.**
152
+ # @param signing_key_id [String] The ID of the signing key.
153
+ # @param [Hash] opts the optional parameters
154
+ # @return [Array<(SigningKeyResponse, Integer, Hash)>] SigningKeyResponse data, response status code and response headers
155
+ def get_signing_key_with_http_info(signing_key_id, opts = {})
156
+ if @api_client.config.debugging
157
+ @api_client.config.logger.debug 'Calling API: SigningKeysApi.get_signing_key ...'
158
+ end
159
+ # verify the required parameter 'signing_key_id' is set
160
+ if @api_client.config.client_side_validation && signing_key_id.nil?
161
+ fail ArgumentError, "Missing the required parameter 'signing_key_id' when calling SigningKeysApi.get_signing_key"
162
+ end
163
+ # resource path
164
+ local_var_path = '/system/v1/signing-keys/{SIGNING_KEY_ID}'.sub('{' + 'SIGNING_KEY_ID' + '}', CGI.escape(signing_key_id.to_s))
165
+
166
+ # query parameters
167
+ query_params = opts[:query_params] || {}
168
+
169
+ # header parameters
170
+ header_params = opts[:header_params] || {}
171
+ # HTTP header 'Accept' (if needed)
172
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
173
+
174
+ # form parameters
175
+ form_params = opts[:form_params] || {}
176
+
177
+ # http body (model)
178
+ post_body = opts[:debug_body]
179
+
180
+ # return_type
181
+ return_type = opts[:debug_return_type] || 'SigningKeyResponse'
182
+
183
+ # auth_names
184
+ auth_names = opts[:debug_auth_names] || ['accessToken']
185
+
186
+ new_options = opts.merge(
187
+ :operation => :"SigningKeysApi.get_signing_key",
188
+ :header_params => header_params,
189
+ :query_params => query_params,
190
+ :form_params => form_params,
191
+ :body => post_body,
192
+ :auth_names => auth_names,
193
+ :return_type => return_type
194
+ )
195
+
196
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
197
+ if @api_client.config.debugging
198
+ @api_client.config.logger.debug "API called: SigningKeysApi#get_signing_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
199
+ end
200
+ return data, status_code, headers
201
+ end
202
+
203
+ # List signing keys
204
+ # Returns a list of signing keys.
205
+ # @param [Hash] opts the optional parameters
206
+ # @option opts [Integer] :limit Number of items to include in the response (default to 25)
207
+ # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60; (default to 1)
208
+ # @return [ListSigningKeysResponse]
209
+ def list_signing_keys(opts = {})
210
+ data, _status_code, _headers = list_signing_keys_with_http_info(opts)
211
+ data
212
+ end
213
+
214
+ # List signing keys
215
+ # Returns a list of signing keys.
216
+ # @param [Hash] opts the optional parameters
217
+ # @option opts [Integer] :limit Number of items to include in the response
218
+ # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60;
219
+ # @return [Array<(ListSigningKeysResponse, Integer, Hash)>] ListSigningKeysResponse data, response status code and response headers
220
+ def list_signing_keys_with_http_info(opts = {})
221
+ if @api_client.config.debugging
222
+ @api_client.config.logger.debug 'Calling API: SigningKeysApi.list_signing_keys ...'
223
+ end
224
+ # resource path
225
+ local_var_path = '/system/v1/signing-keys'
226
+
227
+ # query parameters
228
+ query_params = opts[:query_params] || {}
229
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
230
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
231
+
232
+ # header parameters
233
+ header_params = opts[:header_params] || {}
234
+ # HTTP header 'Accept' (if needed)
235
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
236
+
237
+ # form parameters
238
+ form_params = opts[:form_params] || {}
239
+
240
+ # http body (model)
241
+ post_body = opts[:debug_body]
242
+
243
+ # return_type
244
+ return_type = opts[:debug_return_type] || 'ListSigningKeysResponse'
245
+
246
+ # auth_names
247
+ auth_names = opts[:debug_auth_names] || ['accessToken']
248
+
249
+ new_options = opts.merge(
250
+ :operation => :"SigningKeysApi.list_signing_keys",
251
+ :header_params => header_params,
252
+ :query_params => query_params,
253
+ :form_params => form_params,
254
+ :body => post_body,
255
+ :auth_names => auth_names,
256
+ :return_type => return_type
257
+ )
258
+
259
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
260
+ if @api_client.config.debugging
261
+ @api_client.config.logger.debug "API called: SigningKeysApi#list_signing_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
262
+ end
263
+ return data, status_code, headers
264
+ end
265
+ end
266
+ end
@@ -20,7 +20,7 @@ module MuxRuby
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create a URL signing key
23
- # Creates a new signing key pair. When creating a new signing key, the API will generate a 2048-bit RSA key-pair and return the private key and a generated key-id; the public key will be stored at Mux to validate signed tokens.
23
+ # This route is now deprecated, please use the `Signing Keys` API. Creates a new signing key pair. When creating a new signing key, the API will generate a 2048-bit RSA key-pair and return the private key and a generated key-id; the public key will be stored at Mux to validate signed tokens. Note: Any new access tokens authenticating this route will be required to have `System` level permissions.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [SigningKeyResponse]
26
26
  def create_url_signing_key(opts = {})
@@ -29,7 +29,7 @@ module MuxRuby
29
29
  end
30
30
 
31
31
  # Create a URL signing key
32
- # Creates a new signing key pair. When creating a new signing key, the API will generate a 2048-bit RSA key-pair and return the private key and a generated key-id; the public key will be stored at Mux to validate signed tokens.
32
+ # This route is now deprecated, please use the &#x60;Signing Keys&#x60; API. Creates a new signing key pair. When creating a new signing key, the API will generate a 2048-bit RSA key-pair and return the private key and a generated key-id; the public key will be stored at Mux to validate signed tokens. Note: Any new access tokens authenticating this route will be required to have &#x60;System&#x60; level permissions.
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(SigningKeyResponse, Integer, Hash)>] SigningKeyResponse data, response status code and response headers
35
35
  def create_url_signing_key_with_http_info(opts = {})
@@ -77,7 +77,7 @@ module MuxRuby
77
77
  end
78
78
 
79
79
  # Delete a URL signing key
80
- # Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no URLs can be signed using the key again.
80
+ # This route is now deprecated, please use the `Signing Keys` API. Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no URLs can be signed using the key again. Note: Any new access tokens authenticating this route will be required to have `System` level permissions.
81
81
  # @param signing_key_id [String] The ID of the signing key.
82
82
  # @param [Hash] opts the optional parameters
83
83
  # @return [nil]
@@ -87,7 +87,7 @@ module MuxRuby
87
87
  end
88
88
 
89
89
  # Delete a URL signing key
90
- # Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no URLs can be signed using the key again.
90
+ # This route is now deprecated, please use the &#x60;Signing Keys&#x60; API. Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no URLs can be signed using the key again. Note: Any new access tokens authenticating this route will be required to have &#x60;System&#x60; level permissions.
91
91
  # @param signing_key_id [String] The ID of the signing key.
92
92
  # @param [Hash] opts the optional parameters
93
93
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -138,7 +138,7 @@ module MuxRuby
138
138
  end
139
139
 
140
140
  # Retrieve a URL signing key
141
- # Retrieves the details of a URL signing key that has previously been created. Supply the unique signing key ID that was returned from your previous request, and Mux will return the corresponding signing key information. **The private key is not returned in this response.**
141
+ # This route is now deprecated, please use the `Signing Keys` API. Retrieves the details of a URL signing key that has previously been created. Supply the unique signing key ID that was returned from your previous request, and Mux will return the corresponding signing key information. **The private key is not returned in this response.** Note: Any new access tokens authenticating this route will be required to have `System` level permissions.
142
142
  # @param signing_key_id [String] The ID of the signing key.
143
143
  # @param [Hash] opts the optional parameters
144
144
  # @return [SigningKeyResponse]
@@ -148,7 +148,7 @@ module MuxRuby
148
148
  end
149
149
 
150
150
  # Retrieve a URL signing key
151
- # Retrieves the details of a URL signing key that has previously been created. Supply the unique signing key ID that was returned from your previous request, and Mux will return the corresponding signing key information. **The private key is not returned in this response.**
151
+ # This route is now deprecated, please use the &#x60;Signing Keys&#x60; API. Retrieves the details of a URL signing key that has previously been created. Supply the unique signing key ID that was returned from your previous request, and Mux will return the corresponding signing key information. **The private key is not returned in this response.** Note: Any new access tokens authenticating this route will be required to have &#x60;System&#x60; level permissions.
152
152
  # @param signing_key_id [String] The ID of the signing key.
153
153
  # @param [Hash] opts the optional parameters
154
154
  # @return [Array<(SigningKeyResponse, Integer, Hash)>] SigningKeyResponse data, response status code and response headers
@@ -201,7 +201,7 @@ module MuxRuby
201
201
  end
202
202
 
203
203
  # List URL signing keys
204
- # Returns a list of URL signing keys.
204
+ # This route is now deprecated, please use the `Signing Keys` API. Returns a list of URL signing keys. Note: Any new access tokens authenticating this route will be required to have `System` level permissions.
205
205
  # @param [Hash] opts the optional parameters
206
206
  # @option opts [Integer] :limit Number of items to include in the response (default to 25)
207
207
  # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60; (default to 1)
@@ -212,7 +212,7 @@ module MuxRuby
212
212
  end
213
213
 
214
214
  # List URL signing keys
215
- # Returns a list of URL signing keys.
215
+ # This route is now deprecated, please use the &#x60;Signing Keys&#x60; API. Returns a list of URL signing keys. Note: Any new access tokens authenticating this route will be required to have &#x60;System&#x60; level permissions.
216
216
  # @param [Hash] opts the optional parameters
217
217
  # @option opts [Integer] :limit Number of items to include in the response
218
218
  # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60;
@@ -27,9 +27,18 @@ module MuxRuby
27
27
  # The duration of the asset in seconds (max duration for a single asset is 12 hours).
28
28
  attr_accessor :duration
29
29
 
30
- # The maximum resolution that has been stored for the asset. The asset may be delivered at lower resolutions depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored.
30
+ # This field is deprecated. Please use `resolution_tier` instead. The maximum resolution that has been stored for the asset. The asset may be delivered at lower resolutions depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored.
31
31
  attr_accessor :max_stored_resolution
32
32
 
33
+ # The resolution tier that the asset was ingested at, affecting billing for ingest & storage. This field also represents the highest resolution tier that the content can be delivered at, however the actual resolution may be lower depending on the device, bandwidth, and exact resolution of the uploaded asset.
34
+ attr_accessor :resolution_tier
35
+
36
+ # Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`.
37
+ attr_accessor :max_resolution_tier
38
+
39
+ # The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used.
40
+ attr_accessor :encoding_tier
41
+
33
42
  # The maximum frame rate that has been stored for the asset. The asset may be delivered at lower frame rates depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. This field may return -1 if the frame rate of the input cannot be reliably determined.
34
43
  attr_accessor :max_stored_frame_rate
35
44
 
@@ -110,6 +119,9 @@ module MuxRuby
110
119
  :'status' => :'status',
111
120
  :'duration' => :'duration',
112
121
  :'max_stored_resolution' => :'max_stored_resolution',
122
+ :'resolution_tier' => :'resolution_tier',
123
+ :'max_resolution_tier' => :'max_resolution_tier',
124
+ :'encoding_tier' => :'encoding_tier',
113
125
  :'max_stored_frame_rate' => :'max_stored_frame_rate',
114
126
  :'aspect_ratio' => :'aspect_ratio',
115
127
  :'playback_ids' => :'playback_ids',
@@ -145,6 +157,9 @@ module MuxRuby
145
157
  :'status' => :'String',
146
158
  :'duration' => :'Float',
147
159
  :'max_stored_resolution' => :'String',
160
+ :'resolution_tier' => :'String',
161
+ :'max_resolution_tier' => :'String',
162
+ :'encoding_tier' => :'String',
148
163
  :'max_stored_frame_rate' => :'Float',
149
164
  :'aspect_ratio' => :'String',
150
165
  :'playback_ids' => :'Array<PlaybackID>',
@@ -208,6 +223,18 @@ module MuxRuby
208
223
  self.max_stored_resolution = attributes[:'max_stored_resolution']
209
224
  end
210
225
 
226
+ if attributes.key?(:'resolution_tier')
227
+ self.resolution_tier = attributes[:'resolution_tier']
228
+ end
229
+
230
+ if attributes.key?(:'max_resolution_tier')
231
+ self.max_resolution_tier = attributes[:'max_resolution_tier']
232
+ end
233
+
234
+ if attributes.key?(:'encoding_tier')
235
+ self.encoding_tier = attributes[:'encoding_tier']
236
+ end
237
+
211
238
  if attributes.key?(:'max_stored_frame_rate')
212
239
  self.max_stored_frame_rate = attributes[:'max_stored_frame_rate']
213
240
  end
@@ -311,6 +338,12 @@ module MuxRuby
311
338
  return false unless status_validator.valid?(@status)
312
339
  max_stored_resolution_validator = EnumAttributeValidator.new('String', ["Audio only", "SD", "HD", "FHD", "UHD"])
313
340
  return false unless max_stored_resolution_validator.valid?(@max_stored_resolution)
341
+ resolution_tier_validator = EnumAttributeValidator.new('String', ["audio-only", "720p", "1080p", "1440p", "2160p"])
342
+ return false unless resolution_tier_validator.valid?(@resolution_tier)
343
+ max_resolution_tier_validator = EnumAttributeValidator.new('String', ["1080p", "1440p", "2160p"])
344
+ return false unless max_resolution_tier_validator.valid?(@max_resolution_tier)
345
+ encoding_tier_validator = EnumAttributeValidator.new('String', ["smart", "baseline"])
346
+ return false unless encoding_tier_validator.valid?(@encoding_tier)
314
347
  master_access_validator = EnumAttributeValidator.new('String', ["temporary", "none"])
315
348
  return false unless master_access_validator.valid?(@master_access)
316
349
  mp4_support_validator = EnumAttributeValidator.new('String', ["standard", "none"])
@@ -338,6 +371,36 @@ module MuxRuby
338
371
  @max_stored_resolution = max_stored_resolution
339
372
  end
340
373
 
374
+ # Custom attribute writer method checking allowed values (enum).
375
+ # @param [Object] resolution_tier Object to be assigned
376
+ def resolution_tier=(resolution_tier)
377
+ validator = EnumAttributeValidator.new('String', ["audio-only", "720p", "1080p", "1440p", "2160p"])
378
+ unless validator.valid?(resolution_tier)
379
+ fail ArgumentError, "invalid value for \"resolution_tier\", must be one of #{validator.allowable_values}."
380
+ end
381
+ @resolution_tier = resolution_tier
382
+ end
383
+
384
+ # Custom attribute writer method checking allowed values (enum).
385
+ # @param [Object] max_resolution_tier Object to be assigned
386
+ def max_resolution_tier=(max_resolution_tier)
387
+ validator = EnumAttributeValidator.new('String', ["1080p", "1440p", "2160p"])
388
+ unless validator.valid?(max_resolution_tier)
389
+ fail ArgumentError, "invalid value for \"max_resolution_tier\", must be one of #{validator.allowable_values}."
390
+ end
391
+ @max_resolution_tier = max_resolution_tier
392
+ end
393
+
394
+ # Custom attribute writer method checking allowed values (enum).
395
+ # @param [Object] encoding_tier Object to be assigned
396
+ def encoding_tier=(encoding_tier)
397
+ validator = EnumAttributeValidator.new('String', ["smart", "baseline"])
398
+ unless validator.valid?(encoding_tier)
399
+ fail ArgumentError, "invalid value for \"encoding_tier\", must be one of #{validator.allowable_values}."
400
+ end
401
+ @encoding_tier = encoding_tier
402
+ end
403
+
341
404
  # Custom attribute writer method checking allowed values (enum).
342
405
  # @param [Object] master_access Object to be assigned
343
406
  def master_access=(master_access)
@@ -368,6 +431,9 @@ module MuxRuby
368
431
  status == o.status &&
369
432
  duration == o.duration &&
370
433
  max_stored_resolution == o.max_stored_resolution &&
434
+ resolution_tier == o.resolution_tier &&
435
+ max_resolution_tier == o.max_resolution_tier &&
436
+ encoding_tier == o.encoding_tier &&
371
437
  max_stored_frame_rate == o.max_stored_frame_rate &&
372
438
  aspect_ratio == o.aspect_ratio &&
373
439
  playback_ids == o.playback_ids &&
@@ -398,7 +464,7 @@ module MuxRuby
398
464
  # Calculates hash code according to all attributes.
399
465
  # @return [Integer] Hash code
400
466
  def hash
401
- [id, created_at, status, duration, max_stored_resolution, max_stored_frame_rate, aspect_ratio, playback_ids, tracks, errors, per_title_encode, upload_id, is_live, passthrough, live_stream_id, master, master_access, mp4_support, source_asset_id, normalize_audio, static_renditions, recording_times, non_standard_input_reasons, test].hash
467
+ [id, created_at, status, duration, max_stored_resolution, resolution_tier, max_resolution_tier, encoding_tier, max_stored_frame_rate, aspect_ratio, playback_ids, tracks, errors, per_title_encode, upload_id, is_live, passthrough, live_stream_id, master, master_access, mp4_support, source_asset_id, normalize_audio, static_renditions, recording_times, non_standard_input_reasons, test].hash
402
468
  end
403
469
 
404
470
  # Builds the object from hash