shotstack 0.1.8 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1099 -11
  3. data/lib/shotstack/api/edit_api.rb +80 -8
  4. data/lib/shotstack/api/serve_api.rb +7 -7
  5. data/lib/shotstack/api_client.rb +3 -3
  6. data/lib/shotstack/api_error.rb +1 -1
  7. data/lib/shotstack/configuration.rb +8 -5
  8. data/lib/shotstack/models/asset_render_response.rb +1 -1
  9. data/lib/shotstack/models/asset_response.rb +1 -1
  10. data/lib/shotstack/models/asset_response_attributes.rb +1 -1
  11. data/lib/shotstack/models/asset_response_data.rb +1 -1
  12. data/lib/shotstack/models/audio_asset.rb +1 -1
  13. data/lib/shotstack/models/clip.rb +15 -6
  14. data/lib/shotstack/models/crop.rb +1 -1
  15. data/lib/shotstack/models/edit.rb +14 -2
  16. data/lib/shotstack/models/flip_transformation.rb +234 -0
  17. data/lib/shotstack/models/font.rb +1 -1
  18. data/lib/shotstack/models/html_asset.rb +1 -1
  19. data/lib/shotstack/models/image_asset.rb +2 -2
  20. data/lib/shotstack/models/luma_asset.rb +1 -1
  21. data/lib/shotstack/models/merge_field.rb +236 -0
  22. data/lib/shotstack/models/offset.rb +1 -1
  23. data/lib/shotstack/models/output.rb +18 -8
  24. data/lib/shotstack/models/poster.rb +1 -1
  25. data/lib/shotstack/models/probe_response.rb +255 -0
  26. data/lib/shotstack/models/queued_response.rb +1 -1
  27. data/lib/shotstack/models/queued_response_data.rb +1 -1
  28. data/lib/shotstack/models/range.rb +1 -1
  29. data/lib/shotstack/models/render_response.rb +1 -1
  30. data/lib/shotstack/models/render_response_data.rb +1 -1
  31. data/lib/shotstack/models/rotate_transformation.rb +222 -0
  32. data/lib/shotstack/models/shotstack_destination.rb +1 -1
  33. data/lib/shotstack/models/size.rb +1 -1
  34. data/lib/shotstack/models/skew_transformation.rb +234 -0
  35. data/lib/shotstack/models/soundtrack.rb +1 -1
  36. data/lib/shotstack/models/thumbnail.rb +1 -1
  37. data/lib/shotstack/models/timeline.rb +1 -1
  38. data/lib/shotstack/models/title_asset.rb +1 -1
  39. data/lib/shotstack/models/track.rb +1 -1
  40. data/lib/shotstack/models/transformation.rb +237 -0
  41. data/lib/shotstack/models/transition.rb +1 -1
  42. data/lib/shotstack/models/video_asset.rb +1 -1
  43. data/lib/shotstack/version.rb +2 -2
  44. data/lib/shotstack.rb +7 -1
  45. data/shotstack.gemspec +1 -1
  46. metadata +15 -10
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -20,9 +20,11 @@ module Shotstack
20
20
  @api_client = api_client
21
21
  end
22
22
  # Get Render Status
23
- # Get the rendering status, temporary asset url and details of a render by ID. **base URL:** https://api.shotstack.io/{version}
23
+ # Get the rendering status, temporary asset url and details of a render by ID. **Base URL:** https://api.shotstack.io/{version}
24
24
  # @param id [String] The id of the timeline render task in UUID format
25
25
  # @param [Hash] opts the optional parameters
26
+ # @option opts [Boolean] :data Include the data parameter in the response. The data parameter includes the original timeline, output and other settings sent to the API.<br><br><b>Note:</b> the default is currently `true`, this is deprecated and the default will soon be `false`. If you rely on the data being returned in the response you should explicitly set the parameter to `true`.
27
+ # @option opts [Boolean] :merged Used when data is set to true, it will show the [merge fields](#tocs_mergefield) merged in to the data response.
26
28
  # @return [RenderResponse]
