本文整理汇总了Python中threatconnect.RequestObject.RequestObject.set_modified_since方法的典型用法代码示例。如果您正苦于以下问题:Python RequestObject.set_modified_since方法的具体用法?Python RequestObject.set_modified_since怎么用?Python RequestObject.set_modified_since使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类threatconnect.RequestObject.RequestObject
的用法示例。
在下文中一共展示了RequestObject.set_modified_since方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: default_request_object
# 需要导入模块: from threatconnect.RequestObject import RequestObject [as 别名]
# 或者: from threatconnect.RequestObject.RequestObject import set_modified_since [as 别名]
def default_request_object(self):
""" default request when only a owner filter is provided """
request_object = RequestObject()
request_object.set_description('filter by owner')
request_object.set_http_method(self._resource_properties['base']['http_method'])
request_object.set_owner_allowed(self._resource_properties['base']['owner_allowed'])
request_object.set_request_uri(self._resource_properties['base']['uri'])
request_object.set_resource_pagination(self._resource_properties['base']['pagination'])
request_object.set_resource_type(self._resource_type)
# modified since is only support on base (/v2/indicator) api call
if self._modified_since is not None:
request_object.set_modified_since(self._modified_since)
request_object.set_description('Indicator Owner Filter modified since {0}'.format(self._modified_since))
return request_object