1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/rackspace/requests/storage/head_cdn_container.rb

42 lines
1.1 KiB
Ruby
Raw Normal View History

module Fog
module Rackspace
class Storage
class Real
# List cdn properties for a container
#
# ==== Parameters
# * container<~String> - Name of container to retrieve info for
#
# ==== Returns
# * response<~Excon::Response>:
# * headers<~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)
# * 'X-Log-Retention'<~Boolean> - ?
# * 'X-User-Agent-ACL'<~String> - ?
# * 'X-Referrer-ACL'<~String> - ?
def head_cdn_container(container)
response = cdn_request(
:expects => 204,
:method => 'HEAD',
:path => container,
:query => {'format' => 'json'}
)
response
end
end
class Mock
def head_cdn_container(container)
Fog::Mock.not_implemented
end
end
end
end
end