27
29
  def get_render(id, opts = {})
28
30
  data, _status_code, _headers = get_render_with_http_info(id, opts)
@@ -30,9 +32,11 @@ module Shotstack
30
32
  end
31
33
 
32
34
  # Get Render Status
33
- # Get the rendering status, temporary asset url and details of a render by ID. **base URL:** https://api.shotstack.io/{version}
35
+ # Get the rendering status, temporary asset url and details of a render by ID. **Base URL:** https://api.shotstack.io/{version}
34
36
  # @param id [String] The id of the timeline render task in UUID format
35
37
  # @param [Hash] opts the optional parameters
38
+ # @option opts [Boolean] :data Include the data parameter in the response. The data parameter includes the original timeline, output and other settings sent to the API.<br><br><b>Note:</b> the default is currently `true`, this is deprecated and the default will soon be `false`. If you rely on the data being returned in the response you should explicitly set the parameter to `true`.
39
+ # @option opts [Boolean] :merged Used when data is set to true, it will show the [merge fields](#tocs_mergefield) merged in to the data response.
36
40
  # @return [Array<(RenderResponse, Integer, Hash)>] RenderResponse data, response status code and response headers
37
41
  def get_render_with_http_info(id, opts = {})
38
42
  if @api_client.config.debugging
@@ -52,6 +56,8 @@ module Shotstack
52
56
 
53
57
  # query parameters
54
58
  query_params = opts[:query_params] || {}
59
+ query_params[:'data'] = opts[:'data'] if !opts[:'data'].nil?
60
+ query_params[:'merged'] = opts[:'merged'] if !opts[:'merged'].nil?
55
61
 
56
62
  # header parameters
57
63
  header_params = opts[:header_params] || {}
@@ -88,8 +94,8 @@ module Shotstack
88
94
  end
89
95
 
90
96
  # Render Asset
91
- # Queue and render the contents of a timeline as a video, image or audio file.
92
- # @param edit [Edit] The video, image or audio edit specified using JSON. **base URL:** https://api.shotstack.io/{version}
97
+ # Queue and render the contents of a timeline as a video, image or audio file. **Base URL:** https://api.shotstack.io/{version}
98
+ # @param edit [Edit] The video, image or audio edit specified using JSON.
93
99
  # @param [Hash] opts the optional parameters
94
100
  # @return [QueuedResponse]
95
101
  def post_render(edit, opts = {})
@@ -98,8 +104,8 @@ module Shotstack
98
104
  end
99
105
 
100
106
  # Render Asset
101
- # Queue and render the contents of a timeline as a video, image or audio file.
102
- # @param edit [Edit] The video, image or audio edit specified using JSON. **base URL:** https://api.shotstack.io/{version}
107
+ # Queue and render the contents of a timeline as a video, image or audio file. **Base URL:** https://api.shotstack.io/{version}
108
+ # @param edit [Edit] The video, image or audio edit specified using JSON.
103
109
  # @param [Hash] opts the optional parameters
104
110
  # @return [Array<(QueuedResponse, Integer, Hash)>] QueuedResponse data, response status code and response headers
105
111
  def post_render_with_http_info(edit, opts = {})
@@ -121,7 +127,10 @@ module Shotstack
121
127
  # HTTP header 'Accept' (if needed)
122
128
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
123
129
  # HTTP header 'Content-Type'
124
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
130
+ content_type = @api_client.select_header_content_type(['application/json'])
131
+ if !content_type.nil?
132
+ header_params['Content-Type'] = content_type
133
+ end
125
134
 
126
135
  # form parameters
127
136
  form_params = opts[:form_params] || {}
@@ -151,5 +160,68 @@ module Shotstack
151
160
  end
152
161
  return data, status_code, headers
153
162
  end
