il2_rest/client.py
def force_interlock(self, model) : 
        """
        Forces an interlock on a target chain.

        Args:
            model (:obj:`il2_rest.models.ForceInterlockModel`): Force interlock command details.

        Returns:
            :obj:`il2_rest.models.InterlockingRecordModel`: Interlocking details.
        Example:
            >>> node = RestNode(cert_file='mykeymanager.pfx', cert_pass='password', port=32020)
            >>> chain = node.chain_by_id('VzCJczfgBeIiIBlnTRbmtsPriqwrkHqtF2yt8nhTcjM')
            >>> model = ForceInterlockModel(targetChain='8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w')
            >>> interlocks = chain.force_interlock(model)
            >>> for il in interlocks :
            ...     print(il)
            ...
            Interlocked chain 8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w at record #14 (offset: 13671) with hash RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256
            {
                "applicationId": 3,
                "chainId": "VzCJczfgBeIiIBlnTRbmtsPriqwrkHqtF2yt8nhTcjM",
                "createdAt": "2020-02-19T22:22:02.924546-03:46",
                "hash": "pGNSXOoI822Y_7F1ZNXw-xO02ufXXbrQjNXpTMkZJpQ#SHA256",
                "payloadTagId": 600,
                "serial": 7,
                "type": "Data",
                "version": 2,
                "payloadBytes": "+QFgUgUBACsjAAEA8fox30W54ZkzM+shfUeU5C7ad+/fsf5nICwNpkCUk5wKDgr5NG8nIgEARyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo=",
                "interlockedChainId": "8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w",
                "interlockedRecordHash": "RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256",
                "interlockedRecordOffset": 13671,
                "interlockedRecordSerial": 14
            }            
        """
        return InterlockingRecordModel.from_json(self.__rest._post(f"/chain/{self.id}/interlockings", model))

        Forces an interlock on a target chain.

        Args:
            model (:obj:`il2_rest.models.ForceInterlockModel`): Force interlock command details.

        Returns:
            :obj:`il2_rest.models.InterlockingRecordModel`: Interlocking details.
        Example:
            >>> node = RestNode(cert_file='mykeymanager.pfx', cert_pass='password', port=32020)
            >>> chain = node.chain_by_id('VzCJczfgBeIiIBlnTRbmtsPriqwrkHqtF2yt8nhTcjM')
            >>> model = ForceInterlockModel(targetChain='8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w')
            >>> interlocks = chain.force_interlock(model)
            >>> for il in interlocks :
            ...     print(il)
            ...
            Interlocked chain 8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w at record #14 (offset: 13671) with hash RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256
            {
                "applicationId": 3,
                "chainId": "VzCJczfgBeIiIBlnTRbmtsPriqwrkHqtF2yt8nhTcjM",
                "createdAt": "2020-02-19T22:22:02.924546-03:46",
                "hash": "pGNSXOoI822Y_7F1ZNXw-xO02ufXXbrQjNXpTMkZJpQ#SHA256",
                "payloadTagId": 600,
                "serial": 7,
                "type": "Data",
                "version": 2,
                "payloadBytes": "+QFgUgUBACsjAAEA8fox30W54ZkzM+shfUeU5C7ad+/fsf5nICwNpkCUk5wKDgr5NG8nIgEARyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo=",
                "interlockedChainId": "8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w",
                "interlockedRecordHash": "RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256",
                "interlockedRecordOffset": 13671,
                "interlockedRecordSerial": 14
            }            
        
Forces an interlock on a target chain.
Forces an interlock on a target chain .
def force_interlock(self, model) : 
        return InterlockingRecordModel.from_json(self.__rest._post(f"/chain/{self.id}/interlockings", model))
