Sha256: c8aab489819eaf5096ebf53bc9a9a16e68d6107ca95f823e6d89934de6a1b3bd

Contents?: true

Size: 819 Bytes

Versions: 40

Compression:

Stored size: 819 Bytes

Contents

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)
          service.get_streaming_distribution(dist_id)
        end

        def list_distributions(options = {})
          service.get_streaming_distribution_list(options)
        end

        alias_method :each_distribution_this_page, :each
        alias_method :each, :each_distribution
      end
    end
  end
end

Version data entries

40 entries across 38 versions & 3 rubygems

Version Path
fog-aws-3.2.0 lib/fog/aws/models/cdn/streaming_distributions.rb
fog-aws-3.1.0 lib/fog/aws/models/cdn/streaming_distributions.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/lib/fog/aws/models/cdn/streaming_distributions.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-aws-2.0.1/lib/fog/aws/models/cdn/streaming_distributions.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-aws-2.0.1/lib/fog/aws/models/cdn/streaming_distributions.rb
fog-aws-3.0.0 lib/fog/aws/models/cdn/streaming_distributions.rb
fog-aws-2.0.1 lib/fog/aws/models/cdn/streaming_distributions.rb
fog-aws-2.0.0 lib/fog/aws/models/cdn/streaming_distributions.rb
fog-aws-1.4.1 lib/fog/aws/models/cdn/streaming_distributions.rb
fog-aws-1.4.0 lib/fog/aws/models/cdn/streaming_distributions.rb
fog-aws-1.3.0 lib/fog/aws/models/cdn/streaming_distributions.rb
fog-aws-1.2.1 lib/fog/aws/models/cdn/streaming_distributions.rb
fog-aws-1.2.0 lib/fog/aws/models/cdn/streaming_distributions.rb
fog-aws-1.1.0 lib/fog/aws/models/cdn/streaming_distributions.rb
fog-aws-1.0.0 lib/fog/aws/models/cdn/streaming_distributions.rb
fog-aws-0.13.0 lib/fog/aws/models/cdn/streaming_distributions.rb
fog-aws-0.12.0 lib/fog/aws/models/cdn/streaming_distributions.rb
fog-aws-0.11.0 lib/fog/aws/models/cdn/streaming_distributions.rb
fog-aws-0.10.0 lib/fog/aws/models/cdn/streaming_distributions.rb
fog-aws-0.9.4 lib/fog/aws/models/cdn/streaming_distributions.rb