shotstack 0.0.11 → 0.1.4

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.
@@ -1,19 +1,19 @@
1
1
  =begin
2
- #shotstack
2
+ #Shotstack
3
3
 
4
- #The Shotstack API is a video editing service that allows for the programatic creation of videos using JSON.
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 check https://shotstack.io
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: 4.0.0
9
+ OpenAPI Generator version: 4.2.1
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module Shotstack
16
- # A track contains an array of clips. Tracks are layered on top of each other in the order in the array. The top most track will render on top of those below it.
16
+ # A track contains an array of clips. Tracks are layered on top of each other in the order in the array. The top most track will render on top of those below it.
17
17
  class Track
18
18
  # An array of Clips comprising of TitleClip, ImageClip or VideoClip.
19
19
  attr_accessor :clips
@@ -32,6 +32,12 @@ module Shotstack
32
32
  }
33
33
  end
34
34
 
35
+ # List of attributes with nullable: true
36
+ def self.openapi_nullable
37
+ Set.new([
38
+ ])
39
+ end
40
+
35
41
  # Initializes the object
36
42
  # @param [Hash] attributes Model attributes in the form of hash
37
43
  def initialize(attributes = {})
@@ -178,7 +184,11 @@ module Shotstack
178
184
  hash = {}
179
185
  self.class.attribute_map.each_pair do |attr, param|
180
186
  value = self.send(attr)
181
- next if value.nil?
187
+ if value.nil?
188
+ is_nullable = self.class.openapi_nullable.include?(attr)
189
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
190
+ end
191
+
182
192
  hash[param] = _to_hash(value)
183
193
  end
184
194
  hash
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #shotstack
2
+ #Shotstack
3
3
 
4
- #The Shotstack API is a video editing service that allows for the programatic creation of videos using JSON.
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 check https://shotstack.io
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: 4.0.0
9
+ OpenAPI Generator version: 4.2.1
10
10
 
11
11
  =end
12
12
 
@@ -15,10 +15,10 @@ require 'date'
15
15
  module Shotstack
16
16
  # In and out transitions for a clip - i.e. fade in and fade out
17
17
  class Transition
18
- # The transition in
18
+ # The transition in. Available transitions are: <ul> <li>`fade` - fade in</li> <li>`reveal` - reveal from left to right</li> <li>`wipeLeft` - fade across screen to the left</li> <li>`wipeRight` - fade across screen to the right</li> <li>`slideLeft` - move slightly left and fade in</li> <li>`slideRight` - move slightly right and fade in</li> <li>`slideUp` - move slightly up and fade in</li> <li>`slideDown` - move slightly down and fade in</li> <li>`carouselLeft` - slide in from right to left</li> <li>`carouselRight` - slide in from left to right</li> <li>`carouselUp` - slide in from bottom to top</li> <li>`carouselDown` - slide in from top to bottom</li> <li>`zoom` - fast zoom in</li> </ul>
19
19
  attr_accessor :_in
20
20
 
21
- # The transition out
21
+ # The transition out. Available transitions are: <ul> <li>`fade` - fade out</li> <li>`reveal` - reveal from right to left</li> <li>`wipeLeft` - fade across screen to the left</li> <li>`wipeRight` - fade across screen to the right</li> <li>`slideLeft` - move slightly left and fade out</li> <li>`slideRight` - move slightly right and fade out</li> <li>`slideUp` - move slightly up and fade out</li> <li>`slideDown` - move slightly down and fade out</li> <li>`carouselLeft` - slide out from right to left</li> <li>`carouselRight` - slide out from left to right</li> <li>`carouselUp` - slide out from bottom to top</li> <li>`carouselDown` - slide out from top to bottom</li> <li>`zoom` - fast zoom out</li> </ul>
22
22
  attr_accessor :out
23
23
 
24
24
  class EnumAttributeValidator
@@ -59,6 +59,12 @@ module Shotstack
59
59
  }
60
60
  end
61
61
 
62
+ # List of attributes with nullable: true
63
+ def self.openapi_nullable
64
+ Set.new([
65
+ ])
66
+ end
67
+
62
68
  # Initializes the object
63
69
  # @param [Hash] attributes Model attributes in the form of hash
64
70
  def initialize(attributes = {})
