2012-09-26 12:51:00 -04:00
|
|
|
require 'fog/core/collection'
|
|
|
|
require 'fog/aws/models/cdn/streaming_distribution'
|
|
|
|
require 'fog/aws/models/cdn/distributions_helper'
|
|
|
|
|
|
|
|
module Fog
|
|
|
|
module CDN
|
|
|
|
class AWS
|
|
|
|
|
|
|
|
class StreamingDistributions < Fog::Collection
|
|
|
|
include Fog::CDN::AWS::DistributionsHelper
|
|
|
|
|
|
|
|
model Fog::CDN::AWS::StreamingDistribution
|
|
|
|
|
|
|
|
attribute :marker, :aliases => 'Marker'
|
|
|
|
attribute :max_items, :aliases => 'MaxItems'
|
|
|
|
attribute :is_truncated, :aliases => 'IsTruncated'
|
|
|
|
|
|
|
|
def get_distribution(dist_id)
|
2012-12-22 18:31:58 -05:00
|
|
|
service.get_streaming_distribution(dist_id)
|
2012-09-26 12:51:00 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def list_distributions(options = {})
|
2012-12-22 18:31:58 -05:00
|
|
|
service.get_streaming_distribution_list(options)
|
2012-09-26 12:51:00 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
alias :each_distribution_this_page :each
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|