163
+
164
+ # Inspect Media
165
+ # Inspects any media asset (image, video, audio) on the internet using a hosted version of [FFprobe](https://ffmpeg.org/ffprobe.html). The probe endpoint returns useful information about an asset such as width, height, duration, rotation, framerate, etc... **Base URL:** https://api.shotstack.io/{version}
166
+ # @param url [String] The URL of the media to inspect, must be **URL encoded**.
167
+ # @param [Hash] opts the optional parameters
168
+ # @return [ProbeResponse]
169
+ def probe(url, opts = {})
170
+ data, _status_code, _headers = probe_with_http_info(url, opts)
171
+ data
172
+ end
173
+
174
+ # Inspect Media
175
+ # Inspects any media asset (image, video, audio) on the internet using a hosted version of [FFprobe](https://ffmpeg.org/ffprobe.html). The probe endpoint returns useful information about an asset such as width, height, duration, rotation, framerate, etc... **Base URL:** https://api.shotstack.io/{version}
176
+ # @param url [String] The URL of the media to inspect, must be **URL encoded**.
177
+ # @param [Hash] opts the optional parameters
178
+ # @return [Array<(ProbeResponse, Integer, Hash)>] ProbeResponse data, response status code and response headers
179
+ def probe_with_http_info(url, opts = {})
180
+ if @api_client.config.debugging
181
+ @api_client.config.logger.debug 'Calling API: EditApi.probe ...'
182
+ end
183
+ # verify the required parameter 'url' is set
184
+ if @api_client.config.client_side_validation && url.nil?
185
+ fail ArgumentError, "Missing the required parameter 'url' when calling EditApi.probe"
186
+ end
187
+ # resource path
188
+ local_var_path = '/probe/{url}'.sub('{' + 'url' + '}', CGI.escape(url.to_s))
189
+
190
+ # query parameters
191
+ query_params = opts[:query_params] || {}
192
+
193
+ # header parameters
194
+ header_params = opts[:header_params] || {}
195
+ # HTTP header 'Accept' (if needed)
196
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
197
+
198
+ # form parameters
199
+ form_params = opts[:form_params] || {}
200
+
201
+ # http body (model)
202
+ post_body = opts[:debug_body]
203
+
204
+ # return_type
205
+ return_type = opts[:debug_return_type] || 'ProbeResponse'
206
+
207
+ # auth_names
208
+ auth_names = opts[:debug_auth_names] || ['DeveloperKey']
209
+
210
+ new_options = opts.merge(
211
+ :operation => :"EditApi.probe",
212
+ :header_params => header_params,
213
+ :query_params => query_params,
214
+ :form_params => form_params,
215
+ :body => post_body,
216
+ :auth_names => auth_names,
217
+ :return_type => return_type
218
+ )
219
+
220
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
221
+ if @api_client.config.debugging
222
+ @api_client.config.logger.debug "API called: EditApi#probe\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
223
+ end
224
+ return data, status_code, headers
225
+ end
154
226
  end
155
227
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -20,7 +20,7 @@ module Shotstack
20
20
  @api_client = api_client
21
21
  end
22
22
  # Delete Asset
23
- # Delete an asset by its asset id. If a render creates multiple assets, such as thumbnail and poster images, each asset must be deleted individually by the asset id. **base URL:** https://api.shotstack.io/serve/{version}
23
+ # Delete an asset by its asset id. If a render creates multiple assets, such as thumbnail and poster images, each asset must be deleted individually by the asset id. **Base URL:** https://api.shotstack.io/serve/{version}
24
24
  # @param id [String] The id of the asset in UUID format
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [nil]
@@ -30,7 +30,7 @@ module Shotstack
30
30
  end
31
31
 
32
32
  # Delete Asset