def force_interlock ( self , model ) : return InterlockingRecordModel . from_json ( self . __rest . _post ( f"/chain/{self.id}/interlockings" , model ) )
Forces an interlock on a target chain.
Forces an interlock on a target chain .
"""
        Forces an interlock on a target chain.

        Args:
            model (:obj:`il2_rest.models.ForceInterlockModel`): Force interlock command details.

        Returns:
            :obj:`il2_rest.models.InterlockingRecordModel`: Interlocking details.
        Example:
            >>> node = RestNode(cert_file='mykeymanager.pfx', cert_pass='password', port=32020)
            >>> chain = node.chain_by_id('VzCJczfgBeIiIBlnTRbmtsPriqwrkHqtF2yt8nhTcjM')
            >>> model = ForceInterlockModel(targetChain='8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w')
            >>> interlocks = chain.force_interlock(model)
            >>> for il in interlocks :
            ...     print(il)
            ...
            Interlocked chain 8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w at record #14 (offset: 13671) with hash RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256
            {
                "applicationId": 3,
                "chainId": "VzCJczfgBeIiIBlnTRbmtsPriqwrkHqtF2yt8nhTcjM",
                "createdAt": "2020-02-19T22:22:02.924546-03:46",
                "hash": "pGNSXOoI822Y_7F1ZNXw-xO02ufXXbrQjNXpTMkZJpQ#SHA256",
                "payloadTagId": 600,
                "serial": 7,
                "type": "Data",
                "version": 2,
                "payloadBytes": "+QFgUgUBACsjAAEA8fox30W54ZkzM+shfUeU5C7ad+/fsf5nICwNpkCUk5wKDgr5NG8nIgEARyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo=",
                "interlockedChainId": "8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w",
                "interlockedRecordHash": "RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256",
                "interlockedRecordOffset": 13671,
                "interlockedRecordSerial": 14
            }            
        """
:obj:`il2_rest.models.InterlockingRecordModel`: Interlocking details.
: obj : ` il2_rest . models . InterlockingRecordModel ` : Interlocking details .
self
model
model (
`il2_rest.models.ForceInterlockModel`): Force interlock command details.
` il2_rest . models . ForceInterlockModel ` ) : Force interlock command details .
examples
>>> node = RestNode(cert_file='mykeymanager.pfx', cert_pass='password', port=32020)
>>> chain = node.chain_by_id('VzCJczfgBeIiIBlnTRbmtsPriqwrkHqtF2yt8nhTcjM')
>>> model = ForceInterlockModel(targetChain='8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w')
>>> interlocks = chain.force_interlock(model)
>>> for il in interlocks :
print(il)

Interlocked chain 8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w at record #14 (offset: 13671) with hash RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256
{
"applicationId": 3,
"chainId": "VzCJczfgBeIiIBlnTRbmtsPriqwrkHqtF2yt8nhTcjM",
"createdAt": "2020-02-19T22:22:02.924546-03:46",
"hash": "pGNSXOoI822Y_7F1ZNXw-xO02ufXXbrQjNXpTMkZJpQ#SHA256",
"payloadTagId": 600,
"serial": 7,
"type": "Data",
"version": 2,
"payloadBytes": "+QFgUgUBACsjAAEA8fox30W54ZkzM+shfUeU5C7ad+/fsf5nICwNpkCUk5wKDgr5NG8nIgEARyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo=",
"interlockedChainId": "8fox30W54ZkzM-shfUeU5C7ad-_fsf5nICwNpkCUk5w",
"interlockedRecordHash": "RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256",
"interlockedRecordOffset": 13671,
"interlockedRecordSerial": 14
}
>>> node = RestNode ( cert_file = ' mykeymanager . pfx ' cert_pass = ' password ' port = 32020 ) >>> chain = node . chain_by_id ( ' VzCJczfgBeIiIBlnTRbmtsPriqwrkHqtF2yt8nhTcjM ' ) >>> model = ForceInterlockModel ( targetChain = ' 8fox30W54ZkzM - shfUeU5C7ad - _fsf5nICwNpkCUk5w ' ) >>> interlocks = chain . force_interlock ( model ) >>> for il in interlocks : print ( il ) Interlocked chain 8fox30W54ZkzM - shfUeU5C7ad - _fsf5nICwNpkCUk5w at record #14 ( offset : 13671 ) with hash RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256 { " applicationId " : 3 " chainId " : " VzCJczfgBeIiIBlnTRbmtsPriqwrkHqtF2yt8nhTcjM " " createdAt " : " 2020 - 02 - 19T22 : 22 : 02 . 924546 - 03 : 46 " " hash " : " pGNSXOoI822Y_7F1ZNXw - xO02ufXXbrQjNXpTMkZJpQ#SHA256 " " payloadTagId " : 600 " serial " : 7 " type " : " Data " " version " : 2 " payloadBytes " : " + QFgUgUBACsjAAEA8fox30W54ZkzM + shfUeU5C7ad + / fsf5nICwNpkCUk5wKDgr5NG8nIgEARyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo = " " interlockedChainId " : " 8fox30W54ZkzM - shfUeU5C7ad - _fsf5nICwNpkCUk5w " " interlockedRecordHash " : " RyvOZIjnoUG4QX7FwQs3f6BqDfnOPb3txgXJNxLxtDo#SHA256 " " interlockedRecordOffset " : 13671 " interlockedRecordSerial " : 14 }