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
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/fog/rackspace/queues.rb', line 45 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_queues_url = [:rackspace_queues_url] @rackspace_must_reauthenticate = false @connection_options = [:connection_options] || {} @rackspace_region = [:rackspace_region] unless v2_authentication? raise Fog::Errors::NotImplemented.new("V2 authentication required for Queues") end unless @rackspace_region || @rackspace_queues_url Fog::Logger.deprecation("Default region support will be removed in an upcoming release. Please switch to manually setting your endpoint. This requires settng the :rackspace_region option.") end @rackspace_region ||= :ord end |
#authenticate(options = {}) ⇒ Object
78 79 80 81 82 83 84 85 |
# File 'lib/fog/rackspace/queues.rb', line 78 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
87 88 89 |
# File 'lib/fog/rackspace/queues.rb', line 87 def client_id @rackspace_queues_client_id end |
#client_id=(client_id) ⇒ Object
91 92 93 |
# File 'lib/fog/rackspace/queues.rb', line 91 def client_id=(client_id) @rackspace_queues_client_id = client_id end |
#endpoint_uri(service_endpoint_url = nil) ⇒ Object
74 75 76 |
# File 'lib/fog/rackspace/queues.rb', line 74 def endpoint_uri(service_endpoint_url=nil) @uri = super(@rackspace_queues_url || service_endpoint_url, :rackspace_queues_url) end |
#region ⇒ Object
70 71 72 |
# File 'lib/fog/rackspace/queues.rb', line 70 def region @rackspace_region end |
#service_name ⇒ Object
66 67 68 |
# File 'lib/fog/rackspace/queues.rb', line 66 def service_name :cloudQueues end |