本文整理汇总了Python中SampleUtilities.data_setup方法的典型用法代码示例。如果您正苦于以下问题:Python SampleUtilities.data_setup方法的具体用法?Python SampleUtilities.data_setup怎么用?Python SampleUtilities.data_setup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SampleUtilities
的用法示例。
在下文中一共展示了SampleUtilities.data_setup方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setup_data
# 需要导入模块: import SampleUtilities [as 别名]
# 或者: from SampleUtilities import data_setup [as 别名]
def setup_data(client):
SampleUtilities.data_setup(client, 'reference_data/sets?name=rest_api_samples_suspect_ips&element_type=IP', 'POST')
SampleUtilities.data_setup(client, 'reference_data/sets/rest_api_samples_suspect_ips?value=8.7.6.5', 'POST')
SampleUtilities.data_setup(client, 'reference_data/sets/rest_api_samples_suspect_ips?value=10.7.6.5', 'POST')
SampleUtilities.data_setup(client, 'reference_data/sets/rest_api_samples_suspect_ips?value=13.7.6.5', 'POST')
SampleUtilities.data_setup(client, 'reference_data/sets?name=rest_api_samples_blocked_ips&element_type=IP', 'POST')
示例2: setup_data
# 需要导入模块: import SampleUtilities [as 别名]
# 或者: from SampleUtilities import data_setup [as 别名]
def setup_data(client):
SampleUtilities.data_setup(
client,
'reference_data/maps?name=rest_api_samples_current_admin_shift&' +
'element_type=ALN', 'POST')
SampleUtilities.data_setup(
client,
'reference_data/maps/rest_api_samples_current_admin_shift?' +
'key=7.34.87.23&value=sven', 'POST')
SampleUtilities.data_setup(
client,
'reference_data/maps/rest_api_samples_current_admin_shift?' +
'key=7.34.85.10&value=sven', 'POST')
SampleUtilities.data_setup(
client,
'reference_data/maps/rest_api_samples_current_admin_shift?' +
'key=7.34.123.8&value=jill', 'POST')
SampleUtilities.data_setup(
client,
'reference_data/maps/rest_api_samples_current_admin_shift?' +
'key=7.34.10.5&value=alice', 'POST')
示例3: setup_data
# 需要导入模块: import SampleUtilities [as 别名]
# 或者: from SampleUtilities import data_setup [as 别名]
def setup_data(client):
SampleUtilities.data_setup(
client,
'reference_data/map_of_sets?name=rest_api_samples_login_events&' +
'element_type=ALN', 'POST')
SampleUtilities.data_setup(
client,
'reference_data/map_of_sets/rest_api_samples_login_events?' +
'key=3.4.5.6&value=bob', 'POST')
SampleUtilities.data_setup(
client,
'reference_data/map_of_sets/rest_api_samples_login_events?' +
'key=3.4.5.6&value=frank', 'POST')
SampleUtilities.data_setup(
client,
'reference_data/map_of_sets/rest_api_samples_login_events?' +
'key=3.4.5.6&value=jane', 'POST')
SampleUtilities.data_setup(
client,
'reference_data/map_of_sets/rest_api_samples_login_events?' +
'key=2.12.42.7&value=kim', 'POST')
SampleUtilities.data_setup(
client,
'reference_data/map_of_sets/rest_api_samples_login_events?' +
'key=2.12.42.7&value=serge', 'POST')
SampleUtilities.data_setup(
client,
'reference_data/map_of_sets/rest_api_samples_login_events?' +
'key=2.12.42.7&value=sue', 'POST')
SampleUtilities.data_setup(
client,
'reference_data/map_of_sets/rest_api_samples_login_events?' +
'key=2.12.42.7&value=rick', 'POST')
示例4: setup_data
# 需要导入模块: import SampleUtilities [as 别名]
# 或者: from SampleUtilities import data_setup [as 别名]
def setup_data(client):
SampleUtilities.data_setup(client, 'reference_data/sets?name=rest_api_samples_authorized_users&element_type=ALN', 'POST')
SampleUtilities.data_setup(client, 'reference_data/sets/rest_api_samples_authorized_users?value=dave', 'POST')
SampleUtilities.data_setup(client, 'reference_data/sets?name=rest_api_samples_authorized_ips&element_type=IP', 'POST')
SampleUtilities.data_setup(client, 'reference_data/sets?name=rest_api_samples_keywords&element_type=ALNIC', 'POST')
SampleUtilities.data_setup(client, 'reference_data/sets/rest_api_samples_keywords?value=sample', 'POST')
SampleUtilities.data_setup(client, 'reference_data/sets?name=rest_api_samples_authorized_ports&element_type=PORT', 'POST')
SampleUtilities.data_setup(client, 'reference_data/sets?name=rest_api_samples_recent_access&element_type=DATE', 'POST')
示例5: setup_data
# 需要导入模块: import SampleUtilities [as 别名]
# 或者: from SampleUtilities import data_setup [as 别名]
def setup_data(client):
SampleUtilities.data_setup(client, 'referencedata/sets?name=rest_api_samples_testset&elementType=ALN', 'POST')
示例6: setup_data
# 需要导入模块: import SampleUtilities [as 别名]
# 或者: from SampleUtilities import data_setup [as 别名]
def setup_data(client):
current_time = int(time.time() * 1000)
key_name_types = urllib.parse.quote("[{\"element_type\": \"IP\", \"key_name\": \"Authorization_Server_IP_Secure\"}, {\"element_type\": \"PORT\", \"key_name\": \"Authorization_Server_PORT_Secure\"}, {\"element_type\": \"DATE\", \"key_name\": \"Last_Secure_Login\"}, {\"element_type\": \"IP\", \"key_name\": \"Authorization_Server_IP_General\"}]")
SampleUtilities.data_setup(client, 'reference_data/tables?name=rest_api_samples_server_access&element_type=ALN&key_name_types=' + key_name_types, 'POST')
SampleUtilities.data_setup(client, 'reference_data/tables/rest_api_samples_server_access?outer_key=calvin&inner_key=Authorization_Server_IP_Secure&value=6.3.9.12', 'POST')
SampleUtilities.data_setup(client, 'reference_data/tables/rest_api_samples_server_access?outer_key=calvin&inner_key=Authorization_Server_PORT_Secure&value=443', 'POST')
SampleUtilities.data_setup(client, 'reference_data/tables/rest_api_samples_server_access?outer_key=calvin&inner_key=Authorization_Server_IP_General&value=7.12.15.12', 'POST')
SampleUtilities.data_setup(client, 'reference_data/tables/rest_api_samples_server_access?outer_key=calvin&inner_key=Last_Secure_Login&value=' + str(current_time), 'POST')
SampleUtilities.data_setup(client, 'reference_data/tables/rest_api_samples_server_access?outer_key=socrates&inner_key=Authorization_Server_IP_General&value=7.12.14.85', 'POST')
time.sleep(1)
SampleUtilities.data_setup(client, 'reference_data/tables/rest_api_samples_server_access?outer_key=mill&inner_key=Authorization_Server_IP_Secure&value=6.3.9.12', 'POST')
SampleUtilities.data_setup(client, 'reference_data/tables/rest_api_samples_server_access?outer_key=mill&inner_key=Authorization_Server_PORT_Secure&value=443', 'POST')
SampleUtilities.data_setup(client, 'reference_data/tables/rest_api_samples_server_access?outer_key=mill&inner_key=Last_Secure_Login&value=' + str(current_time), 'POST')
SampleUtilities.data_setup(client, 'reference_data/tables/rest_api_samples_server_access?outer_key=mill&inner_key=Authorization_Server_IP_General&value=7.13.22.85', 'POST')
SampleUtilities.data_setup(client, 'reference_data/tables/rest_api_samples_server_access?outer_key=hobbes&inner_key=Authorization_Server_IP_Secure&value=6.3.9.12', 'POST')
SampleUtilities.data_setup(client, 'reference_data/tables/rest_api_samples_server_access?outer_key=hobbes&inner_key=Authorization_Server_PORT_Secure&value=22', 'POST')
SampleUtilities.data_setup(client, 'reference_data/tables/rest_api_samples_server_access?outer_key=hobbes&inner_key=Last_Secure_Login&value=' + str(current_time), 'POST')
SampleUtilities.data_setup(client, 'reference_data/tables/rest_api_samples_server_access?outer_key=hobbes&inner_key=Authorization_Server_IP_General&value=7.12.19.125', 'POST')
SampleUtilities.data_setup(client, 'reference_data/tables/rest_api_samples_server_access?outer_key=aquinas&inner_key=Last_Secure_Login&value=' + str(current_time - 1000000), 'POST')
SampleUtilities.data_setup(client, 'reference_data/tables/rest_api_samples_server_access?outer_key=aquinas&inner_key=Authorization_Server_IP_General&value=7.12.15.12', 'POST')