Module: Fog::Rackspace::Queues::Common
Instance Method Summary collapse
- #apply_options(options) ⇒ Object
- #authenticate(options = {}) ⇒ Object
- #client_id ⇒ Object
- #client_id=(client_id) ⇒ Object
- #endpoint_uri(service_endpoint_url = nil) ⇒ Object
- #region ⇒ Object
- #service_name ⇒ Object
Instance Method Details
#apply_options(options) ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/fog/rackspace/queues.rb', line 46 def () @rackspace_api_key = [:rackspace_api_key] @rackspace_username = [:rackspace_username] @rackspace_queues_client_id = [:rackspace_queues_client_id] || Fog::UUID.uuid @rackspace_auth_url = [:rackspace_auth_url] @rackspace_must_reauthenticate = false @connection_options = [:connection_options] || {} @rackspace_region = [:rackspace_region] || :ord unless v2_authentication? raise Fog::Errors::NotImplemented.new("V2 authentication required for Queues") end end |
#authenticate(options = {}) ⇒ Object
72 73 74 75 76 77 78 79 |
# File 'lib/fog/rackspace/queues.rb', line 72 def authenticate(={}) super({ :rackspace_api_key => @rackspace_api_key, :rackspace_username => @rackspace_username, :rackspace_auth_url => @rackspace_auth_url, :connection_options => @connection_options }) end |
#client_id ⇒ Object
81 82 83 |
# File 'lib/fog/rackspace/queues.rb', line 81 def client_id @rackspace_queues_client_id end |
#client_id=(client_id) ⇒ Object
85 86 87 |
# File 'lib/fog/rackspace/queues.rb', line 85 def client_id=(client_id) @rackspace_queues_client_id = client_id end |
#endpoint_uri(service_endpoint_url = nil) ⇒ Object
68 69 70 |
# File 'lib/fog/rackspace/queues.rb', line 68 def endpoint_uri(service_endpoint_url=nil) @uri = super(@rackspace_endpoint || service_endpoint_url, :rackspace_queues_url) end |
#region ⇒ Object
64 65 66 |
# File 'lib/fog/rackspace/queues.rb', line 64 def region @rackspace_region end |
#service_name ⇒ Object
60 61 62 |
# File 'lib/fog/rackspace/queues.rb', line 60 def service_name :cloudQueues end |