il2_rest/client.py
def permit_apps(self, apps_to_permit) :
        """
        Add apps to the permitted list for the chain.

        Args:
            apps_to_permit (:obj:`list` of :obj:`int`): List of apps (by number) to be permitted.

        Returns:
            :obj:`list` of :obj:`int`: Enumerate apps that are currently permitted on this chain.

        Example:
            >>> node = RestNode(cert_file='recorder.pfx', cert_pass='password', port=32020)
            >>> chain = node.chain_by_id('A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE')
            >>> apps = chain.permit_apps([4])
            >>> print(apps)
            [4]
        """
        return self.__rest._post(f"/chain/{self.id}/activeApps", apps_to_permit)

        Add apps to the permitted list for the chain.

        Args:
            apps_to_permit (:obj:`list` of :obj:`int`): List of apps (by number) to be permitted.

        Returns:
            :obj:`list` of :obj:`int`: Enumerate apps that are currently permitted on this chain.

        Example:
            >>> node = RestNode(cert_file='recorder.pfx', cert_pass='password', port=32020)
            >>> chain = node.chain_by_id('A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE')
            >>> apps = chain.permit_apps([4])
            >>> print(apps)
            [4]
        
Add apps to the permitted list for the chain.
Add apps to the permitted list for the chain .
def permit_apps(self, apps_to_permit) :
        return self.__rest._post(f"/chain/{self.id}/activeApps", apps_to_permit)
def permit_apps ( self , apps_to_permit ) : return self . __rest . _post ( f"/chain/{self.id}/activeApps" , apps_to_permit )
Add apps to the permitted list for the chain.
Add apps to the permitted list for the chain .
"""
        Add apps to the permitted list for the chain.

        Args:
            apps_to_permit (:obj:`list` of :obj:`int`): List of apps (by number) to be permitted.

        Returns:
            :obj:`list` of :obj:`int`: Enumerate apps that are currently permitted on this chain.

        Example:
            >>> node = RestNode(cert_file='recorder.pfx', cert_pass='password', port=32020)
            >>> chain = node.chain_by_id('A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE')
            >>> apps = chain.permit_apps([4])
            >>> print(apps)
            [4]
        """
:obj:`list` of :obj:`int`: Enumerate apps that are currently permitted on this chain.
: obj : ` list ` of : obj : ` int ` : Enumerate apps that are currently permitted on this chain .
self
apps_to_permit
apps_to_permit (
`list` of :obj:`int`): List of apps (by number) to be permitted.
` list ` of : obj : ` int ` ) : List of apps ( by number ) to be permitted .
examples
>>> node = RestNode(cert_file='recorder.pfx', cert_pass='password', port=32020)
>>> chain = node.chain_by_id('A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE')
>>> apps = chain.permit_apps([4])
>>> print(apps)
[4]
>>> node = RestNode ( cert_file = ' recorder . pfx ' cert_pass = ' password ' port = 32020 ) >>> chain = node . chain_by_id ( ' A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK - iDKE ' ) >>> apps = chain . permit_apps ( [ 4 ] ) >>> print ( apps ) [ 4 ]