mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 12:47:44 +00:00
48 lines
1.4 KiB
Ruby
48 lines
1.4 KiB
Ruby
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
# typed: true
|
|
# frozen_string_literal: true
|
|
|
|
|
|
module PlexRubySDK
|
|
module Models
|
|
module Operations
|
|
|
|
|
|
class LogLineRequest
|
|
extend T::Sig
|
|
include Crystalline::MetadataFields
|
|
|
|
# An integer log level to write to the PMS log with.
|
|
# 0: Error
|
|
# 1: Warning
|
|
# 2: Info
|
|
# 3: Debug
|
|
# 4: Verbose
|
|
#
|
|
field :level, Models::Operations::Level, { 'query_param': { 'field_name': 'level', 'style': 'form', 'explode': true } }
|
|
# The text of the message to write to the log.
|
|
field :message, ::String, { 'query_param': { 'field_name': 'message', 'style': 'form', 'explode': true } }
|
|
# a string indicating the source of the message.
|
|
field :source, ::String, { 'query_param': { 'field_name': 'source', 'style': 'form', 'explode': true } }
|
|
|
|
|
|
sig { params(level: Models::Operations::Level, message: ::String, source: ::String).void }
|
|
def initialize(level: nil, message: nil, source: nil)
|
|
@level = level
|
|
@message = message
|
|
@source = source
|
|
end
|
|
|
|
def ==(other)
|
|
return false unless other.is_a? self.class
|
|
return false unless @level == other.level
|
|
return false unless @message == other.message
|
|
return false unless @source == other.source
|
|
true
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|