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

57 lines
1.9 KiB
Ruby

# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
# typed: true
# frozen_string_literal: true
module PlexRubySDK
module Models
module Operations
GET_USERS_MEDIA_CONTAINER_SERVERS = [
'https://plex.tv/api'
].freeze
# Container holding user and server details.
class GetUsersMediaContainer
extend T::Sig
include Crystalline::MetadataFields
# The friendly name of the Plex instance.
field :friendly_name, ::String
field :identifier, ::String
# Unique Machine identifier of the Plex server.
field :machine_identifier, ::String
# Number of users in the current response.
field :size, ::Integer
# Total number of users.
field :total_size, ::Integer
# List of users with access to the Plex server.
field :user, T::Array[Models::Operations::User]
sig { params(friendly_name: ::String, identifier: ::String, machine_identifier: ::String, size: ::Integer, total_size: ::Integer, user: T::Array[Models::Operations::User]).void }
def initialize(friendly_name: nil, identifier: nil, machine_identifier: nil, size: nil, total_size: nil, user: nil)
@friendly_name = friendly_name
@identifier = identifier
@machine_identifier = machine_identifier
@size = size
@total_size = total_size
@user = user
end
def ==(other)
return false unless other.is_a? self.class
return false unless @friendly_name == other.friendly_name
return false unless @identifier == other.identifier
return false unless @machine_identifier == other.machine_identifier
return false unless @size == other.size
return false unless @total_size == other.total_size
return false unless @user == other.user
true
end
end
end
end
end