mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-10 04:21:03 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.531.4
This commit is contained in:
@@ -5,72 +5,75 @@
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_PIN_AUTH_PIN_CONTAINER_SERVERS = [
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Requests a new pin id used in the authentication flow
|
||||
class GetPinAuthPinContainer < ::Crystalline::FieldAugmented
|
||||
extend T::Sig
|
||||
module Models
|
||||
module Operations
|
||||
GET_PIN_AUTH_PIN_CONTAINER_SERVERS = [
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Requests a new pin id used in the authentication flow
|
||||
class GetPinAuthPinContainer
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The X-Client-Identifier used in the request
|
||||
field :client_identifier, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('clientIdentifier') } }
|
||||
# The X-Client-Identifier used in the request
|
||||
field :client_identifier, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('clientIdentifier') } }
|
||||
|
||||
field :code, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
field :code, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('code') } }
|
||||
|
||||
field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('createdAt'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
||||
field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('createdAt'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
||||
|
||||
field :expires_at, ::DateTime, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('expiresAt'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
||||
# The number of seconds this pin expires, by default 900 seconds
|
||||
field :expires_in, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('expiresIn') } }
|
||||
field :expires_at, ::DateTime, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('expiresAt'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
||||
# The number of seconds this pin expires, by default 900 seconds
|
||||
field :expires_in, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('expiresIn') } }
|
||||
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# Geo location data
|
||||
field :location, ::PlexRubySDK::Operations::GeoData, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('location') } }
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# Geo location data
|
||||
field :location, Models::Operations::GeoData, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('location') } }
|
||||
|
||||
field :product, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('product') } }
|
||||
field :product, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('product') } }
|
||||
|
||||
field :qr, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('qr') } }
|
||||
field :qr, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('qr') } }
|
||||
|
||||
field :trusted, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('trusted') } }
|
||||
field :trusted, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('trusted') } }
|
||||
|
||||
field :auth_token, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('authToken') } }
|
||||
field :auth_token, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('authToken') } }
|
||||
|
||||
field :new_registration, T.nilable(::Object), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('newRegistration') } }
|
||||
field :new_registration, T.nilable(::Object), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('newRegistration') } }
|
||||
|
||||
|
||||
sig { params(client_identifier: ::String, code: ::String, created_at: ::DateTime, expires_at: ::DateTime, expires_in: ::Integer, id: ::Integer, location: ::PlexRubySDK::Operations::GeoData, product: ::String, qr: ::String, trusted: T::Boolean, auth_token: T.nilable(::String), new_registration: T.nilable(::Object)).void }
|
||||
def initialize(client_identifier: nil, code: nil, created_at: nil, expires_at: nil, expires_in: nil, id: nil, location: nil, product: nil, qr: nil, trusted: nil, auth_token: nil, new_registration: nil)
|
||||
@client_identifier = client_identifier
|
||||
@code = code
|
||||
@created_at = created_at
|
||||
@expires_at = expires_at
|
||||
@expires_in = expires_in
|
||||
@id = id
|
||||
@location = location
|
||||
@product = product
|
||||
@qr = qr
|
||||
@trusted = trusted
|
||||
@auth_token = auth_token
|
||||
@new_registration = new_registration
|
||||
end
|
||||
sig { params(client_identifier: ::String, code: ::String, created_at: ::DateTime, expires_at: ::DateTime, expires_in: ::Integer, id: ::Integer, location: Models::Operations::GeoData, product: ::String, qr: ::String, trusted: T::Boolean, auth_token: T.nilable(::String), new_registration: T.nilable(::Object)).void }
|
||||
def initialize(client_identifier: nil, code: nil, created_at: nil, expires_at: nil, expires_in: nil, id: nil, location: nil, product: nil, qr: nil, trusted: nil, auth_token: nil, new_registration: nil)
|
||||
@client_identifier = client_identifier
|
||||
@code = code
|
||||
@created_at = created_at
|
||||
@expires_at = expires_at
|
||||
@expires_in = expires_in
|
||||
@id = id
|
||||
@location = location
|
||||
@product = product
|
||||
@qr = qr
|
||||
@trusted = trusted
|
||||
@auth_token = auth_token
|
||||
@new_registration = new_registration
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @client_identifier == other.client_identifier
|
||||
return false unless @code == other.code
|
||||
return false unless @created_at == other.created_at
|
||||
return false unless @expires_at == other.expires_at
|
||||
return false unless @expires_in == other.expires_in
|
||||
return false unless @id == other.id
|
||||
return false unless @location == other.location
|
||||
return false unless @product == other.product
|
||||
return false unless @qr == other.qr
|
||||
return false unless @trusted == other.trusted
|
||||
return false unless @auth_token == other.auth_token
|
||||
return false unless @new_registration == other.new_registration
|
||||
true
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @client_identifier == other.client_identifier
|
||||
return false unless @code == other.code
|
||||
return false unless @created_at == other.created_at
|
||||
return false unless @expires_at == other.expires_at
|
||||
return false unless @expires_in == other.expires_in
|
||||
return false unless @id == other.id
|
||||
return false unless @location == other.location
|
||||
return false unless @product == other.product
|
||||
return false unless @qr == other.qr
|
||||
return false unless @trusted == other.trusted
|
||||
return false unless @auth_token == other.auth_token
|
||||
return false unless @new_registration == other.new_registration
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user