Sha256: eec07d0f90a8ea394b747ebf5d34a77fa2aef8bbbf7d274729194572bbd081a0

Contents?: true

Size: 1.84 KB

Versions: 2

Compression:

Stored size: 1.84 KB

Contents

# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

# typed: true
# frozen_string_literal: true


module PlexRubySDK
  module Operations
    GET_SERVER_RESOURCES_RESPONSE_SERVERS = [
      'https://plex.tv/api/v2'
    ].freeze
  

    class GetServerResourcesResponse < ::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
      # Bad Request - A parameter was not specified, or was specified incorrectly.
      field :bad_request, T.nilable(::PlexRubySDK::Operations::GetServerResourcesBadRequest)
      # List of Plex Devices. This includes Plex hosted servers and clients
      field :plex_devices, T.nilable(T::Array[::PlexRubySDK::Operations::PlexDevice])
      # Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
      field :unauthorized, T.nilable(::PlexRubySDK::Operations::GetServerResourcesUnauthorized)


      sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::PlexRubySDK::Operations::GetServerResourcesBadRequest), plex_devices: T.nilable(T::Array[::PlexRubySDK::Operations::PlexDevice]), unauthorized: T.nilable(::PlexRubySDK::Operations::GetServerResourcesUnauthorized)).void }
      def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, plex_devices: nil, unauthorized: nil)
        @content_type = content_type
        @raw_response = raw_response
        @status_code = status_code
        @bad_request = bad_request
        @plex_devices = plex_devices
        @unauthorized = unauthorized
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plex_ruby_sdk-0.7.7 lib/plex_ruby_sdk/models/operations/get_server_resources_response.rb
plex_ruby_sdk-0.7.6 lib/plex_ruby_sdk/models/operations/get_server_resources_response.rb