Sha256: 203bba7d4fa39f0c561a62ededb479b8d59a30ab3a258cf5d53b4832be2d4128
Contents?: true
Size: 942 Bytes
Versions: 3
Compression:
Stored size: 942 Bytes
Contents
module Fog module Rackspace class CDN class Real # modify CDN properties 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fog-0.6.0 | lib/fog/cdn/requests/rackspace/put_container.rb |
fog-0.5.3 | lib/fog/cdn/requests/rackspace/put_container.rb |
fog-0.5.2 | lib/fog/cdn/requests/rackspace/put_container.rb |