Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .oas-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.10.4
1.12.1
2 changes: 2 additions & 0 deletions lib/shotstack/models/asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def openapi_one_of
[
:'AudioAsset',
:'CaptionAsset',
:'Html5Asset',
:'HtmlAsset',
:'ImageAsset',
:'ImageToVideoAsset',
Expand Down Expand Up @@ -49,6 +50,7 @@ def openapi_discriminator_mapping
:'audio' => :'AudioAsset',
:'caption' => :'CaptionAsset',
:'html' => :'HtmlAsset',
:'html5' => :'Html5Asset',
:'image' => :'ImageAsset',
:'image-to-video' => :'ImageToVideoAsset',
:'luma' => :'LumaAsset',
Expand Down
12 changes: 11 additions & 1 deletion lib/shotstack/models/clip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
module Shotstack
# 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.
class Clip
# Optional client-generated identifier. Used by client SDKs (e.g. the Shotstack Studio SDK) to reference a clip across edits without relying on its position in the timeline. The render API does not use this field and it does not appear in render output.
attr_accessor :id

attr_accessor :asset

attr_accessor :start
Expand Down Expand Up @@ -78,6 +81,7 @@ def valid?(value)
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'id' => :'id',
:'asset' => :'asset',
:'start' => :'start',
:'length' => :'length',
Expand All @@ -104,6 +108,7 @@ def self.acceptable_attributes
# Attribute type mapping.
def self.openapi_types
{
:'id' => :'String',
:'asset' => :'Asset',
:'start' => :'ClipStart',
:'length' => :'ClipLength',
Expand Down Expand Up @@ -143,6 +148,10 @@ def initialize(attributes = {})
h[k.to_sym] = v
}

if attributes.key?(:'id')
self.id = attributes[:'id']
end

if attributes.key?(:'asset')
self.asset = attributes[:'asset']
else
Expand Down Expand Up @@ -370,6 +379,7 @@ def _alias=(_alias)
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
id == o.id &&
asset == o.asset &&
start == o.start &&
length == o.length &&
Expand All @@ -396,7 +406,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[asset, start, length, fit, scale, width, height, position, offset, transition, effect, filter, opacity, transform, _alias].hash
[id, asset, start, length, fit, scale, width, height, position, offset, transition, effect, filter, opacity, transform, _alias].hash
end

# Builds the object from hash
Expand Down
Loading