mux_ruby 5.0.0 → 5.1.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 (82) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +4 -4
  4. data/docs/Annotation.md +24 -0
  5. data/docs/AnnotationInput.md +22 -0
  6. data/docs/AnnotationResponse.md +18 -0
  7. data/docs/AnnotationsApi.md +371 -0
  8. data/docs/Asset.md +3 -1
  9. data/docs/AssetMetadata.md +3 -3
  10. data/docs/AssetProgress.md +20 -0
  11. data/docs/AssetsApi.md +4 -2
  12. data/docs/CreateAssetRequest.md +3 -1
  13. data/docs/CreateLiveStreamRequest.md +3 -1
  14. data/docs/DimensionsApi.md +87 -2
  15. data/docs/ErrorsApi.md +2 -2
  16. data/docs/FiltersApi.md +2 -2
  17. data/docs/ListAnnotationsResponse.md +22 -0
  18. data/docs/ListAssetsResponse.md +2 -0
  19. data/docs/LiveStream.md +5 -3
  20. data/docs/LiveStreamMetadata.md +18 -0
  21. data/docs/MetricsApi.md +10 -10
  22. data/docs/UpdateLiveStreamRequest.md +3 -1
  23. data/docs/VideoView.md +3 -1
  24. data/docs/VideoViewsApi.md +2 -2
  25. data/gen/generator-config.json +1 -1
  26. data/lib/mux_ruby/api/annotations_api.rb +355 -0
  27. data/lib/mux_ruby/api/assets_api.rb +7 -4
  28. data/lib/mux_ruby/api/dimensions_api.rb +91 -2
  29. data/lib/mux_ruby/api/errors_api.rb +2 -2
  30. data/lib/mux_ruby/api/filters_api.rb +2 -2
  31. data/lib/mux_ruby/api/metrics_api.rb +12 -12
  32. data/lib/mux_ruby/api/video_views_api.rb +2 -2
  33. data/lib/mux_ruby/configuration.rb +6 -0
  34. data/lib/mux_ruby/models/annotation.rb +250 -0
  35. data/lib/mux_ruby/models/annotation_input.rb +239 -0
  36. data/lib/mux_ruby/models/annotation_response.rb +218 -0
  37. data/lib/mux_ruby/models/asset.rb +13 -4
  38. data/lib/mux_ruby/models/asset_metadata.rb +3 -3
  39. data/lib/mux_ruby/models/asset_progress.rb +288 -0
  40. data/lib/mux_ruby/models/create_asset_request.rb +16 -4
  41. data/lib/mux_ruby/models/create_live_stream_request.rb +13 -4
  42. data/lib/mux_ruby/models/list_annotations_response.rb +266 -0
  43. data/lib/mux_ruby/models/list_assets_response.rb +12 -1
  44. data/lib/mux_ruby/models/live_stream.rb +15 -6
  45. data/lib/mux_ruby/models/live_stream_generated_subtitle_settings.rb +2 -2
  46. data/lib/mux_ruby/models/live_stream_metadata.rb +235 -0
  47. data/lib/mux_ruby/models/static_rendition.rb +2 -2
  48. data/lib/mux_ruby/models/update_live_stream_request.rb +13 -4
  49. data/lib/mux_ruby/models/video_view.rb +16 -5
  50. data/lib/mux_ruby/version.rb +1 -1
  51. data/lib/mux_ruby.rb +7 -0
  52. data/spec/api/annotations_api_spec.rb +99 -0
  53. data/spec/models/annotation_input_spec.rb +46 -0
  54. data/spec/models/annotation_response_spec.rb +34 -0
  55. data/spec/models/annotation_spec.rb +52 -0
  56. data/spec/models/asset_progress_spec.rb +44 -0
  57. data/spec/models/list_annotations_response_spec.rb +46 -0
  58. data/spec/models/live_stream_metadata_spec.rb +34 -0
  59. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/byebug/byebug.so +0 -0
  60. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +6 -6
  61. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/ffi_c.so +0 -0
  62. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/gem_make.out +6 -6
  63. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/mkmf.log +16 -16
  64. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +6 -6
  65. 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
  66. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/gem_make.out +6 -6
  67. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/mkmf.log +4 -4
  68. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/psych.so +0 -0
  69. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/gem_make.out +6 -6
  70. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/mkmf.log +2 -2
  71. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/stringio.so +0 -0
  72. data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug/Makefile +3 -3
  73. data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
  74. data/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/ext/ffi_c/Makefile +3 -3
  75. data/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/lib/ffi_c.so +0 -0
  76. data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler/Makefile +3 -3
  77. data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
  78. data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/ext/psych/Makefile +3 -3
  79. data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/lib/psych.so +0 -0
  80. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/ext/stringio/Makefile +3 -3
  81. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/lib/stringio.so +0 -0
  82. metadata +189 -161
