Method: Azure::Queue::QueueService#set_queue_acl
- Defined in:
- lib/azure/queue/queue_service.rb
#set_queue_acl(queue_name, options = {}) ⇒ Object
Public: Sets the access control list (ACL) for the queue.
Attributes
-
queue_name- String. The queue name. -
options- Hash. Optional parameters.
Options
Accepted key/value pairs in options parameter are:
-
:signed_identifiers- Array. A list of Azure::Entity::SignedIdentifier instances -
:timeout- Integer. A timeout in seconds.
See msdn.microsoft.com/en-us/library/azure/jj159099
Returns nil on success
268 269 270 271 272 273 274 275 276 277 278 |
# File 'lib/azure/queue/queue_service.rb', line 268 def set_queue_acl(queue_name, ={}) query = { "comp" => "acl" } query["timeout"] = [:timeout].to_s if [:timeout] uri =queue_uri(queue_name, query) body = nil body = Serialization.signed_identifiers_to_xml([:signed_identifiers]) if [:signed_identifiers] && [:signed_identifiers].length > 0 call(:put, uri, body, {}) nil end |