@@ -93,9 +99,9 @@ module Shotstack
93
99
  # Check to see if the all the properties in the model are valid
94
100
  # @return true if the model is valid
95
101
  def valid?
96
- _in_validator = EnumAttributeValidator.new('String', ["fade", "wipeLeft", "wipeRight"])
102
+ _in_validator = EnumAttributeValidator.new('String', ["fade", "reveal", "wipeLeft", "wipeRight", "slideLeft", "slideRight", "slideUp", "slideDown", "carouselLeft", "carouselRight", "carouselUp", "carouselDown", "zoom"])
97
103
  return false unless _in_validator.valid?(@_in)
98
- out_validator = EnumAttributeValidator.new('String', ["fade", "wipeLeft", "wipeRight"])
104
+ out_validator = EnumAttributeValidator.new('String', ["fade", "reveal", "wipeLeft", "wipeRight", "slideLeft", "slideRight", "slideUp", "slideDown", "carouselLeft", "carouselRight", "carouselUp", "carouselDown", "zoom"])
99
105
  return false unless out_validator.valid?(@out)
100
106
  true
101
107
  end
@@ -103,7 +109,7 @@ module Shotstack
103
109
  # Custom attribute writer method checking allowed values (enum).
104
110
  # @param [Object] _in Object to be assigned
105
111
  def _in=(_in)
106
- validator = EnumAttributeValidator.new('String', ["fade", "wipeLeft", "wipeRight"])
112
+ validator = EnumAttributeValidator.new('String', ["fade", "reveal", "wipeLeft", "wipeRight", "slideLeft", "slideRight", "slideUp", "slideDown", "carouselLeft", "carouselRight", "carouselUp", "carouselDown", "zoom"])
107
113
  unless validator.valid?(_in)
108
114
  fail ArgumentError, "invalid value for \"_in\", must be one of #{validator.allowable_values}."
109
115
  end
@@ -113,7 +119,7 @@ module Shotstack
113
119
  # Custom attribute writer method checking allowed values (enum).
114
120
  # @param [Object] out Object to be assigned
115
121
  def out=(out)
116
- validator = EnumAttributeValidator.new('String', ["fade", "wipeLeft", "wipeRight"])
122
+ validator = EnumAttributeValidator.new('String', ["fade", "reveal", "wipeLeft", "wipeRight", "slideLeft", "slideRight", "slideUp", "slideDown", "carouselLeft", "carouselRight", "carouselUp", "carouselDown", "zoom"])
117
123
  unless validator.valid?(out)
118
124
  fail ArgumentError, "invalid value for \"out\", must be one of #{validator.allowable_values}."
119
125
  end
@@ -227,7 +233,11 @@ module Shotstack
227
233
  hash = {}
228
234
  self.class.attribute_map.each_pair do |attr, param|
229
235
  value = self.send(attr)
230
- next if value.nil?
236
+ if value.nil?
237
+ is_nullable = self.class.openapi_nullable.include?(attr)
238
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
239
+ end
240
+
231
241
  hash[param] = _to_hash(value)
232
242
  end
233
243
  hash
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #shotstack
2
+ #Shotstack
3
3
 
4
- #The Shotstack API is a video editing service that allows for the programatic creation of videos using JSON.
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 check https://shotstack.io
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: 4.0.0
9
+ OpenAPI Generator version: 4.2.1
10
10
 
11
11
  =end
12
12
 
@@ -14,18 +14,18 @@ require 'date'
14
14
  require_relative 'asset'
15
15
 
16
16
  module Shotstack
17
- # The VideoAsset is used to create video sequences from video files. The src must be a publicly accesible URL to a video resource such as an mp4 file. The in and out attributes of the parent Clip let you trim the video file by setting the start and end point to use.
17
+ # 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
18
  class VideoAsset < Asset
19
- # The type of asset - set to <b>video</b> for videos.
19
+ # The type of asset - set to `video` for videos.
20
20
  attr_accessor :type
21
21
 
22
- # The video source URL. The URL must be publicly accessible or include credentials.
22
+ # The video source URL. The URL must be publicly accessible or include credentials.
23
23
  attr_accessor :src
24
24
 
