shotstack 0.1.1 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -12
- data/lib/shotstack.rb +4 -2
- data/lib/shotstack/api/endpoints_api.rb +21 -12
- data/lib/shotstack/api_client.rb +50 -46
- data/lib/shotstack/api_error.rb +2 -2
- data/lib/shotstack/configuration.rb +36 -9
- data/lib/shotstack/models/audio_asset.rb +71 -13
- data/lib/shotstack/models/clip.rb +25 -11
- data/lib/shotstack/models/crop.rb +346 -0
- data/lib/shotstack/models/edit.rb +71 -13
- data/lib/shotstack/models/font.rb +21 -9
- data/lib/shotstack/models/html_asset.rb +28 -16
- data/lib/shotstack/models/image_asset.rb +35 -14
- data/lib/shotstack/models/luma_asset.rb +21 -9
- data/lib/shotstack/models/offset.rb +24 -8
- data/lib/shotstack/models/output.rb +61 -16
- data/lib/shotstack/models/poster.rb +20 -8
- data/lib/shotstack/models/queued_response.rb +22 -8
- data/lib/shotstack/models/queued_response_data.rb +22 -10
- data/lib/shotstack/models/range.rb +260 -0
- data/lib/shotstack/models/render_response.rb +22 -8
- data/lib/shotstack/models/render_response_data.rb +101 -29
- data/lib/shotstack/models/soundtrack.rb +23 -9
- data/lib/shotstack/models/thumbnail.rb +20 -8
- data/lib/shotstack/models/timeline.rb +36 -12
- data/lib/shotstack/models/title_asset.rb +25 -13
- data/lib/shotstack/models/track.rb +20 -8
- data/lib/shotstack/models/transition.rb +26 -14
- data/lib/shotstack/models/video_asset.rb +34 -13
- data/lib/shotstack/version.rb +3 -3
- data/shotstack.gemspec +8 -9
- metadata +11 -30
- data/shotstack-0.0.11.gem +0 -0
- data/shotstack-0.1.0.gem +0 -0
@@ -1,22 +1,23 @@
|
|
1
1
|
=begin
|
2
2
|
#Shotstack
|
3
3
|
|
4
|
-
#The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details
|
4
|
+
#The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
require_relative 'asset'
|
15
16
|
|
16
17
|
module Shotstack
|
17
18
|
# The VideoAsset is used to create video sequences from video files. The src must be a publicly accessible URL to a video resource such as an mp4 file.
|
18
19
|
class VideoAsset < Asset
|
19
|
-
# The type of asset - set to
|
20
|
+
# The type of asset - set to `video` for videos.
|
20
21
|
attr_accessor :type
|
21
22
|
|
22
23
|
# The video source URL. The URL must be publicly accessible or include credentials.
|
@@ -28,23 +29,32 @@ module Shotstack
|
|
28
29
|
# Set the volume for the video clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 0).
|
29
30
|
attr_accessor :volume
|
30
31
|
|
32
|
+
attr_accessor :crop
|
33
|
+
|
31
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
35
|
def self.attribute_map
|
33
36
|
{
|
34
37
|
:'type' => :'type',
|
35
38
|
:'src' => :'src',
|
36
39
|
:'trim' => :'trim',
|
37
|
-
:'volume' => :'volume'
|
40
|
+
:'volume' => :'volume',
|
41
|
+
:'crop' => :'crop'
|
38
42
|
}
|
39
43
|
end
|
40
44
|
|
45
|
+
# Returns all the JSON keys this model knows about
|
46
|
+
def self.acceptable_attributes
|
47
|
+
attribute_map.values
|
48
|
+
end
|
49
|
+
|
41
50
|
# Attribute type mapping.
|
42
51
|
def self.openapi_types
|
43
52
|
{
|
44
53
|
:'type' => :'String',
|
45
54
|
:'src' => :'String',
|
46
55
|
:'trim' => :'Float',
|
47
|
-
:'volume' => :'Float'
|
56
|
+
:'volume' => :'Float',
|
57
|
+
:'crop' => :'Crop'
|
48
58
|
}
|
49
59
|
end
|
50
60
|
|
@@ -86,6 +96,10 @@ module Shotstack
|
|
86
96
|
if attributes.key?(:'volume')
|
87
97
|
self.volume = attributes[:'volume']
|
88
98
|
end
|
99
|
+
|
100
|
+
if attributes.key?(:'crop')
|
101
|
+
self.crop = attributes[:'crop']
|
102
|
+
end
|
89
103
|
end
|
90
104
|
|
91
105
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -119,7 +133,8 @@ module Shotstack
|
|
119
133
|
type == o.type &&
|
120
134
|
src == o.src &&
|
121
135
|
trim == o.trim &&
|
122
|
-
volume == o.volume
|
136
|
+
volume == o.volume &&
|
137
|
+
crop == o.crop
|
123
138
|
end
|
124
139
|
|
125
140
|
# @see the `==` method
|
@@ -131,7 +146,7 @@ module Shotstack
|
|
131
146
|
# Calculates hash code according to all attributes.
|
132
147
|
# @return [Integer] Hash code
|
133
148
|
def hash
|
134
|
-
[type, src, trim, volume].hash
|
149
|
+
[type, src, trim, volume, crop].hash
|
135
150
|
end
|
136
151
|
|
137
152
|
# Builds the object from hash
|
@@ -147,7 +162,9 @@ module Shotstack
|
|
147
162
|
def build_from_hash(attributes)
|
148
163
|
return nil unless attributes.is_a?(Hash)
|
149
164
|
self.class.openapi_types.each_pair do |key, type|
|
150
|
-
if
|
165
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
166
|
+
self.send("#{key}=", nil)
|
167
|
+
elsif type =~ /\AArray<(.*)>/i
|
151
168
|
# check to ensure the input is an array given that the attribute
|
152
169
|
# is documented as an array but the input is not
|
153
170
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -155,7 +172,7 @@ module Shotstack
|
|
155
172
|
end
|
156
173
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
157
174
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
158
|
-
end
|
175
|
+
end
|
159
176
|
end
|
160
177
|
|
161
178
|
self
|
@@ -167,8 +184,8 @@ module Shotstack
|
|
167
184
|
# @return [Object] Deserialized data
|
168
185
|
def _deserialize(type, value)
|
169
186
|
case type.to_sym
|
170
|
-
when :
|
171
|
-
|
187
|
+
when :Time
|
188
|
+
Time.parse(value)
|
172
189
|
when :Date
|
173
190
|
Date.parse(value)
|
174
191
|
when :String
|
@@ -198,7 +215,9 @@ module Shotstack
|
|
198
215
|
end
|
199
216
|
end
|
200
217
|
else # model
|
201
|
-
|
218
|
+
# models (e.g. Pet) or oneOf
|
219
|
+
klass = Shotstack.const_get(type)
|
220
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
202
221
|
end
|
203
222
|
end
|
204
223
|
|
@@ -224,7 +243,7 @@ module Shotstack
|
|
224
243
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
225
244
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
226
245
|
end
|
227
|
-
|
246
|
+
|
228
247
|
hash[param] = _to_hash(value)
|
229
248
|
end
|
230
249
|
hash
|
@@ -247,5 +266,7 @@ module Shotstack
|
|
247
266
|
value
|
248
267
|
end
|
249
268
|
end
|
269
|
+
|
250
270
|
end
|
271
|
+
|
251
272
|
end
|
data/lib/shotstack/version.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
=begin
|
2
2
|
#Shotstack
|
3
3
|
|
4
|
-
#The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details
|
4
|
+
#The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module Shotstack
|
14
|
-
VERSION = '0.1.
|
14
|
+
VERSION = '0.1.6'
|
15
15
|
end
|
data/shotstack.gemspec
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
=begin
|
4
4
|
#Shotstack
|
5
5
|
|
6
|
-
#The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details
|
6
|
+
#The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
|
7
7
|
|
8
8
|
The version of the OpenAPI document: v1
|
9
9
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
OpenAPI Generator version:
|
11
|
+
OpenAPI Generator version: 5.0.0
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -19,16 +19,15 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.name = "shotstack"
|
20
20
|
s.version = Shotstack::VERSION
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
|
-
s.authors = ["
|
22
|
+
s.authors = ["Shotstack"]
|
23
23
|
s.email = [""]
|
24
|
-
s.homepage = "https://
|
25
|
-
s.summary = "Shotstack Ruby Gem"
|
26
|
-
s.description = "The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details
|
27
|
-
s.license = "
|
28
|
-
s.required_ruby_version = ">=
|
24
|
+
s.homepage = "https://shotstack.io"
|
25
|
+
s.summary = "Shotstack SDK Ruby Gem"
|
26
|
+
s.description = "The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation."
|
27
|
+
s.license = "MIT"
|
28
|
+
s.required_ruby_version = ">= 2.4"
|
29
29
|
|
30
30
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
-
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
31
|
|
33
32
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
33
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shotstack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Shotstack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -30,26 +30,6 @@ dependencies:
|
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.1
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: json
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '2.1'
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 2.1.0
|
43
|
-
type: :runtime
|
44
|
-
prerelease: false
|
45
|
-
version_requirements: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '2.1'
|
50
|
-
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: 2.1.0
|
53
33
|
- !ruby/object:Gem::Dependency
|
54
34
|
name: rspec
|
55
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,7 +53,8 @@ dependencies:
|
|
73
53
|
description: The Shotstack API is a video editing service that allows for the automated
|
74
54
|
creation of videos using JSON. You can configure an edit and POST it to the Shotstack
|
75
55
|
API which will render your video and provide a file location when complete. For
|
76
|
-
more details
|
56
|
+
more details visit [shotstack.io](https://shotstack.io) or checkout our [getting
|
57
|
+
started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
|
77
58
|
email:
|
78
59
|
- ''
|
79
60
|
executables: []
|
@@ -89,6 +70,7 @@ files:
|
|
89
70
|
- lib/shotstack/models/asset.rb
|
90
71
|
- lib/shotstack/models/audio_asset.rb
|
91
72
|
- lib/shotstack/models/clip.rb
|
73
|
+
- lib/shotstack/models/crop.rb
|
92
74
|
- lib/shotstack/models/edit.rb
|
93
75
|
- lib/shotstack/models/font.rb
|
94
76
|
- lib/shotstack/models/html_asset.rb
|
@@ -99,6 +81,7 @@ files:
|
|
99
81
|
- lib/shotstack/models/poster.rb
|
100
82
|
- lib/shotstack/models/queued_response.rb
|
101
83
|
- lib/shotstack/models/queued_response_data.rb
|
84
|
+
- lib/shotstack/models/range.rb
|
102
85
|
- lib/shotstack/models/render_response.rb
|
103
86
|
- lib/shotstack/models/render_response_data.rb
|
104
87
|
- lib/shotstack/models/soundtrack.rb
|
@@ -109,12 +92,10 @@ files:
|
|
109
92
|
- lib/shotstack/models/transition.rb
|
110
93
|
- lib/shotstack/models/video_asset.rb
|
111
94
|
- lib/shotstack/version.rb
|
112
|
-
- shotstack-0.0.11.gem
|
113
|
-
- shotstack-0.1.0.gem
|
114
95
|
- shotstack.gemspec
|
115
|
-
homepage: https://
|
96
|
+
homepage: https://shotstack.io
|
116
97
|
licenses:
|
117
|
-
-
|
98
|
+
- MIT
|
118
99
|
metadata: {}
|
119
100
|
post_install_message:
|
120
101
|
rdoc_options: []
|
@@ -124,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
105
|
requirements:
|
125
106
|
- - ">="
|
126
107
|
- !ruby/object:Gem::Version
|
127
|
-
version: '
|
108
|
+
version: '2.4'
|
128
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
110
|
requirements:
|
130
111
|
- - ">="
|
@@ -135,5 +116,5 @@ rubyforge_project:
|
|
135
116
|
rubygems_version: 2.7.6
|
136
117
|
signing_key:
|
137
118
|
specification_version: 4
|
138
|
-
summary: Shotstack Ruby Gem
|
119
|
+
summary: Shotstack SDK Ruby Gem
|
139
120
|
test_files: []
|
data/shotstack-0.0.11.gem
DELETED
Binary file
|
data/shotstack-0.1.0.gem
DELETED
Binary file
|