33
- # Delete an asset by its asset id. If a render creates multiple assets, such as thumbnail and poster images, each asset must be deleted individually by the asset id. **base URL:** https://api.shotstack.io/serve/{version}
33
+ # Delete an asset by its asset id. If a render creates multiple assets, such as thumbnail and poster images, each asset must be deleted individually by the asset id. **Base URL:** https://api.shotstack.io/serve/{version}
34
34
  # @param id [String] The id of the asset in UUID format
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -86,7 +86,7 @@ module Shotstack
86
86
  end
87
87
 
88
88
  # Get Asset
89
- # The Serve API is used to interact with, and delete hosted assets including videos, images, audio files, thumbnails and poster images. Use this endpoint to fetch an asset by asset id. Note that an asset id is unique for each asset and different from the render id. **base URL:** https://api.shotstack.io/serve/{version}
89
+ # The Serve API is used to interact with, and delete hosted assets including videos, images, audio files, thumbnails and poster images. Use this endpoint to fetch an asset by asset id. Note that an asset id is unique for each asset and different from the render id. **Base URL:** https://api.shotstack.io/serve/{version}
90
90
  # @param id [String] The id of the asset in UUID format
91
91
  # @param [Hash] opts the optional parameters
92
92
  # @return [AssetResponse]
@@ -96,7 +96,7 @@ module Shotstack
96
96
  end
97
97
 
98
98
  # Get Asset
99
- # The Serve API is used to interact with, and delete hosted assets including videos, images, audio files, thumbnails and poster images. Use this endpoint to fetch an asset by asset id. Note that an asset id is unique for each asset and different from the render id. **base URL:** https://api.shotstack.io/serve/{version}
99
+ # The Serve API is used to interact with, and delete hosted assets including videos, images, audio files, thumbnails and poster images. Use this endpoint to fetch an asset by asset id. Note that an asset id is unique for each asset and different from the render id. **Base URL:** https://api.shotstack.io/serve/{version}
100
100
  # @param id [String] The id of the asset in UUID format
101
101
  # @param [Hash] opts the optional parameters
102
102
  # @return [Array<(AssetResponse, Integer, Hash)>] AssetResponse data, response status code and response headers
@@ -154,7 +154,7 @@ module Shotstack
154
154
  end
155
155
 
156
156
  # Get Asset by Render ID
157
- # A render may generate more than one file, such as a video, thumbnail and poster image. When the assets are created the only known id is the render id returned by the original [render request](#render-video), status request or webhook. This endpoint lets you look up one or more assets by the render id. **base URL:** https://api.shotstack.io/serve/{version}
157
+ # A render may generate more than one file, such as a video, thumbnail and poster image. When the assets are created the only known id is the render id returned by the original [render request](#render-video), status request or webhook. This endpoint lets you look up one or more assets by the render id. **Base URL:** https://api.shotstack.io/serve/{version}
158
158
  # @param id [String] The render id associated with the asset in UUID format
159
159
  # @param [Hash] opts the optional parameters
160
160
  # @return [AssetRenderResponse]
@@ -164,7 +164,7 @@ module Shotstack
164
164
  end
165
165
 
166
166
  # Get Asset by Render ID
167
- # A render may generate more than one file, such as a video, thumbnail and poster image. When the assets are created the only known id is the render id returned by the original [render request](#render-video), status request or webhook. This endpoint lets you look up one or more assets by the render id. **base URL:** https://api.shotstack.io/serve/{version}
167
+ # A render may generate more than one file, such as a video, thumbnail and poster image. When the assets are created the only known id is the render id returned by the original [render request](#render-video), status request or webhook. This endpoint lets you look up one or more assets by the render id. **Base URL:** https://api.shotstack.io/serve/{version}
168
168
  # @param id [String] The render id associated with the asset in UUID format
169
169
  # @param [Hash] opts the optional parameters
170
170
  # @return [Array<(AssetRenderResponse, Integer, Hash)>] AssetRenderResponse data, response status code and response headers
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -296,7 +296,7 @@ module Shotstack
296
296
  @config.base_url(opts[:operation]) + path
297
297
  end
298
298
 
