当前位置: 首页>>代码示例>>Python>>正文


Python SampleUtilities.data_setup方法代码示例

本文整理汇总了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')
开发者ID:RuanMuller,项目名称:api-samples,代码行数:9,代码来源:01_Sets.py

示例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')
开发者ID:amico1234,项目名称:api-samples,代码行数:23,代码来源:02_Maps.py

示例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')
开发者ID:amico1234,项目名称:api-samples,代码行数:35,代码来源:03_MapOfSets.py

示例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')
开发者ID:phieber,项目名称:api-samples,代码行数:10,代码来源:06_CommonParameters.py

示例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')
开发者ID:MatticusCaesar,项目名称:api-samples,代码行数:4,代码来源:03_PathParameters.py

示例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')
开发者ID:devilcoder,项目名称:api-samples,代码行数:28,代码来源:04_Tables.py


注:本文中的SampleUtilities.data_setup方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。