mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 12:47:44 +00:00
34 lines
1.1 KiB
Ruby
34 lines
1.1 KiB
Ruby
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
|
|
# typed: true
|
|
# frozen_string_literal: true
|
|
|
|
|
|
module OpenApiSDK
|
|
module Operations
|
|
GET_TOKEN_REQUEST_SERVERS = [
|
|
'https://plex.tv/api/v2'
|
|
].freeze
|
|
|
|
|
|
class GetTokenRequest < ::OpenApiSDK::Utils::FieldAugmented
|
|
extend T::Sig
|
|
|
|
# The PinID to retrieve an access token for
|
|
field :pin_id, ::String, { 'path_param': { 'field_name': 'pinID', 'style': 'simple', 'explode': false } }
|
|
# The unique identifier for the client application
|
|
# This is used to track the client application and its usage
|
|
# (UUID, serial number, or other number unique per device)
|
|
#
|
|
field :x_plex_client_identifier, T.nilable(::String), { 'header': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'simple', 'explode': false } }
|
|
|
|
|
|
sig { params(pin_id: ::String, x_plex_client_identifier: T.nilable(::String)).void }
|
|
def initialize(pin_id: nil, x_plex_client_identifier: nil)
|
|
@pin_id = pin_id
|
|
@x_plex_client_identifier = x_plex_client_identifier
|
|
end
|
|
end
|
|
end
|
|
end
|