mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-07 12:47:45 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.529.1
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -40,6 +40,19 @@ module PlexRubySDK
|
||||
@subtitle_mode = subtitle_mode
|
||||
@thumb = thumb
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @auto_select_audio == other.auto_select_audio
|
||||
return false unless @default_audio_language == other.default_audio_language
|
||||
return false unless @default_subtitle_language == other.default_subtitle_language
|
||||
return false unless @id == other.id
|
||||
return false unless @key == other.key
|
||||
return false unless @name == other.name
|
||||
return false unless @subtitle_mode == other.subtitle_mode
|
||||
return false unless @thumb == other.thumb
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -22,6 +22,13 @@ module PlexRubySDK
|
||||
@id = id
|
||||
@key = key
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @id == other.id
|
||||
return false unless @key == other.key
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -40,6 +40,19 @@ module PlexRubySDK
|
||||
@user_id = user_id
|
||||
@uuid = uuid
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @cancellable == other.cancellable
|
||||
return false unless @context == other.context
|
||||
return false unless @progress == other.progress
|
||||
return false unless @subtitle == other.subtitle
|
||||
return false unless @title == other.title
|
||||
return false unless @type == other.type
|
||||
return false unless @user_id == other.user_id
|
||||
return false unless @uuid == other.uuid
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -28,6 +28,15 @@ module PlexRubySDK
|
||||
@metadata = metadata
|
||||
@size = size
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @leaf_count_added == other.leaf_count_added
|
||||
return false unless @leaf_count_requested == other.leaf_count_requested
|
||||
return false unless @metadata == other.metadata
|
||||
return false unless @size == other.size
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -55,6 +55,24 @@ module PlexRubySDK
|
||||
@type = type
|
||||
@updated_at = updated_at
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @added_at == other.added_at
|
||||
return false unless @composite == other.composite
|
||||
return false unless @duration == other.duration
|
||||
return false unless @guid == other.guid
|
||||
return false unless @key == other.key
|
||||
return false unless @leaf_count == other.leaf_count
|
||||
return false unless @playlist_type == other.playlist_type
|
||||
return false unless @rating_key == other.rating_key
|
||||
return false unless @smart == other.smart
|
||||
return false unless @summary == other.summary
|
||||
return false unless @title == other.title
|
||||
return false unless @type == other.type
|
||||
return false unless @updated_at == other.updated_at
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@uri = uri
|
||||
@play_queue_id = play_queue_id
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @playlist_id == other.playlist_id
|
||||
return false unless @uri == other.uri
|
||||
return false unless @play_queue_id == other.play_queue_id
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -34,6 +34,17 @@ module PlexRubySDK
|
||||
@object = object
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @content_type == other.content_type
|
||||
return false unless @raw_response == other.raw_response
|
||||
return false unless @status_code == other.status_code
|
||||
return false unless @bad_request == other.bad_request
|
||||
return false unless @object == other.object
|
||||
return false unless @unauthorized == other.unauthorized
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(media_container: nil)
|
||||
@media_container = media_container
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @media_container == other.media_container
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -22,6 +22,13 @@ module PlexRubySDK
|
||||
@skip = skip
|
||||
@tonight = tonight
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @skip == other.skip
|
||||
return false unless @tonight == other.tonight
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -31,6 +31,16 @@ module PlexRubySDK
|
||||
@bad_request = bad_request
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @content_type == other.content_type
|
||||
return false unless @raw_response == other.raw_response
|
||||
return false unless @status_code == other.status_code
|
||||
return false unless @bad_request == other.bad_request
|
||||
return false unless @unauthorized == other.unauthorized
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,13 @@ module PlexRubySDK
|
||||
@internal_payment_method = internal_payment_method
|
||||
@payment_method_id = payment_method_id
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @internal_payment_method == other.internal_payment_method
|
||||
return false unless @payment_method_id == other.payment_method_id
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -34,6 +34,17 @@ module PlexRubySDK
|
||||
@schedule_randomized = schedule_randomized
|
||||
@title = title
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @description == other.description
|
||||
return false unless @enabled == other.enabled
|
||||
return false unless @interval == other.interval
|
||||
return false unless @name == other.name
|
||||
return false unless @schedule_randomized == other.schedule_randomized
|
||||
return false unless @title == other.title
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(butler_task: nil)
|
||||
@butler_task = butler_task
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @butler_task == other.butler_task
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(activity_uuid: nil)
|
||||
@activity_uuid = activity_uuid
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @activity_uuid == other.activity_uuid
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -31,6 +31,16 @@ module PlexRubySDK
|
||||
@bad_request = bad_request
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @content_type == other.content_type
|
||||
return false unless @raw_response == other.raw_response
|
||||
return false unless @status_code == other.status_code
|
||||
return false unless @bad_request == other.bad_request
|
||||
return false unless @unauthorized == other.unauthorized
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(download: nil)
|
||||
@download = download
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @download == other.download
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -31,6 +31,16 @@ module PlexRubySDK
|
||||
@bad_request = bad_request
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @content_type == other.content_type
|
||||
return false unless @raw_response == other.raw_response
|
||||
return false unless @status_code == other.status_code
|
||||
return false unless @bad_request == other.bad_request
|
||||
return false unless @unauthorized == other.unauthorized
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(playlist_id: nil)
|
||||
@playlist_id = playlist_id
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @playlist_id == other.playlist_id
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -31,6 +31,16 @@ module PlexRubySDK
|
||||
@bad_request = bad_request
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @content_type == other.content_type
|
||||
return false unless @raw_response == other.raw_response
|
||||
return false unless @status_code == other.status_code
|
||||
return false unless @bad_request == other.bad_request
|
||||
return false unless @unauthorized == other.unauthorized
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(tag: nil)
|
||||
@tag = tag
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @tag == other.tag
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -40,6 +40,18 @@ module PlexRubySDK
|
||||
@relay = relay
|
||||
@uri = uri
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @address == other.address
|
||||
return false unless @i_pv6 == other.i_pv6
|
||||
return false unless @local == other.local
|
||||
return false unless @port == other.port
|
||||
return false unless @protocol == other.protocol
|
||||
return false unless @relay == other.relay
|
||||
return false unless @uri == other.uri
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(library_section_id: nil)
|
||||
@library_section_id = library_section_id
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @library_section_id == other.library_section_id
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@tag = tag
|
||||
@filter = filter
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @id == other.id
|
||||
return false unless @tag == other.tag
|
||||
return false unless @filter == other.filter
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -22,6 +22,13 @@ module PlexRubySDK
|
||||
@metadata = metadata
|
||||
@size = size
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @metadata == other.metadata
|
||||
return false unless @size == other.size
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -64,6 +64,27 @@ module PlexRubySDK
|
||||
@updated_at = updated_at
|
||||
@view_count = view_count
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @added_at == other.added_at
|
||||
return false unless @composite == other.composite
|
||||
return false unless @duration == other.duration
|
||||
return false unless @guid == other.guid
|
||||
return false unless @icon == other.icon
|
||||
return false unless @key == other.key
|
||||
return false unless @last_viewed_at == other.last_viewed_at
|
||||
return false unless @leaf_count == other.leaf_count
|
||||
return false unless @playlist_type == other.playlist_type
|
||||
return false unless @rating_key == other.rating_key
|
||||
return false unless @smart == other.smart
|
||||
return false unless @summary == other.summary
|
||||
return false unless @title == other.title
|
||||
return false unless @type == other.type
|
||||
return false unless @updated_at == other.updated_at
|
||||
return false unless @view_count == other.view_count
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -31,6 +31,16 @@ module PlexRubySDK
|
||||
@uri = uri
|
||||
@play_queue_id = play_queue_id
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @smart == other.smart
|
||||
return false unless @title == other.title
|
||||
return false unless @type == other.type
|
||||
return false unless @uri == other.uri
|
||||
return false unless @play_queue_id == other.play_queue_id
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -34,6 +34,17 @@ module PlexRubySDK
|
||||
@object = object
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @content_type == other.content_type
|
||||
return false unless @raw_response == other.raw_response
|
||||
return false unless @status_code == other.status_code
|
||||
return false unless @bad_request == other.bad_request
|
||||
return false unless @object == other.object
|
||||
return false unless @unauthorized == other.unauthorized
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(media_container: nil)
|
||||
@media_container = media_container
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @media_container == other.media_container
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -21,6 +21,12 @@ module PlexRubySDK
|
||||
def initialize(section_key: nil)
|
||||
@section_key = section_key
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @section_key == other.section_key
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -31,6 +31,16 @@ module PlexRubySDK
|
||||
@bad_request = bad_request
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @content_type == other.content_type
|
||||
return false unless @raw_response == other.raw_response
|
||||
return false unless @status_code == other.status_code
|
||||
return false unless @bad_request == other.bad_request
|
||||
return false unless @unauthorized == other.unauthorized
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(playlist_id: nil)
|
||||
@playlist_id = playlist_id
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @playlist_id == other.playlist_id
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -31,6 +31,16 @@ module PlexRubySDK
|
||||
@bad_request = bad_request
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @content_type == other.content_type
|
||||
return false unless @raw_response == other.raw_response
|
||||
return false unless @status_code == other.status_code
|
||||
return false unless @bad_request == other.bad_request
|
||||
return false unless @unauthorized == other.unauthorized
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -31,6 +31,16 @@ module PlexRubySDK
|
||||
@name = name
|
||||
@platform = platform
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @client_identifier == other.client_identifier
|
||||
return false unless @created_at == other.created_at
|
||||
return false unless @id == other.id
|
||||
return false unless @name == other.name
|
||||
return false unless @platform == other.platform
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(tag: nil)
|
||||
@tag = tag
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @tag == other.tag
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@key = key
|
||||
@title = title
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @count == other.count
|
||||
return false unless @key == other.key
|
||||
return false unless @title == other.title
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -31,6 +31,16 @@ module PlexRubySDK
|
||||
@bad_request = bad_request
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @content_type == other.content_type
|
||||
return false unless @raw_response == other.raw_response
|
||||
return false unless @status_code == other.status_code
|
||||
return false unless @bad_request == other.bad_request
|
||||
return false unless @unauthorized == other.unauthorized
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -37,6 +37,18 @@ module PlexRubySDK
|
||||
@scrobble_key = scrobble_key
|
||||
@unscrobble_key = unscrobble_key
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @type == other.type
|
||||
return false unless @action == other.action
|
||||
return false unless @directory == other.directory
|
||||
return false unless @flavor == other.flavor
|
||||
return false unless @key == other.key
|
||||
return false unless @scrobble_key == other.scrobble_key
|
||||
return false unless @unscrobble_key == other.unscrobble_key
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -28,6 +28,15 @@ module PlexRubySDK
|
||||
@type = type
|
||||
@sub_type = sub_type
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @key == other.key
|
||||
return false unless @title == other.title
|
||||
return false unless @type == other.type
|
||||
return false unless @sub_type == other.sub_type
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -22,6 +22,13 @@ module PlexRubySDK
|
||||
@operator = operator
|
||||
@type = type
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @operator == other.operator
|
||||
return false unless @type == other.type
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -55,6 +55,23 @@ module PlexRubySDK
|
||||
@username = username
|
||||
@uuid = uuid
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @email == other.email
|
||||
return false unless @friendly_name == other.friendly_name
|
||||
return false unless @home == other.home
|
||||
return false unless @id == other.id
|
||||
return false unless @restricted == other.restricted
|
||||
return false unless @shared_servers == other.shared_servers
|
||||
return false unless @shared_sources == other.shared_sources
|
||||
return false unless @status == other.status
|
||||
return false unless @thumb == other.thumb
|
||||
return false unless @title == other.title
|
||||
return false unless @username == other.username
|
||||
return false unless @uuid == other.uuid
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -26,6 +26,14 @@ module PlexRubySDK
|
||||
@id = id
|
||||
@tag = tag
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @filter == other.filter
|
||||
return false unless @id == other.id
|
||||
return false unless @tag == other.tag
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -52,6 +52,22 @@ module PlexRubySDK
|
||||
@subdivisions = subdivisions
|
||||
@time_zone = time_zone
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @city == other.city
|
||||
return false unless @code == other.code
|
||||
return false unless @continent_code == other.continent_code
|
||||
return false unless @coordinates == other.coordinates
|
||||
return false unless @country == other.country
|
||||
return false unless @european_union_member == other.european_union_member
|
||||
return false unless @in_privacy_restricted_country == other.in_privacy_restricted_country
|
||||
return false unless @in_privacy_restricted_region == other.in_privacy_restricted_region
|
||||
return false unless @postal_code == other.postal_code
|
||||
return false unless @subdivisions == other.subdivisions
|
||||
return false unless @time_zone == other.time_zone
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -28,6 +28,15 @@ module PlexRubySDK
|
||||
@thumb = thumb
|
||||
@title = title
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @fast_key == other.fast_key
|
||||
return false unless @key == other.key
|
||||
return false unless @thumb == other.thumb
|
||||
return false unless @title == other.title
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -55,6 +55,24 @@ module PlexRubySDK
|
||||
@view_mode = view_mode
|
||||
@directory = directory
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @allow_sync == other.allow_sync
|
||||
return false unless @art == other.art
|
||||
return false unless @identifier == other.identifier
|
||||
return false unless @media_tag_prefix == other.media_tag_prefix
|
||||
return false unless @media_tag_version == other.media_tag_version
|
||||
return false unless @nocache == other.nocache
|
||||
return false unless @size == other.size
|
||||
return false unless @thumb == other.thumb
|
||||
return false unless @title1 == other.title1
|
||||
return false unless @title2 == other.title2
|
||||
return false unless @view_group == other.view_group
|
||||
return false unless @view_mode == other.view_mode
|
||||
return false unless @directory == other.directory
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -30,6 +30,13 @@ module PlexRubySDK
|
||||
@section_key = section_key
|
||||
@type = type
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @section_key == other.section_key
|
||||
return false unless @type == other.type
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -34,6 +34,17 @@ module PlexRubySDK
|
||||
@object = object
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @content_type == other.content_type
|
||||
return false unless @raw_response == other.raw_response
|
||||
return false unless @status_code == other.status_code
|
||||
return false unless @bad_request == other.bad_request
|
||||
return false unless @object == other.object
|
||||
return false unless @unauthorized == other.unauthorized
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(media_container: nil)
|
||||
@media_container = media_container
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @media_container == other.media_container
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -11,59 +11,58 @@ module PlexRubySDK
|
||||
class GetAllLibrariesDirectory < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
# The Plex agent used to match and retrieve media metadata.
|
||||
field :agent, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('agent') } }
|
||||
|
||||
# Indicates whether syncing is allowed.
|
||||
field :allow_sync, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('allowSync') } }
|
||||
|
||||
# URL for the background artwork of the media container.
|
||||
field :art, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('art') } }
|
||||
|
||||
# The relative path to the composite media item.
|
||||
field :composite, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('composite') } }
|
||||
|
||||
# UNKNOWN
|
||||
field :content, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('content') } }
|
||||
# Unix epoch datetime in seconds
|
||||
# The number of seconds since the content was last changed relative to now.
|
||||
field :content_changed_at, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('contentChangedAt') } }
|
||||
# Unix epoch datetime in seconds
|
||||
field :created_at, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('createdAt') } }
|
||||
|
||||
# UNKNOWN
|
||||
field :directory, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('directory') } }
|
||||
|
||||
# UNKNOWN
|
||||
field :filters, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filters') } }
|
||||
|
||||
field :hidden, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hidden') } }
|
||||
|
||||
field :hidden, ::PlexRubySDK::Operations::Hidden, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hidden'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::Hidden, false) } }
|
||||
# The library key representing the unique identifier
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
# The Plex library language that has been set
|
||||
field :language, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('language') } }
|
||||
|
||||
field :location, T::Array[::PlexRubySDK::Operations::GetAllLibrariesLocation], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Location') } }
|
||||
|
||||
# Indicates whether the library is currently being refreshed or updated
|
||||
field :refreshing, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('refreshing') } }
|
||||
# Unix epoch datetime in seconds
|
||||
field :scanned_at, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('scannedAt') } }
|
||||
|
||||
# UNKNOWN
|
||||
field :scanner, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('scanner') } }
|
||||
|
||||
# URL for the thumbnail image of the media container.
|
||||
field :thumb, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
|
||||
# The title of the library
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
field :type, ::PlexRubySDK::Operations::GetAllLibrariesType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::GetAllLibrariesType, false) } }
|
||||
# Unix epoch datetime in seconds
|
||||
field :updated_at, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('updatedAt') } }
|
||||
|
||||
# The universally unique identifier for the library.
|
||||
field :uuid, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('uuid') } }
|
||||
|
||||
field :created_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('createdAt') } }
|
||||
|
||||
sig { params(agent: ::String, allow_sync: T::Boolean, art: ::String, composite: ::String, content: T::Boolean, content_changed_at: ::Integer, created_at: ::Integer, directory: T::Boolean, filters: T::Boolean, hidden: ::Integer, key: ::String, language: ::String, location: T::Array[::PlexRubySDK::Operations::GetAllLibrariesLocation], refreshing: T::Boolean, scanned_at: ::Integer, scanner: ::String, thumb: ::String, title: ::String, type: ::String, updated_at: ::Integer, uuid: ::String).void }
|
||||
def initialize(agent: nil, allow_sync: nil, art: nil, composite: nil, content: nil, content_changed_at: nil, created_at: nil, directory: nil, filters: nil, hidden: nil, key: nil, language: nil, location: nil, refreshing: nil, scanned_at: nil, scanner: nil, thumb: nil, title: nil, type: nil, updated_at: nil, uuid: nil)
|
||||
|
||||
sig { params(agent: ::String, allow_sync: T::Boolean, art: ::String, composite: ::String, content: T::Boolean, content_changed_at: ::Integer, directory: T::Boolean, filters: T::Boolean, hidden: ::PlexRubySDK::Operations::Hidden, key: ::String, language: ::String, location: T::Array[::PlexRubySDK::Operations::GetAllLibrariesLocation], refreshing: T::Boolean, scanned_at: ::Integer, scanner: ::String, thumb: ::String, title: ::String, type: ::PlexRubySDK::Operations::GetAllLibrariesType, updated_at: ::Integer, uuid: ::String, created_at: T.nilable(::Integer)).void }
|
||||
def initialize(agent: nil, allow_sync: nil, art: nil, composite: nil, content: nil, content_changed_at: nil, directory: nil, filters: nil, hidden: nil, key: nil, language: nil, location: nil, refreshing: nil, scanned_at: nil, scanner: nil, thumb: nil, title: nil, type: nil, updated_at: nil, uuid: nil, created_at: nil)
|
||||
@agent = agent
|
||||
@allow_sync = allow_sync
|
||||
@art = art
|
||||
@composite = composite
|
||||
@content = content
|
||||
@content_changed_at = content_changed_at
|
||||
@created_at = created_at
|
||||
@directory = directory
|
||||
@filters = filters
|
||||
@hidden = hidden
|
||||
@@ -78,6 +77,33 @@ module PlexRubySDK
|
||||
@type = type
|
||||
@updated_at = updated_at
|
||||
@uuid = uuid
|
||||
@created_at = created_at
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @agent == other.agent
|
||||
return false unless @allow_sync == other.allow_sync
|
||||
return false unless @art == other.art
|
||||
return false unless @composite == other.composite
|
||||
return false unless @content == other.content
|
||||
return false unless @content_changed_at == other.content_changed_at
|
||||
return false unless @directory == other.directory
|
||||
return false unless @filters == other.filters
|
||||
return false unless @hidden == other.hidden
|
||||
return false unless @key == other.key
|
||||
return false unless @language == other.language
|
||||
return false unless @location == other.location
|
||||
return false unless @refreshing == other.refreshing
|
||||
return false unless @scanned_at == other.scanned_at
|
||||
return false unless @scanner == other.scanner
|
||||
return false unless @thumb == other.thumb
|
||||
return false unless @title == other.title
|
||||
return false unless @type == other.type
|
||||
return false unless @updated_at == other.updated_at
|
||||
return false unless @uuid == other.uuid
|
||||
return false unless @created_at == other.created_at
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,6 +25,14 @@ module PlexRubySDK
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @code == other.code
|
||||
return false unless @message == other.message
|
||||
return false unless @status == other.status
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -11,9 +11,9 @@ module PlexRubySDK
|
||||
class GetAllLibrariesLocation < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
# The ID of the location.
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
|
||||
# The path to the media item.
|
||||
field :path, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('path') } }
|
||||
|
||||
|
||||
@@ -22,6 +22,13 @@ module PlexRubySDK
|
||||
@id = id
|
||||
@path = path
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @id == other.id
|
||||
return false unless @path == other.path
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -11,22 +11,31 @@ module PlexRubySDK
|
||||
class GetAllLibrariesMediaContainer < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
# Indicates whether syncing is allowed.
|
||||
field :allow_sync, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('allowSync') } }
|
||||
|
||||
field :directory, T::Array[::PlexRubySDK::Operations::GetAllLibrariesDirectory], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Directory') } }
|
||||
|
||||
# Number of media items returned in this response.
|
||||
field :size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
|
||||
# The primary title of the media container.
|
||||
field :title1, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title1') } }
|
||||
|
||||
field :directory, T.nilable(T::Array[::PlexRubySDK::Operations::GetAllLibrariesDirectory]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Directory') } }
|
||||
|
||||
sig { params(allow_sync: T::Boolean, directory: T::Array[::PlexRubySDK::Operations::GetAllLibrariesDirectory], size: ::Integer, title1: ::String).void }
|
||||
def initialize(allow_sync: nil, directory: nil, size: nil, title1: nil)
|
||||
|
||||
sig { params(allow_sync: T::Boolean, size: ::Integer, title1: ::String, directory: T.nilable(T::Array[::PlexRubySDK::Operations::GetAllLibrariesDirectory])).void }
|
||||
def initialize(allow_sync: nil, size: nil, title1: nil, directory: nil)
|
||||
@allow_sync = allow_sync
|
||||
@directory = directory
|
||||
@size = size
|
||||
@title1 = title1
|
||||
@directory = directory
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @allow_sync == other.allow_sync
|
||||
return false unless @size == other.size
|
||||
return false unless @title1 == other.title1
|
||||
return false unless @directory == other.directory
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -34,6 +34,17 @@ module PlexRubySDK
|
||||
@object = object
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @content_type == other.content_type
|
||||
return false unless @raw_response == other.raw_response
|
||||
return false unless @status_code == other.status_code
|
||||
return false unless @bad_request == other.bad_request
|
||||
return false unless @object == other.object
|
||||
return false unless @unauthorized == other.unauthorized
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -12,13 +12,19 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :media_container, ::PlexRubySDK::Operations::GetAllLibrariesMediaContainer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('MediaContainer') } }
|
||||
field :media_container, T.nilable(::PlexRubySDK::Operations::GetAllLibrariesMediaContainer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('MediaContainer') } }
|
||||
|
||||
|
||||
sig { params(media_container: ::PlexRubySDK::Operations::GetAllLibrariesMediaContainer).void }
|
||||
sig { params(media_container: T.nilable(::PlexRubySDK::Operations::GetAllLibrariesMediaContainer)).void }
|
||||
def initialize(media_container: nil)
|
||||
@media_container = media_container
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @media_container == other.media_container
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# GetAllLibrariesType - The library type
|
||||
class GetAllLibrariesType < T::Enum
|
||||
enums do
|
||||
MOVIE = new('movie')
|
||||
TV_SHOW = new('show')
|
||||
SEASON = new('season')
|
||||
EPISODE = new('episode')
|
||||
ARTIST = new('artist')
|
||||
ALBUM = new('album')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,12 @@ module PlexRubySDK
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @errors == other.errors
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user