Files
plexruby/lib/plex_ruby_sdk/models/operations/getpin_response.rb

50 lines
1.9 KiB
Ruby

# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
# typed: true
# frozen_string_literal: true
module PlexRubySDK
module Operations
GET_PIN_RESPONSE_SERVERS = [
'https://plex.tv/api/v2'
].freeze
class GetPinResponse < ::Crystalline::FieldAugmented
extend T::Sig
# HTTP response content type for this operation
field :content_type, ::String
# Raw HTTP response; suitable for custom response parsing
field :raw_response, ::Faraday::Response
# HTTP response status code for this operation
field :status_code, ::Integer
# Requests a new pin id used in the authentication flow
field :auth_pin_container, T.nilable(::PlexRubySDK::Operations::GetPinAuthPinContainer)
# Bad Request - A parameter was not specified, or was specified incorrectly.
field :bad_request, T.nilable(::PlexRubySDK::Operations::GetPinBadRequest)
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, auth_pin_container: T.nilable(::PlexRubySDK::Operations::GetPinAuthPinContainer), bad_request: T.nilable(::PlexRubySDK::Operations::GetPinBadRequest)).void }
def initialize(content_type: nil, raw_response: nil, status_code: nil, auth_pin_container: nil, bad_request: nil)
@content_type = content_type
@raw_response = raw_response
@status_code = status_code
@auth_pin_container = auth_pin_container
@bad_request = bad_request
end
def ==(other)
return false unless other.is_a? self.class
return false unless @content_type == other.content_type
return false unless @raw_response == other.raw_response
return false unless @status_code == other.status_code
return false unless @auth_pin_container == other.auth_pin_container
return false unless @bad_request == other.bad_request
true
end
end
end
end