mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-07 20:57:44 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.295.1
This commit is contained in:
@@ -271,7 +271,7 @@ module OpenApiSDK
|
||||
end
|
||||
|
||||
|
||||
sig { params(section_id: ::Object, tag: ::OpenApiSDK::Operations::Tag).returns(::OpenApiSDK::Operations::GetLibraryItemsResponse) }
|
||||
sig { params(section_id: ::Integer, tag: ::OpenApiSDK::Operations::Tag).returns(::OpenApiSDK::Operations::GetLibraryItemsResponse) }
|
||||
def get_library_items(section_id, tag)
|
||||
# get_library_items - Get Library Items
|
||||
# Fetches details from a specific section of the library identified by a section key and a tag. The tag parameter accepts the following values:
|
||||
@@ -326,7 +326,13 @@ module OpenApiSDK
|
||||
if r.status == 200
|
||||
if Utils.match_content_type(content_type, 'application/json')
|
||||
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::GetLibraryItemsResponseBody)
|
||||
res.object = out
|
||||
res.two_hundred_application_json_object = out
|
||||
end
|
||||
elsif r.status == 400
|
||||
elsif r.status == 401
|
||||
if Utils.match_content_type(content_type, 'application/json')
|
||||
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::GetLibraryItemsLibraryResponseBody)
|
||||
res.four_hundred_and_one_application_json_object = out
|
||||
end
|
||||
end
|
||||
res
|
||||
@@ -431,7 +437,13 @@ module OpenApiSDK
|
||||
if r.status == 200
|
||||
if Utils.match_content_type(content_type, 'application/json')
|
||||
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::SearchLibraryResponseBody)
|
||||
res.object = out
|
||||
res.two_hundred_application_json_object = out
|
||||
end
|
||||
elsif r.status == 400
|
||||
elsif r.status == 401
|
||||
if Utils.match_content_type(content_type, 'application/json')
|
||||
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::SearchLibraryLibraryResponseBody)
|
||||
res.four_hundred_and_one_application_json_object = out
|
||||
end
|
||||
end
|
||||
res
|
||||
|
||||
@@ -197,6 +197,8 @@ module OpenApiSDK
|
||||
autoload :DeleteLibraryResponse, 'open_api_sdk/models/operations/deletelibrary_response.rb'
|
||||
autoload :Tag, 'open_api_sdk/models/operations/tag.rb'
|
||||
autoload :GetLibraryItemsRequest, 'open_api_sdk/models/operations/getlibraryitems_request.rb'
|
||||
autoload :GetLibraryItemsErrors, 'open_api_sdk/models/operations/getlibraryitems_errors.rb'
|
||||
autoload :GetLibraryItemsLibraryResponseBody, 'open_api_sdk/models/operations/getlibraryitems_library_responsebody.rb'
|
||||
autoload :GetLibraryItemsPart, 'open_api_sdk/models/operations/getlibraryitems_part.rb'
|
||||
autoload :GetLibraryItemsMedia, 'open_api_sdk/models/operations/getlibraryitems_media.rb'
|
||||
autoload :GetLibraryItemsGenre, 'open_api_sdk/models/operations/getlibraryitems_genre.rb'
|
||||
@@ -214,6 +216,8 @@ module OpenApiSDK
|
||||
autoload :RefreshLibraryResponse, 'open_api_sdk/models/operations/refreshlibrary_response.rb'
|
||||
autoload :Type, 'open_api_sdk/models/operations/type.rb'
|
||||
autoload :SearchLibraryRequest, 'open_api_sdk/models/operations/searchlibrary_request.rb'
|
||||
autoload :SearchLibraryErrors, 'open_api_sdk/models/operations/searchlibrary_errors.rb'
|
||||
autoload :SearchLibraryLibraryResponseBody, 'open_api_sdk/models/operations/searchlibrary_library_responsebody.rb'
|
||||
autoload :SearchLibraryMetadata, 'open_api_sdk/models/operations/searchlibrary_metadata.rb'
|
||||
autoload :SearchLibraryMediaContainer, 'open_api_sdk/models/operations/searchlibrary_mediacontainer.rb'
|
||||
autoload :SearchLibraryResponseBody, 'open_api_sdk/models/operations/searchlibrary_responsebody.rb'
|
||||
|
||||
30
lib/open_api_sdk/models/operations/getlibraryitems_errors.rb
Normal file
30
lib/open_api_sdk/models/operations/getlibraryitems_errors.rb
Normal file
@@ -0,0 +1,30 @@
|
||||
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module OpenApiSDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetLibraryItemsErrors < ::OpenApiSDK::Utils::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Float), message: T.nilable(::String), status: T.nilable(::Float)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,24 @@
|
||||
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module OpenApiSDK
|
||||
module Operations
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
class GetLibraryItemsLibraryResponseBody < ::OpenApiSDK::Utils::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::OpenApiSDK::Operations::GetLibraryItemsErrors]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::OpenApiSDK::Operations::GetLibraryItemsErrors])).void }
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -12,12 +12,12 @@ module OpenApiSDK
|
||||
extend T::Sig
|
||||
|
||||
# the Id of the library to query
|
||||
field :section_id, ::Object, { 'path_param': { 'field_name': 'sectionId', 'style': 'simple', 'explode': false } }
|
||||
field :section_id, ::Integer, { 'path_param': { 'field_name': 'sectionId', 'style': 'simple', 'explode': false } }
|
||||
# A key representing a specific tag within the section.
|
||||
field :tag, ::OpenApiSDK::Operations::Tag, { 'path_param': { 'field_name': 'tag', 'style': 'simple', 'explode': false } }
|
||||
|
||||
|
||||
sig { params(section_id: ::Object, tag: ::OpenApiSDK::Operations::Tag).void }
|
||||
sig { params(section_id: ::Integer, tag: ::OpenApiSDK::Operations::Tag).void }
|
||||
def initialize(section_id: nil, tag: nil)
|
||||
@section_id = section_id
|
||||
@tag = tag
|
||||
|
||||
@@ -18,15 +18,18 @@ module OpenApiSDK
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
# The contents of the library by section and tag
|
||||
field :object, T.nilable(::OpenApiSDK::Operations::GetLibraryItemsResponseBody)
|
||||
field :two_hundred_application_json_object, T.nilable(::OpenApiSDK::Operations::GetLibraryItemsResponseBody)
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
field :four_hundred_and_one_application_json_object, T.nilable(::OpenApiSDK::Operations::GetLibraryItemsLibraryResponseBody)
|
||||
|
||||
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, object: T.nilable(::OpenApiSDK::Operations::GetLibraryItemsResponseBody)).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil, object: nil)
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, two_hundred_application_json_object: T.nilable(::OpenApiSDK::Operations::GetLibraryItemsResponseBody), four_hundred_and_one_application_json_object: T.nilable(::OpenApiSDK::Operations::GetLibraryItemsLibraryResponseBody)).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil, two_hundred_application_json_object: nil, four_hundred_and_one_application_json_object: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
@object = object
|
||||
@two_hundred_application_json_object = two_hundred_application_json_object
|
||||
@four_hundred_and_one_application_json_object = four_hundred_and_one_application_json_object
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
30
lib/open_api_sdk/models/operations/searchlibrary_errors.rb
Normal file
30
lib/open_api_sdk/models/operations/searchlibrary_errors.rb
Normal file
@@ -0,0 +1,30 @@
|
||||
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module OpenApiSDK
|
||||
module Operations
|
||||
|
||||
|
||||
class SearchLibraryErrors < ::OpenApiSDK::Utils::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :code, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('code') } }
|
||||
|
||||
field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('message') } }
|
||||
|
||||
field :status, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('status') } }
|
||||
|
||||
|
||||
sig { params(code: T.nilable(::Float), message: T.nilable(::String), status: T.nilable(::Float)).void }
|
||||
def initialize(code: nil, message: nil, status: nil)
|
||||
@code = code
|
||||
@message = message
|
||||
@status = status
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,24 @@
|
||||
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module OpenApiSDK
|
||||
module Operations
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
class SearchLibraryLibraryResponseBody < ::OpenApiSDK::Utils::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :errors, T.nilable(T::Array[::OpenApiSDK::Operations::SearchLibraryErrors]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('errors') } }
|
||||
|
||||
|
||||
sig { params(errors: T.nilable(T::Array[::OpenApiSDK::Operations::SearchLibraryErrors])).void }
|
||||
def initialize(errors: nil)
|
||||
@errors = errors
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -18,15 +18,18 @@ module OpenApiSDK
|
||||
# HTTP response status code for this operation
|
||||
field :status_code, ::Integer
|
||||
# The contents of the library by section and type
|
||||
field :object, T.nilable(::OpenApiSDK::Operations::SearchLibraryResponseBody)
|
||||
field :two_hundred_application_json_object, T.nilable(::OpenApiSDK::Operations::SearchLibraryResponseBody)
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
field :four_hundred_and_one_application_json_object, T.nilable(::OpenApiSDK::Operations::SearchLibraryLibraryResponseBody)
|
||||
|
||||
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, object: T.nilable(::OpenApiSDK::Operations::SearchLibraryResponseBody)).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil, object: nil)
|
||||
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, two_hundred_application_json_object: T.nilable(::OpenApiSDK::Operations::SearchLibraryResponseBody), four_hundred_and_one_application_json_object: T.nilable(::OpenApiSDK::Operations::SearchLibraryLibraryResponseBody)).void }
|
||||
def initialize(content_type: nil, raw_response: nil, status_code: nil, two_hundred_application_json_object: nil, four_hundred_and_one_application_json_object: nil)
|
||||
@content_type = content_type
|
||||
@raw_response = raw_response
|
||||
@status_code = status_code
|
||||
@object = object
|
||||
@two_hundred_application_json_object = two_hundred_application_json_object
|
||||
@four_hundred_and_one_application_json_object = four_hundred_and_one_application_json_object
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -14,12 +14,12 @@ module OpenApiSDK
|
||||
|
||||
# GET_PIN_SERVERS contains the list of server urls available to the SDK.
|
||||
GET_PIN_SERVERS = [
|
||||
'https://plex.tv/api/v2',
|
||||
'https://plex.tv/api/v2',
|
||||
].freeze
|
||||
|
||||
# GET_TOKEN_SERVERS contains the list of server urls available to the SDK.
|
||||
GET_TOKEN_SERVERS = [
|
||||
'https://plex.tv/api/v2',
|
||||
'https://plex.tv/api/v2',
|
||||
].freeze
|
||||
# API Calls that perform operations directly against https://Plex.tv
|
||||
#
|
||||
|
||||
@@ -42,9 +42,9 @@ module OpenApiSDK
|
||||
@globals = globals.nil? ? {} : globals
|
||||
@language = 'ruby'
|
||||
@openapi_doc_version = '0.0.3'
|
||||
@sdk_version = '0.1.4'
|
||||
@gen_version = '2.326.3'
|
||||
@user_agent = 'speakeasy-sdk/ruby 0.1.4 2.326.3 0.0.3 plexruby'
|
||||
@sdk_version = '0.1.5'
|
||||
@gen_version = '2.335.5'
|
||||
@user_agent = 'speakeasy-sdk/ruby 0.1.5 2.335.5 0.0.3 plexruby'
|
||||
end
|
||||
|
||||
sig { returns([String, T::Hash[Symbol, String]]) }
|
||||
|
||||
Reference in New Issue
Block a user