mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 12:47:44 +00:00
regenerated with newest spec, reconfigured actions and adding publishing
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
].freeze
|
||||
|
||||
|
||||
class GetTokenByPinIdRequest < ::PlexRubySDK::Utils::FieldAugmented
|
||||
extend T::Sig
|
||||
|
||||
# The PinID to retrieve an access token for
|
||||
field :pin_id, ::Integer, { '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), { 'query_param': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'form', 'explode': true } }
|
||||
|
||||
|
||||
sig { params(pin_id: ::Integer, 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
|
||||
Reference in New Issue
Block a user