huskar_api/models/route/management.py
def declare_upstream(self, application_names):
        """Declares specified application and cluster as upstream.

        A common situation to call this method is in a service discovery
        session::

            route_management.declare_upstream(["foo.test"])

        :param application_names: A name list of applications.
        """
        service_info = safe_call(self.make_service_info)
        snapshot = service_info.freeze_dependency()
        for application_name in application_names:
            service_info.add_dependency(application_name, self.cluster_name)
        if service_info.freeze_dependency() == snapshot:
            return
        service_info.save()
Declares specified application and cluster as upstream.

        A common situation to call this method is in a service discovery
        session::

            route_management.declare_upstream(["foo.test"])

        :param application_names: A name list of applications.
        
Declares specified application and cluster as upstream.
A common situation to call this method is in a service discovery
session:.


Declares specified application and cluster as upstream . A common situation to call this method is in a service discovery session : .
def declare_upstream(self, application_names):
        service_info = safe_call(self.make_service_info)
        snapshot = service_info.freeze_dependency()
        for application_name in application_names:
            service_info.add_dependency(application_name, self.cluster_name)
        if service_info.freeze_dependency() == snapshot:
            return
        service_info.save()
def declare_upstream ( self , application_names ) : service_info = safe_call ( self . make_service_info ) snapshot = service_info . freeze_dependency ( ) for application_name in application_names : service_info . add_dependency ( application_name , self . cluster_name ) if service_info . freeze_dependency ( ) == snapshot : return service_info . save ( )
Declares specified application and cluster as upstream.
Declares specified application and cluster as upstream .
"""Declares specified application and cluster as upstream.

        A common situation to call this method is in a service discovery
        session::

            route_management.declare_upstream(["foo.test"])

        :param application_names: A name list of applications.
        """
self
application_names
A name list of applications.
A name list of applications .