huskar_api/models/auth/application.py
def ensure_auth(self, authority, user_id):
        """Creates an application auth if it does not exist.

        :param authority: ``AUTHORITY_READ`` or ``AUTHORITY_WRITE``
        :param user_id: The id of owner.
        """
        ApplicationAuth.ensure(authority, user_id, self.id)
Creates an application auth if it does not exist.

        :param authority: ``AUTHORITY_READ`` or ``AUTHORITY_WRITE``
        :param user_id: The id of owner.
        
Creates an application auth if it does not exist.
Creates an application auth if it does not exist .
def ensure_auth(self, authority, user_id):
        ApplicationAuth.ensure(authority, user_id, self.id)
def ensure_auth ( self , authority , user_id ) : ApplicationAuth . ensure ( authority , user_id , self . id )
Creates an application auth if it does not exist.
Creates an application auth if it does not exist .
"""Creates an application auth if it does not exist.

        :param authority: ``AUTHORITY_READ`` or ``AUTHORITY_WRITE``
        :param user_id: The id of owner.
        """
self
authority
``AUTHORITY_READ`` or ``AUTHORITY_WRITE``
` ` AUTHORITY_READ ` ` or ` ` AUTHORITY_WRITE ` `
user_id
The id of owner.
The id of owner .