mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-07 20:57:44 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.529.1
This commit is contained in:
@@ -36,7 +36,7 @@ module PlexRubySDK
|
||||
# Video height in pixels.
|
||||
field :height, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('height') } }
|
||||
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
field :optimized_for_streaming, T.nilable(::Object), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
||||
field :optimized_for_streaming, T.nilable(T.any(::PlexRubySDK::Operations::One, T::Boolean)), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
||||
# An array of parts for this media item.
|
||||
field :part, T.nilable(T::Array[::PlexRubySDK::Operations::Part]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Part') } }
|
||||
# Video codec used.
|
||||
@@ -52,7 +52,7 @@ module PlexRubySDK
|
||||
field :width, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('width') } }
|
||||
|
||||
|
||||
sig { params(id: ::Integer, aspect_ratio: T.nilable(::Float), audio_channels: T.nilable(::Integer), audio_codec: T.nilable(::String), audio_profile: T.nilable(::String), bitrate: T.nilable(::Integer), container: T.nilable(::String), display_offset: T.nilable(::Integer), duration: T.nilable(::Integer), has64bit_offsets: T.nilable(T::Boolean), has_voice_activity: T.nilable(T::Boolean), height: T.nilable(::Integer), optimized_for_streaming: T.nilable(::Object), part: T.nilable(T::Array[::PlexRubySDK::Operations::Part]), video_codec: T.nilable(::String), video_frame_rate: T.nilable(::String), video_profile: T.nilable(::String), video_resolution: T.nilable(::String), width: T.nilable(::Integer)).void }
|
||||
sig { params(id: ::Integer, aspect_ratio: T.nilable(::Float), audio_channels: T.nilable(::Integer), audio_codec: T.nilable(::String), audio_profile: T.nilable(::String), bitrate: T.nilable(::Integer), container: T.nilable(::String), display_offset: T.nilable(::Integer), duration: T.nilable(::Integer), has64bit_offsets: T.nilable(T::Boolean), has_voice_activity: T.nilable(T::Boolean), height: T.nilable(::Integer), optimized_for_streaming: T.nilable(T.any(::PlexRubySDK::Operations::One, T::Boolean)), part: T.nilable(T::Array[::PlexRubySDK::Operations::Part]), video_codec: T.nilable(::String), video_frame_rate: T.nilable(::String), video_profile: T.nilable(::String), video_resolution: T.nilable(::String), width: T.nilable(::Integer)).void }
|
||||
def initialize(id: nil, aspect_ratio: nil, audio_channels: nil, audio_codec: nil, audio_profile: nil, bitrate: nil, container: nil, display_offset: nil, duration: nil, has64bit_offsets: nil, has_voice_activity: nil, height: nil, optimized_for_streaming: nil, part: nil, video_codec: nil, video_frame_rate: nil, video_profile: nil, video_resolution: nil, width: nil)
|
||||
@id = id
|
||||
@aspect_ratio = aspect_ratio
|
||||
@@ -74,6 +74,30 @@ module PlexRubySDK
|
||||
@video_resolution = video_resolution
|
||||
@width = width
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @id == other.id
|
||||
return false unless @aspect_ratio == other.aspect_ratio
|
||||
return false unless @audio_channels == other.audio_channels
|
||||
return false unless @audio_codec == other.audio_codec
|
||||
return false unless @audio_profile == other.audio_profile
|
||||
return false unless @bitrate == other.bitrate
|
||||
return false unless @container == other.container
|
||||
return false unless @display_offset == other.display_offset
|
||||
return false unless @duration == other.duration
|
||||
return false unless @has64bit_offsets == other.has64bit_offsets
|
||||
return false unless @has_voice_activity == other.has_voice_activity
|
||||
return false unless @height == other.height
|
||||
return false unless @optimized_for_streaming == other.optimized_for_streaming
|
||||
return false unless @part == other.part
|
||||
return false unless @video_codec == other.video_codec
|
||||
return false unless @video_frame_rate == other.video_frame_rate
|
||||
return false unless @video_profile == other.video_profile
|
||||
return false unless @video_resolution == other.video_resolution
|
||||
return false unless @width == other.width
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user