25
- # The start trim point of the clip, in seconds (defaults to 0). Videos will start from the in trim point. The video will play until the file ends or the Clip length is reached.
25
+ # The start trim point of the video clip, in seconds (defaults to 0). Videos will start from the in trim point. The video will play until the file ends or the Clip length is reached.
26
26
  attr_accessor :trim
27
27
 
28
- # Set the volume for the clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 0).
28
+ # Set the volume for the video clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 0).
29
29
  attr_accessor :volume
30
30
 
31
31
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -48,6 +48,12 @@ module Shotstack
48
48
  }
49
49
  end
50
50
 
51
+ # List of attributes with nullable: true
52
+ def self.openapi_nullable
53
+ Set.new([
54
+ ])
55
+ end
56
+
51
57
  # Initializes the object
52
58
  # @param [Hash] attributes Model attributes in the form of hash
53
59
  def initialize(attributes = {})
@@ -214,7 +220,11 @@ module Shotstack
214
220
  hash = {}
215
221
  self.class.attribute_map.each_pair do |attr, param|
216
222
  value = self.send(attr)
217
- next if value.nil?
223
+ if value.nil?
224
+ is_nullable = self.class.openapi_nullable.include?(attr)
225
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
226
+ end
227
+
218
228
  hash[param] = _to_hash(value)
219
229
  end
220
230
  hash
@@ -1,15 +1,15 @@
1
1
  =begin
2
- #shotstack
2
+ #Shotstack
3
3
 
4
- #The Shotstack API is a video editing service that allows for the programatic creation of videos using JSON.
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 check https://shotstack.io
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: 4.0.0
9
+ OpenAPI Generator version: 4.2.1
10
10
 
11
11
  =end
12
12
 
13
13
  module Shotstack
14
- VERSION = '0.0.11'
14
+ VERSION = '0.1.4'
15
15
  end
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  =begin
4
- #shotstack
4
+ #Shotstack
5
5
 
6
- #The Shotstack API is a video editing service that allows for the programatic creation of videos using JSON.
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 check https://shotstack.io
7
7
 
8
- OpenAPI spec version: v1
8
+ The version of the OpenAPI document: v1
9
9
 
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 4.0.0-beta3
11
+ OpenAPI Generator version: 4.2.1
12
12
 
13
13
  =end
14
14
 
@@ -19,24 +19,18 @@ 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 = ["OpenAPI-Generator"]
22
+ s.authors = ["Shotstack"]
23
23
  s.email = [""]
24
- s.homepage = "https://openapi-generator.tech"
25
- s.summary = "shotstack Ruby Gem"
26
- s.description = "The Shotstack API is a video editing service that allows for the programatic creation of videos using JSON. "
27
- s.license = "Unlicense"
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 check https://shotstack.io"
27
+ s.license = "MIT"
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
30
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
32
 
33
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
- s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35
- s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
36
- s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
37
- s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
38
- s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
39
- s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
40
34
 
41
35
  s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
