mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-07 04:20:54 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.531.4
This commit is contained in:
@@ -5,53 +5,56 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class Account < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class Account
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :auto_select_audio, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('autoSelectAudio') } }
|
||||
field :auto_select_audio, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('autoSelectAudio') } }
|
||||
|
||||
field :default_audio_language, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('defaultAudioLanguage') } }
|
||||
field :default_audio_language, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('defaultAudioLanguage') } }
|
||||
|
||||
field :default_subtitle_language, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('defaultSubtitleLanguage') } }
|
||||
field :default_subtitle_language, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('defaultSubtitleLanguage') } }
|
||||
|
||||
field :id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
field :id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
|
||||
field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('name') } }
|
||||
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('name') } }
|
||||
|
||||
field :subtitle_mode, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subtitleMode') } }
|
||||
field :subtitle_mode, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subtitleMode') } }
|
||||
|
||||
field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
|
||||
|
||||
sig { params(auto_select_audio: T.nilable(T::Boolean), default_audio_language: T.nilable(::String), default_subtitle_language: T.nilable(::String), id: T.nilable(::Integer), key: T.nilable(::String), name: T.nilable(::String), subtitle_mode: T.nilable(::Integer), thumb: T.nilable(::String)).void }
|
||||
def initialize(auto_select_audio: nil, default_audio_language: nil, default_subtitle_language: nil, id: nil, key: nil, name: nil, subtitle_mode: nil, thumb: nil)
|
||||
@auto_select_audio = auto_select_audio
|
||||
@default_audio_language = default_audio_language
|
||||
@default_subtitle_language = default_subtitle_language
|
||||
@id = id
|
||||
@key = key
|
||||
@name = name
|
||||
@subtitle_mode = subtitle_mode
|
||||
@thumb = thumb
|
||||
end
|
||||
sig { params(auto_select_audio: T.nilable(T::Boolean), default_audio_language: T.nilable(::String), default_subtitle_language: T.nilable(::String), id: T.nilable(::Integer), key: T.nilable(::String), name: T.nilable(::String), subtitle_mode: T.nilable(::Integer), thumb: T.nilable(::String)).void }
|
||||
def initialize(auto_select_audio: nil, default_audio_language: nil, default_subtitle_language: nil, id: nil, key: nil, name: nil, subtitle_mode: nil, thumb: nil)
|
||||
@auto_select_audio = auto_select_audio
|
||||
@default_audio_language = default_audio_language
|
||||
@default_subtitle_language = default_subtitle_language
|
||||
@id = id
|
||||
@key = key
|
||||
@name = name
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,29 +5,32 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class Action < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class Action
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :id, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
field :id, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
|
||||
sig { params(id: ::String, key: ::String).void }
|
||||
def initialize(id: nil, key: nil)
|
||||
@id = id
|
||||
@key = key
|
||||
end
|
||||
sig { params(id: ::String, key: ::String).void }
|
||||
def initialize(id: nil, key: nil)
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,14 +5,16 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# ActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
#
|
||||
class ActiveDirection < T::Enum
|
||||
enums do
|
||||
ASCENDING = new('asc')
|
||||
DESCENDING = new('desc')
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# ActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
#
|
||||
class ActiveDirection < T::Enum
|
||||
enums do
|
||||
ASCENDING = new('asc')
|
||||
DESCENDING = new('desc')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,53 +5,56 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class Activity < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class Activity
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :cancellable, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('cancellable') } }
|
||||
field :cancellable, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('cancellable') } }
|
||||
|
||||
field :context, T.nilable(::PlexRubySDK::Operations::Context), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Context') } }
|
||||
field :context, T.nilable(Models::Operations::Context), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Context') } }
|
||||
|
||||
field :progress, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('progress') } }
|
||||
field :progress, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('progress') } }
|
||||
|
||||
field :subtitle, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subtitle') } }
|
||||
field :subtitle, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subtitle') } }
|
||||
|
||||
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
|
||||
field :type, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
field :type, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
|
||||
field :user_id, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('userID') } }
|
||||
field :user_id, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('userID') } }
|
||||
|
||||
field :uuid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('uuid') } }
|
||||
field :uuid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('uuid') } }
|
||||
|
||||
|
||||
sig { params(cancellable: T.nilable(T::Boolean), context: T.nilable(::PlexRubySDK::Operations::Context), progress: T.nilable(::Float), subtitle: T.nilable(::String), title: T.nilable(::String), type: T.nilable(::String), user_id: T.nilable(::Float), uuid: T.nilable(::String)).void }
|
||||
def initialize(cancellable: nil, context: nil, progress: nil, subtitle: nil, title: nil, type: nil, user_id: nil, uuid: nil)
|
||||
@cancellable = cancellable
|
||||
@context = context
|
||||
@progress = progress
|
||||
@subtitle = subtitle
|
||||
@title = title
|
||||
@type = type
|
||||
@user_id = user_id
|
||||
@uuid = uuid
|
||||
end
|
||||
sig { params(cancellable: T.nilable(T::Boolean), context: T.nilable(Models::Operations::Context), progress: T.nilable(::Float), subtitle: T.nilable(::String), title: T.nilable(::String), type: T.nilable(::String), user_id: T.nilable(::Float), uuid: T.nilable(::String)).void }
|
||||
def initialize(cancellable: nil, context: nil, progress: nil, subtitle: nil, title: nil, type: nil, user_id: nil, uuid: nil)
|
||||
@cancellable = cancellable
|
||||
@context = context
|
||||
@progress = progress
|
||||
@subtitle = subtitle
|
||||
@title = title
|
||||
@type = type
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
class AddPlaylistContentsBadRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::AddPlaylistContentsErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::AddPlaylistContentsErrors])).void }
|
||||
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
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class AddPlaylistContentsErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -5,37 +5,40 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class AddPlaylistContentsMediaContainer < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class AddPlaylistContentsMediaContainer
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :leaf_count_added, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCountAdded') } }
|
||||
field :leaf_count_added, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCountAdded') } }
|
||||
|
||||
field :leaf_count_requested, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCountRequested') } }
|
||||
field :leaf_count_requested, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCountRequested') } }
|
||||
|
||||
field :metadata, T.nilable(T::Array[::PlexRubySDK::Operations::AddPlaylistContentsMetadata]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Metadata') } }
|
||||
field :metadata, T.nilable(T::Array[Models::Operations::AddPlaylistContentsMetadata]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Metadata') } }
|
||||
|
||||
field :size, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
field :size, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
|
||||
|
||||
sig { params(leaf_count_added: T.nilable(::Integer), leaf_count_requested: T.nilable(::Integer), metadata: T.nilable(T::Array[::PlexRubySDK::Operations::AddPlaylistContentsMetadata]), size: T.nilable(::Integer)).void }
|
||||
def initialize(leaf_count_added: nil, leaf_count_requested: nil, metadata: nil, size: nil)
|
||||
@leaf_count_added = leaf_count_added
|
||||
@leaf_count_requested = leaf_count_requested
|
||||
@metadata = metadata
|
||||
@size = size
|
||||
end
|
||||
sig { params(leaf_count_added: T.nilable(::Integer), leaf_count_requested: T.nilable(::Integer), metadata: T.nilable(T::Array[Models::Operations::AddPlaylistContentsMetadata]), size: T.nilable(::Integer)).void }
|
||||
def initialize(leaf_count_added: nil, leaf_count_requested: nil, metadata: nil, size: nil)
|
||||
@leaf_count_added = leaf_count_added
|
||||
@leaf_count_requested = leaf_count_requested
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,73 +5,76 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class AddPlaylistContentsMetadata < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class AddPlaylistContentsMetadata
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :added_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('addedAt') } }
|
||||
field :added_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('addedAt') } }
|
||||
|
||||
field :composite, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('composite') } }
|
||||
field :composite, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('composite') } }
|
||||
|
||||
field :duration, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
||||
field :duration, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
||||
|
||||
field :guid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('guid') } }
|
||||
field :guid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('guid') } }
|
||||
|
||||
field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
field :leaf_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCount') } }
|
||||
field :leaf_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCount') } }
|
||||
|
||||
field :playlist_type, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('playlistType') } }
|
||||
field :playlist_type, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('playlistType') } }
|
||||
|
||||
field :rating_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('ratingKey') } }
|
||||
field :rating_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('ratingKey') } }
|
||||
|
||||
field :smart, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('smart') } }
|
||||
field :smart, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('smart') } }
|
||||
|
||||
field :summary, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('summary') } }
|
||||
field :summary, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('summary') } }
|
||||
|
||||
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
|
||||
field :type, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
field :type, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
|
||||
field :updated_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('updatedAt') } }
|
||||
field :updated_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('updatedAt') } }
|
||||
|
||||
|
||||
sig { params(added_at: T.nilable(::Integer), composite: T.nilable(::String), duration: T.nilable(::Integer), guid: T.nilable(::String), key: T.nilable(::String), leaf_count: T.nilable(::Integer), playlist_type: T.nilable(::String), rating_key: T.nilable(::String), smart: T.nilable(T::Boolean), summary: T.nilable(::String), title: T.nilable(::String), type: T.nilable(::String), updated_at: T.nilable(::Integer)).void }
|
||||
def initialize(added_at: nil, composite: nil, duration: nil, guid: nil, key: nil, leaf_count: nil, playlist_type: nil, rating_key: nil, smart: nil, summary: nil, title: nil, type: nil, updated_at: nil)
|
||||
@added_at = added_at
|
||||
@composite = composite
|
||||
@duration = duration
|
||||
@guid = guid
|
||||
@key = key
|
||||
@leaf_count = leaf_count
|
||||
@playlist_type = playlist_type
|
||||
@rating_key = rating_key
|
||||
@smart = smart
|
||||
@summary = summary
|
||||
@title = title
|
||||
@type = type
|
||||
@updated_at = updated_at
|
||||
end
|
||||
sig { params(added_at: T.nilable(::Integer), composite: T.nilable(::String), duration: T.nilable(::Integer), guid: T.nilable(::String), key: T.nilable(::String), leaf_count: T.nilable(::Integer), playlist_type: T.nilable(::String), rating_key: T.nilable(::String), smart: T.nilable(T::Boolean), summary: T.nilable(::String), title: T.nilable(::String), type: T.nilable(::String), updated_at: T.nilable(::Integer)).void }
|
||||
def initialize(added_at: nil, composite: nil, duration: nil, guid: nil, key: nil, leaf_count: nil, playlist_type: nil, rating_key: nil, smart: nil, summary: nil, title: nil, type: nil, updated_at: nil)
|
||||
@added_at = added_at
|
||||
@composite = composite
|
||||
@duration = duration
|
||||
@guid = guid
|
||||
@key = key
|
||||
@leaf_count = leaf_count
|
||||
@playlist_type = playlist_type
|
||||
@rating_key = rating_key
|
||||
@smart = smart
|
||||
@summary = summary
|
||||
@title = title
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class AddPlaylistContentsPlaylistsErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -5,33 +5,36 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class AddPlaylistContentsRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class AddPlaylistContentsRequest
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# the ID of the playlist
|
||||
field :playlist_id, ::Float, { 'path_param': { 'field_name': 'playlistID', 'style': 'simple', 'explode': false } }
|
||||
# the content URI for the playlist
|
||||
field :uri, ::String, { 'query_param': { 'field_name': 'uri', 'style': 'form', 'explode': true } }
|
||||
# the play queue to add to a playlist
|
||||
field :play_queue_id, T.nilable(::Float), { 'query_param': { 'field_name': 'playQueueID', 'style': 'form', 'explode': true } }
|
||||
# the ID of the playlist
|
||||
field :playlist_id, ::Float, { 'path_param': { 'field_name': 'playlistID', 'style': 'simple', 'explode': false } }
|
||||
# the content URI for the playlist
|
||||
field :uri, ::String, { 'query_param': { 'field_name': 'uri', 'style': 'form', 'explode': true } }
|
||||
# the play queue to add to a playlist
|
||||
field :play_queue_id, T.nilable(::Float), { 'query_param': { 'field_name': 'playQueueID', 'style': 'form', 'explode': true } }
|
||||
|
||||
|
||||
sig { params(playlist_id: ::Float, uri: ::String, play_queue_id: T.nilable(::Float)).void }
|
||||
def initialize(playlist_id: nil, uri: nil, play_queue_id: nil)
|
||||
@playlist_id = playlist_id
|
||||
@uri = uri
|
||||
@play_queue_id = play_queue_id
|
||||
end
|
||||
sig { params(playlist_id: ::Float, uri: ::String, play_queue_id: T.nilable(::Float)).void }
|
||||
def initialize(playlist_id: nil, uri: nil, play_queue_id: nil)
|
||||
@playlist_id = playlist_id
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,45 +5,40 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class AddPlaylistContentsResponse < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class AddPlaylistContentsResponse
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
field :bad_request, T.nilable(::PlexRubySDK::Operations::AddPlaylistContentsBadRequest)
|
||||
# Playlist Updated
|
||||
field :object, T.nilable(::PlexRubySDK::Operations::AddPlaylistContentsResponseBody)
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
field :unauthorized, T.nilable(::PlexRubySDK::Operations::AddPlaylistContentsUnauthorized)
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
# Playlist Updated
|
||||
field :object, T.nilable(Models::Operations::AddPlaylistContentsResponseBody)
|
||||
|
||||
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::PlexRubySDK::Operations::AddPlaylistContentsBadRequest), object: T.nilable(::PlexRubySDK::Operations::AddPlaylistContentsResponseBody), unauthorized: T.nilable(::PlexRubySDK::Operations::AddPlaylistContentsUnauthorized)).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, object: nil, unauthorized: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
@bad_request = bad_request
|
||||
@object = object
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, object: T.nilable(Models::Operations::AddPlaylistContentsResponseBody)).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil, object: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
@object = object
|
||||
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
|
||||
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 @object == other.object
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,25 +5,28 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Playlist Updated
|
||||
class AddPlaylistContentsResponseBody < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# Playlist Updated
|
||||
class AddPlaylistContentsResponseBody
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :media_container, T.nilable(::PlexRubySDK::Operations::AddPlaylistContentsMediaContainer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('MediaContainer') } }
|
||||
field :media_container, T.nilable(Models::Operations::AddPlaylistContentsMediaContainer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('MediaContainer') } }
|
||||
|
||||
|
||||
sig { params(media_container: T.nilable(::PlexRubySDK::Operations::AddPlaylistContentsMediaContainer)).void }
|
||||
def initialize(media_container: nil)
|
||||
@media_container = media_container
|
||||
end
|
||||
sig { params(media_container: T.nilable(Models::Operations::AddPlaylistContentsMediaContainer)).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
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @media_container == other.media_container
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
class AddPlaylistContentsUnauthorized < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::AddPlaylistContentsPlaylistsErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::AddPlaylistContentsPlaylistsErrors])).void }
|
||||
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
|
||||
@@ -5,16 +5,18 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
ALL_LIBRARIES_SERVERS = [
|
||||
'https://plex.tv/api'
|
||||
].freeze
|
||||
|
||||
# AllLibraries - Indicates if the user has access to all libraries.
|
||||
class AllLibraries < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
module Models
|
||||
module Operations
|
||||
ALL_LIBRARIES_SERVERS = [
|
||||
'https://plex.tv/api'
|
||||
].freeze
|
||||
|
||||
# AllLibraries - Indicates if the user has access to all libraries.
|
||||
class AllLibraries < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,16 +5,18 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
ALLOW_CAMERA_UPLOAD_SERVERS = [
|
||||
'https://plex.tv/api'
|
||||
].freeze
|
||||
|
||||
# AllowCameraUpload - Indicates if the user is allowed to upload from a camera.
|
||||
class AllowCameraUpload < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
module Models
|
||||
module Operations
|
||||
ALLOW_CAMERA_UPLOAD_SERVERS = [
|
||||
'https://plex.tv/api'
|
||||
].freeze
|
||||
|
||||
# AllowCameraUpload - Indicates if the user is allowed to upload from a camera.
|
||||
class AllowCameraUpload < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,16 +5,18 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
ALLOW_CHANNELS_SERVERS = [
|
||||
'https://plex.tv/api'
|
||||
].freeze
|
||||
|
||||
# AllowChannels - Indicates if the user has access to channels.
|
||||
class AllowChannels < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
module Models
|
||||
module Operations
|
||||
ALLOW_CHANNELS_SERVERS = [
|
||||
'https://plex.tv/api'
|
||||
].freeze
|
||||
|
||||
# AllowChannels - Indicates if the user has access to channels.
|
||||
class AllowChannels < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,16 +5,18 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
ALLOW_SUBTITLE_ADMIN_SERVERS = [
|
||||
'https://plex.tv/api'
|
||||
].freeze
|
||||
|
||||
# AllowSubtitleAdmin - Indicates if the user can manage subtitles.
|
||||
class AllowSubtitleAdmin < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
module Models
|
||||
module Operations
|
||||
ALLOW_SUBTITLE_ADMIN_SERVERS = [
|
||||
'https://plex.tv/api'
|
||||
].freeze
|
||||
|
||||
# AllowSubtitleAdmin - Indicates if the user can manage subtitles.
|
||||
class AllowSubtitleAdmin < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,16 +5,18 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
ALLOW_SYNC_SERVERS = [
|
||||
'https://plex.tv/api'
|
||||
].freeze
|
||||
|
||||
# AllowSync - Indicates if the user is allowed to sync media.
|
||||
class AllowSync < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
module Models
|
||||
module Operations
|
||||
ALLOW_SYNC_SERVERS = [
|
||||
'https://plex.tv/api'
|
||||
].freeze
|
||||
|
||||
# AllowSync - Indicates if the user is allowed to sync media.
|
||||
class AllowSync < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,16 +5,18 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
ALLOW_TUNERS_SERVERS = [
|
||||
'https://plex.tv/api'
|
||||
].freeze
|
||||
|
||||
# AllowTuners - Indicates if the user is allowed to use tuners.
|
||||
class AllowTuners < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
module Models
|
||||
module Operations
|
||||
ALLOW_TUNERS_SERVERS = [
|
||||
'https://plex.tv/api'
|
||||
].freeze
|
||||
|
||||
# AllowTuners - Indicates if the user is allowed to use tuners.
|
||||
class AllowTuners < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
class ApplyUpdatesBadRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::ApplyUpdatesErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::ApplyUpdatesErrors])).void }
|
||||
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
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class ApplyUpdatesErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -5,29 +5,32 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class ApplyUpdatesRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class ApplyUpdatesRequest
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# Indicate that the latest version should be marked as skipped. The [Release] entry for this version will have the `state` set to `skipped`.
|
||||
field :skip, T.nilable(::PlexRubySDK::Operations::Skip), { 'query_param': { 'field_name': 'skip', 'style': 'form', 'explode': true } }
|
||||
# Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install
|
||||
field :tonight, T.nilable(::PlexRubySDK::Operations::Tonight), { 'query_param': { 'field_name': 'tonight', 'style': 'form', 'explode': true } }
|
||||
# Indicate that the latest version should be marked as skipped. The [Release] entry for this version will have the `state` set to `skipped`.
|
||||
field :skip, T.nilable(Models::Operations::Skip), { 'query_param': { 'field_name': 'skip', 'style': 'form', 'explode': true } }
|
||||
# Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install
|
||||
field :tonight, T.nilable(Models::Operations::Tonight), { 'query_param': { 'field_name': 'tonight', 'style': 'form', 'explode': true } }
|
||||
|
||||
|
||||
sig { params(skip: T.nilable(::PlexRubySDK::Operations::Skip), tonight: T.nilable(::PlexRubySDK::Operations::Tonight)).void }
|
||||
def initialize(skip: nil, tonight: nil)
|
||||
@skip = skip
|
||||
@tonight = tonight
|
||||
end
|
||||
sig { params(skip: T.nilable(Models::Operations::Skip), tonight: T.nilable(Models::Operations::Tonight)).void }
|
||||
def initialize(skip: nil, tonight: nil)
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,41 +5,36 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class ApplyUpdatesResponse < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class ApplyUpdatesResponse
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
field :bad_request, T.nilable(::PlexRubySDK::Operations::ApplyUpdatesBadRequest)
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
field :unauthorized, T.nilable(::PlexRubySDK::Operations::ApplyUpdatesUnauthorized)
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
|
||||
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::PlexRubySDK::Operations::ApplyUpdatesBadRequest), unauthorized: T.nilable(::PlexRubySDK::Operations::ApplyUpdatesUnauthorized)).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, unauthorized: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
@bad_request = bad_request
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
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
|
||||
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
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
class ApplyUpdatesUnauthorized < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::ApplyUpdatesUpdaterErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::ApplyUpdatesUpdaterErrors])).void }
|
||||
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
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class ApplyUpdatesUpdaterErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -5,16 +5,18 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
AUTO_SELECT_SUBTITLE_SERVERS = [
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
class AutoSelectSubtitle < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
module Models
|
||||
module Operations
|
||||
AUTO_SELECT_SUBTITLE_SERVERS = [
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
class AutoSelectSubtitle < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,32 +5,35 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
BILLING_SERVERS = [
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
BILLING_SERVERS = [
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
class Billing < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class Billing
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :internal_payment_method, ::PlexRubySDK::Operations::InternalPaymentMethod, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('internalPaymentMethod') } }
|
||||
field :internal_payment_method, Models::Operations::InternalPaymentMethod, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('internalPaymentMethod') } }
|
||||
|
||||
field :payment_method_id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('paymentMethodId') } }
|
||||
field :payment_method_id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('paymentMethodId') } }
|
||||
|
||||
|
||||
sig { params(internal_payment_method: ::PlexRubySDK::Operations::InternalPaymentMethod, payment_method_id: ::Integer).void }
|
||||
def initialize(internal_payment_method: nil, payment_method_id: nil)
|
||||
@internal_payment_method = internal_payment_method
|
||||
@payment_method_id = payment_method_id
|
||||
end
|
||||
sig { params(internal_payment_method: Models::Operations::InternalPaymentMethod, payment_method_id: ::Integer).void }
|
||||
def initialize(internal_payment_method: nil, payment_method_id: nil)
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,45 +5,48 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class ButlerTask < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class ButlerTask
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('description') } }
|
||||
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('description') } }
|
||||
|
||||
field :enabled, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('enabled') } }
|
||||
field :enabled, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('enabled') } }
|
||||
|
||||
field :interval, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('interval') } }
|
||||
field :interval, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('interval') } }
|
||||
|
||||
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('name') } }
|
||||
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('name') } }
|
||||
|
||||
field :schedule_randomized, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('scheduleRandomized') } }
|
||||
field :schedule_randomized, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('scheduleRandomized') } }
|
||||
|
||||
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
|
||||
|
||||
sig { params(description: T.nilable(::String), enabled: T.nilable(T::Boolean), interval: T.nilable(::Float), name: T.nilable(::String), schedule_randomized: T.nilable(T::Boolean), title: T.nilable(::String)).void }
|
||||
def initialize(description: nil, enabled: nil, interval: nil, name: nil, schedule_randomized: nil, title: nil)
|
||||
@description = description
|
||||
@enabled = enabled
|
||||
@interval = interval
|
||||
@name = name
|
||||
@schedule_randomized = schedule_randomized
|
||||
@title = title
|
||||
end
|
||||
sig { params(description: T.nilable(::String), enabled: T.nilable(T::Boolean), interval: T.nilable(::Float), name: T.nilable(::String), schedule_randomized: T.nilable(T::Boolean), title: T.nilable(::String)).void }
|
||||
def initialize(description: nil, enabled: nil, interval: nil, name: nil, schedule_randomized: nil, title: nil)
|
||||
@description = description
|
||||
@enabled = enabled
|
||||
@interval = interval
|
||||
@name = name
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,25 +5,28 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class ButlerTasks < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class ButlerTasks
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :butler_task, T.nilable(T::Array[::PlexRubySDK::Operations::ButlerTask]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('ButlerTask') } }
|
||||
field :butler_task, T.nilable(T::Array[Models::Operations::ButlerTask]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('ButlerTask') } }
|
||||
|
||||
|
||||
sig { params(butler_task: T.nilable(T::Array[::PlexRubySDK::Operations::ButlerTask])).void }
|
||||
def initialize(butler_task: nil)
|
||||
@butler_task = butler_task
|
||||
end
|
||||
sig { params(butler_task: T.nilable(T::Array[Models::Operations::ButlerTask])).void }
|
||||
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
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @butler_task == other.butler_task
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class CancelServerActivitiesActivitiesErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
class CancelServerActivitiesBadRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::CancelServerActivitiesErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::CancelServerActivitiesErrors])).void }
|
||||
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
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class CancelServerActivitiesErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -5,25 +5,28 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class CancelServerActivitiesRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class CancelServerActivitiesRequest
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The UUID of the activity to cancel.
|
||||
field :activity_uuid, ::String, { 'path_param': { 'field_name': 'activityUUID', 'style': 'simple', 'explode': false } }
|
||||
# The UUID of the activity to cancel.
|
||||
field :activity_uuid, ::String, { 'path_param': { 'field_name': 'activityUUID', 'style': 'simple', 'explode': false } }
|
||||
|
||||
|
||||
sig { params(activity_uuid: ::String).void }
|
||||
def initialize(activity_uuid: nil)
|
||||
@activity_uuid = activity_uuid
|
||||
end
|
||||
sig { params(activity_uuid: ::String).void }
|
||||
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
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @activity_uuid == other.activity_uuid
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,41 +5,36 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class CancelServerActivitiesResponse < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class CancelServerActivitiesResponse
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
field :bad_request, T.nilable(::PlexRubySDK::Operations::CancelServerActivitiesBadRequest)
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
field :unauthorized, T.nilable(::PlexRubySDK::Operations::CancelServerActivitiesUnauthorized)
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
|
||||
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::PlexRubySDK::Operations::CancelServerActivitiesBadRequest), unauthorized: T.nilable(::PlexRubySDK::Operations::CancelServerActivitiesUnauthorized)).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, unauthorized: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
@bad_request = bad_request
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
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
|
||||
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
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
class CancelServerActivitiesUnauthorized < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::CancelServerActivitiesActivitiesErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::CancelServerActivitiesActivitiesErrors])).void }
|
||||
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
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
class CheckForUpdatesBadRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::CheckForUpdatesErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::CheckForUpdatesErrors])).void }
|
||||
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
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class CheckForUpdatesErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -5,25 +5,28 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class CheckForUpdatesRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class CheckForUpdatesRequest
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# Indicate that you want to start download any updates found.
|
||||
field :download, T.nilable(::PlexRubySDK::Operations::Download), { 'query_param': { 'field_name': 'download', 'style': 'form', 'explode': true } }
|
||||
# Indicate that you want to start download any updates found.
|
||||
field :download, T.nilable(Models::Operations::Download), { 'query_param': { 'field_name': 'download', 'style': 'form', 'explode': true } }
|
||||
|
||||
|
||||
sig { params(download: T.nilable(::PlexRubySDK::Operations::Download)).void }
|
||||
def initialize(download: nil)
|
||||
@download = download
|
||||
end
|
||||
sig { params(download: T.nilable(Models::Operations::Download)).void }
|
||||
def initialize(download: nil)
|
||||
@download = download
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @download == other.download
|
||||
true
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @download == other.download
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,41 +5,36 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class CheckForUpdatesResponse < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class CheckForUpdatesResponse
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
field :bad_request, T.nilable(::PlexRubySDK::Operations::CheckForUpdatesBadRequest)
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
field :unauthorized, T.nilable(::PlexRubySDK::Operations::CheckForUpdatesUnauthorized)
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
|
||||
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::PlexRubySDK::Operations::CheckForUpdatesBadRequest), unauthorized: T.nilable(::PlexRubySDK::Operations::CheckForUpdatesUnauthorized)).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, unauthorized: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
@bad_request = bad_request
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
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
|
||||
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
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
class CheckForUpdatesUnauthorized < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::CheckForUpdatesUpdaterErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::CheckForUpdatesUpdaterErrors])).void }
|
||||
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
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class CheckForUpdatesUpdaterErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
class ClearPlaylistContentsBadRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::ClearPlaylistContentsErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::ClearPlaylistContentsErrors])).void }
|
||||
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
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class ClearPlaylistContentsErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class ClearPlaylistContentsPlaylistsErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -5,25 +5,28 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class ClearPlaylistContentsRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class ClearPlaylistContentsRequest
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# the ID of the playlist
|
||||
field :playlist_id, ::Float, { 'path_param': { 'field_name': 'playlistID', 'style': 'simple', 'explode': false } }
|
||||
# the ID of the playlist
|
||||
field :playlist_id, ::Float, { 'path_param': { 'field_name': 'playlistID', 'style': 'simple', 'explode': false } }
|
||||
|
||||
|
||||
sig { params(playlist_id: ::Float).void }
|
||||
def initialize(playlist_id: nil)
|
||||
@playlist_id = playlist_id
|
||||
end
|
||||
sig { params(playlist_id: ::Float).void }
|
||||
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
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @playlist_id == other.playlist_id
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,41 +5,36 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class ClearPlaylistContentsResponse < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class ClearPlaylistContentsResponse
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
field :bad_request, T.nilable(::PlexRubySDK::Operations::ClearPlaylistContentsBadRequest)
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
field :unauthorized, T.nilable(::PlexRubySDK::Operations::ClearPlaylistContentsUnauthorized)
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
|
||||
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::PlexRubySDK::Operations::ClearPlaylistContentsBadRequest), unauthorized: T.nilable(::PlexRubySDK::Operations::ClearPlaylistContentsUnauthorized)).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, unauthorized: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
@bad_request = bad_request
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
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
|
||||
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
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
class ClearPlaylistContentsUnauthorized < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::ClearPlaylistContentsPlaylistsErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::ClearPlaylistContentsPlaylistsErrors])).void }
|
||||
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
|
||||
@@ -5,25 +5,28 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class Collection < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class Collection
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The user-made collection this media item belongs to
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# The user-made collection this media item belongs to
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
|
||||
|
||||
sig { params(tag: ::String).void }
|
||||
def initialize(tag: nil)
|
||||
@tag = tag
|
||||
end
|
||||
sig { params(tag: ::String).void }
|
||||
def initialize(tag: nil)
|
||||
@tag = tag
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @tag == other.tag
|
||||
true
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @tag == other.tag
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,52 +5,55 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
CONNECTIONS_SERVERS = [
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
CONNECTIONS_SERVERS = [
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
class Connections < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class Connections
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The (ip) address or domain name used for the connection
|
||||
field :address, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('address') } }
|
||||
# If the connection is using IPv6
|
||||
field :i_pv6, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('IPv6') } }
|
||||
# If the connection is local address
|
||||
field :local, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('local') } }
|
||||
# The port used for the connection
|
||||
field :port, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('port') } }
|
||||
# The protocol used for the connection (http, https, etc)
|
||||
field :protocol, ::PlexRubySDK::Operations::Protocol, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('protocol'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::Protocol, false) } }
|
||||
# If the connection is relayed through plex.direct
|
||||
field :relay, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('relay') } }
|
||||
# The full URI of the connection
|
||||
field :uri, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('uri') } }
|
||||
# The (ip) address or domain name used for the connection
|
||||
field :address, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('address') } }
|
||||
# If the connection is using IPv6
|
||||
field :i_pv6, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('IPv6') } }
|
||||
# If the connection is local address
|
||||
field :local, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('local') } }
|
||||
# The port used for the connection
|
||||
field :port, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('port') } }
|
||||
# The protocol used for the connection (http, https, etc)
|
||||
field :protocol, Models::Operations::Protocol, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('protocol'), 'decoder': Utils.enum_from_string(Models::Operations::Protocol, false) } }
|
||||
# If the connection is relayed through plex.direct
|
||||
field :relay, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('relay') } }
|
||||
# The full URI of the connection
|
||||
field :uri, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('uri') } }
|
||||
|
||||
|
||||
sig { params(address: ::String, i_pv6: T::Boolean, local: T::Boolean, port: ::Integer, protocol: ::PlexRubySDK::Operations::Protocol, relay: T::Boolean, uri: ::String).void }
|
||||
def initialize(address: nil, i_pv6: nil, local: nil, port: nil, protocol: nil, relay: nil, uri: nil)
|
||||
@address = address
|
||||
@i_pv6 = i_pv6
|
||||
@local = local
|
||||
@port = port
|
||||
@protocol = protocol
|
||||
@relay = relay
|
||||
@uri = uri
|
||||
end
|
||||
sig { params(address: ::String, i_pv6: T::Boolean, local: T::Boolean, port: ::Integer, protocol: Models::Operations::Protocol, relay: T::Boolean, uri: ::String).void }
|
||||
def initialize(address: nil, i_pv6: nil, local: nil, port: nil, protocol: nil, relay: nil, uri: nil)
|
||||
@address = address
|
||||
@i_pv6 = i_pv6
|
||||
@local = local
|
||||
@port = port
|
||||
@protocol = protocol
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,25 +5,28 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class Context < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class Context
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :library_section_id, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
||||
field :library_section_id, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
||||
|
||||
|
||||
sig { params(library_section_id: T.nilable(::String)).void }
|
||||
def initialize(library_section_id: nil)
|
||||
@library_section_id = library_section_id
|
||||
end
|
||||
sig { params(library_section_id: T.nilable(::String)).void }
|
||||
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
|
||||
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
|
||||
|
||||
@@ -5,33 +5,36 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# The filter query string for country media items.
|
||||
class Country < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# The filter query string for country media items.
|
||||
class Country
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The country of origin of this media item
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The country of origin of this media item
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
|
||||
field :filter, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
field :filter, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
|
||||
|
||||
sig { params(id: ::Integer, tag: ::String, filter: T.nilable(::String)).void }
|
||||
def initialize(id: nil, tag: nil, filter: nil)
|
||||
@id = id
|
||||
@tag = tag
|
||||
@filter = filter
|
||||
end
|
||||
sig { params(id: ::Integer, tag: ::String, filter: T.nilable(::String)).void }
|
||||
def initialize(id: nil, tag: nil, filter: nil)
|
||||
@id = id
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
class CreatePlaylistBadRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::CreatePlaylistErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::CreatePlaylistErrors])).void }
|
||||
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
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class CreatePlaylistErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -5,29 +5,32 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class CreatePlaylistMediaContainer < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class CreatePlaylistMediaContainer
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :metadata, T.nilable(T::Array[::PlexRubySDK::Operations::CreatePlaylistMetadata]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Metadata') } }
|
||||
field :metadata, T.nilable(T::Array[Models::Operations::CreatePlaylistMetadata]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Metadata') } }
|
||||
|
||||
field :size, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
field :size, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
|
||||
|
||||
sig { params(metadata: T.nilable(T::Array[::PlexRubySDK::Operations::CreatePlaylistMetadata]), size: T.nilable(::Integer)).void }
|
||||
def initialize(metadata: nil, size: nil)
|
||||
@metadata = metadata
|
||||
@size = size
|
||||
end
|
||||
sig { params(metadata: T.nilable(T::Array[Models::Operations::CreatePlaylistMetadata]), size: T.nilable(::Integer)).void }
|
||||
def initialize(metadata: nil, size: nil)
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,85 +5,88 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class CreatePlaylistMetadata < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class CreatePlaylistMetadata
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :added_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('addedAt') } }
|
||||
field :added_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('addedAt') } }
|
||||
|
||||
field :composite, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('composite') } }
|
||||
field :composite, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('composite') } }
|
||||
|
||||
field :duration, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
||||
field :duration, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
||||
|
||||
field :guid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('guid') } }
|
||||
field :guid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('guid') } }
|
||||
|
||||
field :icon, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('icon') } }
|
||||
field :icon, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('icon') } }
|
||||
|
||||
field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
field :last_viewed_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('lastViewedAt') } }
|
||||
field :last_viewed_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('lastViewedAt') } }
|
||||
|
||||
field :leaf_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCount') } }
|
||||
field :leaf_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCount') } }
|
||||
|
||||
field :playlist_type, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('playlistType') } }
|
||||
field :playlist_type, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('playlistType') } }
|
||||
|
||||
field :rating_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('ratingKey') } }
|
||||
field :rating_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('ratingKey') } }
|
||||
|
||||
field :smart, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('smart') } }
|
||||
field :smart, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('smart') } }
|
||||
|
||||
field :summary, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('summary') } }
|
||||
field :summary, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('summary') } }
|
||||
|
||||
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
|
||||
field :type, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
field :type, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
|
||||
field :updated_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('updatedAt') } }
|
||||
field :updated_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('updatedAt') } }
|
||||
|
||||
field :view_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewCount') } }
|
||||
field :view_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewCount') } }
|
||||
|
||||
|
||||
sig { params(added_at: T.nilable(::Integer), composite: T.nilable(::String), duration: T.nilable(::Integer), guid: T.nilable(::String), icon: T.nilable(::String), key: T.nilable(::String), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), playlist_type: T.nilable(::String), rating_key: T.nilable(::String), smart: T.nilable(T::Boolean), summary: T.nilable(::String), title: T.nilable(::String), type: T.nilable(::String), updated_at: T.nilable(::Integer), view_count: T.nilable(::Integer)).void }
|
||||
def initialize(added_at: nil, composite: nil, duration: nil, guid: nil, icon: nil, key: nil, last_viewed_at: nil, leaf_count: nil, playlist_type: nil, rating_key: nil, smart: nil, summary: nil, title: nil, type: nil, updated_at: nil, view_count: nil)
|
||||
@added_at = added_at
|
||||
@composite = composite
|
||||
@duration = duration
|
||||
@guid = guid
|
||||
@icon = icon
|
||||
@key = key
|
||||
@last_viewed_at = last_viewed_at
|
||||
@leaf_count = leaf_count
|
||||
@playlist_type = playlist_type
|
||||
@rating_key = rating_key
|
||||
@smart = smart
|
||||
@summary = summary
|
||||
@title = title
|
||||
@type = type
|
||||
@updated_at = updated_at
|
||||
@view_count = view_count
|
||||
end
|
||||
sig { params(added_at: T.nilable(::Integer), composite: T.nilable(::String), duration: T.nilable(::Integer), guid: T.nilable(::String), icon: T.nilable(::String), key: T.nilable(::String), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), playlist_type: T.nilable(::String), rating_key: T.nilable(::String), smart: T.nilable(T::Boolean), summary: T.nilable(::String), title: T.nilable(::String), type: T.nilable(::String), updated_at: T.nilable(::Integer), view_count: T.nilable(::Integer)).void }
|
||||
def initialize(added_at: nil, composite: nil, duration: nil, guid: nil, icon: nil, key: nil, last_viewed_at: nil, leaf_count: nil, playlist_type: nil, rating_key: nil, smart: nil, summary: nil, title: nil, type: nil, updated_at: nil, view_count: nil)
|
||||
@added_at = added_at
|
||||
@composite = composite
|
||||
@duration = duration
|
||||
@guid = guid
|
||||
@icon = icon
|
||||
@key = key
|
||||
@last_viewed_at = last_viewed_at
|
||||
@leaf_count = leaf_count
|
||||
@playlist_type = playlist_type
|
||||
@rating_key = rating_key
|
||||
@smart = smart
|
||||
@summary = summary
|
||||
@title = title
|
||||
@type = type
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class CreatePlaylistPlaylistsErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -5,14 +5,16 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# CreatePlaylistQueryParamType - type of playlist to create
|
||||
class CreatePlaylistQueryParamType < T::Enum
|
||||
enums do
|
||||
AUDIO = new('audio')
|
||||
VIDEO = new('video')
|
||||
PHOTO = new('photo')
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# CreatePlaylistQueryParamType - type of playlist to create
|
||||
class CreatePlaylistQueryParamType < T::Enum
|
||||
enums do
|
||||
AUDIO = new('audio')
|
||||
VIDEO = new('video')
|
||||
PHOTO = new('photo')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,41 +5,44 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class CreatePlaylistRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class CreatePlaylistRequest
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# whether the playlist is smart or not
|
||||
field :smart, ::PlexRubySDK::Operations::Smart, { 'query_param': { 'field_name': 'smart', 'style': 'form', 'explode': true } }
|
||||
# name of the playlist
|
||||
field :title, ::String, { 'query_param': { 'field_name': 'title', 'style': 'form', 'explode': true } }
|
||||
# type of playlist to create
|
||||
field :type, ::PlexRubySDK::Operations::CreatePlaylistQueryParamType, { 'query_param': { 'field_name': 'type', 'style': 'form', 'explode': true } }
|
||||
# the content URI for the playlist
|
||||
field :uri, ::String, { 'query_param': { 'field_name': 'uri', 'style': 'form', 'explode': true } }
|
||||
# the play queue to copy to a playlist
|
||||
field :play_queue_id, T.nilable(::Float), { 'query_param': { 'field_name': 'playQueueID', 'style': 'form', 'explode': true } }
|
||||
# whether the playlist is smart or not
|
||||
field :smart, Models::Operations::Smart, { 'query_param': { 'field_name': 'smart', 'style': 'form', 'explode': true } }
|
||||
# name of the playlist
|
||||
field :title, ::String, { 'query_param': { 'field_name': 'title', 'style': 'form', 'explode': true } }
|
||||
# type of playlist to create
|
||||
field :type, Models::Operations::CreatePlaylistQueryParamType, { 'query_param': { 'field_name': 'type', 'style': 'form', 'explode': true } }
|
||||
# the content URI for the playlist
|
||||
field :uri, ::String, { 'query_param': { 'field_name': 'uri', 'style': 'form', 'explode': true } }
|
||||
# the play queue to copy to a playlist
|
||||
field :play_queue_id, T.nilable(::Float), { 'query_param': { 'field_name': 'playQueueID', 'style': 'form', 'explode': true } }
|
||||
|
||||
|
||||
sig { params(smart: ::PlexRubySDK::Operations::Smart, title: ::String, type: ::PlexRubySDK::Operations::CreatePlaylistQueryParamType, uri: ::String, play_queue_id: T.nilable(::Float)).void }
|
||||
def initialize(smart: nil, title: nil, type: nil, uri: nil, play_queue_id: nil)
|
||||
@smart = smart
|
||||
@title = title
|
||||
@type = type
|
||||
@uri = uri
|
||||
@play_queue_id = play_queue_id
|
||||
end
|
||||
sig { params(smart: Models::Operations::Smart, title: ::String, type: Models::Operations::CreatePlaylistQueryParamType, uri: ::String, play_queue_id: T.nilable(::Float)).void }
|
||||
def initialize(smart: nil, title: nil, type: nil, uri: nil, play_queue_id: nil)
|
||||
@smart = smart
|
||||
@title = title
|
||||
@type = type
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,45 +5,40 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class CreatePlaylistResponse < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class CreatePlaylistResponse
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
field :bad_request, T.nilable(::PlexRubySDK::Operations::CreatePlaylistBadRequest)
|
||||
# returns all playlists
|
||||
field :object, T.nilable(::PlexRubySDK::Operations::CreatePlaylistResponseBody)
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
field :unauthorized, T.nilable(::PlexRubySDK::Operations::CreatePlaylistUnauthorized)
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
# returns all playlists
|
||||
field :object, T.nilable(Models::Operations::CreatePlaylistResponseBody)
|
||||
|
||||
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::PlexRubySDK::Operations::CreatePlaylistBadRequest), object: T.nilable(::PlexRubySDK::Operations::CreatePlaylistResponseBody), unauthorized: T.nilable(::PlexRubySDK::Operations::CreatePlaylistUnauthorized)).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, object: nil, unauthorized: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
@bad_request = bad_request
|
||||
@object = object
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, object: T.nilable(Models::Operations::CreatePlaylistResponseBody)).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil, object: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
@object = object
|
||||
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
|
||||
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 @object == other.object
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,25 +5,28 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# returns all playlists
|
||||
class CreatePlaylistResponseBody < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# returns all playlists
|
||||
class CreatePlaylistResponseBody
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :media_container, T.nilable(::PlexRubySDK::Operations::CreatePlaylistMediaContainer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('MediaContainer') } }
|
||||
field :media_container, T.nilable(Models::Operations::CreatePlaylistMediaContainer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('MediaContainer') } }
|
||||
|
||||
|
||||
sig { params(media_container: T.nilable(::PlexRubySDK::Operations::CreatePlaylistMediaContainer)).void }
|
||||
def initialize(media_container: nil)
|
||||
@media_container = media_container
|
||||
end
|
||||
sig { params(media_container: T.nilable(Models::Operations::CreatePlaylistMediaContainer)).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
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @media_container == other.media_container
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
class CreatePlaylistUnauthorized < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::CreatePlaylistPlaylistsErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::CreatePlaylistPlaylistsErrors])).void }
|
||||
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
|
||||
@@ -5,14 +5,16 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# DefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
#
|
||||
class DefaultDirection < T::Enum
|
||||
enums do
|
||||
ASCENDING = new('asc')
|
||||
DESCENDING = new('desc')
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# DefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
#
|
||||
class DefaultDirection < T::Enum
|
||||
enums do
|
||||
ASCENDING = new('asc')
|
||||
DESCENDING = new('desc')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,16 +5,18 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
DEFAULT_SUBTITLE_ACCESSIBILITY_SERVERS = [
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# DefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
|
||||
class DefaultSubtitleAccessibility < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
module Models
|
||||
module Operations
|
||||
DEFAULT_SUBTITLE_ACCESSIBILITY_SERVERS = [
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# DefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
|
||||
class DefaultSubtitleAccessibility < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,16 +5,18 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
DEFAULT_SUBTITLE_FORCED_SERVERS = [
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# DefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||
class DefaultSubtitleForced < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
module Models
|
||||
module Operations
|
||||
DEFAULT_SUBTITLE_FORCED_SERVERS = [
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# DefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||
class DefaultSubtitleForced < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
class DeleteLibraryBadRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::DeleteLibraryErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::DeleteLibraryErrors])).void }
|
||||
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
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class DeleteLibraryErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class DeleteLibraryLibraryErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -5,27 +5,30 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class DeleteLibraryRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class DeleteLibraryRequest
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The unique key of the Plex library.
|
||||
# Note: This is unique in the context of the Plex server.
|
||||
#
|
||||
field :section_key, ::Integer, { 'path_param': { 'field_name': 'sectionKey', 'style': 'simple', 'explode': false } }
|
||||
# The unique key of the Plex library.
|
||||
# Note: This is unique in the context of the Plex server.
|
||||
#
|
||||
field :section_key, ::Integer, { 'path_param': { 'field_name': 'sectionKey', 'style': 'simple', 'explode': false } }
|
||||
|
||||
|
||||
sig { params(section_key: ::Integer).void }
|
||||
def initialize(section_key: nil)
|
||||
@section_key = section_key
|
||||
end
|
||||
sig { params(section_key: ::Integer).void }
|
||||
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
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @section_key == other.section_key
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,41 +5,36 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class DeleteLibraryResponse < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class DeleteLibraryResponse
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
field :bad_request, T.nilable(::PlexRubySDK::Operations::DeleteLibraryBadRequest)
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
field :unauthorized, T.nilable(::PlexRubySDK::Operations::DeleteLibraryUnauthorized)
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
|
||||
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::PlexRubySDK::Operations::DeleteLibraryBadRequest), unauthorized: T.nilable(::PlexRubySDK::Operations::DeleteLibraryUnauthorized)).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, unauthorized: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
@bad_request = bad_request
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
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
|
||||
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
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
class DeleteLibraryUnauthorized < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::DeleteLibraryLibraryErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::DeleteLibraryLibraryErrors])).void }
|
||||
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
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
class DeletePlaylistBadRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::DeletePlaylistErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::DeletePlaylistErrors])).void }
|
||||
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
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class DeletePlaylistErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class DeletePlaylistPlaylistsErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -5,25 +5,28 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class DeletePlaylistRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class DeletePlaylistRequest
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# the ID of the playlist
|
||||
field :playlist_id, ::Float, { 'path_param': { 'field_name': 'playlistID', 'style': 'simple', 'explode': false } }
|
||||
# the ID of the playlist
|
||||
field :playlist_id, ::Float, { 'path_param': { 'field_name': 'playlistID', 'style': 'simple', 'explode': false } }
|
||||
|
||||
|
||||
sig { params(playlist_id: ::Float).void }
|
||||
def initialize(playlist_id: nil)
|
||||
@playlist_id = playlist_id
|
||||
end
|
||||
sig { params(playlist_id: ::Float).void }
|
||||
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
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @playlist_id == other.playlist_id
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,41 +5,36 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class DeletePlaylistResponse < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class DeletePlaylistResponse
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
field :bad_request, T.nilable(::PlexRubySDK::Operations::DeletePlaylistBadRequest)
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
field :unauthorized, T.nilable(::PlexRubySDK::Operations::DeletePlaylistUnauthorized)
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
|
||||
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::PlexRubySDK::Operations::DeletePlaylistBadRequest), unauthorized: T.nilable(::PlexRubySDK::Operations::DeletePlaylistUnauthorized)).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, unauthorized: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
@bad_request = bad_request
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
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
|
||||
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
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
class DeletePlaylistUnauthorized < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::DeletePlaylistPlaylistsErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::DeletePlaylistPlaylistsErrors])).void }
|
||||
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
|
||||
@@ -5,41 +5,44 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class Device < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class Device
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :client_identifier, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('clientIdentifier') } }
|
||||
field :client_identifier, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('clientIdentifier') } }
|
||||
|
||||
field :created_at, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('createdAt') } }
|
||||
field :created_at, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('createdAt') } }
|
||||
|
||||
field :id, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
field :id, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
|
||||
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('name') } }
|
||||
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('name') } }
|
||||
|
||||
field :platform, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('platform') } }
|
||||
field :platform, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('platform') } }
|
||||
|
||||
|
||||
sig { params(client_identifier: T.nilable(::String), created_at: T.nilable(::Float), id: T.nilable(::Float), name: T.nilable(::String), platform: T.nilable(::String)).void }
|
||||
def initialize(client_identifier: nil, created_at: nil, id: nil, name: nil, platform: nil)
|
||||
@client_identifier = client_identifier
|
||||
@created_at = created_at
|
||||
@id = id
|
||||
@name = name
|
||||
@platform = platform
|
||||
end
|
||||
sig { params(client_identifier: T.nilable(::String), created_at: T.nilable(::Float), id: T.nilable(::Float), name: T.nilable(::String), platform: T.nilable(::String)).void }
|
||||
def initialize(client_identifier: nil, created_at: nil, id: nil, name: nil, platform: nil)
|
||||
@client_identifier = client_identifier
|
||||
@created_at = created_at
|
||||
@id = id
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,25 +5,28 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class Director < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class Director
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The role of Director
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# The role of Director
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
|
||||
|
||||
sig { params(tag: ::String).void }
|
||||
def initialize(tag: nil)
|
||||
@tag = tag
|
||||
end
|
||||
sig { params(tag: ::String).void }
|
||||
def initialize(tag: nil)
|
||||
@tag = tag
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @tag == other.tag
|
||||
true
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @tag == other.tag
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,33 +5,36 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class Directory < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class Directory
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :count, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('count') } }
|
||||
field :count, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('count') } }
|
||||
|
||||
field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
|
||||
|
||||
sig { params(count: T.nilable(::Float), key: T.nilable(::String), title: T.nilable(::String)).void }
|
||||
def initialize(count: nil, key: nil, title: nil)
|
||||
@count = count
|
||||
@key = key
|
||||
@title = title
|
||||
end
|
||||
sig { params(count: T.nilable(::Float), key: T.nilable(::String), title: T.nilable(::String)).void }
|
||||
def initialize(count: nil, key: nil, title: nil)
|
||||
@count = count
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,13 +5,15 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Download - Indicate that you want to start download any updates found.
|
||||
class Download < T::Enum
|
||||
enums do
|
||||
ZERO = new(0)
|
||||
ONE = new(1)
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# Download - Indicate that you want to start download any updates found.
|
||||
class Download < T::Enum
|
||||
enums do
|
||||
ZERO = new(0)
|
||||
ONE = new(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,13 +5,15 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# EnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
class EnableCreditsMarkerGeneration < T::Enum
|
||||
enums do
|
||||
LIBRARY_DEFAULT = new('-1')
|
||||
DISABLED = new('0')
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# EnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
class EnableCreditsMarkerGeneration < T::Enum
|
||||
enums do
|
||||
LIBRARY_DEFAULT = new('-1')
|
||||
DISABLED = new('0')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
class EnablePaperTrailBadRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::EnablePaperTrailErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::EnablePaperTrailErrors])).void }
|
||||
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
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class EnablePaperTrailErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class EnablePaperTrailLogErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -5,41 +5,36 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class EnablePaperTrailResponse < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class EnablePaperTrailResponse
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
field :bad_request, T.nilable(::PlexRubySDK::Operations::EnablePaperTrailBadRequest)
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
field :unauthorized, T.nilable(::PlexRubySDK::Operations::EnablePaperTrailUnauthorized)
|
||||
# HTTP response content type for this operation
|
||||
field :content_type, ::String
|
||||
# Raw HTTP response; suitable for custom response parsing
|
||||
field :raw_response, ::Faraday::Response
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
|
||||
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::PlexRubySDK::Operations::EnablePaperTrailBadRequest), unauthorized: T.nilable(::PlexRubySDK::Operations::EnablePaperTrailUnauthorized)).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, unauthorized: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
@bad_request = bad_request
|
||||
@unauthorized = unauthorized
|
||||
end
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
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
|
||||
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
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
class EnablePaperTrailUnauthorized < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::EnablePaperTrailLogErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::EnablePaperTrailLogErrors])).void }
|
||||
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
|
||||
@@ -5,14 +5,16 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# EpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
class EpisodeSort < T::Enum
|
||||
enums do
|
||||
LIBRARY_DEFAULT = new('-1')
|
||||
OLDEST_FIRST = new('0')
|
||||
NEWEST_FIRST = new('1')
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# EpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
class EpisodeSort < T::Enum
|
||||
enums do
|
||||
LIBRARY_DEFAULT = new('-1')
|
||||
OLDEST_FIRST = new('0')
|
||||
NEWEST_FIRST = new('1')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class Errors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
@@ -5,49 +5,52 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class Feature < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class Feature
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
|
||||
field :action, T.nilable(T::Array[::PlexRubySDK::Operations::Action]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Action') } }
|
||||
field :action, T.nilable(T::Array[Models::Operations::Action]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Action') } }
|
||||
|
||||
field :directory, T.nilable(T::Array[::PlexRubySDK::Operations::GetMediaProvidersDirectory]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Directory') } }
|
||||
field :directory, T.nilable(T::Array[Models::Operations::GetMediaProvidersDirectory]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Directory') } }
|
||||
|
||||
field :flavor, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('flavor') } }
|
||||
field :flavor, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('flavor') } }
|
||||
|
||||
field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
field :scrobble_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('scrobbleKey') } }
|
||||
field :scrobble_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('scrobbleKey') } }
|
||||
|
||||
field :unscrobble_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('unscrobbleKey') } }
|
||||
field :unscrobble_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('unscrobbleKey') } }
|
||||
|
||||
|
||||
sig { params(type: ::String, action: T.nilable(T::Array[::PlexRubySDK::Operations::Action]), directory: T.nilable(T::Array[::PlexRubySDK::Operations::GetMediaProvidersDirectory]), flavor: T.nilable(::String), key: T.nilable(::String), scrobble_key: T.nilable(::String), unscrobble_key: T.nilable(::String)).void }
|
||||
def initialize(type: nil, action: nil, directory: nil, flavor: nil, key: nil, scrobble_key: nil, unscrobble_key: nil)
|
||||
@type = type
|
||||
@action = action
|
||||
@directory = directory
|
||||
@flavor = flavor
|
||||
@key = key
|
||||
@scrobble_key = scrobble_key
|
||||
@unscrobble_key = unscrobble_key
|
||||
end
|
||||
sig { params(type: ::String, action: T.nilable(T::Array[Models::Operations::Action]), directory: T.nilable(T::Array[Models::Operations::GetMediaProvidersDirectory]), flavor: T.nilable(::String), key: T.nilable(::String), scrobble_key: T.nilable(::String), unscrobble_key: T.nilable(::String)).void }
|
||||
def initialize(type: nil, action: nil, directory: nil, flavor: nil, key: nil, scrobble_key: nil, unscrobble_key: nil)
|
||||
@type = type
|
||||
@action = action
|
||||
@directory = directory
|
||||
@flavor = flavor
|
||||
@key = key
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,37 +5,40 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class Field < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class Field
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
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, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
|
||||
field :sub_type, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subType') } }
|
||||
field :sub_type, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subType') } }
|
||||
|
||||
|
||||
sig { params(key: ::String, title: ::String, type: ::String, sub_type: T.nilable(::String)).void }
|
||||
def initialize(key: nil, title: nil, type: nil, sub_type: nil)
|
||||
@key = key
|
||||
@title = title
|
||||
@type = type
|
||||
@sub_type = sub_type
|
||||
end
|
||||
sig { params(key: ::String, title: ::String, type: ::String, sub_type: T.nilable(::String)).void }
|
||||
def initialize(key: nil, title: nil, type: nil, sub_type: nil)
|
||||
@key = key
|
||||
@title = title
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,29 +5,32 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class FieldType < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class FieldType
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :operator, T::Array[::PlexRubySDK::Operations::Operator], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Operator') } }
|
||||
field :operator, T::Array[Models::Operations::Operator], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Operator') } }
|
||||
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
|
||||
|
||||
sig { params(operator: T::Array[::PlexRubySDK::Operations::Operator], type: ::String).void }
|
||||
def initialize(operator: nil, type: nil)
|
||||
@operator = operator
|
||||
@type = type
|
||||
end
|
||||
sig { params(operator: T::Array[Models::Operations::Operator], type: ::String).void }
|
||||
def initialize(operator: nil, type: nil)
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,17 +5,19 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
FILTER_SERVERS = [
|
||||
'https://metadata.provider.plex.tv'
|
||||
].freeze
|
||||
|
||||
# Filter - Filter
|
||||
class Filter < T::Enum
|
||||
enums do
|
||||
ALL = new('all')
|
||||
AVAILABLE = new('available')
|
||||
RELEASED = new('released')
|
||||
module Models
|
||||
module Operations
|
||||
FILTER_SERVERS = [
|
||||
'https://metadata.provider.plex.tv'
|
||||
].freeze
|
||||
|
||||
# Filter - Filter
|
||||
class Filter < T::Enum
|
||||
enums do
|
||||
ALL = new('all')
|
||||
AVAILABLE = new('available')
|
||||
RELEASED = new('released')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,14 +5,16 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# FlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
class FlattenSeasons < T::Enum
|
||||
enums do
|
||||
LIBRARY_DEFAULT = new('-1')
|
||||
HIDE = new('0')
|
||||
SHOW = new('1')
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# FlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
class FlattenSeasons < T::Enum
|
||||
enums do
|
||||
LIBRARY_DEFAULT = new('-1')
|
||||
HIDE = new('0')
|
||||
SHOW = new('1')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,13 +5,15 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Force - Force the refresh even if the library is already being refreshed.
|
||||
class Force < T::Enum
|
||||
enums do
|
||||
ZERO = new(0)
|
||||
ONE = new(1)
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# Force - Force the refresh even if the library is already being refreshed.
|
||||
class Force < T::Enum
|
||||
enums do
|
||||
ZERO = new(0)
|
||||
ONE = new(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,72 +5,75 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
FRIEND_SERVERS = [
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
FRIEND_SERVERS = [
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
class Friend < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class Friend
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The account email address
|
||||
field :email, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('email') } }
|
||||
# The account full name
|
||||
field :friendly_name, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('friendlyName') } }
|
||||
# If the account is a Plex Home user
|
||||
field :home, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('home') } }
|
||||
# The Plex account ID
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# If the account is a Plex Home managed user
|
||||
field :restricted, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('restricted') } }
|
||||
# The account email address
|
||||
field :email, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('email') } }
|
||||
# The account full name
|
||||
field :friendly_name, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('friendlyName') } }
|
||||
# If the account is a Plex Home user
|
||||
field :home, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('home') } }
|
||||
# The Plex account ID
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# If the account is a Plex Home managed user
|
||||
field :restricted, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('restricted') } }
|
||||
|
||||
field :shared_servers, T::Array[::PlexRubySDK::Operations::SharedServers], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('sharedServers') } }
|
||||
field :shared_servers, T::Array[Models::Operations::SharedServers], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('sharedServers') } }
|
||||
|
||||
field :shared_sources, T::Array[::PlexRubySDK::Operations::SharedSources], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('sharedSources') } }
|
||||
# Current friend request status
|
||||
field :status, ::PlexRubySDK::Operations::Status, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::Status, false) } }
|
||||
# URL of the account thumbnail
|
||||
field :thumb, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
# The title of the account (username or friendly name)
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
# The account username
|
||||
field :username, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('username') } }
|
||||
# The account Universally Unique Identifier (UUID)
|
||||
field :uuid, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('uuid') } }
|
||||
field :shared_sources, T::Array[Models::Operations::SharedSources], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('sharedSources') } }
|
||||
# Current friend request status
|
||||
field :status, Models::Operations::Status, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(Models::Operations::Status, false) } }
|
||||
# URL of the account thumbnail
|
||||
field :thumb, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
# The title of the account (username or friendly name)
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
# The account username
|
||||
field :username, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('username') } }
|
||||
# The account Universally Unique Identifier (UUID)
|
||||
field :uuid, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('uuid') } }
|
||||
|
||||
|
||||
sig { params(email: ::String, friendly_name: ::String, home: T::Boolean, id: ::Integer, restricted: T::Boolean, shared_servers: T::Array[::PlexRubySDK::Operations::SharedServers], shared_sources: T::Array[::PlexRubySDK::Operations::SharedSources], status: ::PlexRubySDK::Operations::Status, thumb: ::String, title: ::String, username: ::String, uuid: ::String).void }
|
||||
def initialize(email: nil, friendly_name: nil, home: nil, id: nil, restricted: nil, shared_servers: nil, shared_sources: nil, status: nil, thumb: nil, title: nil, username: nil, uuid: nil)
|
||||
@email = email
|
||||
@friendly_name = friendly_name
|
||||
@home = home
|
||||
@id = id
|
||||
@restricted = restricted
|
||||
@shared_servers = shared_servers
|
||||
@shared_sources = shared_sources
|
||||
@status = status
|
||||
@thumb = thumb
|
||||
@title = title
|
||||
@username = username
|
||||
@uuid = uuid
|
||||
end
|
||||
sig { params(email: ::String, friendly_name: ::String, home: T::Boolean, id: ::Integer, restricted: T::Boolean, shared_servers: T::Array[Models::Operations::SharedServers], shared_sources: T::Array[Models::Operations::SharedSources], status: Models::Operations::Status, thumb: ::String, title: ::String, username: ::String, uuid: ::String).void }
|
||||
def initialize(email: nil, friendly_name: nil, home: nil, id: nil, restricted: nil, shared_servers: nil, shared_sources: nil, status: nil, thumb: nil, title: nil, username: nil, uuid: nil)
|
||||
@email = email
|
||||
@friendly_name = friendly_name
|
||||
@home = home
|
||||
@id = id
|
||||
@restricted = restricted
|
||||
@shared_servers = shared_servers
|
||||
@shared_sources = shared_sources
|
||||
@status = status
|
||||
@thumb = thumb
|
||||
@title = title
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,34 +5,37 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# The filter query string for similar items.
|
||||
class Genre < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# The filter query string for similar items.
|
||||
class Genre
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The genre name of this media-item
|
||||
#
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The genre name of this media-item
|
||||
#
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
|
||||
|
||||
sig { params(filter: ::String, id: ::Integer, tag: ::String).void }
|
||||
def initialize(filter: nil, id: nil, tag: nil)
|
||||
@filter = filter
|
||||
@id = id
|
||||
@tag = tag
|
||||
end
|
||||
sig { params(filter: ::String, id: ::Integer, tag: ::String).void }
|
||||
def initialize(filter: nil, id: nil, tag: nil)
|
||||
@filter = filter
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -5,68 +5,71 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GEO_DATA_SERVERS = [
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Geo location data
|
||||
class GeoData < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
module Models
|
||||
module Operations
|
||||
GEO_DATA_SERVERS = [
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Geo location data
|
||||
class GeoData
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The name of the city.
|
||||
field :city, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('city') } }
|
||||
# The ISO 3166-1 alpha-2 code of the country.
|
||||
field :code, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
# The continent code where the country is located.
|
||||
field :continent_code, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('continent_code') } }
|
||||
# The geographical coordinates (latitude, longitude) of the location.
|
||||
field :coordinates, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('coordinates') } }
|
||||
# The official name of the country.
|
||||
field :country, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('country') } }
|
||||
# Indicates if the country is a member of the European Union.
|
||||
field :european_union_member, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('european_union_member') } }
|
||||
# Indicates if the country has privacy restrictions.
|
||||
field :in_privacy_restricted_country, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('in_privacy_restricted_country') } }
|
||||
# Indicates if the region has privacy restrictions.
|
||||
field :in_privacy_restricted_region, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('in_privacy_restricted_region') } }
|
||||
# The postal code of the location.
|
||||
field :postal_code, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('postal_code') } }
|
||||
# The name of the primary administrative subdivision.
|
||||
field :subdivisions, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subdivisions') } }
|
||||
# The time zone of the country.
|
||||
field :time_zone, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('time_zone') } }
|
||||
# The name of the city.
|
||||
field :city, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('city') } }
|
||||
# The ISO 3166-1 alpha-2 code of the country.
|
||||
field :code, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
# The continent code where the country is located.
|
||||
field :continent_code, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('continent_code') } }
|
||||
# The geographical coordinates (latitude, longitude) of the location.
|
||||
field :coordinates, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('coordinates') } }
|
||||
# The official name of the country.
|
||||
field :country, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('country') } }
|
||||
# Indicates if the country is a member of the European Union.
|
||||
field :european_union_member, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('european_union_member') } }
|
||||
# Indicates if the country has privacy restrictions.
|
||||
field :in_privacy_restricted_country, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('in_privacy_restricted_country') } }
|
||||
# Indicates if the region has privacy restrictions.
|
||||
field :in_privacy_restricted_region, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('in_privacy_restricted_region') } }
|
||||
# The postal code of the location.
|
||||
field :postal_code, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('postal_code') } }
|
||||
# The name of the primary administrative subdivision.
|
||||
field :subdivisions, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subdivisions') } }
|
||||
# The time zone of the country.
|
||||
field :time_zone, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('time_zone') } }
|
||||
|
||||
|
||||
sig { params(city: ::String, code: ::String, continent_code: ::String, coordinates: ::String, country: ::String, european_union_member: T::Boolean, in_privacy_restricted_country: T::Boolean, in_privacy_restricted_region: T::Boolean, postal_code: ::String, subdivisions: ::String, time_zone: ::String).void }
|
||||
def initialize(city: nil, code: nil, continent_code: nil, coordinates: nil, country: nil, european_union_member: nil, in_privacy_restricted_country: nil, in_privacy_restricted_region: nil, postal_code: nil, subdivisions: nil, time_zone: nil)
|
||||
@city = city
|
||||
@code = code
|
||||
@continent_code = continent_code
|
||||
@coordinates = coordinates
|
||||
@country = country
|
||||
@european_union_member = european_union_member
|
||||
@in_privacy_restricted_country = in_privacy_restricted_country
|
||||
@in_privacy_restricted_region = in_privacy_restricted_region
|
||||
@postal_code = postal_code
|
||||
@subdivisions = subdivisions
|
||||
@time_zone = time_zone
|
||||
end
|
||||
sig { params(city: ::String, code: ::String, continent_code: ::String, coordinates: ::String, country: ::String, european_union_member: T::Boolean, in_privacy_restricted_country: T::Boolean, in_privacy_restricted_region: T::Boolean, postal_code: ::String, subdivisions: ::String, time_zone: ::String).void }
|
||||
def initialize(city: nil, code: nil, continent_code: nil, coordinates: nil, country: nil, european_union_member: nil, in_privacy_restricted_country: nil, in_privacy_restricted_region: nil, postal_code: nil, subdivisions: nil, time_zone: nil)
|
||||
@city = city
|
||||
@code = code
|
||||
@continent_code = continent_code
|
||||
@coordinates = coordinates
|
||||
@country = country
|
||||
@european_union_member = european_union_member
|
||||
@in_privacy_restricted_country = in_privacy_restricted_country
|
||||
@in_privacy_restricted_region = in_privacy_restricted_region
|
||||
@postal_code = postal_code
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
class GetActorsLibraryBadRequest < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::PlexRubySDK::Operations::GetActorsLibraryErrors]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::PlexRubySDK::Operations::GetActorsLibraryErrors])).void }
|
||||
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
|
||||
@@ -5,37 +5,40 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetActorsLibraryDirectory < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
class GetActorsLibraryDirectory
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# A fast lookup key for the actor relative url.
|
||||
field :fast_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('fastKey') } }
|
||||
# A unique key representing the actor.
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
# URL for the thumbnail image of the actor.
|
||||
field :thumb, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
# The name of the actor.
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
# A fast lookup key for the actor relative url.
|
||||
field :fast_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('fastKey') } }
|
||||
# A unique key representing the actor.
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
# URL for the thumbnail image of the actor.
|
||||
field :thumb, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
# The name of the actor.
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
|
||||
|
||||
sig { params(fast_key: ::String, key: ::String, thumb: ::String, title: ::String).void }
|
||||
def initialize(fast_key: nil, key: nil, thumb: nil, title: nil)
|
||||
@fast_key = fast_key
|
||||
@key = key
|
||||
@thumb = thumb
|
||||
@title = title
|
||||
end
|
||||
sig { params(fast_key: ::String, key: ::String, thumb: ::String, title: ::String).void }
|
||||
def initialize(fast_key: nil, key: nil, thumb: nil, title: nil)
|
||||
@fast_key = fast_key
|
||||
@key = key
|
||||
@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
|
||||
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
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetActorsLibraryErrors < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Integer), message: T.nilable(::String), status: T.nilable(::Integer)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@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
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user