Files
plexruby/lib/plex_ruby_sdk/models/operations/gettokendetails_response.rb

43 lines
1.8 KiB
Ruby

# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
# typed: true
# frozen_string_literal: true
module PlexRubySDK
module Operations
GET_TOKEN_DETAILS_RESPONSE_SERVERS = [
'https://plex.tv/api/v2'
].freeze
class GetTokenDetailsResponse < ::Crystalline::FieldAugmented
extend T::Sig
# 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::GetTokenDetailsBadRequest)
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
field :unauthorized, T.nilable(::PlexRubySDK::Operations::GetTokenDetailsUnauthorized)
# Logged in user details
field :user_plex_account, T.nilable(::PlexRubySDK::Operations::GetTokenDetailsUserPlexAccount)
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::PlexRubySDK::Operations::GetTokenDetailsBadRequest), unauthorized: T.nilable(::PlexRubySDK::Operations::GetTokenDetailsUnauthorized), user_plex_account: T.nilable(::PlexRubySDK::Operations::GetTokenDetailsUserPlexAccount)).void }
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, unauthorized: nil, user_plex_account: nil)
@content_type = content_type
@raw_response = raw_response
@status_code = status_code
@bad_request = bad_request
@unauthorized = unauthorized
@user_plex_account = user_plex_account
end
end
end
end