lib/azure/service/storage_service.rb in azure-0.6.4 vs lib/azure/service/storage_service.rb in azure-0.7.0.pre
- old
+ new
@@ -27,33 +27,33 @@
end
# Public: Get Storage Service properties
#
- # See http://msdn.microsoft.com/en-us/library/windowsazure/hh452239
- # See http://msdn.microsoft.com/en-us/library/windowsazure/hh452243
+ # See http://msdn.microsoft.com/en-us/library/azure/hh452239
+ # See http://msdn.microsoft.com/en-us/library/azure/hh452243
#
# Returns a Hash with the service properties or nil if the operation failed
def get_service_properties
uri = service_properties_uri
- response = call(:get, uri)
+ response = call(:get, uri, nil, service_properties_headers)
Serialization.service_properties_from_xml response.body
end
# Public: Set Storage Service properties
#
# service_properties - An instance of Azure::Entity::Service::StorageServiceProperties
#
- # See http://msdn.microsoft.com/en-us/library/windowsazure/hh452235
- # See http://msdn.microsoft.com/en-us/library/windowsazure/hh452232
+ # See http://msdn.microsoft.com/en-us/library/azure/hh452235
+ # See http://msdn.microsoft.com/en-us/library/azure/hh452232
#
# Returns boolean indicating success.
def set_service_properties(service_properties)
body = Serialization.service_properties_to_xml service_properties
uri = service_properties_uri
- call(:put, uri, body)
+ call(:put, uri, body, service_properties_headers)
nil
end
# Public: Generate the URI for the service properties
#
@@ -71,9 +71,13 @@
# headers - A Hash of HTTP headers
def add_metadata_to_headers(metadata, headers)
metadata.each do |key, value|
headers["x-ms-meta-#{key}"] = value
end
+ end
+
+ def service_properties_headers
+ {"x-ms-version" => "2013-08-15"}
end
end
end
end
\ No newline at end of file