コード例 #1
0
    def delete_connection(self,
                          object_id,
                          retries=None,
                          headers=None,
                          proxies=None,
                          verify=None):
        """
        Use HTTP DELETE and remove the connection to another object.

        :param object_id: The other object-id in the connection.
        :type object_id: str
        :param retries: Number of retries to submit before stopping.
        :type retries: int
        :param headers: header info for requests.
        :type headers: dict
        :param proxies: proxy info for requests.
        :type proxies: dict
        :param verify: verify info for requests.
        :type verify: bool, str
        :returns: dict (using json.loads())
        """

        params = {
            t.RELATED_ID: object_id
        }
        return Broker.delete(self._RELATED,
                             params=params,
                             retries=retries,
                             headers=headers,
                             proxies=proxies,
                             verify=verify)
コード例 #2
0
ファイル: common.py プロジェクト: mathlemon/ThreatExchange
    def delete_connection(self,
                          object_id,
                          retries=None,
                          proxies=None,
                          verify=None):
        """
        Use HTTP DELETE and remove the connection to another object.

        :param object_id: The other object-id in the connection.
        :type object_id: str
        :param retries: Number of retries to submit before stopping.
        :type retries: int
        :param proxies: proxy info for requests.
        :type proxies: dict
        :param verify: verify info for requests.
        :type verify: bool, str
        :returns: dict (using json.loads())
        """

        params = {t.RELATED_ID: object_id}
        return Broker.delete(self._RELATED,
                             params=params,
                             retries=retries,
                             proxies=proxies,
                             verify=verify)
コード例 #3
0
    def delete_connection(self, object_id):
        """
        Use HTTP DELETE and remove the connection to another object.

        :param object_id: The other object-id in the connection.
        :type object_id: str
        :returns: dict (using json.loads())
        """

        params = {t.RELATED_ID: object_id}
        return Broker.delete(self._RELATED, params=params)
コード例 #4
0
ファイル: common.py プロジェクト: dbrockus/ThreatExchange
    def delete_connection(self, object_id, retries=None):
        """
        Use HTTP DELETE and remove the connection to another object.

        :param object_id: The other object-id in the connection.
        :type object_id: str
        :param retries: Number of retries to submit before stopping.
        :type retries: int
        :returns: dict (using json.loads())
        """

        params = {t.RELATED_ID: object_id}
        return Broker.delete(self._RELATED, params=params, retries=retries)
コード例 #5
0
ファイル: common.py プロジェクト: atticusliu/ThreatExchange
    def delete_connection(self, object_id):
        """
        Use HTTP DELETE and remove the connection to another object.

        :param object_id: The other object-id in the connection.
        :type object_id: str
        :returns: dict (using json.loads())
        """

        params = {
            t.RELATED_ID: object_id
        }
        return Broker.delete(self._RELATED, params=params)
コード例 #6
0
ファイル: common.py プロジェクト: 9b/ThreatExchange
    def delete_connection(self, object_id, retries=None):
        """
        Use HTTP DELETE and remove the connection to another object.

        :param object_id: The other object-id in the connection.
        :type object_id: str
        :param retries: Number of retries to submit before stopping.
        :type retries: int
        :returns: dict (using json.loads())
        """

        params = {
            t.RELATED_ID: object_id
        }
        return Broker.delete(self._RELATED, params=params, retries=retries)