# Path: hyperadmin/apirequests.py
# class InternalAPIRequest(APIRequest):
#     """
#     An Internal API Request
#     """
#     def __init__(self, site, path='/', url_args=[], url_kwargs={}, **kwargs):
#         super(InternalAPIRequest, self).__init__(site, path, url_args, url_kwargs)
#         kwargs.setdefault('method', 'GET')
#         kwargs.setdefault('params', {})
#         kwargs.setdefault('payload', {})
#         kwargs.setdefault('full_path', path)
#         for key, val in kwargs.iteritems():
#             setattr(self, key, val)
#         self.session_state.update(self.get_session_data())
# 
#     def get_full_path(self):
#         return self.full_path
# 
#     def get_django_request(self):
#         return self.request
# 
#     def get_session_data(self):
#         data = {'endpoints': {},
#                 'resources': {},
#                 #'request': request,
#                 'meta': {
#                     'CONTENT_TYPE':'application/vnd.Collection.hyperadmin+JSON',
#                 },
#                 'extra_get_params':{},}
#         if hasattr(self, 'user'):
#             data['auth'] = self.user
#         return data


    from django.conf.urls import patterns, url
    from django.conf.urls.defaults import patterns, url
from django.views.generic import TemplateView
from django.core.urlresolvers import reverse
from hyperadmin.apirequests import InternalAPIRequest
import logging
try:
except ImportError:




class Client(object):
    default_namespace = 'hyper-client'
    default_app_name = 'client'
    

# Path: hyperadmin/apirequests.py
# class InternalAPIRequest(APIRequest):
#     """
#     An Internal API Request
#     """
#     def __init__(self, site, path='/', url_args=[], url_kwargs={}, **kwargs):
#         super(InternalAPIRequest, self).__init__(site, path, url_args, url_kwargs)
#         kwargs.setdefault('method', 'GET')
#         kwargs.setdefault('params', {})
#         kwargs.setdefault('payload', {})
#         kwargs.setdefault('full_path', path)
#         for key, val in kwargs.iteritems():
#             setattr(self, key, val)
#         self.session_state.update(self.get_session_data())
# 
#     def get_full_path(self):
#         return self.full_path
# 
#     def get_django_request(self):
#         return self.request
# 
#     def get_session_data(self):
#         data = {'endpoints': {},
#                 'resources': {},
#                 #'request': request,
#                 'meta': {
#                     'CONTENT_TYPE':'application/vnd.Collection.hyperadmin+JSON',
#                 },
#                 'extra_get_params':{},}
#         if hasattr(self, 'user'):
#             data['auth'] = self.user
#         return data


# Path: hyperadmin/clients/common.py
    from django.conf.urls import patterns, url
    from django.conf.urls.defaults import patterns, url
from django.views.generic import TemplateView
from django.core.urlresolvers import reverse
from hyperadmin.apirequests import InternalAPIRequest
import logging

try:
except ImportError:




class Client(object):
    default_namespace = 'hyper-client'
    default_app_name = 'client'
    

    def __init__(self, api_endpoint, name=None, app_name=None):