@@ -0,0 +1,355 @@
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 AnnotationsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create Annotation
23
+ # Creates a new annotation.
24
+ # @param annotation_input [AnnotationInput]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [AnnotationResponse]
27
+ def create_annotation(annotation_input, opts = {})
28
+ data, _status_code, _headers = create_annotation_with_http_info(annotation_input, opts)
29
+ data
30
+ end
31
+
32
+ # Create Annotation
33
+ # Creates a new annotation.
34
+ # @param annotation_input [AnnotationInput]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(AnnotationResponse, Integer, Hash)>] AnnotationResponse data, response status code and response headers
37
+ def create_annotation_with_http_info(annotation_input, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: AnnotationsApi.create_annotation ...'
40
+ end
41
+ # verify the required parameter 'annotation_input' is set
42
+ if @api_client.config.client_side_validation && annotation_input.nil?
43
+ fail ArgumentError, "Missing the required parameter 'annotation_input' when calling AnnotationsApi.create_annotation"
44
+ end
45
+ # resource path
46
+ local_var_path = '/data/v1/annotations'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
57
+
58
+ # form parameters
59
+ form_params = opts[:form_params] || {}
60
+
61
+ # http body (model)
62
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(annotation_input)
63
+
64
+ # return_type
65
+ return_type = opts[:debug_return_type] || 'AnnotationResponse'
66
+
67
+ # auth_names
68
+ auth_names = opts[:debug_auth_names] || ['accessToken']
69
+
70
+ new_options = opts.merge(
71
+ :operation => :"AnnotationsApi.create_annotation",
72
+ :header_params => header_params,
73
+ :query_params => query_params,
74
+ :form_params => form_params,
75
+ :body => post_body,
76
+ :auth_names => auth_names,
77
+ :return_type => return_type
78
+ )
79
+
80
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
81
+ if @api_client.config.debugging
82
+ @api_client.config.logger.debug "API called: AnnotationsApi#create_annotation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
83
+ end
84
+ return data, status_code, headers
85
+ end
86
+
87
+ # Delete Annotation
88
+ # Deletes an annotation.
89
+ # @param annotation_id [String] The annotation ID
90
+ # @param [Hash] opts the optional parameters
91
+ # @return [nil]
92
+ def delete_annotation(annotation_id, opts = {})
93
+ delete_annotation_with_http_info(annotation_id, opts)
94
+ nil
95
+ end
96
+
97
+ # Delete Annotation
98
+ # Deletes an annotation.
99
+ # @param annotation_id [String] The annotation ID
100
+ # @param [Hash] opts the optional parameters
101
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
102
+ def delete_annotation_with_http_info(annotation_id, opts = {})
103
+ if @api_client.config.debugging
104
+ @api_client.config.logger.debug 'Calling API: AnnotationsApi.delete_annotation ...'
105
+ end
106
+ # verify the required parameter 'annotation_id' is set
107
+ if @api_client.config.client_side_validation && annotation_id.nil?
108
+ fail ArgumentError, "Missing the required parameter 'annotation_id' when calling AnnotationsApi.delete_annotation"
109
+ end
110
+ # resource path
111
+ local_var_path = '/data/v1/annotations/{ANNOTATION_ID}'.sub('{' + 'ANNOTATION_ID' + '}', CGI.escape(annotation_id.to_s))
112
+
113
+ # query parameters
114
+ query_params = opts[:query_params] || {}
115
+
116
+ # header parameters
117
+ header_params = opts[:header_params] || {}
118
+
119
+ # form parameters
120
+ form_params = opts[:form_params] || {}
121
+
122
+ # http body (model)
123
+ post_body = opts[:debug_body]
124
+
125
+ # return_type
126
+ return_type = opts[:debug_return_type]
127
+
128
+ # auth_names
129
+ auth_names = opts[:debug_auth_names] || ['accessToken']
130
+
131
+ new_options = opts.merge(
132
+ :operation => :"AnnotationsApi.delete_annotation",
133
+ :header_params => header_params,
134
+ :query_params => query_params,
135
+ :form_params => form_params,
136
+ :body => post_body,
137
+ :auth_names => auth_names,
138
+ :return_type => return_type
139
+ )
140
+
141
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
142
+ if @api_client.config.debugging
143
+ @api_client.config.logger.debug "API called: AnnotationsApi#delete_annotation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
+ end
145
+ return data, status_code, headers
146
+ end
147
+
148
+ # Get Annotation
149
+ # Returns the details of a specific annotation.
150
+ # @param annotation_id [String] The annotation ID
151
+ # @param [Hash] opts the optional parameters
152
+ # @return [AnnotationResponse]
153
+ def get_annotation(annotation_id, opts = {})
154
+ data, _status_code, _headers = get_annotation_with_http_info(annotation_id, opts)
155
+ data
156
+ end
157
+
158
+ # Get Annotation
159
+ # Returns the details of a specific annotation.
160
+ # @param annotation_id [String] The annotation ID
161
+ # @param [Hash] opts the optional parameters
162
+ # @return [Array<(AnnotationResponse, Integer, Hash)>] AnnotationResponse data, response status code and response headers
163
+ def get_annotation_with_http_info(annotation_id, opts = {})
164
+ if @api_client.config.debugging
165
+ @api_client.config.logger.debug 'Calling API: AnnotationsApi.get_annotation ...'
166
+ end
167
+ # verify the required parameter 'annotation_id' is set
168
+ if @api_client.config.client_side_validation && annotation_id.nil?
169
+ fail ArgumentError, "Missing the required parameter 'annotation_id' when calling AnnotationsApi.get_annotation"
170
+ end
171
+ # resource path
172
+ local_var_path = '/data/v1/annotations/{ANNOTATION_ID}'.sub('{' + 'ANNOTATION_ID' + '}', CGI.escape(annotation_id.to_s))
173
+
174
+ # query parameters
175
+ query_params = opts[:query_params] || {}
176
+
177
+ # header parameters
178
+ header_params = opts[:header_params] || {}
179
+ # HTTP header 'Accept' (if needed)
180
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
181
+
182
+ # form parameters
183
+ form_params = opts[:form_params] || {}
184
+
185
+ # http body (model)
186
+ post_body = opts[:debug_body]
187
+
188
+ # return_type
189
+ return_type = opts[:debug_return_type] || 'AnnotationResponse'
190
+
191
+ # auth_names
192
+ auth_names = opts[:debug_auth_names] || ['accessToken']
193
+
194
+ new_options = opts.merge(
195
+ :operation => :"AnnotationsApi.get_annotation",
196
+ :header_params => header_params,
197
+ :query_params => query_params,
198
+ :form_params => form_params,
199
+ :body => post_body,
200
+ :auth_names => auth_names,
201
+ :return_type => return_type
202
+ )
203
+
204
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
205
+ if @api_client.config.debugging
206
+ @api_client.config.logger.debug "API called: AnnotationsApi#get_annotation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
207
+ end
208
+ return data, status_code, headers
209
+ end
210
+
211
+ # List Annotations
212
+ # Returns a list of annotations.
213
+ # @param [Hash] opts the optional parameters
214
+ # @option opts [Integer] :limit Number of items to include in the response (default to 25)
215
+ # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60; (default to 1)
216
+ # @option opts [String] :order_direction Sort order.
217
+ # @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]&#x3D;). Accepted formats are... * array of epoch timestamps e.g. &#x60;timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600&#x60; * duration string e.g. &#x60;timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days&#x60;
218
+ # @return [ListAnnotationsResponse]
219
+ def list_annotations(opts = {})
220
+ data, _status_code, _headers = list_annotations_with_http_info(opts)
221
+ data
222
+ end
223
+
224
+ # List Annotations
225
+ # Returns a list of annotations.
226
+ # @param [Hash] opts the optional parameters
227
+ # @option opts [Integer] :limit Number of items to include in the response
228
+ # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60;
229
+ # @option opts [String] :order_direction Sort order.
230
+ # @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]&#x3D;). Accepted formats are... * array of epoch timestamps e.g. &#x60;timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600&#x60; * duration string e.g. &#x60;timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days&#x60;
231
+ # @return [Array<(ListAnnotationsResponse, Integer, Hash)>] ListAnnotationsResponse data, response status code and response headers
232
+ def list_annotations_with_http_info(opts = {})
233
+ if @api_client.config.debugging
234
+ @api_client.config.logger.debug 'Calling API: AnnotationsApi.list_annotations ...'
235
+ end
236
+ allowable_values = ["asc", "desc"]
237
+ if @api_client.config.client_side_validation && opts[:'order_direction'] && !allowable_values.include?(opts[:'order_direction'])
238
+ fail ArgumentError, "invalid value for \"order_direction\", must be one of #{allowable_values}"
239
+ end
240
+ # resource path
241
+ local_var_path = '/data/v1/annotations'
242
+
243
+ # query parameters
244
+ query_params = opts[:query_params] || {}
245
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
246
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
247
+ query_params[:'order_direction'] = opts[:'order_direction'] if !opts[:'order_direction'].nil?
248
+ query_params[:'timeframe[]'] = @api_client.build_collection_param(opts[:'timeframe'], :multi) if !opts[:'timeframe'].nil?
249
+
250
+ # header parameters
251
+ header_params = opts[:header_params] || {}
252
+ # HTTP header 'Accept' (if needed)
253
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
254
+
255
+ # form parameters
256
+ form_params = opts[:form_params] || {}
257
+
258
+ # http body (model)
259
+ post_body = opts[:debug_body]
260
+
261
+ # return_type
262
+ return_type = opts[:debug_return_type] || 'ListAnnotationsResponse'
263
+
264
+ # auth_names
265
+ auth_names = opts[:debug_auth_names] || ['accessToken']
266
+
267
+ new_options = opts.merge(
268
+ :operation => :"AnnotationsApi.list_annotations",
269
+ :header_params => header_params,
270
+ :query_params => query_params,
271
+ :form_params => form_params,
272
+ :body => post_body,
273
+ :auth_names => auth_names,
274
+ :return_type => return_type
275
+ )
276
+
277
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
278
+ if @api_client.config.debugging
279
+ @api_client.config.logger.debug "API called: AnnotationsApi#list_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
280
+ end
281
+ return data, status_code, headers
282
+ end
283
+
284
+ # Update Annotation
285
+ # Updates an existing annotation.
286
+ # @param annotation_id [String] The annotation ID
287
+ # @param annotation_input [AnnotationInput]
288
+ # @param [Hash] opts the optional parameters
289
+ # @return [AnnotationResponse]
290
+ def update_annotation(annotation_id, annotation_input, opts = {})
291
+ data, _status_code, _headers = update_annotation_with_http_info(annotation_id, annotation_input, opts)
292
+ data
293
+ end
294
+
295
+ # Update Annotation
296
+ # Updates an existing annotation.
297
+ # @param annotation_id [String] The annotation ID
298
+ # @param annotation_input [AnnotationInput]
299
+ # @param [Hash] opts the optional parameters
300
+ # @return [Array<(AnnotationResponse, Integer, Hash)>] AnnotationResponse data, response status code and response headers
301
+ def update_annotation_with_http_info(annotation_id, annotation_input, opts = {})
302
+ if @api_client.config.debugging
303
+ @api_client.config.logger.debug 'Calling API: AnnotationsApi.update_annotation ...'
304
+ end
305
+ # verify the required parameter 'annotation_id' is set
306
+ if @api_client.config.client_side_validation && annotation_id.nil?
307
+ fail ArgumentError, "Missing the required parameter 'annotation_id' when calling AnnotationsApi.update_annotation"
308
+ end
309
+ # verify the required parameter 'annotation_input' is set
310
+ if @api_client.config.client_side_validation && annotation_input.nil?
311
+ fail ArgumentError, "Missing the required parameter 'annotation_input' when calling AnnotationsApi.update_annotation"
312
+ end
313
+ # resource path
314
+ local_var_path = '/data/v1/annotations/{ANNOTATION_ID}'.sub('{' + 'ANNOTATION_ID' + '}', CGI.escape(annotation_id.to_s))
315
+
316
+ # query parameters
317
+ query_params = opts[:query_params] || {}
318
+
319
+ # header parameters
320
+ header_params = opts[:header_params] || {}
321
+ # HTTP header 'Accept' (if needed)
322
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
323
+ # HTTP header 'Content-Type'
324
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
325
+
326
+ # form parameters
327
+ form_params = opts[:form_params] || {}
328
+
329
+ # http body (model)
330
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(annotation_input)
331
+
332
+ # return_type
333
+ return_type = opts[:debug_return_type] || 'AnnotationResponse'
334
+
335
+ # auth_names
336
+ auth_names = opts[:debug_auth_names] || ['accessToken']
337
+
338
+ new_options = opts.merge(
339
+ :operation => :"AnnotationsApi.update_annotation",
340
+ :header_params => header_params,
341
+ :query_params => query_params,
342
+ :form_params => form_params,
343
+ :body => post_body,
344
+ :auth_names => auth_names,
345
+ :return_type => return_type
346
+ )
347
+
348
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
349
+ if @api_client.config.debugging
350
+ @api_client.config.logger.debug "API called: AnnotationsApi#update_annotation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
351
+ end
352
+ return data, status_code, headers
353
+ end
354
+ end
355
+ end
@@ -227,7 +227,7 @@ module MuxRuby
227
227
  end
228
228
 
229
229
  # Create an asset track
230
- # Adds an asset track (for example, subtitles, or an alternate audio track) to an asset.
230
+ # Adds an asset track (for example, subtitles, or an alternate audio track) to an asset. Assets must be in the `ready` state before tracks can be added.
231
231
  # @param asset_id [String] The asset ID.
232
232
  # @param create_track_request [CreateTrackRequest]
233
233
  # @param [Hash] opts the optional parameters
@@ -238,7 +238,7 @@ module MuxRuby
238
238
  end
239
239
 
240
240
  # Create an asset track
241
- # Adds an asset track (for example, subtitles, or an alternate audio track) to an asset.
241
+ # Adds an asset track (for example, subtitles, or an alternate audio track) to an asset. Assets must be in the &#x60;ready&#x60; state before tracks can be added.
242
242
  # @param asset_id [String] The asset ID.
243
243
  # @param create_track_request [CreateTrackRequest]
244
244
  # @param [Hash] opts the optional parameters
@@ -493,7 +493,7 @@ module MuxRuby
493
493
  end
494
494
 
495
495
  # Delete an asset track
496
- # Removes a text track from an asset. Audio and video tracks on assets cannot be removed.
496
+ # Removes a text or additional audio track from an asset. Neither video nor the primary audio track can be removed.
497
497
  # @param asset_id [String] The asset ID.
498
498
  # @param track_id [String] The track ID.
499
499
  # @param [Hash] opts the optional parameters
@@ -504,7 +504,7 @@ module MuxRuby
504
504
  end
505
505
 
506
506
  # Delete an asset track
507
- # Removes a text track from an asset. Audio and video tracks on assets cannot be removed.
507
+ # Removes a text or additional audio track from an asset. Neither video nor the primary audio track can be removed.
508
508
  # @param asset_id [String] The asset ID.
509
509
  # @param track_id [String] The track ID.
510
510
  # @param [Hash] opts the optional parameters
@@ -836,6 +836,7 @@ module MuxRuby
836
836
  # @param [Hash] opts the optional parameters
837
837
  # @option opts [Integer] :limit Number of items to include in the response (default to 25)
838
838
  # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60; (default to 1)
839
+ # @option opts [String] :cursor This parameter is used to request pages beyond the first. You can find the cursor value in the &#x60;next_cursor&#x60; field of paginated responses.
839
840
  # @option opts [String] :live_stream_id Filter response to return all the assets for this live stream only
840
841
  # @option opts [String] :upload_id Filter response to return an asset created from this direct upload only
841
842
  # @return [ListAssetsResponse]
@@ -849,6 +850,7 @@ module MuxRuby
849
850
  # @param [Hash] opts the optional parameters
850
851
  # @option opts [Integer] :limit Number of items to include in the response
851
852
  # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60;
853
+ # @option opts [String] :cursor This parameter is used to request pages beyond the first. You can find the cursor value in the &#x60;next_cursor&#x60; field of paginated responses.
852
854
  # @option opts [String] :live_stream_id Filter response to return all the assets for this live stream only
853
855
  # @option opts [String] :upload_id Filter response to return an asset created from this direct upload only
854
856
  # @return [Array<(ListAssetsResponse, Integer, Hash)>] ListAssetsResponse data, response status code and response headers
@@ -863,6 +865,7 @@ module MuxRuby
863
865
  query_params = opts[:query_params] || {}
864
866
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
865
867
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
868
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
866
869
  query_params[:'live_stream_id'] = opts[:'live_stream_id'] if !opts[:'live_stream_id'].nil?
867
870
  query_params[:'upload_id'] = opts[:'upload_id'] if !opts[:'upload_id'].nil?
868
871
 
@@ -19,13 +19,102 @@ module MuxRuby
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Lists elements for a trace dimension
23
+ # Lists the elements (values) for a trace dimension along with their total counts. This endpoint is specifically designed for trace dimensions like video_cdn_trace that contain arrays of values.
24
+ # @param dimension_id [String] ID of the Dimension
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [Integer] :limit Number of items to include in the response (default to 25)
27
+ # @option opts [Array<String>] :filters Filter results using key:value pairs. Must be provided as an array query string parameter. **Basic filtering:** * &#x60;filters[]&#x3D;dimension:value&#x60; - Include rows where dimension equals value * &#x60;filters[]&#x3D;!dimension:value&#x60; - Exclude rows where dimension equals value **For trace dimensions (like video_cdn_trace):** * &#x60;filters[]&#x3D;+dimension:value&#x60; - Include rows where trace contains value * &#x60;filters[]&#x3D;-dimension:value&#x60; - Exclude rows where trace contains value * &#x60;filters[]&#x3D;dimension:[value1,value2]&#x60; - Exact trace match **Examples:** * &#x60;filters[]&#x3D;country:US&#x60; - US views only * &#x60;filters[]&#x3D;+video_cdn_trace:fastly&#x60; - Views using Fastly CDN
28
+ # @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of &#x60;exits_before_video_start&#x60;, &#x60;unique_viewers&#x60;, &#x60;video_startup_failure_percentage&#x60;, &#x60;view_dropped_percentage&#x60;, and &#x60;views&#x60;. Example: * &#x60;metric_filters[]&#x3D;aggregate_startup_time&gt;&#x3D;1000&#x60;
29
+ # @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]&#x3D;). Accepted formats are... * array of epoch timestamps e.g. &#x60;timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600&#x60; * duration string e.g. &#x60;timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days&#x60;
30
+ # @option opts [String] :order_by Value to order the results by
31
+ # @option opts [String] :order_direction Sort order.
32
+ # @return [ListDimensionValuesResponse]
33
+ def list_dimension_elements(dimension_id, opts = {})
34
+ data, _status_code, _headers = list_dimension_elements_with_http_info(dimension_id, opts)
35
+ data
36
+ end
37
+
38
+ # Lists elements for a trace dimension
39
+ # Lists the elements (values) for a trace dimension along with their total counts. This endpoint is specifically designed for trace dimensions like video_cdn_trace that contain arrays of values.
40
+ # @param dimension_id [String] ID of the Dimension
41
+ # @param [Hash] opts the optional parameters
42
+ # @option opts [Integer] :limit Number of items to include in the response
43
+ # @option opts [Array<String>] :filters Filter results using key:value pairs. Must be provided as an array query string parameter. **Basic filtering:** * &#x60;filters[]&#x3D;dimension:value&#x60; - Include rows where dimension equals value * &#x60;filters[]&#x3D;!dimension:value&#x60; - Exclude rows where dimension equals value **For trace dimensions (like video_cdn_trace):** * &#x60;filters[]&#x3D;+dimension:value&#x60; - Include rows where trace contains value * &#x60;filters[]&#x3D;-dimension:value&#x60; - Exclude rows where trace contains value * &#x60;filters[]&#x3D;dimension:[value1,value2]&#x60; - Exact trace match **Examples:** * &#x60;filters[]&#x3D;country:US&#x60; - US views only * &#x60;filters[]&#x3D;+video_cdn_trace:fastly&#x60; - Views using Fastly CDN
44
+ # @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of &#x60;exits_before_video_start&#x60;, &#x60;unique_viewers&#x60;, &#x60;video_startup_failure_percentage&#x60;, &#x60;view_dropped_percentage&#x60;, and &#x60;views&#x60;. Example: * &#x60;metric_filters[]&#x3D;aggregate_startup_time&gt;&#x3D;1000&#x60;
45
+ # @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]&#x3D;). Accepted formats are... * array of epoch timestamps e.g. &#x60;timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600&#x60; * duration string e.g. &#x60;timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days&#x60;
46
+ # @option opts [String] :order_by Value to order the results by
47
+ # @option opts [String] :order_direction Sort order.
48
+ # @return [Array<(ListDimensionValuesResponse, Integer, Hash)>] ListDimensionValuesResponse data, response status code and response headers
49
+ def list_dimension_elements_with_http_info(dimension_id, opts = {})
50
+ if @api_client.config.debugging
51
+ @api_client.config.logger.debug 'Calling API: DimensionsApi.list_dimension_elements ...'
52
+ end
53
+ # verify the required parameter 'dimension_id' is set
54
+ if @api_client.config.client_side_validation && dimension_id.nil?
55
+ fail ArgumentError, "Missing the required parameter 'dimension_id' when calling DimensionsApi.list_dimension_elements"
56
+ end
57
+ allowable_values = ["negative_impact", "value", "views", "field"]
58
+ if @api_client.config.client_side_validation && opts[:'order_by'] && !allowable_values.include?(opts[:'order_by'])
59
+ fail ArgumentError, "invalid value for \"order_by\", must be one of #{allowable_values}"
60
+ end
61
+ allowable_values = ["asc", "desc"]
62
+ if @api_client.config.client_side_validation && opts[:'order_direction'] && !allowable_values.include?(opts[:'order_direction'])
63
+ fail ArgumentError, "invalid value for \"order_direction\", must be one of #{allowable_values}"
64
+ end
65
+ # resource path
66
+ local_var_path = '/data/v1/dimensions/{DIMENSION_ID}/elements'.sub('{' + 'DIMENSION_ID' + '}', CGI.escape(dimension_id.to_s))
67
+
68
+ # query parameters
69
+ query_params = opts[:query_params] || {}
70
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
71
+ query_params[:'filters[]'] = @api_client.build_collection_param(opts[:'filters'], :multi) if !opts[:'filters'].nil?
72
+ query_params[:'metric_filters[]'] = @api_client.build_collection_param(opts[:'metric_filters'], :multi) if !opts[:'metric_filters'].nil?
73
+ query_params[:'timeframe[]'] = @api_client.build_collection_param(opts[:'timeframe'], :multi) if !opts[:'timeframe'].nil?
74
+ query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
75
+ query_params[:'order_direction'] = opts[:'order_direction'] if !opts[:'order_direction'].nil?
76
+
77
+ # header parameters
78
+ header_params = opts[:header_params] || {}
79
+ # HTTP header 'Accept' (if needed)
80
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
81
+
82
+ # form parameters
83
+ form_params = opts[:form_params] || {}
84
+
85
+ # http body (model)
86
+ post_body = opts[:debug_body]
87
+
88
+ # return_type
89
+ return_type = opts[:debug_return_type] || 'ListDimensionValuesResponse'
90
+
91
+ # auth_names
92
+ auth_names = opts[:debug_auth_names] || ['accessToken']
93
+
94
+ new_options = opts.merge(
95
+ :operation => :"DimensionsApi.list_dimension_elements",
96
+ :header_params => header_params,
97
+ :query_params => query_params,
98
+ :form_params => form_params,
99
+ :body => post_body,
100
+ :auth_names => auth_names,
101
+ :return_type => return_type
102
+ )
103
+
104
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
105
+ if @api_client.config.debugging
106
+ @api_client.config.logger.debug "API called: DimensionsApi#list_dimension_elements\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
107
+ end
108
+ return data, status_code, headers
109
+ end
110
+
22
111
  # Lists the values for a specific dimension
23
112
  # Lists the values for a dimension along with a total count of related views. Note: This API replaces the list-filter-values API call.
24
113
  # @param dimension_id [String] ID of the Dimension
25
114
  # @param [Hash] opts the optional parameters
26
115
  # @option opts [Integer] :limit Number of items to include in the response (default to 25)
27
116
  # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60; (default to 1)
28
- # @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a &#x60;!&#x60; character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * &#x60;filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;!country:US&#x60;
117
+ # @option opts [Array<String>] :filters Filter results using key:value pairs. Must be provided as an array query string parameter. **Basic filtering:** * &#x60;filters[]&#x3D;dimension:value&#x60; - Include rows where dimension equals value * &#x60;filters[]&#x3D;!dimension:value&#x60; - Exclude rows where dimension equals value **For trace dimensions (like video_cdn_trace):** * &#x60;filters[]&#x3D;+dimension:value&#x60; - Include rows where trace contains value * &#x60;filters[]&#x3D;-dimension:value&#x60; - Exclude rows where trace contains value * &#x60;filters[]&#x3D;dimension:[value1,value2]&#x60; - Exact trace match **Examples:** * &#x60;filters[]&#x3D;country:US&#x60; - US views only * &#x60;filters[]&#x3D;+video_cdn_trace:fastly&#x60; - Views using Fastly CDN
29
118
  # @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of &#x60;exits_before_video_start&#x60;, &#x60;unique_viewers&#x60;, &#x60;video_startup_failure_percentage&#x60;, &#x60;view_dropped_percentage&#x60;, and &#x60;views&#x60;. Example: * &#x60;metric_filters[]&#x3D;aggregate_startup_time&gt;&#x3D;1000&#x60;
30
119
  # @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]&#x3D;). Accepted formats are... * array of epoch timestamps e.g. &#x60;timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600&#x60; * duration string e.g. &#x60;timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days&#x60;
31
120
  # @return [ListDimensionValuesResponse]
@@ -40,7 +129,7 @@ module MuxRuby
40
129
  # @param [Hash] opts the optional parameters
41
130
  # @option opts [Integer] :limit Number of items to include in the response
42
131
  # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60;
43
- # @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a &#x60;!&#x60; character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * &#x60;filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;!country:US&#x60;
132
+ # @option opts [Array<String>] :filters Filter results using key:value pairs. Must be provided as an array query string parameter. **Basic filtering:** * &#x60;filters[]&#x3D;dimension:value&#x60; - Include rows where dimension equals value * &#x60;filters[]&#x3D;!dimension:value&#x60; - Exclude rows where dimension equals value **For trace dimensions (like video_cdn_trace):** * &#x60;filters[]&#x3D;+dimension:value&#x60; - Include rows where trace contains value * &#x60;filters[]&#x3D;-dimension:value&#x60; - Exclude rows where trace contains value * &#x60;filters[]&#x3D;dimension:[value1,value2]&#x60; - Exact trace match **Examples:** * &#x60;filters[]&#x3D;country:US&#x60; - US views only * &#x60;filters[]&#x3D;+video_cdn_trace:fastly&#x60; - Views using Fastly CDN
44
133
  # @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of &#x60;exits_before_video_start&#x60;, &#x60;unique_viewers&#x60;, &#x60;video_startup_failure_percentage&#x60;, &#x60;view_dropped_percentage&#x60;, and &#x60;views&#x60;. Example: * &#x60;metric_filters[]&#x3D;aggregate_startup_time&gt;&#x3D;1000&#x60;
45
134
  # @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]&#x3D;). Accepted formats are... * array of epoch timestamps e.g. &#x60;timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600&#x60; * duration string e.g. &#x60;timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days&#x60;
46
135
  # @return [Array<(ListDimensionValuesResponse, Integer, Hash)>] ListDimensionValuesResponse data, response status code and response headers
@@ -22,7 +22,7 @@ module MuxRuby
22
22
  # List Errors
23
23
  # Returns a list of errors.
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a &#x60;!&#x60; character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * &#x60;filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;!country:US&#x60;
25
+ # @option opts [Array<String>] :filters Filter results using key:value pairs. Must be provided as an array query string parameter. **Basic filtering:** * &#x60;filters[]&#x3D;dimension:value&#x60; - Include rows where dimension equals value * &#x60;filters[]&#x3D;!dimension:value&#x60; - Exclude rows where dimension equals value **For trace dimensions (like video_cdn_trace):** * &#x60;filters[]&#x3D;+dimension:value&#x60; - Include rows where trace contains value * &#x60;filters[]&#x3D;-dimension:value&#x60; - Exclude rows where trace contains value * &#x60;filters[]&#x3D;dimension:[value1,value2]&#x60; - Exact trace match **Examples:** * &#x60;filters[]&#x3D;country:US&#x60; - US views only * &#x60;filters[]&#x3D;+video_cdn_trace:fastly&#x60; - Views using Fastly CDN
26
26
  # @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of &#x60;exits_before_video_start&#x60;, &#x60;unique_viewers&#x60;, &#x60;video_startup_failure_percentage&#x60;, &#x60;view_dropped_percentage&#x60;, and &#x60;views&#x60;. Example: * &#x60;metric_filters[]&#x3D;aggregate_startup_time&gt;&#x3D;1000&#x60;
27
27
  # @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]&#x3D;). Accepted formats are... * array of epoch timestamps e.g. &#x60;timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600&#x60; * duration string e.g. &#x60;timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days&#x60;
28
28
  # @return [ListErrorsResponse]
@@ -34,7 +34,7 @@ module MuxRuby
34
34
  # List Errors
35
35
  # Returns a list of errors.
36
36
  # @param [Hash] opts the optional parameters
37
- # @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a &#x60;!&#x60; character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * &#x60;filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;!country:US&#x60;
37
+ # @option opts [Array<String>] :filters Filter results using key:value pairs. Must be provided as an array query string parameter. **Basic filtering:** * &#x60;filters[]&#x3D;dimension:value&#x60; - Include rows where dimension equals value * &#x60;filters[]&#x3D;!dimension:value&#x60; - Exclude rows where dimension equals value **For trace dimensions (like video_cdn_trace):** * &#x60;filters[]&#x3D;+dimension:value&#x60; - Include rows where trace contains value * &#x60;filters[]&#x3D;-dimension:value&#x60; - Exclude rows where trace contains value * &#x60;filters[]&#x3D;dimension:[value1,value2]&#x60; - Exact trace match **Examples:** * &#x60;filters[]&#x3D;country:US&#x60; - US views only * &#x60;filters[]&#x3D;+video_cdn_trace:fastly&#x60; - Views using Fastly CDN
38
38
  # @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of &#x60;exits_before_video_start&#x60;, &#x60;unique_viewers&#x60;, &#x60;video_startup_failure_percentage&#x60;, &#x60;view_dropped_percentage&#x60;, and &#x60;views&#x60;. Example: * &#x60;metric_filters[]&#x3D;aggregate_startup_time&gt;&#x3D;1000&#x60;
39
39
  # @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]&#x3D;). Accepted formats are... * array of epoch timestamps e.g. &#x60;timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600&#x60; * duration string e.g. &#x60;timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days&#x60;
40
40
  # @return [Array<(ListErrorsResponse, Integer, Hash)>] ListErrorsResponse data, response status code and response headers
@@ -25,7 +25,7 @@ module MuxRuby
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [Integer] :limit Number of items to include in the response (default to 25)
27
27
  # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60; (default to 1)
28
- # @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a &#x60;!&#x60; character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * &#x60;filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;!country:US&#x60;
28
+ # @option opts [Array<String>] :filters Filter results using key:value pairs. Must be provided as an array query string parameter. **Basic filtering:** * &#x60;filters[]&#x3D;dimension:value&#x60; - Include rows where dimension equals value * &#x60;filters[]&#x3D;!dimension:value&#x60; - Exclude rows where dimension equals value **For trace dimensions (like video_cdn_trace):** * &#x60;filters[]&#x3D;+dimension:value&#x60; - Include rows where trace contains value * &#x60;filters[]&#x3D;-dimension:value&#x60; - Exclude rows where trace contains value * &#x60;filters[]&#x3D;dimension:[value1,value2]&#x60; - Exact trace match **Examples:** * &#x60;filters[]&#x3D;country:US&#x60; - US views only * &#x60;filters[]&#x3D;+video_cdn_trace:fastly&#x60; - Views using Fastly CDN
29
29
  # @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]&#x3D;). Accepted formats are... * array of epoch timestamps e.g. &#x60;timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600&#x60; * duration string e.g. &#x60;timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days&#x60;
30
30
  # @return [ListFilterValuesResponse]
31
31
  def list_filter_values(filter_id, opts = {})
@@ -39,7 +39,7 @@ module MuxRuby
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @option opts [Integer] :limit Number of items to include in the response
41
41
  # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60;
42
- # @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a &#x60;!&#x60; character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * &#x60;filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;!country:US&#x60;
42
+ # @option opts [Array<String>] :filters Filter results using key:value pairs. Must be provided as an array query string parameter. **Basic filtering:** * &#x60;filters[]&#x3D;dimension:value&#x60; - Include rows where dimension equals value * &#x60;filters[]&#x3D;!dimension:value&#x60; - Exclude rows where dimension equals value **For trace dimensions (like video_cdn_trace):** * &#x60;filters[]&#x3D;+dimension:value&#x60; - Include rows where trace contains value * &#x60;filters[]&#x3D;-dimension:value&#x60; - Exclude rows where trace contains value * &#x60;filters[]&#x3D;dimension:[value1,value2]&#x60; - Exact trace match **Examples:** * &#x60;filters[]&#x3D;country:US&#x60; - US views only * &#x60;filters[]&#x3D;+video_cdn_trace:fastly&#x60; - Views using Fastly CDN
43
43
  # @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]&#x3D;). Accepted formats are... * array of epoch timestamps e.g. &#x60;timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600&#x60; * duration string e.g. &#x60;timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days&#x60;
44
44
  # @return [Array<(ListFilterValuesResponse, Integer, Hash)>] ListFilterValuesResponse data, response status code and response headers
45
45
  def list_filter_values_with_http_info(filter_id, opts = {})