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

46 lines
1.8 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 GetBandwidthStatisticsMediaContainer
extend T::Sig
include Crystalline::MetadataFields
field :account, T.nilable(T::Array[Models::Operations::GetBandwidthStatisticsAccount]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Account') } }
field :device, T.nilable(T::Array[Models::Operations::GetBandwidthStatisticsDevice]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Device') } }
field :size, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
field :statistics_bandwidth, T.nilable(T::Array[Models::Operations::StatisticsBandwidth]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('StatisticsBandwidth') } }
sig { params(account: T.nilable(T::Array[Models::Operations::GetBandwidthStatisticsAccount]), device: T.nilable(T::Array[Models::Operations::GetBandwidthStatisticsDevice]), size: T.nilable(::Integer), statistics_bandwidth: T.nilable(T::Array[Models::Operations::StatisticsBandwidth])).void }
def initialize(account: nil, device: nil, size: nil, statistics_bandwidth: nil)
@account = account
@device = device
@size = size
@statistics_bandwidth = statistics_bandwidth
end
def ==(other)
return false unless other.is_a? self.class
return false unless @account == other.account
return false unless @device == other.device
return false unless @size == other.size
return false unless @statistics_bandwidth == other.statistics_bandwidth
true
end
end
end
end
end