mux_ruby 5.0.1 → 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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/docs/Annotation.md +24 -0
- data/docs/AnnotationInput.md +22 -0
- data/docs/AnnotationResponse.md +18 -0
- data/docs/AnnotationsApi.md +371 -0
- data/docs/Asset.md +3 -1
- data/docs/AssetProgress.md +20 -0
- data/docs/AssetsApi.md +3 -1
- data/docs/CreateAssetRequest.md +3 -1
- data/docs/CreateLiveStreamRequest.md +3 -1
- data/docs/DimensionsApi.md +87 -2
- data/docs/ErrorsApi.md +2 -2
- data/docs/FiltersApi.md +2 -2
- data/docs/ListAnnotationsResponse.md +22 -0
- data/docs/ListAssetsResponse.md +2 -0
- data/docs/LiveStream.md +5 -3
- data/docs/LiveStreamMetadata.md +18 -0
- data/docs/MetricsApi.md +10 -10
- data/docs/UpdateLiveStreamRequest.md +3 -1
- data/docs/VideoView.md +3 -1
- data/docs/VideoViewsApi.md +2 -2
- data/gen/generator-config.json +1 -1
- data/lib/mux_ruby/api/annotations_api.rb +355 -0
- data/lib/mux_ruby/api/assets_api.rb +5 -2
- data/lib/mux_ruby/api/dimensions_api.rb +91 -2
- data/lib/mux_ruby/api/errors_api.rb +2 -2
- data/lib/mux_ruby/api/filters_api.rb +2 -2
- data/lib/mux_ruby/api/metrics_api.rb +12 -12
- data/lib/mux_ruby/api/video_views_api.rb +2 -2
- data/lib/mux_ruby/configuration.rb +6 -0
- data/lib/mux_ruby/models/annotation.rb +250 -0
- data/lib/mux_ruby/models/annotation_input.rb +239 -0
- data/lib/mux_ruby/models/annotation_response.rb +218 -0
- data/lib/mux_ruby/models/asset.rb +13 -4
- data/lib/mux_ruby/models/asset_progress.rb +288 -0
- data/lib/mux_ruby/models/create_asset_request.rb +16 -4
- data/lib/mux_ruby/models/create_live_stream_request.rb +13 -4
- data/lib/mux_ruby/models/list_annotations_response.rb +266 -0
- data/lib/mux_ruby/models/list_assets_response.rb +12 -1
- data/lib/mux_ruby/models/live_stream.rb +15 -6
- data/lib/mux_ruby/models/live_stream_generated_subtitle_settings.rb +2 -2
- data/lib/mux_ruby/models/live_stream_metadata.rb +235 -0
- data/lib/mux_ruby/models/update_live_stream_request.rb +13 -4
- data/lib/mux_ruby/models/video_view.rb +16 -5
- data/lib/mux_ruby/version.rb +1 -1
- data/lib/mux_ruby.rb +7 -0
- data/spec/api/annotations_api_spec.rb +99 -0
- data/spec/models/annotation_input_spec.rb +46 -0
- data/spec/models/annotation_response_spec.rb +34 -0
- data/spec/models/annotation_spec.rb +52 -0
- data/spec/models/asset_progress_spec.rb +44 -0
- data/spec/models/list_annotations_response_spec.rb +46 -0
- data/spec/models/live_stream_metadata_spec.rb +34 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/ffi_c.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/mkmf.log +16 -16
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +6 -6
- 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
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/mkmf.log +4 -4
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/psych.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/mkmf.log +2 -2
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/stringio.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug/Makefile +3 -3
- data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/ext/ffi_c/Makefile +3 -3
- data/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/lib/ffi_c.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler/Makefile +3 -3
- data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/ext/psych/Makefile +3 -3
- data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/lib/psych.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/ext/stringio/Makefile +3 -3
- data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/lib/stringio.so +0 -0
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad6865c8e30e17e7faebab8ea4f6affcc4bb61dbe85232d90e5c983c8c7c749c
|
4
|
+
data.tar.gz: aa9ef1a3f601e6ea701f6671973e38f3b837205bea03b57e9ed3298e887a7243
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30b529f653b3384080dbcef15ec44124b3751fed3e8c6fe46c4ecf21bc6cfdb3dc8964b7e353faf2ea373752573b4fb363a76456e1d5d809513047a26511f6d6
|
7
|
+
data.tar.gz: f1992545ce8f2037574028a672f7cd6fd0a90c1fb934306d21836fd719ca6a4cf845ea6efa52d22ab62c00704ed7831128f53e9935de4bdffb90afcc01133ec8
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -23,7 +23,7 @@ Not familiar with Mux? Check out https://mux.com/ for more information.
|
|
23
23
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
24
24
|
|
25
25
|
- API version: v1
|
26
|
-
- Package version: 5.0
|
26
|
+
- Package version: 5.1.0
|
27
27
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
28
28
|
For more information, please visit [https://docs.mux.com](https://docs.mux.com)
|
29
29
|
|
@@ -40,16 +40,16 @@ gem build mux_ruby.gemspec
|
|
40
40
|
Then either install the gem locally:
|
41
41
|
|
42
42
|
```shell
|
43
|
-
gem install ./mux_ruby-5.0.
|
43
|
+
gem install ./mux_ruby-5.1.0.gem
|
44
44
|
```
|
45
45
|
|
46
|
-
(for development, run `gem install --dev ./mux_ruby-5.0.
|
46
|
+
(for development, run `gem install --dev ./mux_ruby-5.1.0.gem` to install the development dependencies)
|
47
47
|
|
48
48
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
49
49
|
|
50
50
|
Finally add this to the Gemfile:
|
51
51
|
|
52
|
-
gem 'mux_ruby', '~> 5.0
|
52
|
+
gem 'mux_ruby', '~> 5.1.0'
|
53
53
|
|
54
54
|
### Install from Git
|
55
55
|
|
data/docs/Annotation.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# MuxRuby::Annotation
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | Unique identifier for the annotation | [optional] |
|
8
|
+
| **note** | **String** | The annotation note content | [optional] |
|
9
|
+
| **date** | **Time** | Datetime when the annotation applies | [optional] |
|
10
|
+
| **sub_property_id** | **String** | Customer-defined sub-property identifier | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'mux_ruby'
|
16
|
+
|
17
|
+
instance = MuxRuby::Annotation.new(
|
18
|
+
id: null,
|
19
|
+
note: null,
|
20
|
+
date: null,
|
21
|
+
sub_property_id: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# MuxRuby::AnnotationInput
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **note** | **String** | The annotation note content | [optional] |
|
8
|
+
| **date** | **Integer** | Datetime when the annotation applies (Unix timestamp) | [optional] |
|
9
|
+
| **sub_property_id** | **String** | Customer-defined sub-property identifier | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'mux_ruby'
|
15
|
+
|
16
|
+
instance = MuxRuby::AnnotationInput.new(
|
17
|
+
note: null,
|
18
|
+
date: null,
|
19
|
+
sub_property_id: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# MuxRuby::AnnotationResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**Annotation**](Annotation.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'mux_ruby'
|
13
|
+
|
14
|
+
instance = MuxRuby::AnnotationResponse.new(
|
15
|
+
data: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,371 @@
|
|
1
|
+
# MuxRuby::AnnotationsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.mux.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create_annotation**](AnnotationsApi.md#create_annotation) | **POST** /data/v1/annotations | Create Annotation |
|
8
|
+
| [**delete_annotation**](AnnotationsApi.md#delete_annotation) | **DELETE** /data/v1/annotations/{ANNOTATION_ID} | Delete Annotation |
|
9
|
+
| [**get_annotation**](AnnotationsApi.md#get_annotation) | **GET** /data/v1/annotations/{ANNOTATION_ID} | Get Annotation |
|
10
|
+
| [**list_annotations**](AnnotationsApi.md#list_annotations) | **GET** /data/v1/annotations | List Annotations |
|
11
|
+
| [**update_annotation**](AnnotationsApi.md#update_annotation) | **PATCH** /data/v1/annotations/{ANNOTATION_ID} | Update Annotation |
|
12
|
+
|
13
|
+
|
14
|
+
## create_annotation
|
15
|
+
|
16
|
+
> <AnnotationResponse> create_annotation(annotation_input)
|
17
|
+
|
18
|
+
Create Annotation
|
19
|
+
|
20
|
+
Creates a new annotation.
|
21
|
+
|
22
|
+
### Examples
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'time'
|
26
|
+
require 'mux_ruby'
|
27
|
+
# setup authorization
|
28
|
+
MuxRuby.configure do |config|
|
29
|
+
# Configure HTTP basic authorization: accessToken
|
30
|
+
config.username = 'YOUR USERNAME'
|
31
|
+
config.password = 'YOUR PASSWORD'
|
32
|
+
end
|
33
|
+
|
34
|
+
api_instance = MuxRuby::AnnotationsApi.new
|
35
|
+
annotation_input = MuxRuby::AnnotationInput.new # AnnotationInput |
|
36
|
+
|
37
|
+
begin
|
38
|
+
# Create Annotation
|
39
|
+
result = api_instance.create_annotation(annotation_input)
|
40
|
+
p result
|
41
|
+
rescue MuxRuby::ApiError => e
|
42
|
+
puts "Error when calling AnnotationsApi->create_annotation: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
#### Using the create_annotation_with_http_info variant
|
47
|
+
|
48
|
+
This returns an Array which contains the response data, status code and headers.
|
49
|
+
|
50
|
+
> <Array(<AnnotationResponse>, Integer, Hash)> create_annotation_with_http_info(annotation_input)
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
begin
|
54
|
+
# Create Annotation
|
55
|
+
data, status_code, headers = api_instance.create_annotation_with_http_info(annotation_input)
|
56
|
+
p status_code # => 2xx
|
57
|
+
p headers # => { ... }
|
58
|
+
p data # => <AnnotationResponse>
|
59
|
+
rescue MuxRuby::ApiError => e
|
60
|
+
puts "Error when calling AnnotationsApi->create_annotation_with_http_info: #{e}"
|
61
|
+
end
|
62
|
+
```
|
63
|
+
|
64
|
+
### Parameters
|
65
|
+
|
66
|
+
| Name | Type | Description | Notes |
|
67
|
+
| ---- | ---- | ----------- | ----- |
|
68
|
+
| **annotation_input** | [**AnnotationInput**](AnnotationInput.md) | | |
|
69
|
+
|
70
|
+
### Return type
|
71
|
+
|
72
|
+
[**AnnotationResponse**](AnnotationResponse.md)
|
73
|
+
|
74
|
+
### Authorization
|
75
|
+
|
76
|
+
[accessToken](../README.md#accessToken)
|
77
|
+
|
78
|
+
### HTTP request headers
|
79
|
+
|
80
|
+
- **Content-Type**: application/json
|
81
|
+
- **Accept**: application/json
|
82
|
+
|
83
|
+
|
84
|
+
## delete_annotation
|
85
|
+
|
86
|
+
> delete_annotation(annotation_id)
|
87
|
+
|
88
|
+
Delete Annotation
|
89
|
+
|
90
|
+
Deletes an annotation.
|
91
|
+
|
92
|
+
### Examples
|
93
|
+
|
94
|
+
```ruby
|
95
|
+
require 'time'
|
96
|
+
require 'mux_ruby'
|
97
|
+
# setup authorization
|
98
|
+
MuxRuby.configure do |config|
|
99
|
+
# Configure HTTP basic authorization: accessToken
|
100
|
+
config.username = 'YOUR USERNAME'
|
101
|
+
config.password = 'YOUR PASSWORD'
|
102
|
+
end
|
103
|
+
|
104
|
+
api_instance = MuxRuby::AnnotationsApi.new
|
105
|
+
annotation_id = TODO # String | The annotation ID
|
106
|
+
|
107
|
+
begin
|
108
|
+
# Delete Annotation
|
109
|
+
api_instance.delete_annotation(annotation_id)
|
110
|
+
rescue MuxRuby::ApiError => e
|
111
|
+
puts "Error when calling AnnotationsApi->delete_annotation: #{e}"
|
112
|
+
end
|
113
|
+
```
|
114
|
+
|
115
|
+
#### Using the delete_annotation_with_http_info variant
|
116
|
+
|
117
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
118
|
+
|
119
|
+
> <Array(nil, Integer, Hash)> delete_annotation_with_http_info(annotation_id)
|
120
|
+
|
121
|
+
```ruby
|
122
|
+
begin
|
123
|
+
# Delete Annotation
|
124
|
+
data, status_code, headers = api_instance.delete_annotation_with_http_info(annotation_id)
|
125
|
+
p status_code # => 2xx
|
126
|
+
p headers # => { ... }
|
127
|
+
p data # => nil
|
128
|
+
rescue MuxRuby::ApiError => e
|
129
|
+
puts "Error when calling AnnotationsApi->delete_annotation_with_http_info: #{e}"
|
130
|
+
end
|
131
|
+
```
|
132
|
+
|
133
|
+
### Parameters
|
134
|
+
|
135
|
+
| Name | Type | Description | Notes |
|
136
|
+
| ---- | ---- | ----------- | ----- |
|
137
|
+
| **annotation_id** | [**String**](.md) | The annotation ID | |
|
138
|
+
|
139
|
+
### Return type
|
140
|
+
|
141
|
+
nil (empty response body)
|
142
|
+
|
143
|
+
### Authorization
|
144
|
+
|
145
|
+
[accessToken](../README.md#accessToken)
|
146
|
+
|
147
|
+
### HTTP request headers
|
148
|
+
|
149
|
+
- **Content-Type**: Not defined
|
150
|
+
- **Accept**: Not defined
|
151
|
+
|
152
|
+
|
153
|
+
## get_annotation
|
154
|
+
|
155
|
+
> <AnnotationResponse> get_annotation(annotation_id)
|
156
|
+
|
157
|
+
Get Annotation
|
158
|
+
|
159
|
+
Returns the details of a specific annotation.
|
160
|
+
|
161
|
+
### Examples
|
162
|
+
|
163
|
+
```ruby
|
164
|
+
require 'time'
|
165
|
+
require 'mux_ruby'
|
166
|
+
# setup authorization
|
167
|
+
MuxRuby.configure do |config|
|
168
|
+
# Configure HTTP basic authorization: accessToken
|
169
|
+
config.username = 'YOUR USERNAME'
|
170
|
+
config.password = 'YOUR PASSWORD'
|
171
|
+
end
|
172
|
+
|
173
|
+
api_instance = MuxRuby::AnnotationsApi.new
|
174
|
+
annotation_id = TODO # String | The annotation ID
|
175
|
+
|
176
|
+
begin
|
177
|
+
# Get Annotation
|
178
|
+
result = api_instance.get_annotation(annotation_id)
|
179
|
+
p result
|
180
|
+
rescue MuxRuby::ApiError => e
|
181
|
+
puts "Error when calling AnnotationsApi->get_annotation: #{e}"
|
182
|
+
end
|
183
|
+
```
|
184
|
+
|
185
|
+
#### Using the get_annotation_with_http_info variant
|
186
|
+
|
187
|
+
This returns an Array which contains the response data, status code and headers.
|
188
|
+
|
189
|
+
> <Array(<AnnotationResponse>, Integer, Hash)> get_annotation_with_http_info(annotation_id)
|
190
|
+
|
191
|
+
```ruby
|
192
|
+
begin
|
193
|
+
# Get Annotation
|
194
|
+
data, status_code, headers = api_instance.get_annotation_with_http_info(annotation_id)
|
195
|
+
p status_code # => 2xx
|
196
|
+
p headers # => { ... }
|
197
|
+
p data # => <AnnotationResponse>
|
198
|
+
rescue MuxRuby::ApiError => e
|
199
|
+
puts "Error when calling AnnotationsApi->get_annotation_with_http_info: #{e}"
|
200
|
+
end
|
201
|
+
```
|
202
|
+
|
203
|
+
### Parameters
|
204
|
+
|
205
|
+
| Name | Type | Description | Notes |
|
206
|
+
| ---- | ---- | ----------- | ----- |
|
207
|
+
| **annotation_id** | [**String**](.md) | The annotation ID | |
|
208
|
+
|
209
|
+
### Return type
|
210
|
+
|
211
|
+
[**AnnotationResponse**](AnnotationResponse.md)
|
212
|
+
|
213
|
+
### Authorization
|
214
|
+
|
215
|
+
[accessToken](../README.md#accessToken)
|
216
|
+
|
217
|
+
### HTTP request headers
|
218
|
+
|
219
|
+
- **Content-Type**: Not defined
|
220
|
+
- **Accept**: application/json
|
221
|
+
|
222
|
+
|
223
|
+
## list_annotations
|
224
|
+
|
225
|
+
> <ListAnnotationsResponse> list_annotations(opts)
|
226
|
+
|
227
|
+
List Annotations
|
228
|
+
|
229
|
+
Returns a list of annotations.
|
230
|
+
|
231
|
+
### Examples
|
232
|
+
|
233
|
+
```ruby
|
234
|
+
require 'time'
|
235
|
+
require 'mux_ruby'
|
236
|
+
# setup authorization
|
237
|
+
MuxRuby.configure do |config|
|
238
|
+
# Configure HTTP basic authorization: accessToken
|
239
|
+
config.username = 'YOUR USERNAME'
|
240
|
+
config.password = 'YOUR PASSWORD'
|
241
|
+
end
|
242
|
+
|
243
|
+
api_instance = MuxRuby::AnnotationsApi.new
|
244
|
+
opts = {
|
245
|
+
limit: 56, # Integer | Number of items to include in the response
|
246
|
+
page: 56, # Integer | Offset by this many pages, of the size of `limit`
|
247
|
+
order_direction: 'asc', # String | Sort order.
|
248
|
+
timeframe: ['inner_example'] # Array<String> | Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. `timeframe[]=1498867200&timeframe[]=1498953600` * duration string e.g. `timeframe[]=24:hours or timeframe[]=7:days`
|
249
|
+
}
|
250
|
+
|
251
|
+
begin
|
252
|
+
# List Annotations
|
253
|
+
result = api_instance.list_annotations(opts)
|
254
|
+
p result
|
255
|
+
rescue MuxRuby::ApiError => e
|
256
|
+
puts "Error when calling AnnotationsApi->list_annotations: #{e}"
|
257
|
+
end
|
258
|
+
```
|
259
|
+
|
260
|
+
#### Using the list_annotations_with_http_info variant
|
261
|
+
|
262
|
+
This returns an Array which contains the response data, status code and headers.
|
263
|
+
|
264
|
+
> <Array(<ListAnnotationsResponse>, Integer, Hash)> list_annotations_with_http_info(opts)
|
265
|
+
|
266
|
+
```ruby
|
267
|
+
begin
|
268
|
+
# List Annotations
|
269
|
+
data, status_code, headers = api_instance.list_annotations_with_http_info(opts)
|
270
|
+
p status_code # => 2xx
|
271
|
+
p headers # => { ... }
|
272
|
+
p data # => <ListAnnotationsResponse>
|
273
|
+
rescue MuxRuby::ApiError => e
|
274
|
+
puts "Error when calling AnnotationsApi->list_annotations_with_http_info: #{e}"
|
275
|
+
end
|
276
|
+
```
|
277
|
+
|
278
|
+
### Parameters
|
279
|
+
|
280
|
+
| Name | Type | Description | Notes |
|
281
|
+
| ---- | ---- | ----------- | ----- |
|
282
|
+
| **limit** | **Integer** | Number of items to include in the response | [optional][default to 25] |
|
283
|
+
| **page** | **Integer** | Offset by this many pages, of the size of `limit` | [optional][default to 1] |
|
284
|
+
| **order_direction** | **String** | Sort order. | [optional] |
|
285
|
+
| **timeframe** | [**Array<String>**](String.md) | Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. `timeframe[]=1498867200&timeframe[]=1498953600` * duration string e.g. `timeframe[]=24:hours or timeframe[]=7:days` | [optional] |
|
286
|
+
|
287
|
+
### Return type
|
288
|
+
|
289
|
+
[**ListAnnotationsResponse**](ListAnnotationsResponse.md)
|
290
|
+
|
291
|
+
### Authorization
|
292
|
+
|
293
|
+
[accessToken](../README.md#accessToken)
|
294
|
+
|
295
|
+
### HTTP request headers
|
296
|
+
|
297
|
+
- **Content-Type**: Not defined
|
298
|
+
- **Accept**: application/json
|
299
|
+
|
300
|
+
|
301
|
+
## update_annotation
|
302
|
+
|
303
|
+
> <AnnotationResponse> update_annotation(annotation_id, annotation_input)
|
304
|
+
|
305
|
+
Update Annotation
|
306
|
+
|
307
|
+
Updates an existing annotation.
|
308
|
+
|
309
|
+
### Examples
|
310
|
+
|
311
|
+
```ruby
|
312
|
+
require 'time'
|
313
|
+
require 'mux_ruby'
|
314
|
+
# setup authorization
|
315
|
+
MuxRuby.configure do |config|
|
316
|
+
# Configure HTTP basic authorization: accessToken
|
317
|
+
config.username = 'YOUR USERNAME'
|
318
|
+
config.password = 'YOUR PASSWORD'
|
319
|
+
end
|
320
|
+
|
321
|
+
api_instance = MuxRuby::AnnotationsApi.new
|
322
|
+
annotation_id = TODO # String | The annotation ID
|
323
|
+
annotation_input = MuxRuby::AnnotationInput.new # AnnotationInput |
|
324
|
+
|
325
|
+
begin
|
326
|
+
# Update Annotation
|
327
|
+
result = api_instance.update_annotation(annotation_id, annotation_input)
|
328
|
+
p result
|
329
|
+
rescue MuxRuby::ApiError => e
|
330
|
+
puts "Error when calling AnnotationsApi->update_annotation: #{e}"
|
331
|
+
end
|
332
|
+
```
|
333
|
+
|
334
|
+
#### Using the update_annotation_with_http_info variant
|
335
|
+
|
336
|
+
This returns an Array which contains the response data, status code and headers.
|
337
|
+
|
338
|
+
> <Array(<AnnotationResponse>, Integer, Hash)> update_annotation_with_http_info(annotation_id, annotation_input)
|
339
|
+
|
340
|
+
```ruby
|
341
|
+
begin
|
342
|
+
# Update Annotation
|
343
|
+
data, status_code, headers = api_instance.update_annotation_with_http_info(annotation_id, annotation_input)
|
344
|
+
p status_code # => 2xx
|
345
|
+
p headers # => { ... }
|
346
|
+
p data # => <AnnotationResponse>
|
347
|
+
rescue MuxRuby::ApiError => e
|
348
|
+
puts "Error when calling AnnotationsApi->update_annotation_with_http_info: #{e}"
|
349
|
+
end
|
350
|
+
```
|
351
|
+
|
352
|
+
### Parameters
|
353
|
+
|
354
|
+
| Name | Type | Description | Notes |
|
355
|
+
| ---- | ---- | ----------- | ----- |
|
356
|
+
| **annotation_id** | [**String**](.md) | The annotation ID | |
|
357
|
+
| **annotation_input** | [**AnnotationInput**](AnnotationInput.md) | | |
|
358
|
+
|
359
|
+
### Return type
|
360
|
+
|
361
|
+
[**AnnotationResponse**](AnnotationResponse.md)
|
362
|
+
|
363
|
+
### Authorization
|
364
|
+
|
365
|
+
[accessToken](../README.md#accessToken)
|
366
|
+
|
367
|
+
### HTTP request headers
|
368
|
+
|
369
|
+
- **Content-Type**: application/json
|
370
|
+
- **Accept**: application/json
|
371
|
+
|
data/docs/Asset.md
CHANGED
@@ -34,6 +34,7 @@
|
|
34
34
|
| **test** | **Boolean** | True means this live stream is a test asset. A test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test assets are watermarked with the Mux logo, limited to 10 seconds, and deleted after 24 hrs. | [optional] |
|
35
35
|
| **ingest_type** | **String** | The type of ingest used to create the asset. | [optional] |
|
36
36
|
| **meta** | [**AssetMetadata**](AssetMetadata.md) | | [optional] |
|
37
|
+
| **progress** | [**AssetProgress**](AssetProgress.md) | | [optional] |
|
37
38
|
|
38
39
|
## Example
|
39
40
|
|
@@ -70,7 +71,8 @@ instance = MuxRuby::Asset.new(
|
|
70
71
|
non_standard_input_reasons: null,
|
71
72
|
test: null,
|
72
73
|
ingest_type: null,
|
73
|
-
meta: null
|
74
|
+
meta: null,
|
75
|
+
progress: null
|
74
76
|
)
|
75
77
|
```
|
76
78
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# MuxRuby::AssetProgress
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **state** | **String** | The detailed state of the asset ingest process. This field is useful for relaying more granular processing information to end users when a [non-standard input is encountered](https://www.mux.com/docs/guides/minimize-processing-time#non-standard-input). - `ingesting`: Asset is being ingested (initial processing before or after transcoding). While in this state, the `progress` percentage will be 0. - `transcoding`: Asset is undergoing non-standard transcoding. - `completed`: Asset processing is complete (`status` is `ready`). While in this state, the `progress` percentage will be 100. - `live`: Asset is a live stream currently in progress. While in this state, the `progress` percentage will be -1. - `errored`: Asset has encountered an error (`status` is `errored`). While in this state, the `progress` percentage will be -1. | [optional] |
|
8
|
+
| **progress** | **Float** | Represents the estimated completion percentage. Returns `0 - 100` when in `ingesting`, `transcoding`, or `completed` state, and `-1` when in `live` or `errored` state. | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'mux_ruby'
|
14
|
+
|
15
|
+
instance = MuxRuby::AssetProgress.new(
|
16
|
+
state: null,
|
17
|
+
progress: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/AssetsApi.md
CHANGED
@@ -525,7 +525,7 @@ nil (empty response body)
|
|
525
525
|
|
526
526
|
Delete an asset track
|
527
527
|
|
528
|
-
Removes a text track from an asset.
|
528
|
+
Removes a text or additional audio track from an asset. Neither video nor the primary audio track can be removed.
|
529
529
|
|
530
530
|
### Examples
|
531
531
|
|
@@ -900,6 +900,7 @@ api_instance = MuxRuby::AssetsApi.new
|
|
900
900
|
opts = {
|
901
901
|
limit: 56, # Integer | Number of items to include in the response
|
902
902
|
page: 56, # Integer | Offset by this many pages, of the size of `limit`
|
903
|
+
cursor: 'cursor_example', # String | This parameter is used to request pages beyond the first. You can find the cursor value in the `next_cursor` field of paginated responses.
|
903
904
|
live_stream_id: 'live_stream_id_example', # String | Filter response to return all the assets for this live stream only
|
904
905
|
upload_id: 'upload_id_example' # String | Filter response to return an asset created from this direct upload only
|
905
906
|
}
|
@@ -937,6 +938,7 @@ end
|
|
937
938
|
| ---- | ---- | ----------- | ----- |
|
938
939
|
| **limit** | **Integer** | Number of items to include in the response | [optional][default to 25] |
|
939
940
|
| **page** | **Integer** | Offset by this many pages, of the size of `limit` | [optional][default to 1] |
|
941
|
+
| **cursor** | **String** | This parameter is used to request pages beyond the first. You can find the cursor value in the `next_cursor` field of paginated responses. | [optional] |
|
940
942
|
| **live_stream_id** | **String** | Filter response to return all the assets for this live stream only | [optional] |
|
941
943
|
| **upload_id** | **String** | Filter response to return an asset created from this direct upload only | [optional] |
|
942
944
|
|
data/docs/CreateAssetRequest.md
CHANGED
@@ -20,6 +20,7 @@
|
|
20
20
|
| **video_quality** | **String** | The video quality controls the cost, quality, and available platform features for the asset. The default video quality for an account can be set in the Mux Dashboard. This field replaces the deprecated `encoding_tier` value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) | [optional] |
|
21
21
|
| **static_renditions** | [**Array<CreateStaticRenditionRequest>**](CreateStaticRenditionRequest.md) | An array of static renditions to create for this asset. You may not enable both `static_renditions` and `mp4_support (the latter being deprecated)` | [optional] |
|
22
22
|
| **meta** | [**AssetMetadata**](AssetMetadata.md) | | [optional] |
|
23
|
+
| **copy_overlays** | **Boolean** | If the created asset is a clip, this controls whether overlays are copied from the source asset. | [optional][default to true] |
|
23
24
|
|
24
25
|
## Example
|
25
26
|
|
@@ -42,7 +43,8 @@ instance = MuxRuby::CreateAssetRequest.new(
|
|
42
43
|
encoding_tier: null,
|
43
44
|
video_quality: null,
|
44
45
|
static_renditions: null,
|
45
|
-
meta: null
|
46
|
+
meta: null,
|
47
|
+
copy_overlays: null
|
46
48
|
)
|
47
49
|
```
|
48
50
|
|
@@ -21,6 +21,7 @@
|
|
21
21
|
| **test** | **Boolean** | Marks the live stream as a test live stream when the value is set to true. A test live stream can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test live streams created. Test live streams are watermarked with the Mux logo and limited to 5 minutes. The test live stream is disabled after the stream is active for 5 mins and the recorded asset also deleted after 24 hours. | [optional] |
|
22
22
|
| **simulcast_targets** | [**Array<CreateSimulcastTargetRequest>**](CreateSimulcastTargetRequest.md) | | [optional] |
|
23
23
|
| **max_continuous_duration** | **Integer** | The time in seconds a live stream may be continuously active before being disconnected. Defaults to 12 hours. | [optional][default to 43200] |
|
24
|
+
| **meta** | [**LiveStreamMetadata**](LiveStreamMetadata.md) | | [optional] |
|
24
25
|
|
25
26
|
## Example
|
26
27
|
|
@@ -44,7 +45,8 @@ instance = MuxRuby::CreateLiveStreamRequest.new(
|
|
44
45
|
latency_mode: null,
|
45
46
|
test: null,
|
46
47
|
simulcast_targets: null,
|
47
|
-
max_continuous_duration: null
|
48
|
+
max_continuous_duration: null,
|
49
|
+
meta: null
|
48
50
|
)
|
49
51
|
```
|
50
52
|
|