299
- # Update hearder and query params based on authentication settings.
299
+ # Update header and query params based on authentication settings.
300
300
  #
301
301
  # @param [Hash] header_params Header parameters
302
302
  # @param [Hash] query_params Query parameters
@@ -308,7 +308,7 @@ module Shotstack
308
308
  case auth_setting[:in]
309
309
  when 'header' then header_params[auth_setting[:key]] = auth_setting[:value]
310
310
  when 'query' then query_params[auth_setting[:key]] = auth_setting[:value]
311
- else fail ArgumentError, 'Authentication token must be in `query` of `header`'
311
+ else fail ArgumentError, 'Authentication token must be in `query` or `header`'
312
312
  end
313
313
  end
314
314
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -147,13 +147,13 @@ module Shotstack
147
147
  @server_operation_variables = {}
148
148
  @api_key = {}
149
149
  @api_key_prefix = {}
150
- @timeout = 0
151
150
  @client_side_validation = true
152
151
  @verify_ssl = true
153
152
  @verify_ssl_host = true
154
153
  @params_encoding = nil
155
154
  @cert_file = nil
156
155
  @key_file = nil
156
+ @timeout = 0
157
157
  @debugging = false
158
158
  @inject_format = false
159
159
  @force_ending_format = false
@@ -197,11 +197,13 @@ module Shotstack
197
197
 
198
198
  # Gets API key (with prefix if set).
199
199
  # @param [String] param_name the parameter name of API key auth
200
- def api_key_with_prefix(param_name)
200
+ def api_key_with_prefix(param_name, param_alias = nil)
201
+ key = @api_key[param_name]
202
+ key = @api_key.fetch(param_alias, key) unless param_alias.nil?
201
203
  if @api_key_prefix[param_name]
202
- "#{@api_key_prefix[param_name]} #{@api_key[param_name]}"
204
+ "#{@api_key_prefix[param_name]} #{key}"
203
205
  else
204
- @api_key[param_name]
206
+ key
205
207
  end
206
208
  end
207
209
 
@@ -295,5 +297,6 @@ module Shotstack
295
297
 
296
298
  url
297
299
  end
300
+
298
301
  end
299
302
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -16,7 +16,7 @@ require 'time'
16
16
  module Shotstack
17
17
  # A clip is a container for a specific type of asset, i.e. a title, image, video, audio or html. You use a Clip to define when an asset will display on the timeline, how long it will play for and transitions, filters and effects to apply to it.
18
18
  class Clip
19
- # The type of asset to display for the duration of this Clip. Value must be one of <b>TitleAsset</b>, <b>ImageAsset</b>, <b>VideoAsset</b>, <b>HtmlAsset</b>, <b>AudioAsset</b> or <b>LumaAsset</b>
19
+ # The type of asset to display for the duration of this Clip. Value must be one of: <ul> <li><a href=\"#tocs_videoasset\">VideoAsset</a></li> <li><a href=\"#tocs_imageasset\">ImageAsset</a></li> <li><a href=\"#tocs_titleasset\">TitleAsset</a></li> <li><a href=\"#tocs_htmlasset\">HtmlAsset</a></li> <li><a href=\"#tocs_audioasset\">AudioAsset</a></li> <li><a href=\"#tocs_lumaasset\">LumaAsset</a></li> </ul>
20
20
  attr_accessor :asset
21
21
 
22
22
  # The start position of the Clip on the timeline, in seconds.
@@ -47,6 +47,8 @@ module Shotstack
47
47
  # Sets the opacity of the Clip where 1 is opaque and 0 is transparent.
48
48
  attr_accessor :opacity
49
49
 
50
+ attr_accessor :transform
51
+
50
52
  class EnumAttributeValidator
51
53
  attr_reader :datatype
52
54
  attr_reader :allowable_values
@@ -82,7 +84,8 @@ module Shotstack
82
84
  :'transition' => :'transition',
83
85
  :'effect' => :'effect',
84
86
  :'filter' => :'filter',
