ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.531.4

This commit is contained in:
speakeasybot
2025-04-15 00:10:22 +00:00
parent 1be9c77a05
commit f1b7dcb619
2010 changed files with 41994 additions and 36602 deletions

View File

@@ -5,48 +5,51 @@
module PlexRubySDK
module Operations
GET_TOKEN_BY_PIN_ID_REQUEST_SERVERS = [
'https://plex.tv/api/v2'
].freeze
module Models
module Operations
GET_TOKEN_BY_PIN_ID_REQUEST_SERVERS = [
'https://plex.tv/api/v2'
].freeze
class GetTokenByPinIdRequest < ::Crystalline::FieldAugmented
extend T::Sig
class GetTokenByPinIdRequest
extend T::Sig
include Crystalline::MetadataFields
# An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
field :client_id, ::String, { 'header': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'simple', 'explode': false } }
# The PinID to retrieve an access token for
field :pin_id, ::Integer, { 'path_param': { 'field_name': 'pinID', 'style': 'simple', 'explode': false } }
# The name of the client application. (Plex Web, Plex Media Server, etc.)
field :client_name, T.nilable(::String), { 'header': { 'field_name': 'X-Plex-Product', 'style': 'simple', 'explode': false } }
# The version of the client application.
field :client_version, T.nilable(::String), { 'header': { 'field_name': 'X-Plex-Version', 'style': 'simple', 'explode': false } }
# A relatively friendly name for the client device
field :device_nickname, T.nilable(::String), { 'header': { 'field_name': 'X-Plex-Device', 'style': 'simple', 'explode': false } }
# The platform of the client application.
field :platform, T.nilable(::String), { 'header': { 'field_name': 'X-Plex-Platform', 'style': 'simple', 'explode': false } }
# An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
field :client_id, ::String, { 'header': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'simple', 'explode': false } }
# The PinID to retrieve an access token for
field :pin_id, ::Integer, { 'path_param': { 'field_name': 'pinID', 'style': 'simple', 'explode': false } }
# The name of the client application. (Plex Web, Plex Media Server, etc.)
field :client_name, T.nilable(::String), { 'header': { 'field_name': 'X-Plex-Product', 'style': 'simple', 'explode': false } }
# The version of the client application.
field :client_version, T.nilable(::String), { 'header': { 'field_name': 'X-Plex-Version', 'style': 'simple', 'explode': false } }
# A relatively friendly name for the client device
field :device_nickname, T.nilable(::String), { 'header': { 'field_name': 'X-Plex-Device', 'style': 'simple', 'explode': false } }
# The platform of the client application.
field :platform, T.nilable(::String), { 'header': { 'field_name': 'X-Plex-Platform', 'style': 'simple', 'explode': false } }
sig { params(client_id: ::String, pin_id: ::Integer, client_name: T.nilable(::String), client_version: T.nilable(::String), device_nickname: T.nilable(::String), platform: T.nilable(::String)).void }
def initialize(client_id: nil, pin_id: nil, client_name: nil, client_version: nil, device_nickname: nil, platform: nil)
@client_id = client_id
@pin_id = pin_id
@client_name = client_name
@client_version = client_version
@device_nickname = device_nickname
@platform = platform
end
sig { params(client_id: ::String, pin_id: ::Integer, client_name: T.nilable(::String), client_version: T.nilable(::String), device_nickname: T.nilable(::String), platform: T.nilable(::String)).void }
def initialize(client_id: nil, pin_id: nil, client_name: nil, client_version: nil, device_nickname: nil, platform: nil)
@client_id = client_id
@pin_id = pin_id
@client_name = client_name
@client_version = client_version
@device_nickname = device_nickname
@platform = platform
end
def ==(other)
return false unless other.is_a? self.class
return false unless @client_id == other.client_id
return false unless @pin_id == other.pin_id
return false unless @client_name == other.client_name
return false unless @client_version == other.client_version
return false unless @device_nickname == other.device_nickname
return false unless @platform == other.platform
true
def ==(other)
return false unless other.is_a? self.class
return false unless @client_id == other.client_id
return false unless @pin_id == other.pin_id
return false unless @client_name == other.client_name
return false unless @client_version == other.client_version
return false unless @device_nickname == other.device_nickname
return false unless @platform == other.platform
true
end
end
end
end