Return the instance of the hub.
968033
def get_hub():
    """"""
    try:
        hub = _local.hub
    except AttributeError:
        # The Hub can only be instantiated from the root fiber. No other fibers
        # can run until the Hub is there, so the root will always be the first
        # one to call get_hub().
        assert fibers.current().parent is None
        hub = _local.hub = Hub()
    return hub
1212280
def get_instance(self, payload):
        
        return FunctionInstance(self._version, payload, service_sid=self._solution['service_sid'], )
311876
def get_instance(self, payload):
        
        return MemberInstance(
            self._version,
            payload,
            account_sid=self._solution['account_sid'],
            queue_sid=self._solution['queue_sid'],
        )
1330392
def get_instance(self, payload):
        
        return DomainInstance(self._version, payload, account_sid=self._solution['account_sid'], )
1045159
def get_instance(self, payload):
        
        return EventInstance(self._version, payload, workspace_sid=self._solution['workspace_sid'], )
1354780
def get_instance(self, payload):
        
        return NewKeyInstance(self._version, payload, account_sid=self._solution['account_sid'], )
494
def get_instance(self, payload):
        
        return TodayInstance(self._version, payload, account_sid=self._solution['account_sid'], )
924068
def get_instance(self, payload):
        
        return DocumentInstance(self._version, payload, service_sid=self._solution['service_sid'], )
750863
def get_instance(self, payload):
        
        return MessageInstance(
            self._version,
            payload,
            service_sid=self._solution['service_sid'],
            channel_sid=self._solution['channel_sid'],
        )
1068574
def find_instance(self, name, module=None):
        """"""
        module = module if module is not None else ffi.NULL
        definstance = lib.EnvFindInstance(self._env, module, name.encode(), 1)
        if definstance == ffi.NULL:
            raise LookupError("Instance '%s' not found" % name)

        return Instance(self._env, definstance)
426782
def get_group_instance(self, parent):
        """"""
        o = copy.copy(self)
        o.init_instance(parent)
        return o
148136
def get_instance(self, payload):
        
        return FeedbackInstance(
            self._version,
            payload,
            account_sid=self._solution['account_sid'],
            call_sid=self._solution['call_sid'],
        )
978499
def getInstance(self):
        
        try:
            return self._instance
        except AttributeError:
            self._instance = self._decorated()
            return self._instance
127926
def get_instance(self, payload):
        
        return EntityInstance(self._version, payload, service_sid=self._solution['service_sid'], )
1301495
def Instance(self):
        
        try:
            return self._instance
        except AttributeError:
            self._instance = self._decorated()
            return self._instance
1253660
def instance(cls) -> 'MiddlewareManager':
        

        if cls._instance is None:
            cls._instance = cls()
            cls._instance.init()
        return cls._instance
1329758
def get_instance(self, payload):
        
        return WorkerInstance(self._version, payload, workspace_sid=self._solution['workspace_sid'], )