Sha256: e24742e20e8b5ac729ca67f2bbf16f8e914db0c357589ed822664ec4283a7109

Contents?: true

Size: 809 Bytes

Versions: 35

Compression:

Stored size: 809 Bytes

Contents

module Fog
  module CDN
    class AWS
      class Real

        # Delete a streaming distribution from CloudFront
        #
        # ==== Parameters
        # * distribution_id<~String> - Id of distribution to delete
        # * etag<~String> - etag of that distribution from earlier get or put
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/DeleteStreamingDistribution.html

        def delete_streaming_distribution(distribution_id, etag)
          request({
            :expects    => 204,
            :headers    => { 'If-Match' => etag },
            :idempotent => true,
            :method     => 'DELETE',
            :path       => "/streaming-distribution/#{distribution_id}"
          })
        end

      end
    end
  end
end

Version data entries

35 entries across 35 versions & 10 rubygems

Version Path
fog-parser-fix-1.6.1 lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
fog-test-again-1.6.0 lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
fog-parser-fix-1.6.0 lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
fog-1.6.0 lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
fog-1.5.0 lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
rackspace-fog-1.4.2 lib/rackspace-fog/aws/requests/cdn/delete_streaming_distribution.rb
fog-1.4.0 lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
michiels-fog-1.3.1 lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
fog-1.3.1 lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
fog-1.3.0 lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
fog-1.2.0 lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
ktheory-fog-1.1.2 lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/cdn/delete_streaming_distribution.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/cdn/delete_streaming_distribution.rb