85
- :'opacity' => :'opacity'
87
+ :'opacity' => :'opacity',
88
+ :'transform' => :'transform'
86
89
  }
87
90
  end
88
91
 
@@ -104,7 +107,8 @@ module Shotstack
104
107
  :'transition' => :'Transition',
105
108
  :'effect' => :'String',
106
109
  :'filter' => :'String',
107
- :'opacity' => :'Float'
110
+ :'opacity' => :'Float',
111
+ :'transform' => :'Transformation'
108
112
  }
109
113
  end
110
114
 
@@ -178,6 +182,10 @@ module Shotstack
178
182
  else
179
183
  self.opacity = 1
180
184
  end
185
+
186
+ if attributes.key?(:'transform')
187
+ self.transform = attributes[:'transform']
188
+ end
181
189
  end
182
190
 
183
191
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -271,7 +279,8 @@ module Shotstack
271
279
  transition == o.transition &&
272
280
  effect == o.effect &&
273
281
  filter == o.filter &&
274
- opacity == o.opacity
282
+ opacity == o.opacity &&
283
+ transform == o.transform
275
284
  end
276
285
 
277
286
  # @see the `==` method
@@ -283,7 +292,7 @@ module Shotstack
283
292
  # Calculates hash code according to all attributes.
284
293
  # @return [Integer] Hash code
285
294
  def hash
286
- [asset, start, length, fit, scale, position, offset, transition, effect, filter, opacity].hash
295
+ [asset, start, length, fit, scale, position, offset, transition, effect, filter, opacity, transform].hash
287
296
  end
288
297
 
289
298
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -20,6 +20,9 @@ module Shotstack
20
20
 
21
21
  attr_accessor :output
22
22
 
23
+ # An array of key/value pairs that provides an easy way to create templates with placeholders. The placeholders can be used to find and replace keys with values. For example you can search for the placeholder `{{NAME}}` and replace it with the value `Jane`.
24
+ attr_accessor :merge
25
+
23
26
  # An optional webhook callback URL used to receive status notifications when a render completes or fails. See [webhooks](https://shotstack.gitbook.io/docs/guides/architecting-an-application/webhooks) for more details.
24
27
  attr_accessor :callback
25
28
 
@@ -53,6 +56,7 @@ module Shotstack
53
56
  {
54
57
  :'timeline' => :'timeline',
55
58
  :'output' => :'output',
59
+ :'merge' => :'merge',
56
60
  :'callback' => :'callback',
57
61
  :'disk' => :'disk'
58
62
  }
@@ -68,6 +72,7 @@ module Shotstack
68
72
  {
69
73
  :'timeline' => :'Timeline',
70
74
  :'output' => :'Output',
75
+ :'merge' => :'Array<MergeField>',
71
76
  :'callback' => :'String',
72
77
  :'disk' => :'String'
73
78
  }
@@ -102,6 +107,12 @@ module Shotstack
102
107
  self.output = attributes[:'output']
103
108
  end
104
109
 
110
+ if attributes.key?(:'merge')
111
+ if (value = attributes[:'merge']).is_a?(Array)
112
+ self.merge = value
113
+ end
114
+ end
115
+
105
116
  if attributes.key?(:'callback')
106
117
  self.callback = attributes[:'callback']
107
118
  end
@@ -155,6 +166,7 @@ module Shotstack
155
166
  self.class == o.class &&
156
167
  timeline == o.timeline &&
157
168
  output == o.output &&
169
+ merge == o.merge &&
158
170
  callback == o.callback &&
159
171
  disk == o.disk
160
172
  end
@@ -168,7 +180,7 @@ module Shotstack
168
180
  # Calculates hash code according to all attributes.
169
181
  # @return [Integer] Hash code
170
182
  def hash
171
- [timeline, output, callback, disk].hash
183
+ [timeline, output, merge, callback, disk].hash
172
184
  end
173
185
 
174
186
  # Builds the object from hash