mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 12:47:44 +00:00
52 lines
1.7 KiB
Ruby
52 lines
1.7 KiB
Ruby
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
# typed: true
|
|
# frozen_string_literal: true
|
|
|
|
|
|
module PlexRubySDK
|
|
module Operations
|
|
GET_USERS_SERVER_SERVERS = [
|
|
'https://plex.tv/api'
|
|
].freeze
|
|
|
|
|
|
class GetUsersServer < ::Crystalline::FieldAugmented
|
|
extend T::Sig
|
|
|
|
|
|
field :all_libraries, ::PlexRubySDK::Operations::AllLibraries
|
|
# Unique ID of the server of the connected user
|
|
field :id, ::Integer
|
|
|
|
field :last_seen_at, ::Integer
|
|
# Machine identifier of the Plex server.
|
|
field :machine_identifier, ::String
|
|
# Name of the Plex server of the connected user.
|
|
field :name, ::String
|
|
# Number of libraries in the server this user has access to.
|
|
field :num_libraries, ::Integer
|
|
|
|
field :owned, ::PlexRubySDK::Operations::Owned
|
|
|
|
field :pending, ::PlexRubySDK::Operations::Pending
|
|
# ID of the actual Plex server.
|
|
field :server_id, ::Integer
|
|
|
|
|
|
sig { params(all_libraries: ::PlexRubySDK::Operations::AllLibraries, id: ::Integer, last_seen_at: ::Integer, machine_identifier: ::String, name: ::String, num_libraries: ::Integer, owned: ::PlexRubySDK::Operations::Owned, pending: ::PlexRubySDK::Operations::Pending, server_id: ::Integer).void }
|
|
def initialize(all_libraries: nil, id: nil, last_seen_at: nil, machine_identifier: nil, name: nil, num_libraries: nil, owned: nil, pending: nil, server_id: nil)
|
|
@all_libraries = all_libraries
|
|
@id = id
|
|
@last_seen_at = last_seen_at
|
|
@machine_identifier = machine_identifier
|
|
@name = name
|
|
@num_libraries = num_libraries
|
|
@owned = owned
|
|
@pending = pending
|
|
@server_id = server_id
|
|
end
|
|
end
|
|
end
|
|
end
|