Sha256: c9baa4a65cf7cc9a02275b47d987f83004e983db2bd0644cabc720e9fe8b7e77
Contents?: true
Size: 931 Bytes
Versions: 6
Compression:
Stored size: 931 Bytes
Contents
module Fog module Rackspace class CDN class Real # enable CDN for a container # # ==== Parameters # * name<~String> - Name for container, should be < 256 bytes and must not contain '/' # # options<~Hash>: # * 'X-CDN-Enabled'<~Boolean> - cdn status for container # * 'X-CDN-URI'<~String> - cdn url for this container # * 'X-TTL'<~String> - integer seconds before data expires, defaults to 86400 (1 day), in 3600..259200 # * 'X-Log-Retention'<~Boolean> - ? # * 'X-User-Agent-ACL'<~String> - ? # * 'X-Referrer-ACL'<~String> - ? def put_container(name, options = {}) response = request( :expects => [201, 202], :headers => options, :method => 'PUT', :path => CGI.escape(name) ) response end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems