module Fog::Rackspace::Queues::Common

Public Instance Methods

apply_options(options) click to toggle source
# File lib/fog/rackspace/queues.rb, line 45
def apply_options(options)
  @rackspace_api_key = options[:rackspace_api_key]
  @rackspace_username = options[:rackspace_username]
  @rackspace_queues_client_id = options[:rackspace_queues_client_id] || Fog::UUID.uuid
  @rackspace_auth_url = options[:rackspace_auth_url]
  @rackspace_queues_url = options[:rackspace_queues_url]
  @rackspace_must_reauthenticate = false
  @connection_options = options[:connection_options] || {}
  @rackspace_region = options[: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={}) click to toggle source
Calls superclass method
# File lib/fog/rackspace/queues.rb, line 78
def authenticate(options={})
  super({
    :rackspace_api_key  => @rackspace_api_key,
    :rackspace_username => @rackspace_username,
    :rackspace_auth_url => @rackspace_auth_url,
    :connection_options => @connection_options
  })
end
client_id() click to toggle source
# File lib/fog/rackspace/queues.rb, line 87
def client_id
  @rackspace_queues_client_id
end
client_id=(client_id) click to toggle source
# 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) click to toggle source
Calls superclass method
# 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() click to toggle source
# File lib/fog/rackspace/queues.rb, line 70
def region
  @rackspace_region
end
service_name() click to toggle source
# File lib/fog/rackspace/queues.rb, line 66
def service_name
  :cloudQueues
end