Пример #1
0
 def enterprise_delete(self, response_choice=1, callback=None, **kwargs):
     raise BambouHTTPError(MockNuageConnection(status_code='500', reason='Server exception', errors={'description': 'Unable to delete entity'}))
Пример #2
0
 def me_create_child(self, nurest_object, response_choice=None, callback=None, commit=True, **kwargs):
     raise BambouHTTPError(MockNuageConnection(status_code='500', reason='Server exception', errors={'description': 'Unable to create entity'}))
Пример #3
0
 def group_assign(self, objects, nurest_object_type, callback=None, commit=True, **kwargs):
     raise BambouHTTPError(MockNuageConnection(status_code='500', reason='Server exception', errors={'description': 'Unable to remove member'}))
Пример #4
0
 def enterprise_failed_fetch(self, callback=None, **kwargs):
     raise BambouHTTPError(MockNuageConnection(status_code='404', reason='Not Found', errors={'description': 'Entity not found'}))
Пример #5
0
        def enterprises_failed_get_first(self, filter=None, order_by=None, group_by=None, page=None, page_size=None, query_parameters=None, commit=True,
                                         callback=None, **kwargs):
            group_by = [] if group_by is None else group_by

            raise BambouHTTPError(MockNuageConnection(status_code='404', reason='Not Found', errors={'description': 'Entity not found'}))
Пример #6
0
 def failed_session_start(self):
     raise BambouHTTPError(MockNuageConnection(status_code='401', reason='Unauthorized', errors={}))