42
36
  s.test_files = `find spec/*`.split("\n")
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.0.11
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
- - OpenAPI-Generator
7
+ - Shotstack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-14 00:00:00.000000000 Z
11
+ date: 2020-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -70,128 +70,10 @@ dependencies:
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: 3.6.0
73
- - !ruby/object:Gem::Dependency
74
- name: vcr
75
- requirement: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - "~>"
78
- - !ruby/object:Gem::Version
79
- version: '3.0'
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 3.0.1
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '3.0'
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- version: 3.0.1
93
- - !ruby/object:Gem::Dependency
94
- name: webmock
95
- requirement: !ruby/object:Gem::Requirement
96
- requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: '1.24'
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: 1.24.3
103
- type: :development
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '1.24'
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: 1.24.3
113
- - !ruby/object:Gem::Dependency
114
- name: autotest
115
- requirement: !ruby/object:Gem::Requirement
116
- requirements:
117
- - - "~>"
118
- - !ruby/object:Gem::Version
119
- version: '4.4'
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- version: 4.4.6
123
- type: :development
124
- prerelease: false
125
- version_requirements: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - "~>"
128
- - !ruby/object:Gem::Version
129
- version: '4.4'
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: 4.4.6
133
- - !ruby/object:Gem::Dependency
134
- name: autotest-rails-pure
135
- requirement: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - "~>"
138
- - !ruby/object:Gem::Version
139
- version: '4.1'
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- version: 4.1.2
143
- type: :development
144
- prerelease: false
145
- version_requirements: !ruby/object:Gem::Requirement
146
- requirements:
147
- - - "~>"
148
- - !ruby/object:Gem::Version
149
- version: '4.1'
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: 4.1.2
153
- - !ruby/object:Gem::Dependency
154
- name: autotest-growl
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '0.2'
160
- - - ">="
161
- - !ruby/object:Gem::Version
162
- version: 0.2.16
163
- type: :development
164
- prerelease: false
165
- version_requirements: !ruby/object:Gem::Requirement
166
- requirements:
167
- - - "~>"
168
- - !ruby/object:Gem::Version
169
- version: '0.2'
170
- - - ">="
171
- - !ruby/object:Gem::Version
172
- version: 0.2.16
173
- - !ruby/object:Gem::Dependency
174
- name: autotest-fsevent
175
- requirement: !ruby/object:Gem::Requirement
176
- requirements:
177
- - - "~>"
178
- - !ruby/object:Gem::Version
179
- version: '0.2'
180
- - - ">="
181
- - !ruby/object:Gem::Version
182
- version: 0.2.12
183
- type: :development
184
- prerelease: false
185
- version_requirements: !ruby/object:Gem::Requirement
186
- requirements:
187
- - - "~>"
188
- - !ruby/object:Gem::Version
189
- version: '0.2'
190
- - - ">="
191
- - !ruby/object:Gem::Version
192
- version: 0.2.12
193
- description: 'The Shotstack API is a video editing service that allows for the programatic
194
- creation of videos using JSON. '
73
+ description: The Shotstack API is a video editing service that allows for the automated
74
+ creation of videos using JSON. You can configure an edit and POST it to the Shotstack
75
+ API which will render your video and provide a file location when complete. For
76
+ more details check https://shotstack.io
195
77
  email:
196
78
  - ''
197
79
  executables: []
@@ -200,20 +82,27 @@ extra_rdoc_files: []
200
82
  files:
201
83
  - README.md
202
84
  - lib/shotstack.rb
203
- - lib/shotstack/api/default_api.rb
85
+ - lib/shotstack/api/endpoints_api.rb
204
86
  - lib/shotstack/api_client.rb
205
87
  - lib/shotstack/api_error.rb
206
88
  - lib/shotstack/configuration.rb
207
89
  - lib/shotstack/models/asset.rb
90
+ - lib/shotstack/models/audio_asset.rb
208
91
  - lib/shotstack/models/clip.rb
209
92
  - lib/shotstack/models/edit.rb
93
+ - lib/shotstack/models/font.rb
94
+ - lib/shotstack/models/html_asset.rb
210
95
  - lib/shotstack/models/image_asset.rb
96
+ - lib/shotstack/models/luma_asset.rb
97
+ - lib/shotstack/models/offset.rb
211
98
  - lib/shotstack/models/output.rb
99
+ - lib/shotstack/models/poster.rb
212
100
  - lib/shotstack/models/queued_response.rb
213
101
  - lib/shotstack/models/queued_response_data.rb
214
102
  - lib/shotstack/models/render_response.rb
215
103
  - lib/shotstack/models/render_response_data.rb
216
104
  - lib/shotstack/models/soundtrack.rb
105
+ - lib/shotstack/models/thumbnail.rb
217
106
  - lib/shotstack/models/timeline.rb
218
107
  - lib/shotstack/models/title_asset.rb
219
108
  - lib/shotstack/models/track.rb
@@ -221,9 +110,9 @@ files:
221
110
  - lib/shotstack/models/video_asset.rb
222
111
  - lib/shotstack/version.rb
223
112
  - shotstack.gemspec
224
- homepage: https://openapi-generator.tech
113
+ homepage: https://shotstack.io
225
114
  licenses:
226
- - Unlicense
115
+ - MIT
227
116
  metadata: {}
228
117
  post_install_message:
229
118
  rdoc_options: []
@@ -244,5 +133,5 @@ rubyforge_project:
244
133
  rubygems_version: 2.7.6
245
134
  signing_key:
246
135
  specification_version: 4
247
- summary: shotstack Ruby Gem
136
+ summary: Shotstack SDK Ruby Gem
248
137
  test_files: []