hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
76a9f1fa5dfea43576228630717f314dd150dd4d
8,017
py
Python
test/test_pc.py
jderam/assh-char-gen
618d66613ba0e029809f51339d9f0c37613de5c1
[ "MIT" ]
null
null
null
test/test_pc.py
jderam/assh-char-gen
618d66613ba0e029809f51339d9f0c37613de5c1
[ "MIT" ]
11
2020-10-24T07:01:49.000Z
2020-10-27T02:57:13.000Z
test/test_pc.py
jderam/assh-char-gen
618d66613ba0e029809f51339d9f0c37613de5c1
[ "MIT" ]
null
null
null
import pytest import pc @pytest.mark.parametrize("dummy_parameter", range(1000)) def test_gen_abilities(dummy_parameter): player_char = pc.PlayerCharacter() print(player_char.abilities) assert list(player_char.abilities.keys()) == ['STR', 'DEX', 'CON', 'INT', 'WIS', 'CHA'] for v in player_char.abilities.values(): assert 3 <= v <= 18 @pytest.mark.parametrize("dummy_parameter", range(1000)) def test_best_stat(dummy_parameter): player_char = pc.PlayerCharacter() print(player_char.abilities) print(f"calculated best stat: {player_char.best_stat}") best_score = max(player_char.abilities.values()) assert player_char.abilities[player_char.best_stat] == best_score @pytest.mark.parametrize("dummy_parameter", range(1000)) def test_char_class(dummy_parameter): player_char = pc.PlayerCharacter() assert player_char.char_class in ['Fighter', 'Thief', 'Magician', 'Cleric'] if player_char.best_stat == 'STR': assert player_char.char_class == 'Fighter' if player_char.best_stat == 'DEX': assert player_char.char_class == 'Thief' if player_char.best_stat == 'INT': assert player_char.char_class == 'Magician' if player_char.best_stat == 'WIS': assert player_char.char_class == 'Cleric' @pytest.mark.parametrize("dummy_parameter", range(1000)) def test_spell_list(dummy_parameter): player_char = pc.PlayerCharacter() if player_char.char_class in ['Cleric', 'Magician']: assert len(set(player_char.spell_list)) == 3 else: assert len(player_char.spell_list) == 0 @pytest.mark.parametrize("dummy_parameter", range(1000)) def test_class_selection(dummy_parameter): player_char = pc.PlayerCharacter() if player_char.char_class == 'Fighter': assert player_char.abilities['STR'] >= player_char.abilities['DEX'] assert player_char.abilities['STR'] >= player_char.abilities['INT'] assert player_char.abilities['STR'] >= player_char.abilities['WIS'] if player_char.char_class == 'Thief': assert player_char.abilities['DEX'] >= player_char.abilities['STR'] assert player_char.abilities['DEX'] >= player_char.abilities['INT'] assert player_char.abilities['DEX'] >= player_char.abilities['WIS'] if player_char.char_class == 'Magician': assert player_char.abilities['INT'] >= player_char.abilities['DEX'] assert player_char.abilities['INT'] >= player_char.abilities['STR'] assert player_char.abilities['INT'] >= player_char.abilities['WIS'] if player_char.char_class == 'Cleric': assert player_char.abilities['WIS'] >= player_char.abilities['DEX'] assert player_char.abilities['WIS'] >= player_char.abilities['INT'] assert player_char.abilities['WIS'] >= player_char.abilities['STR'] @pytest.mark.parametrize("dummy_parameter", range(1000)) def test_thief_skills(dummy_parameter): player_char = pc.PlayerCharacter() if player_char.char_class == 'Thief': if player_char.abilities['DEX'] >= 16: assert player_char.char_info['Class Abilities']['Thief Abilities']['Climb'] == '9:12' assert player_char.char_info['Class Abilities']['Thief Abilities']['Hide'] == '6:12' assert player_char.char_info['Class Abilities']['Thief Abilities']['Manipulate Traps'] == '4:12' assert player_char.char_info['Class Abilities']['Thief Abilities']['Move Silently'] == '6:12' assert player_char.char_info['Class Abilities']['Thief Abilities']['Open Locks'] == '4:12' assert player_char.char_info['Class Abilities']['Thief Abilities']['Pick Pockets'] == '5:12' else: assert player_char.char_info['Class Abilities']['Thief Abilities']['Climb'] == '8:12' assert player_char.char_info['Class Abilities']['Thief Abilities']['Hide'] == '5:12' assert player_char.char_info['Class Abilities']['Thief Abilities']['Manipulate Traps'] == '3:12' assert player_char.char_info['Class Abilities']['Thief Abilities']['Move Silently'] == '5:12' assert player_char.char_info['Class Abilities']['Thief Abilities']['Open Locks'] == '3:12' assert player_char.char_info['Class Abilities']['Thief Abilities']['Pick Pockets'] == '4:12' if player_char.abilities['INT'] >= 16: assert player_char.char_info['Class Abilities']['Thief Abilities']['Decipher Script'] == '1:12' assert player_char.char_info['Class Abilities']['Thief Abilities']['Read Scrolls'] == '-' else: assert player_char.char_info['Class Abilities']['Thief Abilities']['Decipher Script'] == '0:12' assert player_char.char_info['Class Abilities']['Thief Abilities']['Read Scrolls'] == '-' if player_char.abilities['WIS'] >= 16: assert player_char.char_info['Class Abilities']['Thief Abilities']['Discern Noise'] == '5:12' else: assert player_char.char_info['Class Abilities']['Thief Abilities']['Discern Noise'] == '4:12' @pytest.mark.parametrize("dummy_parameter", range(1000)) def test_alignment(dummy_parameter): player_char = pc.PlayerCharacter() alignments = [ 'Neutral', 'Lawful Good', 'Chaotic Good', 'Lawful Evil', 'Chaotic Evil', ] assert player_char.alignment in alignments if player_char.char_class == 'Thief': assert player_char.alignment != 'Lawful Good' @pytest.mark.parametrize("dummy_parameter", range(1000)) def test_fighting_ability(dummy_parameter): player_char = pc.PlayerCharacter() assert player_char.fa in [0, 1] assert player_char.fighting_ability in ['+0', '+1'] @pytest.mark.parametrize("dummy_parameter", range(1000)) def test_ability_adj(dummy_parameter): player_char = pc.PlayerCharacter() assert player_char.ability_mods['STR'][0] in ['-2', '-1', '+0', '+1', '+2'] assert player_char.ability_mods['STR'][1] in ['-2', '-1', '+0', '+1', '+2', '+3'] assert player_char.ability_mods['STR'][2] in [f"{x}:6" for x in range(1, 7)] assert player_char.ability_mods['STR'][3] in [f"{x}%" for x in [0,1,2,4,8,16,24,32]] assert player_char.ability_mods['DEX'][0] in ['-2', '-1', '+0', '+1', '+2', '+3'] assert player_char.ability_mods['DEX'][1] in ['-2', '-1', '+0', '+1', '+2'] assert player_char.ability_mods['DEX'][2] in [f"{x}:6" for x in range(1, 7)] assert player_char.ability_mods['DEX'][3] in [f"{x}%" for x in [0,1,2,4,8,16,24,32]] assert player_char.ability_mods['CON'][0] in ['-1', '+0', '+1', '+2', '+3'] assert player_char.ability_mods['CON'][1] in ['-2', '-1', '+0', '+1', '+2'] assert player_char.ability_mods['CON'][2] in ['45%','55%','65%','75%','80%','85%','90%','95%'] assert player_char.ability_mods['CON'][3] in [f"{x}:6" for x in range(1, 7)] assert player_char.ability_mods['CON'][4] in [f"{x}%" for x in [0,1,2,4,8,16,24,32]] assert player_char.ability_mods['INT'][0] in ['Illiterate','+0','+1','+2','+3'] assert player_char.ability_mods['INT'][1] in ['N/A', '--', '1st', '1st, 2nd' ,'1st, 2nd, 3rd', '1st, 2nd, 3rd, 4th'] assert player_char.ability_mods['INT'][2] in ['N/A', '50%', '65%', '75%', '85%', '95%'] assert player_char.ability_mods['WIS'][0] in ['-2', '-1', '+0', '+1', '+2'] assert player_char.ability_mods['WIS'][1] in ['N/A', '--', '1st', '1st, 2nd' ,'1st, 2nd, 3rd', '1st, 2nd, 3rd, 4th'] assert player_char.ability_mods['WIS'][2] in ['N/A', '50%', '65%', '75%', '85%', '95%'] assert player_char.ability_mods['CHA'][0] in ['-3', '-2', '-1', '+0', '+1', '+2', '+3'] assert player_char.ability_mods['CHA'][1] in [1, 2, 3, 4, 6, 8, 10, 12] assert player_char.ability_mods['CHA'][2] in ['-1', '+0', '+1'] @pytest.mark.parametrize("dummy_parameter", range(1000)) def test_save_mods(dummy_parameter): player_char = pc.PlayerCharacter() for k, v in player_char.save_mods.items(): assert v in ['+0', '+2']
50.421384
120
0.643258
1,102
8,017
4.488203
0.102541
0.218358
0.200566
0.093004
0.86393
0.81015
0.755762
0.755358
0.640518
0.478366
0
0.043001
0.170388
8,017
158
121
50.740506
0.700647
0
0
0.238462
0
0
0.205189
0.002869
0
0
0
0
0.515385
1
0.076923
false
0
0.015385
0
0.092308
0.023077
0
0
0
null
1
1
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
7
4f1a982c6c774554eb48ec11475031df52bfa2e1
37,914
py
Python
src/test/python/org/o3project/odenos/core/util/test_system_manager_interface.py
o3project/odenos
837d0d3d3c37482e843c40c5eeeac10646e68c65
[ "Apache-2.0" ]
26
2015-02-18T10:22:50.000Z
2020-06-18T05:07:54.000Z
src/test/python/org/o3project/odenos/core/util/test_system_manager_interface.py
o3project/odenos
837d0d3d3c37482e843c40c5eeeac10646e68c65
[ "Apache-2.0" ]
45
2015-02-20T00:40:45.000Z
2021-12-14T21:07:57.000Z
src/test/python/org/o3project/odenos/core/util/test_system_manager_interface.py
o3project/odenos
837d0d3d3c37482e843c40c5eeeac10646e68c65
[ "Apache-2.0" ]
30
2015-02-19T02:00:35.000Z
2017-02-18T15:28:09.000Z
# -*- coding:utf-8 -*- # Copyright 2015 NEC Corporation. # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with the License. # # You may obtain a copy of the License at # # # # http://www.apache.org/licenses/LICENSE-2.0 # # # # Unless required by applicable law or agreed to in writing, software # # distributed under the License is distributed on an "AS IS" BASIS, # # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # # See the License for the specific language governing permissions and # # limitations under the License. # from org.o3project.odenos.core.util.system_manager_interface import ( SystemManagerInterface ) from org.o3project.odenos.core.manager.component_manager import ComponentManager from org.o3project.odenos.remoteobject.manager.system.component_connection\ import ComponentConnection from org.o3project.odenos.remoteobject.manager.system.component_connection_logic_and_network\ import ComponentConnectionLogicAndNetwork from org.o3project.odenos.remoteobject.message.response import Response from org.o3project.odenos.remoteobject.object_property import ObjectProperty from mock import Mock, patch from contextlib import nested import unittest class SystemManagerInterfaceTest(unittest.TestCase,): Dispatcher = Mock() Dispatcher.system_manager_id = "SystemManagerId" def setUp(self): self.target = SystemManagerInterface(self.Dispatcher) def tearDown(self): self.target = None def test_system_manager_id(self): self.assertEqual(self.target.system_manager_id, "SystemManagerId") def test_get_component_managers_success(self): value = "ComponentManagersBody" with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.OK, value) ) as m_get_object: self.result = self.target.get_component_managers() self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. COMP_MNGS_PATH) self.assertNotEqual(self.result, None) self.assertEqual(self.result, value) def test_get_component_managers_error(self): with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.NOT_FOUND, None) ) as m_get_object: self.result = self.target.get_component_managers() self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. COMP_MNGS_PATH) self.assertEqual(self.result, None) def test_get_event_manager_success(self): value = "EventManager_Body" with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.OK, value) ) as m_get_object: self.result = self.target.get_event_manager() self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. EVENT_MNG_PATH) self.assertNotEqual(self.result, None) self.assertEqual(self.result, value) def test_get_event_manager_Error(self): with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.NOT_FOUND, None) ) as m_get_object: self.result = self.target.get_event_manager() self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. EVENT_MNG_PATH) self.assertEqual(self.result, None) def test_get_component_type_success(self): value = "ComponentTypeBody" with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.OK, value) ) as m_get_object: self.result = self.target.get_component_type("ComponentManager") self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. COMP_TYPE_PATH % "ComponentManager") self.assertNotEqual(self.result, None) self.assertEqual(self.result, value) def test_get_component_type_error(self): with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.NOT_FOUND, None) ) as m_get_object: self.result = self.target.get_component_type("ComponentManager") self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. COMP_TYPE_PATH % "ComponentManager") self.assertEqual(self.result, None) def test_get_component_types_success(self): value = "ComponentTypesBody" with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.OK, value) ) as m_get_object: self.result = self.target.get_component_types() self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. COMP_TYPES_PATH) self.assertNotEqual(self.result, None) self.assertEqual(self.result, value) def test_get_component_types_error(self): with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.NOT_FOUND, None) ) as m_get_object: self.result = self.target.get_component_types() self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. COMP_TYPES_PATH) self.assertEqual(self.result, None) def test_get_component_success(self): value = "ComponentBody" with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.OK, value) ) as m_get_object: self.result = self.target.get_component("CompId1") self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. COMP_PATH % "CompId1") self.assertNotEqual(self.result, None) self.assertEqual(self.result, value) def test_get_components_success(self): value = "ComponentsBody" with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.OK, value) ) as m_get_object: self.result = self.target.get_components() self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. COMPS_PATH) self.assertNotEqual(self.result, None) self.assertEqual(self.result, value) def test_get_components_error(self): with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.NOT_FOUND, None) ) as m_get_object: self.result = self.target.get_components() self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. COMPS_PATH) self.assertEqual(self.result, None) def test_get_component_error(self): with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.NOT_FOUND, None) ) as m_get_object: self.result = self.target.get_component("CompId1") self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. COMP_PATH % "CompId1") self.assertEqual(self.result, None) def test_get_connections_success(self): ComponentConnectioTmp = ComponentConnection("slicer1_network1", "original", "running") LogicAndNetworkTmp =\ ComponentConnectionLogicAndNetwork("slicer1_network2", "original", "running", "LogicId", "NetworkId") ComponentConnectioTmp_packed_object =\ ComponentConnectioTmp.packed_object() LogicAndNetworkTmp_packed_object =\ LogicAndNetworkTmp.packed_object() body = {"slicer1network": ComponentConnectioTmp_packed_object, "slicer2network": LogicAndNetworkTmp_packed_object} with nested( patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.OK, body)), patch('org.o3project.odenos.remoteobject.manager.system.' 'component_connection.ComponentConnection.' 'create_from_packed', return_value=ComponentConnection.create_from_packed( ComponentConnectioTmp_packed_object)), patch('org.o3project.odenos.remoteobject.manager.system.' 'component_connection_logic_and_network.' 'ComponentConnectionLogicAndNetwork.create_from_packed', return_value=ComponentConnectionLogicAndNetwork. create_from_packed(LogicAndNetworkTmp_packed_object)), patch('logging.error' )) as (m_get_object, m_Connection, m_LogicAndNetwork, m_log_error): self.result = self.target.get_connections() self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. CONNECTIONS_PATH) self.assertEqual(m_Connection.call_count, 1) m_Connection.assert_any_call( ComponentConnectioTmp_packed_object) self.assertEqual(m_LogicAndNetwork.call_count, 1) m_LogicAndNetwork.assert_any_call( LogicAndNetworkTmp_packed_object) self.assertNotEqual(self.result, None) self.assertEqual(len(self.result), 2) self.assertEqual(self.result["slicer1network"].packed_object(), ComponentConnectioTmp_packed_object) self.assertEqual(self.result["slicer2network"].packed_object(), LogicAndNetworkTmp_packed_object) self.assertEqual(m_log_error.call_count, 0) def test_get_connections_is_error_NotGet(self): with nested( patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.NOT_FOUND, None)), patch('org.o3project.odenos.remoteobject.manager.system.' 'component_connection.ComponentConnection.' 'create_from_packed'), patch('org.o3project.odenos.remoteobject.manager.system.' 'component_connection_logic_and_network.' 'ComponentConnectionLogicAndNetwork.create_from_packed'), patch('logging.error' )) as (m_get_object, m_Connection, m_LogicAndNetwork, m_log_error): self.result = self.target.get_connections() self.assertEqual(m_get_object.call_count, 1) self.assertEqual(m_Connection.call_count, 0) self.assertEqual(m_LogicAndNetwork.call_count, 0) m_get_object.assert_any_call(SystemManagerInterface. CONNECTIONS_PATH) self.assertEqual(self.result, None) self.assertEqual(m_log_error.call_count, 0) def test_get_connections_create_from_packed_error(self): ComponentConnectioTmp = ComponentConnection("slicer1_network1", "original", "running") LogicAndNetworkTmp =\ ComponentConnectionLogicAndNetwork("slicer1_network2", "original", "running", "LogicId", "NetworkId") ComponentConnectioTmp_packed_object =\ ComponentConnectioTmp.packed_object() LogicAndNetworkTmp_packed_object =\ LogicAndNetworkTmp.packed_object() body = {"slicer1network": ComponentConnectioTmp_packed_object, "slicer2network": LogicAndNetworkTmp_packed_object} debug_log = "GET Connections Invalid Response Message" \ + " KeyError: 1" with nested( patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.OK, body)), patch('org.o3project.odenos.remoteobject.manager.system.' 'component_connection.ComponentConnection.' 'create_from_packed', side_effect=KeyError(1)), patch('org.o3project.odenos.remoteobject.manager.system.' 'component_connection_logic_and_network.' 'ComponentConnectionLogicAndNetwork.create_from_packed', return_value=ComponentConnectionLogicAndNetwork. create_from_packed(LogicAndNetworkTmp_packed_object)), patch('logging.error' )) as (m_get_object, m_Connection, m_LogicAndNetwork, m_log_error): self.result = self.target.get_connections() self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. CONNECTIONS_PATH) self.assertEqual(m_Connection.call_count, 1) m_Connection.assert_any_call( ComponentConnectioTmp_packed_object) self.assertEqual(m_LogicAndNetwork.call_count, 1) m_LogicAndNetwork.assert_any_call( LogicAndNetworkTmp_packed_object) self.assertEqual(self.result, None) m_log_error.assert_called_once_with(debug_log) self.assertEqual(m_log_error.call_count, 1) def test_get_component_manager_arg_comp_mgr_id_success(self): value = "ComponentManagerBody" with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.OK, value) ) as m_get_object: self.result = self.target.get_component_manager("CompMngId1") self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. COMP_MNG_PATH % "CompMngId1") self.assertNotEqual(self.result, None) self.assertEqual(self.result, value) def test_get_component_manager_arg_comp_mgr_id_error(self): with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.NOT_FOUND, None) ) as m_get_object: self.result = self.target.get_component_manager("CompMngId1") self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. COMP_MNG_PATH % "CompMngId1") self.assertEqual(self.result, None) def test_get_component_type_arg_comp_type_success(self): value = "ComponentTypeBody" with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.OK, value) ) as m_get_object: self.result = self.target.get_component_type("CompTypeId1") self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. COMP_TYPE_PATH % "CompTypeId1") self.assertNotEqual(self.result, None) self.assertEqual(self.result, value) def test_get_component_type_arg_comp_type_error(self): value = "ComponentTypeBody" with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.NOT_FOUND, value) ) as m_get_object: self.result = self.target.get_component_type("CompTypeId1") self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. COMP_TYPE_PATH % "CompTypeId1") self.assertEqual(self.result, None) def test_get_component_arg_comp_id_success(self): value = "ComponentBody" with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.OK, value) ) as m_get_object: self.result = self.target.get_component("CompId1") self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. COMP_PATH % "CompId1") self.assertNotEqual(self.result, None) self.assertEqual(self.result, value) def test_get_component_arg_comp_id_error(self): value = "ComponentBody" with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.NOT_FOUND, value) ) as m_get_object: self.result = self.target.get_component("CompId1") self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. COMP_PATH % "CompId1") self.assertEqual(self.result, None) def test_get_connection_arg_LogicAndNetwork_success(self): LogicAndNetworkTmp =\ ComponentConnectionLogicAndNetwork("slicer1network", "original", "running", "LogicId", "NetworkId") body = LogicAndNetworkTmp.packed_object() with nested( patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.OK, body)), patch('org.o3project.odenos.remoteobject.manager.system.' 'component_connection.ComponentConnection.' 'create_from_packed'), patch('org.o3project.odenos.remoteobject.manager.system.' 'component_connection_logic_and_network.' 'ComponentConnectionLogicAndNetwork.create_from_packed', return_value=ComponentConnectionLogicAndNetwork. create_from_packed(body)), patch('logging.error' )) as (m_get_object, m_Connection, m_LogicAndNetwork, m_log_error): self.result = self.target.get_connection("slicer1network") self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. CONNECTION_PATH % "slicer1network") self.assertEqual(m_Connection.call_count, 0) self.assertEqual(m_LogicAndNetwork.call_count, 1) m_LogicAndNetwork.assert_any_call(body) self.assertNotEqual(self.result, None) self.assertEqual(self.result.packed_object(), body) self.assertEqual(m_log_error.call_count, 0) def test_get_connection_arg_ComponentConnectio_success(self): ComponentConnectioTmp = ComponentConnection("slicer1network", "original", "running") body = ComponentConnectioTmp.packed_object() with nested( patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.OK, body)), patch('org.o3project.odenos.remoteobject.manager.system.' 'component_connection.ComponentConnection.' 'create_from_packed', return_value=ComponentConnection.create_from_packed( body)), patch('org.o3project.odenos.remoteobject.manager.system.' 'component_connection_logic_and_network.' 'ComponentConnectionLogicAndNetwork.create_from_packed'), patch('logging.error' )) as (m_get_object, m_Connection, m_LogicAndNetwork, m_log_error): self.result = self.target.get_connection("slicer1network") self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. CONNECTION_PATH % "slicer1network") self.assertEqual(m_Connection.call_count, 1) m_Connection.assert_any_call(body) self.assertEqual(m_LogicAndNetwork.call_count, 0) self.assertNotEqual(self.result, None) self.assertEqual(self.result.packed_object(), body) self.assertEqual(m_log_error.call_count, 0) def test_get_connection_arg_is_error_NG(self): with nested( patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.NOT_FOUND, None)), patch('org.o3project.odenos.remoteobject.manager.system.' 'component_connection.ComponentConnection.' 'create_from_packed'), patch('org.o3project.odenos.remoteobject.manager.system.' 'component_connection_logic_and_network.' 'ComponentConnectionLogicAndNetwork.create_from_packed'), patch('logging.error' )) as (m_get_object, m_Connection, m_LogicAndNetwork, m_log_error): self.result = self.target.get_connection("slicer1network") self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. CONNECTION_PATH % "slicer1network") self.assertEqual(m_Connection.call_count, 0) self.assertEqual(m_LogicAndNetwork.call_count, 0) self.assertEqual(self.result, None) self.assertEqual(m_log_error.call_count, 0) def test_get_connection_arg_create_from_packed_NG(self): ComponentConnectioTmp = ComponentConnection("slicer1network", "original", "running") body = ComponentConnectioTmp.packed_object() debug_log = "GET Connection Invalid Response Message" \ + " KeyError: 1" with nested( patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.OK, body)), patch('org.o3project.odenos.remoteobject.manager.system.' 'component_connection.ComponentConnection.' 'create_from_packed', side_effect=KeyError(1)), patch('org.o3project.odenos.remoteobject.manager.system.' 'component_connection_logic_and_network.' 'ComponentConnectionLogicAndNetwork.create_from_packed'), patch('logging.error' )) as (m_get_object, m_Connection, m_LogicAndNetwork, m_log_error): self.result = self.target.get_connection("slicer1network") self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. CONNECTION_PATH % "slicer1network") self.assertEqual(m_Connection.call_count, 1) m_Connection.assert_any_call(body) self.assertEqual(m_LogicAndNetwork.call_count, 0) self.assertEqual(self.result, None) self.assertEqual(m_log_error.call_count, 1) m_log_error.assert_called_once_with(debug_log) def test_get_object_arg_object_id_success(self): value = "ObjectBody" with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.OK, value) ) as m_get_object: self.result = self.target.get_object("ObjectId1") self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. OBJECT_PATH % "ObjectId1") self.assertNotEqual(self.result, None) self.assertEqual(self.result, value) def test_get_object_arg_object_id_error(self): value = "ObjectBody" with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._get_object_to_remote_object', return_value=Response(Response.StatusCode.NOT_FOUND, value) ) as m_get_object: self.result = self.target.get_object("ObjectId1") self.assertEqual(m_get_object.call_count, 1) m_get_object.assert_any_call(SystemManagerInterface. OBJECT_PATH % "ObjectId1") self.assertEqual(self.result, None) def test_put_connection_success(self): value = ComponentConnection("Component_ConnectionId1", "ObjectType", "original", "running") with nested( patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._put_object_to_remote_object' )) as m_put_object: self.result = self.target.put_connection(value) self.assertEqual(m_put_object[0].call_count, 1) m_put_object[0].assert_any_call(SystemManagerInterface. CONNECTION_PATH % "Component_ConnectionId1", value) self.assertNotEqual(self.result, None) def test_put_component_managers_success(self): value = ObjectProperty("DummyType", "CompMngId1") with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._put_object_to_remote_object' ) as m_put_object: self.result = self.target.put_component_managers(value) self.assertEqual(m_put_object.call_count, 1) m_put_object.assert_any_call(SystemManagerInterface. COMP_MNG_PATH % value.object_id, value) self.assertNotEqual(self.result, None) def test_add_component_managers_failed(self): value = ComponentManager("cmp_id", self.Dispatcher) with nested(patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._put_object_to_remote_object' ), patch("logging.error")) as (m_put_object, logging_error): self.result = self.target.add_component_manager(value) self.assertEqual(m_put_object.call_count, 1) m_put_object.assert_any_call(SystemManagerInterface. COMP_MNG_PATH % value.object_id, value.object_property) self.assertEqual(logging_error.call_count, 1) #self.assertNotEqual(self.result, None) def test_add_component_managers_success(self): value = ComponentManager("cmp_id", self.Dispatcher) with nested(patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._put_object_to_remote_object', \ return_value=Response(Response.StatusCode.OK, value.object_property) ), patch("logging.error")) as (m_put_object, logging_error): self.result = self.target.add_component_manager(value) self.assertEqual(m_put_object.call_count, 1) m_put_object.assert_any_call(SystemManagerInterface. COMP_MNG_PATH % value.object_id, value.object_property) #self.assertNotEqual(self.result, None) def test_post_component_success(self): value = "PostComponentBody" with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._post_object_to_remote_object' ) as m_post_object: self.result = self.target.post_components(value) self.assertEqual(m_post_object.call_count, 1) m_post_object.assert_any_call(SystemManagerInterface. COMPS_PATH, value) self.assertNotEqual(self.result, None) def test_put_component_success(self): value = ObjectProperty("DummyType", "CompId1") with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._put_object_to_remote_object' ) as m_put_object: self.result = self.target.put_components(value) self.assertEqual(m_put_object.call_count, 1) m_put_object.assert_any_call(SystemManagerInterface. COMP_PATH % value.object_id, value) self.assertNotEqual(self.result, None) def test_post_connections_success(self): value = "PostConnectionsBody" with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._post_object_to_remote_object' ) as m_post_object: self.result = self.target.post_connections(value) self.assertEqual(m_post_object.call_count, 1) m_post_object.assert_any_call(SystemManagerInterface. CONNECTIONS_PATH, value) self.assertNotEqual(self.result, None) def test_del_component_managers_success(self): with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._del_object_to_remote_object' ) as m_del_object: self.result = self.target.del_component_managers("CompMgrId1") self.assertEqual(m_del_object.call_count, 1) m_del_object.assert_any_call(SystemManagerInterface. COMP_MNG_PATH % "CompMgrId1") self.assertNotEqual(self.result, None) def test_del_components_success(self): with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._del_object_to_remote_object' ) as m_del_object: self.result = self.target.del_components("CompId1") self.assertEqual(m_del_object.call_count, 1) m_del_object.assert_any_call(SystemManagerInterface. COMP_PATH % "CompId1") self.assertNotEqual(self.result, None) def test_del_connections_success(self): with patch('org.o3project.odenos.core.util.remote_object_interface.' 'RemoteObjectInterface._del_object_to_remote_object' ) as m_del_object: self.result = self.target.del_connections("ConnId1") self.assertEqual(m_del_object.call_count, 1) m_del_object.assert_any_call(SystemManagerInterface. CONNECTION_PATH % "ConnId1") self.assertNotEqual(self.result, None) if __name__ == '__main__': unittest.main()
53.778723
93
0.574643
3,418
37,914
6.026624
0.056758
0.048934
0.039322
0.056945
0.906646
0.88048
0.872712
0.864605
0.856935
0.838681
0
0.007636
0.354064
37,914
705
94
53.778723
0.833483
0.027905
0
0.834395
0
0
0.189671
0.151275
0
0
0
0
0.248408
1
0.063694
false
0
0.014331
0
0.08121
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
4f29c3300cdfb21573824f9cfe67358f41115fd0
8,182
py
Python
tests/test_monkey_patching.py
ionelmc/wrapt
4abbac872ccf0c253374277ce7c72f188b8469b7
[ "BSD-2-Clause" ]
null
null
null
tests/test_monkey_patching.py
ionelmc/wrapt
4abbac872ccf0c253374277ce7c72f188b8469b7
[ "BSD-2-Clause" ]
null
null
null
tests/test_monkey_patching.py
ionelmc/wrapt
4abbac872ccf0c253374277ce7c72f188b8469b7
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function import unittest import sys import wrapt def global_function_1(*args, **kwargs): return args, kwargs def global_function_2(*args, **kwargs): return args, kwargs def global_function_3(*args, **kwargs): return args, kwargs def global_function_4(*args, **kwargs): return args, kwargs class Class_1(object): def method(self, *args, **kwargs): return args, kwargs class TestMonkeyPatching(unittest.TestCase): def test_function_wrapper(self): _args = (1, 2) _kwargs = { 'one': 1, 'two': 2 } called = [] @wrapt.function_wrapper def wrapper(wrapped, instance, args, kwargs): called.append((args, kwargs)) self.assertEqual(instance, None) self.assertEqual(args, _args) self.assertEqual(kwargs, _kwargs) return wrapped(*args, **kwargs) @wrapper def function(*args, **kwargs): return args, kwargs result = function(*_args, **_kwargs) self.assertEqual(result, (_args, _kwargs)) self.assertEqual(called[0], (_args, _kwargs)) def test_function_wrapper_instance_method(self): _args = (1, 2) _kwargs = { 'one': 1, 'two': 2 } called = [] _self = self class wrapper(object): @wrapt.function_wrapper def __call__(self, wrapped, instance, args, kwargs): _self.assertEqual(type(self), wrapper) called.append((args, kwargs)) _self.assertEqual(instance, None) _self.assertEqual(args, _args) _self.assertEqual(kwargs, _kwargs) return wrapped(*args, **kwargs) @wrapper() def function(*args, **kwargs): return args, kwargs result = function(*_args, **_kwargs) self.assertEqual(result, (_args, _kwargs)) self.assertEqual(called[0], (_args, _kwargs)) def test_function_wrapper_class_method(self): _args = (1, 2) _kwargs = { 'one': 1, 'two': 2 } called = [] class wrapper(object): @wrapt.function_wrapper @classmethod def __call__(cls, wrapped, instance, args, kwargs): self.assertEqual(cls, wrapper) called.append((args, kwargs)) self.assertEqual(instance, None) self.assertEqual(args, _args) self.assertEqual(kwargs, _kwargs) return wrapped(*args, **kwargs) @wrapper() def function(*args, **kwargs): return args, kwargs result = function(*_args, **_kwargs) self.assertEqual(result, (_args, _kwargs)) self.assertEqual(called[0], (_args, _kwargs)) def test_wrap_function_module_name(self): _args = (1, 2) _kwargs = { 'one': 1, 'two': 2 } called = [] def wrapper(wrapped, instance, args, kwargs): called.append((args, kwargs)) self.assertEqual(instance, None) self.assertEqual(args, _args) self.assertEqual(kwargs, _kwargs) return wrapped(*args, **kwargs) wrapt.wrap_function_wrapper(__name__, 'global_function_1', wrapper) result = global_function_1(*_args, **_kwargs) self.assertEqual(result, (_args, _kwargs)) self.assertEqual(called[0], (_args, _kwargs)) def test_wrap_function_module(self): _args = (1, 2) _kwargs = { 'one': 1, 'two': 2 } called = [] def wrapper(wrapped, instance, args, kwargs): called.append((args, kwargs)) self.assertEqual(instance, None) self.assertEqual(args, _args) self.assertEqual(kwargs, _kwargs) return wrapped(*args, **kwargs) module = sys.modules[__name__] wrapt.wrap_function_wrapper(module, 'global_function_2', wrapper) result = global_function_2(*_args, **_kwargs) self.assertEqual(result, (_args, _kwargs)) self.assertEqual(called[0], (_args, _kwargs)) def test_wrap_instance_method_module_name(self): _args = (1, 2) _kwargs = { 'one': 1, 'two': 2 } called = [] _instance = Class_1() def wrapper(wrapped, instance, args, kwargs): called.append((args, kwargs)) self.assertEqual(instance, _instance) self.assertEqual(args, _args) self.assertEqual(kwargs, _kwargs) return wrapped(*args, **kwargs) wrapt.wrap_function_wrapper(__name__, 'Class_1.method', wrapper) result = _instance.method(*_args, **_kwargs) self.assertEqual(result, (_args, _kwargs)) self.assertEqual(called[0], (_args, _kwargs)) def test_patch_function_module_name(self): _args = (1, 2) _kwargs = { 'one': 1, 'two': 2 } called = [] @wrapt.patch_function_wrapper(__name__, 'global_function_3') def wrapper(wrapped, instance, args, kwargs): called.append((args, kwargs)) self.assertEqual(instance, None) self.assertEqual(args, _args) self.assertEqual(kwargs, _kwargs) return wrapped(*args, **kwargs) result = global_function_3(*_args, **_kwargs) self.assertEqual(result, (_args, _kwargs)) self.assertEqual(called[0], (_args, _kwargs)) def test_patch_function_module(self): _args = (1, 2) _kwargs = { 'one': 1, 'two': 2 } called = [] module = sys.modules[__name__] @wrapt.patch_function_wrapper(module, 'global_function_4') def wrapper(wrapped, instance, args, kwargs): called.append((args, kwargs)) self.assertEqual(instance, None) self.assertEqual(args, _args) self.assertEqual(kwargs, _kwargs) return wrapped(*args, **kwargs) result = global_function_4(*_args, **_kwargs) self.assertEqual(result, (_args, _kwargs)) self.assertEqual(called[0], (_args, _kwargs)) def _test_transient_function_wrapper(self, *args, **kwargs): return args, kwargs def test_transient_function_wrapper(self): _args = (1, 2) _kwargs = { 'one': 1, 'two': 2 } called = [] @wrapt.transient_function_wrapper(__name__, 'TestMonkeyPatching._test_transient_function_wrapper') def wrapper(wrapped, instance, args, kwargs): called.append((args, kwargs)) self.assertEqual(wrapped, self._test_transient_function_wrapper) self.assertEqual(instance, self) self.assertEqual(args, _args) self.assertEqual(kwargs, _kwargs) return wrapped(*args, **kwargs) @wrapper def function(*args, **kwargs): return self._test_transient_function_wrapper(*args, **kwargs) result = function(*_args, **_kwargs) self.assertEqual(result, (_args, _kwargs)) self.assertEqual(called[0], (_args, _kwargs)) def test_transient_function_wrapper_instance_method(self): _args = (1, 2) _kwargs = { 'one': 1, 'two': 2 } called = [] _self = self class wrapper(object): @wrapt.transient_function_wrapper(__name__, 'TestMonkeyPatching._test_transient_function_wrapper') def __call__(self, wrapped, instance, args, kwargs): called.append((args, kwargs)) _self.assertEqual(wrapped, _self._test_transient_function_wrapper) _self.assertEqual(instance, _self) _self.assertEqual(args, _args) _self.assertEqual(kwargs, _kwargs) return wrapped(*args, **kwargs) @wrapper() def function(*args, **kwargs): return self._test_transient_function_wrapper(*args, **kwargs) result = function(*_args, **_kwargs) self.assertEqual(result, (_args, _kwargs)) self.assertEqual(called[0], (_args, _kwargs)) if __name__ == '__main__': unittest.main()
29.752727
82
0.589709
830
8,182
5.479518
0.056627
0.180299
0.098505
0.175902
0.932718
0.885004
0.847405
0.847405
0.819041
0.798593
0
0.01123
0.292594
8,182
274
83
29.861314
0.774534
0
0
0.759162
0
0
0.030799
0.012466
0
0
0
0
0.282723
1
0.162304
false
0
0.020942
0.057592
0.319372
0.005236
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
4f58aa42ef3e796c943de9e15c7f3bb78fd9c749
4,718
py
Python
core/model/support_vector_machine.py
sustainable-computing/ODToolk
9328b930f7e522a89d82011e8ab91286a20bf66f
[ "MIT" ]
1
2019-06-16T16:50:46.000Z
2019-06-16T16:50:46.000Z
core/model/support_vector_machine.py
sustainable-computing/ODToolk
9328b930f7e522a89d82011e8ab91286a20bf66f
[ "MIT" ]
null
null
null
core/model/support_vector_machine.py
sustainable-computing/ODToolk
9328b930f7e522a89d82011e8ab91286a20bf66f
[ "MIT" ]
1
2020-05-19T23:00:31.000Z
2020-05-19T23:00:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from .superclass import * class SVM(NormalModel): """ Using `Support Vector Machine <https://scikit-learn.org/stable/modules/generated/ sklearn.svm.LinearSVC.html>`_ model to predict the occupancy level This is a normal supervised learning model. :parameter train: the labelled ground truth Dataset for training the model :type train: core.data.dataset.Dataset :parameter test: the Dataset for testing by using sensor data only :type test: core.data.dataset.Dataset :parameter gamma: kernel coefficient for ``'rbf'``, ``'poly'``, or ``'sigmoid'`` :type gamma: float or ``'auto'`` :parameter kernel: specifies the kernel type to be used in the algorithm. It must be one of ``'linear'``, ``'poly'``, ``'rbf'``, ``'sigmoid'``, ``'precomputed'`` :type kernel: str :parameter penalty_error: penalty parameter C of the error term. :type penalty_error: float :parameter n_estimators: estimators used for predictions. :type n_estimators: int :rtype: numpy.ndarray :return: Predicted occupancy level corresponding to the test Dataset """ def __init__(self, train, test): # all changeable parameters now store as an editable instance self.train = train self.test = test self.gamma = 'auto' self.kernel = 'linear' self.penalty_error = 1 self.n_estimators = 10 # the model must have a method called run, and return the predicted result def run(self): from sklearn.svm import SVC from sklearn.ensemble import BaggingClassifier from sklearn.multiclass import OneVsRestClassifier from numpy import reshape if len(self.train.occupancy.shape) == 2 and self.train.occupancy.shape[1] == 1: self.train.change_occupancy(reshape(self.train.occupancy, (self.train.occupancy.shape[0],))) classifier = OneVsRestClassifier(BaggingClassifier( SVC(kernel=self.kernel, C=self.penalty_error, gamma=self.gamma, verbose=True), max_samples=1.0 / self.n_estimators, n_estimators=self.n_estimators, bootstrap=False)) classifier.fit(self.train.data, self.train.occupancy) predict_occupancy = classifier.predict(self.test.data) predict_occupancy.shape += (1,) return predict_occupancy class SVR(NormalModel): """ Using `Support Vector Regression <https://scikit-learn.org/stable/modules/generated/ sklearn.svm.LinearSVR.html>`_ model to predict the occupancy level This is a normal supervised learning model. :parameter train: the labelled ground truth Dataset for training the model :type train: core.data.dataset.Dataset :parameter test: the Dataset for testing by using sensor data only :type test: core.data.dataset.Dataset :parameter gamma: kernel coefficient for ``'rbf'``, ``'poly'``, or ``'sigmoid'`` :type gamma: float or ``'auto'`` :parameter kernel: specifies the kernel type to be used in the algorithm. It must be one of ``'linear'``, ``'poly'``, ``'rbf'``, ``'sigmoid'``, ``'precomputed'`` :type kernel: str :parameter penalty_error: penalty parameter C of the error term. :type penalty_error: float :parameter n_estimators: estimators used for predictions. :type n_estimators: int :rtype: numpy.ndarray :return: Predicted occupancy level corresponding to the test Dataset """ def __init__(self, train, test): # all changeable parameters now store as an editable instance self.train = train self.test = test self.gamma = 'auto' self.kernel = 'linear' self.penalty_error = 1 self.n_estimators = 10 # the model must have a method called run, and return the predicted result def run(self): from sklearn.svm import SVR from sklearn.ensemble import BaggingRegressor from sklearn.multiclass import OneVsRestClassifier from numpy import reshape if len(self.train.occupancy.shape) == 2 and self.train.occupancy.shape[1] == 1: self.train.change_occupancy(reshape(self.train.occupancy, (self.train.occupancy.shape[0],))) classifier = OneVsRestClassifier(BaggingRegressor( SVR(kernel=self.kernel, C=self.penalty_error, gamma=self.gamma, verbose=True), max_samples=1.0 / self.n_estimators, n_estimators=self.n_estimators, bootstrap=False)) classifier.fit(self.train.data, self.train.occupancy) predict_occupancy = classifier.predict(self.test.data) predict_occupancy.shape += (1,) return predict_occupancy
37.444444
110
0.675922
588
4,718
5.355442
0.227891
0.051445
0.057161
0.043823
0.91013
0.91013
0.91013
0.91013
0.91013
0.877739
0
0.005993
0.221916
4,718
125
111
37.744
0.851812
0.48919
0
0.755556
1
0
0.008937
0
0
0
0
0
0
1
0.088889
false
0
0.2
0
0.377778
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
4fab1d7f2939665e08498be08c71bb68a0e7f204
847
py
Python
backend/config.py
VivianChan1998/Old-shoes
090f97373333a4df21399f5555dadd4c0eca6ea6
[ "MIT" ]
1
2021-01-27T17:53:33.000Z
2021-01-27T17:53:33.000Z
backend/config.py
VivianChan1998/Old-shoes
090f97373333a4df21399f5555dadd4c0eca6ea6
[ "MIT" ]
2
2021-01-28T07:38:49.000Z
2022-01-22T17:25:59.000Z
backend/config.py
VivianChan1998/Old-shoes
090f97373333a4df21399f5555dadd4c0eca6ea6
[ "MIT" ]
1
2020-09-03T02:37:14.000Z
2020-09-03T02:37:14.000Z
MODEL_PATH = "C:\\Users\\v-viviac\\Desktop\\old_shoes\\computer_vision\\model\\shoes&coin_recog.Tensorflow\\model.pb" LABELS_PATH = "C:\\Users\\v-yhsiao\\Documents\\code\\old_shoes\\computer_vision\\model\\shoes&coin_recog.Tensorflow\\labels.txt" MODEL_PATH_DEGREE = "C:\\Users\\v-viviac\\Desktop\\Old-shoes\\backend\\degree.TensorFlow\\model.pb" LABELS_PATH_DEGREE = "C:\\Users\\v-viviac\\Desktop\\Old-shoes\\backend\\degree.TensorFlow\\labels.txt" JSON_DIR = "C:\\Users\\v-yhsiao\\Documents\\code\\old_shoes\\computer_vision\\JSON_file\\" IMG_PATH = "C:\\Users\\v-yhsiao\\Documents\\code\\old_shoes\\img\\train\\resize_before\\men_shoes\\1\\1_5.jpg" LOG_FILE = "C:\\Users\\v-yhsiao\\Documents\\code\\old_shoes\\computer_vision\\JSON_file\\" IMG_DIR = "C:\\Users\\v-yhsiao\\Documents\\code\\old_shoes\\img\\train\\resize_before\\men_shoes\\1\\"
84.7
128
0.744982
132
847
4.560606
0.257576
0.079734
0.093023
0.107973
0.920266
0.877076
0.877076
0.843854
0.843854
0.687708
0
0.004866
0.029516
847
10
129
84.7
0.727494
0
0
0
0
0.75
0.838443
0.838443
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
96e370b0e475b2f7cc50ab7920cbfc3e5f3666fe
2,177
py
Python
stim/scripts/arrange_vids.py
shariliu/doe-lookit
43eea4b72bed58d59ac6115019ed94eaf5c986eb
[ "MIT" ]
null
null
null
stim/scripts/arrange_vids.py
shariliu/doe-lookit
43eea4b72bed58d59ac6115019ed94eaf5c986eb
[ "MIT" ]
null
null
null
stim/scripts/arrange_vids.py
shariliu/doe-lookit
43eea4b72bed58d59ac6115019ed94eaf5c986eb
[ "MIT" ]
null
null
null
import os import subprocess as sp import sys videoPath = '/Users/shariliu/Documents/HarvardLDS/Studies/DOE-lookit/stim/video/origs/control/' videoFiles = os.listdir(videoPath) # # hab1 video # sp.call(["ffmpeg", "-i", os.path.join(videoPath, "hab1_crop.mp4"), "-i", os.path.join(videoPath, "hab2_newest_crop_flip.mp4"), "-filter_complex",\ # "[0]pad=iw+500:color=white[left];[left][1]hstack=inputs=2", os.path.join(videoPath, "hab1_hab2.mp4")]) # # hab2 video # sp.call(["ffmpeg", "-i", os.path.join(videoPath, "hab2_newest_crop.mp4"), "-i", os.path.join(videoPath, "hab1_crop_flip.mp4"), "-filter_complex",\ # "[0]pad=iw+500:color=white[left];[left][1]hstack=inputs=2", os.path.join(videoPath, "hab2_hab1.mp4")]) # test video 1 #sp.call(["ffmpeg", "-i", "high_orig_crop_trim.mp4", "-i", "low_orig_crop_trim_flip.mp4", "-filter_complex",\ # "[0]pad=iw+500:color=white[left];[left][1]hstack=inputs=2", "ineff_eff.mp4"]) # test video 2 #sp.call(["ffmpeg", "-i", "low_orig_crop_trim.mp4", "-i", "high_orig_crop_trim_flip.mp4", "-filter_complex",\ # "[0]pad=iw+500:color=white[left];[left][1]hstack=inputs=2", "eff_ineff.mp4"]) # # hab1 video # sp.call(["ffmpeg", "-i", os.path.join(videoPath, "control_hab1.mp4"), "-i", os.path.join(videoPath, "control_hab2_flip.mp4"), "-filter_complex",\ # "[0]pad=iw+500:color=white[left];[left][1]hstack=inputs=2", os.path.join(videoPath, "control_hab1_hab2.mp4")]) # # hab2 video # sp.call(["ffmpeg", "-i", os.path.join(videoPath, "control_hab2.mp4"), "-i", os.path.join(videoPath, "control_hab1_flip.mp4"), "-filter_complex",\ # "[0]pad=iw+500:color=white[left];[left][1]hstack=inputs=2", os.path.join(videoPath, "control_hab2_hab1.mp4")]) #test video 1 sp.call(["ffmpeg", "-i", os.path.join(videoPath,"control_ineff.mp4"), "-i", os.path.join(videoPath,"control_eff_flip.mp4"), "-filter_complex",\ "[0]pad=iw+500:color=white[left];[left][1]hstack=inputs=2", "control_ineff_eff.mp4"]) #test video 2 sp.call(["ffmpeg", "-i", os.path.join(videoPath,"control_eff.mp4"), "-i", os.path.join(videoPath,"control_ineff_flip.mp4"), "-filter_complex",\ "[0]pad=iw+500:color=white[left];[left][1]hstack=inputs=2", "control_eff_ineff.mp4"])
55.820513
148
0.694074
354
2,177
4.115819
0.144068
0.065889
0.109815
0.208648
0.886754
0.855182
0.855182
0.724777
0.694578
0.658888
0
0.047198
0.065687
2,177
39
149
55.820513
0.669125
0.682591
0
0
0
0.333333
0.539039
0.385886
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
1
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
8
96e601dbe0f81cd706dd1da2e2fe8b09a767a669
127
py
Python
test2.py
ktbyers/pynet-test
8729e0792c4c035c3bcf26b6750bc7da8a2e4621
[ "Apache-2.0" ]
1
2021-10-03T21:09:39.000Z
2021-10-03T21:09:39.000Z
test2.py
ktbyers/pynet-test
8729e0792c4c035c3bcf26b6750bc7da8a2e4621
[ "Apache-2.0" ]
null
null
null
test2.py
ktbyers/pynet-test
8729e0792c4c035c3bcf26b6750bc7da8a2e4621
[ "Apache-2.0" ]
null
null
null
while True: print("Hello") print("Hello") print("Hello") print("Hello") print("Hello") print("Whatever")
12.7
18
0.566929
14
127
5.142857
0.357143
0.694444
1.041667
1.111111
0.763889
0.763889
0.763889
0.763889
0.763889
0
0
0
0.23622
127
9
19
14.111111
0.742268
0
0
0.714286
0
0
0.261905
0
0
0
0
0
0
1
0
true
0
0
0
0
0.857143
1
0
0
null
1
1
1
0
1
1
1
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
12
4fbaac736b7f86e76df90ef4df4e2ba144d6a409
334
py
Python
reinforch/utils/__init__.py
kaixinbaba/reinforch
10a8c21054cbfa03e059e2e19bee7c257faab4bf
[ "MIT" ]
3
2019-04-18T22:20:25.000Z
2019-04-19T04:51:53.000Z
reinforch/utils/__init__.py
kaixinbaba/reinforch
10a8c21054cbfa03e059e2e19bee7c257faab4bf
[ "MIT" ]
null
null
null
reinforch/utils/__init__.py
kaixinbaba/reinforch
10a8c21054cbfa03e059e2e19bee7c257faab4bf
[ "MIT" ]
null
null
null
from reinforch.utils.util import \ read_config, from_config, util_from_config, \ FloatTensor, LongTensor, Tensor, \ obj2tensor, tensor2tensor, o2t, t2t __all__ = ['read_config', 'from_config', 'util_from_config', 'FloatTensor', 'LongTensor', 'Tensor', 'obj2tensor', 'tensor2tensor', 'o2t', 't2t', ]
37.111111
79
0.667665
34
334
6.205882
0.441176
0.189573
0.132701
0.189573
0.853081
0.853081
0.853081
0.853081
0.853081
0.853081
0
0.02963
0.191617
334
8
80
41.75
0.751852
0
0
0
0
0
0.281437
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
8b0c4ee29df46e6f57358543f6dfbc094fba6c48
1,310
py
Python
test/helpers_test.py
shaolin182/photo-workflow
5096deb6569e951a63927f0a94e5ba14e9478895
[ "MIT" ]
1
2021-07-14T11:36:09.000Z
2021-07-14T11:36:09.000Z
test/helpers_test.py
shaolin182/photo-workflow
5096deb6569e951a63927f0a94e5ba14e9478895
[ "MIT" ]
1
2021-07-12T21:01:56.000Z
2021-07-12T21:01:56.000Z
test/helpers_test.py
shaolin182/photo-workflow
5096deb6569e951a63927f0a94e5ba14e9478895
[ "MIT" ]
null
null
null
from photo_workflow.helpers import list_files def test_list_files_no_recursive_no_pattern(): res = list_files("./test/resources/sample_files") assert len(res) == 2 assert "./test/resources/sample_files/a_file_1.txt" in res assert "./test/resources/sample_files/a_file_2.txt" in res def test_list_files_no_recursive_pattern(): res = list_files("./test/resources/sample_files", False, ".*1.*") assert len(res) == 1 assert "./test/resources/sample_files/a_file_1.txt" in res def test_list_files_recursive_no_pattern(): res = list_files("./test/resources/sample_files", True) assert len(res) == 6 assert "./test/resources/sample_files/a_file_1.txt" in res assert "./test/resources/sample_files/a_file_2.txt" in res assert "./test/resources/sample_files/folder_2/a_file_3.txt" in res assert "./test/resources/sample_files/folder_1/subfolder_2/a_file_4.txt" in res assert "./test/resources/sample_files/folder_1/subfolder_1/a_file_5.txt" in res assert "./test/resources/sample_files/folder_1/subfolder_1/a_file_6.txt" in res def test_list_files_recursive_pattern(): res = list_files("./test/resources/sample_files", True, ".*4.*") assert len(res) == 1 assert "./test/resources/sample_files/folder_1/subfolder_2/a_file_4.txt" in res
36.388889
83
0.740458
212
1,310
4.25
0.146226
0.201998
0.295228
0.372919
0.9101
0.9101
0.887902
0.870144
0.825749
0.63263
0
0.021911
0.129008
1,310
35
84
37.428571
0.767748
0
0
0.391304
0
0
0.488159
0.480519
0
0
0
0
0.608696
1
0.173913
false
0
0.043478
0
0.217391
0
0
0
0
null
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
1
0
0
0
0
0
0
0
0
0
11
8caae7e7dec353786599b36f0f90e32574192979
95
py
Python
pythonProject1/venv/Lib/site-packages/tkinter_nav/__init__.py
mjtomlinson/CNE330_Python_1_Final_Project
05020806860937ef37b9a0ad2e27de4897a606de
[ "CC0-1.0" ]
1
2021-02-08T14:49:20.000Z
2021-02-08T14:49:20.000Z
pythonProject1/venv/Lib/site-packages/tkinter_nav/__init__.py
mjtomlinson/CNE330_Python_1_Final_Project
05020806860937ef37b9a0ad2e27de4897a606de
[ "CC0-1.0" ]
null
null
null
pythonProject1/venv/Lib/site-packages/tkinter_nav/__init__.py
mjtomlinson/CNE330_Python_1_Final_Project
05020806860937ef37b9a0ad2e27de4897a606de
[ "CC0-1.0" ]
2
2020-05-18T13:43:04.000Z
2021-06-20T05:11:50.000Z
from .errors import * from .page import * from .page_container import * from .wrapper import *
19
29
0.747368
13
95
5.384615
0.461538
0.428571
0.4
0
0
0
0
0
0
0
0
0
0.168421
95
4
30
23.75
0.886076
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
8ccda83560e2af0efc71f549841df8202c08ffb2
35,781
py
Python
python_msx_sdk/api/products_api.py
CiscoDevNet/python-msx-sdk
d7e0a08c656504b4f4551d263e67c671a2a04b3f
[ "MIT" ]
null
null
null
python_msx_sdk/api/products_api.py
CiscoDevNet/python-msx-sdk
d7e0a08c656504b4f4551d263e67c671a2a04b3f
[ "MIT" ]
null
null
null
python_msx_sdk/api/products_api.py
CiscoDevNet/python-msx-sdk
d7e0a08c656504b4f4551d263e67c671a2a04b3f
[ "MIT" ]
null
null
null
""" MSX SDK MSX SDK client. # noqa: E501 The version of the OpenAPI document: 1.0.9 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from python_msx_sdk.api_client import ApiClient, Endpoint as _Endpoint from python_msx_sdk.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_types ) from python_msx_sdk.model.catalog_assignment import CatalogAssignment from python_msx_sdk.model.error import Error from python_msx_sdk.model.product import Product from python_msx_sdk.model.product_create import ProductCreate from python_msx_sdk.model.product_update import ProductUpdate from python_msx_sdk.model.products_page import ProductsPage class ProductsApi(object): """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def __create_product( self, product_create, **kwargs ): """Creates a product. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_product(product_create, async_req=True) >>> result = thread.get() Args: product_create (ProductCreate): Keyword Args: _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: Product If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') kwargs['product_create'] = \ product_create return self.call_with_http_info(**kwargs) self.create_product = _Endpoint( settings={ 'response_type': (Product,), 'auth': [], 'endpoint_path': '/consume/api/v8/products', 'operation_id': 'create_product', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ 'product_create', ], 'required': [ 'product_create', ], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { 'product_create': (ProductCreate,), }, 'attribute_map': { }, 'location_map': { 'product_create': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [ 'application/json' ] }, api_client=api_client, callable=__create_product ) def __delete_product( self, id, **kwargs ): """Deletes a product. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_product(id, async_req=True) >>> result = thread.get() Args: id (str): Keyword Args: _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: None If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') kwargs['id'] = \ id return self.call_with_http_info(**kwargs) self.delete_product = _Endpoint( settings={ 'response_type': None, 'auth': [], 'endpoint_path': '/consume/api/v8/products/{id}', 'operation_id': 'delete_product', 'http_method': 'DELETE', 'servers': None, }, params_map={ 'all': [ 'id', ], 'required': [ 'id', ], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { 'id': (str,), }, 'attribute_map': { 'id': 'id', }, 'location_map': { 'id': 'path', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client, callable=__delete_product ) def __get_product( self, id, **kwargs ): """Returns a product. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_product(id, async_req=True) >>> result = thread.get() Args: id (str): Keyword Args: _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: Product If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') kwargs['id'] = \ id return self.call_with_http_info(**kwargs) self.get_product = _Endpoint( settings={ 'response_type': (Product,), 'auth': [], 'endpoint_path': '/consume/api/v8/products/{id}', 'operation_id': 'get_product', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'id', ], 'required': [ 'id', ], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { 'id': (str,), }, 'attribute_map': { 'id': 'id', }, 'location_map': { 'id': 'path', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client, callable=__get_product ) def __get_product_assignments_list( self, id, **kwargs ): """Returns a list of tenant assignments for a product . # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_product_assignments_list(id, async_req=True) >>> result = thread.get() Args: id (str): Keyword Args: _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: [CatalogAssignment] If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') kwargs['id'] = \ id return self.call_with_http_info(**kwargs) self.get_product_assignments_list = _Endpoint( settings={ 'response_type': ([CatalogAssignment],), 'auth': [], 'endpoint_path': '/consume/api/v8/products/{id}/assignments/list', 'operation_id': 'get_product_assignments_list', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'id', ], 'required': [ 'id', ], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { 'id': (str,), }, 'attribute_map': { 'id': 'id', }, 'location_map': { 'id': 'path', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client, callable=__get_product_assignments_list ) def __get_products_count( self, **kwargs ): """Returns the number of products. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_products_count(async_req=True) >>> result = thread.get() Keyword Args: tenant_id (str): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: int If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') return self.call_with_http_info(**kwargs) self.get_products_count = _Endpoint( settings={ 'response_type': (int,), 'auth': [], 'endpoint_path': '/consume/api/v8/products/count', 'operation_id': 'get_products_count', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'tenant_id', ], 'required': [], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { 'tenant_id': (str,), }, 'attribute_map': { 'tenant_id': 'tenantId', }, 'location_map': { 'tenant_id': 'query', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client, callable=__get_products_count ) def __get_products_page( self, page, page_size, **kwargs ): """Returns a page of products. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_products_page(page, page_size, async_req=True) >>> result = thread.get() Args: page (int): page_size (int): Keyword Args: tenant_id (str): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: ProductsPage If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') kwargs['page'] = \ page kwargs['page_size'] = \ page_size return self.call_with_http_info(**kwargs) self.get_products_page = _Endpoint( settings={ 'response_type': (ProductsPage,), 'auth': [], 'endpoint_path': '/consume/api/v8/products', 'operation_id': 'get_products_page', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'page', 'page_size', 'tenant_id', ], 'required': [ 'page', 'page_size', ], 'nullable': [ ], 'enum': [ ], 'validation': [ 'page', 'page_size', ] }, root_map={ 'validations': { ('page',): { 'inclusive_minimum': 0, }, ('page_size',): { 'inclusive_maximum': 1000, 'inclusive_minimum': 1, }, }, 'allowed_values': { }, 'openapi_types': { 'page': (int,), 'page_size': (int,), 'tenant_id': (str,), }, 'attribute_map': { 'page': 'page', 'page_size': 'pageSize', 'tenant_id': 'tenantId', }, 'location_map': { 'page': 'query', 'page_size': 'query', 'tenant_id': 'query', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client, callable=__get_products_page ) def __update_product( self, id, product_update, **kwargs ): """Updates a product. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_product(id, product_update, async_req=True) >>> result = thread.get() Args: id (str): product_update (ProductUpdate): Keyword Args: _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: Product If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') kwargs['id'] = \ id kwargs['product_update'] = \ product_update return self.call_with_http_info(**kwargs) self.update_product = _Endpoint( settings={ 'response_type': (Product,), 'auth': [], 'endpoint_path': '/consume/api/v8/products/{id}', 'operation_id': 'update_product', 'http_method': 'PUT', 'servers': None, }, params_map={ 'all': [ 'id', 'product_update', ], 'required': [ 'id', 'product_update', ], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { 'id': (str,), 'product_update': (ProductUpdate,), }, 'attribute_map': { 'id': 'id', }, 'location_map': { 'id': 'path', 'product_update': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [ 'application/json' ] }, api_client=api_client, callable=__update_product ) def __update_product_assignments( self, id, request_body, **kwargs ): """Updates the tenant assignments for a product. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_product_assignments(id, request_body, async_req=True) >>> result = thread.get() Args: id (str): request_body ([str]): Keyword Args: _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: [CatalogAssignment] If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') kwargs['id'] = \ id kwargs['request_body'] = \ request_body return self.call_with_http_info(**kwargs) self.update_product_assignments = _Endpoint( settings={ 'response_type': ([CatalogAssignment],), 'auth': [], 'endpoint_path': '/consume/api/v8/products/{id}/assignments', 'operation_id': 'update_product_assignments', 'http_method': 'PUT', 'servers': None, }, params_map={ 'all': [ 'id', 'request_body', ], 'required': [ 'id', 'request_body', ], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { 'id': (str,), 'request_body': ([str],), }, 'attribute_map': { 'id': 'id', }, 'location_map': { 'id': 'path', 'request_body': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [ 'application/json' ] }, api_client=api_client, callable=__update_product_assignments )
35.252217
89
0.44778
3,014
35,781
5.05939
0.065362
0.033051
0.02728
0.02833
0.865762
0.840121
0.832842
0.826415
0.817168
0.801298
0
0.003209
0.468712
35,781
1,014
90
35.286982
0.798948
0.320589
0
0.634218
1
0
0.211214
0.038951
0
0
0
0
0
1
0.013274
false
0
0.014749
0
0.041298
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
507470aff0a5ee3f049a0808c0de3531bbedeeed
15,005
py
Python
bot/main/paginator.py
AkshuAgarwal/Aperture-1.7
c55ffa68d3a4de0daaaad2c918173e5ebca9f006
[ "MIT" ]
2
2021-09-05T16:42:13.000Z
2021-09-09T18:41:14.000Z
bot/main/paginator.py
AkshuAgarwal/Aperture-1.7
c55ffa68d3a4de0daaaad2c918173e5ebca9f006
[ "MIT" ]
null
null
null
bot/main/paginator.py
AkshuAgarwal/Aperture-1.7
c55ffa68d3a4de0daaaad2c918173e5ebca9f006
[ "MIT" ]
null
null
null
import asyncio from typing import List, Union, Optional from contextlib import suppress import discord class StringPaginator: def __init__( self, *, pages: List[str] = None, compact: bool = False, timeout: float = 90.0, has_input: bool = True, ): self.pages = pages self.compact = compact self.timeout = timeout self.has_input = has_input self.ctx = None self.bot = None self.loop = None self.message = None self.current = 0 self.previous = 0 self.end = 0 self.reactions = { "⏮": 0.0, "◀": -1, "⏹️": "stop", "▶": +1, "⏭": None, } self.__tasks = [] self.__is_running = True if self.has_input is True: self.reactions["🔢"] = "input" if self.pages is not None: if len(self.pages) == 2: self.compact = True if self.compact is True: keys = ("⏮", "⏭", "🔢") for key in keys: del self.reactions[key] def go_to_page(self, number): if number > int(self.end): page = int(self.end) else: page = number - 1 self.current = page async def controller(self, react): if react == "stop": await self.stop() elif react == "input": to_delete = [] message = await self.ctx.send("Which page do you want to jump to?") to_delete.append(message) def check(m): if m.author.id != self.ctx.author.id: return False if self.ctx.channel.id != m.channel.id: return False if not m.content.isdigit(): return False return True try: message = await self.bot.wait_for("message", check=check, timeout=30.0) except asyncio.TimeoutError: to_delete.append( await self.ctx.send("You took too long to respond!") ) await asyncio.sleep(5) else: to_delete.append(message) if int(message.content) < 1 or int(message.content) > len(self.pages): await self.ctx.send(f"`{int(message.content)}` is not a vaild Page no.", delete_after=5) else: self.go_to_page(int(message.content)) with suppress(Exception): await self.ctx.channel.delete_messages(to_delete) elif isinstance(react, int): self.current += react if self.current < 0 or self.current > self.end: self.current -= react else: self.current = int(react) # https://discordpy.readthedocs.io/en/latest/api.html#discord.RawReactionActionEvent def check(self, payload): if payload.message_id != self.message.id: return False if payload.user_id != self.ctx.author.id: return False return str(payload.emoji) in self.reactions async def add_reactions(self): for reaction in self.reactions: with suppress(discord.Forbidden, discord.HTTPException): await self.message.add_reaction(reaction) async def paginator(self): with suppress(discord.HTTPException, discord.Forbidden, IndexError): try: response = self.bot.old_responses[self.ctx.message.id] await response.edit(content=self.pages[0], embed=None, file=None, files=None, delete_after=None, allowed_mentions=None) self.message = response except KeyError: self.message = response = await self.ctx.reply(self.pages[0]) self.bot.old_responses[self.ctx.message.id] = response if len(self.pages) > 1: self.__tasks.append(self.loop.create_task(self.add_reactions())) else: return while self.__is_running: with suppress(Exception): tasks = [ asyncio.ensure_future( self.bot.wait_for("raw_reaction_add", check=self.check) ), asyncio.ensure_future( self.bot.wait_for("raw_reaction_remove", check=self.check) ), ] done, pending = await asyncio.wait( tasks, timeout=self.timeout, return_when=asyncio.FIRST_COMPLETED ) for task in pending: task.cancel() if len(done) == 0: # Clear reactions once the timeout has elapsed return await self.stop(timed_out=True) payload = done.pop().result() reaction = self.reactions.get(str(payload.emoji)) with suppress(Exception): await self.message.remove_reaction(str(payload.emoji), payload.member) self.previous = self.current await self.controller(reaction) if self.previous == self.current: continue with suppress(Exception): await self.message.edit(content=self.pages[self.current]) async def stop(self, *, timed_out=False): with suppress(discord.HTTPException, discord.Forbidden): await self.message.clear_reactions() with suppress(Exception): self.__is_running = False for task in self.__tasks: task.cancel() self.__tasks.clear() async def start(self, ctx): """Start paginator session. Parameters ----------- ctx: :class:`Context` The invocation context to use. """ self.ctx = ctx self.bot = ctx.bot self.loop = ctx.bot.loop if not isinstance(self.pages, list): raise TypeError( "Can't paginate an instance of <class '%s'>." % self.pages.__class__.__name__ ) if len(self.pages) == 0: raise RuntimeError("Can't paginate an empty list.") elif len(self.pages) == 1: try: response = self.bot.old_responses[self.ctx.message.id] return await response.edit(content=self.pages[0], embed=None, file=None, files=None, delete_after=None, allowed_mentions=None) except KeyError: response = await self.ctx.reply(self.pages[0]) self.bot.old_responses[self.ctx.message.id] = response return self.end = float(len(self.pages) - 1) if self.compact is False: self.reactions["⏭"] = self.end self.__tasks.append(self.loop.create_task(self.paginator())) class Paginator: """A pagination wrapper that allows to move between multiple pages by using reactions. Attributes ------------ pages: Optional[Union[:class:`List[discord.Embed]`, :class:`discord.Embed`]] A list of pages you want the paginator to paginate. Passing a discord.Embed instance will still work as if you were using: await ctx.send(embed=embed). timeout: :class:`float`. The timeout to wait before stopping the paginator session. Defaults to ``90.0``. compact: :class:`bool`. Whether the paginator should only use three reactions: previous, stop and next. Defaults to ``False``. has_input: :class:`bool`. Whether the paginator should add a reaction for taking input numbers. Defaults to ``True``. """ __slots__ = ( "pages", "timeout", "compact", "has_input", "message", "ctx", "bot", "loop", "current", "previous", "end", "reactions", "__tasks", "__is_running", ) def __init__( self, *, pages: Optional[Union[List[discord.Embed], discord.Embed]] = None, compact: bool = False, timeout: float = 90.0, has_input: bool = True, ): self.pages = pages self.compact = compact self.timeout = timeout self.has_input = has_input self.ctx = None self.bot = None self.loop = None self.message = None self.current = 0 self.previous = 0 self.end = 0 self.reactions = { "⏮": 0.0, "◀": -1, "⏹️": "stop", "▶": +1, "⏭": None, } self.__tasks = [] self.__is_running = True if self.has_input is True: self.reactions["🔢"] = "input" if self.pages is not None: if len(self.pages) == 2: self.compact = True if self.compact is True: keys = ("⏮", "⏭", "🔢") for key in keys: del self.reactions[key] def go_to_page(self, number): if number > int(self.end): page = int(self.end) else: page = number - 1 self.current = page async def controller(self, react): if react == "stop": await self.stop() elif react == "input": to_delete = [] message = await self.ctx.send("Which page do you want to jump to?") to_delete.append(message) def check(m): if m.author.id != self.ctx.author.id: return False if self.ctx.channel.id != m.channel.id: return False if not m.content.isdigit(): return False return True try: message = await self.bot.wait_for("message", check=check, timeout=30.0) except asyncio.TimeoutError: to_delete.append( await self.ctx.send("You took too long to respond!") ) await asyncio.sleep(5) else: to_delete.append(message) if int(message.content) < 1 or int(message.content) > len(self.pages): await self.ctx.send(f"`{int(message.content)}` is not a vaild Page no.", delete_after=5) else: self.go_to_page(int(message.content)) with suppress(Exception): await self.ctx.channel.delete_messages(to_delete) elif isinstance(react, int): self.current += react if self.current < 0 or self.current > self.end: self.current -= react else: self.current = int(react) # https://discordpy.readthedocs.io/en/latest/api.html#discord.RawReactionActionEvent def check(self, payload): if payload.message_id != self.message.id: return False if payload.user_id != self.ctx.author.id: return False return str(payload.emoji) in self.reactions async def add_reactions(self): for reaction in self.reactions: with suppress(discord.Forbidden, discord.HTTPException): await self.message.add_reaction(reaction) async def paginator(self): with suppress(discord.HTTPException, discord.Forbidden, IndexError): try: response = self.bot.old_responses[self.ctx.message.id] await response.edit(content=None, embed=self.pages[0], file=None, files=None, delete_after=None, allowed_mentions=None) self.message = response except KeyError: self.message = response = await self.ctx.reply(embed=self.pages[0]) self.bot.old_responses[self.ctx.message.id] = response if len(self.pages) > 1: self.__tasks.append(self.loop.create_task(self.add_reactions())) else: return while self.__is_running: with suppress(Exception): tasks = [ asyncio.ensure_future( self.bot.wait_for("raw_reaction_add", check=self.check) ), asyncio.ensure_future( self.bot.wait_for("raw_reaction_remove", check=self.check) ), ] done, pending = await asyncio.wait( tasks, timeout=self.timeout, return_when=asyncio.FIRST_COMPLETED ) for task in pending: task.cancel() if len(done) == 0: # Clear reactions once the timeout has elapsed return await self.stop(timed_out=True) payload = done.pop().result() reaction = self.reactions.get(str(payload.emoji)) with suppress(Exception): await self.message.remove_reaction(str(payload.emoji), payload.member) self.previous = self.current await self.controller(reaction) if self.previous == self.current: continue with suppress(Exception): await self.message.edit(embed=self.pages[self.current]) async def stop(self, *, timed_out=False): with suppress(discord.HTTPException, discord.Forbidden): await self.message.clear_reactions() with suppress(Exception): self.__is_running = False for task in self.__tasks: task.cancel() self.__tasks.clear() async def start(self, ctx): """Start paginator session. Parameters ----------- ctx: :class:`Context` The invocation context to use. """ self.ctx = ctx self.bot = ctx.bot self.loop = ctx.bot.loop if isinstance(self.pages, discord.Embed): try: response = self.bot.old_responses[self.ctx.message.id] return await response.edit(content=None, embed=self.pages, file=None, files=None, delete_after=None, allowed_mentions=None) except KeyError: response = await self.ctx.reply(embed=self.pages) self.bot.old_responses[self.ctx.message.id] = response if not isinstance(self.pages, (list, discord.Embed)): raise TypeError( "Can't paginate an instance of <class '%s'>." % self.pages.__class__.__name__ ) if len(self.pages) == 0: raise RuntimeError("Can't paginate an empty list.") self.end = float(len(self.pages) - 1) if self.compact is False: self.reactions["⏭"] = self.end self.__tasks.append(self.loop.create_task(self.paginator()))
33.493304
142
0.531023
1,652
15,005
4.737893
0.122881
0.036796
0.018398
0.01942
0.894979
0.894979
0.879647
0.879647
0.87262
0.87262
0
0.005885
0.365811
15,005
448
143
33.493304
0.814313
0.065178
0
0.859238
0
0
0.043883
0.003516
0
0
0
0
0
1
0.02346
false
0
0.01173
0
0.105572
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
50a2556daa584de8b807868b8b0cea323cccf72e
14,358
py
Python
code/config.py
Bcastet/DeepReconstruction
0a91eeda4c34350bee6ebafdfc0528060b8142fc
[ "MIT" ]
8
2019-08-08T16:45:45.000Z
2021-12-09T07:00:52.000Z
code/config.py
Bcastet/DeepReconstruction
0a91eeda4c34350bee6ebafdfc0528060b8142fc
[ "MIT" ]
null
null
null
code/config.py
Bcastet/DeepReconstruction
0a91eeda4c34350bee6ebafdfc0528060b8142fc
[ "MIT" ]
4
2020-05-20T02:08:37.000Z
2021-12-01T08:47:05.000Z
import configparser #converters def string2tuple(x): return tuple(map(int, x.split())) def string2list(x): return list(map(float, x.split())) class Config: @classmethod def load_config(cls, filename): config = configparser.ConfigParser(converters={'tuple': string2tuple, 'list': string2list}) config.read(filename) cls.config = config s = 'general' cls.name = config.get(s, 'name') cls.main_task = config.get(s, 'main_task') cls.task = config.get(s, 'task') cls.preview_data = config.getboolean(s, 'preview_data') cls.fig_save_path = config.get(s, 'fig_save_path') if cls.main_task == 'train': if cls.task == 'train projector': s = 'train projector' cls.net_load_path = config.get(s, 'net_load_path') cls.optimizer_load_path = config.get(s, 'optimizer_load_path') cls.save_path = config.get(s, 'save_path') cls.train1_save = config.getboolean(s, 'train1_save') cls.train2_save = config.getboolean(s, 'train2_save') cls.train3_save = config.getboolean(s, 'train3_save') cls.test1_save = config.getboolean(s, 'test1_save') cls.test2_save = config.getboolean(s, 'test2_save') cls.test3_save = config.getboolean(s, 'test3_save') cls.train_momentum = config.getfloat(s, 'train_momentum') cls.test_momentum = config.getfloat(s, 'test_momentum') cls.inC = config.getint(s, 'inC') cls.outC = config.getint(s, 'outC') cls.net = config.get(s, 'net') cls.optimizer = config.get(s, 'optimizer') cls.reset_optimizer = config.getboolean(s, 'reset_optimizer') cls.criterion = config.get(s, 'criterion') cls.plot_loss = config.getboolean(s, 'plot_loss') cls.print_loss = config.getboolean(s, 'print_loss') cls.log_step = config.getint(s, 'log_step') cls.train_input_path = config.get(s, 'train_input_path') cls.train_target_path = config.get(s, 'train_target_path') cls.test_input_path = config.get(s, 'test_input_path') cls.test_target_path = config.get(s, 'test_target_path') cls.n_train_samples = config.getint(s, 'n_train_samples') cls.n_test_samples = config.getint(s, 'n_test_samples') cls.train_batch_size = config.getint(s, 'train_batch_size') cls.h = config.getint(s, 'h') cls.w = config.getint(s, 'w') cls.n_epoch1 = config.getint(s, 'n_epoch1') cls.n_epoch2 = config.getint(s, 'n_epoch2') cls.n_epoch3 = config.getint(s, 'n_epoch3') cls.lr1 = config.getfloat(s, 'lr1') cls.lr2 = config.getfloat(s, 'lr2') cls.lr3 = config.getfloat(s, 'lr3') cls.d_e1 = config.getint(s, 'd_e1') cls.d_e2 = config.getint(s, 'd_e2') cls.d_e3 = config.getint(s, 'd_e3') cls.d_lr1 = config.getint(s, 'd_lr1') cls.d_lr2 = config.getint(s, 'd_lr2') cls.d_lr3 = config.getint(s, 'd_lr3') elif cls.task == 'train1': s = 'train1' cls.net_load_path = config.get(s, 'net_load_path') cls.optimizer_load_path = config.get(s, 'optimizer_load_path') cls.save_path = config.get(s, 'save_path') cls.train1_save = config.getboolean(s, 'train1_save') cls.test1_save = config.getboolean(s, 'test1_save') cls.train_momentum = config.getfloat(s, 'train_momentum') cls.test_momentum = config.getfloat(s, 'test_momentum') cls.inC = config.getint(s, 'inC') cls.outC = config.getint(s, 'outC') cls.net = config.get(s, 'net') cls.optimizer = config.get(s, 'optimizer') cls.reset_optimizer = config.getboolean(s, 'reset_optimizer') cls.criterion = config.get(s, 'criterion') cls.plot_loss = config.getboolean(s, 'plot_loss') cls.print_loss = config.getboolean(s, 'print_loss') cls.log_step = config.getint(s, 'log_step') cls.train_input_path = config.get(s, 'train_input_path') cls.train_target_path = config.get(s, 'train_target_path') cls.test_input_path = config.get(s, 'test_input_path') cls.test_target_path = config.get(s, 'test_target_path') cls.n_train_samples = config.getint(s, 'n_train_samples') cls.n_test_samples = config.getint(s, 'n_test_samples') cls.train_batch_size = config.getint(s, 'train_batch_size') cls.h = config.getint(s, 'h') cls.w = config.getint(s, 'w') cls.n_epoch1 = config.getint(s, 'n_epoch1') cls.lr1 = config.getfloat(s, 'lr1') cls.d_e1 = config.getint(s, 'd_e1') cls.d_lr1 = config.getint(s, 'd_lr1') elif cls.task == 'train2': s = 'train2' cls.net_load_path = config.get(s, 'net_load_path') cls.optimizer_load_path = config.get(s, 'optimizer_load_path') cls.save_path = config.get(s, 'save_path') cls.train2_save = config.getboolean(s, 'train2_save') cls.test2_save = config.getboolean(s, 'test2_save') cls.train_momentum = config.getfloat(s, 'train_momentum') cls.test_momentum = config.getfloat(s, 'test_momentum') cls.inC = config.getint(s, 'inC') cls.outC = config.getint(s, 'outC') cls.net = config.get(s, 'net') cls.optimizer = config.get(s, 'optimizer') cls.reset_optimizer = config.getboolean(s, 'reset_optimizer') cls.criterion = config.get(s, 'criterion') cls.plot_loss = config.getboolean(s, 'plot_loss') cls.print_loss = config.getboolean(s, 'print_loss') cls.log_step = config.getint(s, 'log_step') cls.train_input_path = config.get(s, 'train_input_path') cls.train_target_path = config.get(s, 'train_target_path') cls.test_input_path = config.get(s, 'test_input_path') cls.test_target_path = config.get(s, 'test_target_path') cls.n_train_samples = config.getint(s, 'n_train_samples') cls.n_test_samples = config.getint(s, 'n_test_samples') cls.train_batch_size = config.getint(s, 'train_batch_size') cls.h = config.getint(s, 'h') cls.w = config.getint(s, 'w') cls.n_epoch2 = config.getint(s, 'n_epoch2') cls.lr2 = config.getfloat(s, 'lr2') cls.d_e2 = config.getint(s, 'd_e2') cls.d_lr2 = config.getint(s, 'd_lr2') elif cls.task == 'train3': s = 'train3' cls.net_load_path = config.get(s, 'net_load_path') cls.optimizer_load_path = config.get(s, 'optimizer_load_path') cls.save_path = config.get(s, 'save_path') cls.train3_save = config.getboolean(s, 'train3_save') cls.test3_save = config.getboolean(s, 'test3_save') cls.train_momentum = config.getfloat(s, 'train_momentum') cls.test_momentum = config.getfloat(s, 'test_momentum') cls.inC = config.getint(s, 'inC') cls.outC = config.getint(s, 'outC') cls.net = config.get(s, 'net') cls.optimizer = config.get(s, 'optimizer') cls.reset_optimizer = config.getboolean(s, 'reset_optimizer') cls.criterion = config.get(s, 'criterion') cls.plot_loss = config.getboolean(s, 'plot_loss') cls.print_loss = config.getboolean(s, 'print_loss') cls.log_step = config.getint(s, 'log_step') cls.train_input_path = config.get(s, 'train_input_path') cls.train_target_path = config.get(s, 'train_target_path') cls.test_input_path = config.get(s, 'test_input_path') cls.test_target_path = config.get(s, 'test_target_path') cls.n_train_samples = config.getint(s, 'n_train_samples') cls.n_test_samples = config.getint(s, 'n_test_samples') cls.train_batch_size = config.getint(s, 'train_batch_size') cls.h = config.getint(s, 'h') cls.w = config.getint(s, 'w') cls.n_epoch3 = config.getint(s, 'n_epoch3') cls.lr3 = config.getfloat(s, 'lr3') cls.d_e3 = config.getint(s, 'd_e3') cls.d_lr3 = config.getint(s, 'd_lr3') else: if cls.task == 'test': s = 'test' cls.net_load_path = config.get(s, 'net_load_path') cls.test_momentum = config.getfloat(s, 'test_momentum') cls.inC = config.getint(s, 'inC') cls.outC = config.getint(s, 'outC') cls.net = config.get(s, 'net') cls.test_input_path = config.get(s, 'test_input_path') cls.test_target_path = config.get(s, 'test_target_path') cls.n_test_samples = config.getint(s, 'n_test_samples') cls.h = config.getint(s, 'h') cls.w = config.getint(s, 'w') cls.test_sample_id = config.getint(s, 'test_sample_id') cls.test_loss = config.getboolean(s, 'test_loss') cls.dk = config.getint(s, 'dk') cls.dgamma = config.getfloat(s, 'dgamma') cls.n_test_iter = config.getint(s, 'n_test_iter') cls.c = config.getfloat(s, 'c') cls.alpha = config.getfloat(s, 'alpha') cls.gamma = config.getfloat(s, 'gamma') #add options here for components of the operators (eg. mask for MRI operator, kernel(weight) for #convolutional operator,...) cls.mask = config.get(s, 'mask') cls.weight = config.get(s, 'weight') cls.operator = config.get(s, 'operator') elif cls.task == 'reconstruct': s = 'reconstruct' cls.net_load_path = config.get(s, 'net_load_path') cls.test_momentum = config.getfloat(s, 'test_momentum') cls.inC = config.getint(s, 'inC') cls.outC = config.getint(s, 'outC') cls.net = config.get(s, 'net') cls.test_input_path = config.get(s, 'test_input_path') cls.test_target_path = config.get(s, 'test_target_path') cls.n_test_samples = config.getint(s, 'n_test_samples') cls.h = config.getint(s, 'h') cls.w = config.getint(s, 'w') cls.test_sample_id = config.getint(s, 'test_sample_id') cls.test_loss = config.getboolean(s, 'test_loss') cls.dk = config.getint(s, 'dk') cls.dgamma = config.getfloat(s, 'dgamma') cls.n_test_iter = config.getint(s, 'n_test_iter') cls.c = config.getfloat(s, 'c') cls.alpha = config.getfloat(s, 'alpha') cls.gamma0 = config.getlist(s, 'gamma0') cls.plot_gamma_snr = config.getboolean(s, 'plot_gamma_snr') cls.tol = config.getfloat(s, 'tol') #add options here for components of the operators (eg. mask for MRI operator, kernel(weight) for #convolutional operator,...) cls.mask = config.get(s, 'mask') cls.weight = config.get(s, 'weight') cls.operator = config.get(s, 'operator') elif cls.task == 'overall snr increase': s = 'overall snr increase' cls.net_load_path = config.get(s, 'net_load_path') cls.test_momentum = config.getfloat(s, 'test_momentum') cls.inC = config.getint(s, 'inC') cls.outC = config.getint(s, 'outC') cls.net = config.get(s, 'net') cls.test_input_path = config.get(s, 'test_input_path') cls.test_target_path = config.get(s, 'test_target_path') cls.n_test_samples = config.getint(s, 'n_test_samples') cls.h = config.getint(s, 'h') cls.w = config.getint(s, 'w') cls.test_loss = config.getboolean(s, 'test_loss') cls.dk = config.getint(s, 'dk') cls.dgamma = config.getfloat(s, 'dgamma') cls.n_test_iter = config.getint(s, 'n_test_iter') cls.c = config.getfloat(s, 'c') cls.alpha = config.getfloat(s, 'alpha') cls.gamma0 = config.getlist(s, 'gamma0') cls.plot_gamma_snr = config.getboolean(s, 'plot_gamma_snr') cls.show_reconstruction = config.getboolean(s, 'show_reconstruction') cls.tol = config.getfloat(s, 'tol') #add options here for components of the operators (eg. mask for MRI operator, kernel(weight) for #convolutional operator,...) cls.mask = config.get(s, 'mask') cls.weight = config.get(s, 'weight') cls.operator = config.get(s, 'operator')
49.681661
113
0.526048
1,711
14,358
4.203974
0.063705
0.121785
0.131934
0.073961
0.905047
0.902544
0.902544
0.890449
0.866398
0.830669
0
0.009237
0.351581
14,358
289
114
49.681661
0.763373
0.028625
0
0.846491
0
0
0.139445
0
0
0
0
0
0
1
0.013158
false
0
0.004386
0.008772
0.030702
0.017544
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
0fa4f6e3bf0fe3c32cf8f5a8fe0a280a5da3af74
65,997
py
Python
asnets/experiments/det_blocksworld_test07.py
xf1590281/ASNets
5f4b29fb62a5e72004b813228442d06246c9ec33
[ "MIT" ]
21
2017-12-05T13:27:36.000Z
2021-11-16T20:32:33.000Z
asnets/experiments/det_blocksworld_test07.py
xf1590281/ASNets
5f4b29fb62a5e72004b813228442d06246c9ec33
[ "MIT" ]
2
2018-07-16T12:15:46.000Z
2020-10-31T00:02:49.000Z
asnets/experiments/det_blocksworld_test07.py
xf1590281/ASNets
5f4b29fb62a5e72004b813228442d06246c9ec33
[ "MIT" ]
7
2018-03-19T13:45:13.000Z
2022-03-24T07:52:20.000Z
"""An extended set of deterministic blocksworld problems, like det_blocksworld_uber.py. This one just contains totally random 7-block problems.""" PDDL_DIR = '../problems/mine/det-bw-challenge/pddl/' COMMON_PDDLS = ['domain.pddl'] TRAIN_PDDLS = [ # same training set as det-bw-uber 'train/prob-blocks-blocks-nblk5-seed896255376-seq0.pddl', 'train/prob-blocks-blocks-nblk5-seed896255376-seq1.pddl', 'train/prob-blocks-blocks-nblk5-seed896255376-seq2.pddl', 'train/prob-blocks-blocks-nblk8-ntow1-seed270765476-seq0.pddl', 'train/prob-blocks-blocks-nblk8-ntow1-seed270765476-seq1.pddl', 'train/prob-blocks-blocks-nblk8-seed236108287-seq0.pddl', 'train/prob-blocks-blocks-nblk8-seed236108287-seq1.pddl', 'train/prob-blocks-blocks-nblk8-seed236108287-seq2.pddl', 'train/prob-blocks-blocks-nblk8-seed236108287-seq3.pddl', 'train/prob-blocks-blocks-nblk8-seed236108287-seq8.pddl', 'train/prob-blocks-blocks-nblk8-seed236108287-seq9.pddl', ] # yapf: disable TRAIN_NAMES = None _TEST_RUNS = [ 'test07/prob-blocks-blocks-nblk7-seed627553762-seq0.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq100.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq101.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq102.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq103.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq104.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq105.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq106.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq107.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq108.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq109.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq10.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq110.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq111.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq112.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq113.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq114.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq115.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq116.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq117.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq118.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq119.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq11.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq120.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq121.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq122.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq123.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq124.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq125.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq126.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq127.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq128.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq129.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq12.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq130.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq131.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq132.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq133.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq134.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq135.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq136.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq137.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq138.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq139.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq13.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq140.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq141.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq142.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq143.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq144.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq145.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq146.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq147.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq148.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq149.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq14.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq150.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq151.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq152.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq153.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq154.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq155.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq156.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq157.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq158.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq159.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq15.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq160.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq161.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq162.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq163.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq164.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq165.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq166.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq167.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq168.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq169.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq16.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq170.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq171.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq172.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq173.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq174.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq175.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq176.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq177.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq178.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq179.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq17.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq180.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq181.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq182.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq183.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq184.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq185.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq186.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq187.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq188.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq189.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq18.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq190.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq191.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq192.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq193.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq194.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq195.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq196.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq197.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq198.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq199.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq19.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq1.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq200.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq201.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq202.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq203.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq204.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq205.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq206.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq207.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq208.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq209.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq20.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq210.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq211.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq212.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq213.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq214.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq215.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq216.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq217.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq218.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq219.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq21.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq220.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq221.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq222.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq223.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq224.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq225.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq226.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq227.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq228.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq229.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq22.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq230.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq231.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq232.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq233.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq234.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq235.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq236.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq237.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq238.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq239.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq23.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq240.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq241.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq242.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq243.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq244.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq245.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq246.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq247.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq248.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq249.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq24.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq250.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq251.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq252.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq253.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq254.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq255.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq256.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq257.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq258.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq259.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq25.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq260.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq261.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq262.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq263.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq264.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq265.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq266.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq267.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq268.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq269.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq26.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq270.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq271.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq272.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq273.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq274.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq275.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq276.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq277.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq278.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq279.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq27.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq280.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq281.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq282.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq283.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq284.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq285.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq286.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq287.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq288.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq289.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq28.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq290.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq291.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq292.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq293.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq294.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq295.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq296.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq297.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq298.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq299.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq29.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq2.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq300.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq301.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq302.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq303.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq304.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq305.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq306.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq307.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq308.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq309.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq30.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq310.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq311.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq312.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq313.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq314.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq315.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq316.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq317.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq318.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq319.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq31.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq320.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq321.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq322.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq323.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq324.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq325.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq326.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq327.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq328.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq329.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq32.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq330.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq331.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq332.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq333.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq334.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq335.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq336.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq337.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq338.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq339.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq33.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq340.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq341.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq342.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq343.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq344.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq345.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq346.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq347.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq348.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq349.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq34.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq350.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq351.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq352.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq353.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq354.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq355.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq356.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq357.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq358.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq359.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq35.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq360.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq361.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq362.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq363.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq364.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq365.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq366.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq367.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq368.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq369.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq36.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq370.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq371.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq372.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq373.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq374.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq375.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq376.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq377.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq378.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq379.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq37.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq380.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq381.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq382.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq383.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq384.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq385.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq386.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq387.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq388.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq389.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq38.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq390.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq391.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq392.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq393.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq394.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq395.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq396.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq397.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq398.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq399.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq39.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq3.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq400.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq401.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq402.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq403.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq404.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq405.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq406.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq407.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq408.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq409.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq40.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq410.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq411.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq412.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq413.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq414.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq415.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq416.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq417.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq418.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq419.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq41.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq420.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq421.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq422.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq423.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq424.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq425.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq426.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq427.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq428.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq429.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq42.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq430.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq431.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq432.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq433.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq434.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq435.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq436.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq437.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq438.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq439.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq43.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq440.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq441.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq442.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq443.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq444.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq445.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq446.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq447.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq448.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq449.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq44.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq450.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq451.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq452.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq453.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq454.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq455.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq456.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq457.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq458.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq459.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq45.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq460.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq461.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq462.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq463.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq464.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq465.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq466.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq467.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq468.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq469.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq46.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq470.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq471.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq472.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq473.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq474.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq475.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq476.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq477.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq478.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq479.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq47.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq480.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq481.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq482.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq483.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq484.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq485.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq486.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq487.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq488.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq489.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq48.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq490.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq491.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq492.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq493.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq494.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq495.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq496.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq497.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq498.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq499.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq49.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq4.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq500.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq501.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq502.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq503.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq504.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq505.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq506.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq507.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq508.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq509.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq50.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq510.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq511.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq512.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq513.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq514.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq515.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq516.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq517.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq518.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq519.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq51.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq520.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq521.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq522.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq523.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq524.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq525.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq526.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq527.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq528.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq529.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq52.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq530.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq531.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq532.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq533.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq534.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq535.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq536.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq537.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq538.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq539.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq53.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq540.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq541.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq542.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq543.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq544.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq545.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq546.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq547.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq548.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq549.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq54.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq550.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq551.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq552.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq553.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq554.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq555.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq556.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq557.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq558.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq559.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq55.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq560.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq561.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq562.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq563.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq564.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq565.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq566.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq567.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq568.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq569.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq56.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq570.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq571.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq572.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq573.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq574.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq575.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq576.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq577.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq578.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq579.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq57.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq580.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq581.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq582.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq583.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq584.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq585.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq586.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq587.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq588.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq589.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq58.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq590.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq591.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq592.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq593.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq594.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq595.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq596.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq597.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq598.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq599.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq59.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq5.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq600.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq601.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq602.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq603.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq604.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq605.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq606.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq607.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq608.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq609.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq60.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq610.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq611.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq612.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq613.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq614.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq615.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq616.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq617.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq618.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq619.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq61.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq620.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq621.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq622.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq623.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq624.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq625.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq626.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq627.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq628.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq629.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq62.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq630.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq631.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq632.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq633.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq634.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq635.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq636.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq637.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq638.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq639.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq63.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq640.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq641.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq642.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq643.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq644.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq645.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq646.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq647.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq648.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq649.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq64.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq650.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq651.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq652.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq653.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq654.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq655.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq656.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq657.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq658.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq659.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq65.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq660.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq661.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq662.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq663.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq664.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq665.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq666.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq667.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq668.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq669.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq66.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq670.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq671.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq672.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq673.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq674.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq675.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq676.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq677.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq678.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq679.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq67.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq680.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq681.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq682.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq683.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq684.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq685.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq686.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq687.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq688.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq689.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq68.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq690.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq691.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq692.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq693.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq694.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq695.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq696.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq697.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq698.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq699.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq69.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq6.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq700.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq701.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq702.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq703.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq704.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq705.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq706.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq707.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq708.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq709.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq70.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq710.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq711.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq712.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq713.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq714.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq715.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq716.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq717.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq718.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq719.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq71.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq720.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq721.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq722.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq723.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq724.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq725.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq726.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq727.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq728.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq729.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq72.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq730.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq731.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq732.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq733.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq734.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq735.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq736.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq737.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq738.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq739.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq73.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq740.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq741.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq742.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq743.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq744.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq745.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq746.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq747.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq748.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq749.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq74.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq750.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq751.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq752.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq753.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq754.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq755.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq756.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq757.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq758.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq759.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq75.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq760.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq761.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq762.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq763.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq764.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq765.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq766.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq767.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq768.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq769.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq76.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq770.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq771.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq772.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq773.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq774.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq775.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq776.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq777.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq778.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq779.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq77.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq780.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq781.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq782.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq783.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq784.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq785.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq786.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq787.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq788.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq789.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq78.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq790.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq791.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq792.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq793.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq794.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq795.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq796.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq797.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq798.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq799.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq79.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq7.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq800.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq801.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq802.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq803.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq804.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq805.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq806.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq807.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq808.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq809.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq80.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq810.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq811.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq812.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq813.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq814.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq815.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq816.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq817.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq818.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq819.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq81.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq820.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq821.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq822.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq823.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq824.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq825.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq826.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq827.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq828.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq829.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq82.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq830.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq831.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq832.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq833.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq834.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq835.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq836.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq837.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq838.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq839.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq83.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq840.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq841.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq842.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq843.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq844.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq845.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq846.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq847.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq848.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq849.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq84.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq850.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq851.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq852.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq853.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq854.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq855.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq856.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq857.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq858.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq859.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq85.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq860.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq861.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq862.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq863.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq864.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq865.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq866.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq867.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq868.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq869.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq86.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq870.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq871.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq872.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq873.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq874.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq875.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq876.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq877.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq878.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq879.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq87.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq880.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq881.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq882.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq883.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq884.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq885.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq886.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq887.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq888.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq889.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq88.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq890.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq891.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq892.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq893.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq894.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq895.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq896.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq897.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq898.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq899.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq89.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq8.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq900.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq901.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq902.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq903.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq904.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq905.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq906.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq907.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq908.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq909.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq90.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq910.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq911.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq912.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq913.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq914.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq915.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq916.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq917.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq918.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq919.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq91.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq920.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq921.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq922.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq923.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq924.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq925.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq926.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq927.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq928.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq929.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq92.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq930.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq931.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq932.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq933.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq934.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq935.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq936.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq937.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq938.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq939.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq93.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq940.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq941.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq942.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq943.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq944.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq945.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq946.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq947.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq948.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq949.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq94.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq950.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq951.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq952.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq953.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq954.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq955.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq956.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq957.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq958.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq959.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq95.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq960.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq961.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq962.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq963.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq964.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq965.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq966.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq967.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq968.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq969.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq96.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq970.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq971.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq972.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq973.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq974.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq975.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq976.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq977.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq978.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq979.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq97.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq980.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq981.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq982.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq983.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq984.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq985.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq986.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq987.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq988.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq989.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq98.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq990.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq991.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq992.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq993.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq994.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq995.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq996.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq997.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq998.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq999.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq99.pddl', 'test07/prob-blocks-blocks-nblk7-seed627553762-seq9.pddl', ] # yapf: disable TEST_RUNS = [([fname], None) for fname in _TEST_RUNS]
64.387317
70
0.768489
8,150
65,997
6.221718
0.128957
0.199381
0.319009
0.433865
0.877729
0.877729
0.876013
0.003747
0
0
0
0.246612
0.077519
65,997
1,024
71
64.450195
0.586275
0.003061
0
0
0
0
0.874732
0.874565
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
1
1
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
0fb595cc0aa550c45e81e38c37ec346ec05cf196
6,182
py
Python
djautotask/migrations/0014_auto_20190930_1548.py
kti-sam/django-autotask
70cf133ba7d23c529d7450d4dbaff03b1472a2f3
[ "MIT" ]
4
2019-04-18T17:12:07.000Z
2021-12-30T21:42:10.000Z
djautotask/migrations/0014_auto_20190930_1548.py
kti-sam/django-autotask
70cf133ba7d23c529d7450d4dbaff03b1472a2f3
[ "MIT" ]
32
2018-05-30T20:31:22.000Z
2022-02-17T21:36:50.000Z
djautotask/migrations/0014_auto_20190930_1548.py
kti-sam/django-autotask
70cf133ba7d23c529d7450d4dbaff03b1472a2f3
[ "MIT" ]
5
2018-05-25T23:33:45.000Z
2022-01-04T22:01:46.000Z
# Generated by Django 2.1.11 on 2019-09-30 15:48 from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields class Migration(migrations.Migration): dependencies = [ ('djautotask', '0013_auto_20190923_1439'), ] operations = [ migrations.CreateModel( name='IssueType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')), ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')), ('label', models.CharField(blank=True, max_length=50, null=True)), ('is_default_value', models.BooleanField(default=False)), ('sort_order', models.PositiveSmallIntegerField(blank=True, null=True)), ('parent_value', models.CharField(blank=True, max_length=20, null=True)), ('is_active', models.BooleanField(default=False)), ('is_system', models.BooleanField(default=False)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Source', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')), ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')), ('label', models.CharField(blank=True, max_length=50, null=True)), ('is_default_value', models.BooleanField(default=False)), ('sort_order', models.PositiveSmallIntegerField(blank=True, null=True)), ('parent_value', models.CharField(blank=True, max_length=20, null=True)), ('is_active', models.BooleanField(default=False)), ('is_system', models.BooleanField(default=False)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='SubIssueType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')), ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')), ('label', models.CharField(blank=True, max_length=50, null=True)), ('is_default_value', models.BooleanField(default=False)), ('sort_order', models.PositiveSmallIntegerField(blank=True, null=True)), ('parent_value', models.CharField(blank=True, max_length=20, null=True)), ('is_active', models.BooleanField(default=False)), ('is_system', models.BooleanField(default=False)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='TicketCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')), ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')), ('name', models.CharField(max_length=30)), ('active', models.BooleanField(default=False)), ], options={ 'verbose_name_plural': 'Ticket categories', }, ), migrations.CreateModel( name='TicketType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')), ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')), ('label', models.CharField(blank=True, max_length=50, null=True)), ('is_default_value', models.BooleanField(default=False)), ('sort_order', models.PositiveSmallIntegerField(blank=True, null=True)), ('parent_value', models.CharField(blank=True, max_length=20, null=True)), ('is_active', models.BooleanField(default=False)), ('is_system', models.BooleanField(default=False)), ], options={ 'abstract': False, }, ), migrations.AddField( model_name='ticket', name='category', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='djautotask.TicketCategory'), ), migrations.AddField( model_name='ticket', name='issue_type', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='djautotask.IssueType'), ), migrations.AddField( model_name='ticket', name='source', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='djautotask.Source'), ), migrations.AddField( model_name='ticket', name='sub_issue_type', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='djautotask.SubIssueType'), ), migrations.AddField( model_name='ticket', name='type', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='djautotask.TicketType'), ), ]
50.672131
125
0.600453
598
6,182
6.028428
0.140468
0.037725
0.090153
0.108183
0.876838
0.86491
0.816366
0.816366
0.816366
0.816366
0
0.011013
0.26561
6,182
121
126
51.090909
0.78304
0.007441
0
0.721739
1
0
0.122921
0.014998
0
0
0
0
0
1
0
false
0
0.026087
0
0.052174
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
0fc8cabae21f60040eeeca22c8be606e59fae181
16,104
py
Python
cycle_2018/migrations/0001_initial.py
RobBickel/nyt-fec
802df867c3b31fff8e922be00bab6f40a5db2d00
[ "Apache-2.0" ]
17
2018-03-27T15:09:58.000Z
2020-05-13T11:32:43.000Z
cycle_2018/migrations/0001_initial.py
RobBickel/nyt-fec
802df867c3b31fff8e922be00bab6f40a5db2d00
[ "Apache-2.0" ]
59
2018-03-21T17:08:15.000Z
2021-12-13T19:47:37.000Z
cycle_2018/migrations/0001_initial.py
RobBickel/nyt-fec
802df867c3b31fff8e922be00bab6f40a5db2d00
[ "Apache-2.0" ]
11
2018-09-11T23:18:32.000Z
2021-12-15T08:43:58.000Z
# Generated by Django 2.0.1 on 2018-02-15 21:04 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Filing', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('active', models.BooleanField(default=True)), ('created', models.DateTimeField(default=django.utils.timezone.now)), ('updated', models.DateTimeField(auto_now=True)), ('form_type', models.CharField(help_text='the full form type from the filing', max_length=20)), ('form', models.CharField(help_text='the base form type (excluding amendment indications)', max_length=20)), ('filer_id', models.CharField(help_text='FEC id of the filer', max_length=10)), ('committee_name', models.CharField(max_length=255)), ('election_state', models.CharField(max_length=10)), ('election_district', models.CharField(max_length=10)), ('coverage_from_date', models.CharField(max_length=10)), ('coverage_through_date', models.CharField(max_length=10)), ('date_signed', models.CharField(max_length=10)), ('cash_on_hand_close_of_period', models.DecimalField(decimal_places=2, max_digits=12)), ('cash_on_hand_beginning_period', models.DecimalField(decimal_places=2, max_digits=12)), ('debts_by_summary', models.DecimalField(decimal_places=2, help_text='Current debt owed by the committee', max_digits=12)), ('period_candidate_contributions', models.DecimalField(decimal_places=2, max_digits=12)), ('period_candidate_loan_repayments', models.DecimalField(decimal_places=2, max_digits=12)), ('period_candidate_loans', models.DecimalField(decimal_places=2, max_digits=12)), ('period_contributions_to_candidates', models.DecimalField(decimal_places=2, max_digits=12)), ('period_coordinated_expenditures_by_party_committees', models.DecimalField(decimal_places=2, max_digits=12)), ('period_exempt_legal_accounting_disbursement', models.DecimalField(decimal_places=2, max_digits=12)), ('period_federal_election_activity_all_federal', models.DecimalField(decimal_places=2, max_digits=12)), ('period_federal_election_activity_federal_share', models.DecimalField(decimal_places=2, max_digits=12)), ('period_federal_election_activity_levin_share', models.DecimalField(decimal_places=2, max_digits=12)), ('period_federal_election_activity_total', models.DecimalField(decimal_places=2, max_digits=12)), ('period_fundraising', models.DecimalField(decimal_places=2, max_digits=12)), ('period_fundraising_disbursements', models.DecimalField(decimal_places=2, max_digits=12)), ('period_independent_expenditures', models.DecimalField(decimal_places=2, max_digits=12)), ('period_individual_contribution_total', models.DecimalField(decimal_places=2, max_digits=12)), ('period_individuals_itemized', models.DecimalField(decimal_places=2, max_digits=12)), ('period_individuals_unitemized', models.DecimalField(decimal_places=2, max_digits=12)), ('period_items_on_hand_to_be_liquidated', models.DecimalField(decimal_places=2, max_digits=12)), ('period_legal_and_accounting', models.DecimalField(decimal_places=2, max_digits=12)), ('period_levin_funds', models.DecimalField(decimal_places=2, max_digits=12)), ('period_loans_made', models.DecimalField(decimal_places=2, max_digits=12)), ('period_made_or_guaranteed_by_candidate', models.DecimalField(decimal_places=2, max_digits=12)), ('period_net_contributions', models.DecimalField(decimal_places=2, max_digits=12)), ('period_net_operating_expenditures', models.DecimalField(decimal_places=2, max_digits=12)), ('period_offsets_to_expenditures', models.DecimalField(decimal_places=2, max_digits=12)), ('period_operating', models.DecimalField(decimal_places=2, max_digits=12)), ('period_operating_expenditures', models.DecimalField(decimal_places=2, max_digits=12)), ('period_other_disbursements', models.DecimalField(decimal_places=2, max_digits=12)), ('period_other_federal_operating_expenditures', models.DecimalField(decimal_places=2, max_digits=12)), ('period_other_federal_receipts', models.DecimalField(decimal_places=2, max_digits=12)), ('period_other_loan_repayments', models.DecimalField(decimal_places=2, max_digits=12)), ('period_other_loans', models.DecimalField(decimal_places=2, max_digits=12)), ('period_other_political_committees', models.DecimalField(decimal_places=2, max_digits=12)), ('period_other_political_committees_pacs', models.DecimalField(decimal_places=2, max_digits=12)), ('period_other_receipts', models.DecimalField(decimal_places=2, max_digits=12)), ('period_other_repayments', models.DecimalField(decimal_places=2, max_digits=12)), ('period_pac_contributions', models.DecimalField(decimal_places=2, max_digits=12)), ('period_political_party_committees_refunds', models.DecimalField(decimal_places=2, max_digits=12)), ('period_political_party_contributions', models.DecimalField(decimal_places=2, max_digits=12)), ('period_received_from_or_guaranteed_by_cand', models.DecimalField(decimal_places=2, max_digits=12)), ('period_refunds_to_individuals', models.DecimalField(decimal_places=2, max_digits=12)), ('period_refunds_to_other_committees', models.DecimalField(decimal_places=2, max_digits=12)), ('period_refunds_to_party_committees', models.DecimalField(decimal_places=2, max_digits=12)), ('period_shared_operating_expenditures_federal', models.DecimalField(decimal_places=2, max_digits=12)), ('period_shared_operating_expenditures_nonfederal', models.DecimalField(decimal_places=2, max_digits=12)), ('period_contributions_from_candidate', models.DecimalField(decimal_places=2, max_digits=12)), ('period_total_contributions', models.DecimalField(decimal_places=2, max_digits=12)), ('period_total_contributions_refunds', models.DecimalField(decimal_places=2, max_digits=12)), ('period_total_disbursements', models.DecimalField(decimal_places=2, max_digits=12)), ('period_total_disbursements_period', models.DecimalField(decimal_places=2, max_digits=12)), ('period_total_federal_disbursements', models.DecimalField(decimal_places=2, max_digits=12)), ('period_total_federal_operating_expenditures', models.DecimalField(decimal_places=2, max_digits=12)), ('period_total_federal_receipts', models.DecimalField(decimal_places=2, max_digits=12)), ('period_total_individual_contributions', models.DecimalField(decimal_places=2, max_digits=12)), ('period_total_loan_repayments_made', models.DecimalField(decimal_places=2, max_digits=12)), ('period_total_loan_repayments_received', models.DecimalField(decimal_places=2, max_digits=12)), ('period_total_loans', models.DecimalField(decimal_places=2, max_digits=12)), ('period_total_nonfederal_transfers', models.DecimalField(decimal_places=2, max_digits=12)), ('period_total_offset_to_operating_expenditures', models.DecimalField(decimal_places=2, max_digits=12)), ('period_total_operating_expenditures', models.DecimalField(decimal_places=2, max_digits=12)), ('period_total_receipts', models.DecimalField(decimal_places=2, max_digits=12)), ('period_total_refunds', models.DecimalField(decimal_places=2, max_digits=12)), ('period_transfers_from_aff_other_party_cmttees', models.DecimalField(decimal_places=2, max_digits=12)), ('period_transfers_from_authorized', models.DecimalField(decimal_places=2, max_digits=12)), ('period_transfers_from_nonfederal_h3', models.DecimalField(decimal_places=2, max_digits=12)), ('period_transfers_to_affiliated', models.DecimalField(decimal_places=2, max_digits=12)), ('period_transfers_to_other_authorized_committees', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_candidate_contributions', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_candidate_loan_repayments', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_candidate_loans', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_contributions_to_candidates', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_coordinated_expenditures_by_party_committees', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_exempt_legal_accounting_disbursement', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_federal_election_activity_all_federal', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_federal_election_activity_federal_share', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_federal_election_activity_levin_share', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_federal_election_activity_total', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_fundraising', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_fundraising_disbursements', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_independent_expenditures', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_individual_contribution_total', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_individuals_itemized', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_individuals_unitemized', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_items_on_hand_to_be_liquidated', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_legal_and_accounting', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_levin_funds', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_loans_made', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_made_or_guaranteed_by_candidate', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_net_contributions', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_net_operating_expenditures', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_offsets_to_expenditures', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_operating', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_operating_expenditures', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_other_disbursements', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_other_federal_operating_expenditures', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_other_federal_receipts', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_other_loan_repayments', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_other_loans', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_other_political_committees', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_other_political_committees_pacs', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_other_receipts', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_other_repayments', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_pac_contributions', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_political_party_committees_refunds', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_political_party_contributions', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_received_from_or_guaranteed_by_cand', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_refunds_to_individuals', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_refunds_to_other_committees', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_refunds_to_party_committees', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_shared_operating_expenditures_federal', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_shared_operating_expenditures_nonfederal', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_contributions_from_candidate', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_total_contributions', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_total_contributions_refunds', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_total_disbursements', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_total_disbursements_period', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_total_federal_disbursements', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_total_federal_operating_expenditures', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_total_federal_receipts', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_total_individual_contributions', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_total_loan_repayments_made', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_total_loan_repayments_received', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_total_loans', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_total_nonfederal_transfers', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_total_offset_to_operating_expenditures', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_total_operating_expenditures', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_total_receipts', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_total_refunds', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_transfers_from_aff_other_party_cmttees', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_transfers_from_authorized', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_transfers_from_nonfederal_h3', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_transfers_to_affiliated', models.DecimalField(decimal_places=2, max_digits=12)), ('cycle_transfers_to_other_authorized_committees', models.DecimalField(decimal_places=2, max_digits=12)), ], options={ 'abstract': False, }, ), ]
93.627907
139
0.701813
1,814
16,104
5.829107
0.080485
0.229809
0.319179
0.395782
0.929166
0.914696
0.90505
0.90505
0.90505
0.890581
0
0.033608
0.185171
16,104
171
140
94.175439
0.772215
0.002794
0
0
1
0
0.285732
0.250171
0
0
0
0
0
1
0
false
0
0.012195
0
0.036585
0
0
0
0
null
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
0fe8295dc28410e6a8494734163afb029c5a805b
166,044
py
Python
google/ads/google_ads/v6/types.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v6/types.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/types.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import importlib import sys from itertools import chain from google.api_core.protobuf_helpers import get_messages from google.ads.google_ads import util if sys.version_info < (3, 6): raise ImportError("This module requires Python 3.6 or later.") _lazy_name_to_package_map = { "ad_asset_pb2": "google.ads.google_ads.v6.proto.common", "ad_type_infos_pb2": "google.ads.google_ads.v6.proto.common", "asset_policy_pb2": "google.ads.google_ads.v6.proto.common", "asset_types_pb2": "google.ads.google_ads.v6.proto.common", "bidding_pb2": "google.ads.google_ads.v6.proto.common", "click_location_pb2": "google.ads.google_ads.v6.proto.common", "criteria_pb2": "google.ads.google_ads.v6.proto.common", "criterion_category_availability_pb2": "google.ads.google_ads.v6.proto.common", "custom_parameter_pb2": "google.ads.google_ads.v6.proto.common", "dates_pb2": "google.ads.google_ads.v6.proto.common", "explorer_auto_optimizer_setting_pb2": "google.ads.google_ads.v6.proto.common", "extensions_pb2": "google.ads.google_ads.v6.proto.common", "feed_common_pb2": "google.ads.google_ads.v6.proto.common", "feed_item_set_filter_type_infos_pb2": "google.ads.google_ads.v6.proto.common", "final_app_url_pb2": "google.ads.google_ads.v6.proto.common", "frequency_cap_pb2": "google.ads.google_ads.v6.proto.common", "keyword_plan_common_pb2": "google.ads.google_ads.v6.proto.common", "matching_function_pb2": "google.ads.google_ads.v6.proto.common", "metrics_pb2": "google.ads.google_ads.v6.proto.common", "offline_user_data_pb2": "google.ads.google_ads.v6.proto.common", "policy_pb2": "google.ads.google_ads.v6.proto.common", "real_time_bidding_setting_pb2": "google.ads.google_ads.v6.proto.common", "segments_pb2": "google.ads.google_ads.v6.proto.common", "simulation_pb2": "google.ads.google_ads.v6.proto.common", "tag_snippet_pb2": "google.ads.google_ads.v6.proto.common", "targeting_setting_pb2": "google.ads.google_ads.v6.proto.common", "text_label_pb2": "google.ads.google_ads.v6.proto.common", "url_collection_pb2": "google.ads.google_ads.v6.proto.common", "user_lists_pb2": "google.ads.google_ads.v6.proto.common", "value_pb2": "google.ads.google_ads.v6.proto.common", "access_reason_pb2": "google.ads.google_ads.v6.proto.enums", "access_role_pb2": "google.ads.google_ads.v6.proto.enums", "account_budget_proposal_status_pb2": "google.ads.google_ads.v6.proto.enums", "account_budget_proposal_type_pb2": "google.ads.google_ads.v6.proto.enums", "account_budget_status_pb2": "google.ads.google_ads.v6.proto.enums", "account_link_status_pb2": "google.ads.google_ads.v6.proto.enums", "ad_customizer_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "ad_destination_type_pb2": "google.ads.google_ads.v6.proto.enums", "ad_group_ad_rotation_mode_pb2": "google.ads.google_ads.v6.proto.enums", "ad_group_ad_status_pb2": "google.ads.google_ads.v6.proto.enums", "ad_group_criterion_approval_status_pb2": "google.ads.google_ads.v6.proto.enums", "ad_group_criterion_status_pb2": "google.ads.google_ads.v6.proto.enums", "ad_group_status_pb2": "google.ads.google_ads.v6.proto.enums", "ad_group_type_pb2": "google.ads.google_ads.v6.proto.enums", "ad_network_type_pb2": "google.ads.google_ads.v6.proto.enums", "ad_serving_optimization_status_pb2": "google.ads.google_ads.v6.proto.enums", "ad_strength_pb2": "google.ads.google_ads.v6.proto.enums", "ad_type_pb2": "google.ads.google_ads.v6.proto.enums", "advertising_channel_sub_type_pb2": "google.ads.google_ads.v6.proto.enums", "advertising_channel_type_pb2": "google.ads.google_ads.v6.proto.enums", "affiliate_location_feed_relationship_type_pb2": "google.ads.google_ads.v6.proto.enums", "affiliate_location_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "age_range_type_pb2": "google.ads.google_ads.v6.proto.enums", "app_campaign_app_store_pb2": "google.ads.google_ads.v6.proto.enums", "app_campaign_bidding_strategy_goal_type_pb2": "google.ads.google_ads.v6.proto.enums", "app_payment_model_type_pb2": "google.ads.google_ads.v6.proto.enums", "app_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "app_store_pb2": "google.ads.google_ads.v6.proto.enums", "app_url_operating_system_type_pb2": "google.ads.google_ads.v6.proto.enums", "asset_field_type_pb2": "google.ads.google_ads.v6.proto.enums", "asset_link_status_pb2": "google.ads.google_ads.v6.proto.enums", "asset_performance_label_pb2": "google.ads.google_ads.v6.proto.enums", "asset_type_pb2": "google.ads.google_ads.v6.proto.enums", "attribution_model_pb2": "google.ads.google_ads.v6.proto.enums", "batch_job_status_pb2": "google.ads.google_ads.v6.proto.enums", "bid_modifier_source_pb2": "google.ads.google_ads.v6.proto.enums", "bidding_source_pb2": "google.ads.google_ads.v6.proto.enums", "bidding_strategy_status_pb2": "google.ads.google_ads.v6.proto.enums", "bidding_strategy_type_pb2": "google.ads.google_ads.v6.proto.enums", "billing_setup_status_pb2": "google.ads.google_ads.v6.proto.enums", "brand_safety_suitability_pb2": "google.ads.google_ads.v6.proto.enums", "budget_campaign_association_status_pb2": "google.ads.google_ads.v6.proto.enums", "budget_delivery_method_pb2": "google.ads.google_ads.v6.proto.enums", "budget_period_pb2": "google.ads.google_ads.v6.proto.enums", "budget_status_pb2": "google.ads.google_ads.v6.proto.enums", "budget_type_pb2": "google.ads.google_ads.v6.proto.enums", "call_conversion_reporting_state_pb2": "google.ads.google_ads.v6.proto.enums", "call_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "callout_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "campaign_criterion_status_pb2": "google.ads.google_ads.v6.proto.enums", "campaign_draft_status_pb2": "google.ads.google_ads.v6.proto.enums", "campaign_experiment_status_pb2": "google.ads.google_ads.v6.proto.enums", "campaign_experiment_traffic_split_type_pb2": "google.ads.google_ads.v6.proto.enums", "campaign_experiment_type_pb2": "google.ads.google_ads.v6.proto.enums", "campaign_serving_status_pb2": "google.ads.google_ads.v6.proto.enums", "campaign_shared_set_status_pb2": "google.ads.google_ads.v6.proto.enums", "campaign_status_pb2": "google.ads.google_ads.v6.proto.enums", "change_client_type_pb2": "google.ads.google_ads.v6.proto.enums", "change_event_resource_type_pb2": "google.ads.google_ads.v6.proto.enums", "change_status_operation_pb2": "google.ads.google_ads.v6.proto.enums", "change_status_resource_type_pb2": "google.ads.google_ads.v6.proto.enums", "click_type_pb2": "google.ads.google_ads.v6.proto.enums", "combined_audience_status_pb2": "google.ads.google_ads.v6.proto.enums", "content_label_type_pb2": "google.ads.google_ads.v6.proto.enums", "conversion_action_category_pb2": "google.ads.google_ads.v6.proto.enums", "conversion_action_counting_type_pb2": "google.ads.google_ads.v6.proto.enums", "conversion_action_status_pb2": "google.ads.google_ads.v6.proto.enums", "conversion_action_type_pb2": "google.ads.google_ads.v6.proto.enums", "conversion_adjustment_type_pb2": "google.ads.google_ads.v6.proto.enums", "conversion_attribution_event_type_pb2": "google.ads.google_ads.v6.proto.enums", "conversion_lag_bucket_pb2": "google.ads.google_ads.v6.proto.enums", "conversion_or_adjustment_lag_bucket_pb2": "google.ads.google_ads.v6.proto.enums", "criterion_category_channel_availability_mode_pb2": "google.ads.google_ads.v6.proto.enums", "criterion_category_locale_availability_mode_pb2": "google.ads.google_ads.v6.proto.enums", "criterion_system_serving_status_pb2": "google.ads.google_ads.v6.proto.enums", "criterion_type_pb2": "google.ads.google_ads.v6.proto.enums", "custom_audience_member_type_pb2": "google.ads.google_ads.v6.proto.enums", "custom_audience_status_pb2": "google.ads.google_ads.v6.proto.enums", "custom_audience_type_pb2": "google.ads.google_ads.v6.proto.enums", "custom_interest_member_type_pb2": "google.ads.google_ads.v6.proto.enums", "custom_interest_status_pb2": "google.ads.google_ads.v6.proto.enums", "custom_interest_type_pb2": "google.ads.google_ads.v6.proto.enums", "custom_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "customer_match_upload_key_type_pb2": "google.ads.google_ads.v6.proto.enums", "customer_pay_per_conversion_eligibility_failure_reason_pb2": "google.ads.google_ads.v6.proto.enums", "data_driven_model_status_pb2": "google.ads.google_ads.v6.proto.enums", "day_of_week_pb2": "google.ads.google_ads.v6.proto.enums", "device_pb2": "google.ads.google_ads.v6.proto.enums", "display_ad_format_setting_pb2": "google.ads.google_ads.v6.proto.enums", "display_upload_product_type_pb2": "google.ads.google_ads.v6.proto.enums", "distance_bucket_pb2": "google.ads.google_ads.v6.proto.enums", "dsa_page_feed_criterion_field_pb2": "google.ads.google_ads.v6.proto.enums", "education_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "extension_setting_device_pb2": "google.ads.google_ads.v6.proto.enums", "extension_type_pb2": "google.ads.google_ads.v6.proto.enums", "external_conversion_source_pb2": "google.ads.google_ads.v6.proto.enums", "feed_attribute_type_pb2": "google.ads.google_ads.v6.proto.enums", "feed_item_quality_approval_status_pb2": "google.ads.google_ads.v6.proto.enums", "feed_item_quality_disapproval_reason_pb2": "google.ads.google_ads.v6.proto.enums", "feed_item_set_status_pb2": "google.ads.google_ads.v6.proto.enums", "feed_item_set_string_filter_type_pb2": "google.ads.google_ads.v6.proto.enums", "feed_item_status_pb2": "google.ads.google_ads.v6.proto.enums", "feed_item_target_device_pb2": "google.ads.google_ads.v6.proto.enums", "feed_item_target_status_pb2": "google.ads.google_ads.v6.proto.enums", "feed_item_target_type_pb2": "google.ads.google_ads.v6.proto.enums", "feed_item_validation_status_pb2": "google.ads.google_ads.v6.proto.enums", "feed_link_status_pb2": "google.ads.google_ads.v6.proto.enums", "feed_mapping_criterion_type_pb2": "google.ads.google_ads.v6.proto.enums", "feed_mapping_status_pb2": "google.ads.google_ads.v6.proto.enums", "feed_origin_pb2": "google.ads.google_ads.v6.proto.enums", "feed_status_pb2": "google.ads.google_ads.v6.proto.enums", "flight_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "frequency_cap_event_type_pb2": "google.ads.google_ads.v6.proto.enums", "frequency_cap_level_pb2": "google.ads.google_ads.v6.proto.enums", "frequency_cap_time_unit_pb2": "google.ads.google_ads.v6.proto.enums", "gender_type_pb2": "google.ads.google_ads.v6.proto.enums", "geo_target_constant_status_pb2": "google.ads.google_ads.v6.proto.enums", "geo_targeting_restriction_pb2": "google.ads.google_ads.v6.proto.enums", "geo_targeting_type_pb2": "google.ads.google_ads.v6.proto.enums", "google_ads_field_category_pb2": "google.ads.google_ads.v6.proto.enums", "google_ads_field_data_type_pb2": "google.ads.google_ads.v6.proto.enums", "hotel_date_selection_type_pb2": "google.ads.google_ads.v6.proto.enums", "hotel_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "hotel_price_bucket_pb2": "google.ads.google_ads.v6.proto.enums", "hotel_rate_type_pb2": "google.ads.google_ads.v6.proto.enums", "image_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "income_range_type_pb2": "google.ads.google_ads.v6.proto.enums", "interaction_event_type_pb2": "google.ads.google_ads.v6.proto.enums", "interaction_type_pb2": "google.ads.google_ads.v6.proto.enums", "invoice_type_pb2": "google.ads.google_ads.v6.proto.enums", "job_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "keyword_match_type_pb2": "google.ads.google_ads.v6.proto.enums", "keyword_plan_competition_level_pb2": "google.ads.google_ads.v6.proto.enums", "keyword_plan_forecast_interval_pb2": "google.ads.google_ads.v6.proto.enums", "keyword_plan_network_pb2": "google.ads.google_ads.v6.proto.enums", "label_status_pb2": "google.ads.google_ads.v6.proto.enums", "lead_form_call_to_action_type_pb2": "google.ads.google_ads.v6.proto.enums", "lead_form_desired_intent_pb2": "google.ads.google_ads.v6.proto.enums", "lead_form_field_user_input_type_pb2": "google.ads.google_ads.v6.proto.enums", "lead_form_post_submit_call_to_action_type_pb2": "google.ads.google_ads.v6.proto.enums", "legacy_app_install_ad_app_store_pb2": "google.ads.google_ads.v6.proto.enums", "linked_account_type_pb2": "google.ads.google_ads.v6.proto.enums", "listing_group_type_pb2": "google.ads.google_ads.v6.proto.enums", "local_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "location_extension_targeting_criterion_field_pb2": "google.ads.google_ads.v6.proto.enums", "location_group_radius_units_pb2": "google.ads.google_ads.v6.proto.enums", "location_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "location_source_type_pb2": "google.ads.google_ads.v6.proto.enums", "manager_link_status_pb2": "google.ads.google_ads.v6.proto.enums", "matching_function_context_type_pb2": "google.ads.google_ads.v6.proto.enums", "matching_function_operator_pb2": "google.ads.google_ads.v6.proto.enums", "media_type_pb2": "google.ads.google_ads.v6.proto.enums", "merchant_center_link_status_pb2": "google.ads.google_ads.v6.proto.enums", "message_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "mime_type_pb2": "google.ads.google_ads.v6.proto.enums", "minute_of_hour_pb2": "google.ads.google_ads.v6.proto.enums", "mobile_app_vendor_pb2": "google.ads.google_ads.v6.proto.enums", "mobile_device_type_pb2": "google.ads.google_ads.v6.proto.enums", "month_of_year_pb2": "google.ads.google_ads.v6.proto.enums", "negative_geo_target_type_pb2": "google.ads.google_ads.v6.proto.enums", "offline_user_data_job_failure_reason_pb2": "google.ads.google_ads.v6.proto.enums", "offline_user_data_job_status_pb2": "google.ads.google_ads.v6.proto.enums", "offline_user_data_job_type_pb2": "google.ads.google_ads.v6.proto.enums", "operating_system_version_operator_type_pb2": "google.ads.google_ads.v6.proto.enums", "optimization_goal_type_pb2": "google.ads.google_ads.v6.proto.enums", "page_one_promoted_strategy_goal_pb2": "google.ads.google_ads.v6.proto.enums", "parental_status_type_pb2": "google.ads.google_ads.v6.proto.enums", "payment_mode_pb2": "google.ads.google_ads.v6.proto.enums", "placeholder_type_pb2": "google.ads.google_ads.v6.proto.enums", "placement_type_pb2": "google.ads.google_ads.v6.proto.enums", "policy_approval_status_pb2": "google.ads.google_ads.v6.proto.enums", "policy_review_status_pb2": "google.ads.google_ads.v6.proto.enums", "policy_topic_entry_type_pb2": "google.ads.google_ads.v6.proto.enums", "policy_topic_evidence_destination_mismatch_url_type_pb2": "google.ads.google_ads.v6.proto.enums", "policy_topic_evidence_destination_not_working_device_pb2": "google.ads.google_ads.v6.proto.enums", "policy_topic_evidence_destination_not_working_dns_error_type_pb2": "google.ads.google_ads.v6.proto.enums", "positive_geo_target_type_pb2": "google.ads.google_ads.v6.proto.enums", "preferred_content_type_pb2": "google.ads.google_ads.v6.proto.enums", "price_extension_price_qualifier_pb2": "google.ads.google_ads.v6.proto.enums", "price_extension_price_unit_pb2": "google.ads.google_ads.v6.proto.enums", "price_extension_type_pb2": "google.ads.google_ads.v6.proto.enums", "price_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "product_bidding_category_level_pb2": "google.ads.google_ads.v6.proto.enums", "product_bidding_category_status_pb2": "google.ads.google_ads.v6.proto.enums", "product_channel_exclusivity_pb2": "google.ads.google_ads.v6.proto.enums", "product_channel_pb2": "google.ads.google_ads.v6.proto.enums", "product_condition_pb2": "google.ads.google_ads.v6.proto.enums", "product_custom_attribute_index_pb2": "google.ads.google_ads.v6.proto.enums", "product_type_level_pb2": "google.ads.google_ads.v6.proto.enums", "promotion_extension_discount_modifier_pb2": "google.ads.google_ads.v6.proto.enums", "promotion_extension_occasion_pb2": "google.ads.google_ads.v6.proto.enums", "promotion_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "proximity_radius_units_pb2": "google.ads.google_ads.v6.proto.enums", "quality_score_bucket_pb2": "google.ads.google_ads.v6.proto.enums", "reach_plan_ad_length_pb2": "google.ads.google_ads.v6.proto.enums", "reach_plan_age_range_pb2": "google.ads.google_ads.v6.proto.enums", "reach_plan_network_pb2": "google.ads.google_ads.v6.proto.enums", "real_estate_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "recommendation_type_pb2": "google.ads.google_ads.v6.proto.enums", "resource_change_operation_pb2": "google.ads.google_ads.v6.proto.enums", "response_content_type_pb2": "google.ads.google_ads.v6.proto.enums", "search_engine_results_page_type_pb2": "google.ads.google_ads.v6.proto.enums", "search_term_match_type_pb2": "google.ads.google_ads.v6.proto.enums", "search_term_targeting_status_pb2": "google.ads.google_ads.v6.proto.enums", "served_asset_field_type_pb2": "google.ads.google_ads.v6.proto.enums", "shared_set_status_pb2": "google.ads.google_ads.v6.proto.enums", "shared_set_type_pb2": "google.ads.google_ads.v6.proto.enums", "simulation_modification_method_pb2": "google.ads.google_ads.v6.proto.enums", "simulation_type_pb2": "google.ads.google_ads.v6.proto.enums", "sitelink_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "slot_pb2": "google.ads.google_ads.v6.proto.enums", "spending_limit_type_pb2": "google.ads.google_ads.v6.proto.enums", "structured_snippet_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "summary_row_setting_pb2": "google.ads.google_ads.v6.proto.enums", "system_managed_entity_source_pb2": "google.ads.google_ads.v6.proto.enums", "target_cpa_opt_in_recommendation_goal_pb2": "google.ads.google_ads.v6.proto.enums", "target_impression_share_location_pb2": "google.ads.google_ads.v6.proto.enums", "targeting_dimension_pb2": "google.ads.google_ads.v6.proto.enums", "time_type_pb2": "google.ads.google_ads.v6.proto.enums", "tracking_code_page_format_pb2": "google.ads.google_ads.v6.proto.enums", "tracking_code_type_pb2": "google.ads.google_ads.v6.proto.enums", "travel_placeholder_field_pb2": "google.ads.google_ads.v6.proto.enums", "user_identifier_source_pb2": "google.ads.google_ads.v6.proto.enums", "user_interest_taxonomy_type_pb2": "google.ads.google_ads.v6.proto.enums", "user_list_access_status_pb2": "google.ads.google_ads.v6.proto.enums", "user_list_closing_reason_pb2": "google.ads.google_ads.v6.proto.enums", "user_list_combined_rule_operator_pb2": "google.ads.google_ads.v6.proto.enums", "user_list_crm_data_source_type_pb2": "google.ads.google_ads.v6.proto.enums", "user_list_date_rule_item_operator_pb2": "google.ads.google_ads.v6.proto.enums", "user_list_logical_rule_operator_pb2": "google.ads.google_ads.v6.proto.enums", "user_list_membership_status_pb2": "google.ads.google_ads.v6.proto.enums", "user_list_number_rule_item_operator_pb2": "google.ads.google_ads.v6.proto.enums", "user_list_prepopulation_status_pb2": "google.ads.google_ads.v6.proto.enums", "user_list_rule_type_pb2": "google.ads.google_ads.v6.proto.enums", "user_list_size_range_pb2": "google.ads.google_ads.v6.proto.enums", "user_list_string_rule_item_operator_pb2": "google.ads.google_ads.v6.proto.enums", "user_list_type_pb2": "google.ads.google_ads.v6.proto.enums", "vanity_pharma_display_url_mode_pb2": "google.ads.google_ads.v6.proto.enums", "vanity_pharma_text_pb2": "google.ads.google_ads.v6.proto.enums", "webpage_condition_operand_pb2": "google.ads.google_ads.v6.proto.enums", "webpage_condition_operator_pb2": "google.ads.google_ads.v6.proto.enums", "access_invitation_error_pb2": "google.ads.google_ads.v6.proto.errors", "account_budget_proposal_error_pb2": "google.ads.google_ads.v6.proto.errors", "account_link_error_pb2": "google.ads.google_ads.v6.proto.errors", "ad_customizer_error_pb2": "google.ads.google_ads.v6.proto.errors", "ad_error_pb2": "google.ads.google_ads.v6.proto.errors", "ad_group_ad_error_pb2": "google.ads.google_ads.v6.proto.errors", "ad_group_bid_modifier_error_pb2": "google.ads.google_ads.v6.proto.errors", "ad_group_criterion_error_pb2": "google.ads.google_ads.v6.proto.errors", "ad_group_error_pb2": "google.ads.google_ads.v6.proto.errors", "ad_group_feed_error_pb2": "google.ads.google_ads.v6.proto.errors", "ad_parameter_error_pb2": "google.ads.google_ads.v6.proto.errors", "ad_sharing_error_pb2": "google.ads.google_ads.v6.proto.errors", "adx_error_pb2": "google.ads.google_ads.v6.proto.errors", "asset_error_pb2": "google.ads.google_ads.v6.proto.errors", "asset_link_error_pb2": "google.ads.google_ads.v6.proto.errors", "authentication_error_pb2": "google.ads.google_ads.v6.proto.errors", "authorization_error_pb2": "google.ads.google_ads.v6.proto.errors", "batch_job_error_pb2": "google.ads.google_ads.v6.proto.errors", "bidding_error_pb2": "google.ads.google_ads.v6.proto.errors", "bidding_strategy_error_pb2": "google.ads.google_ads.v6.proto.errors", "billing_setup_error_pb2": "google.ads.google_ads.v6.proto.errors", "campaign_budget_error_pb2": "google.ads.google_ads.v6.proto.errors", "campaign_criterion_error_pb2": "google.ads.google_ads.v6.proto.errors", "campaign_draft_error_pb2": "google.ads.google_ads.v6.proto.errors", "campaign_error_pb2": "google.ads.google_ads.v6.proto.errors", "campaign_experiment_error_pb2": "google.ads.google_ads.v6.proto.errors", "campaign_feed_error_pb2": "google.ads.google_ads.v6.proto.errors", "campaign_shared_set_error_pb2": "google.ads.google_ads.v6.proto.errors", "change_event_error_pb2": "google.ads.google_ads.v6.proto.errors", "change_status_error_pb2": "google.ads.google_ads.v6.proto.errors", "collection_size_error_pb2": "google.ads.google_ads.v6.proto.errors", "context_error_pb2": "google.ads.google_ads.v6.proto.errors", "conversion_action_error_pb2": "google.ads.google_ads.v6.proto.errors", "conversion_adjustment_upload_error_pb2": "google.ads.google_ads.v6.proto.errors", "conversion_upload_error_pb2": "google.ads.google_ads.v6.proto.errors", "country_code_error_pb2": "google.ads.google_ads.v6.proto.errors", "criterion_error_pb2": "google.ads.google_ads.v6.proto.errors", "currency_code_error_pb2": "google.ads.google_ads.v6.proto.errors", "custom_audience_error_pb2": "google.ads.google_ads.v6.proto.errors", "custom_interest_error_pb2": "google.ads.google_ads.v6.proto.errors", "customer_client_link_error_pb2": "google.ads.google_ads.v6.proto.errors", "customer_error_pb2": "google.ads.google_ads.v6.proto.errors", "customer_feed_error_pb2": "google.ads.google_ads.v6.proto.errors", "customer_manager_link_error_pb2": "google.ads.google_ads.v6.proto.errors", "customer_user_access_error_pb2": "google.ads.google_ads.v6.proto.errors", "database_error_pb2": "google.ads.google_ads.v6.proto.errors", "date_error_pb2": "google.ads.google_ads.v6.proto.errors", "date_range_error_pb2": "google.ads.google_ads.v6.proto.errors", "distinct_error_pb2": "google.ads.google_ads.v6.proto.errors", "enum_error_pb2": "google.ads.google_ads.v6.proto.errors", "errors_pb2": "google.ads.google_ads.v6.proto.errors", "extension_feed_item_error_pb2": "google.ads.google_ads.v6.proto.errors", "extension_setting_error_pb2": "google.ads.google_ads.v6.proto.errors", "feed_attribute_reference_error_pb2": "google.ads.google_ads.v6.proto.errors", "feed_error_pb2": "google.ads.google_ads.v6.proto.errors", "feed_item_error_pb2": "google.ads.google_ads.v6.proto.errors", "feed_item_set_error_pb2": "google.ads.google_ads.v6.proto.errors", "feed_item_set_link_error_pb2": "google.ads.google_ads.v6.proto.errors", "feed_item_target_error_pb2": "google.ads.google_ads.v6.proto.errors", "feed_item_validation_error_pb2": "google.ads.google_ads.v6.proto.errors", "feed_mapping_error_pb2": "google.ads.google_ads.v6.proto.errors", "field_error_pb2": "google.ads.google_ads.v6.proto.errors", "field_mask_error_pb2": "google.ads.google_ads.v6.proto.errors", "function_error_pb2": "google.ads.google_ads.v6.proto.errors", "function_parsing_error_pb2": "google.ads.google_ads.v6.proto.errors", "geo_target_constant_suggestion_error_pb2": "google.ads.google_ads.v6.proto.errors", "header_error_pb2": "google.ads.google_ads.v6.proto.errors", "id_error_pb2": "google.ads.google_ads.v6.proto.errors", "image_error_pb2": "google.ads.google_ads.v6.proto.errors", "internal_error_pb2": "google.ads.google_ads.v6.proto.errors", "invoice_error_pb2": "google.ads.google_ads.v6.proto.errors", "keyword_plan_ad_group_error_pb2": "google.ads.google_ads.v6.proto.errors", "keyword_plan_ad_group_keyword_error_pb2": "google.ads.google_ads.v6.proto.errors", "keyword_plan_campaign_error_pb2": "google.ads.google_ads.v6.proto.errors", "keyword_plan_campaign_keyword_error_pb2": "google.ads.google_ads.v6.proto.errors", "keyword_plan_error_pb2": "google.ads.google_ads.v6.proto.errors", "keyword_plan_idea_error_pb2": "google.ads.google_ads.v6.proto.errors", "label_error_pb2": "google.ads.google_ads.v6.proto.errors", "language_code_error_pb2": "google.ads.google_ads.v6.proto.errors", "list_operation_error_pb2": "google.ads.google_ads.v6.proto.errors", "manager_link_error_pb2": "google.ads.google_ads.v6.proto.errors", "media_bundle_error_pb2": "google.ads.google_ads.v6.proto.errors", "media_file_error_pb2": "google.ads.google_ads.v6.proto.errors", "media_upload_error_pb2": "google.ads.google_ads.v6.proto.errors", "multiplier_error_pb2": "google.ads.google_ads.v6.proto.errors", "mutate_error_pb2": "google.ads.google_ads.v6.proto.errors", "new_resource_creation_error_pb2": "google.ads.google_ads.v6.proto.errors", "not_allowlisted_error_pb2": "google.ads.google_ads.v6.proto.errors", "not_empty_error_pb2": "google.ads.google_ads.v6.proto.errors", "null_error_pb2": "google.ads.google_ads.v6.proto.errors", "offline_user_data_job_error_pb2": "google.ads.google_ads.v6.proto.errors", "operation_access_denied_error_pb2": "google.ads.google_ads.v6.proto.errors", "operator_error_pb2": "google.ads.google_ads.v6.proto.errors", "partial_failure_error_pb2": "google.ads.google_ads.v6.proto.errors", "payments_account_error_pb2": "google.ads.google_ads.v6.proto.errors", "policy_finding_error_pb2": "google.ads.google_ads.v6.proto.errors", "policy_validation_parameter_error_pb2": "google.ads.google_ads.v6.proto.errors", "policy_violation_error_pb2": "google.ads.google_ads.v6.proto.errors", "query_error_pb2": "google.ads.google_ads.v6.proto.errors", "quota_error_pb2": "google.ads.google_ads.v6.proto.errors", "range_error_pb2": "google.ads.google_ads.v6.proto.errors", "reach_plan_error_pb2": "google.ads.google_ads.v6.proto.errors", "recommendation_error_pb2": "google.ads.google_ads.v6.proto.errors", "region_code_error_pb2": "google.ads.google_ads.v6.proto.errors", "request_error_pb2": "google.ads.google_ads.v6.proto.errors", "resource_access_denied_error_pb2": "google.ads.google_ads.v6.proto.errors", "resource_count_limit_exceeded_error_pb2": "google.ads.google_ads.v6.proto.errors", "setting_error_pb2": "google.ads.google_ads.v6.proto.errors", "shared_criterion_error_pb2": "google.ads.google_ads.v6.proto.errors", "shared_set_error_pb2": "google.ads.google_ads.v6.proto.errors", "size_limit_error_pb2": "google.ads.google_ads.v6.proto.errors", "string_format_error_pb2": "google.ads.google_ads.v6.proto.errors", "string_length_error_pb2": "google.ads.google_ads.v6.proto.errors", "third_party_app_analytics_link_error_pb2": "google.ads.google_ads.v6.proto.errors", "time_zone_error_pb2": "google.ads.google_ads.v6.proto.errors", "url_field_error_pb2": "google.ads.google_ads.v6.proto.errors", "user_data_error_pb2": "google.ads.google_ads.v6.proto.errors", "user_list_error_pb2": "google.ads.google_ads.v6.proto.errors", "youtube_video_registration_error_pb2": "google.ads.google_ads.v6.proto.errors", "account_budget_pb2": "google.ads.google_ads.v6.proto.resources", "account_budget_proposal_pb2": "google.ads.google_ads.v6.proto.resources", "account_link_pb2": "google.ads.google_ads.v6.proto.resources", "ad_group_ad_asset_view_pb2": "google.ads.google_ads.v6.proto.resources", "ad_group_ad_label_pb2": "google.ads.google_ads.v6.proto.resources", "ad_group_ad_pb2": "google.ads.google_ads.v6.proto.resources", "ad_group_audience_view_pb2": "google.ads.google_ads.v6.proto.resources", "ad_group_bid_modifier_pb2": "google.ads.google_ads.v6.proto.resources", "ad_group_criterion_label_pb2": "google.ads.google_ads.v6.proto.resources", "ad_group_criterion_pb2": "google.ads.google_ads.v6.proto.resources", "ad_group_criterion_simulation_pb2": "google.ads.google_ads.v6.proto.resources", "ad_group_extension_setting_pb2": "google.ads.google_ads.v6.proto.resources", "ad_group_feed_pb2": "google.ads.google_ads.v6.proto.resources", "ad_group_label_pb2": "google.ads.google_ads.v6.proto.resources", "ad_group_pb2": "google.ads.google_ads.v6.proto.resources", "ad_group_simulation_pb2": "google.ads.google_ads.v6.proto.resources", "ad_parameter_pb2": "google.ads.google_ads.v6.proto.resources", "ad_pb2": "google.ads.google_ads.v6.proto.resources", "ad_schedule_view_pb2": "google.ads.google_ads.v6.proto.resources", "age_range_view_pb2": "google.ads.google_ads.v6.proto.resources", "asset_pb2": "google.ads.google_ads.v6.proto.resources", "batch_job_pb2": "google.ads.google_ads.v6.proto.resources", "bidding_strategy_pb2": "google.ads.google_ads.v6.proto.resources", "billing_setup_pb2": "google.ads.google_ads.v6.proto.resources", "campaign_asset_pb2": "google.ads.google_ads.v6.proto.resources", "campaign_audience_view_pb2": "google.ads.google_ads.v6.proto.resources", "campaign_bid_modifier_pb2": "google.ads.google_ads.v6.proto.resources", "campaign_budget_pb2": "google.ads.google_ads.v6.proto.resources", "campaign_criterion_pb2": "google.ads.google_ads.v6.proto.resources", "campaign_criterion_simulation_pb2": "google.ads.google_ads.v6.proto.resources", "campaign_draft_pb2": "google.ads.google_ads.v6.proto.resources", "campaign_experiment_pb2": "google.ads.google_ads.v6.proto.resources", "campaign_extension_setting_pb2": "google.ads.google_ads.v6.proto.resources", "campaign_feed_pb2": "google.ads.google_ads.v6.proto.resources", "campaign_label_pb2": "google.ads.google_ads.v6.proto.resources", "campaign_pb2": "google.ads.google_ads.v6.proto.resources", "campaign_shared_set_pb2": "google.ads.google_ads.v6.proto.resources", "carrier_constant_pb2": "google.ads.google_ads.v6.proto.resources", "change_event_pb2": "google.ads.google_ads.v6.proto.resources", "change_status_pb2": "google.ads.google_ads.v6.proto.resources", "click_view_pb2": "google.ads.google_ads.v6.proto.resources", "combined_audience_pb2": "google.ads.google_ads.v6.proto.resources", "conversion_action_pb2": "google.ads.google_ads.v6.proto.resources", "currency_constant_pb2": "google.ads.google_ads.v6.proto.resources", "custom_audience_pb2": "google.ads.google_ads.v6.proto.resources", "custom_interest_pb2": "google.ads.google_ads.v6.proto.resources", "customer_client_link_pb2": "google.ads.google_ads.v6.proto.resources", "customer_client_pb2": "google.ads.google_ads.v6.proto.resources", "customer_extension_setting_pb2": "google.ads.google_ads.v6.proto.resources", "customer_feed_pb2": "google.ads.google_ads.v6.proto.resources", "customer_label_pb2": "google.ads.google_ads.v6.proto.resources", "customer_manager_link_pb2": "google.ads.google_ads.v6.proto.resources", "customer_negative_criterion_pb2": "google.ads.google_ads.v6.proto.resources", "customer_pb2": "google.ads.google_ads.v6.proto.resources", "customer_user_access_pb2": "google.ads.google_ads.v6.proto.resources", "detail_placement_view_pb2": "google.ads.google_ads.v6.proto.resources", "display_keyword_view_pb2": "google.ads.google_ads.v6.proto.resources", "distance_view_pb2": "google.ads.google_ads.v6.proto.resources", "domain_category_pb2": "google.ads.google_ads.v6.proto.resources", "dynamic_search_ads_search_term_view_pb2": "google.ads.google_ads.v6.proto.resources", "expanded_landing_page_view_pb2": "google.ads.google_ads.v6.proto.resources", "extension_feed_item_pb2": "google.ads.google_ads.v6.proto.resources", "feed_item_pb2": "google.ads.google_ads.v6.proto.resources", "feed_item_set_link_pb2": "google.ads.google_ads.v6.proto.resources", "feed_item_set_pb2": "google.ads.google_ads.v6.proto.resources", "feed_item_target_pb2": "google.ads.google_ads.v6.proto.resources", "feed_mapping_pb2": "google.ads.google_ads.v6.proto.resources", "feed_pb2": "google.ads.google_ads.v6.proto.resources", "feed_placeholder_view_pb2": "google.ads.google_ads.v6.proto.resources", "gender_view_pb2": "google.ads.google_ads.v6.proto.resources", "geo_target_constant_pb2": "google.ads.google_ads.v6.proto.resources", "geographic_view_pb2": "google.ads.google_ads.v6.proto.resources", "google_ads_field_pb2": "google.ads.google_ads.v6.proto.resources", "group_placement_view_pb2": "google.ads.google_ads.v6.proto.resources", "hotel_group_view_pb2": "google.ads.google_ads.v6.proto.resources", "hotel_performance_view_pb2": "google.ads.google_ads.v6.proto.resources", "income_range_view_pb2": "google.ads.google_ads.v6.proto.resources", "invoice_pb2": "google.ads.google_ads.v6.proto.resources", "keyword_plan_ad_group_keyword_pb2": "google.ads.google_ads.v6.proto.resources", "keyword_plan_ad_group_pb2": "google.ads.google_ads.v6.proto.resources", "keyword_plan_campaign_keyword_pb2": "google.ads.google_ads.v6.proto.resources", "keyword_plan_campaign_pb2": "google.ads.google_ads.v6.proto.resources", "keyword_plan_pb2": "google.ads.google_ads.v6.proto.resources", "keyword_view_pb2": "google.ads.google_ads.v6.proto.resources", "label_pb2": "google.ads.google_ads.v6.proto.resources", "landing_page_view_pb2": "google.ads.google_ads.v6.proto.resources", "language_constant_pb2": "google.ads.google_ads.v6.proto.resources", "location_view_pb2": "google.ads.google_ads.v6.proto.resources", "managed_placement_view_pb2": "google.ads.google_ads.v6.proto.resources", "media_file_pb2": "google.ads.google_ads.v6.proto.resources", "merchant_center_link_pb2": "google.ads.google_ads.v6.proto.resources", "mobile_app_category_constant_pb2": "google.ads.google_ads.v6.proto.resources", "mobile_device_constant_pb2": "google.ads.google_ads.v6.proto.resources", "offline_user_data_job_pb2": "google.ads.google_ads.v6.proto.resources", "operating_system_version_constant_pb2": "google.ads.google_ads.v6.proto.resources", "paid_organic_search_term_view_pb2": "google.ads.google_ads.v6.proto.resources", "parental_status_view_pb2": "google.ads.google_ads.v6.proto.resources", "payments_account_pb2": "google.ads.google_ads.v6.proto.resources", "product_bidding_category_constant_pb2": "google.ads.google_ads.v6.proto.resources", "product_group_view_pb2": "google.ads.google_ads.v6.proto.resources", "recommendation_pb2": "google.ads.google_ads.v6.proto.resources", "remarketing_action_pb2": "google.ads.google_ads.v6.proto.resources", "search_term_view_pb2": "google.ads.google_ads.v6.proto.resources", "shared_criterion_pb2": "google.ads.google_ads.v6.proto.resources", "shared_set_pb2": "google.ads.google_ads.v6.proto.resources", "shopping_performance_view_pb2": "google.ads.google_ads.v6.proto.resources", "third_party_app_analytics_link_pb2": "google.ads.google_ads.v6.proto.resources", "topic_constant_pb2": "google.ads.google_ads.v6.proto.resources", "topic_view_pb2": "google.ads.google_ads.v6.proto.resources", "user_interest_pb2": "google.ads.google_ads.v6.proto.resources", "user_list_pb2": "google.ads.google_ads.v6.proto.resources", "user_location_view_pb2": "google.ads.google_ads.v6.proto.resources", "video_pb2": "google.ads.google_ads.v6.proto.resources", "account_budget_proposal_service_pb2": "google.ads.google_ads.v6.proto.services", "account_budget_service_pb2": "google.ads.google_ads.v6.proto.services", "account_link_service_pb2": "google.ads.google_ads.v6.proto.services", "ad_group_ad_asset_view_service_pb2": "google.ads.google_ads.v6.proto.services", "ad_group_ad_label_service_pb2": "google.ads.google_ads.v6.proto.services", "ad_group_ad_service_pb2": "google.ads.google_ads.v6.proto.services", "ad_group_audience_view_service_pb2": "google.ads.google_ads.v6.proto.services", "ad_group_bid_modifier_service_pb2": "google.ads.google_ads.v6.proto.services", "ad_group_criterion_label_service_pb2": "google.ads.google_ads.v6.proto.services", "ad_group_criterion_service_pb2": "google.ads.google_ads.v6.proto.services", "ad_group_criterion_simulation_service_pb2": "google.ads.google_ads.v6.proto.services", "ad_group_extension_setting_service_pb2": "google.ads.google_ads.v6.proto.services", "ad_group_feed_service_pb2": "google.ads.google_ads.v6.proto.services", "ad_group_label_service_pb2": "google.ads.google_ads.v6.proto.services", "ad_group_service_pb2": "google.ads.google_ads.v6.proto.services", "ad_group_simulation_service_pb2": "google.ads.google_ads.v6.proto.services", "ad_parameter_service_pb2": "google.ads.google_ads.v6.proto.services", "ad_schedule_view_service_pb2": "google.ads.google_ads.v6.proto.services", "ad_service_pb2": "google.ads.google_ads.v6.proto.services", "age_range_view_service_pb2": "google.ads.google_ads.v6.proto.services", "asset_service_pb2": "google.ads.google_ads.v6.proto.services", "batch_job_service_pb2": "google.ads.google_ads.v6.proto.services", "bidding_strategy_service_pb2": "google.ads.google_ads.v6.proto.services", "billing_setup_service_pb2": "google.ads.google_ads.v6.proto.services", "campaign_asset_service_pb2": "google.ads.google_ads.v6.proto.services", "campaign_audience_view_service_pb2": "google.ads.google_ads.v6.proto.services", "campaign_bid_modifier_service_pb2": "google.ads.google_ads.v6.proto.services", "campaign_budget_service_pb2": "google.ads.google_ads.v6.proto.services", "campaign_criterion_service_pb2": "google.ads.google_ads.v6.proto.services", "campaign_criterion_simulation_service_pb2": "google.ads.google_ads.v6.proto.services", "campaign_draft_service_pb2": "google.ads.google_ads.v6.proto.services", "campaign_experiment_service_pb2": "google.ads.google_ads.v6.proto.services", "campaign_extension_setting_service_pb2": "google.ads.google_ads.v6.proto.services", "campaign_feed_service_pb2": "google.ads.google_ads.v6.proto.services", "campaign_label_service_pb2": "google.ads.google_ads.v6.proto.services", "campaign_service_pb2": "google.ads.google_ads.v6.proto.services", "campaign_shared_set_service_pb2": "google.ads.google_ads.v6.proto.services", "carrier_constant_service_pb2": "google.ads.google_ads.v6.proto.services", "change_status_service_pb2": "google.ads.google_ads.v6.proto.services", "click_view_service_pb2": "google.ads.google_ads.v6.proto.services", "combined_audience_service_pb2": "google.ads.google_ads.v6.proto.services", "conversion_action_service_pb2": "google.ads.google_ads.v6.proto.services", "conversion_adjustment_upload_service_pb2": "google.ads.google_ads.v6.proto.services", "conversion_upload_service_pb2": "google.ads.google_ads.v6.proto.services", "currency_constant_service_pb2": "google.ads.google_ads.v6.proto.services", "custom_audience_service_pb2": "google.ads.google_ads.v6.proto.services", "custom_interest_service_pb2": "google.ads.google_ads.v6.proto.services", "customer_client_link_service_pb2": "google.ads.google_ads.v6.proto.services", "customer_client_service_pb2": "google.ads.google_ads.v6.proto.services", "customer_extension_setting_service_pb2": "google.ads.google_ads.v6.proto.services", "customer_feed_service_pb2": "google.ads.google_ads.v6.proto.services", "customer_label_service_pb2": "google.ads.google_ads.v6.proto.services", "customer_manager_link_service_pb2": "google.ads.google_ads.v6.proto.services", "customer_negative_criterion_service_pb2": "google.ads.google_ads.v6.proto.services", "customer_service_pb2": "google.ads.google_ads.v6.proto.services", "customer_user_access_service_pb2": "google.ads.google_ads.v6.proto.services", "detail_placement_view_service_pb2": "google.ads.google_ads.v6.proto.services", "display_keyword_view_service_pb2": "google.ads.google_ads.v6.proto.services", "distance_view_service_pb2": "google.ads.google_ads.v6.proto.services", "domain_category_service_pb2": "google.ads.google_ads.v6.proto.services", "dynamic_search_ads_search_term_view_service_pb2": "google.ads.google_ads.v6.proto.services", "expanded_landing_page_view_service_pb2": "google.ads.google_ads.v6.proto.services", "extension_feed_item_service_pb2": "google.ads.google_ads.v6.proto.services", "feed_item_service_pb2": "google.ads.google_ads.v6.proto.services", "feed_item_set_link_service_pb2": "google.ads.google_ads.v6.proto.services", "feed_item_set_service_pb2": "google.ads.google_ads.v6.proto.services", "feed_item_target_service_pb2": "google.ads.google_ads.v6.proto.services", "feed_mapping_service_pb2": "google.ads.google_ads.v6.proto.services", "feed_placeholder_view_service_pb2": "google.ads.google_ads.v6.proto.services", "feed_service_pb2": "google.ads.google_ads.v6.proto.services", "gender_view_service_pb2": "google.ads.google_ads.v6.proto.services", "geo_target_constant_service_pb2": "google.ads.google_ads.v6.proto.services", "geographic_view_service_pb2": "google.ads.google_ads.v6.proto.services", "google_ads_field_service_pb2": "google.ads.google_ads.v6.proto.services", "google_ads_service_pb2": "google.ads.google_ads.v6.proto.services", "group_placement_view_service_pb2": "google.ads.google_ads.v6.proto.services", "hotel_group_view_service_pb2": "google.ads.google_ads.v6.proto.services", "hotel_performance_view_service_pb2": "google.ads.google_ads.v6.proto.services", "income_range_view_service_pb2": "google.ads.google_ads.v6.proto.services", "invoice_service_pb2": "google.ads.google_ads.v6.proto.services", "keyword_plan_ad_group_keyword_service_pb2": "google.ads.google_ads.v6.proto.services", "keyword_plan_ad_group_service_pb2": "google.ads.google_ads.v6.proto.services", "keyword_plan_campaign_keyword_service_pb2": "google.ads.google_ads.v6.proto.services", "keyword_plan_campaign_service_pb2": "google.ads.google_ads.v6.proto.services", "keyword_plan_idea_service_pb2": "google.ads.google_ads.v6.proto.services", "keyword_plan_service_pb2": "google.ads.google_ads.v6.proto.services", "keyword_view_service_pb2": "google.ads.google_ads.v6.proto.services", "label_service_pb2": "google.ads.google_ads.v6.proto.services", "landing_page_view_service_pb2": "google.ads.google_ads.v6.proto.services", "language_constant_service_pb2": "google.ads.google_ads.v6.proto.services", "location_view_service_pb2": "google.ads.google_ads.v6.proto.services", "managed_placement_view_service_pb2": "google.ads.google_ads.v6.proto.services", "media_file_service_pb2": "google.ads.google_ads.v6.proto.services", "merchant_center_link_service_pb2": "google.ads.google_ads.v6.proto.services", "mobile_app_category_constant_service_pb2": "google.ads.google_ads.v6.proto.services", "mobile_device_constant_service_pb2": "google.ads.google_ads.v6.proto.services", "offline_user_data_job_service_pb2": "google.ads.google_ads.v6.proto.services", "operating_system_version_constant_service_pb2": "google.ads.google_ads.v6.proto.services", "paid_organic_search_term_view_service_pb2": "google.ads.google_ads.v6.proto.services", "parental_status_view_service_pb2": "google.ads.google_ads.v6.proto.services", "payments_account_service_pb2": "google.ads.google_ads.v6.proto.services", "product_bidding_category_constant_service_pb2": "google.ads.google_ads.v6.proto.services", "product_group_view_service_pb2": "google.ads.google_ads.v6.proto.services", "reach_plan_service_pb2": "google.ads.google_ads.v6.proto.services", "recommendation_service_pb2": "google.ads.google_ads.v6.proto.services", "remarketing_action_service_pb2": "google.ads.google_ads.v6.proto.services", "search_term_view_service_pb2": "google.ads.google_ads.v6.proto.services", "shared_criterion_service_pb2": "google.ads.google_ads.v6.proto.services", "shared_set_service_pb2": "google.ads.google_ads.v6.proto.services", "shopping_performance_view_service_pb2": "google.ads.google_ads.v6.proto.services", "third_party_app_analytics_link_service_pb2": "google.ads.google_ads.v6.proto.services", "topic_constant_service_pb2": "google.ads.google_ads.v6.proto.services", "topic_view_service_pb2": "google.ads.google_ads.v6.proto.services", "user_data_service_pb2": "google.ads.google_ads.v6.proto.services", "user_interest_service_pb2": "google.ads.google_ads.v6.proto.services", "user_list_service_pb2": "google.ads.google_ads.v6.proto.services", "user_location_view_service_pb2": "google.ads.google_ads.v6.proto.services", "video_service_pb2": "google.ads.google_ads.v6.proto.services", "operations_pb2": "google.longrunning", "any_pb2": "google.protobuf", "empty_pb2": "google.protobuf", "field_mask_pb2": "google.protobuf", "wrappers_pb2": "google.protobuf", "status_pb2": "google.rpc", } _lazy_class_to_package_map = { "AccessInvitationErrorEnum": "google.ads.google_ads.v6.proto.errors.access_invitation_error_pb2", "AccessReasonEnum": "google.ads.google_ads.v6.proto.enums.access_reason_pb2", "AccessRoleEnum": "google.ads.google_ads.v6.proto.enums.access_role_pb2", "AccountBudget": "google.ads.google_ads.v6.proto.resources.account_budget_pb2", "AccountBudgetProposal": "google.ads.google_ads.v6.proto.resources.account_budget_proposal_pb2", "AccountBudgetProposalErrorEnum": "google.ads.google_ads.v6.proto.errors.account_budget_proposal_error_pb2", "AccountBudgetProposalOperation": "google.ads.google_ads.v6.proto.services.account_budget_proposal_service_pb2", "AccountBudgetProposalStatusEnum": "google.ads.google_ads.v6.proto.enums.account_budget_proposal_status_pb2", "AccountBudgetProposalTypeEnum": "google.ads.google_ads.v6.proto.enums.account_budget_proposal_type_pb2", "AccountBudgetStatusEnum": "google.ads.google_ads.v6.proto.enums.account_budget_status_pb2", "AccountLink": "google.ads.google_ads.v6.proto.resources.account_link_pb2", "AccountLinkErrorEnum": "google.ads.google_ads.v6.proto.errors.account_link_error_pb2", "AccountLinkOperation": "google.ads.google_ads.v6.proto.services.account_link_service_pb2", "AccountLinkStatusEnum": "google.ads.google_ads.v6.proto.enums.account_link_status_pb2", "Ad": "google.ads.google_ads.v6.proto.resources.ad_pb2", "AdAssetPolicySummary": "google.ads.google_ads.v6.proto.common.asset_policy_pb2", "AdCustomizerErrorEnum": "google.ads.google_ads.v6.proto.errors.ad_customizer_error_pb2", "AdCustomizerPlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.ad_customizer_placeholder_field_pb2", "AdDestinationTypeEnum": "google.ads.google_ads.v6.proto.enums.ad_destination_type_pb2", "AdErrorEnum": "google.ads.google_ads.v6.proto.errors.ad_error_pb2", "AdGroup": "google.ads.google_ads.v6.proto.resources.ad_group_pb2", "AdGroupAd": "google.ads.google_ads.v6.proto.resources.ad_group_ad_pb2", "AdGroupAdAssetPolicySummary": "google.ads.google_ads.v6.proto.resources.ad_group_ad_asset_view_pb2", "AdGroupAdAssetView": "google.ads.google_ads.v6.proto.resources.ad_group_ad_asset_view_pb2", "AdGroupAdErrorEnum": "google.ads.google_ads.v6.proto.errors.ad_group_ad_error_pb2", "AdGroupAdLabel": "google.ads.google_ads.v6.proto.resources.ad_group_ad_label_pb2", "AdGroupAdLabelOperation": "google.ads.google_ads.v6.proto.services.ad_group_ad_label_service_pb2", "AdGroupAdOperation": "google.ads.google_ads.v6.proto.services.ad_group_ad_service_pb2", "AdGroupAdPolicySummary": "google.ads.google_ads.v6.proto.resources.ad_group_ad_pb2", "AdGroupAdRotationModeEnum": "google.ads.google_ads.v6.proto.enums.ad_group_ad_rotation_mode_pb2", "AdGroupAdStatusEnum": "google.ads.google_ads.v6.proto.enums.ad_group_ad_status_pb2", "AdGroupAudienceView": "google.ads.google_ads.v6.proto.resources.ad_group_audience_view_pb2", "AdGroupBidModifier": "google.ads.google_ads.v6.proto.resources.ad_group_bid_modifier_pb2", "AdGroupBidModifierErrorEnum": "google.ads.google_ads.v6.proto.errors.ad_group_bid_modifier_error_pb2", "AdGroupBidModifierOperation": "google.ads.google_ads.v6.proto.services.ad_group_bid_modifier_service_pb2", "AdGroupCriterion": "google.ads.google_ads.v6.proto.resources.ad_group_criterion_pb2", "AdGroupCriterionApprovalStatusEnum": "google.ads.google_ads.v6.proto.enums.ad_group_criterion_approval_status_pb2", "AdGroupCriterionErrorEnum": "google.ads.google_ads.v6.proto.errors.ad_group_criterion_error_pb2", "AdGroupCriterionLabel": "google.ads.google_ads.v6.proto.resources.ad_group_criterion_label_pb2", "AdGroupCriterionLabelOperation": "google.ads.google_ads.v6.proto.services.ad_group_criterion_label_service_pb2", "AdGroupCriterionOperation": "google.ads.google_ads.v6.proto.services.ad_group_criterion_service_pb2", "AdGroupCriterionSimulation": "google.ads.google_ads.v6.proto.resources.ad_group_criterion_simulation_pb2", "AdGroupCriterionStatusEnum": "google.ads.google_ads.v6.proto.enums.ad_group_criterion_status_pb2", "AdGroupErrorEnum": "google.ads.google_ads.v6.proto.errors.ad_group_error_pb2", "AdGroupExtensionSetting": "google.ads.google_ads.v6.proto.resources.ad_group_extension_setting_pb2", "AdGroupExtensionSettingOperation": "google.ads.google_ads.v6.proto.services.ad_group_extension_setting_service_pb2", "AdGroupFeed": "google.ads.google_ads.v6.proto.resources.ad_group_feed_pb2", "AdGroupFeedErrorEnum": "google.ads.google_ads.v6.proto.errors.ad_group_feed_error_pb2", "AdGroupFeedOperation": "google.ads.google_ads.v6.proto.services.ad_group_feed_service_pb2", "AdGroupLabel": "google.ads.google_ads.v6.proto.resources.ad_group_label_pb2", "AdGroupLabelOperation": "google.ads.google_ads.v6.proto.services.ad_group_label_service_pb2", "AdGroupOperation": "google.ads.google_ads.v6.proto.services.ad_group_service_pb2", "AdGroupSimulation": "google.ads.google_ads.v6.proto.resources.ad_group_simulation_pb2", "AdGroupStatusEnum": "google.ads.google_ads.v6.proto.enums.ad_group_status_pb2", "AdGroupTypeEnum": "google.ads.google_ads.v6.proto.enums.ad_group_type_pb2", "AdImageAsset": "google.ads.google_ads.v6.proto.common.ad_asset_pb2", "AdMediaBundleAsset": "google.ads.google_ads.v6.proto.common.ad_asset_pb2", "AdNetworkTypeEnum": "google.ads.google_ads.v6.proto.enums.ad_network_type_pb2", "AdOperation": "google.ads.google_ads.v6.proto.services.ad_service_pb2", "AdParameter": "google.ads.google_ads.v6.proto.resources.ad_parameter_pb2", "AdParameterErrorEnum": "google.ads.google_ads.v6.proto.errors.ad_parameter_error_pb2", "AdParameterOperation": "google.ads.google_ads.v6.proto.services.ad_parameter_service_pb2", "AdScheduleInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "AdScheduleView": "google.ads.google_ads.v6.proto.resources.ad_schedule_view_pb2", "AdServingOptimizationStatusEnum": "google.ads.google_ads.v6.proto.enums.ad_serving_optimization_status_pb2", "AdSharingErrorEnum": "google.ads.google_ads.v6.proto.errors.ad_sharing_error_pb2", "AdStrengthEnum": "google.ads.google_ads.v6.proto.enums.ad_strength_pb2", "AdTextAsset": "google.ads.google_ads.v6.proto.common.ad_asset_pb2", "AdTypeEnum": "google.ads.google_ads.v6.proto.enums.ad_type_pb2", "AdVideoAsset": "google.ads.google_ads.v6.proto.common.ad_asset_pb2", "AddBatchJobOperationsRequest": "google.ads.google_ads.v6.proto.services.batch_job_service_pb2", "AddBatchJobOperationsResponse": "google.ads.google_ads.v6.proto.services.batch_job_service_pb2", "AddOfflineUserDataJobOperationsRequest": "google.ads.google_ads.v6.proto.services.offline_user_data_job_service_pb2", "AddOfflineUserDataJobOperationsResponse": "google.ads.google_ads.v6.proto.services.offline_user_data_job_service_pb2", "AddressInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "AdvertisingChannelSubTypeEnum": "google.ads.google_ads.v6.proto.enums.advertising_channel_sub_type_pb2", "AdvertisingChannelTypeEnum": "google.ads.google_ads.v6.proto.enums.advertising_channel_type_pb2", "AdxErrorEnum": "google.ads.google_ads.v6.proto.errors.adx_error_pb2", "AffiliateLocationFeedItem": "google.ads.google_ads.v6.proto.common.extensions_pb2", "AffiliateLocationFeedRelationshipTypeEnum": "google.ads.google_ads.v6.proto.enums.affiliate_location_feed_relationship_type_pb2", "AffiliateLocationPlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.affiliate_location_placeholder_field_pb2", "AgeRangeInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "AgeRangeTypeEnum": "google.ads.google_ads.v6.proto.enums.age_range_type_pb2", "AgeRangeView": "google.ads.google_ads.v6.proto.resources.age_range_view_pb2", "AppAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "AppCampaignAppStoreEnum": "google.ads.google_ads.v6.proto.enums.app_campaign_app_store_pb2", "AppCampaignBiddingStrategyGoalTypeEnum": "google.ads.google_ads.v6.proto.enums.app_campaign_bidding_strategy_goal_type_pb2", "AppEngagementAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "AppFeedItem": "google.ads.google_ads.v6.proto.common.extensions_pb2", "AppPaymentModelInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "AppPaymentModelTypeEnum": "google.ads.google_ads.v6.proto.enums.app_payment_model_type_pb2", "AppPlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.app_placeholder_field_pb2", "AppStoreEnum": "google.ads.google_ads.v6.proto.enums.app_store_pb2", "AppUrlOperatingSystemTypeEnum": "google.ads.google_ads.v6.proto.enums.app_url_operating_system_type_pb2", "ApplyRecommendationOperation": "google.ads.google_ads.v6.proto.services.recommendation_service_pb2", "ApplyRecommendationRequest": "google.ads.google_ads.v6.proto.services.recommendation_service_pb2", "ApplyRecommendationResponse": "google.ads.google_ads.v6.proto.services.recommendation_service_pb2", "ApplyRecommendationResult": "google.ads.google_ads.v6.proto.services.recommendation_service_pb2", "Asset": "google.ads.google_ads.v6.proto.resources.asset_pb2", "AssetErrorEnum": "google.ads.google_ads.v6.proto.errors.asset_error_pb2", "AssetFieldTypeEnum": "google.ads.google_ads.v6.proto.enums.asset_field_type_pb2", "AssetLinkErrorEnum": "google.ads.google_ads.v6.proto.errors.asset_link_error_pb2", "AssetLinkStatusEnum": "google.ads.google_ads.v6.proto.enums.asset_link_status_pb2", "AssetOperation": "google.ads.google_ads.v6.proto.services.asset_service_pb2", "AssetPerformanceLabelEnum": "google.ads.google_ads.v6.proto.enums.asset_performance_label_pb2", "AssetPolicySummary": "google.ads.google_ads.v6.proto.resources.asset_pb2", "AssetTypeEnum": "google.ads.google_ads.v6.proto.enums.asset_type_pb2", "AttributeFieldMapping": "google.ads.google_ads.v6.proto.resources.feed_mapping_pb2", "AttributionModelEnum": "google.ads.google_ads.v6.proto.enums.attribution_model_pb2", "AuthenticationErrorEnum": "google.ads.google_ads.v6.proto.errors.authentication_error_pb2", "AuthorizationErrorEnum": "google.ads.google_ads.v6.proto.errors.authorization_error_pb2", "BasicUserListInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "BatchJob": "google.ads.google_ads.v6.proto.resources.batch_job_pb2", "BatchJobErrorEnum": "google.ads.google_ads.v6.proto.errors.batch_job_error_pb2", "BatchJobOperation": "google.ads.google_ads.v6.proto.services.batch_job_service_pb2", "BatchJobResult": "google.ads.google_ads.v6.proto.services.batch_job_service_pb2", "BatchJobStatusEnum": "google.ads.google_ads.v6.proto.enums.batch_job_status_pb2", "BidModifierSimulationPoint": "google.ads.google_ads.v6.proto.common.simulation_pb2", "BidModifierSimulationPointList": "google.ads.google_ads.v6.proto.common.simulation_pb2", "BidModifierSourceEnum": "google.ads.google_ads.v6.proto.enums.bid_modifier_source_pb2", "BiddingErrorEnum": "google.ads.google_ads.v6.proto.errors.bidding_error_pb2", "BiddingSourceEnum": "google.ads.google_ads.v6.proto.enums.bidding_source_pb2", "BiddingStrategy": "google.ads.google_ads.v6.proto.resources.bidding_strategy_pb2", "BiddingStrategyErrorEnum": "google.ads.google_ads.v6.proto.errors.bidding_strategy_error_pb2", "BiddingStrategyOperation": "google.ads.google_ads.v6.proto.services.bidding_strategy_service_pb2", "BiddingStrategyStatusEnum": "google.ads.google_ads.v6.proto.enums.bidding_strategy_status_pb2", "BiddingStrategyTypeEnum": "google.ads.google_ads.v6.proto.enums.bidding_strategy_type_pb2", "BillingSetup": "google.ads.google_ads.v6.proto.resources.billing_setup_pb2", "BillingSetupErrorEnum": "google.ads.google_ads.v6.proto.errors.billing_setup_error_pb2", "BillingSetupOperation": "google.ads.google_ads.v6.proto.services.billing_setup_service_pb2", "BillingSetupStatusEnum": "google.ads.google_ads.v6.proto.enums.billing_setup_status_pb2", "BookOnGoogleAsset": "google.ads.google_ads.v6.proto.common.asset_types_pb2", "BrandSafetySuitabilityEnum": "google.ads.google_ads.v6.proto.enums.brand_safety_suitability_pb2", "BudgetCampaignAssociationStatus": "google.ads.google_ads.v6.proto.common.segments_pb2", "BudgetCampaignAssociationStatusEnum": "google.ads.google_ads.v6.proto.enums.budget_campaign_association_status_pb2", "BudgetDeliveryMethodEnum": "google.ads.google_ads.v6.proto.enums.budget_delivery_method_pb2", "BudgetPeriodEnum": "google.ads.google_ads.v6.proto.enums.budget_period_pb2", "BudgetStatusEnum": "google.ads.google_ads.v6.proto.enums.budget_status_pb2", "BudgetTypeEnum": "google.ads.google_ads.v6.proto.enums.budget_type_pb2", "BusinessNameFilter": "google.ads.google_ads.v6.proto.common.feed_item_set_filter_type_infos_pb2", "CallConversion": "google.ads.google_ads.v6.proto.services.conversion_upload_service_pb2", "CallConversionReportingStateEnum": "google.ads.google_ads.v6.proto.enums.call_conversion_reporting_state_pb2", "CallConversionResult": "google.ads.google_ads.v6.proto.services.conversion_upload_service_pb2", "CallFeedItem": "google.ads.google_ads.v6.proto.common.extensions_pb2", "CallOnlyAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "CallPlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.call_placeholder_field_pb2", "CallReportingSetting": "google.ads.google_ads.v6.proto.resources.customer_pb2", "CalloutFeedItem": "google.ads.google_ads.v6.proto.common.extensions_pb2", "CalloutPlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.callout_placeholder_field_pb2", "Campaign": "google.ads.google_ads.v6.proto.resources.campaign_pb2", "CampaignAsset": "google.ads.google_ads.v6.proto.resources.campaign_asset_pb2", "CampaignAssetOperation": "google.ads.google_ads.v6.proto.services.campaign_asset_service_pb2", "CampaignAudienceView": "google.ads.google_ads.v6.proto.resources.campaign_audience_view_pb2", "CampaignBidModifier": "google.ads.google_ads.v6.proto.resources.campaign_bid_modifier_pb2", "CampaignBidModifierOperation": "google.ads.google_ads.v6.proto.services.campaign_bid_modifier_service_pb2", "CampaignBudget": "google.ads.google_ads.v6.proto.resources.campaign_budget_pb2", "CampaignBudgetErrorEnum": "google.ads.google_ads.v6.proto.errors.campaign_budget_error_pb2", "CampaignBudgetOperation": "google.ads.google_ads.v6.proto.services.campaign_budget_service_pb2", "CampaignCriterion": "google.ads.google_ads.v6.proto.resources.campaign_criterion_pb2", "CampaignCriterionErrorEnum": "google.ads.google_ads.v6.proto.errors.campaign_criterion_error_pb2", "CampaignCriterionOperation": "google.ads.google_ads.v6.proto.services.campaign_criterion_service_pb2", "CampaignCriterionSimulation": "google.ads.google_ads.v6.proto.resources.campaign_criterion_simulation_pb2", "CampaignCriterionStatusEnum": "google.ads.google_ads.v6.proto.enums.campaign_criterion_status_pb2", "CampaignDraft": "google.ads.google_ads.v6.proto.resources.campaign_draft_pb2", "CampaignDraftErrorEnum": "google.ads.google_ads.v6.proto.errors.campaign_draft_error_pb2", "CampaignDraftOperation": "google.ads.google_ads.v6.proto.services.campaign_draft_service_pb2", "CampaignDraftStatusEnum": "google.ads.google_ads.v6.proto.enums.campaign_draft_status_pb2", "CampaignDuration": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "CampaignErrorEnum": "google.ads.google_ads.v6.proto.errors.campaign_error_pb2", "CampaignExperiment": "google.ads.google_ads.v6.proto.resources.campaign_experiment_pb2", "CampaignExperimentErrorEnum": "google.ads.google_ads.v6.proto.errors.campaign_experiment_error_pb2", "CampaignExperimentOperation": "google.ads.google_ads.v6.proto.services.campaign_experiment_service_pb2", "CampaignExperimentStatusEnum": "google.ads.google_ads.v6.proto.enums.campaign_experiment_status_pb2", "CampaignExperimentTrafficSplitTypeEnum": "google.ads.google_ads.v6.proto.enums.campaign_experiment_traffic_split_type_pb2", "CampaignExperimentTypeEnum": "google.ads.google_ads.v6.proto.enums.campaign_experiment_type_pb2", "CampaignExtensionSetting": "google.ads.google_ads.v6.proto.resources.campaign_extension_setting_pb2", "CampaignExtensionSettingOperation": "google.ads.google_ads.v6.proto.services.campaign_extension_setting_service_pb2", "CampaignFeed": "google.ads.google_ads.v6.proto.resources.campaign_feed_pb2", "CampaignFeedErrorEnum": "google.ads.google_ads.v6.proto.errors.campaign_feed_error_pb2", "CampaignFeedOperation": "google.ads.google_ads.v6.proto.services.campaign_feed_service_pb2", "CampaignLabel": "google.ads.google_ads.v6.proto.resources.campaign_label_pb2", "CampaignLabelOperation": "google.ads.google_ads.v6.proto.services.campaign_label_service_pb2", "CampaignOperation": "google.ads.google_ads.v6.proto.services.campaign_service_pb2", "CampaignServingStatusEnum": "google.ads.google_ads.v6.proto.enums.campaign_serving_status_pb2", "CampaignSharedSet": "google.ads.google_ads.v6.proto.resources.campaign_shared_set_pb2", "CampaignSharedSetErrorEnum": "google.ads.google_ads.v6.proto.errors.campaign_shared_set_error_pb2", "CampaignSharedSetOperation": "google.ads.google_ads.v6.proto.services.campaign_shared_set_service_pb2", "CampaignSharedSetStatusEnum": "google.ads.google_ads.v6.proto.enums.campaign_shared_set_status_pb2", "CampaignStatusEnum": "google.ads.google_ads.v6.proto.enums.campaign_status_pb2", "CarrierConstant": "google.ads.google_ads.v6.proto.resources.carrier_constant_pb2", "CarrierInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "ChangeClientTypeEnum": "google.ads.google_ads.v6.proto.enums.change_client_type_pb2", "ChangeEvent": "google.ads.google_ads.v6.proto.resources.change_event_pb2", "ChangeEventErrorEnum": "google.ads.google_ads.v6.proto.errors.change_event_error_pb2", "ChangeEventResourceTypeEnum": "google.ads.google_ads.v6.proto.enums.change_event_resource_type_pb2", "ChangeStatus": "google.ads.google_ads.v6.proto.resources.change_status_pb2", "ChangeStatusErrorEnum": "google.ads.google_ads.v6.proto.errors.change_status_error_pb2", "ChangeStatusOperationEnum": "google.ads.google_ads.v6.proto.enums.change_status_operation_pb2", "ChangeStatusResourceTypeEnum": "google.ads.google_ads.v6.proto.enums.change_status_resource_type_pb2", "ClickConversion": "google.ads.google_ads.v6.proto.services.conversion_upload_service_pb2", "ClickConversionResult": "google.ads.google_ads.v6.proto.services.conversion_upload_service_pb2", "ClickLocation": "google.ads.google_ads.v6.proto.common.click_location_pb2", "ClickTypeEnum": "google.ads.google_ads.v6.proto.enums.click_type_pb2", "ClickView": "google.ads.google_ads.v6.proto.resources.click_view_pb2", "CollectionSizeErrorEnum": "google.ads.google_ads.v6.proto.errors.collection_size_error_pb2", "CombinedAudience": "google.ads.google_ads.v6.proto.resources.combined_audience_pb2", "CombinedAudienceInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "CombinedAudienceStatusEnum": "google.ads.google_ads.v6.proto.enums.combined_audience_status_pb2", "CombinedRuleUserListInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "Commission": "google.ads.google_ads.v6.proto.common.bidding_pb2", "ContentLabelInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "ContentLabelTypeEnum": "google.ads.google_ads.v6.proto.enums.content_label_type_pb2", "ContextErrorEnum": "google.ads.google_ads.v6.proto.errors.context_error_pb2", "ConversionAction": "google.ads.google_ads.v6.proto.resources.conversion_action_pb2", "ConversionActionCategoryEnum": "google.ads.google_ads.v6.proto.enums.conversion_action_category_pb2", "ConversionActionCountingTypeEnum": "google.ads.google_ads.v6.proto.enums.conversion_action_counting_type_pb2", "ConversionActionErrorEnum": "google.ads.google_ads.v6.proto.errors.conversion_action_error_pb2", "ConversionActionOperation": "google.ads.google_ads.v6.proto.services.conversion_action_service_pb2", "ConversionActionStatusEnum": "google.ads.google_ads.v6.proto.enums.conversion_action_status_pb2", "ConversionActionTypeEnum": "google.ads.google_ads.v6.proto.enums.conversion_action_type_pb2", "ConversionAdjustment": "google.ads.google_ads.v6.proto.services.conversion_adjustment_upload_service_pb2", "ConversionAdjustmentResult": "google.ads.google_ads.v6.proto.services.conversion_adjustment_upload_service_pb2", "ConversionAdjustmentTypeEnum": "google.ads.google_ads.v6.proto.enums.conversion_adjustment_type_pb2", "ConversionAdjustmentUploadErrorEnum": "google.ads.google_ads.v6.proto.errors.conversion_adjustment_upload_error_pb2", "ConversionAttributionEventTypeEnum": "google.ads.google_ads.v6.proto.enums.conversion_attribution_event_type_pb2", "ConversionLagBucketEnum": "google.ads.google_ads.v6.proto.enums.conversion_lag_bucket_pb2", "ConversionOrAdjustmentLagBucketEnum": "google.ads.google_ads.v6.proto.enums.conversion_or_adjustment_lag_bucket_pb2", "ConversionTrackingSetting": "google.ads.google_ads.v6.proto.resources.customer_pb2", "ConversionUploadErrorEnum": "google.ads.google_ads.v6.proto.errors.conversion_upload_error_pb2", "CountryCodeErrorEnum": "google.ads.google_ads.v6.proto.errors.country_code_error_pb2", "CpcBidSimulationPoint": "google.ads.google_ads.v6.proto.common.simulation_pb2", "CpcBidSimulationPointList": "google.ads.google_ads.v6.proto.common.simulation_pb2", "CpvBidSimulationPoint": "google.ads.google_ads.v6.proto.common.simulation_pb2", "CpvBidSimulationPointList": "google.ads.google_ads.v6.proto.common.simulation_pb2", "CreateAccountLinkRequest": "google.ads.google_ads.v6.proto.services.account_link_service_pb2", "CreateAccountLinkResponse": "google.ads.google_ads.v6.proto.services.account_link_service_pb2", "CreateCampaignExperimentMetadata": "google.ads.google_ads.v6.proto.services.campaign_experiment_service_pb2", "CreateCampaignExperimentRequest": "google.ads.google_ads.v6.proto.services.campaign_experiment_service_pb2", "CreateCustomerClientRequest": "google.ads.google_ads.v6.proto.services.customer_service_pb2", "CreateCustomerClientResponse": "google.ads.google_ads.v6.proto.services.customer_service_pb2", "CreateOfflineUserDataJobRequest": "google.ads.google_ads.v6.proto.services.offline_user_data_job_service_pb2", "CreateOfflineUserDataJobResponse": "google.ads.google_ads.v6.proto.services.offline_user_data_job_service_pb2", "CriterionCategoryAvailability": "google.ads.google_ads.v6.proto.common.criterion_category_availability_pb2", "CriterionCategoryChannelAvailability": "google.ads.google_ads.v6.proto.common.criterion_category_availability_pb2", "CriterionCategoryChannelAvailabilityModeEnum": "google.ads.google_ads.v6.proto.enums.criterion_category_channel_availability_mode_pb2", "CriterionCategoryLocaleAvailability": "google.ads.google_ads.v6.proto.common.criterion_category_availability_pb2", "CriterionCategoryLocaleAvailabilityModeEnum": "google.ads.google_ads.v6.proto.enums.criterion_category_locale_availability_mode_pb2", "CriterionErrorEnum": "google.ads.google_ads.v6.proto.errors.criterion_error_pb2", "CriterionSystemServingStatusEnum": "google.ads.google_ads.v6.proto.enums.criterion_system_serving_status_pb2", "CriterionTypeEnum": "google.ads.google_ads.v6.proto.enums.criterion_type_pb2", "CrmBasedUserListInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "CurrencyCodeErrorEnum": "google.ads.google_ads.v6.proto.errors.currency_code_error_pb2", "CurrencyConstant": "google.ads.google_ads.v6.proto.resources.currency_constant_pb2", "CustomAffinityInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "CustomAudience": "google.ads.google_ads.v6.proto.resources.custom_audience_pb2", "CustomAudienceErrorEnum": "google.ads.google_ads.v6.proto.errors.custom_audience_error_pb2", "CustomAudienceInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "CustomAudienceMember": "google.ads.google_ads.v6.proto.resources.custom_audience_pb2", "CustomAudienceMemberTypeEnum": "google.ads.google_ads.v6.proto.enums.custom_audience_member_type_pb2", "CustomAudienceOperation": "google.ads.google_ads.v6.proto.services.custom_audience_service_pb2", "CustomAudienceStatusEnum": "google.ads.google_ads.v6.proto.enums.custom_audience_status_pb2", "CustomAudienceTypeEnum": "google.ads.google_ads.v6.proto.enums.custom_audience_type_pb2", "CustomIntentInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "CustomInterest": "google.ads.google_ads.v6.proto.resources.custom_interest_pb2", "CustomInterestErrorEnum": "google.ads.google_ads.v6.proto.errors.custom_interest_error_pb2", "CustomInterestMember": "google.ads.google_ads.v6.proto.resources.custom_interest_pb2", "CustomInterestMemberTypeEnum": "google.ads.google_ads.v6.proto.enums.custom_interest_member_type_pb2", "CustomInterestOperation": "google.ads.google_ads.v6.proto.services.custom_interest_service_pb2", "CustomInterestStatusEnum": "google.ads.google_ads.v6.proto.enums.custom_interest_status_pb2", "CustomInterestTypeEnum": "google.ads.google_ads.v6.proto.enums.custom_interest_type_pb2", "CustomParameter": "google.ads.google_ads.v6.proto.common.custom_parameter_pb2", "CustomPlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.custom_placeholder_field_pb2", "Customer": "google.ads.google_ads.v6.proto.resources.customer_pb2", "CustomerClient": "google.ads.google_ads.v6.proto.resources.customer_client_pb2", "CustomerClientLink": "google.ads.google_ads.v6.proto.resources.customer_client_link_pb2", "CustomerClientLinkErrorEnum": "google.ads.google_ads.v6.proto.errors.customer_client_link_error_pb2", "CustomerClientLinkOperation": "google.ads.google_ads.v6.proto.services.customer_client_link_service_pb2", "CustomerErrorEnum": "google.ads.google_ads.v6.proto.errors.customer_error_pb2", "CustomerExtensionSetting": "google.ads.google_ads.v6.proto.resources.customer_extension_setting_pb2", "CustomerExtensionSettingOperation": "google.ads.google_ads.v6.proto.services.customer_extension_setting_service_pb2", "CustomerFeed": "google.ads.google_ads.v6.proto.resources.customer_feed_pb2", "CustomerFeedErrorEnum": "google.ads.google_ads.v6.proto.errors.customer_feed_error_pb2", "CustomerFeedOperation": "google.ads.google_ads.v6.proto.services.customer_feed_service_pb2", "CustomerLabel": "google.ads.google_ads.v6.proto.resources.customer_label_pb2", "CustomerLabelOperation": "google.ads.google_ads.v6.proto.services.customer_label_service_pb2", "CustomerManagerLink": "google.ads.google_ads.v6.proto.resources.customer_manager_link_pb2", "CustomerManagerLinkErrorEnum": "google.ads.google_ads.v6.proto.errors.customer_manager_link_error_pb2", "CustomerManagerLinkOperation": "google.ads.google_ads.v6.proto.services.customer_manager_link_service_pb2", "CustomerMatchUploadKeyTypeEnum": "google.ads.google_ads.v6.proto.enums.customer_match_upload_key_type_pb2", "CustomerMatchUserListMetadata": "google.ads.google_ads.v6.proto.common.offline_user_data_pb2", "CustomerNegativeCriterion": "google.ads.google_ads.v6.proto.resources.customer_negative_criterion_pb2", "CustomerNegativeCriterionOperation": "google.ads.google_ads.v6.proto.services.customer_negative_criterion_service_pb2", "CustomerOperation": "google.ads.google_ads.v6.proto.services.customer_service_pb2", "CustomerPayPerConversionEligibilityFailureReasonEnum": "google.ads.google_ads.v6.proto.enums.customer_pay_per_conversion_eligibility_failure_reason_pb2", "CustomerUserAccess": "google.ads.google_ads.v6.proto.resources.customer_user_access_pb2", "CustomerUserAccessErrorEnum": "google.ads.google_ads.v6.proto.errors.customer_user_access_error_pb2", "CustomerUserAccessOperation": "google.ads.google_ads.v6.proto.services.customer_user_access_service_pb2", "DataDrivenModelStatusEnum": "google.ads.google_ads.v6.proto.enums.data_driven_model_status_pb2", "DataPartnerLinkIdentifier": "google.ads.google_ads.v6.proto.resources.account_link_pb2", "DatabaseErrorEnum": "google.ads.google_ads.v6.proto.errors.database_error_pb2", "DateErrorEnum": "google.ads.google_ads.v6.proto.errors.date_error_pb2", "DateRange": "google.ads.google_ads.v6.proto.common.dates_pb2", "DateRangeErrorEnum": "google.ads.google_ads.v6.proto.errors.date_range_error_pb2", "DateSpecificRuleUserListInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "DayOfWeekEnum": "google.ads.google_ads.v6.proto.enums.day_of_week_pb2", "DetailPlacementView": "google.ads.google_ads.v6.proto.resources.detail_placement_view_pb2", "DeviceEnum": "google.ads.google_ads.v6.proto.enums.device_pb2", "DeviceInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "DismissRecommendationRequest": "google.ads.google_ads.v6.proto.services.recommendation_service_pb2", "DismissRecommendationResponse": "google.ads.google_ads.v6.proto.services.recommendation_service_pb2", "DisplayAdFormatSettingEnum": "google.ads.google_ads.v6.proto.enums.display_ad_format_setting_pb2", "DisplayCallToAction": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "DisplayKeywordView": "google.ads.google_ads.v6.proto.resources.display_keyword_view_pb2", "DisplayUploadAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "DisplayUploadProductTypeEnum": "google.ads.google_ads.v6.proto.enums.display_upload_product_type_pb2", "DistanceBucketEnum": "google.ads.google_ads.v6.proto.enums.distance_bucket_pb2", "DistanceView": "google.ads.google_ads.v6.proto.resources.distance_view_pb2", "DistinctErrorEnum": "google.ads.google_ads.v6.proto.errors.distinct_error_pb2", "DomainCategory": "google.ads.google_ads.v6.proto.resources.domain_category_pb2", "DsaPageFeedCriterionFieldEnum": "google.ads.google_ads.v6.proto.enums.dsa_page_feed_criterion_field_pb2", "DynamicAffiliateLocationSetFilter": "google.ads.google_ads.v6.proto.common.feed_item_set_filter_type_infos_pb2", "DynamicLocationSetFilter": "google.ads.google_ads.v6.proto.common.feed_item_set_filter_type_infos_pb2", "DynamicSearchAdsSearchTermView": "google.ads.google_ads.v6.proto.resources.dynamic_search_ads_search_term_view_pb2", "EducationPlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.education_placeholder_field_pb2", "EndCampaignExperimentRequest": "google.ads.google_ads.v6.proto.services.campaign_experiment_service_pb2", "EnhancedCpc": "google.ads.google_ads.v6.proto.common.bidding_pb2", "EnumErrorEnum": "google.ads.google_ads.v6.proto.errors.enum_error_pb2", "ErrorCode": "google.ads.google_ads.v6.proto.errors.errors_pb2", "ErrorDetails": "google.ads.google_ads.v6.proto.errors.errors_pb2", "ErrorLocation": "google.ads.google_ads.v6.proto.errors.errors_pb2", "ExpandedDynamicSearchAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "ExpandedLandingPageView": "google.ads.google_ads.v6.proto.resources.expanded_landing_page_view_pb2", "ExpandedTextAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "ExplorerAutoOptimizerSetting": "google.ads.google_ads.v6.proto.common.explorer_auto_optimizer_setting_pb2", "ExpressionRuleUserListInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "ExtensionFeedItem": "google.ads.google_ads.v6.proto.resources.extension_feed_item_pb2", "ExtensionFeedItemErrorEnum": "google.ads.google_ads.v6.proto.errors.extension_feed_item_error_pb2", "ExtensionFeedItemOperation": "google.ads.google_ads.v6.proto.services.extension_feed_item_service_pb2", "ExtensionSettingDeviceEnum": "google.ads.google_ads.v6.proto.enums.extension_setting_device_pb2", "ExtensionSettingErrorEnum": "google.ads.google_ads.v6.proto.errors.extension_setting_error_pb2", "ExtensionTypeEnum": "google.ads.google_ads.v6.proto.enums.extension_type_pb2", "ExternalAttributionData": "google.ads.google_ads.v6.proto.services.conversion_upload_service_pb2", "ExternalConversionSourceEnum": "google.ads.google_ads.v6.proto.enums.external_conversion_source_pb2", "Feed": "google.ads.google_ads.v6.proto.resources.feed_pb2", "FeedAttribute": "google.ads.google_ads.v6.proto.resources.feed_pb2", "FeedAttributeOperation": "google.ads.google_ads.v6.proto.resources.feed_pb2", "FeedAttributeReferenceErrorEnum": "google.ads.google_ads.v6.proto.errors.feed_attribute_reference_error_pb2", "FeedAttributeTypeEnum": "google.ads.google_ads.v6.proto.enums.feed_attribute_type_pb2", "FeedErrorEnum": "google.ads.google_ads.v6.proto.errors.feed_error_pb2", "FeedItem": "google.ads.google_ads.v6.proto.resources.feed_item_pb2", "FeedItemAttributeValue": "google.ads.google_ads.v6.proto.resources.feed_item_pb2", "FeedItemErrorEnum": "google.ads.google_ads.v6.proto.errors.feed_item_error_pb2", "FeedItemOperation": "google.ads.google_ads.v6.proto.services.feed_item_service_pb2", "FeedItemPlaceholderPolicyInfo": "google.ads.google_ads.v6.proto.resources.feed_item_pb2", "FeedItemQualityApprovalStatusEnum": "google.ads.google_ads.v6.proto.enums.feed_item_quality_approval_status_pb2", "FeedItemQualityDisapprovalReasonEnum": "google.ads.google_ads.v6.proto.enums.feed_item_quality_disapproval_reason_pb2", "FeedItemSet": "google.ads.google_ads.v6.proto.resources.feed_item_set_pb2", "FeedItemSetErrorEnum": "google.ads.google_ads.v6.proto.errors.feed_item_set_error_pb2", "FeedItemSetLink": "google.ads.google_ads.v6.proto.resources.feed_item_set_link_pb2", "FeedItemSetLinkErrorEnum": "google.ads.google_ads.v6.proto.errors.feed_item_set_link_error_pb2", "FeedItemSetLinkOperation": "google.ads.google_ads.v6.proto.services.feed_item_set_link_service_pb2", "FeedItemSetOperation": "google.ads.google_ads.v6.proto.services.feed_item_set_service_pb2", "FeedItemSetStatusEnum": "google.ads.google_ads.v6.proto.enums.feed_item_set_status_pb2", "FeedItemSetStringFilterTypeEnum": "google.ads.google_ads.v6.proto.enums.feed_item_set_string_filter_type_pb2", "FeedItemStatusEnum": "google.ads.google_ads.v6.proto.enums.feed_item_status_pb2", "FeedItemTarget": "google.ads.google_ads.v6.proto.resources.feed_item_target_pb2", "FeedItemTargetDeviceEnum": "google.ads.google_ads.v6.proto.enums.feed_item_target_device_pb2", "FeedItemTargetErrorEnum": "google.ads.google_ads.v6.proto.errors.feed_item_target_error_pb2", "FeedItemTargetOperation": "google.ads.google_ads.v6.proto.services.feed_item_target_service_pb2", "FeedItemTargetStatusEnum": "google.ads.google_ads.v6.proto.enums.feed_item_target_status_pb2", "FeedItemTargetTypeEnum": "google.ads.google_ads.v6.proto.enums.feed_item_target_type_pb2", "FeedItemValidationError": "google.ads.google_ads.v6.proto.resources.feed_item_pb2", "FeedItemValidationErrorEnum": "google.ads.google_ads.v6.proto.errors.feed_item_validation_error_pb2", "FeedItemValidationStatusEnum": "google.ads.google_ads.v6.proto.enums.feed_item_validation_status_pb2", "FeedLinkStatusEnum": "google.ads.google_ads.v6.proto.enums.feed_link_status_pb2", "FeedMapping": "google.ads.google_ads.v6.proto.resources.feed_mapping_pb2", "FeedMappingCriterionTypeEnum": "google.ads.google_ads.v6.proto.enums.feed_mapping_criterion_type_pb2", "FeedMappingErrorEnum": "google.ads.google_ads.v6.proto.errors.feed_mapping_error_pb2", "FeedMappingOperation": "google.ads.google_ads.v6.proto.services.feed_mapping_service_pb2", "FeedMappingStatusEnum": "google.ads.google_ads.v6.proto.enums.feed_mapping_status_pb2", "FeedOperation": "google.ads.google_ads.v6.proto.services.feed_service_pb2", "FeedOriginEnum": "google.ads.google_ads.v6.proto.enums.feed_origin_pb2", "FeedPlaceholderView": "google.ads.google_ads.v6.proto.resources.feed_placeholder_view_pb2", "FeedStatusEnum": "google.ads.google_ads.v6.proto.enums.feed_status_pb2", "FieldErrorEnum": "google.ads.google_ads.v6.proto.errors.field_error_pb2", "FieldMaskErrorEnum": "google.ads.google_ads.v6.proto.errors.field_mask_error_pb2", "FinalAppUrl": "google.ads.google_ads.v6.proto.common.final_app_url_pb2", "FlightPlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.flight_placeholder_field_pb2", "Forecast": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "ForecastMetrics": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "FrequencyCap": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "FrequencyCapEntry": "google.ads.google_ads.v6.proto.common.frequency_cap_pb2", "FrequencyCapEventTypeEnum": "google.ads.google_ads.v6.proto.enums.frequency_cap_event_type_pb2", "FrequencyCapKey": "google.ads.google_ads.v6.proto.common.frequency_cap_pb2", "FrequencyCapLevelEnum": "google.ads.google_ads.v6.proto.enums.frequency_cap_level_pb2", "FrequencyCapTimeUnitEnum": "google.ads.google_ads.v6.proto.enums.frequency_cap_time_unit_pb2", "FunctionErrorEnum": "google.ads.google_ads.v6.proto.errors.function_error_pb2", "FunctionParsingErrorEnum": "google.ads.google_ads.v6.proto.errors.function_parsing_error_pb2", "GclidDateTimePair": "google.ads.google_ads.v6.proto.services.conversion_adjustment_upload_service_pb2", "GenderInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "GenderTypeEnum": "google.ads.google_ads.v6.proto.enums.gender_type_pb2", "GenderView": "google.ads.google_ads.v6.proto.resources.gender_view_pb2", "GenerateForecastCurveRequest": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "GenerateForecastCurveResponse": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "GenerateForecastMetricsRequest": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "GenerateForecastMetricsResponse": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "GenerateForecastTimeSeriesRequest": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "GenerateForecastTimeSeriesResponse": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "GenerateHistoricalMetricsRequest": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "GenerateHistoricalMetricsResponse": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "GenerateKeywordIdeaResponse": "google.ads.google_ads.v6.proto.services.keyword_plan_idea_service_pb2", "GenerateKeywordIdeaResult": "google.ads.google_ads.v6.proto.services.keyword_plan_idea_service_pb2", "GenerateKeywordIdeasRequest": "google.ads.google_ads.v6.proto.services.keyword_plan_idea_service_pb2", "GenerateProductMixIdeasRequest": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "GenerateProductMixIdeasResponse": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "GenerateReachForecastRequest": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "GenerateReachForecastResponse": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "GeoPointInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "GeoTargetConstant": "google.ads.google_ads.v6.proto.resources.geo_target_constant_pb2", "GeoTargetConstantStatusEnum": "google.ads.google_ads.v6.proto.enums.geo_target_constant_status_pb2", "GeoTargetConstantSuggestion": "google.ads.google_ads.v6.proto.services.geo_target_constant_service_pb2", "GeoTargetConstantSuggestionErrorEnum": "google.ads.google_ads.v6.proto.errors.geo_target_constant_suggestion_error_pb2", "GeoTargetingRestrictionEnum": "google.ads.google_ads.v6.proto.enums.geo_targeting_restriction_pb2", "GeoTargetingTypeEnum": "google.ads.google_ads.v6.proto.enums.geo_targeting_type_pb2", "GeographicView": "google.ads.google_ads.v6.proto.resources.geographic_view_pb2", "GetAccountBudgetProposalRequest": "google.ads.google_ads.v6.proto.services.account_budget_proposal_service_pb2", "GetAccountBudgetRequest": "google.ads.google_ads.v6.proto.services.account_budget_service_pb2", "GetAccountLinkRequest": "google.ads.google_ads.v6.proto.services.account_link_service_pb2", "GetAdGroupAdAssetViewRequest": "google.ads.google_ads.v6.proto.services.ad_group_ad_asset_view_service_pb2", "GetAdGroupAdLabelRequest": "google.ads.google_ads.v6.proto.services.ad_group_ad_label_service_pb2", "GetAdGroupAdRequest": "google.ads.google_ads.v6.proto.services.ad_group_ad_service_pb2", "GetAdGroupAudienceViewRequest": "google.ads.google_ads.v6.proto.services.ad_group_audience_view_service_pb2", "GetAdGroupBidModifierRequest": "google.ads.google_ads.v6.proto.services.ad_group_bid_modifier_service_pb2", "GetAdGroupCriterionLabelRequest": "google.ads.google_ads.v6.proto.services.ad_group_criterion_label_service_pb2", "GetAdGroupCriterionRequest": "google.ads.google_ads.v6.proto.services.ad_group_criterion_service_pb2", "GetAdGroupCriterionSimulationRequest": "google.ads.google_ads.v6.proto.services.ad_group_criterion_simulation_service_pb2", "GetAdGroupExtensionSettingRequest": "google.ads.google_ads.v6.proto.services.ad_group_extension_setting_service_pb2", "GetAdGroupFeedRequest": "google.ads.google_ads.v6.proto.services.ad_group_feed_service_pb2", "GetAdGroupLabelRequest": "google.ads.google_ads.v6.proto.services.ad_group_label_service_pb2", "GetAdGroupRequest": "google.ads.google_ads.v6.proto.services.ad_group_service_pb2", "GetAdGroupSimulationRequest": "google.ads.google_ads.v6.proto.services.ad_group_simulation_service_pb2", "GetAdParameterRequest": "google.ads.google_ads.v6.proto.services.ad_parameter_service_pb2", "GetAdRequest": "google.ads.google_ads.v6.proto.services.ad_service_pb2", "GetAdScheduleViewRequest": "google.ads.google_ads.v6.proto.services.ad_schedule_view_service_pb2", "GetAgeRangeViewRequest": "google.ads.google_ads.v6.proto.services.age_range_view_service_pb2", "GetAssetRequest": "google.ads.google_ads.v6.proto.services.asset_service_pb2", "GetBatchJobRequest": "google.ads.google_ads.v6.proto.services.batch_job_service_pb2", "GetBiddingStrategyRequest": "google.ads.google_ads.v6.proto.services.bidding_strategy_service_pb2", "GetBillingSetupRequest": "google.ads.google_ads.v6.proto.services.billing_setup_service_pb2", "GetCampaignAssetRequest": "google.ads.google_ads.v6.proto.services.campaign_asset_service_pb2", "GetCampaignAudienceViewRequest": "google.ads.google_ads.v6.proto.services.campaign_audience_view_service_pb2", "GetCampaignBidModifierRequest": "google.ads.google_ads.v6.proto.services.campaign_bid_modifier_service_pb2", "GetCampaignBudgetRequest": "google.ads.google_ads.v6.proto.services.campaign_budget_service_pb2", "GetCampaignCriterionRequest": "google.ads.google_ads.v6.proto.services.campaign_criterion_service_pb2", "GetCampaignCriterionSimulationRequest": "google.ads.google_ads.v6.proto.services.campaign_criterion_simulation_service_pb2", "GetCampaignDraftRequest": "google.ads.google_ads.v6.proto.services.campaign_draft_service_pb2", "GetCampaignExperimentRequest": "google.ads.google_ads.v6.proto.services.campaign_experiment_service_pb2", "GetCampaignExtensionSettingRequest": "google.ads.google_ads.v6.proto.services.campaign_extension_setting_service_pb2", "GetCampaignFeedRequest": "google.ads.google_ads.v6.proto.services.campaign_feed_service_pb2", "GetCampaignLabelRequest": "google.ads.google_ads.v6.proto.services.campaign_label_service_pb2", "GetCampaignRequest": "google.ads.google_ads.v6.proto.services.campaign_service_pb2", "GetCampaignSharedSetRequest": "google.ads.google_ads.v6.proto.services.campaign_shared_set_service_pb2", "GetCarrierConstantRequest": "google.ads.google_ads.v6.proto.services.carrier_constant_service_pb2", "GetChangeStatusRequest": "google.ads.google_ads.v6.proto.services.change_status_service_pb2", "GetClickViewRequest": "google.ads.google_ads.v6.proto.services.click_view_service_pb2", "GetCombinedAudienceRequest": "google.ads.google_ads.v6.proto.services.combined_audience_service_pb2", "GetConversionActionRequest": "google.ads.google_ads.v6.proto.services.conversion_action_service_pb2", "GetCurrencyConstantRequest": "google.ads.google_ads.v6.proto.services.currency_constant_service_pb2", "GetCustomAudienceRequest": "google.ads.google_ads.v6.proto.services.custom_audience_service_pb2", "GetCustomInterestRequest": "google.ads.google_ads.v6.proto.services.custom_interest_service_pb2", "GetCustomerClientLinkRequest": "google.ads.google_ads.v6.proto.services.customer_client_link_service_pb2", "GetCustomerClientRequest": "google.ads.google_ads.v6.proto.services.customer_client_service_pb2", "GetCustomerExtensionSettingRequest": "google.ads.google_ads.v6.proto.services.customer_extension_setting_service_pb2", "GetCustomerFeedRequest": "google.ads.google_ads.v6.proto.services.customer_feed_service_pb2", "GetCustomerLabelRequest": "google.ads.google_ads.v6.proto.services.customer_label_service_pb2", "GetCustomerManagerLinkRequest": "google.ads.google_ads.v6.proto.services.customer_manager_link_service_pb2", "GetCustomerNegativeCriterionRequest": "google.ads.google_ads.v6.proto.services.customer_negative_criterion_service_pb2", "GetCustomerRequest": "google.ads.google_ads.v6.proto.services.customer_service_pb2", "GetCustomerUserAccessRequest": "google.ads.google_ads.v6.proto.services.customer_user_access_service_pb2", "GetDetailPlacementViewRequest": "google.ads.google_ads.v6.proto.services.detail_placement_view_service_pb2", "GetDisplayKeywordViewRequest": "google.ads.google_ads.v6.proto.services.display_keyword_view_service_pb2", "GetDistanceViewRequest": "google.ads.google_ads.v6.proto.services.distance_view_service_pb2", "GetDomainCategoryRequest": "google.ads.google_ads.v6.proto.services.domain_category_service_pb2", "GetDynamicSearchAdsSearchTermViewRequest": "google.ads.google_ads.v6.proto.services.dynamic_search_ads_search_term_view_service_pb2", "GetExpandedLandingPageViewRequest": "google.ads.google_ads.v6.proto.services.expanded_landing_page_view_service_pb2", "GetExtensionFeedItemRequest": "google.ads.google_ads.v6.proto.services.extension_feed_item_service_pb2", "GetFeedItemRequest": "google.ads.google_ads.v6.proto.services.feed_item_service_pb2", "GetFeedItemSetLinkRequest": "google.ads.google_ads.v6.proto.services.feed_item_set_link_service_pb2", "GetFeedItemSetRequest": "google.ads.google_ads.v6.proto.services.feed_item_set_service_pb2", "GetFeedItemTargetRequest": "google.ads.google_ads.v6.proto.services.feed_item_target_service_pb2", "GetFeedMappingRequest": "google.ads.google_ads.v6.proto.services.feed_mapping_service_pb2", "GetFeedPlaceholderViewRequest": "google.ads.google_ads.v6.proto.services.feed_placeholder_view_service_pb2", "GetFeedRequest": "google.ads.google_ads.v6.proto.services.feed_service_pb2", "GetGenderViewRequest": "google.ads.google_ads.v6.proto.services.gender_view_service_pb2", "GetGeoTargetConstantRequest": "google.ads.google_ads.v6.proto.services.geo_target_constant_service_pb2", "GetGeographicViewRequest": "google.ads.google_ads.v6.proto.services.geographic_view_service_pb2", "GetGoogleAdsFieldRequest": "google.ads.google_ads.v6.proto.services.google_ads_field_service_pb2", "GetGroupPlacementViewRequest": "google.ads.google_ads.v6.proto.services.group_placement_view_service_pb2", "GetHotelGroupViewRequest": "google.ads.google_ads.v6.proto.services.hotel_group_view_service_pb2", "GetHotelPerformanceViewRequest": "google.ads.google_ads.v6.proto.services.hotel_performance_view_service_pb2", "GetIncomeRangeViewRequest": "google.ads.google_ads.v6.proto.services.income_range_view_service_pb2", "GetKeywordPlanAdGroupKeywordRequest": "google.ads.google_ads.v6.proto.services.keyword_plan_ad_group_keyword_service_pb2", "GetKeywordPlanAdGroupRequest": "google.ads.google_ads.v6.proto.services.keyword_plan_ad_group_service_pb2", "GetKeywordPlanCampaignKeywordRequest": "google.ads.google_ads.v6.proto.services.keyword_plan_campaign_keyword_service_pb2", "GetKeywordPlanCampaignRequest": "google.ads.google_ads.v6.proto.services.keyword_plan_campaign_service_pb2", "GetKeywordPlanRequest": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "GetKeywordViewRequest": "google.ads.google_ads.v6.proto.services.keyword_view_service_pb2", "GetLabelRequest": "google.ads.google_ads.v6.proto.services.label_service_pb2", "GetLandingPageViewRequest": "google.ads.google_ads.v6.proto.services.landing_page_view_service_pb2", "GetLanguageConstantRequest": "google.ads.google_ads.v6.proto.services.language_constant_service_pb2", "GetLocationViewRequest": "google.ads.google_ads.v6.proto.services.location_view_service_pb2", "GetManagedPlacementViewRequest": "google.ads.google_ads.v6.proto.services.managed_placement_view_service_pb2", "GetMediaFileRequest": "google.ads.google_ads.v6.proto.services.media_file_service_pb2", "GetMerchantCenterLinkRequest": "google.ads.google_ads.v6.proto.services.merchant_center_link_service_pb2", "GetMobileAppCategoryConstantRequest": "google.ads.google_ads.v6.proto.services.mobile_app_category_constant_service_pb2", "GetMobileDeviceConstantRequest": "google.ads.google_ads.v6.proto.services.mobile_device_constant_service_pb2", "GetOfflineUserDataJobRequest": "google.ads.google_ads.v6.proto.services.offline_user_data_job_service_pb2", "GetOperatingSystemVersionConstantRequest": "google.ads.google_ads.v6.proto.services.operating_system_version_constant_service_pb2", "GetPaidOrganicSearchTermViewRequest": "google.ads.google_ads.v6.proto.services.paid_organic_search_term_view_service_pb2", "GetParentalStatusViewRequest": "google.ads.google_ads.v6.proto.services.parental_status_view_service_pb2", "GetProductBiddingCategoryConstantRequest": "google.ads.google_ads.v6.proto.services.product_bidding_category_constant_service_pb2", "GetProductGroupViewRequest": "google.ads.google_ads.v6.proto.services.product_group_view_service_pb2", "GetRecommendationRequest": "google.ads.google_ads.v6.proto.services.recommendation_service_pb2", "GetRemarketingActionRequest": "google.ads.google_ads.v6.proto.services.remarketing_action_service_pb2", "GetSearchTermViewRequest": "google.ads.google_ads.v6.proto.services.search_term_view_service_pb2", "GetSharedCriterionRequest": "google.ads.google_ads.v6.proto.services.shared_criterion_service_pb2", "GetSharedSetRequest": "google.ads.google_ads.v6.proto.services.shared_set_service_pb2", "GetShoppingPerformanceViewRequest": "google.ads.google_ads.v6.proto.services.shopping_performance_view_service_pb2", "GetThirdPartyAppAnalyticsLinkRequest": "google.ads.google_ads.v6.proto.services.third_party_app_analytics_link_service_pb2", "GetTopicConstantRequest": "google.ads.google_ads.v6.proto.services.topic_constant_service_pb2", "GetTopicViewRequest": "google.ads.google_ads.v6.proto.services.topic_view_service_pb2", "GetUserInterestRequest": "google.ads.google_ads.v6.proto.services.user_interest_service_pb2", "GetUserListRequest": "google.ads.google_ads.v6.proto.services.user_list_service_pb2", "GetUserLocationViewRequest": "google.ads.google_ads.v6.proto.services.user_location_view_service_pb2", "GetVideoRequest": "google.ads.google_ads.v6.proto.services.video_service_pb2", "GmailAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "GmailTeaser": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "GoogleAdsError": "google.ads.google_ads.v6.proto.errors.errors_pb2", "GoogleAdsFailure": "google.ads.google_ads.v6.proto.errors.errors_pb2", "GoogleAdsField": "google.ads.google_ads.v6.proto.resources.google_ads_field_pb2", "GoogleAdsFieldCategoryEnum": "google.ads.google_ads.v6.proto.enums.google_ads_field_category_pb2", "GoogleAdsFieldDataTypeEnum": "google.ads.google_ads.v6.proto.enums.google_ads_field_data_type_pb2", "GoogleAdsLinkIdentifier": "google.ads.google_ads.v6.proto.resources.account_link_pb2", "GoogleAdsRow": "google.ads.google_ads.v6.proto.services.google_ads_service_pb2", "GraduateCampaignExperimentRequest": "google.ads.google_ads.v6.proto.services.campaign_experiment_service_pb2", "GraduateCampaignExperimentResponse": "google.ads.google_ads.v6.proto.services.campaign_experiment_service_pb2", "GroupPlacementView": "google.ads.google_ads.v6.proto.resources.group_placement_view_pb2", "HeaderErrorEnum": "google.ads.google_ads.v6.proto.errors.header_error_pb2", "HotelAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "HotelAdvanceBookingWindowInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "HotelCalloutFeedItem": "google.ads.google_ads.v6.proto.common.extensions_pb2", "HotelCheckInDayInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "HotelCityInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "HotelClassInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "HotelCountryRegionInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "HotelDateSelectionTypeEnum": "google.ads.google_ads.v6.proto.enums.hotel_date_selection_type_pb2", "HotelDateSelectionTypeInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "HotelGroupView": "google.ads.google_ads.v6.proto.resources.hotel_group_view_pb2", "HotelIdInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "HotelLengthOfStayInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "HotelPerformanceView": "google.ads.google_ads.v6.proto.resources.hotel_performance_view_pb2", "HotelPlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.hotel_placeholder_field_pb2", "HotelPriceBucketEnum": "google.ads.google_ads.v6.proto.enums.hotel_price_bucket_pb2", "HotelRateTypeEnum": "google.ads.google_ads.v6.proto.enums.hotel_rate_type_pb2", "HotelStateInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "IdErrorEnum": "google.ads.google_ads.v6.proto.errors.id_error_pb2", "ImageAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "ImageAsset": "google.ads.google_ads.v6.proto.common.asset_types_pb2", "ImageDimension": "google.ads.google_ads.v6.proto.common.asset_types_pb2", "ImageErrorEnum": "google.ads.google_ads.v6.proto.errors.image_error_pb2", "ImageFeedItem": "google.ads.google_ads.v6.proto.common.extensions_pb2", "IncomeRangeInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "IncomeRangeTypeEnum": "google.ads.google_ads.v6.proto.enums.income_range_type_pb2", "IncomeRangeView": "google.ads.google_ads.v6.proto.resources.income_range_view_pb2", "InteractionEventTypeEnum": "google.ads.google_ads.v6.proto.enums.interaction_event_type_pb2", "InteractionTypeEnum": "google.ads.google_ads.v6.proto.enums.interaction_type_pb2", "InteractionTypeInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "InternalErrorEnum": "google.ads.google_ads.v6.proto.errors.internal_error_pb2", "Invoice": "google.ads.google_ads.v6.proto.resources.invoice_pb2", "InvoiceErrorEnum": "google.ads.google_ads.v6.proto.errors.invoice_error_pb2", "InvoiceTypeEnum": "google.ads.google_ads.v6.proto.enums.invoice_type_pb2", "IpBlockInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "JobPlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.job_placeholder_field_pb2", "Keyword": "google.ads.google_ads.v6.proto.common.segments_pb2", "KeywordAndUrlSeed": "google.ads.google_ads.v6.proto.services.keyword_plan_idea_service_pb2", "KeywordInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "KeywordMatchTypeEnum": "google.ads.google_ads.v6.proto.enums.keyword_match_type_pb2", "KeywordPlan": "google.ads.google_ads.v6.proto.resources.keyword_plan_pb2", "KeywordPlanAdGroup": "google.ads.google_ads.v6.proto.resources.keyword_plan_ad_group_pb2", "KeywordPlanAdGroupErrorEnum": "google.ads.google_ads.v6.proto.errors.keyword_plan_ad_group_error_pb2", "KeywordPlanAdGroupForecast": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "KeywordPlanAdGroupKeyword": "google.ads.google_ads.v6.proto.resources.keyword_plan_ad_group_keyword_pb2", "KeywordPlanAdGroupKeywordErrorEnum": "google.ads.google_ads.v6.proto.errors.keyword_plan_ad_group_keyword_error_pb2", "KeywordPlanAdGroupKeywordOperation": "google.ads.google_ads.v6.proto.services.keyword_plan_ad_group_keyword_service_pb2", "KeywordPlanAdGroupOperation": "google.ads.google_ads.v6.proto.services.keyword_plan_ad_group_service_pb2", "KeywordPlanCampaign": "google.ads.google_ads.v6.proto.resources.keyword_plan_campaign_pb2", "KeywordPlanCampaignErrorEnum": "google.ads.google_ads.v6.proto.errors.keyword_plan_campaign_error_pb2", "KeywordPlanCampaignForecast": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "KeywordPlanCampaignForecastCurve": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "KeywordPlanCampaignKeyword": "google.ads.google_ads.v6.proto.resources.keyword_plan_campaign_keyword_pb2", "KeywordPlanCampaignKeywordErrorEnum": "google.ads.google_ads.v6.proto.errors.keyword_plan_campaign_keyword_error_pb2", "KeywordPlanCampaignKeywordOperation": "google.ads.google_ads.v6.proto.services.keyword_plan_campaign_keyword_service_pb2", "KeywordPlanCampaignOperation": "google.ads.google_ads.v6.proto.services.keyword_plan_campaign_service_pb2", "KeywordPlanCompetitionLevelEnum": "google.ads.google_ads.v6.proto.enums.keyword_plan_competition_level_pb2", "KeywordPlanErrorEnum": "google.ads.google_ads.v6.proto.errors.keyword_plan_error_pb2", "KeywordPlanForecastIntervalEnum": "google.ads.google_ads.v6.proto.enums.keyword_plan_forecast_interval_pb2", "KeywordPlanForecastPeriod": "google.ads.google_ads.v6.proto.resources.keyword_plan_pb2", "KeywordPlanGeoTarget": "google.ads.google_ads.v6.proto.resources.keyword_plan_campaign_pb2", "KeywordPlanHistoricalMetrics": "google.ads.google_ads.v6.proto.common.keyword_plan_common_pb2", "KeywordPlanIdeaErrorEnum": "google.ads.google_ads.v6.proto.errors.keyword_plan_idea_error_pb2", "KeywordPlanKeywordForecast": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "KeywordPlanKeywordHistoricalMetrics": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "KeywordPlanMaxCpcBidForecast": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "KeywordPlanMaxCpcBidForecastCurve": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "KeywordPlanNetworkEnum": "google.ads.google_ads.v6.proto.enums.keyword_plan_network_pb2", "KeywordPlanOperation": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "KeywordPlanWeeklyForecast": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "KeywordPlanWeeklyTimeSeriesForecast": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "KeywordSeed": "google.ads.google_ads.v6.proto.services.keyword_plan_idea_service_pb2", "KeywordView": "google.ads.google_ads.v6.proto.resources.keyword_view_pb2", "Label": "google.ads.google_ads.v6.proto.resources.label_pb2", "LabelErrorEnum": "google.ads.google_ads.v6.proto.errors.label_error_pb2", "LabelOperation": "google.ads.google_ads.v6.proto.services.label_service_pb2", "LabelStatusEnum": "google.ads.google_ads.v6.proto.enums.label_status_pb2", "LandingPageView": "google.ads.google_ads.v6.proto.resources.landing_page_view_pb2", "LanguageCodeErrorEnum": "google.ads.google_ads.v6.proto.errors.language_code_error_pb2", "LanguageConstant": "google.ads.google_ads.v6.proto.resources.language_constant_pb2", "LanguageInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "LeadFormAsset": "google.ads.google_ads.v6.proto.common.asset_types_pb2", "LeadFormCallToActionTypeEnum": "google.ads.google_ads.v6.proto.enums.lead_form_call_to_action_type_pb2", "LeadFormDeliveryMethod": "google.ads.google_ads.v6.proto.common.asset_types_pb2", "LeadFormDesiredIntentEnum": "google.ads.google_ads.v6.proto.enums.lead_form_desired_intent_pb2", "LeadFormField": "google.ads.google_ads.v6.proto.common.asset_types_pb2", "LeadFormFieldUserInputTypeEnum": "google.ads.google_ads.v6.proto.enums.lead_form_field_user_input_type_pb2", "LeadFormPostSubmitCallToActionTypeEnum": "google.ads.google_ads.v6.proto.enums.lead_form_post_submit_call_to_action_type_pb2", "LeadFormSingleChoiceAnswers": "google.ads.google_ads.v6.proto.common.asset_types_pb2", "LegacyAppInstallAdAppStoreEnum": "google.ads.google_ads.v6.proto.enums.legacy_app_install_ad_app_store_pb2", "LegacyAppInstallAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "LegacyResponsiveDisplayAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "LinkedAccountTypeEnum": "google.ads.google_ads.v6.proto.enums.linked_account_type_pb2", "ListAccessibleCustomersRequest": "google.ads.google_ads.v6.proto.services.customer_service_pb2", "ListAccessibleCustomersResponse": "google.ads.google_ads.v6.proto.services.customer_service_pb2", "ListBatchJobResultsRequest": "google.ads.google_ads.v6.proto.services.batch_job_service_pb2", "ListBatchJobResultsResponse": "google.ads.google_ads.v6.proto.services.batch_job_service_pb2", "ListCampaignDraftAsyncErrorsRequest": "google.ads.google_ads.v6.proto.services.campaign_draft_service_pb2", "ListCampaignDraftAsyncErrorsResponse": "google.ads.google_ads.v6.proto.services.campaign_draft_service_pb2", "ListCampaignExperimentAsyncErrorsRequest": "google.ads.google_ads.v6.proto.services.campaign_experiment_service_pb2", "ListCampaignExperimentAsyncErrorsResponse": "google.ads.google_ads.v6.proto.services.campaign_experiment_service_pb2", "ListInvoicesRequest": "google.ads.google_ads.v6.proto.services.invoice_service_pb2", "ListInvoicesResponse": "google.ads.google_ads.v6.proto.services.invoice_service_pb2", "ListMerchantCenterLinksRequest": "google.ads.google_ads.v6.proto.services.merchant_center_link_service_pb2", "ListMerchantCenterLinksResponse": "google.ads.google_ads.v6.proto.services.merchant_center_link_service_pb2", "ListOperationErrorEnum": "google.ads.google_ads.v6.proto.errors.list_operation_error_pb2", "ListPaymentsAccountsRequest": "google.ads.google_ads.v6.proto.services.payments_account_service_pb2", "ListPaymentsAccountsResponse": "google.ads.google_ads.v6.proto.services.payments_account_service_pb2", "ListPlannableLocationsRequest": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "ListPlannableLocationsResponse": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "ListPlannableProductsRequest": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "ListPlannableProductsResponse": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "ListingDimensionInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "ListingGroupInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "ListingGroupTypeEnum": "google.ads.google_ads.v6.proto.enums.listing_group_type_pb2", "ListingScopeInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "LocalAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "LocalPlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.local_placeholder_field_pb2", "LocationExtensionTargetingCriterionFieldEnum": "google.ads.google_ads.v6.proto.enums.location_extension_targeting_criterion_field_pb2", "LocationFeedItem": "google.ads.google_ads.v6.proto.common.extensions_pb2", "LocationGroupInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "LocationGroupRadiusUnitsEnum": "google.ads.google_ads.v6.proto.enums.location_group_radius_units_pb2", "LocationInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "LocationPlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.location_placeholder_field_pb2", "LocationSourceTypeEnum": "google.ads.google_ads.v6.proto.enums.location_source_type_pb2", "LocationView": "google.ads.google_ads.v6.proto.resources.location_view_pb2", "LogicalUserListInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "LogicalUserListOperandInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "ManagedPlacementView": "google.ads.google_ads.v6.proto.resources.managed_placement_view_pb2", "ManagerLinkErrorEnum": "google.ads.google_ads.v6.proto.errors.manager_link_error_pb2", "ManagerLinkStatusEnum": "google.ads.google_ads.v6.proto.enums.manager_link_status_pb2", "ManualCpc": "google.ads.google_ads.v6.proto.common.bidding_pb2", "ManualCpm": "google.ads.google_ads.v6.proto.common.bidding_pb2", "ManualCpv": "google.ads.google_ads.v6.proto.common.bidding_pb2", "MatchingFunction": "google.ads.google_ads.v6.proto.common.matching_function_pb2", "MatchingFunctionContextTypeEnum": "google.ads.google_ads.v6.proto.enums.matching_function_context_type_pb2", "MatchingFunctionOperatorEnum": "google.ads.google_ads.v6.proto.enums.matching_function_operator_pb2", "MaximizeConversionValue": "google.ads.google_ads.v6.proto.common.bidding_pb2", "MaximizeConversions": "google.ads.google_ads.v6.proto.common.bidding_pb2", "MediaAudio": "google.ads.google_ads.v6.proto.resources.media_file_pb2", "MediaBundle": "google.ads.google_ads.v6.proto.resources.media_file_pb2", "MediaBundleAsset": "google.ads.google_ads.v6.proto.common.asset_types_pb2", "MediaBundleErrorEnum": "google.ads.google_ads.v6.proto.errors.media_bundle_error_pb2", "MediaFile": "google.ads.google_ads.v6.proto.resources.media_file_pb2", "MediaFileErrorEnum": "google.ads.google_ads.v6.proto.errors.media_file_error_pb2", "MediaFileOperation": "google.ads.google_ads.v6.proto.services.media_file_service_pb2", "MediaImage": "google.ads.google_ads.v6.proto.resources.media_file_pb2", "MediaTypeEnum": "google.ads.google_ads.v6.proto.enums.media_type_pb2", "MediaUploadErrorEnum": "google.ads.google_ads.v6.proto.errors.media_upload_error_pb2", "MediaVideo": "google.ads.google_ads.v6.proto.resources.media_file_pb2", "MerchantCenterLink": "google.ads.google_ads.v6.proto.resources.merchant_center_link_pb2", "MerchantCenterLinkOperation": "google.ads.google_ads.v6.proto.services.merchant_center_link_service_pb2", "MerchantCenterLinkStatusEnum": "google.ads.google_ads.v6.proto.enums.merchant_center_link_status_pb2", "MessagePlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.message_placeholder_field_pb2", "Metrics": "google.ads.google_ads.v6.proto.common.metrics_pb2", "MimeTypeEnum": "google.ads.google_ads.v6.proto.enums.mime_type_pb2", "MinuteOfHourEnum": "google.ads.google_ads.v6.proto.enums.minute_of_hour_pb2", "MobileAppCategoryConstant": "google.ads.google_ads.v6.proto.resources.mobile_app_category_constant_pb2", "MobileAppCategoryInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "MobileAppVendorEnum": "google.ads.google_ads.v6.proto.enums.mobile_app_vendor_pb2", "MobileApplicationInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "MobileDeviceConstant": "google.ads.google_ads.v6.proto.resources.mobile_device_constant_pb2", "MobileDeviceInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "MobileDeviceTypeEnum": "google.ads.google_ads.v6.proto.enums.mobile_device_type_pb2", "Money": "google.ads.google_ads.v6.proto.common.feed_common_pb2", "MonthOfYearEnum": "google.ads.google_ads.v6.proto.enums.month_of_year_pb2", "MonthlySearchVolume": "google.ads.google_ads.v6.proto.common.keyword_plan_common_pb2", "MoveManagerLinkRequest": "google.ads.google_ads.v6.proto.services.customer_manager_link_service_pb2", "MoveManagerLinkResponse": "google.ads.google_ads.v6.proto.services.customer_manager_link_service_pb2", "MultiplierErrorEnum": "google.ads.google_ads.v6.proto.errors.multiplier_error_pb2", "MutateAccountBudgetProposalRequest": "google.ads.google_ads.v6.proto.services.account_budget_proposal_service_pb2", "MutateAccountBudgetProposalResponse": "google.ads.google_ads.v6.proto.services.account_budget_proposal_service_pb2", "MutateAccountBudgetProposalResult": "google.ads.google_ads.v6.proto.services.account_budget_proposal_service_pb2", "MutateAccountLinkRequest": "google.ads.google_ads.v6.proto.services.account_link_service_pb2", "MutateAccountLinkResponse": "google.ads.google_ads.v6.proto.services.account_link_service_pb2", "MutateAccountLinkResult": "google.ads.google_ads.v6.proto.services.account_link_service_pb2", "MutateAdGroupAdLabelResult": "google.ads.google_ads.v6.proto.services.ad_group_ad_label_service_pb2", "MutateAdGroupAdLabelsRequest": "google.ads.google_ads.v6.proto.services.ad_group_ad_label_service_pb2", "MutateAdGroupAdLabelsResponse": "google.ads.google_ads.v6.proto.services.ad_group_ad_label_service_pb2", "MutateAdGroupAdResult": "google.ads.google_ads.v6.proto.services.ad_group_ad_service_pb2", "MutateAdGroupAdsRequest": "google.ads.google_ads.v6.proto.services.ad_group_ad_service_pb2", "MutateAdGroupAdsResponse": "google.ads.google_ads.v6.proto.services.ad_group_ad_service_pb2", "MutateAdGroupBidModifierResult": "google.ads.google_ads.v6.proto.services.ad_group_bid_modifier_service_pb2", "MutateAdGroupBidModifiersRequest": "google.ads.google_ads.v6.proto.services.ad_group_bid_modifier_service_pb2", "MutateAdGroupBidModifiersResponse": "google.ads.google_ads.v6.proto.services.ad_group_bid_modifier_service_pb2", "MutateAdGroupCriteriaRequest": "google.ads.google_ads.v6.proto.services.ad_group_criterion_service_pb2", "MutateAdGroupCriteriaResponse": "google.ads.google_ads.v6.proto.services.ad_group_criterion_service_pb2", "MutateAdGroupCriterionLabelResult": "google.ads.google_ads.v6.proto.services.ad_group_criterion_label_service_pb2", "MutateAdGroupCriterionLabelsRequest": "google.ads.google_ads.v6.proto.services.ad_group_criterion_label_service_pb2", "MutateAdGroupCriterionLabelsResponse": "google.ads.google_ads.v6.proto.services.ad_group_criterion_label_service_pb2", "MutateAdGroupCriterionResult": "google.ads.google_ads.v6.proto.services.ad_group_criterion_service_pb2", "MutateAdGroupExtensionSettingResult": "google.ads.google_ads.v6.proto.services.ad_group_extension_setting_service_pb2", "MutateAdGroupExtensionSettingsRequest": "google.ads.google_ads.v6.proto.services.ad_group_extension_setting_service_pb2", "MutateAdGroupExtensionSettingsResponse": "google.ads.google_ads.v6.proto.services.ad_group_extension_setting_service_pb2", "MutateAdGroupFeedResult": "google.ads.google_ads.v6.proto.services.ad_group_feed_service_pb2", "MutateAdGroupFeedsRequest": "google.ads.google_ads.v6.proto.services.ad_group_feed_service_pb2", "MutateAdGroupFeedsResponse": "google.ads.google_ads.v6.proto.services.ad_group_feed_service_pb2", "MutateAdGroupLabelResult": "google.ads.google_ads.v6.proto.services.ad_group_label_service_pb2", "MutateAdGroupLabelsRequest": "google.ads.google_ads.v6.proto.services.ad_group_label_service_pb2", "MutateAdGroupLabelsResponse": "google.ads.google_ads.v6.proto.services.ad_group_label_service_pb2", "MutateAdGroupResult": "google.ads.google_ads.v6.proto.services.ad_group_service_pb2", "MutateAdGroupsRequest": "google.ads.google_ads.v6.proto.services.ad_group_service_pb2", "MutateAdGroupsResponse": "google.ads.google_ads.v6.proto.services.ad_group_service_pb2", "MutateAdParameterResult": "google.ads.google_ads.v6.proto.services.ad_parameter_service_pb2", "MutateAdParametersRequest": "google.ads.google_ads.v6.proto.services.ad_parameter_service_pb2", "MutateAdParametersResponse": "google.ads.google_ads.v6.proto.services.ad_parameter_service_pb2", "MutateAdResult": "google.ads.google_ads.v6.proto.services.ad_service_pb2", "MutateAdsRequest": "google.ads.google_ads.v6.proto.services.ad_service_pb2", "MutateAdsResponse": "google.ads.google_ads.v6.proto.services.ad_service_pb2", "MutateAssetResult": "google.ads.google_ads.v6.proto.services.asset_service_pb2", "MutateAssetsRequest": "google.ads.google_ads.v6.proto.services.asset_service_pb2", "MutateAssetsResponse": "google.ads.google_ads.v6.proto.services.asset_service_pb2", "MutateBatchJobRequest": "google.ads.google_ads.v6.proto.services.batch_job_service_pb2", "MutateBatchJobResponse": "google.ads.google_ads.v6.proto.services.batch_job_service_pb2", "MutateBatchJobResult": "google.ads.google_ads.v6.proto.services.batch_job_service_pb2", "MutateBiddingStrategiesRequest": "google.ads.google_ads.v6.proto.services.bidding_strategy_service_pb2", "MutateBiddingStrategiesResponse": "google.ads.google_ads.v6.proto.services.bidding_strategy_service_pb2", "MutateBiddingStrategyResult": "google.ads.google_ads.v6.proto.services.bidding_strategy_service_pb2", "MutateBillingSetupRequest": "google.ads.google_ads.v6.proto.services.billing_setup_service_pb2", "MutateBillingSetupResponse": "google.ads.google_ads.v6.proto.services.billing_setup_service_pb2", "MutateBillingSetupResult": "google.ads.google_ads.v6.proto.services.billing_setup_service_pb2", "MutateCampaignAssetResult": "google.ads.google_ads.v6.proto.services.campaign_asset_service_pb2", "MutateCampaignAssetsRequest": "google.ads.google_ads.v6.proto.services.campaign_asset_service_pb2", "MutateCampaignAssetsResponse": "google.ads.google_ads.v6.proto.services.campaign_asset_service_pb2", "MutateCampaignBidModifierResult": "google.ads.google_ads.v6.proto.services.campaign_bid_modifier_service_pb2", "MutateCampaignBidModifiersRequest": "google.ads.google_ads.v6.proto.services.campaign_bid_modifier_service_pb2", "MutateCampaignBidModifiersResponse": "google.ads.google_ads.v6.proto.services.campaign_bid_modifier_service_pb2", "MutateCampaignBudgetResult": "google.ads.google_ads.v6.proto.services.campaign_budget_service_pb2", "MutateCampaignBudgetsRequest": "google.ads.google_ads.v6.proto.services.campaign_budget_service_pb2", "MutateCampaignBudgetsResponse": "google.ads.google_ads.v6.proto.services.campaign_budget_service_pb2", "MutateCampaignCriteriaRequest": "google.ads.google_ads.v6.proto.services.campaign_criterion_service_pb2", "MutateCampaignCriteriaResponse": "google.ads.google_ads.v6.proto.services.campaign_criterion_service_pb2", "MutateCampaignCriterionResult": "google.ads.google_ads.v6.proto.services.campaign_criterion_service_pb2", "MutateCampaignDraftResult": "google.ads.google_ads.v6.proto.services.campaign_draft_service_pb2", "MutateCampaignDraftsRequest": "google.ads.google_ads.v6.proto.services.campaign_draft_service_pb2", "MutateCampaignDraftsResponse": "google.ads.google_ads.v6.proto.services.campaign_draft_service_pb2", "MutateCampaignExperimentResult": "google.ads.google_ads.v6.proto.services.campaign_experiment_service_pb2", "MutateCampaignExperimentsRequest": "google.ads.google_ads.v6.proto.services.campaign_experiment_service_pb2", "MutateCampaignExperimentsResponse": "google.ads.google_ads.v6.proto.services.campaign_experiment_service_pb2", "MutateCampaignExtensionSettingResult": "google.ads.google_ads.v6.proto.services.campaign_extension_setting_service_pb2", "MutateCampaignExtensionSettingsRequest": "google.ads.google_ads.v6.proto.services.campaign_extension_setting_service_pb2", "MutateCampaignExtensionSettingsResponse": "google.ads.google_ads.v6.proto.services.campaign_extension_setting_service_pb2", "MutateCampaignFeedResult": "google.ads.google_ads.v6.proto.services.campaign_feed_service_pb2", "MutateCampaignFeedsRequest": "google.ads.google_ads.v6.proto.services.campaign_feed_service_pb2", "MutateCampaignFeedsResponse": "google.ads.google_ads.v6.proto.services.campaign_feed_service_pb2", "MutateCampaignLabelResult": "google.ads.google_ads.v6.proto.services.campaign_label_service_pb2", "MutateCampaignLabelsRequest": "google.ads.google_ads.v6.proto.services.campaign_label_service_pb2", "MutateCampaignLabelsResponse": "google.ads.google_ads.v6.proto.services.campaign_label_service_pb2", "MutateCampaignResult": "google.ads.google_ads.v6.proto.services.campaign_service_pb2", "MutateCampaignSharedSetResult": "google.ads.google_ads.v6.proto.services.campaign_shared_set_service_pb2", "MutateCampaignSharedSetsRequest": "google.ads.google_ads.v6.proto.services.campaign_shared_set_service_pb2", "MutateCampaignSharedSetsResponse": "google.ads.google_ads.v6.proto.services.campaign_shared_set_service_pb2", "MutateCampaignsRequest": "google.ads.google_ads.v6.proto.services.campaign_service_pb2", "MutateCampaignsResponse": "google.ads.google_ads.v6.proto.services.campaign_service_pb2", "MutateConversionActionResult": "google.ads.google_ads.v6.proto.services.conversion_action_service_pb2", "MutateConversionActionsRequest": "google.ads.google_ads.v6.proto.services.conversion_action_service_pb2", "MutateConversionActionsResponse": "google.ads.google_ads.v6.proto.services.conversion_action_service_pb2", "MutateCustomAudienceResult": "google.ads.google_ads.v6.proto.services.custom_audience_service_pb2", "MutateCustomAudiencesRequest": "google.ads.google_ads.v6.proto.services.custom_audience_service_pb2", "MutateCustomAudiencesResponse": "google.ads.google_ads.v6.proto.services.custom_audience_service_pb2", "MutateCustomInterestResult": "google.ads.google_ads.v6.proto.services.custom_interest_service_pb2", "MutateCustomInterestsRequest": "google.ads.google_ads.v6.proto.services.custom_interest_service_pb2", "MutateCustomInterestsResponse": "google.ads.google_ads.v6.proto.services.custom_interest_service_pb2", "MutateCustomerClientLinkRequest": "google.ads.google_ads.v6.proto.services.customer_client_link_service_pb2", "MutateCustomerClientLinkResponse": "google.ads.google_ads.v6.proto.services.customer_client_link_service_pb2", "MutateCustomerClientLinkResult": "google.ads.google_ads.v6.proto.services.customer_client_link_service_pb2", "MutateCustomerExtensionSettingResult": "google.ads.google_ads.v6.proto.services.customer_extension_setting_service_pb2", "MutateCustomerExtensionSettingsRequest": "google.ads.google_ads.v6.proto.services.customer_extension_setting_service_pb2", "MutateCustomerExtensionSettingsResponse": "google.ads.google_ads.v6.proto.services.customer_extension_setting_service_pb2", "MutateCustomerFeedResult": "google.ads.google_ads.v6.proto.services.customer_feed_service_pb2", "MutateCustomerFeedsRequest": "google.ads.google_ads.v6.proto.services.customer_feed_service_pb2", "MutateCustomerFeedsResponse": "google.ads.google_ads.v6.proto.services.customer_feed_service_pb2", "MutateCustomerLabelResult": "google.ads.google_ads.v6.proto.services.customer_label_service_pb2", "MutateCustomerLabelsRequest": "google.ads.google_ads.v6.proto.services.customer_label_service_pb2", "MutateCustomerLabelsResponse": "google.ads.google_ads.v6.proto.services.customer_label_service_pb2", "MutateCustomerManagerLinkRequest": "google.ads.google_ads.v6.proto.services.customer_manager_link_service_pb2", "MutateCustomerManagerLinkResponse": "google.ads.google_ads.v6.proto.services.customer_manager_link_service_pb2", "MutateCustomerManagerLinkResult": "google.ads.google_ads.v6.proto.services.customer_manager_link_service_pb2", "MutateCustomerNegativeCriteriaRequest": "google.ads.google_ads.v6.proto.services.customer_negative_criterion_service_pb2", "MutateCustomerNegativeCriteriaResponse": "google.ads.google_ads.v6.proto.services.customer_negative_criterion_service_pb2", "MutateCustomerNegativeCriteriaResult": "google.ads.google_ads.v6.proto.services.customer_negative_criterion_service_pb2", "MutateCustomerRequest": "google.ads.google_ads.v6.proto.services.customer_service_pb2", "MutateCustomerResponse": "google.ads.google_ads.v6.proto.services.customer_service_pb2", "MutateCustomerResult": "google.ads.google_ads.v6.proto.services.customer_service_pb2", "MutateCustomerUserAccessRequest": "google.ads.google_ads.v6.proto.services.customer_user_access_service_pb2", "MutateCustomerUserAccessResponse": "google.ads.google_ads.v6.proto.services.customer_user_access_service_pb2", "MutateCustomerUserAccessResult": "google.ads.google_ads.v6.proto.services.customer_user_access_service_pb2", "MutateErrorEnum": "google.ads.google_ads.v6.proto.errors.mutate_error_pb2", "MutateExtensionFeedItemResult": "google.ads.google_ads.v6.proto.services.extension_feed_item_service_pb2", "MutateExtensionFeedItemsRequest": "google.ads.google_ads.v6.proto.services.extension_feed_item_service_pb2", "MutateExtensionFeedItemsResponse": "google.ads.google_ads.v6.proto.services.extension_feed_item_service_pb2", "MutateFeedItemResult": "google.ads.google_ads.v6.proto.services.feed_item_service_pb2", "MutateFeedItemSetLinkResult": "google.ads.google_ads.v6.proto.services.feed_item_set_link_service_pb2", "MutateFeedItemSetLinksRequest": "google.ads.google_ads.v6.proto.services.feed_item_set_link_service_pb2", "MutateFeedItemSetLinksResponse": "google.ads.google_ads.v6.proto.services.feed_item_set_link_service_pb2", "MutateFeedItemSetResult": "google.ads.google_ads.v6.proto.services.feed_item_set_service_pb2", "MutateFeedItemSetsRequest": "google.ads.google_ads.v6.proto.services.feed_item_set_service_pb2", "MutateFeedItemSetsResponse": "google.ads.google_ads.v6.proto.services.feed_item_set_service_pb2", "MutateFeedItemTargetResult": "google.ads.google_ads.v6.proto.services.feed_item_target_service_pb2", "MutateFeedItemTargetsRequest": "google.ads.google_ads.v6.proto.services.feed_item_target_service_pb2", "MutateFeedItemTargetsResponse": "google.ads.google_ads.v6.proto.services.feed_item_target_service_pb2", "MutateFeedItemsRequest": "google.ads.google_ads.v6.proto.services.feed_item_service_pb2", "MutateFeedItemsResponse": "google.ads.google_ads.v6.proto.services.feed_item_service_pb2", "MutateFeedMappingResult": "google.ads.google_ads.v6.proto.services.feed_mapping_service_pb2", "MutateFeedMappingsRequest": "google.ads.google_ads.v6.proto.services.feed_mapping_service_pb2", "MutateFeedMappingsResponse": "google.ads.google_ads.v6.proto.services.feed_mapping_service_pb2", "MutateFeedResult": "google.ads.google_ads.v6.proto.services.feed_service_pb2", "MutateFeedsRequest": "google.ads.google_ads.v6.proto.services.feed_service_pb2", "MutateFeedsResponse": "google.ads.google_ads.v6.proto.services.feed_service_pb2", "MutateGoogleAdsRequest": "google.ads.google_ads.v6.proto.services.google_ads_service_pb2", "MutateGoogleAdsResponse": "google.ads.google_ads.v6.proto.services.google_ads_service_pb2", "MutateKeywordPlanAdGroupKeywordResult": "google.ads.google_ads.v6.proto.services.keyword_plan_ad_group_keyword_service_pb2", "MutateKeywordPlanAdGroupKeywordsRequest": "google.ads.google_ads.v6.proto.services.keyword_plan_ad_group_keyword_service_pb2", "MutateKeywordPlanAdGroupKeywordsResponse": "google.ads.google_ads.v6.proto.services.keyword_plan_ad_group_keyword_service_pb2", "MutateKeywordPlanAdGroupResult": "google.ads.google_ads.v6.proto.services.keyword_plan_ad_group_service_pb2", "MutateKeywordPlanAdGroupsRequest": "google.ads.google_ads.v6.proto.services.keyword_plan_ad_group_service_pb2", "MutateKeywordPlanAdGroupsResponse": "google.ads.google_ads.v6.proto.services.keyword_plan_ad_group_service_pb2", "MutateKeywordPlanCampaignKeywordResult": "google.ads.google_ads.v6.proto.services.keyword_plan_campaign_keyword_service_pb2", "MutateKeywordPlanCampaignKeywordsRequest": "google.ads.google_ads.v6.proto.services.keyword_plan_campaign_keyword_service_pb2", "MutateKeywordPlanCampaignKeywordsResponse": "google.ads.google_ads.v6.proto.services.keyword_plan_campaign_keyword_service_pb2", "MutateKeywordPlanCampaignResult": "google.ads.google_ads.v6.proto.services.keyword_plan_campaign_service_pb2", "MutateKeywordPlanCampaignsRequest": "google.ads.google_ads.v6.proto.services.keyword_plan_campaign_service_pb2", "MutateKeywordPlanCampaignsResponse": "google.ads.google_ads.v6.proto.services.keyword_plan_campaign_service_pb2", "MutateKeywordPlansRequest": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "MutateKeywordPlansResponse": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "MutateKeywordPlansResult": "google.ads.google_ads.v6.proto.services.keyword_plan_service_pb2", "MutateLabelResult": "google.ads.google_ads.v6.proto.services.label_service_pb2", "MutateLabelsRequest": "google.ads.google_ads.v6.proto.services.label_service_pb2", "MutateLabelsResponse": "google.ads.google_ads.v6.proto.services.label_service_pb2", "MutateMediaFileResult": "google.ads.google_ads.v6.proto.services.media_file_service_pb2", "MutateMediaFilesRequest": "google.ads.google_ads.v6.proto.services.media_file_service_pb2", "MutateMediaFilesResponse": "google.ads.google_ads.v6.proto.services.media_file_service_pb2", "MutateMerchantCenterLinkRequest": "google.ads.google_ads.v6.proto.services.merchant_center_link_service_pb2", "MutateMerchantCenterLinkResponse": "google.ads.google_ads.v6.proto.services.merchant_center_link_service_pb2", "MutateMerchantCenterLinkResult": "google.ads.google_ads.v6.proto.services.merchant_center_link_service_pb2", "MutateOperation": "google.ads.google_ads.v6.proto.services.google_ads_service_pb2", "MutateOperationResponse": "google.ads.google_ads.v6.proto.services.google_ads_service_pb2", "MutateRemarketingActionResult": "google.ads.google_ads.v6.proto.services.remarketing_action_service_pb2", "MutateRemarketingActionsRequest": "google.ads.google_ads.v6.proto.services.remarketing_action_service_pb2", "MutateRemarketingActionsResponse": "google.ads.google_ads.v6.proto.services.remarketing_action_service_pb2", "MutateSharedCriteriaRequest": "google.ads.google_ads.v6.proto.services.shared_criterion_service_pb2", "MutateSharedCriteriaResponse": "google.ads.google_ads.v6.proto.services.shared_criterion_service_pb2", "MutateSharedCriterionResult": "google.ads.google_ads.v6.proto.services.shared_criterion_service_pb2", "MutateSharedSetResult": "google.ads.google_ads.v6.proto.services.shared_set_service_pb2", "MutateSharedSetsRequest": "google.ads.google_ads.v6.proto.services.shared_set_service_pb2", "MutateSharedSetsResponse": "google.ads.google_ads.v6.proto.services.shared_set_service_pb2", "MutateUserListResult": "google.ads.google_ads.v6.proto.services.user_list_service_pb2", "MutateUserListsRequest": "google.ads.google_ads.v6.proto.services.user_list_service_pb2", "MutateUserListsResponse": "google.ads.google_ads.v6.proto.services.user_list_service_pb2", "NegativeGeoTargetTypeEnum": "google.ads.google_ads.v6.proto.enums.negative_geo_target_type_pb2", "NewResourceCreationErrorEnum": "google.ads.google_ads.v6.proto.errors.new_resource_creation_error_pb2", "NotAllowlistedErrorEnum": "google.ads.google_ads.v6.proto.errors.not_allowlisted_error_pb2", "NotEmptyErrorEnum": "google.ads.google_ads.v6.proto.errors.not_empty_error_pb2", "NullErrorEnum": "google.ads.google_ads.v6.proto.errors.null_error_pb2", "OfflineUserAddressInfo": "google.ads.google_ads.v6.proto.common.offline_user_data_pb2", "OfflineUserDataJob": "google.ads.google_ads.v6.proto.resources.offline_user_data_job_pb2", "OfflineUserDataJobErrorEnum": "google.ads.google_ads.v6.proto.errors.offline_user_data_job_error_pb2", "OfflineUserDataJobFailureReasonEnum": "google.ads.google_ads.v6.proto.enums.offline_user_data_job_failure_reason_pb2", "OfflineUserDataJobOperation": "google.ads.google_ads.v6.proto.services.offline_user_data_job_service_pb2", "OfflineUserDataJobStatusEnum": "google.ads.google_ads.v6.proto.enums.offline_user_data_job_status_pb2", "OfflineUserDataJobTypeEnum": "google.ads.google_ads.v6.proto.enums.offline_user_data_job_type_pb2", "OnTargetAudienceMetrics": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "Operand": "google.ads.google_ads.v6.proto.common.matching_function_pb2", "OperatingSystemVersionConstant": "google.ads.google_ads.v6.proto.resources.operating_system_version_constant_pb2", "OperatingSystemVersionInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "OperatingSystemVersionOperatorTypeEnum": "google.ads.google_ads.v6.proto.enums.operating_system_version_operator_type_pb2", "OperationAccessDeniedErrorEnum": "google.ads.google_ads.v6.proto.errors.operation_access_denied_error_pb2", "OperatorErrorEnum": "google.ads.google_ads.v6.proto.errors.operator_error_pb2", "OptimizationGoalTypeEnum": "google.ads.google_ads.v6.proto.enums.optimization_goal_type_pb2", "PaidOrganicSearchTermView": "google.ads.google_ads.v6.proto.resources.paid_organic_search_term_view_pb2", "ParentalStatusInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "ParentalStatusTypeEnum": "google.ads.google_ads.v6.proto.enums.parental_status_type_pb2", "ParentalStatusView": "google.ads.google_ads.v6.proto.resources.parental_status_view_pb2", "PartialFailureErrorEnum": "google.ads.google_ads.v6.proto.errors.partial_failure_error_pb2", "PaymentModeEnum": "google.ads.google_ads.v6.proto.enums.payment_mode_pb2", "PaymentsAccount": "google.ads.google_ads.v6.proto.resources.payments_account_pb2", "PaymentsAccountErrorEnum": "google.ads.google_ads.v6.proto.errors.payments_account_error_pb2", "PercentCpc": "google.ads.google_ads.v6.proto.common.bidding_pb2", "PercentCpcBidSimulationPoint": "google.ads.google_ads.v6.proto.common.simulation_pb2", "PercentCpcBidSimulationPointList": "google.ads.google_ads.v6.proto.common.simulation_pb2", "PlaceholderTypeEnum": "google.ads.google_ads.v6.proto.enums.placeholder_type_pb2", "PlacementInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "PlacementTypeEnum": "google.ads.google_ads.v6.proto.enums.placement_type_pb2", "PlannableLocation": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "PlannableTargeting": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "PlannedProduct": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "PlannedProductForecast": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "PlannedProductReachForecast": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "PolicyApprovalStatusEnum": "google.ads.google_ads.v6.proto.enums.policy_approval_status_pb2", "PolicyFindingDetails": "google.ads.google_ads.v6.proto.errors.errors_pb2", "PolicyFindingErrorEnum": "google.ads.google_ads.v6.proto.errors.policy_finding_error_pb2", "PolicyReviewStatusEnum": "google.ads.google_ads.v6.proto.enums.policy_review_status_pb2", "PolicyTopicConstraint": "google.ads.google_ads.v6.proto.common.policy_pb2", "PolicyTopicEntry": "google.ads.google_ads.v6.proto.common.policy_pb2", "PolicyTopicEntryTypeEnum": "google.ads.google_ads.v6.proto.enums.policy_topic_entry_type_pb2", "PolicyTopicEvidence": "google.ads.google_ads.v6.proto.common.policy_pb2", "PolicyTopicEvidenceDestinationMismatchUrlTypeEnum": "google.ads.google_ads.v6.proto.enums.policy_topic_evidence_destination_mismatch_url_type_pb2", "PolicyTopicEvidenceDestinationNotWorkingDeviceEnum": "google.ads.google_ads.v6.proto.enums.policy_topic_evidence_destination_not_working_device_pb2", "PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum": "google.ads.google_ads.v6.proto.enums.policy_topic_evidence_destination_not_working_dns_error_type_pb2", "PolicyValidationParameter": "google.ads.google_ads.v6.proto.common.policy_pb2", "PolicyValidationParameterErrorEnum": "google.ads.google_ads.v6.proto.errors.policy_validation_parameter_error_pb2", "PolicyViolationDetails": "google.ads.google_ads.v6.proto.errors.errors_pb2", "PolicyViolationErrorEnum": "google.ads.google_ads.v6.proto.errors.policy_violation_error_pb2", "PolicyViolationKey": "google.ads.google_ads.v6.proto.common.policy_pb2", "PositiveGeoTargetTypeEnum": "google.ads.google_ads.v6.proto.enums.positive_geo_target_type_pb2", "Preferences": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "PreferredContentInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "PreferredContentTypeEnum": "google.ads.google_ads.v6.proto.enums.preferred_content_type_pb2", "PriceExtensionPriceQualifierEnum": "google.ads.google_ads.v6.proto.enums.price_extension_price_qualifier_pb2", "PriceExtensionPriceUnitEnum": "google.ads.google_ads.v6.proto.enums.price_extension_price_unit_pb2", "PriceExtensionTypeEnum": "google.ads.google_ads.v6.proto.enums.price_extension_type_pb2", "PriceFeedItem": "google.ads.google_ads.v6.proto.common.extensions_pb2", "PriceOffer": "google.ads.google_ads.v6.proto.common.extensions_pb2", "PricePlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.price_placeholder_field_pb2", "ProductAllocation": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "ProductBiddingCategoryConstant": "google.ads.google_ads.v6.proto.resources.product_bidding_category_constant_pb2", "ProductBiddingCategoryInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "ProductBiddingCategoryLevelEnum": "google.ads.google_ads.v6.proto.enums.product_bidding_category_level_pb2", "ProductBiddingCategoryStatusEnum": "google.ads.google_ads.v6.proto.enums.product_bidding_category_status_pb2", "ProductBrandInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "ProductChannelEnum": "google.ads.google_ads.v6.proto.enums.product_channel_pb2", "ProductChannelExclusivityEnum": "google.ads.google_ads.v6.proto.enums.product_channel_exclusivity_pb2", "ProductChannelExclusivityInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "ProductChannelInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "ProductConditionEnum": "google.ads.google_ads.v6.proto.enums.product_condition_pb2", "ProductConditionInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "ProductCustomAttributeIndexEnum": "google.ads.google_ads.v6.proto.enums.product_custom_attribute_index_pb2", "ProductCustomAttributeInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "ProductGroupView": "google.ads.google_ads.v6.proto.resources.product_group_view_pb2", "ProductImage": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "ProductItemIdInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "ProductMetadata": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "ProductTypeInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "ProductTypeLevelEnum": "google.ads.google_ads.v6.proto.enums.product_type_level_pb2", "ProductVideo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "PromoteCampaignDraftRequest": "google.ads.google_ads.v6.proto.services.campaign_draft_service_pb2", "PromoteCampaignExperimentRequest": "google.ads.google_ads.v6.proto.services.campaign_experiment_service_pb2", "PromotionExtensionDiscountModifierEnum": "google.ads.google_ads.v6.proto.enums.promotion_extension_discount_modifier_pb2", "PromotionExtensionOccasionEnum": "google.ads.google_ads.v6.proto.enums.promotion_extension_occasion_pb2", "PromotionFeedItem": "google.ads.google_ads.v6.proto.common.extensions_pb2", "PromotionPlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.promotion_placeholder_field_pb2", "ProximityInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "ProximityRadiusUnitsEnum": "google.ads.google_ads.v6.proto.enums.proximity_radius_units_pb2", "QualityScoreBucketEnum": "google.ads.google_ads.v6.proto.enums.quality_score_bucket_pb2", "QueryErrorEnum": "google.ads.google_ads.v6.proto.errors.query_error_pb2", "QuotaErrorDetails": "google.ads.google_ads.v6.proto.errors.errors_pb2", "QuotaErrorEnum": "google.ads.google_ads.v6.proto.errors.quota_error_pb2", "RangeErrorEnum": "google.ads.google_ads.v6.proto.errors.range_error_pb2", "ReachCurve": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "ReachForecast": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "ReachPlanAdLengthEnum": "google.ads.google_ads.v6.proto.enums.reach_plan_ad_length_pb2", "ReachPlanAgeRangeEnum": "google.ads.google_ads.v6.proto.enums.reach_plan_age_range_pb2", "ReachPlanErrorEnum": "google.ads.google_ads.v6.proto.errors.reach_plan_error_pb2", "ReachPlanNetworkEnum": "google.ads.google_ads.v6.proto.enums.reach_plan_network_pb2", "RealEstatePlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.real_estate_placeholder_field_pb2", "RealTimeBiddingSetting": "google.ads.google_ads.v6.proto.common.real_time_bidding_setting_pb2", "Recommendation": "google.ads.google_ads.v6.proto.resources.recommendation_pb2", "RecommendationErrorEnum": "google.ads.google_ads.v6.proto.errors.recommendation_error_pb2", "RecommendationTypeEnum": "google.ads.google_ads.v6.proto.enums.recommendation_type_pb2", "RegenerateShareableLinkIdRequest": "google.ads.google_ads.v6.proto.services.third_party_app_analytics_link_service_pb2", "RegenerateShareableLinkIdResponse": "google.ads.google_ads.v6.proto.services.third_party_app_analytics_link_service_pb2", "RegionCodeErrorEnum": "google.ads.google_ads.v6.proto.errors.region_code_error_pb2", "RemarketingAction": "google.ads.google_ads.v6.proto.resources.remarketing_action_pb2", "RemarketingActionOperation": "google.ads.google_ads.v6.proto.services.remarketing_action_service_pb2", "RemarketingSetting": "google.ads.google_ads.v6.proto.resources.customer_pb2", "RequestErrorEnum": "google.ads.google_ads.v6.proto.errors.request_error_pb2", "ResourceAccessDeniedErrorEnum": "google.ads.google_ads.v6.proto.errors.resource_access_denied_error_pb2", "ResourceChangeOperationEnum": "google.ads.google_ads.v6.proto.enums.resource_change_operation_pb2", "ResourceCountLimitExceededErrorEnum": "google.ads.google_ads.v6.proto.errors.resource_count_limit_exceeded_error_pb2", "ResponseContentTypeEnum": "google.ads.google_ads.v6.proto.enums.response_content_type_pb2", "ResponsiveDisplayAdControlSpec": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "ResponsiveDisplayAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "ResponsiveSearchAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "RestatementValue": "google.ads.google_ads.v6.proto.services.conversion_adjustment_upload_service_pb2", "RuleBasedUserListInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "RunBatchJobRequest": "google.ads.google_ads.v6.proto.services.batch_job_service_pb2", "RunOfflineUserDataJobRequest": "google.ads.google_ads.v6.proto.services.offline_user_data_job_service_pb2", "SearchEngineResultsPageTypeEnum": "google.ads.google_ads.v6.proto.enums.search_engine_results_page_type_pb2", "SearchGoogleAdsFieldsRequest": "google.ads.google_ads.v6.proto.services.google_ads_field_service_pb2", "SearchGoogleAdsFieldsResponse": "google.ads.google_ads.v6.proto.services.google_ads_field_service_pb2", "SearchGoogleAdsRequest": "google.ads.google_ads.v6.proto.services.google_ads_service_pb2", "SearchGoogleAdsResponse": "google.ads.google_ads.v6.proto.services.google_ads_service_pb2", "SearchGoogleAdsStreamRequest": "google.ads.google_ads.v6.proto.services.google_ads_service_pb2", "SearchGoogleAdsStreamResponse": "google.ads.google_ads.v6.proto.services.google_ads_service_pb2", "SearchTermMatchTypeEnum": "google.ads.google_ads.v6.proto.enums.search_term_match_type_pb2", "SearchTermTargetingStatusEnum": "google.ads.google_ads.v6.proto.enums.search_term_targeting_status_pb2", "SearchTermView": "google.ads.google_ads.v6.proto.resources.search_term_view_pb2", "Segments": "google.ads.google_ads.v6.proto.common.segments_pb2", "ServedAssetFieldTypeEnum": "google.ads.google_ads.v6.proto.enums.served_asset_field_type_pb2", "SettingErrorEnum": "google.ads.google_ads.v6.proto.errors.setting_error_pb2", "SharedCriterion": "google.ads.google_ads.v6.proto.resources.shared_criterion_pb2", "SharedCriterionErrorEnum": "google.ads.google_ads.v6.proto.errors.shared_criterion_error_pb2", "SharedCriterionOperation": "google.ads.google_ads.v6.proto.services.shared_criterion_service_pb2", "SharedSet": "google.ads.google_ads.v6.proto.resources.shared_set_pb2", "SharedSetErrorEnum": "google.ads.google_ads.v6.proto.errors.shared_set_error_pb2", "SharedSetOperation": "google.ads.google_ads.v6.proto.services.shared_set_service_pb2", "SharedSetStatusEnum": "google.ads.google_ads.v6.proto.enums.shared_set_status_pb2", "SharedSetTypeEnum": "google.ads.google_ads.v6.proto.enums.shared_set_type_pb2", "ShoppingComparisonListingAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "ShoppingPerformanceView": "google.ads.google_ads.v6.proto.resources.shopping_performance_view_pb2", "ShoppingProductAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "ShoppingSmartAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "SimilarUserListInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "SimulationModificationMethodEnum": "google.ads.google_ads.v6.proto.enums.simulation_modification_method_pb2", "SimulationTypeEnum": "google.ads.google_ads.v6.proto.enums.simulation_type_pb2", "SiteSeed": "google.ads.google_ads.v6.proto.services.keyword_plan_idea_service_pb2", "SitelinkFeedItem": "google.ads.google_ads.v6.proto.common.extensions_pb2", "SitelinkPlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.sitelink_placeholder_field_pb2", "SizeLimitErrorEnum": "google.ads.google_ads.v6.proto.errors.size_limit_error_pb2", "SlotEnum": "google.ads.google_ads.v6.proto.enums.slot_pb2", "SpendingLimitTypeEnum": "google.ads.google_ads.v6.proto.enums.spending_limit_type_pb2", "StoreAttribute": "google.ads.google_ads.v6.proto.common.offline_user_data_pb2", "StoreSalesMetadata": "google.ads.google_ads.v6.proto.common.offline_user_data_pb2", "StoreSalesThirdPartyMetadata": "google.ads.google_ads.v6.proto.common.offline_user_data_pb2", "StringFormatErrorEnum": "google.ads.google_ads.v6.proto.errors.string_format_error_pb2", "StringLengthErrorEnum": "google.ads.google_ads.v6.proto.errors.string_length_error_pb2", "StructuredSnippetFeedItem": "google.ads.google_ads.v6.proto.common.extensions_pb2", "StructuredSnippetPlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.structured_snippet_placeholder_field_pb2", "SuggestGeoTargetConstantsRequest": "google.ads.google_ads.v6.proto.services.geo_target_constant_service_pb2", "SuggestGeoTargetConstantsResponse": "google.ads.google_ads.v6.proto.services.geo_target_constant_service_pb2", "SummaryRowSettingEnum": "google.ads.google_ads.v6.proto.enums.summary_row_setting_pb2", "SystemManagedResourceSourceEnum": "google.ads.google_ads.v6.proto.enums.system_managed_entity_source_pb2", "TagSnippet": "google.ads.google_ads.v6.proto.common.tag_snippet_pb2", "TargetCpa": "google.ads.google_ads.v6.proto.common.bidding_pb2", "TargetCpaOptInRecommendationGoalEnum": "google.ads.google_ads.v6.proto.enums.target_cpa_opt_in_recommendation_goal_pb2", "TargetCpaSimulationPoint": "google.ads.google_ads.v6.proto.common.simulation_pb2", "TargetCpaSimulationPointList": "google.ads.google_ads.v6.proto.common.simulation_pb2", "TargetCpm": "google.ads.google_ads.v6.proto.common.bidding_pb2", "TargetImpressionShare": "google.ads.google_ads.v6.proto.common.bidding_pb2", "TargetImpressionShareLocationEnum": "google.ads.google_ads.v6.proto.enums.target_impression_share_location_pb2", "TargetRestriction": "google.ads.google_ads.v6.proto.common.targeting_setting_pb2", "TargetRestrictionOperation": "google.ads.google_ads.v6.proto.common.targeting_setting_pb2", "TargetRoas": "google.ads.google_ads.v6.proto.common.bidding_pb2", "TargetRoasSimulationPoint": "google.ads.google_ads.v6.proto.common.simulation_pb2", "TargetRoasSimulationPointList": "google.ads.google_ads.v6.proto.common.simulation_pb2", "TargetSpend": "google.ads.google_ads.v6.proto.common.bidding_pb2", "Targeting": "google.ads.google_ads.v6.proto.services.reach_plan_service_pb2", "TargetingDimensionEnum": "google.ads.google_ads.v6.proto.enums.targeting_dimension_pb2", "TargetingSetting": "google.ads.google_ads.v6.proto.common.targeting_setting_pb2", "TextAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "TextAsset": "google.ads.google_ads.v6.proto.common.asset_types_pb2", "TextLabel": "google.ads.google_ads.v6.proto.common.text_label_pb2", "TextMessageFeedItem": "google.ads.google_ads.v6.proto.common.extensions_pb2", "ThirdPartyAppAnalyticsLink": "google.ads.google_ads.v6.proto.resources.third_party_app_analytics_link_pb2", "ThirdPartyAppAnalyticsLinkErrorEnum": "google.ads.google_ads.v6.proto.errors.third_party_app_analytics_link_error_pb2", "ThirdPartyAppAnalyticsLinkIdentifier": "google.ads.google_ads.v6.proto.resources.account_link_pb2", "TimeTypeEnum": "google.ads.google_ads.v6.proto.enums.time_type_pb2", "TimeZoneErrorEnum": "google.ads.google_ads.v6.proto.errors.time_zone_error_pb2", "TopicConstant": "google.ads.google_ads.v6.proto.resources.topic_constant_pb2", "TopicInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "TopicView": "google.ads.google_ads.v6.proto.resources.topic_view_pb2", "TrackingCodePageFormatEnum": "google.ads.google_ads.v6.proto.enums.tracking_code_page_format_pb2", "TrackingCodeTypeEnum": "google.ads.google_ads.v6.proto.enums.tracking_code_type_pb2", "TransactionAttribute": "google.ads.google_ads.v6.proto.common.offline_user_data_pb2", "TravelPlaceholderFieldEnum": "google.ads.google_ads.v6.proto.enums.travel_placeholder_field_pb2", "UnknownListingDimensionInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "UploadCallConversionsRequest": "google.ads.google_ads.v6.proto.services.conversion_upload_service_pb2", "UploadCallConversionsResponse": "google.ads.google_ads.v6.proto.services.conversion_upload_service_pb2", "UploadClickConversionsRequest": "google.ads.google_ads.v6.proto.services.conversion_upload_service_pb2", "UploadClickConversionsResponse": "google.ads.google_ads.v6.proto.services.conversion_upload_service_pb2", "UploadConversionAdjustmentsRequest": "google.ads.google_ads.v6.proto.services.conversion_adjustment_upload_service_pb2", "UploadConversionAdjustmentsResponse": "google.ads.google_ads.v6.proto.services.conversion_adjustment_upload_service_pb2", "UploadUserDataRequest": "google.ads.google_ads.v6.proto.services.user_data_service_pb2", "UploadUserDataResponse": "google.ads.google_ads.v6.proto.services.user_data_service_pb2", "UrlCollection": "google.ads.google_ads.v6.proto.common.url_collection_pb2", "UrlFieldErrorEnum": "google.ads.google_ads.v6.proto.errors.url_field_error_pb2", "UrlSeed": "google.ads.google_ads.v6.proto.services.keyword_plan_idea_service_pb2", "UserAttribute": "google.ads.google_ads.v6.proto.common.offline_user_data_pb2", "UserData": "google.ads.google_ads.v6.proto.common.offline_user_data_pb2", "UserDataErrorEnum": "google.ads.google_ads.v6.proto.errors.user_data_error_pb2", "UserDataOperation": "google.ads.google_ads.v6.proto.services.user_data_service_pb2", "UserIdentifier": "google.ads.google_ads.v6.proto.common.offline_user_data_pb2", "UserIdentifierSourceEnum": "google.ads.google_ads.v6.proto.enums.user_identifier_source_pb2", "UserInterest": "google.ads.google_ads.v6.proto.resources.user_interest_pb2", "UserInterestInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "UserInterestTaxonomyTypeEnum": "google.ads.google_ads.v6.proto.enums.user_interest_taxonomy_type_pb2", "UserList": "google.ads.google_ads.v6.proto.resources.user_list_pb2", "UserListAccessStatusEnum": "google.ads.google_ads.v6.proto.enums.user_list_access_status_pb2", "UserListActionInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "UserListClosingReasonEnum": "google.ads.google_ads.v6.proto.enums.user_list_closing_reason_pb2", "UserListCombinedRuleOperatorEnum": "google.ads.google_ads.v6.proto.enums.user_list_combined_rule_operator_pb2", "UserListCrmDataSourceTypeEnum": "google.ads.google_ads.v6.proto.enums.user_list_crm_data_source_type_pb2", "UserListDateRuleItemInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "UserListDateRuleItemOperatorEnum": "google.ads.google_ads.v6.proto.enums.user_list_date_rule_item_operator_pb2", "UserListErrorEnum": "google.ads.google_ads.v6.proto.errors.user_list_error_pb2", "UserListInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "UserListLogicalRuleInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "UserListLogicalRuleOperatorEnum": "google.ads.google_ads.v6.proto.enums.user_list_logical_rule_operator_pb2", "UserListMembershipStatusEnum": "google.ads.google_ads.v6.proto.enums.user_list_membership_status_pb2", "UserListNumberRuleItemInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "UserListNumberRuleItemOperatorEnum": "google.ads.google_ads.v6.proto.enums.user_list_number_rule_item_operator_pb2", "UserListOperation": "google.ads.google_ads.v6.proto.services.user_list_service_pb2", "UserListPrepopulationStatusEnum": "google.ads.google_ads.v6.proto.enums.user_list_prepopulation_status_pb2", "UserListRuleInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "UserListRuleItemGroupInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "UserListRuleItemInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "UserListRuleTypeEnum": "google.ads.google_ads.v6.proto.enums.user_list_rule_type_pb2", "UserListSizeRangeEnum": "google.ads.google_ads.v6.proto.enums.user_list_size_range_pb2", "UserListStringRuleItemInfo": "google.ads.google_ads.v6.proto.common.user_lists_pb2", "UserListStringRuleItemOperatorEnum": "google.ads.google_ads.v6.proto.enums.user_list_string_rule_item_operator_pb2", "UserListTypeEnum": "google.ads.google_ads.v6.proto.enums.user_list_type_pb2", "UserLocationView": "google.ads.google_ads.v6.proto.resources.user_location_view_pb2", "Value": "google.ads.google_ads.v6.proto.common.value_pb2", "VanityPharmaDisplayUrlModeEnum": "google.ads.google_ads.v6.proto.enums.vanity_pharma_display_url_mode_pb2", "VanityPharmaTextEnum": "google.ads.google_ads.v6.proto.enums.vanity_pharma_text_pb2", "Video": "google.ads.google_ads.v6.proto.resources.video_pb2", "VideoAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "VideoBumperInStreamAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "VideoNonSkippableInStreamAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "VideoOutstreamAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "VideoResponsiveAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "VideoTrueViewDiscoveryAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "VideoTrueViewInStreamAdInfo": "google.ads.google_ads.v6.proto.common.ad_type_infos_pb2", "WebhookDelivery": "google.ads.google_ads.v6.proto.common.asset_types_pb2", "WebpageConditionInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "WebpageConditionOperandEnum": "google.ads.google_ads.v6.proto.enums.webpage_condition_operand_pb2", "WebpageConditionOperatorEnum": "google.ads.google_ads.v6.proto.enums.webpage_condition_operator_pb2", "WebpageInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "YouTubeChannelInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "YouTubeVideoInfo": "google.ads.google_ads.v6.proto.common.criteria_pb2", "YoutubeVideoAsset": "google.ads.google_ads.v6.proto.common.asset_types_pb2", "YoutubeVideoRegistrationErrorEnum": "google.ads.google_ads.v6.proto.errors.youtube_video_registration_error_pb2", } DEPENDENT_MODULE_LIST = [ "google.longrunning.operations_pb2", "google.protobuf.any_pb2", "google.protobuf.empty_pb2", "google.protobuf.field_mask_pb2", "google.protobuf.wrappers_pb2", "google.rpc.status_pb2", ] def _get_class_from_module(module_name): module = importlib.import_module(module_name) for class_name in get_messages(module).keys(): # from inspect module yield class_name def _populate_dependent_classes(module_list=DEPENDENT_MODULE_LIST): class_list = {} for module_name in module_list: for cls in _get_class_from_module(module_name): class_list[cls] = module_name return class_list _lazy_dependent_class_to_package_map = _populate_dependent_classes() def _load_module(module_name): """Load a module by it's name. Args: module_name: a str of the name of a sub-module to load. Returns: A module class instance. Raises: AttributeError if the given module can't be found. """ try: if module_name in _lazy_name_to_package_map: module_path = ( f"{_lazy_name_to_package_map[module_name]}.{module_name}" ) else: module_path = module_name return importlib.import_module(module_path) except KeyError: raise AttributeError(f"unknown sub-module {module_name!r}.") def _get_module_by_name(module_name): """Get a module containing one or more message classes. For example: google.ads.google_ads.v2.proto.services.video_service_pb2. Args: module_name: a str of the name of a module. Returns: a module class instance. """ module = _load_module(module_name) globals()[module_name] = module for name, message in get_messages(module).items(): if name.endswith("_service_pb2"): message.__module__ = "google.ads.google_ads.v2.types" globals()[name] = message return module def _get_message_class_by_name(class_name): """Get a message class instance by name. For example: VideoService Args: module_name: a str of the name of a protobuf class to load. Returns: a protobuf message class definition that inherits from google.protobuf.pyext.cpp_message.GeneratedProtocolMessageType. """ if class_name in _lazy_dependent_class_to_package_map: module_path = _lazy_dependent_class_to_package_map[class_name] elif class_name in _lazy_class_to_package_map: module_path = _lazy_class_to_package_map[class_name] else: raise AttributeError(f"unknown sub-module {class_name!r}.") try: module = _load_module(module_path) message = getattr(module, class_name) except AttributeError: raise AttributeError(f"unknown message class {class_name!r}.") if class_name.endswith("Service"): message.__module__ = "google.ads.google_ads.v2.types" globals()[class_name] = message return message # Background on how this behaves: https://www.python.org/dev/peps/pep-0562/ def __getattr__(name): # Requires Python >= 3.7 """Lazily perform imports and class definitions on first demand.""" if name == "__all__": converted = ( util.convert_snake_case_to_upper_case(key) for key in chain( _lazy_name_to_package_map, _lazy_class_to_package_map, _lazy_dependent_class_to_package_map, ) ) all_names = sorted(converted) globals()["__all__"] = all_names return all_names elif name.endswith("_pb2"): return _get_module_by_name(name) elif name.endswith("Pb2"): module_name = f"{util.convert_upper_case_to_snake_case(name)}" return _get_module_by_name(module_name) else: return _get_message_class_by_name(name) def __dir__(): return globals().get("__all__") or __getattr__("__all__") if not sys.version_info >= (3, 7): from pep562 import Pep562 Pep562(__name__)
84.200811
168
0.799993
21,739
166,044
5.761811
0.076268
0.259245
0.21484
0.257808
0.768155
0.766071
0.763165
0.762423
0.761824
0.71076
0
0.023542
0.071632
166,044
1,971
169
84.243531
0.789017
0.008703
0
0.003712
0
0
0.851318
0.789382
0
0
0
0
0
1
0.003712
false
0
0.004772
0.00053
0.013256
0
0
0
0
null
1
1
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
ba0ca3c2d87dc9d393e6e83c1342777e3b38b2f6
3,790
py
Python
tests/integration/alignment/test_rename_fasta_entries_integration.py
yuzhenpeng/PhyKIT
167b9dfe0dd0bddd4b23492d9a3dc34e56debbd7
[ "MIT" ]
null
null
null
tests/integration/alignment/test_rename_fasta_entries_integration.py
yuzhenpeng/PhyKIT
167b9dfe0dd0bddd4b23492d9a3dc34e56debbd7
[ "MIT" ]
null
null
null
tests/integration/alignment/test_rename_fasta_entries_integration.py
yuzhenpeng/PhyKIT
167b9dfe0dd0bddd4b23492d9a3dc34e56debbd7
[ "MIT" ]
1
2021-07-30T01:39:30.000Z
2021-07-30T01:39:30.000Z
import pytest import sys from mock import patch, call from pathlib import Path from textwrap import dedent from phykit.phykit import Phykit here = Path(__file__) @pytest.mark.integration class TestRenameFastaEntries(object): @patch("builtins.print") def test_rename_fasta_entries(self, mocked_print): testargs = [ "phykit", "rename_fasta_entries", f"{here.parent.parent.parent}/sample_files/simple.fa", "-i", f"{here.parent.parent.parent}/sample_files/simple_fasta_idmap.txt", ] with patch.object(sys, "argv", testargs): Phykit() with open(f"{here.parent.parent}/expected/simple.fa.renamed.fa", "r") as expected_fa: expected_fa_content = expected_fa.read() with open(f"{here.parent.parent.parent}/sample_files/simple.fa.renamed.fa", "r") as out_renamed: out_renamed_content = out_renamed.read() assert expected_fa_content == out_renamed_content @patch("builtins.print") def test_rename_fasta_entries_outputting(self, mocked_print): testargs = [ "phykit", "rename_fasta_entries", f"{here.parent.parent.parent}/sample_files/simple.fa", "-i", f"{here.parent.parent.parent}/sample_files/simple_fasta_idmap.txt", "-o", f"{here.parent.parent.parent}/sample_files/simple_customized_output_name.fa" ] with patch.object(sys, "argv", testargs): Phykit() with open(f"{here.parent.parent}/expected/simple_customized_output_name.fa", "r") as expected_fa: expected_fa_content = expected_fa.read() with open(f"{here.parent.parent.parent}/sample_files/simple.fa.renamed.fa", "r") as out_renamed: out_renamed_content = out_renamed.read() assert expected_fa_content == out_renamed_content @patch("builtins.print") def test_rename_fasta_entries_alias(self, mocked_print): testargs = [ "phykit", "rename_fasta", f"{here.parent.parent.parent}/sample_files/simple.fa", "-i", f"{here.parent.parent.parent}/sample_files/simple_fasta_idmap.txt", ] with patch.object(sys, "argv", testargs): Phykit() with open(f"{here.parent.parent}/expected/simple.fa.renamed.fa", "r") as expected_fa: expected_fa_content = expected_fa.read() with open(f"{here.parent.parent.parent}/sample_files/simple.fa.renamed.fa", "r") as out_renamed: out_renamed_content = out_renamed.read() assert expected_fa_content == out_renamed_content @patch("builtins.print") def test_rename_fasta_entries_incorrect_input_alignment_file(self, mocked_print): testargs = [ "phykit", "rename_fasta_entries", f"{here.parent.parent.parent}/sample_files/simple.f", "-i", f"{here.parent.parent.parent}/sample_files/simple_fasta_idmap.txt", ] with pytest.raises(SystemExit) as pytest_wrapped_e: Phykit() assert pytest_wrapped_e.type == SystemExit assert pytest_wrapped_e.value.code == 2 @patch("builtins.print") def test_rename_fasta_entries_incorrect_input_idmap_file(self, mocked_print): testargs = [ "phykit", "rename_fasta_entries", f"{here.parent.parent.parent}/sample_files/simple.fa", "-i", f"{here.parent.parent.parent}/sample_files/simple_fasta_idmap.tx", ] with pytest.raises(SystemExit) as pytest_wrapped_e: Phykit() assert pytest_wrapped_e.type == SystemExit assert pytest_wrapped_e.value.code == 2
35.420561
105
0.635092
457
3,790
5.002188
0.146608
0.16273
0.081802
0.126422
0.905512
0.887139
0.887139
0.869641
0.833333
0.833333
0
0.000703
0.249077
3,790
107
106
35.420561
0.80253
0
0
0.705882
0
0
0.317331
0.258771
0
0
0
0
0.082353
1
0.058824
false
0
0.070588
0
0.141176
0.117647
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
ba0f8ab477a036ec7a9bb9042801926e2e85d52c
38,323
py
Python
sdk/python/pulumi_gcp/compute/region_ssl_certificate.py
pjbizon/pulumi-gcp
0d09cbc1dcf50093a177531f7596c27db11a2e58
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/compute/region_ssl_certificate.py
pjbizon/pulumi-gcp
0d09cbc1dcf50093a177531f7596c27db11a2e58
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/compute/region_ssl_certificate.py
pjbizon/pulumi-gcp
0d09cbc1dcf50093a177531f7596c27db11a2e58
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['RegionSslCertificateArgs', 'RegionSslCertificate'] @pulumi.input_type class RegionSslCertificateArgs: def __init__(__self__, *, certificate: pulumi.Input[str], private_key: pulumi.Input[str], description: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, name_prefix: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, region: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a RegionSslCertificate resource. :param pulumi.Input[str] certificate: The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. **Note**: This property is sensitive and will not be displayed in the plan. :param pulumi.Input[str] private_key: The write-only private key in PEM format. **Note**: This property is sensitive and will not be displayed in the plan. :param pulumi.Input[str] description: An optional description of this resource. :param pulumi.Input[str] name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. :param pulumi.Input[str] name_prefix: Creates a unique name beginning with the specified prefix. Conflicts with `name`. :param pulumi.Input[str] project: The ID of the project in which the resource belongs. If it is not provided, the provider project is used. :param pulumi.Input[str] region: The Region in which the created regional ssl certificate should reside. If it is not provided, the provider region is used. """ pulumi.set(__self__, "certificate", certificate) pulumi.set(__self__, "private_key", private_key) if description is not None: pulumi.set(__self__, "description", description) if name is not None: pulumi.set(__self__, "name", name) if name_prefix is not None: pulumi.set(__self__, "name_prefix", name_prefix) if project is not None: pulumi.set(__self__, "project", project) if region is not None: pulumi.set(__self__, "region", region) @property @pulumi.getter def certificate(self) -> pulumi.Input[str]: """ The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. **Note**: This property is sensitive and will not be displayed in the plan. """ return pulumi.get(self, "certificate") @certificate.setter def certificate(self, value: pulumi.Input[str]): pulumi.set(self, "certificate", value) @property @pulumi.getter(name="privateKey") def private_key(self) -> pulumi.Input[str]: """ The write-only private key in PEM format. **Note**: This property is sensitive and will not be displayed in the plan. """ return pulumi.get(self, "private_key") @private_key.setter def private_key(self, value: pulumi.Input[str]): pulumi.set(self, "private_key", value) @property @pulumi.getter def description(self) -> Optional[pulumi.Input[str]]: """ An optional description of this resource. """ return pulumi.get(self, "description") @description.setter def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter(name="namePrefix") def name_prefix(self) -> Optional[pulumi.Input[str]]: """ Creates a unique name beginning with the specified prefix. Conflicts with `name`. """ return pulumi.get(self, "name_prefix") @name_prefix.setter def name_prefix(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name_prefix", value) @property @pulumi.getter def project(self) -> Optional[pulumi.Input[str]]: """ The ID of the project in which the resource belongs. If it is not provided, the provider project is used. """ return pulumi.get(self, "project") @project.setter def project(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "project", value) @property @pulumi.getter def region(self) -> Optional[pulumi.Input[str]]: """ The Region in which the created regional ssl certificate should reside. If it is not provided, the provider region is used. """ return pulumi.get(self, "region") @region.setter def region(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "region", value) @pulumi.input_type class _RegionSslCertificateState: def __init__(__self__, *, certificate: Optional[pulumi.Input[str]] = None, certificate_id: Optional[pulumi.Input[int]] = None, creation_timestamp: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, name_prefix: Optional[pulumi.Input[str]] = None, private_key: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, region: Optional[pulumi.Input[str]] = None, self_link: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering RegionSslCertificate resources. :param pulumi.Input[str] certificate: The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. **Note**: This property is sensitive and will not be displayed in the plan. :param pulumi.Input[int] certificate_id: The unique identifier for the resource. :param pulumi.Input[str] creation_timestamp: Creation timestamp in RFC3339 text format. :param pulumi.Input[str] description: An optional description of this resource. :param pulumi.Input[str] name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. :param pulumi.Input[str] name_prefix: Creates a unique name beginning with the specified prefix. Conflicts with `name`. :param pulumi.Input[str] private_key: The write-only private key in PEM format. **Note**: This property is sensitive and will not be displayed in the plan. :param pulumi.Input[str] project: The ID of the project in which the resource belongs. If it is not provided, the provider project is used. :param pulumi.Input[str] region: The Region in which the created regional ssl certificate should reside. If it is not provided, the provider region is used. :param pulumi.Input[str] self_link: The URI of the created resource. """ if certificate is not None: pulumi.set(__self__, "certificate", certificate) if certificate_id is not None: pulumi.set(__self__, "certificate_id", certificate_id) if creation_timestamp is not None: pulumi.set(__self__, "creation_timestamp", creation_timestamp) if description is not None: pulumi.set(__self__, "description", description) if name is not None: pulumi.set(__self__, "name", name) if name_prefix is not None: pulumi.set(__self__, "name_prefix", name_prefix) if private_key is not None: pulumi.set(__self__, "private_key", private_key) if project is not None: pulumi.set(__self__, "project", project) if region is not None: pulumi.set(__self__, "region", region) if self_link is not None: pulumi.set(__self__, "self_link", self_link) @property @pulumi.getter def certificate(self) -> Optional[pulumi.Input[str]]: """ The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. **Note**: This property is sensitive and will not be displayed in the plan. """ return pulumi.get(self, "certificate") @certificate.setter def certificate(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "certificate", value) @property @pulumi.getter(name="certificateId") def certificate_id(self) -> Optional[pulumi.Input[int]]: """ The unique identifier for the resource. """ return pulumi.get(self, "certificate_id") @certificate_id.setter def certificate_id(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "certificate_id", value) @property @pulumi.getter(name="creationTimestamp") def creation_timestamp(self) -> Optional[pulumi.Input[str]]: """ Creation timestamp in RFC3339 text format. """ return pulumi.get(self, "creation_timestamp") @creation_timestamp.setter def creation_timestamp(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "creation_timestamp", value) @property @pulumi.getter def description(self) -> Optional[pulumi.Input[str]]: """ An optional description of this resource. """ return pulumi.get(self, "description") @description.setter def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter(name="namePrefix") def name_prefix(self) -> Optional[pulumi.Input[str]]: """ Creates a unique name beginning with the specified prefix. Conflicts with `name`. """ return pulumi.get(self, "name_prefix") @name_prefix.setter def name_prefix(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name_prefix", value) @property @pulumi.getter(name="privateKey") def private_key(self) -> Optional[pulumi.Input[str]]: """ The write-only private key in PEM format. **Note**: This property is sensitive and will not be displayed in the plan. """ return pulumi.get(self, "private_key") @private_key.setter def private_key(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "private_key", value) @property @pulumi.getter def project(self) -> Optional[pulumi.Input[str]]: """ The ID of the project in which the resource belongs. If it is not provided, the provider project is used. """ return pulumi.get(self, "project") @project.setter def project(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "project", value) @property @pulumi.getter def region(self) -> Optional[pulumi.Input[str]]: """ The Region in which the created regional ssl certificate should reside. If it is not provided, the provider region is used. """ return pulumi.get(self, "region") @region.setter def region(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "region", value) @property @pulumi.getter(name="selfLink") def self_link(self) -> Optional[pulumi.Input[str]]: """ The URI of the created resource. """ return pulumi.get(self, "self_link") @self_link.setter def self_link(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "self_link", value) class RegionSslCertificate(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, certificate: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, name_prefix: Optional[pulumi.Input[str]] = None, private_key: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, region: Optional[pulumi.Input[str]] = None, __props__=None): """ A RegionSslCertificate resource, used for HTTPS load balancing. This resource provides a mechanism to upload an SSL key and certificate to the load balancer to serve secure connections from the user. To get more information about RegionSslCertificate, see: * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/regionSslCertificates) * How-to Guides * [Official Documentation](https://cloud.google.com/load-balancing/docs/ssl-certificates) > **Warning:** All arguments including `certificate` and `private_key` will be stored in the raw state as plain-text. [Read more about secrets in state](https://www.pulumi.com/docs/intro/concepts/programming-model/#secrets). ## Example Usage ### Region Ssl Certificate Basic ```python import pulumi import pulumi_gcp as gcp default = gcp.compute.RegionSslCertificate("default", region="us-central1", name_prefix="my-certificate-", description="a description", private_key=(lambda path: open(path).read())("path/to/private.key"), certificate=(lambda path: open(path).read())("path/to/certificate.crt")) ``` ### Region Ssl Certificate Random Provider ```python import pulumi import base64 import hashlib import pulumi_gcp as gcp import pulumi_random as random def computeFilebase64sha256(path): fileData = open(path).read().encode() hashedData = hashlib.sha256(fileData.encode()).digest() return base64.b64encode(hashedData).decode() # You may also want to control name generation explicitly: default = gcp.compute.RegionSslCertificate("default", region="us-central1", private_key=(lambda path: open(path).read())("path/to/private.key"), certificate=(lambda path: open(path).read())("path/to/certificate.crt")) certificate = random.RandomId("certificate", byte_length=4, prefix="my-certificate-", keepers={ "private_key": computeFilebase64sha256("path/to/private.key"), "certificate": computeFilebase64sha256("path/to/certificate.crt"), }) ``` ### Region Ssl Certificate Target Https Proxies ```python import pulumi import pulumi_gcp as gcp # Using with Region Target HTTPS Proxies # # SSL certificates cannot be updated after creation. In order to apply # the specified configuration, the provider will destroy the existing # resource and create a replacement. To effectively use an SSL # certificate resource with a Target HTTPS Proxy resource, it's # recommended to specify create_before_destroy in a lifecycle block. # Either omit the Instance Template name attribute, specify a partial # name with name_prefix, or use random_id resource. Example: default_region_ssl_certificate = gcp.compute.RegionSslCertificate("defaultRegionSslCertificate", region="us-central1", name_prefix="my-certificate-", private_key=(lambda path: open(path).read())("path/to/private.key"), certificate=(lambda path: open(path).read())("path/to/certificate.crt")) default_region_health_check = gcp.compute.RegionHealthCheck("defaultRegionHealthCheck", region="us-central1", http_health_check=gcp.compute.RegionHealthCheckHttpHealthCheckArgs( port=80, )) default_region_backend_service = gcp.compute.RegionBackendService("defaultRegionBackendService", region="us-central1", protocol="HTTP", load_balancing_scheme="INTERNAL_MANAGED", timeout_sec=10, health_checks=[default_region_health_check.id]) default_region_url_map = gcp.compute.RegionUrlMap("defaultRegionUrlMap", region="us-central1", description="a description", default_service=default_region_backend_service.id, host_rules=[gcp.compute.RegionUrlMapHostRuleArgs( hosts=["mysite.com"], path_matcher="allpaths", )], path_matchers=[gcp.compute.RegionUrlMapPathMatcherArgs( name="allpaths", default_service=default_region_backend_service.id, path_rules=[gcp.compute.RegionUrlMapPathMatcherPathRuleArgs( paths=["/*"], service=default_region_backend_service.id, )], )]) default_region_target_https_proxy = gcp.compute.RegionTargetHttpsProxy("defaultRegionTargetHttpsProxy", region="us-central1", url_map=default_region_url_map.id, ssl_certificates=[default_region_ssl_certificate.id]) ``` ## Import RegionSslCertificate can be imported using any of these accepted formats ```sh $ pulumi import gcp:compute/regionSslCertificate:RegionSslCertificate default projects/{{project}}/regions/{{region}}/sslCertificates/{{name}} ``` ```sh $ pulumi import gcp:compute/regionSslCertificate:RegionSslCertificate default {{project}}/{{region}}/{{name}} ``` ```sh $ pulumi import gcp:compute/regionSslCertificate:RegionSslCertificate default {{region}}/{{name}} ``` ```sh $ pulumi import gcp:compute/regionSslCertificate:RegionSslCertificate default {{name}} ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] certificate: The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. **Note**: This property is sensitive and will not be displayed in the plan. :param pulumi.Input[str] description: An optional description of this resource. :param pulumi.Input[str] name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. :param pulumi.Input[str] name_prefix: Creates a unique name beginning with the specified prefix. Conflicts with `name`. :param pulumi.Input[str] private_key: The write-only private key in PEM format. **Note**: This property is sensitive and will not be displayed in the plan. :param pulumi.Input[str] project: The ID of the project in which the resource belongs. If it is not provided, the provider project is used. :param pulumi.Input[str] region: The Region in which the created regional ssl certificate should reside. If it is not provided, the provider region is used. """ ... @overload def __init__(__self__, resource_name: str, args: RegionSslCertificateArgs, opts: Optional[pulumi.ResourceOptions] = None): """ A RegionSslCertificate resource, used for HTTPS load balancing. This resource provides a mechanism to upload an SSL key and certificate to the load balancer to serve secure connections from the user. To get more information about RegionSslCertificate, see: * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/regionSslCertificates) * How-to Guides * [Official Documentation](https://cloud.google.com/load-balancing/docs/ssl-certificates) > **Warning:** All arguments including `certificate` and `private_key` will be stored in the raw state as plain-text. [Read more about secrets in state](https://www.pulumi.com/docs/intro/concepts/programming-model/#secrets). ## Example Usage ### Region Ssl Certificate Basic ```python import pulumi import pulumi_gcp as gcp default = gcp.compute.RegionSslCertificate("default", region="us-central1", name_prefix="my-certificate-", description="a description", private_key=(lambda path: open(path).read())("path/to/private.key"), certificate=(lambda path: open(path).read())("path/to/certificate.crt")) ``` ### Region Ssl Certificate Random Provider ```python import pulumi import base64 import hashlib import pulumi_gcp as gcp import pulumi_random as random def computeFilebase64sha256(path): fileData = open(path).read().encode() hashedData = hashlib.sha256(fileData.encode()).digest() return base64.b64encode(hashedData).decode() # You may also want to control name generation explicitly: default = gcp.compute.RegionSslCertificate("default", region="us-central1", private_key=(lambda path: open(path).read())("path/to/private.key"), certificate=(lambda path: open(path).read())("path/to/certificate.crt")) certificate = random.RandomId("certificate", byte_length=4, prefix="my-certificate-", keepers={ "private_key": computeFilebase64sha256("path/to/private.key"), "certificate": computeFilebase64sha256("path/to/certificate.crt"), }) ``` ### Region Ssl Certificate Target Https Proxies ```python import pulumi import pulumi_gcp as gcp # Using with Region Target HTTPS Proxies # # SSL certificates cannot be updated after creation. In order to apply # the specified configuration, the provider will destroy the existing # resource and create a replacement. To effectively use an SSL # certificate resource with a Target HTTPS Proxy resource, it's # recommended to specify create_before_destroy in a lifecycle block. # Either omit the Instance Template name attribute, specify a partial # name with name_prefix, or use random_id resource. Example: default_region_ssl_certificate = gcp.compute.RegionSslCertificate("defaultRegionSslCertificate", region="us-central1", name_prefix="my-certificate-", private_key=(lambda path: open(path).read())("path/to/private.key"), certificate=(lambda path: open(path).read())("path/to/certificate.crt")) default_region_health_check = gcp.compute.RegionHealthCheck("defaultRegionHealthCheck", region="us-central1", http_health_check=gcp.compute.RegionHealthCheckHttpHealthCheckArgs( port=80, )) default_region_backend_service = gcp.compute.RegionBackendService("defaultRegionBackendService", region="us-central1", protocol="HTTP", load_balancing_scheme="INTERNAL_MANAGED", timeout_sec=10, health_checks=[default_region_health_check.id]) default_region_url_map = gcp.compute.RegionUrlMap("defaultRegionUrlMap", region="us-central1", description="a description", default_service=default_region_backend_service.id, host_rules=[gcp.compute.RegionUrlMapHostRuleArgs( hosts=["mysite.com"], path_matcher="allpaths", )], path_matchers=[gcp.compute.RegionUrlMapPathMatcherArgs( name="allpaths", default_service=default_region_backend_service.id, path_rules=[gcp.compute.RegionUrlMapPathMatcherPathRuleArgs( paths=["/*"], service=default_region_backend_service.id, )], )]) default_region_target_https_proxy = gcp.compute.RegionTargetHttpsProxy("defaultRegionTargetHttpsProxy", region="us-central1", url_map=default_region_url_map.id, ssl_certificates=[default_region_ssl_certificate.id]) ``` ## Import RegionSslCertificate can be imported using any of these accepted formats ```sh $ pulumi import gcp:compute/regionSslCertificate:RegionSslCertificate default projects/{{project}}/regions/{{region}}/sslCertificates/{{name}} ``` ```sh $ pulumi import gcp:compute/regionSslCertificate:RegionSslCertificate default {{project}}/{{region}}/{{name}} ``` ```sh $ pulumi import gcp:compute/regionSslCertificate:RegionSslCertificate default {{region}}/{{name}} ``` ```sh $ pulumi import gcp:compute/regionSslCertificate:RegionSslCertificate default {{name}} ``` :param str resource_name: The name of the resource. :param RegionSslCertificateArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. """ ... def __init__(__self__, resource_name: str, *args, **kwargs): resource_args, opts = _utilities.get_resource_args_opts(RegionSslCertificateArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, certificate: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, name_prefix: Optional[pulumi.Input[str]] = None, private_key: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, region: Optional[pulumi.Input[str]] = None, __props__=None): if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = RegionSslCertificateArgs.__new__(RegionSslCertificateArgs) if certificate is None and not opts.urn: raise TypeError("Missing required property 'certificate'") __props__.__dict__["certificate"] = certificate __props__.__dict__["description"] = description __props__.__dict__["name"] = name __props__.__dict__["name_prefix"] = name_prefix if private_key is None and not opts.urn: raise TypeError("Missing required property 'private_key'") __props__.__dict__["private_key"] = private_key __props__.__dict__["project"] = project __props__.__dict__["region"] = region __props__.__dict__["certificate_id"] = None __props__.__dict__["creation_timestamp"] = None __props__.__dict__["self_link"] = None super(RegionSslCertificate, __self__).__init__( 'gcp:compute/regionSslCertificate:RegionSslCertificate', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, certificate: Optional[pulumi.Input[str]] = None, certificate_id: Optional[pulumi.Input[int]] = None, creation_timestamp: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, name_prefix: Optional[pulumi.Input[str]] = None, private_key: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, region: Optional[pulumi.Input[str]] = None, self_link: Optional[pulumi.Input[str]] = None) -> 'RegionSslCertificate': """ Get an existing RegionSslCertificate resource's state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] certificate: The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. **Note**: This property is sensitive and will not be displayed in the plan. :param pulumi.Input[int] certificate_id: The unique identifier for the resource. :param pulumi.Input[str] creation_timestamp: Creation timestamp in RFC3339 text format. :param pulumi.Input[str] description: An optional description of this resource. :param pulumi.Input[str] name: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. :param pulumi.Input[str] name_prefix: Creates a unique name beginning with the specified prefix. Conflicts with `name`. :param pulumi.Input[str] private_key: The write-only private key in PEM format. **Note**: This property is sensitive and will not be displayed in the plan. :param pulumi.Input[str] project: The ID of the project in which the resource belongs. If it is not provided, the provider project is used. :param pulumi.Input[str] region: The Region in which the created regional ssl certificate should reside. If it is not provided, the provider region is used. :param pulumi.Input[str] self_link: The URI of the created resource. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = _RegionSslCertificateState.__new__(_RegionSslCertificateState) __props__.__dict__["certificate"] = certificate __props__.__dict__["certificate_id"] = certificate_id __props__.__dict__["creation_timestamp"] = creation_timestamp __props__.__dict__["description"] = description __props__.__dict__["name"] = name __props__.__dict__["name_prefix"] = name_prefix __props__.__dict__["private_key"] = private_key __props__.__dict__["project"] = project __props__.__dict__["region"] = region __props__.__dict__["self_link"] = self_link return RegionSslCertificate(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter def certificate(self) -> pulumi.Output[str]: """ The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. **Note**: This property is sensitive and will not be displayed in the plan. """ return pulumi.get(self, "certificate") @property @pulumi.getter(name="certificateId") def certificate_id(self) -> pulumi.Output[int]: """ The unique identifier for the resource. """ return pulumi.get(self, "certificate_id") @property @pulumi.getter(name="creationTimestamp") def creation_timestamp(self) -> pulumi.Output[str]: """ Creation timestamp in RFC3339 text format. """ return pulumi.get(self, "creation_timestamp") @property @pulumi.getter def description(self) -> pulumi.Output[Optional[str]]: """ An optional description of this resource. """ return pulumi.get(self, "description") @property @pulumi.getter def name(self) -> pulumi.Output[str]: """ Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. """ return pulumi.get(self, "name") @property @pulumi.getter(name="namePrefix") def name_prefix(self) -> pulumi.Output[str]: """ Creates a unique name beginning with the specified prefix. Conflicts with `name`. """ return pulumi.get(self, "name_prefix") @property @pulumi.getter(name="privateKey") def private_key(self) -> pulumi.Output[str]: """ The write-only private key in PEM format. **Note**: This property is sensitive and will not be displayed in the plan. """ return pulumi.get(self, "private_key") @property @pulumi.getter def project(self) -> pulumi.Output[str]: """ The ID of the project in which the resource belongs. If it is not provided, the provider project is used. """ return pulumi.get(self, "project") @property @pulumi.getter def region(self) -> pulumi.Output[str]: """ The Region in which the created regional ssl certificate should reside. If it is not provided, the provider region is used. """ return pulumi.get(self, "region") @property @pulumi.getter(name="selfLink") def self_link(self) -> pulumi.Output[str]: """ The URI of the created resource. """ return pulumi.get(self, "self_link")
44.71762
151
0.637868
4,387
38,323
5.431502
0.078869
0.052166
0.061692
0.060013
0.908973
0.889542
0.875651
0.866124
0.860206
0.840524
0
0.006001
0.269525
38,323
856
152
44.76986
0.845181
0.53477
0
0.70607
1
0
0.089526
0.005373
0
0
0
0
0
1
0.162939
false
0.003195
0.015974
0
0.277955
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
ba2b2df0ca5604a57ac6cfcf18c73f477c86e6a4
39
py
Python
src/lib/idlelib/__init__.py
DTenore/skulpt
098d20acfb088d6db85535132c324b7ac2f2d212
[ "MIT" ]
2,671
2015-01-03T08:23:25.000Z
2022-03-31T06:15:48.000Z
src/lib/idlelib/__init__.py
wakeupmuyunhe/skulpt
a8fb11a80fb6d7c016bab5dfe3712517a350b347
[ "MIT" ]
972
2015-01-05T08:11:00.000Z
2022-03-29T13:47:15.000Z
src/lib/idlelib/__init__.py
wakeupmuyunhe/skulpt
a8fb11a80fb6d7c016bab5dfe3712517a350b347
[ "MIT" ]
845
2015-01-03T19:53:36.000Z
2022-03-29T18:34:22.000Z
import _sk_fail; _sk_fail._("idlelib")
19.5
38
0.769231
6
39
4.166667
0.666667
0.48
0
0
0
0
0
0
0
0
0
0
0.076923
39
1
39
39
0.694444
0
0
0
0
0
0.179487
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
e86b22ef7abeb5d4d3088db5c4c1cfba35801eff
12,945
py
Python
test/test_dropDatabase.py
dolphindb/python3_api_experimental
223c237978dca6fe4fb308e087dd5fe7c6ac6540
[ "Apache-2.0" ]
6
2019-06-28T16:09:36.000Z
2020-04-10T07:56:27.000Z
test/test_dropDatabase.py
dolphindb/python3_api
223c237978dca6fe4fb308e087dd5fe7c6ac6540
[ "Apache-2.0" ]
null
null
null
test/test_dropDatabase.py
dolphindb/python3_api
223c237978dca6fe4fb308e087dd5fe7c6ac6540
[ "Apache-2.0" ]
null
null
null
import unittest import dolphindb as ddb from os import path from setup import HOST, PORT, WORK_DIR class DBInfo: dfsDBName = 'dfs://testDropDatabase' diskDBName = WORK_DIR + '/testDropDatabase' table = 'tb1' def create_dfs_dimension_db(): s = ddb.session() s.connect(HOST, PORT, "admin", "123456") ddb_script = ''' login('admin','123456') dbPath='{db}' if(existsDatabase(dbPath)) dropDatabase(dbPath) db=database(dbPath,RANGE,1..10) n=100000 tdata=table(sort(take(2010.01.01..2010.12.31, n)) as date, take(1..10,n) as id,take(`AMD`QWE`CES`DOP`ASZ`FSD`BBVC`AWQ`DS, n) as sym,rand(100,n) as val) db.createTable(tdata,`{tb}).append!(tdata) '''.format(db=DBInfo.dfsDBName, tb=DBInfo.table) s.run(ddb_script) s.close() def create_dfs_range_db(): s = ddb.session() s.connect(HOST, PORT, "admin", "123456") ddb_script = ''' login('admin','123456') dbPath='{db}' if(existsDatabase(dbPath)) dropDatabase(dbPath) db=database(dbPath,RANGE,0..10*10000+1) n=100000 tdata=table(sort(take(2010.01.01..2010.12.31, n)) as date, 1..n as id,take(`AMD`QWE`CES`DOP`ASZ`FSD`BBVC`AWQ`DS, n) as sym,rand(100,n) as val) db.createPartitionedTable(tdata,`{tb},`id).append!(tdata) '''.format(db=DBInfo.dfsDBName, tb=DBInfo.table) s.run(ddb_script) s.close() def create_dfs_hash_db(): s = ddb.session() s.connect(HOST, PORT, "admin", "123456") ddb_script = ''' login('admin','123456') dbPath='{db}' if(existsDatabase(dbPath)) dropDatabase(dbPath) db=database(dbPath,HASH,[INT,10]) n=100000 tdata=table(sort(take(2010.01.01..2010.12.31, n)) as date, take(1..10,n) as id,take(`AMD`QWE`CES`DOP`ASZ`FSD`BBVC`AWQ`DS, n) as sym,rand(100,n) as val) db.createPartitionedTable(tdata,`{tb},`id).append!(tdata) '''.format(db=DBInfo.dfsDBName, tb=DBInfo.table) s.run(ddb_script) s.close() def create_dfs_value_db(): s = ddb.session() s.connect(HOST, PORT, "admin", "123456") ddb_script = ''' login('admin','123456') dbPath='{db}' if(existsDatabase(dbPath)) dropDatabase(dbPath) db=database(dbPath,VALUE,2010.01.01..2010.01.30) n=100000 tdata=table(sort(take(2010.01.01..2010.01.30, n)) as date, take(1..10,n) as id,take(`AMD`QWE`CES`DOP`ASZ`FSD`BBVC`AWQ`DS, n) as sym,rand(100,n) as val) db.createPartitionedTable(tdata,`{tb},`date).append!(tdata) '''.format(db=DBInfo.dfsDBName, tb=DBInfo.table) s.run(ddb_script) s.close() def create_dfs_list_db(): s = ddb.session() s.connect(HOST, PORT, "admin", "123456") ddb_script = ''' login('admin','123456') dbPath='{db}' if(existsDatabase(dbPath)) dropDatabase(dbPath) db=database(dbPath,LIST,[`AMD`QWE`CES,`DOP`ASZ,`FSD`BBVC,`AWQ`DS]) n=100000 tdata=table(sort(take(2010.01.01..2010.12.31, n)) as date, take(1..10,n) as id,take(`AMD`QWE`CES`DOP`ASZ`FSD`BBVC`AWQ`DS, n) as sym,rand(100,n) as val) db.createPartitionedTable(tdata,`{tb},`sym).append!(tdata) '''.format(db=DBInfo.dfsDBName, tb=DBInfo.table) s.run(ddb_script) s.close() def create_dfs_compo_range_range_db(): s = ddb.session() s.connect(HOST, PORT, "admin", "123456") ddb_script = ''' login('admin','123456') dbPath='{db}' if(existsDatabase(dbPath)) dropDatabase(dbPath) db1=database('',RANGE,2010.01M+0..12) db2=database('',RANGE,1 3 5 7 9 11) db=database(dbPath,COMPO,[db1,db2]) n=100000 tdata=table(sort(take(2010.01.01..2010.12.31, n)) as date, take(1..10,n) as id,take(`AMD`QWE`CES`DOP`ASZ`FSD`BBVC`AWQ`DS, n) as sym,rand(100,n) as val) db.createPartitionedTable(tdata,`{tb},`date`id).append!(tdata) '''.format(db=DBInfo.dfsDBName, tb=DBInfo.table) s.run(ddb_script) s.close() def create_disk_unpartitioned_db(): s = ddb.session() s.connect(HOST, PORT, "admin", "123456") ddb_script = ''' login('admin','123456') dbPath='{db}' if(exists(dbPath)) dropDatabase(dbPath) db=database(dbPath) n=100000 tdata=table(sort(take(2010.01.01..2010.12.31, n)) as date, 1..n as id,take(`AMD`QWE`CES`DOP`ASZ`FSD`BBVC`AWQ`DS, n) as sym,rand(100,n) as val) saveTable(db,tdata) '''.format(db=DBInfo.diskDBName) s.run(ddb_script) s.close() def create_disk_range_db(): s = ddb.session() s.connect(HOST, PORT, "admin", "123456") ddb_script = ''' login('admin','123456') dbPath='{db}' if(exists(dbPath)) dropDatabase(dbPath) db=database(dbPath,RANGE,0..10*10000+1) n=100000 tdata=table(sort(take(2010.01.01..2010.12.31, n)) as date, 1..n as id,take(`AMD`QWE`CES`DOP`ASZ`FSD`BBVC`AWQ`DS, n) as sym,rand(100,n) as val) db.createPartitionedTable(tdata,`{tb},`id).append!(tdata) '''.format(db=DBInfo.diskDBName, tb=DBInfo.table) s.run(ddb_script) s.close() def create_disk_hash_db(): s = ddb.session() s.connect(HOST, PORT, "admin", "123456") ddb_script = ''' login('admin','123456') dbPath='{db}' if(exists(dbPath)) dropDatabase(dbPath) db=database(dbPath,HASH,[INT,10]) n=100000 tdata=table(sort(take(2010.01.01..2010.12.31, n)) as date, take(1..10,n) as id,take(`AMD`QWE`CES`DOP`ASZ`FSD`BBVC`AWQ`DS, n) as sym,rand(100,n) as val) db.createPartitionedTable(tdata,`{tb},`id).append!(tdata) '''.format(db=DBInfo.diskDBName, tb=DBInfo.table) s.run(ddb_script) s.close() def create_disk_value_db(): s = ddb.session() s.connect(HOST, PORT, "admin", "123456") ddb_script = ''' login('admin','123456') dbPath='{db}' if(exists(dbPath)) dropDatabase(dbPath) db=database(dbPath,VALUE,2010.01.01..2010.01.30) n=100000 tdata=table(sort(take(2010.01.01..2010.01.30, n)) as date, take(1..10,n) as id,take(`AMD`QWE`CES`DOP`ASZ`FSD`BBVC`AWQ`DS, n) as sym,rand(100,n) as val) db.createPartitionedTable(tdata,`{tb},`date).append!(tdata) '''.format(db=DBInfo.diskDBName, tb=DBInfo.table) s.run(ddb_script) s.close() def create_disk_list_db(): s = ddb.session() s.connect(HOST, PORT, "admin", "123456") ddb_script = ''' login('admin','123456') dbPath='{db}' if(exists(dbPath)) dropDatabase(dbPath) db=database(dbPath,LIST,[`AMD`QWE`CES,`DOP`ASZ,`FSD`BBVC,`AWQ`DS]) n=100000 tdata=table(sort(take(2010.01.01..2010.12.31, n)) as date, take(1..10,n) as id,take(`AMD`QWE`CES`DOP`ASZ`FSD`BBVC`AWQ`DS, n) as sym,rand(100,n) as val) db.createPartitionedTable(tdata,`{tb},`sym).append!(tdata) '''.format(db=DBInfo.diskDBName, tb=DBInfo.table) s.run(ddb_script) s.close() def create_disk_compo_range_range_db(): s = ddb.session() s.connect(HOST, PORT, "admin", "123456") ddb_script = ''' login('admin','123456') dbPath='{db}' if(exists(dbPath)) //dropDatabase(dbPath) rmdir(dbPath, true) db1=database('',RANGE,2010.01M+0..12) db2=database('',RANGE,1 3 5 7 9 11) db=database(dbPath,COMPO,[db1,db2]) n=100000 tdata=table(sort(take(2010.01.01..2010.12.31, n)) as date, take(1..10,n) as id,take(`AMD`QWE`CES`DOP`ASZ`FSD`BBVC`AWQ`DS, n) as sym,rand(100,n) as val) db.createPartitionedTable(tdata,`{tb},`date`id).append!(tdata) '''.format(db=DBInfo.diskDBName, tb=DBInfo.table) s.run(ddb_script) s.close() def existsDB(dbName): s = ddb.session() s.connect(HOST, PORT, "admin", "123456") return s.run("existsDatabase('{db}')".format(db=dbName)) class DropDatabaseTest(unittest.TestCase): @classmethod def setUp(cls): cls.s = ddb.session() cls.s.connect(HOST, PORT, "admin", "123456") dbPaths = [DBInfo.dfsDBName, DBInfo.diskDBName] for dbPath in dbPaths: script = """ if(existsDatabase('{dbPath}')) dropDatabase('{dbPath}') if(exists('{dbPath}')) rmdir('{dbPath}', true) """.format(dbPath=dbPath) cls.s.run(script) @classmethod def tearDown(cls): cls.s = ddb.session() cls.s.connect(HOST, PORT, "admin", "123456") dbPaths = [DBInfo.dfsDBName, DBInfo.diskDBName] for dbPath in dbPaths: script = """ if(existsDatabase('{dbPath}')) dropDatabase('{dbPath}') if(exists('{dbPath}')) rmdir('{dbPath}', true) """.format(dbPath=dbPath) cls.s.run(script) def test_dropDatabase_dfs_dimension(self): dbName = DBInfo.dfsDBName self.assertEqual(existsDB(dbName), False) create_dfs_dimension_db() self.assertEqual(existsDB(dbName), True) self.s.dropDatabase(dbName) self.assertEqual(existsDB(dbName), False) def test_dropDatabase_dfs_range(self): dbName = DBInfo.dfsDBName self.assertEqual(existsDB(dbName), False) create_dfs_range_db() self.assertEqual(existsDB(dbName), True) self.s.dropDatabase(dbName) self.assertEqual(existsDB(dbName), False) def test_dropDatabase_dfs_hash(self): dbName = DBInfo.dfsDBName self.assertEqual(existsDB(dbName), False) create_dfs_hash_db() self.assertEqual(existsDB(dbName), True) self.s.dropDatabase(dbName) self.assertEqual(existsDB(dbName), False) def test_dropDatabase_dfs_value(self): dbName = DBInfo.dfsDBName self.assertEqual(existsDB(dbName), False) create_dfs_value_db() self.assertEqual(existsDB(dbName), True) self.s.dropDatabase(dbName) self.assertEqual(existsDB(dbName), False) def test_dropDatabase_dfs_list(self): dbName = DBInfo.dfsDBName self.assertEqual(existsDB(dbName), False) create_dfs_list_db() self.assertEqual(existsDB(dbName), True) self.s.dropDatabase(dbName) self.assertEqual(existsDB(dbName), False) def test_dropDatabase_dfs_compo_range_range(self): dbName = DBInfo.dfsDBName self.assertEqual(existsDB(dbName), False) create_dfs_compo_range_range_db() self.assertEqual(existsDB(dbName), True) self.s.dropDatabase(dbName) self.assertEqual(existsDB(dbName), False) def test_dropDatabase_disk_unpartitioned(self): dbName = DBInfo.diskDBName self.assertEqual(path.exists(dbName), False) create_disk_unpartitioned_db() self.assertEqual(path.exists(dbName), True) self.s.dropDatabase(dbName) self.assertEqual(path.exists(dbName), False) def test_dropDatabase_disk_range(self): dbName = DBInfo.diskDBName self.assertEqual(existsDB(dbName), False) create_disk_range_db() self.assertEqual(existsDB(dbName), True) self.s.dropDatabase(dbName) self.assertEqual(existsDB(dbName), False) def test_dropDatabase_disk_hash(self): dbName = DBInfo.diskDBName self.assertEqual(existsDB(dbName), False) create_disk_hash_db() self.assertEqual(existsDB(dbName), True) self.s.dropDatabase(dbName) self.assertEqual(existsDB(dbName), False) def test_dropDatabase_disk_value(self): dbName = DBInfo.diskDBName self.assertEqual(existsDB(dbName), False) create_disk_value_db() self.assertEqual(existsDB(dbName), True) self.s.dropDatabase(dbName) self.assertEqual(existsDB(dbName), False) def test_dropDatabase_disk_list(self): dbName = DBInfo.diskDBName self.assertEqual(existsDB(dbName), False) create_disk_list_db() self.assertEqual(existsDB(dbName), True) self.s.dropDatabase(dbName) self.assertEqual(existsDB(dbName), False) def test_dropDatabase_disk_compo_range_range(self): dbName = DBInfo.diskDBName self.assertEqual(existsDB(dbName), False) create_disk_compo_range_range_db() self.assertEqual(existsDB(dbName), True) self.s.dropDatabase(dbName) self.assertEqual(existsDB(dbName), False) def test_dropDatabase_paramete(self): dbName = DBInfo.diskDBName self.assertEqual(existsDB(dbName), False) create_disk_value_db() self.assertEqual(existsDB(dbName), True) with self.assertRaises(TypeError): self.s.dropDatabase(dbPath_error=dbName) self.s.dropDatabase(dbPath= dbName) self.assertEqual(existsDB(dbName), False) if __name__ == '__main__': unittest.main()
35.17663
156
0.623175
1,722
12,945
4.591754
0.066783
0.018212
0.104717
0.132035
0.925256
0.918427
0.897433
0.897433
0.891362
0.882509
0
0.058514
0.221089
12,945
367
157
35.27248
0.725677
0
0
0.805643
0
0.043887
0.422881
0.234616
0
0
0
0
0.125392
1
0.087774
false
0
0.012539
0
0.119122
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e87f91a1be3460a11af1f1db1952db081098eb39
8
py
Python
test_data/parse_retree/unexpected/improper_escaping/range_character/unhandled/word/source.py
aas-core-works/aas-core-codegen
afec2cf363b6cb69816e7724a2b58626e2165869
[ "MIT" ]
5
2021-12-29T12:55:34.000Z
2022-03-01T17:57:21.000Z
test_data/parse_retree/unexpected/improper_escaping/range_character/unhandled/word/source.py
aas-core-works/aas-core-codegen
afec2cf363b6cb69816e7724a2b58626e2165869
[ "MIT" ]
10
2021-12-29T02:15:55.000Z
2022-03-09T11:04:22.000Z
test_data/parse_retree/unexpected/improper_escaping/range_character/unhandled/word/source.py
aas-core-works/aas-core-codegen
afec2cf363b6cb69816e7724a2b58626e2165869
[ "MIT" ]
2
2021-12-29T01:42:12.000Z
2022-02-15T13:46:33.000Z
"[\\w]"
4
7
0.125
1
8
1
1
0
0
0
0
0
0
0
0
0
0
0
0.125
8
1
8
8
0.142857
0.5
0
0
0
0
0.625
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
7
e887f99b91738cbcf9187b60b82eb9eeb3772d92
3,075
py
Python
tests/tamr_client/mastering/test_mastering.py
ianbakst/tamr-client
ae7a6190a2251d31f973f9d5a7170ac5dc097f97
[ "Apache-2.0" ]
9
2019-08-13T11:07:06.000Z
2022-01-14T18:15:13.000Z
tests/tamr_client/mastering/test_mastering.py
ianbakst/tamr-client
ae7a6190a2251d31f973f9d5a7170ac5dc097f97
[ "Apache-2.0" ]
166
2019-08-09T18:51:05.000Z
2021-12-02T15:24:15.000Z
tests/tamr_client/mastering/test_mastering.py
ianbakst/tamr-client
ae7a6190a2251d31f973f9d5a7170ac5dc097f97
[ "Apache-2.0" ]
21
2019-08-12T15:37:31.000Z
2021-06-15T14:06:23.000Z
import tamr_client as tc from tests.tamr_client import fake @fake.json def test_estimate_pairs_async(): s = fake.session() project = fake.mastering_project() op = tc.mastering._estimate_pairs_async(s, project) assert op.type == "SPARK" assert op.description == "operation 1 description" assert op.status == { "state": "PENDING", "startTime": "", "endTime": "", "message": "Job has not yet been submitted to Spark", } @fake.json def test_generate_pairs_async(): s = fake.session() project = fake.mastering_project() op = tc.mastering._generate_pairs_async(s, project) assert op.type == "SPARK" assert op.description == "Materialize views to Elastic" assert op.status == { "state": "PENDING", "startTime": "", "endTime": "", "message": "Job has not yet been submitted to Spark", } @fake.json def test_apply_feedback_async(): s = fake.session() project = fake.mastering_project() op = tc.mastering._apply_feedback_async(s, project) assert op.type == "SPARK" assert op.description == "Materialize views to Elastic" assert op.status == { "state": "PENDING", "startTime": "", "endTime": "", "message": "Job has not yet been submitted to Spark", } @fake.json def test_update_pair_results_async(): s = fake.session() project = fake.mastering_project() op = tc.mastering._update_pair_results_async(s, project) assert op.type == "SPARK" assert op.description == "Materialize views to Elastic" assert op.status == { "state": "PENDING", "startTime": "", "endTime": "", "message": "Job has not yet been submitted to Spark", } @fake.json def test_update_high_impact_pairs_async(): s = fake.session() project = fake.mastering_project() op = tc.mastering._update_high_impact_pairs_async(s, project) assert op.type == "SPARK" assert op.description == "Materialize views to Elastic" assert op.status == { "state": "PENDING", "startTime": "", "endTime": "", "message": "Job has not yet been submitted to Spark", } @fake.json def test_update_cluster_results_async(): s = fake.session() project = fake.mastering_project() op = tc.mastering._update_cluster_results_async(s, project) assert op.type == "SPARK" assert op.description == "Materialize views to Elastic" assert op.status == { "state": "PENDING", "startTime": "", "endTime": "", "message": "Job has not yet been submitted to Spark", } @fake.json def test_publish_clusters_async(): s = fake.session() project = fake.mastering_project() op = tc.mastering._publish_clusters_async(s, project) assert op.type == "SPARK" assert op.description == "operation 1 description" assert op.status == { "state": "PENDING", "startTime": "", "endTime": "", "message": "Job has not yet been submitted to Spark", }
26.73913
65
0.622114
360
3,075
5.15
0.144444
0.090615
0.041532
0.056634
0.918015
0.906149
0.895361
0.895361
0.895361
0.895361
0
0.000862
0.245528
3,075
114
66
26.973684
0.798276
0
0
0.752688
0
0
0.240325
0
0
0
0
0
0.225806
1
0.075269
false
0
0.021505
0
0.096774
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e897457f4df16fdbeeb2af2dd14b6d2f990e36ef
2,441
py
Python
functions.py
underscoredam/benchmark-functions-python
a7e480ce9d8e6f024c76b177ebff4acc8ed6422b
[ "MIT" ]
null
null
null
functions.py
underscoredam/benchmark-functions-python
a7e480ce9d8e6f024c76b177ebff4acc8ed6422b
[ "MIT" ]
null
null
null
functions.py
underscoredam/benchmark-functions-python
a7e480ce9d8e6f024c76b177ebff4acc8ed6422b
[ "MIT" ]
null
null
null
# Place the functions that you want to compare on this file. # These sort{0...4} are simple insertion sorting algorithms, to allow users to test. # You can remove them at your ocnvenience. def sort0(arrayToSort): sortedArray = []; sortedArray.append(arrayToSort[0]); for j in range(1, len(arrayToSort)): key = arrayToSort[j]; sortedArray.append(key); i = j -1; while i >= 0 and sortedArray[i] > key: temp = sortedArray[i +1]; sortedArray[i +1] = sortedArray[i]; sortedArray[i] = temp; i = i-1; return sortedArray def sort4(arrayToSort): sortedArray = []; sortedArray.append(arrayToSort[0]); for index, key in enumerate(arrayToSort[1:]): sortedArray.append(key); i = index; while i >= 0 and sortedArray[i] > key: temp = sortedArray[i +1]; sortedArray[i +1] = sortedArray[i]; sortedArray[i] = temp; i = i-1; return sortedArray def sort3(arrayToSort): sortedArray = [arrayToSort[0]]; for index, key in enumerate(arrayToSort[1:]): sortedArray.append(key); i = index; while i >= 0 and sortedArray[i] > key: temp = sortedArray[i +1]; sortedArray[i +1] = sortedArray[i]; sortedArray[i] = temp; i = i-1; return sortedArray def sort2(arrayToSort): sortedArray = [arrayToSort[0]]; for index, key in enumerate(arrayToSort[1:]): sortedArray.append(key); i = index; while i >= 0 and sortedArray[i] > key: sortedArray[i+1],sortedArray[i] = sortedArray[i],sortedArray[i+1] i = i-1; return sortedArray def sort1(arrayToSort): sortedArray = [arrayToSort[0]]; for i, key in enumerate(arrayToSort[1:]): sortedArray.append(key); while i >= 0 and sortedArray[i] > key: sortedArray[i+1],sortedArray[i] = sortedArray[i],sortedArray[i+1] i = i-1; return sortedArray def sort5(arrayToSort): sortedArray = [arrayToSort[0]]; for i, key in enumerate(arrayToSort[1:]): sortedArray.append(key); while i >= 0 and sortedArray[i] > key: sortedArray[i+1],sortedArray[i] = sortedArray[i],sortedArray[i+1] i = i-1; return sortedArray
27.738636
85
0.560426
282
2,441
4.851064
0.187943
0.263158
0.114035
0.157895
0.826023
0.826023
0.826023
0.758041
0.758041
0.758041
0
0.027092
0.319541
2,441
87
86
28.057471
0.796508
0.074969
0
0.852459
0
0
0
0
0
0
0
0
0
1
0.098361
false
0
0
0
0.196721
0
0
0
0
null
1
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
e8d779f717c550ec289964cb56c0ed13bccd8a53
10,974
py
Python
tests/neoload_cli_lib/test_displayer.py
stephanemartin/neoload-cli
aa128aad9a446e94d5700e8a25b674397d633e1a
[ "BSD-2-Clause" ]
null
null
null
tests/neoload_cli_lib/test_displayer.py
stephanemartin/neoload-cli
aa128aad9a446e94d5700e8a25b674397d633e1a
[ "BSD-2-Clause" ]
null
null
null
tests/neoload_cli_lib/test_displayer.py
stephanemartin/neoload-cli
aa128aad9a446e94d5700e8a25b674397d633e1a
[ "BSD-2-Clause" ]
null
null
null
import difflib import io import os import re import sys import unicodedata import pytest from helpers.test_utils import * from neoload_cli_lib import displayer @pytest.mark.results @pytest.mark.usefixtures("neoload_login") # it's like @Before on the neoload_login function class TestDisplayer: def test_print_result_summary_no_sla(self, monkeypatch): captured_output = io.StringIO() # Create StringIO object sys.stdout = captured_output # and redirect stdout. json_result = json.loads( '{"id": "d30fdcc2-319e-4be5-818e-f1978907a3ce","name": "SLA test","description": "","author": "Anakin Skywalker","terminationReason": "POLICY","lgCount": 1,"project": "Sample_Project","scenario": "WANImpact Local","status": "TERMINATED","qualityStatus": "FAILED","startDate": 1517410739300,"endDate": 1517411040416,"duration": 301116}') sla_json_global = json.loads('[]') sla_json_test = json.loads('[]') sla_json_interval = json.loads('[]') json_stats = json.loads( '{"totalRequestCountSuccess": 8415,"totalRequestCountFailure": 93,"totalRequestDurationAverage": 85.36695,"totalRequestCountPerSecond": 28.254892,"totalTransactionCountSuccess": 405,"totalTransactionCountFailure": 93,"totalTransactionDurationAverage": 571.5201,"totalTransactionCountPerSecond": 1.6538477,"totalIterationCountSuccess": 77,"totalIterationCountFailure": 77,"totalGlobalDownloadedBytes": 115011235,"totalGlobalDownloadedBytesPerSecond": 381949.94,"totalGlobalCountFailure": 93}') displayer.print_result_summary(json_result, sla_json_global, sla_json_test, sla_json_interval, json_stats) ## when storing output to file ## with open("tests/resources/expected_summary_text_no_sla.txt", mode='w') as f: print(captured_output.getvalue(), file=f) comp = compare_texts("", "") # initialize default for scoping with open("tests/resources/expected_summary_text_no_sla.txt", "r") as expected: comp = compare_texts(expected.read(), captured_output.getvalue()) sys.stdout = sys.__stdout__ # Reset redirect. captured_output.close() assert comp["equivalent"], comp["details"] def test_print_result_summary_with_sla(self, monkeypatch): captured_output = io.StringIO() # Create StringIO object sys.stdout = captured_output # and redirect stdout. json_result = json.loads( '{"id": "d30fdcc2-319e-4be5-818e-f1978907a3ce","name": "SLA test","description": "","author": "Anakin Skywalker","terminationReason": "POLICY","lgCount": 1,"project": "Sample_Project","scenario": "WANImpact Local","status": "TERMINATED","qualityStatus": "FAILED","startDate": 1517410739300,"endDate": 1517411040416,"duration": 301116}') sla_json_global = json.loads( '[{"kpi": "avg-request-resp-time","status": "PASSED","value": 0.085,"warningThreshold": {"operator": ">=","value": 0.1},"failedThreshold": {"operator": ">=","value": 0.5}}]') sla_json_test = json.loads( '[{"kpi": "error-rate","status": "FAILED","value": 6.097561,"warningThreshold": {"operator": ">=","value": 2},"failedThreshold": {"operator": ">=","value": 5},"element": {"elementId": "eb1cee2c-2f37-43f7-a2bd-92cc6990f92f","name": "submit","category": "TRANSACTION","userpath": "BrowserUser_Create_report","parent": "Try"}}, {"kpi": "avg-request-per-sec","status": "WARNING","value": 12.056263,"warningThreshold": {"operator": "<=","value": 25},"element": {"elementId": "fa450a25-8880-4263-8332-81999821711e","name": "/media/js/jquery.pngFix.pack.js","category": "REQUEST","userpath": "BrowserUser_Create_report","parent": "/"}}, {"kpi": "error-rate","status": "PASSED","value": 0,"warningThreshold": {"operator": ">=","value": 2},"failedThreshold": {"operator": ">=","value": 5},"element": {"elementId": "50e8a36f-2b86-45f7-8c9c-4b7af66051b6","name": "/media/js/ushahidi.js","category": "REQUEST","userpath": "BrowserUser_Create_report","parent": "/"}}]') sla_json_interval = json.loads( '[{"kpi": "avg-resp-time","status": "FAILED","warning": 100,"warningThreshold": {"operator": ">=","value": 0.05},"failed": 23.809525,"failedThreshold": {"operator": ">=","value": 0.5},"element": {"elementId": "03f084cd-b579-4284-97fc-8901cdb9f58c","name": "/media/js/OpenLayers.js","category": "REQUEST","userpath": "BrowserUser_Create_report","parent": "/"}}, {"kpi": "avg-resp-time","status": "WARNING","warning": 7.3170733,"warningThreshold": {"operator": ">=","value": 0.05},"failed": 0,"failedThreshold": {"operator": ">=","value": 0.5},"element": {"elementId": "269a00b9-25fa-4aa5-9481-d3ffde7b2ed7","name": "/media/img/colorpicker/colorpicker_rgb_g.png","category": "REQUEST","userpath": "BrowserUser_Create_report","parent": "/media/img/icon-calendar.gif"}}, {"kpi": "error-rate","status": "PASSED","warning": 0,"warningThreshold": {"operator": ">=","value": 5},"failed": 0,"failedThreshold": {"operator": ">=","value": 10},"element": {"elementId": "b8bfc48e-b7ed-48f8-b5ea-404d3faf15cb","name": "/media/js/jquery.js","category": "REQUEST","userpath": "BrowserUser_Create_report","parent": "/"}}]') json_stats = json.loads( '{"totalRequestCountSuccess": 8415,"totalRequestCountFailure": 93,"totalRequestDurationAverage": 85.36695,"totalRequestCountPerSecond": 28.254892,"totalTransactionCountSuccess": 405,"totalTransactionCountFailure": 93,"totalTransactionDurationAverage": 571.5201,"totalTransactionCountPerSecond": 1.6538477,"totalIterationCountSuccess": 77,"totalIterationCountFailure": 77,"totalGlobalDownloadedBytes": 115011235,"totalGlobalDownloadedBytesPerSecond": 381949.94,"totalGlobalCountFailure": 93}') displayer.print_result_summary(json_result, sla_json_global, sla_json_test, sla_json_interval, json_stats) ## when storing output to file ## with open("tests/resources/expected_summary_text_with_sla.txt", mode='w') as f: print(captured_output.getvalue(), file=f) comp = compare_texts("", "") # initialize default for scoping with open("tests/resources/expected_summary_text_with_sla.txt", "r") as expected: comp = compare_texts(expected.read(), captured_output.getvalue()) sys.stdout = sys.__stdout__ # Reset redirect. captured_output.close() assert comp["equivalent"], comp["details"] def test_print_result_junit(self, monkeypatch): json_result = json.loads( '{"id": "d30fdcc2-319e-4be5-818e-f1978907a3ce","name": "SLA test","description": "","author": "Anakin Skywalker","terminationReason": "POLICY","lgCount": 1,"project": "Sample_Project","scenario": "WANImpact Local","status": "TERMINATED","qualityStatus": "FAILED","startDate": 1517410739300,"endDate": 1517411040416,"duration": 301116}') sla_json_global = json.loads( '[{"kpi": "avg-request-resp-time","status": "PASSED","value": 0.085,"warningThreshold": {"operator": ">=","value": 0.1},"failedThreshold": {"operator": ">=","value": 0.5}}]') sla_json_test = json.loads( '[{"kpi": "error-rate","status": "FAILED","value": 6.097561,"warningThreshold": {"operator": ">=","value": 2},"failedThreshold": {"operator": ">=","value": 5},"element": {"elementId": "eb1cee2c-2f37-43f7-a2bd-92cc6990f92f","name": "submit","category": "TRANSACTION","userpath": "BrowserUser_Create_report","parent": "Try"}}, {"kpi": "avg-request-per-sec","status": "WARNING","value": 12.056263,"warningThreshold": {"operator": "<=","value": 25},"element": {"elementId": "fa450a25-8880-4263-8332-81999821711e","name": "/media/js/jquery.pngFix.pack.js","category": "REQUEST","userpath": "BrowserUser_Create_report","parent": "/"}}, {"kpi": "error-rate","status": "PASSED","value": 0,"warningThreshold": {"operator": ">=","value": 2},"failedThreshold": {"operator": ">=","value": 5},"element": {"elementId": "50e8a36f-2b86-45f7-8c9c-4b7af66051b6","name": "/media/js/ushahidi.js","category": "REQUEST","userpath": "BrowserUser_Create_report","parent": "/"}}]') sla_json_interval = json.loads( '[{"kpi": "avg-resp-time","status": "FAILED","warning": 100,"warningThreshold": {"operator": ">=","value": 0.05},"failed": 23.809525,"failedThreshold": {"operator": ">=","value": 0.5},"element": {"elementId": "03f084cd-b579-4284-97fc-8901cdb9f58c","name": "/media/js/OpenLayers.js","category": "REQUEST","userpath": "BrowserUser_Create_report","parent": "/"}}, {"kpi": "avg-resp-time","status": "WARNING","warning": 7.3170733,"warningThreshold": {"operator": ">=","value": 0.05},"failed": 0,"failedThreshold": {"operator": ">=","value": 0.5},"element": {"elementId": "269a00b9-25fa-4aa5-9481-d3ffde7b2ed7","name": "/media/img/colorpicker/colorpicker_rgb_g.png","category": "REQUEST","userpath": "BrowserUser_Create_report","parent": "/media/img/icon-calendar.gif"}}, {"kpi": "error-rate","status": "PASSED","warning": 0,"warningThreshold": {"operator": ">=","value": 5},"failed": 0,"failedThreshold": {"operator": ">=","value": 10},"element": {"elementId": "b8bfc48e-b7ed-48f8-b5ea-404d3faf15cb","name": "/media/js/jquery.js","category": "REQUEST","userpath": "BrowserUser_Create_report","parent": "/"}}]') try: result_file_path = "tests/resources/tmp_neoload_junit_slas.xml" displayer.print_result_junit(json_result, sla_json_test, sla_json_interval, sla_json_global, result_file_path) expected_file_path = "tests/resources/expected_neoload_junit_slas.xml" # equivalent = main.diff_files(result_file_path, expected_file_path) == [] diff_result = diff_file(result_file_path, expected_file_path) finally: os.unlink(result_file_path) sys.stdout = sys.__stdout__ # Reset redirect. print('\n'.join(diff_result)) assert list(diff_result) == [] def diff_file(file1, file2): text1 = open(file1).readlines() text2 = open(file2).readlines() return difflib.unified_diff(text1, text2) # created to handle color control characters; == equivalency is too strict def compare_texts(a, b): ret = { "equivalent": True, "details": "" } a_re = remove_color_indicators(a) b_re = remove_color_indicators(b) for i, s in enumerate(difflib.ndiff(a_re, b_re)): w = remove_control_characters(s[-1]).strip() if s[0] == ' ': continue elif s[0] == '-': ret["details"] += u'Delete "{}" from position {}'.format(s[-1], i) elif s[0] == '+': ret["details"] += u'Add "{}" to position {}'.format(s[-1], i) if s[0] in ['-', '+'] and len(w) > 0: ret["equivalent"] = False ret["details"] += w + ":" break return ret def remove_control_characters(s): return "".join(ch for ch in s if unicodedata.category(ch)[0] != "C") def remove_color_indicators(s): return re.sub(r'(\[[0123456789]{1,2}m)', '', s)
83.770992
1,118
0.6694
1,210
10,974
5.916529
0.230579
0.047213
0.056712
0.051963
0.855147
0.839782
0.81408
0.81408
0.81408
0.81408
0
0.071429
0.131219
10,974
130
1,119
84.415385
0.679463
0.062967
0
0.402062
0
0.113402
0.662931
0.429059
0
0
0
0
0.030928
1
0.072165
false
0.061856
0.092784
0.020619
0.216495
0.072165
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
10
2cd5f7974adba18b81c767b5141f0c16164470c3
138
py
Python
tailow/__init__.py
parthi82/tailow
a0e578917f954984858b9056e58922adc6fb0989
[ "MIT" ]
null
null
null
tailow/__init__.py
parthi82/tailow
a0e578917f954984858b9056e58922adc6fb0989
[ "MIT" ]
null
null
null
tailow/__init__.py
parthi82/tailow
a0e578917f954984858b9056e58922adc6fb0989
[ "MIT" ]
null
null
null
from motor import pymongo from tailow.connection import Connection def connect(*args, **kwargs): Connection.connect(*args, **kwargs)
23
40
0.76087
17
138
6.176471
0.588235
0.209524
0.32381
0
0
0
0
0
0
0
0
0
0.130435
138
6
41
23
0.875
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
true
0
0.5
0
0.75
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
8
2cec2e710ab4ed64970b2cbeafc22dc75a417c18
17,896
py
Python
pyspedas/mms/tests/load_routine_tests.py
xnchu/pyspedas
62657581c0b6ed980fcd99ac34455a8b7a77dede
[ "MIT" ]
null
null
null
pyspedas/mms/tests/load_routine_tests.py
xnchu/pyspedas
62657581c0b6ed980fcd99ac34455a8b7a77dede
[ "MIT" ]
null
null
null
pyspedas/mms/tests/load_routine_tests.py
xnchu/pyspedas
62657581c0b6ed980fcd99ac34455a8b7a77dede
[ "MIT" ]
null
null
null
import unittest import numpy as np from pyspedas.mms import mms_load_state, mms_load_mec, mms_load_fgm, mms_load_scm, mms_load_fpi, mms_load_hpca, mms_load_eis, mms_load_feeps, mms_load_edp, mms_load_edi, mms_load_aspoc, mms_load_dsp from pyspedas.utilities.data_exists import data_exists from pyspedas.mms.hpca.mms_hpca_calc_anodes import mms_hpca_calc_anodes from pyspedas.mms.hpca.mms_hpca_spin_sum import mms_hpca_spin_sum from pytplot import get_data, del_data from pyspedas import tdpwrspc class StateLoadTestCases(unittest.TestCase): def test_load_eph_no_update(self): data = mms_load_state(datatypes=['pos', 'vel']) # ensure the files are stored locally del_data('*') # remove the current tplot vars data = mms_load_state(datatypes=['pos', 'vel'], no_update=True) # ensure the files are stored locally self.assertTrue(data_exists('mms1_defeph_pos')) self.assertTrue(data_exists('mms1_defeph_vel')) def test_load_eph_data(self): data = mms_load_state(datatypes=['pos', 'vel']) self.assertTrue(data_exists('mms1_defeph_pos')) self.assertTrue(data_exists('mms1_defeph_vel')) def test_load_att_data(self): data = mms_load_state(trange=['2015-10-16', '2015-10-16/06:00'], datatypes=['spinras', 'spindec']) self.assertTrue(data_exists('mms1_defatt_spinras')) self.assertTrue(data_exists('mms1_defatt_spindec')) ############### DSP ############### class DSPLoadTestCases(unittest.TestCase): # def test_load_default_data(self): # data = mms_load_dsp(trange=['2015-08-01','2015-09-01'], datatype='swd', level='l2', data_rate='fast') # self.assertTrue(data_exists('mms1_dsp_swd_E12_Counts')) def test_load_epsd_bpsd_data(self): data = mms_load_dsp(trange=['2015-08-01','2015-08-02'], datatype=['epsd', 'bpsd'], level='l2', data_rate='fast') self.assertTrue(data_exists('mms1_dsp_epsd_omni')) self.assertTrue(data_exists('mms1_dsp_bpsd_omni')) def test_load_bpsd_data(self): data = mms_load_dsp(trange=['2015-10-16','2015-10-17'], datatype='bpsd', level='l2', data_rate='fast') self.assertTrue(data_exists('mms1_dsp_bpsd_omni_fast_l2')) def test_load_epsd_spdf(self): data = mms_load_dsp(trange=['2015-08-01','2015-08-02'], datatype='epsd', level='l2', data_rate='fast', spdf=True) self.assertTrue(data_exists('mms1_dsp_epsd_omni')) def test_load_epsd_suffix(self): data = mms_load_dsp(trange=['2015-08-01','2015-08-02'], datatype='epsd', level='l2', data_rate='fast', suffix='_test') self.assertTrue(data_exists('mms1_dsp_epsd_omni_test')) ############### FEEPS ############### class FEEPSLoadTestCases(unittest.TestCase): def test_load_default_data(self): data = mms_load_feeps(trange=['2015-10-16', '2015-10-16/01:00']) self.assertTrue(data_exists('mms1_epd_feeps_srvy_l2_electron_intensity_omni')) self.assertTrue(data_exists('mms1_epd_feeps_srvy_l2_electron_intensity_omni_spin')) def test_load_spdf_data(self): del_data('*') data = mms_load_feeps(trange=['2015-10-16/13:06', '2015-10-16/13:07'], data_rate='brst', spdf=True) self.assertTrue(data_exists('mms1_epd_feeps_brst_l2_electron_intensity_omni')) self.assertTrue(data_exists('mms1_epd_feeps_brst_l2_electron_intensity_omni_spin')) def test_load_suffix(self): data = mms_load_feeps(trange=['2015-10-16/13:06', '2015-10-16/13:07'], data_rate='brst', suffix='_test') self.assertTrue(data_exists('mms1_epd_feeps_brst_l2_electron_intensity_omni_test')) self.assertTrue(data_exists('mms1_epd_feeps_brst_l2_electron_intensity_omni_spin_test')) def test_load_brst_ion_data(self): del_data('*') data = mms_load_feeps(probe=4, data_rate='brst', datatype='ion', trange=['2015-10-01/10:48:16', '2015-10-01/10:49:16']) self.assertTrue(data_exists('mms4_epd_feeps_brst_l2_ion_intensity_omni')) self.assertTrue(data_exists('mms4_epd_feeps_brst_l2_ion_intensity_omni_spin')) def test_load_brst_multi_probe(self): del_data('*') data = mms_load_feeps(trange=['2015-10-16/13:06', '2015-10-16/13:07'], data_rate='brst', probe=[1, 2, 3, 4]) self.assertTrue(data_exists('mms1_epd_feeps_brst_l2_electron_intensity_omni')) self.assertTrue(data_exists('mms1_epd_feeps_brst_l2_electron_intensity_omni_spin')) self.assertTrue(data_exists('mms2_epd_feeps_brst_l2_electron_intensity_omni')) self.assertTrue(data_exists('mms2_epd_feeps_brst_l2_electron_intensity_omni_spin')) self.assertTrue(data_exists('mms3_epd_feeps_brst_l2_electron_intensity_omni')) self.assertTrue(data_exists('mms3_epd_feeps_brst_l2_electron_intensity_omni_spin')) self.assertTrue(data_exists('mms4_epd_feeps_brst_l2_electron_intensity_omni')) self.assertTrue(data_exists('mms4_epd_feeps_brst_l2_electron_intensity_omni_spin')) ############### EIS ############### class EISLoadTestCases(unittest.TestCase): def test_load_phxtof_data(self): data = mms_load_eis(trange=['2015-10-16', '2015-10-16/01:00'], datatype='phxtof') self.assertTrue(data_exists('mms1_epd_eis_phxtof_proton_flux_omni')) def test_load_phxtof_spdf(self): data = mms_load_eis(trange=['2015-10-16/13:06', '2015-10-16/13:07'], datatype='phxtof', data_rate='brst', spdf=True) self.assertTrue(data_exists('mms1_epd_eis_brst_phxtof_proton_flux_omni')) def test_load_extof_data(self): data = mms_load_eis(trange=['2015-10-16/13:06', '2015-10-16/13:07'], data_rate='brst', datatype='extof') self.assertTrue(data_exists('mms1_epd_eis_brst_extof_proton_flux_omni')) def test_load_extof_suffix(self): data = mms_load_eis(trange=['2015-10-16/13:06', '2015-10-16/13:07'], data_rate='brst', datatype='extof', suffix='_test') self.assertTrue(data_exists('mms1_epd_eis_brst_extof_proton_flux_omni_test')) ############### FPI ############### class FPILoadTestCases(unittest.TestCase): def test_load_default_data(self): data = mms_load_fpi(trange=['2015-10-16/14:00', '2015-10-16/15:00']) self.assertTrue(data_exists('mms1_dis_energyspectr_omni_fast')) def test_load_spdf_data(self): data = mms_load_fpi(trange=['2015-10-16/14:00', '2015-10-16/15:00'], spdf=True) self.assertTrue(data_exists('mms1_dis_energyspectr_omni_fast')) def test_load_small_brst_interval(self): data = mms_load_fpi(trange=['2015-10-16/13:06', '2015-10-16/13:07'], data_rate='brst', datatype=['dis-moms', 'dis-dist'], time_clip=True) self.assertTrue(data_exists('mms1_dis_energyspectr_omni_brst')) def test_center_fast_ion_data_notplot(self): data = mms_load_fpi(trange=['2015-10-16/14:00', '2015-10-16/15:00'], notplot=True) centered = mms_load_fpi(trange=['2015-10-16/14:00', '2015-10-16/15:00'], center_measurement=True, suffix='_centered', notplot=True) self.assertTrue(np.round(centered['mms1_dis_bulkv_gse_fast_centered']['x'][0]-data['mms1_dis_bulkv_gse_fast']['x'][0], decimals=3) == 2.25) def test_center_fast_ion_data(self): data = mms_load_fpi(trange=['2015-10-16/14:00', '2015-10-16/15:00']) centered = mms_load_fpi(trange=['2015-10-16/14:00', '2015-10-16/15:00'], center_measurement=True, suffix='_centered') t, d = get_data('mms1_dis_bulkv_gse_fast') c, d = get_data('mms1_dis_bulkv_gse_fast_centered') self.assertTrue(np.round(c[0]-t[0], decimals=3) == 2.25) def test_center_fast_electron_data(self): data = mms_load_fpi(trange=['2015-10-16/14:00', '2015-10-16/15:00']) centered = mms_load_fpi(trange=['2015-10-16/14:00', '2015-10-16/15:00'], center_measurement=True, suffix='_centered') t, d = get_data('mms1_des_bulkv_gse_fast') c, d = get_data('mms1_des_bulkv_gse_fast_centered') self.assertTrue(np.round(c[0]-t[0], decimals=3) == 2.25) def test_center_brst_ion_data(self): data = mms_load_fpi(trange=['2015-10-16/13:06', '2015-10-16/13:07'], data_rate='brst') centered = mms_load_fpi(trange=['2015-10-16/13:06', '2015-10-16/13:07'], data_rate='brst', center_measurement=True, suffix='_centered') t, d = get_data('mms1_dis_bulkv_gse_brst') c, d = get_data('mms1_dis_bulkv_gse_brst_centered') self.assertTrue(np.round(c[0]-t[0], decimals=3) == 0.075) def test_center_brst_electron_data(self): data = mms_load_fpi(trange=['2015-10-16/13:06', '2015-10-16/13:07'], data_rate='brst') centered = mms_load_fpi(trange=['2015-10-16/13:06', '2015-10-16/13:07'], data_rate='brst', center_measurement=True, suffix='_centered') t, d = get_data('mms1_des_bulkv_gse_brst') c, d = get_data('mms1_des_bulkv_gse_brst_centered') self.assertTrue(np.round(c[0]-t[0], decimals=3) == 0.015) ############### HPCA ############### class HPCALoadTestCases(unittest.TestCase): def test_load_default_data(self): data = mms_load_hpca(trange=['2015-10-16', '2015-10-16/01:00']) self.assertTrue(data_exists('mms1_hpca_hplus_number_density')) def test_load_spdf_data(self): data = mms_load_hpca(trange=['2015-10-16', '2015-10-16/01:00'], spdf=True) self.assertTrue(data_exists('mms1_hpca_hplus_number_density')) def test_load_ion_omni(self): del_data('*') data = mms_load_hpca(trange=['2016-10-16/5:00', '2016-10-16/6:00'], datatype='ion') mms_hpca_calc_anodes(fov=[0, 360], probe='1') mms_hpca_spin_sum() self.assertTrue(data_exists('mms1_hpca_hplus_flux_elev_0-360_spin')) self.assertTrue(data_exists('mms1_hpca_heplus_flux_elev_0-360_spin')) self.assertTrue(data_exists('mms1_hpca_heplusplus_flux_elev_0-360_spin')) self.assertTrue(data_exists('mms1_hpca_oplus_flux_elev_0-360_spin')) def test_center_fast_moments_data(self): data = mms_load_hpca(trange=['2015-10-16/14:00', '2015-10-16/15:00']) centered = mms_load_hpca(trange=['2015-10-16/14:00', '2015-10-16/15:00'], center_measurement=True, suffix='_centered') t, d = get_data('mms1_hpca_hplus_ion_bulk_velocity') c, d = get_data('mms1_hpca_hplus_ion_bulk_velocity_centered') self.assertTrue(np.round(c[0]-t[0], decimals=3) == 5.0) def test_center_brst_moments_data(self): data = mms_load_hpca(trange=['2015-10-16/13:06', '2015-10-16/13:07'], data_rate='brst') centered = mms_load_hpca(trange=['2015-10-16/13:06', '2015-10-16/13:07'], data_rate='brst', center_measurement=True, suffix='_centered') t, d = get_data('mms1_hpca_hplus_ion_bulk_velocity') c, d = get_data('mms1_hpca_hplus_ion_bulk_velocity_centered') self.assertTrue(np.round(c[0]-t[0], decimals=3) == 5.0) ############### EDI ############### class EDILoadTestCases(unittest.TestCase): def test_load_default_data(self): data = mms_load_edi(trange=['2016-10-17/13:00', '2016-10-17/14:00']) self.assertTrue(data_exists('mms1_edi_e_gse_srvy_l2')) def test_load_spdf_data(self): data = mms_load_edi(trange=['2016-10-17/13:00', '2016-10-17/14:00'], spdf=True) self.assertTrue(data_exists('mms1_edi_e_gse_srvy_l2')) def test_load_suffix(self): data = mms_load_edi(trange=['2016-10-17/13:00', '2016-10-17/14:00'], suffix='_test') self.assertTrue(data_exists('mms1_edi_e_gse_srvy_l2_test')) ############### ASPOC ############### class ASPOCLoadTestCases(unittest.TestCase): def test_load_default_data(self): data = mms_load_aspoc(trange=['2015-10-16', '2015-10-16/01:00']) self.assertTrue(data_exists('mms1_aspoc_ionc_l2')) def test_load_spdf_data(self): data = mms_load_aspoc(trange=['2015-10-16', '2015-10-16/01:00'], spdf=True) self.assertTrue(data_exists('mms1_aspoc_ionc_l2')) def test_load_suffix(self): data = mms_load_aspoc(trange=['2015-10-16', '2015-10-16/01:00'], suffix='_test') self.assertTrue(data_exists('mms1_aspoc_ionc_l2_test')) ############### EDP ############### class EDPLoadTestCases(unittest.TestCase): def test_load_default_data(self): data = mms_load_edp(trange=['2015-10-16', '2015-10-16/01:00']) self.assertTrue(data_exists('mms1_edp_dce_gse_fast_l2')) def test_load_hfesp_data(self): data = mms_load_edp(trange=['2015-10-16', '2015-10-16/01:00'], datatype='hfesp', data_rate='srvy') self.assertTrue(data_exists('mms1_edp_hfesp_srvy_l2')) def test_load_spdf_data(self): data = mms_load_edp(trange=['2015-10-16', '2015-10-16/01:00'], spdf=True) self.assertTrue(data_exists('mms1_edp_dce_gse_fast_l2')) def test_load_suffix(self): data = mms_load_edp(trange=['2015-10-16', '2015-10-16/01:00'], suffix='_test') self.assertTrue(data_exists('mms1_edp_dce_gse_fast_l2')) # def test_load_multiple_sc(self): # data = mms_load_edp(probe=['1', '2', '3', '4'], trange=['2015-10-16', '2015-10-16/01:00']) # self.assertTrue(data_exists('mms1_edp_dce_gse_fast_l2')) # self.assertTrue(data_exists('mms2_edp_dce_gse_fast_l2')) # self.assertTrue(data_exists('mms3_edp_dce_gse_fast_l2')) # self.assertTrue(data_exists('mms4_edp_dce_gse_fast_l2')) def test_load_brst_data(self): data = mms_load_edp(data_rate='brst', trange=['2015-10-16/13:06', '2015-10-16/13:10']) self.assertTrue(data_exists('mms1_edp_dce_gse_brst_l2')) ############### FGM ############### class FGMLoadTestCases(unittest.TestCase): def test_regression_multi_imports_spdf(self): data = mms_load_fgm(data_rate='brst', trange=['2015-10-16/13:06', '2015-10-16/13:10'], spdf=True) t1, d1 = get_data('mms1_fgm_b_gse_brst_l2') data = mms_load_fgm(data_rate='brst', trange=['2015-10-16/13:06', '2015-10-16/13:10'], spdf=True) t2, d2 = get_data('mms1_fgm_b_gse_brst_l2') self.assertTrue(t1.shape == t2.shape) self.assertTrue(d1.shape == d2.shape) def test_load_default_data(self): data = mms_load_fgm(trange=['2015-10-16', '2015-10-16/01:00']) self.assertTrue(data_exists('mms1_fgm_b_gse_srvy_l2')) def test_load_spdf_data(self): data = mms_load_fgm(data_rate='brst', trange=['2015-10-16/13:06', '2015-10-16/13:10'], spdf=True) self.assertTrue(data_exists('mms1_fgm_b_gse_brst_l2')) def test_load_suffix(self): data = mms_load_fgm(data_rate='brst', trange=['2015-10-16/13:06', '2015-10-16/13:10'], suffix='_test') self.assertTrue(data_exists('mms1_fgm_b_gse_brst_l2_test')) def test_load_multiple_sc(self): data = mms_load_fgm(probe=[1, 2, 3, 4], data_rate='brst', trange=['2015-10-16/13:06', '2015-10-16/13:10']) self.assertTrue(data_exists('mms1_fgm_b_gse_brst_l2')) self.assertTrue(data_exists('mms2_fgm_b_gse_brst_l2')) self.assertTrue(data_exists('mms3_fgm_b_gse_brst_l2')) self.assertTrue(data_exists('mms4_fgm_b_gse_brst_l2')) def test_load_brst_data(self): data = mms_load_fgm(data_rate='brst', trange=['2015-10-16/13:06', '2015-10-16/13:10']) self.assertTrue(data_exists('mms1_fgm_b_gse_brst_l2')) def test_load_data_no_update(self): data = mms_load_fgm(trange=['2015-10-16', '2015-10-16/01:00']) # make sure the files exist locally del_data('*') data = mms_load_fgm(trange=['2015-10-16', '2015-10-16/01:00'], no_update=True) # load the file from the local cache self.assertTrue(data_exists('mms1_fgm_b_gse_srvy_l2')) ############### MEC ############### class MECLoadTestCases(unittest.TestCase): def test_load_default_data(self): data = mms_load_mec(trange=['2015-10-16', '2015-10-16/01:00']) self.assertTrue(data_exists('mms1_mec_r_sm')) def test_load_spdf_data(self): data = mms_load_mec(trange=['2015-10-16', '2015-10-16/01:00'], spdf=True) self.assertTrue(data_exists('mms1_mec_r_sm')) def test_load_suffix(self): data = mms_load_mec(trange=['2015-10-16', '2015-10-16/01:00'], suffix='_test') self.assertTrue(data_exists('mms1_mec_r_sm_test')) class SCMLoadTestCases(unittest.TestCase): def test_brst_dpwrspc_data(self): data = mms_load_scm(probe=4, data_rate='brst', datatype='scb', trange=['2015-10-01/10:48:16', '2015-10-01/10:49:16']) tdpwrspc('mms4_scm_acb_gse_scb_brst_l2') self.assertTrue(data_exists('mms4_scm_acb_gse_scb_brst_l2')) self.assertTrue(data_exists('mms4_scm_acb_gse_scb_brst_l2_x_dpwrspc')) self.assertTrue(data_exists('mms4_scm_acb_gse_scb_brst_l2_y_dpwrspc')) self.assertTrue(data_exists('mms4_scm_acb_gse_scb_brst_l2_z_dpwrspc')) def test_load_default_data(self): data = mms_load_scm(trange=['2015-10-16', '2015-10-16/01:00']) self.assertTrue(data_exists('mms1_scm_acb_gse_scsrvy_srvy_l2')) def test_load_suffix(self): data = mms_load_scm(trange=['2015-10-16', '2015-10-16/01:00'], suffix='_test') self.assertTrue(data_exists('mms1_scm_acb_gse_scsrvy_srvy_l2_test')) def test_load_multiple_sc(self): data = mms_load_scm(probe=['1', '2', '3', '4'], trange=['2017-12-15', '2017-12-16']) # self.assertTrue(data_exists('mms1_scm_acb_gse_scsrvy_srvy_l2')) # self.assertTrue(data_exists('mms2_scm_acb_gse_scsrvy_srvy_l2')) self.assertTrue(data_exists('mms3_scm_acb_gse_scsrvy_srvy_l2')) self.assertTrue(data_exists('mms4_scm_acb_gse_scsrvy_srvy_l2')) def test_load_brst_data(self): data = mms_load_scm(data_rate='brst', trange=['2015-10-16/13:06', '2015-10-16/13:10'], datatype='scb') self.assertTrue(data_exists('mms1_scm_acb_gse_scb_brst_l2')) if __name__ == '__main__': unittest.main()
53.420896
198
0.689651
2,807
17,896
4.029569
0.069825
0.05835
0.074264
0.167624
0.869684
0.856069
0.809743
0.788613
0.739634
0.698966
0
0.108308
0.145116
17,896
335
199
53.420896
0.631022
0.052246
0
0.353659
0
0
0.294563
0.150255
0
0
0
0
0.329268
1
0.223577
false
0
0.036585
0
0.308943
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
8
fa2fcd676902313f6b33c269a78b44f0cde6a1c2
26,751
py
Python
autodiff/tests/test_unary_functions.py
cs207-project-erin-bruce-will/cs207-FinalProject
65da262c2d00565f5d3247e9fb261fb7a214718b
[ "MIT" ]
null
null
null
autodiff/tests/test_unary_functions.py
cs207-project-erin-bruce-will/cs207-FinalProject
65da262c2d00565f5d3247e9fb261fb7a214718b
[ "MIT" ]
null
null
null
autodiff/tests/test_unary_functions.py
cs207-project-erin-bruce-will/cs207-FinalProject
65da262c2d00565f5d3247e9fb261fb7a214718b
[ "MIT" ]
3
2018-10-12T06:00:20.000Z
2019-12-04T20:29:44.000Z
import pytest import autodiff.autodiff as ad import math import numpy as np @pytest.fixture def b(): b = ad.DualNumber._from_dict(-2/3,{'x':1.2, 'y':9.5, 'z':5}) return b @pytest.fixture def binv(): binv = ad.DualNumber._from_dict(-3/2,{'x':1.2, 'y':9.5, 'z':5}) return binv @pytest.fixture def s(): return .42 @pytest.fixture def sinv(): return 1/.42 @pytest.fixture def m(): m = np.array([1/6,2/6,3/6]) return m @pytest.fixture def minv(): minv = 1/np.array([1/6,2/6,3/6]) return minv @pytest.fixture def dm(): dm = ad.DualNumber._from_dict(np.array([1/6,2/6,3/6]),{'y':np.array([4,-5,6]),'x':np.array([8,7,-9])}) return dm @pytest.fixture def dminv(): dminv = ad.DualNumber._from_dict(1/np.array([1/6,2/6,3/6]),{'y':np.array([4,-5,6]),'x':np.array([8,7,-9])}) return dminv ### # negation ### def test_negation_d(b): output = -b assert output.value == -b.value assert output.derivatives == {'x':-1.2, 'y':-9.5, 'z':-5} def test_negation_no_change(b): b_d = b.derivatives output = -b assert b_d == b.derivatives ### # sin ### def test_sin_s(s): def value(x): return math.sin(x) output = ad.sin(s) assert output.value == pytest.approx(value(s)) assert output.derivatives == {} def test_sin_d(b): def value(x): return math.sin(x) def der(x): return math.cos(x) output = ad.sin(b) assert output.value == pytest.approx(value(b.value)) coef = der(b.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_sin_no_change(b): b_d = b.derivatives output = ad.sin(b) assert b_d == b.derivatives def test_sin_sm(m): def value(x): return math.sin(x) output = ad.sin(m) for i in range(len(m)): assert output.value[i] == pytest.approx(value(m[i])) assert output.derivatives == {} def test_sin_dm(dm): def value(x): return math.sin(x) def der(x): return math.cos(x) output = ad.sin(dm) for i in range(len(dm.value)): assert output.value[i] == pytest.approx(value(dm.value[i])) coef = der(dm.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dm.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dm.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dm.derivatives['z'][i]) ### # cos ### def test_cos_s(s): def value(x): return math.cos(x) output = ad.cos(s) assert output.value == pytest.approx(value(s)) assert output.derivatives == {} def test_cos_d(b): def value(x): return math.cos(x) def der(x): return -math.sin(x) output = ad.cos(b) assert output.value == pytest.approx(value(b.value)) coef = der(b.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_cos_no_change(b): b_d = b.derivatives output = ad.cos(b) assert b_d == b.derivatives def test_cos_sm(m): def value(x): return math.cos(x) output = ad.cos(m) for i in range(len(m)): assert output.value[i] == pytest.approx(value(m[i])) assert output.derivatives == {} def test_cos_dm(dm): def value(x): return math.cos(x) def der(x): return -math.sin(x) output = ad.cos(dm) for i in range(len(dm.value)): assert output.value[i] == pytest.approx(value(dm.value[i])) coef = der(dm.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dm.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dm.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dm.derivatives['z'][i]) ### # tan ### def test_tan_s(s): def value(x): return math.tan(x) output = ad.tan(s) assert output.value == pytest.approx(value(s)) assert output.derivatives == {} def test_tan_d(b): def value(x): return math.tan(x) def der(x): return 1/(math.cos(x)**2) output = ad.tan(b) assert output.value == pytest.approx(value(b.value)) coef = der(b.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_tan_no_change(b): b_d = b.derivatives output = ad.tan(b) assert b_d == b.derivatives def test_tan_sm(m): def value(x): return math.tan(x) output = ad.tan(m) for i in range(len(m)): assert output.value[i] == pytest.approx(value(m[i])) assert output.derivatives == {} def test_tan_dm(dm): def value(x): return math.tan(x) def der(x): return 1/(math.cos(x)**2) output = ad.tan(dm) for i in range(len(dm.value)): assert output.value[i] == pytest.approx(value(dm.value[i])) coef = der(dm.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dm.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dm.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dm.derivatives['z'][i]) ### # cot ### def test_cot_s(s): def value(x): return 1/math.tan(x) output = ad.cot(s) assert output.value == pytest.approx(value(s)) assert output.derivatives == {} def test_cot_d(b): def value(x): return 1/math.tan(x) def der(x): return -1/(math.sin(x)**2) output = ad.cot(b) assert output.value == pytest.approx(value(b.value)) coef = der(b.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_cot_no_change(b): b_d = b.derivatives output = ad.cot(b) assert b_d == b.derivatives def test_cot_sm(m): def value(x): return 1/math.tan(x) output = ad.cot(m) for i in range(len(m)): assert output.value[i] == pytest.approx(value(m[i])) assert output.derivatives == {} def test_cot_dm(dm): def value(x): return 1/math.tan(x) def der(x): return -1/(math.sin(x)**2) output = ad.cot(dm) for i in range(len(dm.value)): assert output.value[i] == pytest.approx(value(dm.value[i])) coef = der(dm.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dm.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dm.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dm.derivatives['z'][i]) ### # sec ### def test_sec_s(s): def value(x): return 1/math.cos(x) output = ad.sec(s) assert output.value == pytest.approx(value(s)) assert output.derivatives == {} def test_sec_d(b): def value(x): return 1/math.cos(x) def der(x): return 1/math.cos(x)*math.tan(x) output = ad.sec(b) assert output.value == pytest.approx(value(b.value)) coef = der(b.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_sec_no_change(b): b_d = b.derivatives output = ad.sec(b) assert b_d == b.derivatives def test_sec_sm(m): def value(x): return 1/math.cos(x) output = ad.sec(m) for i in range(len(m)): assert output.value[i] == pytest.approx(value(m[i])) assert output.derivatives == {} def test_sec_dm(dm): def value(x): return 1/math.cos(x) def der(x): return 1/math.cos(x)*math.tan(x) output = ad.sec(dm) for i in range(len(dm.value)): assert output.value[i] == pytest.approx(value(dm.value[i])) coef = der(dm.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dm.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dm.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dm.derivatives['z'][i]) ### # csc ### def test_csc_s(s): def value(x): return 1/math.sin(x) output = ad.csc(s) assert output.value == pytest.approx(value(s)) assert output.derivatives == {} def test_csc_d(b): def value(x): return 1/math.sin(x) def der(x): return -1/math.sin(x)*1/math.tan(x) output = ad.csc(b) assert output.value == pytest.approx(value(b.value)) coef = der(b.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_csc_no_change(b): b_d = b.derivatives output = ad.csc(b) assert b_d == b.derivatives def test_csc_sm(m): def value(x): return 1/math.sin(x) output = ad.csc(m) for i in range(len(m)): assert output.value[i] == pytest.approx(value(m[i])) assert output.derivatives == {} def test_csc_dm(dm): def value(x): return 1/math.sin(x) def der(x): return -1/math.sin(x)*1/math.tan(x) output = ad.csc(dm) for i in range(len(dm.value)): assert output.value[i] == pytest.approx(value(dm.value[i])) coef = der(dm.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dm.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dm.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dm.derivatives['z'][i]) ### # arcsin ### def test_arcsin_s(s): def value(x): return math.asin(x) output = ad.arcsin(s) assert output.value == pytest.approx(value(s)) assert output.derivatives == {} def test_arcsin_d(b): def value(x): return math.asin(x) def der(x): return 1/math.sqrt(1-x**2) output = ad.arcsin(b) assert output.value == pytest.approx(value(b.value)) coef = der(b.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_arcsin_no_change(b): b_d = b.derivatives output = ad.arcsin(b) assert b_d == b.derivatives def test_arcsin_sm(m): def value(x): return math.asin(x) output = ad.arcsin(m) for i in range(len(m)): assert output.value[i] == pytest.approx(value(m[i])) assert output.derivatives == {} def test_arcsin_dm(dm): def value(x): return math.asin(x) def der(x): return 1/math.sqrt(1-x**2) output = ad.arcsin(dm) for i in range(len(dm.value)): assert output.value[i] == pytest.approx(value(dm.value[i])) coef = der(dm.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dm.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dm.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dm.derivatives['z'][i]) ### # arccos ### def test_arccos_s(s): def value(x): return math.acos(x) output = ad.arccos(s) assert output.value == pytest.approx(value(s)) assert output.derivatives == {} def test_arccos_d(b): def value(x): return math.acos(x) def der(x): return -1/math.sqrt(1-x**2) output = ad.arccos(b) assert output.value == pytest.approx(value(b.value)) coef = der(b.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_arccos_no_change(b): b_d = b.derivatives output = ad.arccos(b) assert b_d == b.derivatives def test_arccos_sm(m): def value(x): return math.acos(x) output = ad.arccos(m) for i in range(len(m)): assert output.value[i] == pytest.approx(value(m[i])) assert output.derivatives == {} def test_arccos_dm(dm): def value(x): return math.acos(x) def der(x): return -1/math.sqrt(1-x**2) output = ad.arccos(dm) for i in range(len(dm.value)): assert output.value[i] == pytest.approx(value(dm.value[i])) coef = der(dm.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dm.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dm.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dm.derivatives['z'][i]) ### # arctan ### def test_arctan_s(s): def value(x): return math.atan(x) output = ad.arctan(s) assert output.value == pytest.approx(value(s)) assert output.derivatives == {} def test_arctan_d(b): def value(x): return math.atan(x) def der(x): return 1/(1+x**2) output = ad.arctan(b) assert output.value == pytest.approx(value(b.value)) coef = der(b.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_arctan_no_change(b): b_d = b.derivatives output = ad.arctan(b) assert b_d == b.derivatives def test_arctan_sm(m): def value(x): return math.atan(x) output = ad.arctan(m) for i in range(len(m)): assert output.value[i] == pytest.approx(value(m[i])) assert output.derivatives == {} def test_arctan_dm(dm): def value(x): return math.atan(x) def der(x): return 1/(1+x**2) output = ad.arctan(dm) for i in range(len(dm.value)): assert output.value[i] == pytest.approx(value(dm.value[i])) coef = der(dm.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dm.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dm.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dm.derivatives['z'][i]) ### # arccot ### def test_arccot_s(s): def value(x): return math.pi/2 - math.atan(x) output = ad.arccot(s) assert output.value == pytest.approx(value(s)) assert output.derivatives == {} def test_arccot_d(b): def value(x): return math.pi/2 - math.atan(x) def der(x): return -1/(1+x**2) output = ad.arccot(b) assert output.value == pytest.approx(value(b.value)) coef = der(b.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_arccot_no_change(b): b_d = b.derivatives output = ad.arccot(b) assert b_d == b.derivatives def test_arccot_sm(m): def value(x): return math.pi/2 - math.atan(x) output = ad.arccot(m) for i in range(len(m)): assert output.value[i] == pytest.approx(value(m[i])) assert output.derivatives == {} def test_arccot_dm(dm): def value(x): return math.pi/2 - math.atan(x) def der(x): return -1/(1+x**2) output = ad.arccot(dm) for i in range(len(dm.value)): assert output.value[i] == pytest.approx(value(dm.value[i])) coef = der(dm.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dm.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dm.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dm.derivatives['z'][i]) ### # arcsec ### def test_arcsec_s(sinv): def value(x): return math.acos(1/x) output = ad.arcsec(sinv) assert output.value == pytest.approx(value(sinv)) assert output.derivatives == {} def test_arcsec_d(binv): def value(x): return math.acos(1/x) def der(x): return 1/(abs(x)*math.sqrt(x**2-1)) output = ad.arcsec(binv) assert output.value == pytest.approx(value(binv.value)) coef = der(binv.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_arcsec_no_change(binv): b_d = binv.derivatives output = ad.arcsec(binv) assert b_d == binv.derivatives def test_arcsec_sm(minv): def value(x): return math.acos(1/x) output = ad.arcsec(minv) for i in range(len(minv)): assert output.value[i] == pytest.approx(value(minv[i])) assert output.derivatives == {} def test_arcsec_dm(dminv): def value(x): return math.acos(1/x) def der(x): return 1/(abs(x)*math.sqrt(x**2-1)) output = ad.arcsec(dminv) for i in range(len(dminv.value)): assert output.value[i] == pytest.approx(value(dminv.value[i])) coef = der(dminv.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dminv.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dminv.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dminv.derivatives['z'][i]) ### # arccsc ### def test_arccsc_s(sinv): def value(x): return math.asin(1/x) output = ad.arccsc(sinv) assert output.value == pytest.approx(value(sinv)) assert output.derivatives == {} def test_arccsc_d(binv): def value(x): return math.asin(1/x) def der(x): return -1/(abs(x)*math.sqrt(x**2-1)) output = ad.arccsc(binv) assert output.value == pytest.approx(value(binv.value)) coef = der(binv.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_arccsc_no_change(binv): b_d = binv.derivatives output = ad.arccsc(binv) assert b_d == binv.derivatives def test_arccsc_sm(minv): def value(x): return math.asin(1/x) output = ad.arccsc(minv) for i in range(len(minv)): assert output.value[i] == pytest.approx(value(minv[i])) assert output.derivatives == {} def test_arccsc_dm(dminv): def value(x): return math.asin(1/x) def der(x): return -1/(abs(x)*math.sqrt(x**2-1)) output = ad.arccsc(dminv) for i in range(len(dminv.value)): assert output.value[i] == pytest.approx(value(dminv.value[i])) coef = der(dminv.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dminv.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dminv.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dminv.derivatives['z'][i]) ### # sinh ### def test_sinh_s(s): def value(x): return math.sinh(x) output = ad.sinh(s) assert output.value == pytest.approx(value(s)) assert output.derivatives == {} def test_sinh_d(b): def value(x): return math.sinh(x) def der(x): return math.cosh(x) output = ad.sinh(b) assert output.value == pytest.approx(value(b.value)) coef = der(b.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_sinh_no_change(b): b_d = b.derivatives output = ad.sinh(b) assert b_d == b.derivatives def test_sinh_sm(m): def value(x): return math.sinh(x) output = ad.sinh(m) for i in range(len(m)): assert output.value[i] == pytest.approx(value(m[i])) assert output.derivatives == {} def test_sinh_dm(dm): def value(x): return math.sinh(x) def der(x): return math.cosh(x) output = ad.sinh(dm) for i in range(len(dm.value)): assert output.value[i] == pytest.approx(value(dm.value[i])) coef = der(dm.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dm.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dm.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dm.derivatives['z'][i]) ### # cosh ### def test_cosh_s(s): def value(x): return math.cosh(x) output = ad.cosh(s) assert output.value == pytest.approx(value(s)) assert output.derivatives == {} def test_cosh_d(b): def value(x): return math.cosh(x) def der(x): return math.sinh(x) output = ad.cosh(b) assert output.value == pytest.approx(value(b.value)) coef = der(b.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_cosh_no_change(b): b_d = b.derivatives output = ad.cosh(b) assert b_d == b.derivatives def test_cosh_sm(m): def value(x): return math.cosh(x) output = ad.cosh(m) for i in range(len(m)): assert output.value[i] == pytest.approx(value(m[i])) assert output.derivatives == {} def test_cosh_dm(dm): def value(x): return math.cosh(x) def der(x): return math.sinh(x) output = ad.cosh(dm) for i in range(len(dm.value)): assert output.value[i] == pytest.approx(value(dm.value[i])) coef = der(dm.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dm.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dm.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dm.derivatives['z'][i]) ### # tanh ### def test_tanh_s(s): def value(x): return math.tanh(x) output = ad.tanh(s) assert output.value == pytest.approx(value(s)) assert output.derivatives == {} def test_tanh_d(b): def value(x): return math.tanh(x) def der(x): return 1/(math.cosh(x)**2) output = ad.tanh(b) assert output.value == pytest.approx(value(b.value)) coef = der(b.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_tanh_no_change(b): b_d = b.derivatives output = ad.tanh(b) assert b_d == b.derivatives def test_tanh_sm(m): def value(x): return math.tanh(x) output = ad.tanh(m) for i in range(len(m)): assert output.value[i] == pytest.approx(value(m[i])) assert output.derivatives == {} def test_tanh_dm(dm): def value(x): return math.tanh(x) def der(x): return 1/(math.cosh(x)**2) output = ad.tanh(dm) for i in range(len(dm.value)): assert output.value[i] == pytest.approx(value(dm.value[i])) coef = der(dm.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dm.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dm.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dm.derivatives['z'][i]) ### # coth ### def test_coth_s(s): def value(x): return 1/math.tanh(x) output = ad.coth(s) assert output.value == pytest.approx(value(s)) assert output.derivatives == {} def test_coth_d(b): def value(x): return 1/math.tanh(x) def der(x): return -1/(math.sinh(x)**2) output = ad.coth(b) assert output.value == pytest.approx(value(b.value)) coef = der(b.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_coth_no_change(b): b_d = b.derivatives output = ad.coth(b) assert b_d == b.derivatives def test_coth_sm(m): def value(x): return 1/math.tanh(x) output = ad.coth(m) for i in range(len(m)): assert output.value[i] == pytest.approx(value(m[i])) assert output.derivatives == {} def test_coth_dm(dm): def value(x): return 1/math.tanh(x) def der(x): return -1/(math.sinh(x)**2) output = ad.coth(dm) for i in range(len(dm.value)): assert output.value[i] == pytest.approx(value(dm.value[i])) coef = der(dm.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dm.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dm.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dm.derivatives['z'][i]) ### # sech ### def test_sech_s(s): def value(x): return 1/math.cosh(x) output = ad.sech(s) assert output.value == pytest.approx(value(s)) assert output.derivatives == {} def test_sech_d(b): def value(x): return 1/math.cosh(x) def der(x): return -1/math.cosh(x)*math.tanh(x) output = ad.sech(b) assert output.value == pytest.approx(value(b.value)) coef = der(b.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_sech_no_change(b): b_d = b.derivatives output = ad.sech(b) assert b_d == b.derivatives def test_sech_sm(m): def value(x): return 1/math.cosh(x) output = ad.sech(m) for i in range(len(m)): assert output.value[i] == pytest.approx(value(m[i])) assert output.derivatives == {} def test_sech_dm(dm): def value(x): return 1/math.cosh(x) def der(x): return -1/math.cosh(x)*math.tanh(x) output = ad.sech(dm) for i in range(len(dm.value)): assert output.value[i] == pytest.approx(value(dm.value[i])) coef = der(dm.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dm.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dm.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dm.derivatives['z'][i]) ### # csch ### def test_csch_s(s): def value(x): return 1/math.sinh(x) output = ad.csch(s) assert output.value == pytest.approx(value(s)) assert output.derivatives == {} def test_csch_d(b): def value(x): return 1/math.sinh(x) def der(x): return -1/math.sinh(x)*1/math.tanh(x) output = ad.csch(b) assert output.value == pytest.approx(value(b.value)) coef = der(b.value) assert output.derivatives == pytest.approx({'x':coef*1.2, 'y':coef*9.5, 'z':coef*5}) def test_csch_no_change(b): b_d = b.derivatives output = ad.csch(b) assert b_d == b.derivatives def test_csch_sm(m): def value(x): return 1/math.sinh(x) output = ad.csch(m) for i in range(len(m)): assert output.value[i] == pytest.approx(value(m[i])) assert output.derivatives == {} def test_csch_dm(dm): def value(x): return 1/math.sinh(x) def der(x): return -1/math.sinh(x)*1/math.tanh(x) output = ad.csch(dm) for i in range(len(dm.value)): assert output.value[i] == pytest.approx(value(dm.value[i])) coef = der(dm.value[i]) assert output.derivatives['x'][i] == pytest.approx(coef*dm.derivatives['x'][i]) assert output.derivatives['y'][i] == pytest.approx(coef*dm.derivatives['y'][i]) assert output.derivatives['z'][i] == pytest.approx(coef*dm.derivatives['z'][i])
27.9238
111
0.589436
4,151
26,751
3.738617
0.018791
0.140731
0.161544
0.069592
0.945228
0.938334
0.926928
0.916876
0.87699
0.835879
0
0.012268
0.232103
26,751
957
112
27.952978
0.743209
0.003888
0
0.760331
0
0
0.006601
0
0
0
0
0
0.27686
1
0.286501
false
0
0.00551
0.151515
0.451791
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
9
fa41fcffce341a339ffa13e43dd98c51629656e1
31,360
py
Python
tests/vfs/apfs_file_entry.py
joachimmetz/dfvfs
d6adda412ef6eec46d7fb107a81f68130a1e57f9
[ "Apache-2.0" ]
7
2015-02-28T17:46:25.000Z
2022-01-18T22:56:53.000Z
tests/vfs/apfs_file_entry.py
joachimmetz/dfvfs
d6adda412ef6eec46d7fb107a81f68130a1e57f9
[ "Apache-2.0" ]
null
null
null
tests/vfs/apfs_file_entry.py
joachimmetz/dfvfs
d6adda412ef6eec46d7fb107a81f68130a1e57f9
[ "Apache-2.0" ]
2
2019-08-28T23:47:08.000Z
2021-07-23T07:15:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for the file entry implementation using pyfsapfs.""" import unittest from dfvfs.lib import definitions from dfvfs.path import factory as path_spec_factory from dfvfs.resolver import context from dfvfs.resolver import resolver from dfvfs.vfs import attribute from dfvfs.vfs import apfs_attribute from dfvfs.vfs import apfs_file_entry from dfvfs.vfs import apfs_file_system from tests import test_lib as shared_test_lib class APFSDirectoryTest(shared_test_lib.BaseTestCase): """Tests the APFS directory.""" def setUp(self): """Sets up the needed objects used throughout the test.""" self._resolver_context = context.Context() test_path = self._GetTestFilePath(['apfs.raw']) self._SkipIfPathNotExists(test_path) test_os_path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_OS, location=test_path) test_raw_path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_RAW, parent=test_os_path_spec) self._apfs_container_path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS_CONTAINER, location='/apfs1', parent=test_raw_path_spec) self._apfs_path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, location='/', parent=self._apfs_container_path_spec) self._file_system = apfs_file_system.APFSFileSystem( self._resolver_context, self._apfs_path_spec) self._file_system.Open() def tearDown(self): """Cleans up the needed objects used throughout the test.""" self._resolver_context.Empty() def testInitialize(self): """Tests the __init__ function.""" directory = apfs_file_entry.APFSDirectory( self._file_system, self._apfs_path_spec) self.assertIsNotNone(directory) def testEntriesGenerator(self): """Tests the _EntriesGenerator function.""" directory = apfs_file_entry.APFSDirectory( self._file_system, self._apfs_path_spec) self.assertIsNotNone(directory) entries = list(directory.entries) self.assertEqual(len(entries), 4) class APFSFileEntryTest(shared_test_lib.BaseTestCase): """Tests the APFS file entry.""" # pylint: disable=protected-access _IDENTIFIER_A_DIRECTORY = 16 _IDENTIFIER_A_FILE = 17 _IDENTIFIER_A_LINK = 22 _IDENTIFIER_ANOTHER_FILE = 21 def setUp(self): """Sets up the needed objects used throughout the test.""" self._resolver_context = context.Context() test_path = self._GetTestFilePath(['apfs.raw']) self._SkipIfPathNotExists(test_path) test_os_path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_OS, location=test_path) test_raw_path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_RAW, parent=test_os_path_spec) self._apfs_container_path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS_CONTAINER, location='/apfs1', parent=test_raw_path_spec) self._apfs_path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, location='/', parent=self._apfs_container_path_spec) self._file_system = apfs_file_system.APFSFileSystem( self._resolver_context, self._apfs_path_spec) self._file_system.Open() def tearDown(self): """Cleans up the needed objects used throughout the test.""" self._resolver_context.Empty() def testInitialize(self): """Tests the __init__ function.""" file_entry = apfs_file_entry.APFSFileEntry( self._resolver_context, self._file_system, self._apfs_path_spec) self.assertIsNotNone(file_entry) # TODO: add tests for _GetDirectory # TODO: add tests for _GetLink # TODO: add tests for _GetStat # TODO: add tests for _GetSubFileEntries def testAccessTime(self): """Test the access_time property.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertIsNotNone(file_entry.access_time) def testAddedTime(self): """Test the added_time property.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertIsNotNone(file_entry.added_time) def testChangeTime(self): """Test the change_time property.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertIsNotNone(file_entry.change_time) def testCreationTime(self): """Test the creation_time property.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertIsNotNone(file_entry.creation_time) def testModificationTime(self): """Test the modification_time property.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertIsNotNone(file_entry.modification_time) def testName(self): """Test the name property.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertEqual(file_entry.name, 'another_file') def testSize(self): """Test the size property.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertEqual(file_entry.size, 22) def testGetAttributes(self): """Tests the _GetAttributes function.""" test_location = '/a_directory/a_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_A_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertIsNone(file_entry._attributes) file_entry._GetAttributes() self.assertIsNotNone(file_entry._attributes) self.assertEqual(len(file_entry._attributes), 2) test_attribute = file_entry._attributes[0] self.assertIsInstance(test_attribute, attribute.StatAttribute) test_attribute = file_entry._attributes[1] self.assertIsInstance(test_attribute, apfs_attribute.APFSExtendedAttribute) self.assertEqual(test_attribute.name, 'myxattr') test_attribute_value_data = test_attribute.read() self.assertEqual(test_attribute_value_data, b'My extended attribute') def testGetStat(self): """Tests the _GetStat function.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) stat_object = file_entry._GetStat() self.assertIsNotNone(stat_object) self.assertEqual(stat_object.type, stat_object.TYPE_FILE) self.assertEqual(stat_object.size, 22) self.assertEqual(stat_object.mode, 420) self.assertEqual(stat_object.uid, 99) self.assertEqual(stat_object.gid, 99) self.assertEqual(stat_object.atime, 1627013324) self.assertEqual(stat_object.atime_nano, 9960526) self.assertEqual(stat_object.ctime, 1627013324) self.assertEqual(stat_object.ctime_nano, 9982411) self.assertEqual(stat_object.crtime, 1627013324) self.assertEqual(stat_object.crtime_nano, 9982411) self.assertEqual(stat_object.mtime, 1627013324) self.assertEqual(stat_object.mtime_nano, 9960526) def testGetStatAttribute(self): """Tests the _GetStatAttribute function.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_HFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) stat_attribute = file_entry._GetStatAttribute() self.assertIsNotNone(stat_attribute) self.assertEqual(stat_attribute.group_identifier, 99) self.assertEqual(stat_attribute.inode_number, 21) self.assertEqual(stat_attribute.mode, 0o644) # TODO: implement number of hard links support in pyfshfs # self.assertEqual(stat_attribute.number_of_links, 1) self.assertEqual(stat_attribute.owner_identifier, 99) self.assertEqual(stat_attribute.size, 22) self.assertEqual(stat_attribute.type, stat_attribute.TYPE_FILE) def testGetAPFSFileEntry(self): """Tests the GetAPFSFileEntry function.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) fsafps_file_entry = file_entry.GetAPFSFileEntry() self.assertIsNotNone(fsafps_file_entry) def testGetFileEntryByPathSpec(self): """Tests the GetFileEntryByPathSpec function.""" path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_A_FILE, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) def testGetLinkedFileEntry(self): """Tests the GetLinkedFileEntry function.""" test_location = '/a_link' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_A_LINK, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) linked_file_entry = file_entry.GetLinkedFileEntry() self.assertIsNotNone(linked_file_entry) self.assertEqual(linked_file_entry.name, 'another_file') def testGetParentFileEntry(self): """Tests the GetParentFileEntry function.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) parent_file_entry = file_entry.GetParentFileEntry() self.assertIsNotNone(parent_file_entry) self.assertEqual(parent_file_entry.name, 'a_directory') def testIsFunctions(self): """Tests the Is? functions.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertFalse(file_entry.IsRoot()) self.assertFalse(file_entry.IsVirtual()) self.assertTrue(file_entry.IsAllocated()) self.assertFalse(file_entry.IsDevice()) self.assertFalse(file_entry.IsDirectory()) self.assertTrue(file_entry.IsFile()) self.assertFalse(file_entry.IsLink()) self.assertFalse(file_entry.IsPipe()) self.assertFalse(file_entry.IsSocket()) test_location = '/a_directory' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_A_DIRECTORY, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertFalse(file_entry.IsRoot()) self.assertFalse(file_entry.IsVirtual()) self.assertTrue(file_entry.IsAllocated()) self.assertFalse(file_entry.IsDevice()) self.assertTrue(file_entry.IsDirectory()) self.assertFalse(file_entry.IsFile()) self.assertFalse(file_entry.IsLink()) self.assertFalse(file_entry.IsPipe()) self.assertFalse(file_entry.IsSocket()) path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, location='/', parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertTrue(file_entry.IsRoot()) self.assertFalse(file_entry.IsVirtual()) self.assertTrue(file_entry.IsAllocated()) self.assertFalse(file_entry.IsDevice()) self.assertTrue(file_entry.IsDirectory()) self.assertFalse(file_entry.IsFile()) self.assertFalse(file_entry.IsLink()) self.assertFalse(file_entry.IsPipe()) self.assertFalse(file_entry.IsSocket()) def testSubFileEntries(self): """Tests the number_of_sub_file_entries and sub_file_entries properties.""" path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, location='/', parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertEqual(file_entry.number_of_sub_file_entries, 4) expected_sub_file_entry_names = [ '.fseventsd', 'a_directory', 'a_link', 'passwords.txt'] sub_file_entry_names = [] for sub_file_entry in file_entry.sub_file_entries: sub_file_entry_names.append(sub_file_entry.name) self.assertEqual( len(sub_file_entry_names), len(expected_sub_file_entry_names)) self.assertEqual( sorted(sub_file_entry_names), sorted(expected_sub_file_entry_names)) # Test a path specification without a location. path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_A_DIRECTORY, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertEqual(file_entry.number_of_sub_file_entries, 2) def testDataStreams(self): """Tests the data streams functionality.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertEqual(file_entry.number_of_data_streams, 1) data_stream_names = [] for data_stream in file_entry.data_streams: data_stream_names.append(data_stream.name) self.assertEqual(data_stream_names, ['']) test_location = '/a_directory' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_A_DIRECTORY, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertEqual(file_entry.number_of_data_streams, 0) data_stream_names = [] for data_stream in file_entry.data_streams: data_stream_names.append(data_stream.name) self.assertEqual(data_stream_names, []) def testGetDataStream(self): """Tests the GetDataStream function.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) data_stream_name = '' data_stream = file_entry.GetDataStream(data_stream_name) self.assertIsNotNone(data_stream) class APFSFileEntryTestEncrypted(shared_test_lib.BaseTestCase): """Tests the APFS file entry on an encrypted file system.""" _APFS_PASSWORD = 'apfs-TEST' _IDENTIFIER_A_DIRECTORY = 18 _IDENTIFIER_A_LINK = 22 _IDENTIFIER_ANOTHER_FILE = 21 def setUp(self): """Sets up the needed objects used throughout the test.""" self._resolver_context = context.Context() test_path = self._GetTestFilePath(['apfs_encrypted.dmg']) self._SkipIfPathNotExists(test_path) test_os_path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_OS, location=test_path) test_raw_path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_RAW, parent=test_os_path_spec) test_tsk_partition_path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_TSK_PARTITION, location='/p1', parent=test_raw_path_spec) self._apfs_container_path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS_CONTAINER, location='/apfs1', parent=test_tsk_partition_path_spec) self._apfs_path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, location='/', parent=self._apfs_container_path_spec) resolver.Resolver.key_chain.SetCredential( self._apfs_container_path_spec, 'password', self._APFS_PASSWORD) self._file_system = apfs_file_system.APFSFileSystem( self._resolver_context, self._apfs_path_spec) self._file_system.Open() def tearDown(self): """Cleans up the needed objects used throughout the test.""" self._resolver_context.Empty() def testInitialize(self): """Tests the __init__ function.""" file_entry = apfs_file_entry.APFSFileEntry( self._resolver_context, self._file_system, self._apfs_path_spec) self.assertIsNotNone(file_entry) # TODO: add tests for _GetDirectory # TODO: add tests for _GetLink # TODO: add tests for _GetStat # TODO: add tests for _GetSubFileEntries def testAccessTime(self): """Test the access_time property.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertIsNotNone(file_entry.access_time) def testChangeTime(self): """Test the change_time property.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertIsNotNone(file_entry.change_time) def testCreationTime(self): """Test the creation_time property.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertIsNotNone(file_entry.creation_time) def testModificationTime(self): """Test the modification_time property.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertIsNotNone(file_entry.modification_time) def testName(self): """Test the name property.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertEqual(file_entry.name, 'another_file') def testSize(self): """Test the size property.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertEqual(file_entry.size, 22) def testGetAPFSFileEntry(self): """Tests the GetAPFSFileEntry function.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) fsafps_file_entry = file_entry.GetAPFSFileEntry() self.assertIsNotNone(fsafps_file_entry) def testGetFileEntryByPathSpec(self): """Tests the GetFileEntryByPathSpec function.""" path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=20, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) def testGetLinkedFileEntry(self): """Tests the GetLinkedFileEntry function.""" test_location = '/a_link' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_A_LINK, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) linked_file_entry = file_entry.GetLinkedFileEntry() self.assertIsNotNone(linked_file_entry) self.assertEqual(linked_file_entry.name, 'a_file') def testGetParentFileEntry(self): """Tests the GetParentFileEntry function.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) parent_file_entry = file_entry.GetParentFileEntry() self.assertIsNotNone(parent_file_entry) self.assertEqual(parent_file_entry.name, 'a_directory') def testGetStat(self): """Tests the GetStat function.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) stat_object = file_entry.GetStat() self.assertIsNotNone(stat_object) self.assertEqual(stat_object.type, stat_object.TYPE_FILE) self.assertEqual(stat_object.size, 22) self.assertEqual(stat_object.mode, 420) self.assertEqual(stat_object.uid, 99) self.assertEqual(stat_object.gid, 99) self.assertEqual(stat_object.atime, 1539321508) self.assertEqual(stat_object.atime_nano, 9478457) self.assertEqual(stat_object.ctime, 1539321508) self.assertEqual(stat_object.ctime_nano, 9495127) self.assertEqual(stat_object.crtime, 1539321508) self.assertEqual(stat_object.crtime_nano, 9495127) self.assertEqual(stat_object.mtime, 1539321508) self.assertEqual(stat_object.mtime_nano, 9478457) def testIsFunctions(self): """Tests the Is? functions.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertFalse(file_entry.IsRoot()) self.assertFalse(file_entry.IsVirtual()) self.assertTrue(file_entry.IsAllocated()) self.assertFalse(file_entry.IsDevice()) self.assertFalse(file_entry.IsDirectory()) self.assertTrue(file_entry.IsFile()) self.assertFalse(file_entry.IsLink()) self.assertFalse(file_entry.IsPipe()) self.assertFalse(file_entry.IsSocket()) test_location = '/a_directory' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_A_DIRECTORY, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertFalse(file_entry.IsRoot()) self.assertFalse(file_entry.IsVirtual()) self.assertTrue(file_entry.IsAllocated()) self.assertFalse(file_entry.IsDevice()) self.assertTrue(file_entry.IsDirectory()) self.assertFalse(file_entry.IsFile()) self.assertFalse(file_entry.IsLink()) self.assertFalse(file_entry.IsPipe()) self.assertFalse(file_entry.IsSocket()) path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, location='/', parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertTrue(file_entry.IsRoot()) self.assertFalse(file_entry.IsVirtual()) self.assertTrue(file_entry.IsAllocated()) self.assertFalse(file_entry.IsDevice()) self.assertTrue(file_entry.IsDirectory()) self.assertFalse(file_entry.IsFile()) self.assertFalse(file_entry.IsLink()) self.assertFalse(file_entry.IsPipe()) self.assertFalse(file_entry.IsSocket()) def testSubFileEntries(self): """Tests the number_of_sub_file_entries and sub_file_entries properties.""" path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, location='/', parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertEqual(file_entry.number_of_sub_file_entries, 4) expected_sub_file_entry_names = [ '.fseventsd', 'a_directory', 'a_link', 'passwords.txt'] sub_file_entry_names = [] for sub_file_entry in file_entry.sub_file_entries: sub_file_entry_names.append(sub_file_entry.name) self.assertEqual( len(sub_file_entry_names), len(expected_sub_file_entry_names)) self.assertEqual( sorted(sub_file_entry_names), sorted(expected_sub_file_entry_names)) def testDataStreams(self): """Tests the data streams functionality.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertEqual(file_entry.number_of_data_streams, 1) data_stream_names = [] for data_stream in file_entry.data_streams: data_stream_names.append(data_stream.name) self.assertEqual(data_stream_names, ['']) test_location = '/a_directory' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_A_DIRECTORY, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) self.assertEqual(file_entry.number_of_data_streams, 0) data_stream_names = [] for data_stream in file_entry.data_streams: data_stream_names.append(data_stream.name) self.assertEqual(data_stream_names, []) def testGetDataStream(self): """Tests the GetDataStream function.""" test_location = '/a_directory/another_file' path_spec = path_spec_factory.Factory.NewPathSpec( definitions.TYPE_INDICATOR_APFS, identifier=self._IDENTIFIER_ANOTHER_FILE, location=test_location, parent=self._apfs_container_path_spec) file_entry = self._file_system.GetFileEntryByPathSpec(path_spec) self.assertIsNotNone(file_entry) data_stream_name = '' data_stream = file_entry.GetDataStream(data_stream_name) self.assertIsNotNone(data_stream) if __name__ == '__main__': unittest.main()
38.573186
79
0.762946
3,722
31,360
6.030897
0.058839
0.089411
0.041119
0.037778
0.928053
0.913173
0.88729
0.885063
0.885063
0.880964
0
0.007602
0.148438
31,360
812
80
38.62069
0.832953
0.072513
0
0.863714
0
0
0.034331
0.02254
0
0
0
0.001232
0.308348
1
0.073254
false
0.006814
0.017036
0
0.109029
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
fa6ea9a264baea235ed068ac5d670da8012e5ef6
261
py
Python
transformer/result/__init__.py
SimpleConstructs/fixed-width-parser
b9bb4953e66dcea2b6ce3aeb2fed58a3f34a784b
[ "Apache-2.0" ]
null
null
null
transformer/result/__init__.py
SimpleConstructs/fixed-width-parser
b9bb4953e66dcea2b6ce3aeb2fed58a3f34a784b
[ "Apache-2.0" ]
3
2021-07-18T14:34:38.000Z
2021-07-25T12:49:09.000Z
transformer/result/__init__.py
SimpleConstructs/fixed-width-transformer
b9bb4953e66dcea2b6ce3aeb2fed58a3f34a784b
[ "Apache-2.0" ]
null
null
null
from transformer.result.result_config import ResultMapperConfig, ResultFormatterConfig, ResultFieldFormat, ResultProducerConfig from transformer.result.result_mapper import ResultMapper from transformer.result.result_formatter import DefaultArrayResultFormatter
87
127
0.911877
24
261
9.791667
0.541667
0.191489
0.268085
0.344681
0
0
0
0
0
0
0
0
0.05364
261
3
128
87
0.951417
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
fa72529d66e1348bac437134a0260ad7ab88c977
131
py
Python
three.py/lights/__init__.py
lukestanley/three.py
a3fa99cb3553aca8c74ceabb8203edeb55450803
[ "MIT" ]
80
2019-04-04T13:41:32.000Z
2022-01-12T18:40:19.000Z
three.py/lights/__init__.py
lukestanley/three.py
a3fa99cb3553aca8c74ceabb8203edeb55450803
[ "MIT" ]
9
2019-04-04T14:43:50.000Z
2020-03-29T04:50:53.000Z
three.py/lights/__init__.py
lukestanley/three.py
a3fa99cb3553aca8c74ceabb8203edeb55450803
[ "MIT" ]
17
2019-04-04T14:20:42.000Z
2022-03-03T16:26:29.000Z
from lights.Light import * from lights.AmbientLight import * from lights.DirectionalLight import * from lights.PointLight import *
26.2
37
0.816794
16
131
6.6875
0.4375
0.373832
0.448598
0
0
0
0
0
0
0
0
0
0.122137
131
4
38
32.75
0.930435
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
d72de9d0cff1b544ca9f9ac56dcb1f5b332e5fe4
137
py
Python
source/api/allocation/__init__.py
eaxr/elasticsearch-cli
4eae551d8099f02a30443749eae09efbb636ea57
[ "MIT" ]
4
2019-07-13T13:29:31.000Z
2021-04-01T10:05:25.000Z
source/api/allocation/__init__.py
eaxr/elasticsearch-cli
4eae551d8099f02a30443749eae09efbb636ea57
[ "MIT" ]
null
null
null
source/api/allocation/__init__.py
eaxr/elasticsearch-cli
4eae551d8099f02a30443749eae09efbb636ea57
[ "MIT" ]
4
2019-08-21T15:59:37.000Z
2021-04-01T11:48:41.000Z
from .allocation import allocation_explain from .allocation import allocation_enable __all__ = [allocation_explain, allocation_enable]
22.833333
49
0.854015
15
137
7.266667
0.4
0.256881
0.366972
0.550459
0
0
0
0
0
0
0
0
0.10219
137
5
50
27.4
0.886179
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
7
d75d26bd0ee84101a9f7bb311256e42cb3749a44
144
py
Python
sbpl_perception/src/scripts/tools/fat_dataset/lib/dataset/__init__.py
Tacha-S/perception
aefbb5612c84b46a745c7db4fe860a2456d6e7ef
[ "BSD-3-Clause" ]
229
2018-09-08T08:38:59.000Z
2022-03-29T07:09:22.000Z
lib/dataset/__init__.py
greatwallet/mx-DeepIM
74b6df2e3f6be7d6fed23ba2f553dab5ae950700
[ "Apache-2.0" ]
116
2019-03-10T23:02:44.000Z
2021-07-22T15:28:14.000Z
lib/dataset/__init__.py
greatwallet/mx-DeepIM
74b6df2e3f6be7d6fed23ba2f553dab5ae950700
[ "Apache-2.0" ]
59
2018-09-08T07:56:33.000Z
2022-03-25T22:01:42.000Z
from __future__ import absolute_import from .imdb import IMDB from .LM6D_REFINE import LM6D_REFINE from .LM6D_REFINE_SYN import LM6D_REFINE_SYN
28.8
44
0.868056
23
144
4.956522
0.347826
0.350877
0.245614
0
0
0
0
0
0
0
0
0.03125
0.111111
144
4
45
36
0.859375
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
d7738ce1da416d4cfaab3f4cec7cda60040af853
92
py
Python
parameters_8000.py
chitohugo/MassiveSMS
05b528de146498531c967aff1ee4fe72720febb3
[ "BSD-3-Clause" ]
null
null
null
parameters_8000.py
chitohugo/MassiveSMS
05b528de146498531c967aff1ee4fe72720febb3
[ "BSD-3-Clause" ]
null
null
null
parameters_8000.py
chitohugo/MassiveSMS
05b528de146498531c967aff1ee4fe72720febb3
[ "BSD-3-Clause" ]
null
null
null
password="pbkdf2(1000,20,sha512)$990a07629d517732$4961bd681e1672a7a6b0c3c05c222320df4d4397"
46
91
0.891304
7
92
11.714286
1
0
0
0
0
0
0
0
0
0
0
0.571429
0.01087
92
1
92
92
0.32967
0
0
0
0
0
0.869565
0.869565
0
0
0
0
0
1
0
false
1
0
0
0
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
8
d78752720387f72a771f2d3a72c740c0d6284448
32,456
py
Python
generated/resources/global_vrouter_config_heat.py
atsgen/tf-heat-plugin
5c0405eb93287368f60f7e227e5af5ada6bfeed2
[ "Apache-2.0" ]
1
2020-04-05T19:43:40.000Z
2020-04-05T19:43:40.000Z
generated/resources/global_vrouter_config_heat.py
atsgen/tf-heat-plugin
5c0405eb93287368f60f7e227e5af5ada6bfeed2
[ "Apache-2.0" ]
null
null
null
generated/resources/global_vrouter_config_heat.py
atsgen/tf-heat-plugin
5c0405eb93287368f60f7e227e5af5ada6bfeed2
[ "Apache-2.0" ]
1
2020-08-25T12:47:27.000Z
2020-08-25T12:47:27.000Z
# AUTO-GENERATED file from IFMapApiGenerator. Do Not Edit! from contrail_heat.resources import contrail try: from heat.common.i18n import _ except ImportError: pass from heat.engine import attributes from heat.engine import constraints from heat.engine import properties try: from heat.openstack.common import log as logging except ImportError: from oslo_log import log as logging import uuid from vnc_api import vnc_api LOG = logging.getLogger(__name__) class ContrailGlobalVrouterConfig(contrail.ContrailResource): PROPERTIES = ( NAME, FQ_NAME, ECMP_HASHING_INCLUDE_FIELDS, ECMP_HASHING_INCLUDE_FIELDS_HASHING_CONFIGURED, ECMP_HASHING_INCLUDE_FIELDS_SOURCE_IP, ECMP_HASHING_INCLUDE_FIELDS_DESTINATION_IP, ECMP_HASHING_INCLUDE_FIELDS_IP_PROTOCOL, ECMP_HASHING_INCLUDE_FIELDS_SOURCE_PORT, ECMP_HASHING_INCLUDE_FIELDS_DESTINATION_PORT, FLOW_AGING_TIMEOUT_LIST, FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT, FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_PROTOCOL, FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_PORT, FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_TIMEOUT_IN_SECONDS, DISPLAY_NAME, FORWARDING_MODE, FLOW_EXPORT_RATE, LINKLOCAL_SERVICES, LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_NAME, LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_IP, LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_PORT, LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_DNS_SERVICE_NAME, LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_SERVICE_PORT, LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_SERVICE_IP, ENCAPSULATION_PRIORITIES, ENCAPSULATION_PRIORITIES_ENCAPSULATION, VXLAN_NETWORK_IDENTIFIER_MODE, GLOBAL_SYSTEM_CONFIG ) = ( 'name', 'fq_name', 'ecmp_hashing_include_fields', 'ecmp_hashing_include_fields_hashing_configured', 'ecmp_hashing_include_fields_source_ip', 'ecmp_hashing_include_fields_destination_ip', 'ecmp_hashing_include_fields_ip_protocol', 'ecmp_hashing_include_fields_source_port', 'ecmp_hashing_include_fields_destination_port', 'flow_aging_timeout_list', 'flow_aging_timeout_list_flow_aging_timeout', 'flow_aging_timeout_list_flow_aging_timeout_protocol', 'flow_aging_timeout_list_flow_aging_timeout_port', 'flow_aging_timeout_list_flow_aging_timeout_timeout_in_seconds', 'display_name', 'forwarding_mode', 'flow_export_rate', 'linklocal_services', 'linklocal_services_linklocal_service_entry', 'linklocal_services_linklocal_service_entry_linklocal_service_name', 'linklocal_services_linklocal_service_entry_linklocal_service_ip', 'linklocal_services_linklocal_service_entry_linklocal_service_port', 'linklocal_services_linklocal_service_entry_ip_fabric_dns_service_name', 'linklocal_services_linklocal_service_entry_ip_fabric_service_port', 'linklocal_services_linklocal_service_entry_ip_fabric_service_ip', 'encapsulation_priorities', 'encapsulation_priorities_encapsulation', 'vxlan_network_identifier_mode', 'global_system_config' ) properties_schema = { NAME: properties.Schema( properties.Schema.STRING, _('NAME.'), update_allowed=True, required=False, ), FQ_NAME: properties.Schema( properties.Schema.STRING, _('FQ_NAME.'), update_allowed=True, required=False, ), ECMP_HASHING_INCLUDE_FIELDS: properties.Schema( properties.Schema.MAP, _('ECMP_HASHING_INCLUDE_FIELDS.'), update_allowed=True, required=False, schema={ ECMP_HASHING_INCLUDE_FIELDS_HASHING_CONFIGURED: properties.Schema( properties.Schema.BOOLEAN, _('ECMP_HASHING_INCLUDE_FIELDS_HASHING_CONFIGURED.'), update_allowed=True, required=False, ), ECMP_HASHING_INCLUDE_FIELDS_SOURCE_IP: properties.Schema( properties.Schema.BOOLEAN, _('ECMP_HASHING_INCLUDE_FIELDS_SOURCE_IP.'), update_allowed=True, required=False, ), ECMP_HASHING_INCLUDE_FIELDS_DESTINATION_IP: properties.Schema( properties.Schema.BOOLEAN, _('ECMP_HASHING_INCLUDE_FIELDS_DESTINATION_IP.'), update_allowed=True, required=False, ), ECMP_HASHING_INCLUDE_FIELDS_IP_PROTOCOL: properties.Schema( properties.Schema.BOOLEAN, _('ECMP_HASHING_INCLUDE_FIELDS_IP_PROTOCOL.'), update_allowed=True, required=False, ), ECMP_HASHING_INCLUDE_FIELDS_SOURCE_PORT: properties.Schema( properties.Schema.BOOLEAN, _('ECMP_HASHING_INCLUDE_FIELDS_SOURCE_PORT.'), update_allowed=True, required=False, ), ECMP_HASHING_INCLUDE_FIELDS_DESTINATION_PORT: properties.Schema( properties.Schema.BOOLEAN, _('ECMP_HASHING_INCLUDE_FIELDS_DESTINATION_PORT.'), update_allowed=True, required=False, ), } ), FLOW_AGING_TIMEOUT_LIST: properties.Schema( properties.Schema.MAP, _('FLOW_AGING_TIMEOUT_LIST.'), update_allowed=True, required=False, schema={ FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT: properties.Schema( properties.Schema.LIST, _('FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT.'), update_allowed=True, required=False, schema=properties.Schema( properties.Schema.MAP, schema={ FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_PROTOCOL: properties.Schema( properties.Schema.STRING, _('FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_PROTOCOL.'), update_allowed=True, required=False, ), FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_PORT: properties.Schema( properties.Schema.INTEGER, _('FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_PORT.'), update_allowed=True, required=False, ), FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_TIMEOUT_IN_SECONDS: properties.Schema( properties.Schema.INTEGER, _('FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_TIMEOUT_IN_SECONDS.'), update_allowed=True, required=False, ), } ) ), } ), DISPLAY_NAME: properties.Schema( properties.Schema.STRING, _('DISPLAY_NAME.'), update_allowed=True, required=False, ), FORWARDING_MODE: properties.Schema( properties.Schema.STRING, _('FORWARDING_MODE.'), update_allowed=True, required=False, ), FLOW_EXPORT_RATE: properties.Schema( properties.Schema.INTEGER, _('FLOW_EXPORT_RATE.'), update_allowed=True, required=False, ), LINKLOCAL_SERVICES: properties.Schema( properties.Schema.MAP, _('LINKLOCAL_SERVICES.'), update_allowed=True, required=False, schema={ LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY: properties.Schema( properties.Schema.LIST, _('LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY.'), update_allowed=True, required=False, schema=properties.Schema( properties.Schema.MAP, schema={ LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_NAME: properties.Schema( properties.Schema.STRING, _('LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_NAME.'), update_allowed=True, required=False, ), LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_IP: properties.Schema( properties.Schema.STRING, _('LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_IP.'), update_allowed=True, required=False, ), LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_PORT: properties.Schema( properties.Schema.INTEGER, _('LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_PORT.'), update_allowed=True, required=False, ), LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_DNS_SERVICE_NAME: properties.Schema( properties.Schema.STRING, _('LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_DNS_SERVICE_NAME.'), update_allowed=True, required=False, ), LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_SERVICE_PORT: properties.Schema( properties.Schema.INTEGER, _('LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_SERVICE_PORT.'), update_allowed=True, required=False, ), LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_SERVICE_IP: properties.Schema( properties.Schema.LIST, _('LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_SERVICE_IP.'), update_allowed=True, required=False, ), } ) ), } ), ENCAPSULATION_PRIORITIES: properties.Schema( properties.Schema.MAP, _('ENCAPSULATION_PRIORITIES.'), update_allowed=True, required=False, schema={ ENCAPSULATION_PRIORITIES_ENCAPSULATION: properties.Schema( properties.Schema.LIST, _('ENCAPSULATION_PRIORITIES_ENCAPSULATION.'), update_allowed=True, required=False, constraints=[ constraints.AllowedValues([u'MPLSoGRE', u'MPLSoUDP', u'VXLAN']), ], ), } ), VXLAN_NETWORK_IDENTIFIER_MODE: properties.Schema( properties.Schema.STRING, _('VXLAN_NETWORK_IDENTIFIER_MODE.'), update_allowed=True, required=False, ), GLOBAL_SYSTEM_CONFIG: properties.Schema( properties.Schema.STRING, _('GLOBAL_SYSTEM_CONFIG.'), update_allowed=True, required=False, ), } attributes_schema = { NAME: attributes.Schema( _('NAME.'), ), FQ_NAME: attributes.Schema( _('FQ_NAME.'), ), ECMP_HASHING_INCLUDE_FIELDS: attributes.Schema( _('ECMP_HASHING_INCLUDE_FIELDS.'), ), FLOW_AGING_TIMEOUT_LIST: attributes.Schema( _('FLOW_AGING_TIMEOUT_LIST.'), ), DISPLAY_NAME: attributes.Schema( _('DISPLAY_NAME.'), ), FORWARDING_MODE: attributes.Schema( _('FORWARDING_MODE.'), ), FLOW_EXPORT_RATE: attributes.Schema( _('FLOW_EXPORT_RATE.'), ), LINKLOCAL_SERVICES: attributes.Schema( _('LINKLOCAL_SERVICES.'), ), ENCAPSULATION_PRIORITIES: attributes.Schema( _('ENCAPSULATION_PRIORITIES.'), ), VXLAN_NETWORK_IDENTIFIER_MODE: attributes.Schema( _('VXLAN_NETWORK_IDENTIFIER_MODE.'), ), GLOBAL_SYSTEM_CONFIG: attributes.Schema( _('GLOBAL_SYSTEM_CONFIG.'), ), } update_allowed_keys = ('Properties',) def handle_create(self): parent_obj = None if parent_obj is None and self.properties.get(self.GLOBAL_SYSTEM_CONFIG): try: parent_obj = self.vnc_lib().global_system_config_read(id=self.properties.get(self.GLOBAL_SYSTEM_CONFIG)) except vnc_api.NoIdError: parent_obj = self.vnc_lib().global_system_config_read(fq_name_str=self.properties.get(self.GLOBAL_SYSTEM_CONFIG)) except: parent_obj = None if parent_obj is None: raise Exception('Error: parent is not specified in template!') obj_0 = vnc_api.GlobalVrouterConfig(name=self.properties[self.NAME], parent_obj=parent_obj) if self.properties.get(self.ECMP_HASHING_INCLUDE_FIELDS) is not None: obj_1 = vnc_api.EcmpHashingIncludeFields() if self.properties.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_HASHING_CONFIGURED) is not None: obj_1.set_hashing_configured(self.properties.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_HASHING_CONFIGURED)) if self.properties.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_SOURCE_IP) is not None: obj_1.set_source_ip(self.properties.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_SOURCE_IP)) if self.properties.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_DESTINATION_IP) is not None: obj_1.set_destination_ip(self.properties.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_DESTINATION_IP)) if self.properties.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_IP_PROTOCOL) is not None: obj_1.set_ip_protocol(self.properties.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_IP_PROTOCOL)) if self.properties.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_SOURCE_PORT) is not None: obj_1.set_source_port(self.properties.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_SOURCE_PORT)) if self.properties.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_DESTINATION_PORT) is not None: obj_1.set_destination_port(self.properties.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_DESTINATION_PORT)) obj_0.set_ecmp_hashing_include_fields(obj_1) if self.properties.get(self.FLOW_AGING_TIMEOUT_LIST) is not None: obj_1 = vnc_api.FlowAgingTimeoutList() if self.properties.get(self.FLOW_AGING_TIMEOUT_LIST, {}).get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT) is not None: for index_1 in range(len(self.properties.get(self.FLOW_AGING_TIMEOUT_LIST, {}).get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT))): obj_2 = vnc_api.FlowAgingTimeout() if self.properties.get(self.FLOW_AGING_TIMEOUT_LIST, {}).get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT, {})[index_1].get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_PROTOCOL) is not None: obj_2.set_protocol(self.properties.get(self.FLOW_AGING_TIMEOUT_LIST, {}).get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT, {})[index_1].get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_PROTOCOL)) if self.properties.get(self.FLOW_AGING_TIMEOUT_LIST, {}).get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT, {})[index_1].get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_PORT) is not None: obj_2.set_port(self.properties.get(self.FLOW_AGING_TIMEOUT_LIST, {}).get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT, {})[index_1].get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_PORT)) if self.properties.get(self.FLOW_AGING_TIMEOUT_LIST, {}).get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT, {})[index_1].get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_TIMEOUT_IN_SECONDS) is not None: obj_2.set_timeout_in_seconds(self.properties.get(self.FLOW_AGING_TIMEOUT_LIST, {}).get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT, {})[index_1].get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_TIMEOUT_IN_SECONDS)) obj_1.add_flow_aging_timeout(obj_2) obj_0.set_flow_aging_timeout_list(obj_1) if self.properties.get(self.DISPLAY_NAME) is not None: obj_0.set_display_name(self.properties.get(self.DISPLAY_NAME)) if self.properties.get(self.FORWARDING_MODE) is not None: obj_0.set_forwarding_mode(self.properties.get(self.FORWARDING_MODE)) if self.properties.get(self.FLOW_EXPORT_RATE) is not None: obj_0.set_flow_export_rate(self.properties.get(self.FLOW_EXPORT_RATE)) if self.properties.get(self.LINKLOCAL_SERVICES) is not None: obj_1 = vnc_api.LinklocalServicesTypes() if self.properties.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY) is not None: for index_1 in range(len(self.properties.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY))): obj_2 = vnc_api.LinklocalServiceEntryType() if self.properties.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_NAME) is not None: obj_2.set_linklocal_service_name(self.properties.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_NAME)) if self.properties.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_IP) is not None: obj_2.set_linklocal_service_ip(self.properties.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_IP)) if self.properties.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_PORT) is not None: obj_2.set_linklocal_service_port(self.properties.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_PORT)) if self.properties.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_DNS_SERVICE_NAME) is not None: obj_2.set_ip_fabric_DNS_service_name(self.properties.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_DNS_SERVICE_NAME)) if self.properties.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_SERVICE_PORT) is not None: obj_2.set_ip_fabric_service_port(self.properties.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_SERVICE_PORT)) if self.properties.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_SERVICE_IP) is not None: for index_2 in range(len(self.properties.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_SERVICE_IP))): obj_2.add_ip_fabric_service_ip(self.properties.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_SERVICE_IP)[index_2]) obj_1.add_linklocal_service_entry(obj_2) obj_0.set_linklocal_services(obj_1) if self.properties.get(self.ENCAPSULATION_PRIORITIES) is not None: obj_1 = vnc_api.EncapsulationPrioritiesType() if self.properties.get(self.ENCAPSULATION_PRIORITIES, {}).get(self.ENCAPSULATION_PRIORITIES_ENCAPSULATION) is not None: for index_1 in range(len(self.properties.get(self.ENCAPSULATION_PRIORITIES, {}).get(self.ENCAPSULATION_PRIORITIES_ENCAPSULATION))): obj_1.add_encapsulation(self.properties.get(self.ENCAPSULATION_PRIORITIES, {}).get(self.ENCAPSULATION_PRIORITIES_ENCAPSULATION)[index_1]) obj_0.set_encapsulation_priorities(obj_1) if self.properties.get(self.VXLAN_NETWORK_IDENTIFIER_MODE) is not None: obj_0.set_vxlan_network_identifier_mode(self.properties.get(self.VXLAN_NETWORK_IDENTIFIER_MODE)) try: obj_uuid = super(ContrailGlobalVrouterConfig, self).resource_create(obj_0) except: raise Exception(_('global-vrouter-config %s could not be updated.') % self.name) self.resource_id_set(obj_uuid) def handle_update(self, json_snippet, tmpl_diff, prop_diff): try: obj_0 = self.vnc_lib().global_vrouter_config_read( id=self.resource_id ) except: raise Exception(_('global-vrouter-config %s not found.') % self.name) if prop_diff.get(self.ECMP_HASHING_INCLUDE_FIELDS) is not None: obj_1 = vnc_api.EcmpHashingIncludeFields() if prop_diff.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_HASHING_CONFIGURED) is not None: obj_1.set_hashing_configured(prop_diff.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_HASHING_CONFIGURED)) if prop_diff.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_SOURCE_IP) is not None: obj_1.set_source_ip(prop_diff.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_SOURCE_IP)) if prop_diff.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_DESTINATION_IP) is not None: obj_1.set_destination_ip(prop_diff.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_DESTINATION_IP)) if prop_diff.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_IP_PROTOCOL) is not None: obj_1.set_ip_protocol(prop_diff.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_IP_PROTOCOL)) if prop_diff.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_SOURCE_PORT) is not None: obj_1.set_source_port(prop_diff.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_SOURCE_PORT)) if prop_diff.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_DESTINATION_PORT) is not None: obj_1.set_destination_port(prop_diff.get(self.ECMP_HASHING_INCLUDE_FIELDS, {}).get(self.ECMP_HASHING_INCLUDE_FIELDS_DESTINATION_PORT)) obj_0.set_ecmp_hashing_include_fields(obj_1) if prop_diff.get(self.FLOW_AGING_TIMEOUT_LIST) is not None: obj_1 = vnc_api.FlowAgingTimeoutList() if prop_diff.get(self.FLOW_AGING_TIMEOUT_LIST, {}).get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT) is not None: for index_1 in range(len(prop_diff.get(self.FLOW_AGING_TIMEOUT_LIST, {}).get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT))): obj_2 = vnc_api.FlowAgingTimeout() if prop_diff.get(self.FLOW_AGING_TIMEOUT_LIST, {}).get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT, {})[index_1].get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_PROTOCOL) is not None: obj_2.set_protocol(prop_diff.get(self.FLOW_AGING_TIMEOUT_LIST, {}).get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT, {})[index_1].get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_PROTOCOL)) if prop_diff.get(self.FLOW_AGING_TIMEOUT_LIST, {}).get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT, {})[index_1].get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_PORT) is not None: obj_2.set_port(prop_diff.get(self.FLOW_AGING_TIMEOUT_LIST, {}).get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT, {})[index_1].get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_PORT)) if prop_diff.get(self.FLOW_AGING_TIMEOUT_LIST, {}).get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT, {})[index_1].get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_TIMEOUT_IN_SECONDS) is not None: obj_2.set_timeout_in_seconds(prop_diff.get(self.FLOW_AGING_TIMEOUT_LIST, {}).get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT, {})[index_1].get(self.FLOW_AGING_TIMEOUT_LIST_FLOW_AGING_TIMEOUT_TIMEOUT_IN_SECONDS)) obj_1.add_flow_aging_timeout(obj_2) obj_0.set_flow_aging_timeout_list(obj_1) if prop_diff.get(self.DISPLAY_NAME) is not None: obj_0.set_display_name(prop_diff.get(self.DISPLAY_NAME)) if prop_diff.get(self.FORWARDING_MODE) is not None: obj_0.set_forwarding_mode(prop_diff.get(self.FORWARDING_MODE)) if prop_diff.get(self.FLOW_EXPORT_RATE) is not None: obj_0.set_flow_export_rate(prop_diff.get(self.FLOW_EXPORT_RATE)) if prop_diff.get(self.LINKLOCAL_SERVICES) is not None: obj_1 = vnc_api.LinklocalServicesTypes() if prop_diff.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY) is not None: for index_1 in range(len(prop_diff.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY))): obj_2 = vnc_api.LinklocalServiceEntryType() if prop_diff.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_NAME) is not None: obj_2.set_linklocal_service_name(prop_diff.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_NAME)) if prop_diff.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_IP) is not None: obj_2.set_linklocal_service_ip(prop_diff.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_IP)) if prop_diff.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_PORT) is not None: obj_2.set_linklocal_service_port(prop_diff.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_LINKLOCAL_SERVICE_PORT)) if prop_diff.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_DNS_SERVICE_NAME) is not None: obj_2.set_ip_fabric_DNS_service_name(prop_diff.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_DNS_SERVICE_NAME)) if prop_diff.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_SERVICE_PORT) is not None: obj_2.set_ip_fabric_service_port(prop_diff.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_SERVICE_PORT)) if prop_diff.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_SERVICE_IP) is not None: for index_2 in range(len(prop_diff.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_SERVICE_IP))): obj_2.add_ip_fabric_service_ip(prop_diff.get(self.LINKLOCAL_SERVICES, {}).get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY, {})[index_1].get(self.LINKLOCAL_SERVICES_LINKLOCAL_SERVICE_ENTRY_IP_FABRIC_SERVICE_IP)[index_2]) obj_1.add_linklocal_service_entry(obj_2) obj_0.set_linklocal_services(obj_1) if prop_diff.get(self.ENCAPSULATION_PRIORITIES) is not None: obj_1 = vnc_api.EncapsulationPrioritiesType() if prop_diff.get(self.ENCAPSULATION_PRIORITIES, {}).get(self.ENCAPSULATION_PRIORITIES_ENCAPSULATION) is not None: for index_1 in range(len(prop_diff.get(self.ENCAPSULATION_PRIORITIES, {}).get(self.ENCAPSULATION_PRIORITIES_ENCAPSULATION))): obj_1.add_encapsulation(prop_diff.get(self.ENCAPSULATION_PRIORITIES, {}).get(self.ENCAPSULATION_PRIORITIES_ENCAPSULATION)[index_1]) obj_0.set_encapsulation_priorities(obj_1) if prop_diff.get(self.VXLAN_NETWORK_IDENTIFIER_MODE) is not None: obj_0.set_vxlan_network_identifier_mode(prop_diff.get(self.VXLAN_NETWORK_IDENTIFIER_MODE)) try: self.vnc_lib().global_vrouter_config_update(obj_0) except: raise Exception(_('global-vrouter-config %s could not be updated.') % self.name) def handle_delete(self): if self.resource_id is None: return try: self.vnc_lib().global_vrouter_config_delete(id=self.resource_id) except Exception as ex: self._ignore_not_found(ex) LOG.warn(_('global_vrouter_config %s already deleted.') % self.name) def _show_resource(self): obj = self.vnc_lib().global_vrouter_config_read(id=self.resource_id) obj_dict = obj.serialize_to_json() return obj_dict def resource_mapping(): return { 'OS::ContrailV2::GlobalVrouterConfig': ContrailGlobalVrouterConfig, }
72.446429
1,235
0.684866
3,765
32,456
5.405312
0.039841
0.07464
0.091199
0.103779
0.91509
0.885755
0.84443
0.823645
0.799371
0.782812
0
0.005342
0.232962
32,456
447
1,236
72.608501
0.812131
0.001725
0
0.472813
1
0
0.084514
0.071982
0
0
0
0
0
1
0.01182
false
0.002364
0.026005
0.002364
0.056738
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
d7950e36a766408c9ea4a855a8d088e556083aa6
406
py
Python
learn-to-code-with-python/Automatyzacja_nudnych_zadan/tempCodeRunnerFile.py
MaciejZurek/python_practicing
0a426f2aed151573e1f8678e0239ff596d92bbde
[ "MIT" ]
null
null
null
learn-to-code-with-python/Automatyzacja_nudnych_zadan/tempCodeRunnerFile.py
MaciejZurek/python_practicing
0a426f2aed151573e1f8678e0239ff596d92bbde
[ "MIT" ]
null
null
null
learn-to-code-with-python/Automatyzacja_nudnych_zadan/tempCodeRunnerFile.py
MaciejZurek/python_practicing
0a426f2aed151573e1f8678e0239ff596d92bbde
[ "MIT" ]
null
null
null
def image_from_list(l): # grid = [[".", ".", ".", ".", ".", "."], # [".", "0", "0", ".", ".", "."], # ["0", "0", "0", "0", ".", "."], # ["0", "0", "0", "0", "0", "."], # [".", "0", "0", "0", "0", "0"], # ["0", "0", "0", "0", "0", "."], # ["0", "0", "0", "0", ".", "."], # [".", "0", "0", ".", ".", "."], # [".", ".", ".", ".", ".", "."]]
27.066667
41
0.123153
33
406
1.454545
0.212121
1.083333
1.5625
2
0.5625
0.5625
0.5625
0.5625
0.5625
0.5625
0
0.099631
0.332512
406
15
42
27.066667
0.077491
0.884236
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
1
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
7
ad47cf29a90ded4f3b0d9bdf734242f14c5d40ef
82
py
Python
aira_graph/src/aira_graph/nodes.py
Vourhey/robonomics_comm
1b7c6dc85985909cb925d82b1081ec556423029e
[ "BSD-3-Clause" ]
16
2017-11-15T15:20:34.000Z
2021-08-05T03:08:13.000Z
aira_graph/src/aira_graph/nodes.py
aang1985/robonomics_comm
4f7a339e01cbd00fc0f51405c77d89d6ae5e0d7d
[ "BSD-3-Clause" ]
80
2018-02-08T22:44:41.000Z
2021-07-15T10:12:09.000Z
aira_graph/src/aira_graph/nodes.py
aang1985/robonomics_comm
4f7a339e01cbd00fc0f51405c77d89d6ae5e0d7d
[ "BSD-3-Clause" ]
13
2018-02-08T14:22:26.000Z
2021-11-20T00:29:14.000Z
from .aira_graph import AIRAGraph def aira_graph_node(): AIRAGraph().spin()
13.666667
33
0.731707
11
82
5.181818
0.727273
0.315789
0
0
0
0
0
0
0
0
0
0
0.158537
82
5
34
16.4
0.826087
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
7
d14d318d21c37d91e79bc1643f1c248ffbe42bbe
85,561
py
Python
puzzle_definitions.py
spencerparkin/twisty-puzzle-page
7ed54fd8df9d1cae139c8e62077a8c7ab56bc035
[ "MIT" ]
null
null
null
puzzle_definitions.py
spencerparkin/twisty-puzzle-page
7ed54fd8df9d1cae139c8e62077a8c7ab56bc035
[ "MIT" ]
null
null
null
puzzle_definitions.py
spencerparkin/twisty-puzzle-page
7ed54fd8df9d1cae139c8e62077a8c7ab56bc035
[ "MIT" ]
null
null
null
# puzzle_definitions.py import math from puzzle_generator import PuzzleDefinitionBase from math3d_triangle_mesh import TriangleMesh, Polyhedron from math3d_triangle import Triangle from math3d_vector import Vector from math3d_transform import AffineTransform, LinearTransform from math3d_sphere import Sphere from math3d_cylinder import Cylinder from math3d_point_cloud import PointCloud from puzzle_generator import GeneratorMesh, ColoredMesh class RubiksCube(PuzzleDefinitionBase): def __init__(self): super().__init__() def make_generator_mesh_list(self): l_cut_disk = TriangleMesh.make_disk(Vector(-1.0 / 3.0, 0.0, 0.0), Vector(1.0, 0.0, 0.0), 4.0, 4) r_cut_disk = TriangleMesh.make_disk(Vector(1.0 / 3.0, 0.0, 0.0), Vector(-1.0, 0.0, 0.0), 4.0, 4) d_cut_disk = TriangleMesh.make_disk(Vector(0.0, -1.0 / 3.0, 0.0), Vector(0.0, 1.0, 0.0), 4.0, 4) u_cut_disk = TriangleMesh.make_disk(Vector(0.0, 1.0 / 3.0, 0.0), Vector(0.0, -1.0, 0.0), 4.0, 4) b_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, -1.0 / 3.0), Vector(0.0, 0.0, 1.0), 4.0, 4) f_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 1.0 / 3.0), Vector(0.0, 0.0, -1.0), 4.0, 4) l_cut_disk = GeneratorMesh(mesh=l_cut_disk, axis=Vector(-1.0, 0.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(-1.0, 0.0, 0.0)) r_cut_disk = GeneratorMesh(mesh=r_cut_disk, axis=Vector(1.0, 0.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(1.0, 0.0, 0.0)) d_cut_disk = GeneratorMesh(mesh=d_cut_disk, axis=Vector(0.0, -1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, -1.0, 0.0)) u_cut_disk = GeneratorMesh(mesh=u_cut_disk, axis=Vector(0.0, 1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 1.0, 0.0)) b_cut_disk = GeneratorMesh(mesh=b_cut_disk, axis=Vector(0.0, 0.0, -1.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 0.0, -1.0)) f_cut_disk = GeneratorMesh(mesh=f_cut_disk, axis=Vector(0.0, 0.0, 1.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 0.0, 1.0)) return [l_cut_disk, r_cut_disk, d_cut_disk, u_cut_disk, b_cut_disk, f_cut_disk] class FisherCube(RubiksCube): def __init__(self): super().__init__() def make_generator_mesh_list(self): mesh_list = super().make_generator_mesh_list() transform = LinearTransform().make_rotation(Vector(0.0, 1.0, 0.), math.pi / 4.0) mesh_list = transform(mesh_list) for mesh in mesh_list: mesh.axis = transform(mesh.axis) mesh.pick_point = transform(mesh.pick_point) return mesh_list class FusedCube(RubiksCube): def __init__(self): super().__init__() def make_generator_mesh_list(self): mesh_list = super().make_generator_mesh_list() del mesh_list[4] del mesh_list[2] del mesh_list[0] return mesh_list def transform_meshes_for_more_cutting(self, mesh_list, generator_mesh_list, cut_pass): r_cut_disk = generator_mesh_list[0] u_cut_disk = generator_mesh_list[1] f_cut_disk = generator_mesh_list[2] if cut_pass < 3: self.apply_generator(mesh_list, r_cut_disk) elif cut_pass == 3: self.apply_generator(mesh_list, r_cut_disk) self.apply_generator(mesh_list, u_cut_disk) elif 3 < cut_pass < 6: self.apply_generator(mesh_list, u_cut_disk) elif cut_pass == 6: self.apply_generator(mesh_list, u_cut_disk) self.apply_generator(mesh_list, f_cut_disk) elif 6 < cut_pass < 9: self.apply_generator(mesh_list, f_cut_disk) elif cut_pass == 9: self.apply_generator(mesh_list, f_cut_disk) return False return True class CopterBase(PuzzleDefinitionBase): def __init__(self): super().__init__() def annotate_puzzle_data(self, puzzle_data): axis_list = [ Vector(-1.0, 0.0, 0.0), Vector(1.0, 0.0, 0.0), Vector(0.0, -1.0, 0.0), Vector(0.0, 1.0, 0.0), Vector(0.0, 0.0, -1.0), Vector(0.0, 0.0, 1.0) ] generator_mesh_list = puzzle_data['generator_mesh_list'] count = 12 #len(generator_mesh_list) for i in range(count): mesh_data = generator_mesh_list[i] generator_axis = Vector().from_dict(mesh_data['axis']) adjacent_axis_list = [] for axis in axis_list: if math.fabs(axis.angle_between(generator_axis) - math.pi / 4.0) < 1e-5: adjacent_axis_list.append(axis) assert(len(adjacent_axis_list) == 2) special_case_data = {} gen_axis_a = generator_axis.rotated(adjacent_axis_list[0], math.pi / 2.0) gen_axis_b = generator_axis.rotated(adjacent_axis_list[1], math.pi / 2.0) special_case_data['special_move_a'] = { 'generator_mesh_a': self._find_axis(generator_mesh_list, gen_axis_a), 'generator_mesh_b': self._find_axis(generator_mesh_list, gen_axis_b) } gen_axis_a = generator_axis.rotated(adjacent_axis_list[0], -math.pi / 2.0) gen_axis_b = generator_axis.rotated(adjacent_axis_list[1], -math.pi / 2.0) special_case_data['special_move_b'] = { 'generator_mesh_a': self._find_axis(generator_mesh_list, gen_axis_a), 'generator_mesh_b': self._find_axis(generator_mesh_list, gen_axis_b) } mesh_data['special_case_data'] = special_case_data def _find_axis(self, generator_mesh_list, axis, eps=1e-7): for i, mesh_data in enumerate(generator_mesh_list): if (Vector().from_dict(mesh_data['axis']) - axis).length() < eps: return i class CurvyCopter(CopterBase): def __init__(self): super().__init__() def calc_sphere_radius(self): return (Vector(math.sqrt(2.0), math.sqrt(2.0), 0.0) - Vector(0.0, 1.0, 0.0)).length() def make_generator_mesh_list(self): radius = self.calc_sphere_radius() sphere_list = [ Sphere(Vector(-math.sqrt(2.0), -math.sqrt(2.0), 0.0), radius), Sphere(Vector(math.sqrt(2.0), -math.sqrt(2.0), 0.0), radius), Sphere(Vector(-math.sqrt(2.0), math.sqrt(2.0), 0.0), radius), Sphere(Vector(math.sqrt(2.0), math.sqrt(2.0), 0.0), radius), Sphere(Vector(-math.sqrt(2.0), 0.0, -math.sqrt(2.0)), radius), Sphere(Vector(math.sqrt(2.0), 0.0, -math.sqrt(2.0)), radius), Sphere(Vector(-math.sqrt(2.0), 0.0, math.sqrt(2.0)), radius), Sphere(Vector(math.sqrt(2.0), 0.0, math.sqrt(2.0)), radius), Sphere(Vector(0.0, -math.sqrt(2.0), -math.sqrt(2.0)), radius), Sphere(Vector(0.0, math.sqrt(2.0), -math.sqrt(2.0)), radius), Sphere(Vector(0.0, -math.sqrt(2.0), math.sqrt(2.0)), radius), Sphere(Vector(0.0, math.sqrt(2.0), math.sqrt(2.0)), radius) ] mesh_list = [] for sphere in sphere_list: mesh = GeneratorMesh(mesh=sphere.make_mesh(subdivision_level=2), axis=sphere.center.normalized(), angle=math.pi, pick_point=sphere.center.resized(math.sqrt(2.0))) mesh_list.append(mesh) return mesh_list class CurvyCopterPlus(CurvyCopter): def __init__(self): super().__init__() def calc_sphere_radius(self): return (Vector(math.sqrt(2.0), math.sqrt(2.0), 0.0) - Vector(-0.2, 1.0, 0.0)).length() class HelicopterCube(CopterBase): def __init__(self): super().__init__() def make_generator_mesh_list(self): point_list = [point for point in Vector(0.5, 0.5, 0.0).sign_permute(flip_z=False)] point_list += [point for point in Vector(0.5, 0.0, 0.5).sign_permute(flip_y=False)] point_list += [point for point in Vector(0.0, 0.5, 0.5).sign_permute(flip_x=False)] mesh_list = [] for point in point_list: normal = point.normalized() disk = TriangleMesh.make_disk(point, -normal, 4.0, 4) mesh = GeneratorMesh(mesh=disk, axis=normal, angle=math.pi, pick_point=point.resized(math.sqrt(2.0))) mesh_list.append(mesh) return mesh_list class FlowerCopter(CurvyCopter): def __init__(self): super().__init__() def make_generator_mesh_list(self): mesh_list = super().make_generator_mesh_list() radius = math.sqrt(2.0) point_list = [point for point in Vector(1.0, 1.0, 1.0).sign_permute()] for point in point_list: sphere = Sphere(point, radius) mesh = GeneratorMesh(mesh=sphere.make_mesh(subdivision_level=2), axis=point.normalized(), angle=2.0 * math.pi / 3.0, pick_point=point) mesh_list.append(mesh) return mesh_list class Megaminx(PuzzleDefinitionBase): def __init__(self): super().__init__() def make_initial_mesh_list(self): mesh = TriangleMesh().make_polyhedron(Polyhedron.DODECAHEDRON) face_mesh_list, self.plane_list = self.make_face_meshes(mesh) return face_mesh_list def make_generator_mesh_list(self): mesh_list = [] for plane in self.plane_list: disk = TriangleMesh.make_disk(plane.center.scaled(0.7), -plane.unit_normal, 4.0, 4) mesh = GeneratorMesh(mesh=disk, axis=plane.unit_normal, angle=2.0 * math.pi / 5.0, pick_point=plane.center) mesh_list.append(mesh) return mesh_list class DinoCube(PuzzleDefinitionBase): def __init__(self): super().__init__() def make_generator_mesh_list(self): length = ((Vector(1.0, -1.0, 1.0) + Vector(1.0, 1.0, -1.0) + Vector(-1.0, 1.0, 1.0)) / 3.0).length() mesh_list = [] for vector in Vector(1.0, 1.0, 1.0).sign_permute(): mesh = GeneratorMesh(mesh=TriangleMesh.make_disk(vector.resized(length), -vector.normalized(), 4.0, 4), axis=vector.normalized(), angle=2.0 * math.pi / 3.0, pick_point=vector) mesh_list.append(mesh) return mesh_list class FlowerRexCube(PuzzleDefinitionBase): def __init__(self): super().__init__() def make_generator_mesh_list(self): mesh_list = [] length = 3.0 radius = (Vector(1.0, 1.0, 1.0).resized(length) - Vector(-1.0, 1.0, 1.0)).length() for vector in Vector(1.0, 1.0, 1.0).sign_permute(): mesh = GeneratorMesh(mesh=Sphere(vector.resized(length), radius).make_mesh(subdivision_level=2), axis=vector.normalized(), angle=2.0 * math.pi / 3.0, pick_point=vector) mesh_list.append(mesh) return mesh_list def min_mesh_area(self): return 0.05 class Skewb(PuzzleDefinitionBase): def __init__(self): super().__init__() def make_generator_mesh_list(self): mesh_list = [] for vector in Vector(1.0, 1.0, 1.0).sign_permute(): mesh = GeneratorMesh(mesh=TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), -vector.normalized(), 4.0, 4), axis=vector.normalized(), angle=2.0 * math.pi / 3.0, pick_point=vector) mesh_list.append(mesh) return mesh_list class SquareOne(PuzzleDefinitionBase): def __init__(self): super().__init__() def bandages(self): return True def make_generator_mesh_list(self): mesh_list = [] angle = math.pi + math.pi / 12.0 normal = Vector(math.cos(angle), 0.0, math.sin(angle)) mesh = GeneratorMesh(mesh=TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), normal, 4.0, 4), axis=-normal, angle=math.pi, pick_point=normal.resized(-2.0)) mesh_list.append(mesh) mesh = GeneratorMesh(mesh=TriangleMesh.make_disk(Vector(0.0, 0.2, 0.0), Vector(0.0, -1.0, 0.0), 4.0, 4), axis=Vector(0.0, 1.0, 0.0), angle=math.pi / 6.0, pick_point=Vector(0.0, 1.0, 0.0)) mesh_list.append(mesh) mesh = GeneratorMesh(mesh=TriangleMesh.make_disk(Vector(0.0, -0.2, 0.0), Vector(0.0, 1.0, 0.0), 4.0, 4), axis=Vector(0.0, -1.0, 0.0), angle=math.pi / 6.0, pick_point=Vector(0.0, -1.0, 0.0)) mesh_list.append(mesh) return mesh_list def transform_meshes_for_more_cutting(self, mesh_list, generator_mesh_list, cut_pass): u_cut_disk = generator_mesh_list[1] d_cut_disk = generator_mesh_list[2] if cut_pass == 0: self.apply_generator(mesh_list, u_cut_disk) self.apply_generator(mesh_list, d_cut_disk, inverse=True) return True elif cut_pass == 1: self.apply_generator(mesh_list, u_cut_disk) self.apply_generator(mesh_list, d_cut_disk, inverse=True) self.apply_generator(mesh_list, u_cut_disk) self.apply_generator(mesh_list, d_cut_disk, inverse=True) return True elif cut_pass == 2: self.apply_generator(mesh_list, u_cut_disk) self.apply_generator(mesh_list, d_cut_disk, inverse=True) return True for i in range(8): self.apply_generator(mesh_list, u_cut_disk) self.apply_generator(mesh_list, d_cut_disk, inverse=True) return False class Bagua(PuzzleDefinitionBase): def __init__(self): super().__init__() def bandages(self): return True def make_generator_mesh_list(self): l_cut_disk = TriangleMesh.make_disk(Vector(-1.0 / 2.0, 0.0, 0.0), Vector(1.0, 0.0, 0.0), 4.0, 4) r_cut_disk = TriangleMesh.make_disk(Vector(1.0 / 2.0, 0.0, 0.0), Vector(-1.0, 0.0, 0.0), 4.0, 4) d_cut_disk = TriangleMesh.make_disk(Vector(0.0, -1.0 / 2.0, 0.0), Vector(0.0, 1.0, 0.0), 4.0, 4) u_cut_disk = TriangleMesh.make_disk(Vector(0.0, 1.0 / 2.0, 0.0), Vector(0.0, -1.0, 0.0), 4.0, 4) b_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, -1.0 / 2.0), Vector(0.0, 0.0, 1.0), 4.0, 4) f_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 1.0 / 2.0), Vector(0.0, 0.0, -1.0), 4.0, 4) l_cut_disk = GeneratorMesh(mesh=l_cut_disk, axis=Vector(-1.0, 0.0, 0.0), angle=math.pi / 4.0, pick_point=Vector(-1.0, 0.0, 0.0)) r_cut_disk = GeneratorMesh(mesh=r_cut_disk, axis=Vector(1.0, 0.0, 0.0), angle=math.pi / 4.0, pick_point=Vector(1.0, 0.0, 0.0)) d_cut_disk = GeneratorMesh(mesh=d_cut_disk, axis=Vector(0.0, -1.0, 0.0), angle=math.pi / 4.0, pick_point=Vector(0.0, -1.0, 0.0)) u_cut_disk = GeneratorMesh(mesh=u_cut_disk, axis=Vector(0.0, 1.0, 0.0), angle=math.pi / 4.0, pick_point=Vector(0.0, 1.0, 0.0)) b_cut_disk = GeneratorMesh(mesh=b_cut_disk, axis=Vector(0.0, 0.0, -1.0), angle=math.pi / 4.0, pick_point=Vector(0.0, 0.0, -1.0)) f_cut_disk = GeneratorMesh(mesh=f_cut_disk, axis=Vector(0.0, 0.0, 1.0), angle=math.pi / 4.0, pick_point=Vector(0.0, 0.0, 1.0)) return [l_cut_disk, r_cut_disk, d_cut_disk, u_cut_disk, b_cut_disk, f_cut_disk] def transform_meshes_for_more_cutting(self, mesh_list, generator_mesh_list, cut_pass): l_cut_disk = generator_mesh_list[0] r_cut_disk = generator_mesh_list[1] d_cut_disk = generator_mesh_list[2] u_cut_disk = generator_mesh_list[3] b_cut_disk = generator_mesh_list[4] f_cut_disk = generator_mesh_list[5] if cut_pass == 0: self.apply_generator(mesh_list, l_cut_disk) self.apply_generator(mesh_list, r_cut_disk, inverse=True) return True elif cut_pass == 1: self.apply_generator(mesh_list, l_cut_disk, inverse=True) self.apply_generator(mesh_list, r_cut_disk) self.apply_generator(mesh_list, u_cut_disk) self.apply_generator(mesh_list, d_cut_disk, inverse=True) return True elif cut_pass == 2: self.apply_generator(mesh_list, u_cut_disk, inverse=True) self.apply_generator(mesh_list, d_cut_disk) self.apply_generator(mesh_list, b_cut_disk) self.apply_generator(mesh_list, f_cut_disk, inverse=True) return True self.apply_generator(mesh_list, b_cut_disk, inverse=True) self.apply_generator(mesh_list, f_cut_disk) return False class PentacleCube(RubiksCube): def __init__(self): super().__init__() def bandages(self): return True def make_generator_mesh_list(self): mesh_list = super().make_generator_mesh_list() vector_list = [ Vector(-1.0, 0.0, 0.0), Vector(1.0, 0.0, 0.0), Vector(0.0, -1.0, 0.0), Vector(0.0, 1.0, 0.0), Vector(0.0, 0.0, -1.0), Vector(0.0, 0.0, 1.0) ] for vector in vector_list: mesh = GeneratorMesh(mesh=Sphere(vector, 1.0).make_mesh(subdivision_level=2), axis=vector, angle=math.pi / 10.0, pick_point=vector.resized(1.5)) mesh_list.append(mesh) return mesh_list def can_apply_cutmesh_for_pass(self, i, cut_mesh, cut_pass, generator_mesh_list): if cut_pass == 0 and i >= 6: return True if cut_pass == 1 and i == 0: # left return True if cut_pass == 2 and i == 3: # up return True if cut_pass == 3 and i == 1: # right return True if cut_pass == 4 and i == 2: # down return True if cut_pass == 5 and i == 0: # left return True if cut_pass == 6 and i == 5: # forward return True if cut_pass == 7 and i == 4: # back return True if cut_pass == 8 and i == 5: # forward return True return False def transform_meshes_for_more_cutting(self, mesh_list, generator_mesh_list, cut_pass): l_cut_circle = generator_mesh_list[6] r_cut_circle = generator_mesh_list[7] d_cut_circle = generator_mesh_list[8] u_cut_circle = generator_mesh_list[9] b_cut_circle = generator_mesh_list[10] f_cut_circle = generator_mesh_list[11] if cut_pass == 0: pass if cut_pass == 1 or cut_pass == 2 or cut_pass == 3 or cut_pass == 4: self.apply_generator(mesh_list, f_cut_circle) self.apply_generator(mesh_list, b_cut_circle, inverse=True) self.apply_generator(mesh_list, u_cut_circle, inverse=True) self.apply_generator(mesh_list, d_cut_circle) self.apply_generator(mesh_list, l_cut_circle) self.apply_generator(mesh_list, r_cut_circle, inverse=True) if cut_pass == 5: for i in range(6): self.apply_generator(mesh_list, l_cut_circle) self.apply_generator(mesh_list, r_cut_circle, inverse=True) for i in range(3): self.apply_generator(mesh_list, u_cut_circle) self.apply_generator(mesh_list, d_cut_circle, inverse=True) if cut_pass == 6 or cut_pass == 7: for i in range(2): self.apply_generator(mesh_list, l_cut_circle) self.apply_generator(mesh_list, r_cut_circle, inverse=True) for i in range(2): self.apply_generator(mesh_list, u_cut_circle, inverse=True) self.apply_generator(mesh_list, d_cut_circle) return True if cut_pass < 8 else False def min_mesh_area(self): return 0.05 class MixupCube(PuzzleDefinitionBase): def __init__(self): super().__init__() def can_apply_cutmesh_for_pass(self, i, cut_mesh, cut_pass, generator_mesh_list): return True if i < 6 else False def make_generator_mesh_list(self): q = math.tan(math.pi / 8.0) l_cut_disk = TriangleMesh.make_disk(Vector(-q, 0.0, 0.0), Vector(1.0, 0.0, 0.0), 4.0, 4) r_cut_disk = TriangleMesh.make_disk(Vector(q, 0.0, 0.0), Vector(-1.0, 0.0, 0.0), 4.0, 4) d_cut_disk = TriangleMesh.make_disk(Vector(0.0, -q, 0.0), Vector(0.0, 1.0, 0.0), 4.0, 4) u_cut_disk = TriangleMesh.make_disk(Vector(0.0, q, 0.0), Vector(0.0, -1.0, 0.0), 4.0, 4) b_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, -q), Vector(0.0, 0.0, 1.0), 4.0, 4) f_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, q), Vector(0.0, 0.0, -1.0), 4.0, 4) l_cut_disk = GeneratorMesh(mesh=l_cut_disk, axis=Vector(-1.0, 0.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(-1.0, 0.0, 0.0)) r_cut_disk = GeneratorMesh(mesh=r_cut_disk, axis=Vector(1.0, 0.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(1.0, 0.0, 0.0)) d_cut_disk = GeneratorMesh(mesh=d_cut_disk, axis=Vector(0.0, -1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, -1.0, 0.0)) u_cut_disk = GeneratorMesh(mesh=u_cut_disk, axis=Vector(0.0, 1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 1.0, 0.0)) b_cut_disk = GeneratorMesh(mesh=b_cut_disk, axis=Vector(0.0, 0.0, -1.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 0.0, -1.0)) f_cut_disk = GeneratorMesh(mesh=f_cut_disk, axis=Vector(0.0, 0.0, 1.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 0.0, 1.0)) mesh_list = [l_cut_disk, r_cut_disk, d_cut_disk, u_cut_disk, b_cut_disk, f_cut_disk] center_slice = TriangleMesh.make_disk(Vector(-q, 0.0, 0.0), Vector(-1.0, 0.0, 0.0), 4.0, 4) + TriangleMesh.make_disk(Vector(q, 0.0, 0.0), Vector(1.0, 0.0, 0.0), 4.0, 4) mesh_list.append(GeneratorMesh(mesh=center_slice, axis=Vector(1.0, 0.0, 0.0), angle=math.pi / 4.0, pick_point=Vector(1.5, 0.0, 0.0))) mesh_list.append(GeneratorMesh(mesh=center_slice, axis=Vector(-1.0, 0.0, 0.0), angle=math.pi / 4.0, pick_point=Vector(-1.5, 0.0, 0.0))) center_slice = TriangleMesh.make_disk(Vector(0.0, -q, 0.0), Vector(0.0, -1.0, 0.0), 4.0, 4) + TriangleMesh.make_disk(Vector(0.0, q, 0.0), Vector(0.0, 1.0, 0.0), 4.0, 4) mesh_list.append(GeneratorMesh(mesh=center_slice, axis=Vector(0.0, 1.0, 0.0), angle=math.pi / 4.0, pick_point=Vector(0.0, 1.5, 0.0))) mesh_list.append(GeneratorMesh(mesh=center_slice, axis=Vector(0.0, -1.0, 0.0), angle=math.pi / 4.0, pick_point=Vector(0.0, -1.5, 0.0))) center_slice = TriangleMesh.make_disk(Vector(0.0, 0.0, -q), Vector(0.0, 0.0, -1.0), 4.0, 4) + TriangleMesh.make_disk(Vector(0.0, 0.0, q), Vector(0.0, 0.0, 1.0), 4.0, 4) mesh_list.append(GeneratorMesh(mesh=center_slice, axis=Vector(0.0, 0.0, 1.0), angle=math.pi / 4.0, pick_point=Vector(0.0, 0.0, 1.5))) mesh_list.append(GeneratorMesh(mesh=center_slice, axis=Vector(0.0, 0.0, -1.0), angle=math.pi / 4.0, pick_point=Vector(0.0, 0.0, -1.5))) return mesh_list class Dogic(PuzzleDefinitionBase): def __init__(self): super().__init__() def make_initial_mesh_list(self): self.mesh = TriangleMesh().make_polyhedron(Polyhedron.ICOSAHEDRON) face_mesh_list, plane_list = self.make_face_meshes(self.mesh.clone()) return face_mesh_list def can_apply_cutmesh_for_pass(self, i, cut_mesh, cut_pass, generator_mesh_list): return False if i % 2 == 0 else True def make_generator_mesh_list(self): mesh_list = [] for vertex in self.mesh.vertex_list: point_cloud = PointCloud() for triangle in self.mesh.yield_triangles(): for i in range(3): if triangle[i] == vertex: point_cloud.add_point(triangle[i + 1]) point_cloud.add_point(triangle[i + 2]) break center = point_cloud.calc_center() normal = vertex.normalized() disk = TriangleMesh.make_disk(center, -normal, 4.0, 4) mesh_list.append(GeneratorMesh(mesh=disk, axis=normal, angle=2.0 * math.pi / 5.0, pick_point=vertex)) disk = TriangleMesh.make_disk((center + vertex) / 2.0, -normal, 4.0, 4) mesh_list.append(GeneratorMesh(mesh=disk, axis=normal, angle=2.0 * math.pi / 5.0, pick_point=vertex * 1.2)) return mesh_list class Bubbloid4x4x5(PuzzleDefinitionBase): def __init__(self): super().__init__() self.a = 2.0 - math.sqrt(2.0) self.b = 1.0 - self.a self.s = (2.0 * self.a + 3.0 * self.b) / (2.0 * self.a + 2.0 * self.b) def make_initial_mesh_list(self): mesh_list = super().make_initial_mesh_list() scale_transform = LinearTransform().make_non_uniform_scale(1.0, self.s, 1.0) mesh_list = [scale_transform(mesh) for mesh in mesh_list] return mesh_list def make_generator_mesh_list(self): scale_transform = LinearTransform().make_non_uniform_scale(1.0, self.s, 1.0) radius = self.a + 2.0 * self.b mesh_list = [] for vector in Vector(1.0, 1.0, 1.0).sign_permute(): center = scale_transform(vector) mesh = GeneratorMesh(mesh=Sphere(center, radius).make_mesh(subdivision_level=2), axis=vector.normalized(), angle=2.0 * math.pi / 3.0, center=center, pick_point=center) mesh_list.append(mesh) return mesh_list def find_generator_with_axis(self, generator_mesh_list, axis): for mesh in generator_mesh_list: if (mesh.axis - axis.normalized()).length() < 1e-6: return mesh def transform_meshes_for_more_cutting(self, mesh_list, generator_mesh_list, cut_pass): if cut_pass == 0 or cut_pass == 1 or cut_pass == 2: self.apply_generator(mesh_list, generator_mesh_list[0]) if cut_pass == 2 or cut_pass == 3 or cut_pass == 4: self.apply_generator(mesh_list, generator_mesh_list[1]) if cut_pass == 4 or cut_pass == 5 or cut_pass == 6: self.apply_generator(mesh_list, generator_mesh_list[2]) if cut_pass == 6 or cut_pass == 7 or cut_pass == 8: self.apply_generator(mesh_list, generator_mesh_list[3]) if cut_pass == 8 or cut_pass == 9 or cut_pass == 10: self.apply_generator(mesh_list, generator_mesh_list[4]) if cut_pass == 10 or cut_pass == 11 or cut_pass == 12: self.apply_generator(mesh_list, generator_mesh_list[5]) if cut_pass == 12 or cut_pass == 13 or cut_pass == 14: self.apply_generator(mesh_list, generator_mesh_list[6]) if cut_pass == 14 or cut_pass == 15 or cut_pass == 16: self.apply_generator(mesh_list, generator_mesh_list[7]) if cut_pass == 16: self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(1.0, 1.0, 1.0)), inverse=True) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(1.0, 1.0, -1.0)), inverse=True) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(-1.0, 1.0, -1.0)), inverse=True) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(-1.0, 1.0, 1.0)), inverse=True) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(1.0, 1.0, 1.0)), inverse=True) elif cut_pass == 17: self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(1.0, 1.0, 1.0))) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(-1.0, 1.0, 1.0))) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(-1.0, 1.0, -1.0))) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(1.0, 1.0, -1.0))) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(1.0, 1.0, 1.0))) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(1.0, -1.0, 1.0))) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(1.0, -1.0, -1.0))) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(-1.0, -1.0, -1.0))) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(-1.0, -1.0, 1.0))) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(1.0, -1.0, 1.0))) elif cut_pass == 18: self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(1.0, -1.0, 1.0)), inverse=True) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(-1.0, -1.0, 1.0)), inverse=True) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(-1.0, -1.0, -1.0)), inverse=True) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(1.0, -1.0, -1.0)), inverse=True) self.apply_generator(mesh_list, self.find_generator_with_axis(generator_mesh_list, Vector(1.0, -1.0, 1.0)), inverse=True) return True if cut_pass < 18 else False def can_apply_cutmesh_for_pass(self, i, cut_mesh, cut_pass, generator_mesh_list): if cut_pass == 0: return True if 0 < cut_pass <= 16: if cut_pass == 1 or cut_pass == 2: vector = generator_mesh_list[0].axis.resized(math.sqrt(3.0)) elif cut_pass == 3 or cut_pass == 4: vector = generator_mesh_list[1].axis.resized(math.sqrt(3.0)) elif cut_pass == 5 or cut_pass == 6: vector = generator_mesh_list[2].axis.resized(math.sqrt(3.0)) elif cut_pass == 7 or cut_pass == 8: vector = generator_mesh_list[3].axis.resized(math.sqrt(3.0)) elif cut_pass == 9 or cut_pass == 10: vector = generator_mesh_list[4].axis.resized(math.sqrt(3.0)) elif cut_pass == 11 or cut_pass == 12: vector = generator_mesh_list[5].axis.resized(math.sqrt(3.0)) elif cut_pass == 13 or cut_pass == 14: vector = generator_mesh_list[6].axis.resized(math.sqrt(3.0)) elif cut_pass == 15 or cut_pass == 16: vector = generator_mesh_list[7].axis.resized(math.sqrt(3.0)) distance = (vector - cut_mesh.axis.resized(math.sqrt(3.0))).length() return True if math.fabs(distance - 2.0) < 1e-5 else False if cut_pass == 17: return True if math.fabs(cut_mesh.axis.resized(math.sqrt(3.0)).y + 1.0) < 1e-5 else False if cut_pass == 18: return True if math.fabs(cut_mesh.axis.resized(math.sqrt(3.0)).y - 1.0) < 1e-5 else False return False class Rubiks2x2(PuzzleDefinitionBase): def __init__(self): super().__init__() def make_generator_mesh_list(self): l_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(1.0, 0.0, 0.0), 4.0, 4) r_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(-1.0, 0.0, 0.0), 4.0, 4) d_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(0.0, 1.0, 0.0), 4.0, 4) u_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(0.0, -1.0, 0.0), 4.0, 4) b_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(0.0, 0.0, 1.0), 4.0, 4) f_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(0.0, 0.0, -1.0), 4.0, 4) l_cut_disk = GeneratorMesh(mesh=l_cut_disk, axis=Vector(-1.0, 0.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(-1.0, 0.0, 0.0)) r_cut_disk = GeneratorMesh(mesh=r_cut_disk, axis=Vector(1.0, 0.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(1.0, 0.0, 0.0)) d_cut_disk = GeneratorMesh(mesh=d_cut_disk, axis=Vector(0.0, -1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, -1.0, 0.0)) u_cut_disk = GeneratorMesh(mesh=u_cut_disk, axis=Vector(0.0, 1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 1.0, 0.0)) b_cut_disk = GeneratorMesh(mesh=b_cut_disk, axis=Vector(0.0, 0.0, -1.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 0.0, -1.0)) f_cut_disk = GeneratorMesh(mesh=f_cut_disk, axis=Vector(0.0, 0.0, 1.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 0.0, 1.0)) return [l_cut_disk, r_cut_disk, d_cut_disk, u_cut_disk, b_cut_disk, f_cut_disk] class Rubiks4x4(PuzzleDefinitionBase): def __init__(self): super().__init__() def make_generator_mesh_list(self): l_cut_disk = TriangleMesh.make_disk(Vector(-1.0 / 2.0, 0.0, 0.0), Vector(1.0, 0.0, 0.0), 4.0, 4) r_cut_disk = TriangleMesh.make_disk(Vector(1.0 / 2.0, 0.0, 0.0), Vector(-1.0, 0.0, 0.0), 4.0, 4) d_cut_disk = TriangleMesh.make_disk(Vector(0.0, -1.0 / 2.0, 0.0), Vector(0.0, 1.0, 0.0), 4.0, 4) u_cut_disk = TriangleMesh.make_disk(Vector(0.0, 1.0 / 2.0, 0.0), Vector(0.0, -1.0, 0.0), 4.0, 4) b_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, -1.0 / 2.0), Vector(0.0, 0.0, 1.0), 4.0, 4) f_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 1.0 / 2.0), Vector(0.0, 0.0, -1.0), 4.0, 4) l_cut_disk = GeneratorMesh(mesh=l_cut_disk, axis=Vector(-1.0, 0.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(-1.0, 0.0, 0.0)) r_cut_disk = GeneratorMesh(mesh=r_cut_disk, axis=Vector(1.0, 0.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(1.0, 0.0, 0.0)) d_cut_disk = GeneratorMesh(mesh=d_cut_disk, axis=Vector(0.0, -1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, -1.0, 0.0)) u_cut_disk = GeneratorMesh(mesh=u_cut_disk, axis=Vector(0.0, 1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 1.0, 0.0)) b_cut_disk = GeneratorMesh(mesh=b_cut_disk, axis=Vector(0.0, 0.0, -1.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 0.0, -1.0)) f_cut_disk = GeneratorMesh(mesh=f_cut_disk, axis=Vector(0.0, 0.0, 1.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 0.0, 1.0)) mesh_list = [l_cut_disk, r_cut_disk, d_cut_disk, u_cut_disk, b_cut_disk, f_cut_disk] l_cut_disk = TriangleMesh.make_disk(Vector(-1.0 / 2.0, 0.0, 0.0), Vector(-1.0, 0.0, 0.0), 4.0, 4) + TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(1.0, 0.0, 0.0), 4.0, 4) r_cut_disk = TriangleMesh.make_disk(Vector(1.0 / 2.0, 0.0, 0.0), Vector(1.0, 0.0, 0.0), 4.0, 4) + TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(-1.0, 0.0, 0.0), 4.0, 4) d_cut_disk = TriangleMesh.make_disk(Vector(0.0, -1.0 / 2.0, 0.0), Vector(0.0, -1.0, 0.0), 4.0, 4) + TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(0.0, 1.0, 0.0), 4.0, 4) u_cut_disk = TriangleMesh.make_disk(Vector(0.0, 1.0 / 2.0, 0.0), Vector(0.0, 1.0, 0.0), 4.0, 4) + TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(0.0, -1.0, 0.0), 4.0, 4) b_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, -1.0 / 2.0), Vector(0.0, 0.0, -1.0), 4.0, 4) + TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(0.0, 0.0, 1.0), 4.0, 4) f_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 1.0 / 2.0), Vector(0.0, 0.0, 1.0), 4.0, 4) + TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(0.0, 0.0, -1.0), 4.0, 4) l_cut_disk = GeneratorMesh(mesh=l_cut_disk, axis=Vector(-1.0, 0.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(-1.2, 0.0, 0.0)) r_cut_disk = GeneratorMesh(mesh=r_cut_disk, axis=Vector(1.0, 0.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(1.2, 0.0, 0.0)) d_cut_disk = GeneratorMesh(mesh=d_cut_disk, axis=Vector(0.0, -1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, -1.2, 0.0)) u_cut_disk = GeneratorMesh(mesh=u_cut_disk, axis=Vector(0.0, 1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 1.2, 0.0)) b_cut_disk = GeneratorMesh(mesh=b_cut_disk, axis=Vector(0.0, 0.0, -1.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 0.0, -1.2)) f_cut_disk = GeneratorMesh(mesh=f_cut_disk, axis=Vector(0.0, 0.0, 1.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 0.0, 1.2)) mesh_list += [l_cut_disk, r_cut_disk, d_cut_disk, u_cut_disk, b_cut_disk, f_cut_disk] return mesh_list class Pyraminx(PuzzleDefinitionBase): def __init__(self): super().__init__() def make_initial_mesh_list(self): self.mesh = TriangleMesh().make_polyhedron(Polyhedron.TETRAHEDRON) self.mesh = LinearTransform().make_uniform_scale(1.5)(self.mesh) triangle = self.mesh.make_triangle(self.mesh.find_triangle((0, 1, 2), True, True)) plane = triangle.calc_plane() self.distance = -plane.point_distance(self.mesh.vertex_list[3]) face_mesh_list, plane_list = self.make_face_meshes(self.mesh.clone()) return face_mesh_list def make_generator_mesh_list(self): mesh_list = [] for triangle in self.mesh.yield_triangles(): center = triangle.calc_center() plane = triangle.calc_plane() disk = TriangleMesh.make_disk(center - plane.unit_normal * self.distance / 3.0, -plane.unit_normal, 8.0, 4) mesh_list.append(GeneratorMesh(mesh=disk, axis=plane.unit_normal, angle=2.0 * math.pi / 3.0, pick_point=center)) disk = TriangleMesh.make_disk(center - plane.unit_normal * self.distance / 3.0, plane.unit_normal, 8.0, 4) mesh_list.append(GeneratorMesh(mesh=disk, axis=-plane.unit_normal, angle=2.0 * math.pi / 3.0, pick_point=center - plane.unit_normal * self.distance)) disk = TriangleMesh.make_disk(center - plane.unit_normal * 2.0 * self.distance / 3.0, plane.unit_normal, 8.0, 4) mesh_list.append(GeneratorMesh(mesh=disk, axis=-plane.unit_normal, angle=2.0 * math.pi / 3.0, pick_point=center - plane.unit_normal * self.distance * 1.1)) return mesh_list def can_apply_cutmesh_for_pass(self, i, cut_mesh, cut_pass, generator_mesh_list): return False if i % 3 == 1 else True class BauhiniaDodecahedron(PuzzleDefinitionBase): def __init__(self): super().__init__() def make_initial_mesh_list(self): mesh = TriangleMesh().make_polyhedron(Polyhedron.DODECAHEDRON) self.vertex_list = [vertex for vertex in mesh.vertex_list] face_mesh_list, plane_list = self.make_face_meshes(mesh) face = face_mesh_list[0] loop_list = face.find_boundary_loops() self.edge_length = (face.vertex_list[loop_list[0][0]] - face.vertex_list[loop_list[0][1]]).length() return face_mesh_list def make_generator_mesh_list(self): mesh_list = [] for vertex in self.vertex_list: mesh = GeneratorMesh(mesh=Sphere(vertex, self.edge_length).make_mesh(subdivision_level=2), axis=vertex.normalized(), angle=2.0 * math.pi / 3.0, pick_point=vertex) mesh_list.append(mesh) return mesh_list class SkewbUltimate(PuzzleDefinitionBase): def __init__(self): super().__init__() def make_initial_mesh_list(self): mesh = TriangleMesh().make_polyhedron(Polyhedron.DODECAHEDRON) face_mesh_list, plane_list = self.make_face_meshes(mesh) return face_mesh_list def make_generator_mesh_list(self): mesh_list = [] normal_list = [point.normalized() for point in Vector(1.0, 1.0, 1.0).sign_permute()] for normal in normal_list: mesh = GeneratorMesh(mesh=TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), normal, 4.0, 4), axis=-normal, angle=2.0 * math.pi / 3.0, pick_point=normal * -1.5) mesh_list.append(mesh) return mesh_list class Rubiks2x3x3(PuzzleDefinitionBase): def __init__(self): super().__init__() def make_initial_mesh_list(self): mesh_list = super().make_initial_mesh_list() transform = LinearTransform().make_non_uniform_scale(1.0, 2.0 / 3.0, 1.0) mesh_list = transform(mesh_list) return mesh_list def make_generator_mesh_list(self): l_cut_disk = TriangleMesh.make_disk(Vector(-1.0 / 3.0, 0.0, 0.0), Vector(1.0, 0.0, 0.0), 4.0, 4) r_cut_disk = TriangleMesh.make_disk(Vector(1.0 / 3.0, 0.0, 0.0), Vector(-1.0, 0.0, 0.0), 4.0, 4) d_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(0.0, 1.0, 0.0), 4.0, 4) u_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(0.0, -1.0, 0.0), 4.0, 4) b_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, -1.0 / 3.0), Vector(0.0, 0.0, 1.0), 4.0, 4) f_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 1.0 / 3.0), Vector(0.0, 0.0, -1.0), 4.0, 4) l_cut_disk = GeneratorMesh(mesh=l_cut_disk, axis=Vector(-1.0, 0.0, 0.0), angle=math.pi, pick_point=Vector(-1.0, 0.0, 0.0)) r_cut_disk = GeneratorMesh(mesh=r_cut_disk, axis=Vector(1.0, 0.0, 0.0), angle=math.pi, pick_point=Vector(1.0, 0.0, 0.0)) d_cut_disk = GeneratorMesh(mesh=d_cut_disk, axis=Vector(0.0, -1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, -2.0 / 3.0, 0.0)) u_cut_disk = GeneratorMesh(mesh=u_cut_disk, axis=Vector(0.0, 1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 2.0 / 3.0, 0.0)) b_cut_disk = GeneratorMesh(mesh=b_cut_disk, axis=Vector(0.0, 0.0, -1.0), angle=math.pi, pick_point=Vector(0.0, 0.0, -1.0)) f_cut_disk = GeneratorMesh(mesh=f_cut_disk, axis=Vector(0.0, 0.0, 1.0), angle=math.pi, pick_point=Vector(0.0, 0.0, 1.0)) return [l_cut_disk, r_cut_disk, d_cut_disk, u_cut_disk, b_cut_disk, f_cut_disk] class Rubiks2x2x3(PuzzleDefinitionBase): def __init__(self): super().__init__() def make_initial_mesh_list(self): mesh_list = super().make_initial_mesh_list() transform = LinearTransform().make_non_uniform_scale(2.0 / 3.0, 1.0, 2.0 / 3.0) mesh_list = transform(mesh_list) return mesh_list def make_generator_mesh_list(self): l_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(1.0, 0.0, 0.0), 4.0, 4) r_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(-1.0, 0.0, 0.0), 4.0, 4) d_cut_disk = TriangleMesh.make_disk(Vector(0.0, -1.0 / 3.0, 0.0), Vector(0.0, 1.0, 0.0), 4.0, 4) u_cut_disk = TriangleMesh.make_disk(Vector(0.0, 1.0 / 3.0, 0.0), Vector(0.0, -1.0, 0.0), 4.0, 4) b_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(0.0, 0.0, 1.0), 4.0, 4) f_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), Vector(0.0, 0.0, -1.0), 4.0, 4) l_cut_disk = GeneratorMesh(mesh=l_cut_disk, axis=Vector(-1.0, 0.0, 0.0), angle=math.pi, pick_point=Vector(-2.0 / 3.0, 0.0, 0.0)) r_cut_disk = GeneratorMesh(mesh=r_cut_disk, axis=Vector(1.0, 0.0, 0.0), angle=math.pi, pick_point=Vector(2.0 / 3.0, 0.0, 0.0)) d_cut_disk = GeneratorMesh(mesh=d_cut_disk, axis=Vector(0.0, -1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, -1.0, 0.0)) u_cut_disk = GeneratorMesh(mesh=u_cut_disk, axis=Vector(0.0, 1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 1.0, 0.0)) b_cut_disk = GeneratorMesh(mesh=b_cut_disk, axis=Vector(0.0, 0.0, -1.0), angle=math.pi, pick_point=Vector(0.0, 0.0, -2.0 / 3.0)) f_cut_disk = GeneratorMesh(mesh=f_cut_disk, axis=Vector(0.0, 0.0, 1.0), angle=math.pi, pick_point=Vector(0.0, 0.0, 2.0 / 3.0)) return [l_cut_disk, r_cut_disk, d_cut_disk, u_cut_disk, b_cut_disk, f_cut_disk] class Crazy2x3x3(Rubiks2x3x3): # TODO: What about the special move this puzzle has? def __init__(self): super().__init__() def make_generator_mesh_list(self): mesh_list = super().make_generator_mesh_list() cylinder = Cylinder(Vector(0.0, -3.0, 0.0), Vector(0.0, 3.0, 0.0), 0.7).make_mesh(subdivision_level=2) mesh_list.append(GeneratorMesh(mesh=cylinder, axis=Vector(0.0, 1.0, 0.0), angle=math.pi / 2.0, pick_point=None)) mesh_list.append(GeneratorMesh(mesh=cylinder, axis=Vector(0.0, -1.0, 0.0), angle=math.pi / 2.0, pick_point=None)) u_cut_disk = mesh_list[3] u_cut_disk.capture_tree_root = { 'op': 'subtract', 'children': [ {'mesh': 3}, {'mesh': 6}, ] } d_cut_disk = mesh_list[2] d_cut_disk.capture_tree_root = { 'op': 'union', 'children': [ {'mesh': 2}, {'mesh': 6} ] } return mesh_list class Gem8(PuzzleDefinitionBase): def __init__(self): super().__init__() def make_initial_mesh_list(self): mesh = TriangleMesh().make_polyhedron(Polyhedron.TRUNCATED_TETRAHEDRON) transform = LinearTransform().make_uniform_scale(0.5) mesh = transform(mesh) self.face_mesh_list, self.plane_list = self.make_face_meshes(mesh) return self.face_mesh_list def make_generator_mesh_list(self): triangle_list = [] for face_mesh in self.face_mesh_list: if len(face_mesh.triangle_list) == 1: triangle_list.append(face_mesh.make_triangle(0)) mesh_list = [] for plane in self.plane_list: center = Vector(0.0, 0.0, 0.0) for triangle in triangle_list: count = sum([1 if plane.contains_point(triangle[i]) else 0 for i in range(3)]) if count == 2: for line_segment in triangle.yield_line_segments(): point = line_segment.lerp(0.5) if not plane.contains_point(point): center += point if center.length() > 0.0: center /= 6.0 mesh = TriangleMesh.make_disk(center, -plane.unit_normal, 4.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=plane.unit_normal, angle=2.0 * math.pi / 3.0, pick_point=center) mesh_list.append(mesh) for triangle in triangle_list: plane = triangle.calc_plane() center = 5.0 * plane.center / 8.0 # This isn't exact, but close enough; we get a puzzle isomorphic to the correct puzzle. mesh = TriangleMesh.make_disk(center, -plane.unit_normal, 4.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=plane.unit_normal, angle=2.0 * math.pi / 3.0, pick_point=plane.center) mesh_list.append(mesh) return mesh_list class CubesOnDisk(PuzzleDefinitionBase): def __init__(self): super().__init__() self.transform_list = [] self.overall_scale = 0.5 def make_initial_mesh_list(self): mesh = TriangleMesh().make_polyhedron(Polyhedron.HEXAHEDRON) mesh = LinearTransform().make_uniform_scale(self.overall_scale)(mesh) translation = AffineTransform().make_translation(Vector(2.0 * self.overall_scale, 0.0, 0.0)) rotation = AffineTransform().make_rotation(Vector(0.0, 1.0, 0.0), 2.0 * math.pi * (0.0 / 3.0)) self.transform_list.append(rotation(translation)) rotation = AffineTransform().make_rotation(Vector(0.0, 1.0, 0.0), 2.0 * math.pi * (1.0 / 3.0)) self.transform_list.append(rotation(translation)) rotation = AffineTransform().make_rotation(Vector(0.0, 1.0, 0.0), 2.0 * math.pi * (2.0 / 3.0)) self.transform_list.append(rotation(translation)) mesh_list = [] for transform in self.transform_list: face_mesh_list, plane_list = self.make_face_meshes(transform(mesh)) for face_mesh in face_mesh_list: mesh_list.append(face_mesh) return mesh_list def make_generator_mesh_list(self): mesh_list = [] mesh = TriangleMesh.make_disk(Vector(0.0, self.overall_scale / 3.0, 0.0), Vector(0.0, -1.0, 0.0), 10.0, 6) mesh = GeneratorMesh(mesh=mesh, axis=Vector(0.0, 1.0, 0.0), angle=2.0 * math.pi / 3.0, pick_point=Vector(0.0, self.overall_scale, 0.0)) mesh_list.append(mesh) mesh = TriangleMesh.make_disk(Vector(0.0, -self.overall_scale / 3.0, 0.0), Vector(0.0, 1.0, 0.0), 10.0, 6) mesh = GeneratorMesh(mesh=mesh, axis=Vector(0.0, -1.0, 0.0), angle=2.0 * math.pi / 3.0, pick_point=Vector(0.0, -self.overall_scale, 0.0)) mesh_list.append(mesh) base_mesh = TriangleMesh().make_polyhedron(Polyhedron.HEXAHEDRON) base_mesh = LinearTransform().make_uniform_scale(self.overall_scale)(base_mesh) lr_mesh = LinearTransform().make_non_uniform_scale(1.0 / 3.0, 1.0, 1.0)(base_mesh) ud_mesh = LinearTransform().make_non_uniform_scale(1.0, 1.0 / 3.0, 1.0)(base_mesh) fb_mesh = LinearTransform().make_non_uniform_scale(1.0, 1.0, 1.0 / 3.0)(base_mesh) scale = 1.1 lr_mesh = LinearTransform().make_uniform_scale(scale)(lr_mesh) ud_mesh = LinearTransform().make_uniform_scale(scale)(ud_mesh) fb_mesh = LinearTransform().make_uniform_scale(scale)(fb_mesh) alpha = (self.overall_scale / 3.0) * (1.0 + scale) l_mesh = AffineTransform().make_translation(Vector(-alpha, 0.0, 0.0))(lr_mesh) r_mesh = AffineTransform().make_translation(Vector(alpha, 0.0, 0.0))(lr_mesh) d_mesh = AffineTransform().make_translation(Vector(0.0, -alpha, 0.0))(ud_mesh) u_mesh = AffineTransform().make_translation(Vector(0.0, alpha, 0.0))(ud_mesh) b_mesh = AffineTransform().make_translation(Vector(0.0, 0.0, -alpha))(fb_mesh) f_mesh = AffineTransform().make_translation(Vector(0.0, 0.0, alpha))(fb_mesh) for transform in self.transform_list: mesh_list.append(GeneratorMesh(mesh=transform(l_mesh), center=transform(Vector(-self.overall_scale, 0.0, 0.0)), axis=transform.linear_transform(Vector(-1.0, 0.0, 0.0)), angle=math.pi / 2.0, pick_point=transform(Vector(-self.overall_scale, 0.0, 0.0)))) mesh_list.append(GeneratorMesh(mesh=transform(r_mesh), center=transform(Vector(self.overall_scale, 0.0, 0.0)), axis=transform.linear_transform(Vector(1.0, 0.0, 0.0)), angle=math.pi / 2.0, pick_point=transform(Vector(self.overall_scale, 0.0, 0.0)))) mesh_list.append(GeneratorMesh(mesh=transform(d_mesh), center=transform(Vector(0.0, -self.overall_scale, 0.0)), axis=transform.linear_transform(Vector(0.0, -1.0, 0.0)), angle=math.pi / 2.0, pick_point=transform(Vector(0.0, -self.overall_scale, 0.0)))) mesh_list.append(GeneratorMesh(mesh=transform(u_mesh), center=transform(Vector(0.0, self.overall_scale, 0.0)), axis=transform.linear_transform(Vector(0.0, 1.0, 0.0)), angle=math.pi / 2.0, pick_point=transform(Vector(0.0, self.overall_scale, 0.0)))) mesh_list.append(GeneratorMesh(mesh=transform(b_mesh), center=transform(Vector(0.0, 0.0, -self.overall_scale)), axis=transform.linear_transform(Vector(0.0, 0.0, -1.0)), angle=math.pi / 2.0, pick_point=transform(Vector(0.0, 0.0, -self.overall_scale)))) mesh_list.append(GeneratorMesh(mesh=transform(f_mesh), center=transform(Vector(0.0, 0.0, self.overall_scale)), axis=transform.linear_transform(Vector(0.0, 0.0, 1.0)), angle=math.pi / 2.0, pick_point=transform(Vector(0.0, 0.0, self.overall_scale)))) return mesh_list class WormHoleBase(PuzzleDefinitionBase): def __init__(self): super().__init__() self.beta = 2.0 / (math.sqrt(2.0) + 4.0) self.alpha = math.sqrt(2.0) * self.beta def make_initial_mesh_list(self): common_face_mesh_list = [] common_face_mesh_list.append(TriangleMesh().add_quad( Vector(-self.alpha / 2.0, -self.alpha / 2.0, 0.0), Vector(self.alpha / 2.0, -self.alpha / 2.0, 0.0), Vector(self.alpha / 2.0, self.alpha / 2.0, 0.0), Vector(-self.alpha / 2.0, self.alpha / 2.0, 0.0) )) common_face_mesh_list.append(TriangleMesh().add_quad( Vector(-self.alpha / 2.0 - 2.0 * self.beta, -self.alpha / 2.0 - 2.0 * self.beta, 0.0), Vector(-self.alpha / 2.0, -self.alpha / 2.0 - 2.0 * self.beta, 0.0), Vector(-self.alpha / 2.0, -self.alpha / 2.0, 0.0), Vector(-self.alpha / 2.0 - 2.0 * self.beta, -self.alpha / 2.0, 0.0), )) common_face_mesh_list.append(TriangleMesh().add_quad( Vector(self.alpha / 2.0, -self.alpha / 2.0 - 2.0 * self.beta, 0.0), Vector(self.alpha / 2.0 + 2.0 * self.beta, -self.alpha / 2.0 - 2.0 * self.beta, 0.0), Vector(self.alpha / 2.0 + 2.0 * self.beta, -self.alpha / 2.0, 0.0), Vector(self.alpha / 2.0, -self.alpha / 2.0, 0.0), )) common_face_mesh_list.append(TriangleMesh().add_quad( Vector(self.alpha / 2.0, self.alpha / 2.0, 0.0), Vector(self.alpha / 2.0 + 2.0 * self.beta, self.alpha / 2.0, 0.0), Vector(self.alpha / 2.0 + 2.0 * self.beta, self.alpha / 2.0 + 2.0 * self.beta, 0.0), Vector(self.alpha / 2.0, self.alpha / 2.0 + 2.0 * self.beta, 0.0), )) common_face_mesh_list.append(TriangleMesh().add_quad( Vector(-self.alpha / 2.0 - 2.0 * self.beta, self.alpha / 2.0, 0.0), Vector(-self.alpha / 2.0, self.alpha / 2.0, 0.0), Vector(-self.alpha / 2.0, self.alpha / 2.0 + 2.0 * self.beta, 0.0), Vector(-self.alpha / 2.0 - 2.0 * self.beta, self.alpha / 2.0 + 2.0 * self.beta, 0.0), )) common_face_mesh_list.append(TriangleMesh().add_quad( Vector(-self.alpha / 2.0, -self.alpha / 2.0 - 2.0 * self.beta, 0.0), Vector(self.alpha / 2.0, -self.alpha / 2.0 - 2.0 * self.beta, 0.0), Vector(self.alpha / 2.0, -self.alpha / 2.0 - self.beta, 0.0), Vector(-self.alpha / 2.0, -self.alpha / 2.0 - self.beta, 0.0), )) common_face_mesh_list.append(TriangleMesh().add_quad( Vector(self.alpha / 2.0 + self.beta, -self.alpha / 2.0, 0.0), Vector(self.alpha / 2.0 + 2.0 * self.beta, -self.alpha / 2.0, 0.0), Vector(self.alpha / 2.0 + 2.0 * self.beta, self.alpha / 2.0, 0.0), Vector(self.alpha / 2.0 + self.beta, self.alpha / 2.0, 0.0), )) common_face_mesh_list.append(TriangleMesh().add_quad( Vector(-self.alpha / 2.0, self.alpha / 2.0 + self.beta, 0.0), Vector(self.alpha / 2.0, self.alpha / 2.0 + self.beta, 0.0), Vector(self.alpha / 2.0, self.alpha / 2.0 + 2.0 * self.beta, 0.0), Vector(-self.alpha / 2.0, self.alpha / 2.0 + 2.0 * self.beta, 0.0), )) common_face_mesh_list.append(TriangleMesh().add_quad( Vector(-self.alpha / 2.0 - 2.0 * self.beta, -self.alpha / 2.0, 0.0), Vector(-self.alpha / 2.0 - self.beta, -self.alpha / 2.0, 0.0), Vector(-self.alpha / 2.0 - self.beta, self.alpha / 2.0, 0.0), Vector(-self.alpha / 2.0 - 2.0 * self.beta, self.alpha / 2.0, 0.0), )) transform_list = [] transform_list.append(AffineTransform().make_rigid_body_motion(Vector(0.0, 1.0, 0.0), -math.pi / 2.0, Vector(-1.0, 0.0, 0.0))) # left transform_list.append(AffineTransform().make_rigid_body_motion(Vector(0.0, 1.0, 0.0), math.pi / 2.0, Vector(1.0, 0.0, 0.0))) # right transform_list.append(AffineTransform().make_rigid_body_motion(Vector(1.0, 0.0, 0.0), math.pi / 2.0, Vector(0.0, -1.0, 0.0))) # down transform_list.append(AffineTransform().make_rigid_body_motion(Vector(1.0, 0.0, 0.0), -math.pi / 2.0, Vector(0.0, 1.0, 0.0))) # up transform_list.append(AffineTransform().make_rigid_body_motion(Vector(1.0, 0.0, 0.0), math.pi, Vector(0.0, 0.0, -1.0))) # back transform_list.append(AffineTransform().make_rigid_body_motion(Vector(1.0, 0.0, 0.0), 0.0, Vector(0.0, 0.0, 1.0))) # front color_list = [ Vector(0.0, 0.0, 1.0), Vector(0.0, 1.0, 0.0), Vector(1.0, 1.0, 1.0), Vector(1.0, 1.0, 0.0), Vector(1.0, 0.5, 0.0), Vector(1.0, 0.0, 0.0) ] mesh_list = [] for i, transform in enumerate(transform_list): for mesh in common_face_mesh_list: mesh = ColoredMesh(mesh=transform(mesh), color=color_list[i]) mesh_list.append(mesh) return mesh_list def make_generator_mesh_list(self): return [] def make_other_faces(self, inset_only, rotated, color): other_face_mesh_list = [] other_face_mesh_list.append(TriangleMesh().add_quad( Vector(-self.alpha / 2.0 - self.beta, -self.alpha / 2.0, 0.0), Vector(-self.alpha / 2.0, -self.alpha / 2.0, 0.0), Vector(-self.alpha / 2.0, self.alpha / 2.0, 0.0), Vector(-self.alpha / 2.0 - self.beta, self.alpha / 2.0, 0.0) )) other_face_mesh_list.append(TriangleMesh().add_quad( Vector(self.alpha / 2.0, -self.alpha / 2.0, 0.0), Vector(self.alpha / 2.0 + self.beta, -self.alpha / 2.0, 0.0), Vector(self.alpha / 2.0 + self.beta, self.alpha / 2.0, 0.0), Vector(self.alpha / 2.0, self.alpha / 2.0, 0.0) )) other_face_mesh_list = [ColoredMesh(mesh=mesh, color=color) for mesh in other_face_mesh_list] if not inset_only: other_face_mesh_list += [AffineTransform().make_translation(Vector(0.0, 0.0, -0.3))(mesh) for mesh in other_face_mesh_list] else: other_face_mesh_list = [AffineTransform().make_translation(Vector(0.0, 0.0, -0.3))(mesh) for mesh in other_face_mesh_list] # These faces are used purely for bandaging. other_face_mesh_list.append(ColoredMesh(mesh=TriangleMesh().add_quad( Vector(-self.alpha / 2.0 - self.beta, 0.0, -0.3), Vector(-self.alpha / 2.0, 0.0, -0.3), Vector(-self.alpha / 2.0, 0.0, 0.0), Vector(-self.alpha / 2.0 - self.beta, 0.0) ), color=Vector(0.5, 0.5, 0.5), alpha=0.0)) other_face_mesh_list.append(ColoredMesh(mesh=TriangleMesh().add_quad( Vector(self.alpha / 2.0, 0.0, -0.3), Vector(self.alpha / 2.0 + self.beta, 0.0, -0.3), Vector(self.alpha / 2.0 + self.beta, 0.0, 0.0), Vector(self.alpha / 2.0, 0.0, 0.0) ), color=Vector(0.5, 0.5, 0.5), alpha=0.0)) if rotated: other_face_mesh_list = [LinearTransform().make_rotation(Vector(0.0, 0.0, 1.0), math.pi / 2.0)(mesh) for mesh in other_face_mesh_list] return other_face_mesh_list def can_apply_cutmesh_for_pass(self, i, cut_mesh, cut_pass, generator_mesh_list): # Unlike most puzzles, this one is constructed entirely pre-cut. return False def make_generator_mesh_list(self): mesh_list = [] mesh = TriangleMesh.make_disk(Vector(self.alpha / 2.0, 0.0, 0.0), Vector(-1.0, 0.0, 0.0), 4.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=Vector(1.0, 0.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(1.0, 0.0, 0.0)) mesh_list.append(mesh) mesh = TriangleMesh.make_disk(Vector(-self.alpha / 2.0, 0.0, 0.0), Vector(1.0, 0.0, 0.0), 4.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=Vector(-1.0, 0.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(-1.0, 0.0, 0.0)) mesh_list.append(mesh) mesh = TriangleMesh.make_disk(Vector(0.0, self.alpha / 2.0, 0.0), Vector(0.0, -1.0, 0.0), 4.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=Vector(0.0, 1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 1.0, 0.0)) mesh_list.append(mesh) mesh = TriangleMesh.make_disk(Vector(0.0, -self.alpha / 2.0, 0.0), Vector(0.0, 1.0, 0.0), 4.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=Vector(0.0, -1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, -1.0, 0.0)) mesh_list.append(mesh) mesh = TriangleMesh.make_disk(Vector(0.0, 0.0, self.alpha / 2.0), Vector(0.0, 0.0, -1.0), 4.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=Vector(0.0, 0.0, 1.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 0.0, 1.0)) mesh_list.append(mesh) mesh = TriangleMesh.make_disk(Vector(0.0, 0.0, -self.alpha / 2.0), Vector(0.0, 0.0, 1.0), 4.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=Vector(0.0, 0.0, -1.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 0.0, -1.0)) mesh_list.append(mesh) mesh = TriangleMesh.make_disk(Vector(self.alpha / 2.0, 0.0, 0.0), Vector(1.0, 0.0, 0.0), 4.0, 4) + TriangleMesh.make_disk(Vector(-self.alpha / 2.0, 0.0, 0.0), Vector(-1.0, 0.0, 0.0), 4.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=Vector(1.0, 0.0, 0.0), angle=math.pi / 4.0, pick_point=Vector(1.5, 0.0, 0.0)) mesh_list.append(mesh) mesh = TriangleMesh.make_disk(Vector(self.alpha / 2.0, 0.0, 0.0), Vector(1.0, 0.0, 0.0), 4.0, 4) + TriangleMesh.make_disk(Vector(-self.alpha / 2.0, 0.0, 0.0), Vector(-1.0, 0.0, 0.0), 4.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=Vector(1.0, 0.0, 0.0), angle=-math.pi / 4.0, pick_point=Vector(-1.5, 0.0, 0.0)) mesh_list.append(mesh) mesh = TriangleMesh.make_disk(Vector(0.0, self.alpha / 2.0, 0.0), Vector(0.0, 1.0, 0.0), 4.0, 4) + TriangleMesh.make_disk(Vector(0.0, -self.alpha / 2.0, 0.0), Vector(0.0, -1.0, 0.0), 4.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=Vector(0.0, 1.0, 0.0), angle=math.pi / 4.0, pick_point=Vector(0.0, 1.5, 0.0)) mesh_list.append(mesh) mesh = TriangleMesh.make_disk(Vector(0.0, self.alpha / 2.0, 0.0), Vector(0.0, 1.0, 0.0), 4.0, 4) + TriangleMesh.make_disk(Vector(0.0, -self.alpha / 2.0, 0.0), Vector(0.0, -1.0, 0.0), 4.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=Vector(0.0, 1.0, 0.0), angle=-math.pi / 4.0, pick_point=Vector(0.0, -1.5, 0.0)) mesh_list.append(mesh) mesh = TriangleMesh.make_disk(Vector(0.0, 0.0, self.alpha / 2.0), Vector(0.0, 0.0, 1.0), 4.0, 4) + TriangleMesh.make_disk(Vector(0.0, 0.0, -self.alpha / 2.0), Vector(0.0, 0.0, -1.0), 4.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=Vector(0.0, 0.0, 1.0), angle=math.pi / 4.0, pick_point=Vector(0.0, 0.0, 1.5)) mesh_list.append(mesh) mesh = TriangleMesh.make_disk(Vector(0.0, 0.0, self.alpha / 2.0), Vector(0.0, 0.0, 1.0), 4.0, 4) + TriangleMesh.make_disk(Vector(0.0, 0.0, -self.alpha / 2.0), Vector(0.0, 0.0, -1.0), 4.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=Vector(0.0, 0.0, 1.0), angle=-math.pi / 4.0, pick_point=Vector(0.0, 0.0, -1.5)) mesh_list.append(mesh) point_cloud = PointCloud() point_cloud.add_point(Vector(-self.alpha / 2.0, -self.alpha / 2.0 - 2.0 * self.beta + 0.29, 0.71)) point_cloud.add_point(Vector(-self.alpha / 2.0, -self.alpha / 2.0 - 2.0 * self.beta + 0.29, -0.71)) point_cloud.add_point(Vector(self.alpha / 2.0, -self.alpha / 2.0 - 2.0 * self.beta + 0.29, 0.71)) point_cloud.add_point(Vector(self.alpha / 2.0, -self.alpha / 2.0 - 2.0 * self.beta + 0.29, -0.71)) point_cloud.add_point(Vector(self.alpha / 2.0, self.alpha / 2.0 + 2.0 * self.beta - 0.29, 0.71)) point_cloud.add_point(Vector(self.alpha / 2.0, self.alpha / 2.0 + 2.0 * self.beta - 0.29, -0.71)) point_cloud.add_point(Vector(-self.alpha / 2.0, self.alpha / 2.0 + 2.0 * self.beta - 0.29, 0.71)) point_cloud.add_point(Vector(-self.alpha / 2.0, self.alpha / 2.0 + 2.0 * self.beta - 0.29, -0.71)) x_mesh = point_cloud.find_convex_hull() y_mesh = LinearTransform().make_rotation(Vector(0.0, 0.0, 1.0), math.pi / 2.0)(x_mesh) z_mesh = LinearTransform().make_rotation(Vector(0.0, 1.0, 0.0), math.pi / 2.0)(x_mesh) x_mesh = GeneratorMesh(mesh=x_mesh, axis=Vector(1.0, 0.0, 0.0), angle=0.0, pick_point=None) y_mesh = GeneratorMesh(mesh=y_mesh, axis=Vector(0.0, 1.0, 0.0), angle=0.0, pick_point=None) z_mesh = GeneratorMesh(mesh=z_mesh, axis=Vector(0.0, 0.0, 1.0), angle=0.0, pick_point=None) mesh_list += [x_mesh, y_mesh, z_mesh] for i in range(2): mesh_list[6 + i].capture_tree_root = { 'op': 'subtract', 'children': [ {'mesh': 6 + i}, {'mesh': len(mesh_list) - 3} ] } mesh_list[8 + i].capture_tree_root = { 'op': 'subtract', 'children': [ {'mesh': 8 + i}, {'mesh': len(mesh_list) - 2} ] } mesh_list[10 + i].capture_tree_root = { 'op': 'subtract', 'children': [ {'mesh': 10 + i}, {'mesh': len(mesh_list) - 1} ] } return mesh_list class WormHoleII(WormHoleBase): def __init__(self): super().__init__() def bandages(self): return True def make_initial_mesh_list(self): mesh_list = super().make_initial_mesh_list() # red face color = Vector(1.0, 0.0, 0.0) for mesh in self.make_other_faces(False, False, color) + self.make_other_faces(True, True, color): mesh_list.append(AffineTransform().make_translation(Vector(0.0, 0.0, 1.0))(mesh)) # orange face color = Vector(1.0, 0.5, 0.0) for mesh in self.make_other_faces(False, False, color) + self.make_other_faces(True, True, color): mesh_list.append(AffineTransform().make_rigid_body_motion(Vector(1.0, 0.0, 0.0), math.pi, Vector(0.0, 0.0, -1.0))(mesh)) # green face color = Vector(0.0, 1.0, 0.0) for mesh in self.make_other_faces(False, False, color) + self.make_other_faces(True, True, color): mesh_list.append(AffineTransform().make_rigid_body_motion(Vector(0.0, 1.0, 0.0), math.pi / 2.0, Vector(1.0, 0.0, 0.0))(mesh)) # blue face color = Vector(0.0, 0.0, 1.0) for mesh in self.make_other_faces(False, False, color) + self.make_other_faces(True, True, color): mesh_list.append(AffineTransform().make_rigid_body_motion(Vector(0.0, 1.0, 0.0), -math.pi / 2.0, Vector(-1.0, 0.0, 0.0))(mesh)) # yellow face color = Vector(1.0, 1.0, 0.0) for mesh in self.make_other_faces(True, False, color) + self.make_other_faces(True, True, color): mesh_list.append(AffineTransform().make_rigid_body_motion(Vector(1.0, 0.0, 0.0), -math.pi / 2.0, Vector(0.0, 1.0, 0.0))(mesh)) # white face color = Vector(1.0, 1.0, 1.0) for mesh in self.make_other_faces(True, False, color) + self.make_other_faces(True, True, color): mesh_list.append(AffineTransform().make_rigid_body_motion(Vector(1.0, 0.0, 0.0), math.pi / 2.0, Vector(0.0, -1.0, 0.0))(mesh)) # hidden face (for core logic) mesh = TriangleMesh().add_triangle(Triangle( Vector(-self.alpha / 2.0 - 2.0 * self.beta, -self.alpha / 2.0 - 2.0 * self.beta, self.alpha / 2.0), Vector(-self.alpha / 2.0, -self.alpha / 2.0 - 2.0 * self.beta, self.alpha / 2.0 + 2.0 * self.beta), Vector(-self.alpha / 2.0 - 2.0 * self.beta, -self.alpha / 2.0, self.alpha / 2.0 + 2.0 * self.beta) )) mesh = ColoredMesh(mesh=mesh, color=Vector(0.0, 0.0, 0.0), alpha=0.0) mesh_list.append(mesh) return mesh_list class LatchCube(RubiksCube): def __init__(self): super().__init__() def bandages(self): return True def make_texture_space_transform_for_plane(self, plane): linear_transform = LinearTransform() z_axis = plane.unit_normal.clone() # The z-axis always points away from the face. if z_axis.is_vector(Vector(1.0, 0.0, 0.0)): x_axis = linear_transform.y_axis elif z_axis.is_vector(Vector(-1.0, 0.0, 0.0)): x_axis = linear_transform.y_axis elif z_axis.is_vector(Vector(0.0, 1.0, 0.0)): x_axis = linear_transform.z_axis elif z_axis.is_vector(Vector(0.0, -1.0, 0.0)): x_axis = linear_transform.z_axis elif z_axis.is_vector(Vector(0.0, 0.0, -1.0)): x_axis = linear_transform.x_axis elif z_axis.is_vector(Vector(0.0, 0.0, 1.0)): x_axis = linear_transform.x_axis y_axis = z_axis.cross(x_axis) # Always make it a right-handed system. transform = AffineTransform(x_axis=x_axis, y_axis=y_axis, z_axis=z_axis, translation=plane.center) inverse_transform = transform.calc_inverse() return inverse_transform def annotate_puzzle_data(self, puzzle_data): puzzle_data['custom_texture_path_list'] = [ 'images/latch_cube/blue_face.png', 'images/latch_cube/green_face.png', 'images/latch_cube/black_face.png', 'images/latch_cube/white_face.png', 'images/latch_cube/red_face.png', 'images/latch_cube/yellow_face.png' ] mesh_list = puzzle_data['mesh_list'] for mesh_data in mesh_list: mesh = TriangleMesh().from_dict(mesh_data) center = mesh.calc_center() plane = PointCloud(point_list=mesh.vertex_list).fit_plane() if plane.center.dot(plane.unit_normal) < 0.0: plane.unit_normal = -plane.unit_normal special_case_data = {'arrow': None} if Vector(1.0, 0.0, 0.0).is_vector(plane.unit_normal) or Vector(-1.0, 0.0, 0.0).is_vector(plane.unit_normal): if (center.y > 1.0 / 3.0 or center.y < -1.0 / 3.0) and -1.0 / 3.0 < center.z < 1.0 / 3.0: if Vector(1.0, 0.0, 0.0).is_vector(plane.unit_normal): special_case_data['arrow'] = 'black' elif Vector(-1.0, 0.0, 0.0).is_vector(plane.unit_normal): special_case_data['arrow'] = 'white' elif Vector(0.0, 1.0, 0.0).is_vector(plane.unit_normal) or Vector(0.0, -1.0, 0.0).is_vector(plane.unit_normal): if (center.z > 1.0 / 3.0 or center.z < -1.0 / 3.0) and -1.0 / 3.0 < center.x < 1.0 / 3.0: if Vector(0.0, 1.0, 0.0).is_vector(plane.unit_normal): special_case_data['arrow'] = 'black' elif Vector(0.0, -1.0, 0.0).is_vector(plane.unit_normal): special_case_data['arrow'] = 'white' elif Vector(0.0, 0.0, 1.0).is_vector(plane.unit_normal) or Vector(0.0, 0.0, -1.0).is_vector(plane.unit_normal): if (center.x > 1.0 / 3.0 or center.x < -1.0 / 3.0) and -1.0 / 3.0 < center.y < 1.0 / 3.0: if Vector(0.0, 0.0, 1.0).is_vector(plane.unit_normal): special_case_data['arrow'] = 'black' elif Vector(0.0, 0.0, -1.0).is_vector(plane.unit_normal): special_case_data['arrow'] = 'white' mesh_data['special_case_data'] = special_case_data class Rubiks3x3x5(RubiksCube): def __init__(self): pass def bandages(self): return True def make_initial_mesh_list(self): mesh_list = super().make_initial_mesh_list() transform = LinearTransform().make_non_uniform_scale(1.0, 5.0 / 3.0, 1.0) mesh_list = transform(mesh_list) return mesh_list def make_generator_mesh_list(self): mesh_list = super().make_generator_mesh_list() l_cut_disk = TriangleMesh.make_disk(Vector(-1.0, 0.0, 0.0), Vector(1.0, 0.0, 0.0), 4.0, 4) r_cut_disk = TriangleMesh.make_disk(Vector(1.0, 0.0, 0.0), Vector(-1.0, 0.0, 0.0), 4.0, 4) d_cut_disk = TriangleMesh.make_disk(Vector(0.0, -1.0, 0.0), Vector(0.0, 1.0, 0.0), 4.0, 4) u_cut_disk = TriangleMesh.make_disk(Vector(0.0, 1.0, 0.0), Vector(0.0, -1.0, 0.0), 4.0, 4) b_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, -1.), Vector(0.0, 0.0, 1.0), 4.0, 4) f_cut_disk = TriangleMesh.make_disk(Vector(0.0, 0.0, 1.0), Vector(0.0, 0.0, -1.0), 4.0, 4) l_cut_disk = GeneratorMesh(mesh=l_cut_disk, axis=Vector(-1.0, 0.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(-5.0 / 3.0, 0.0, 0.0), min_capture_count=21) r_cut_disk = GeneratorMesh(mesh=r_cut_disk, axis=Vector(1.0, 0.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(5.0 / 3.0, 0.0, 0.0), min_capture_count=21) d_cut_disk = GeneratorMesh(mesh=d_cut_disk, axis=Vector(0.0, -1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, -5.0 / 3.0, 0.0), min_capture_count=21) u_cut_disk = GeneratorMesh(mesh=u_cut_disk, axis=Vector(0.0, 1.0, 0.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 5.0 / 3.0, 0.0), min_capture_count=21) b_cut_disk = GeneratorMesh(mesh=b_cut_disk, axis=Vector(0.0, 0.0, -1.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 0.0, -5.0 / 3.0), min_capture_count=21) f_cut_disk = GeneratorMesh(mesh=f_cut_disk, axis=Vector(0.0, 0.0, 1.0), angle=math.pi / 2.0, pick_point=Vector(0.0, 0.0, 5.0 / 3.0), min_capture_count=21) mesh_list += [l_cut_disk, r_cut_disk, d_cut_disk, u_cut_disk, b_cut_disk, f_cut_disk] return mesh_list class MultiCube(PuzzleDefinitionBase): def __init__(self): super().__init__() def make_initial_mesh_list(self): base_mesh = TriangleMesh() base_mesh.add_triangle(Triangle(Vector(1.0, -1.0, 0.0), Vector(0.5, 0.0, 0.0), Vector(0.0, -0.5, 0.0))) base_mesh.add_triangle(Triangle(Vector(1.0, 1.0, 0.0), Vector(0.0, 0.5, 0.0), Vector(0.5, 0.0, 0.0))) base_mesh.add_triangle(Triangle(Vector(-1.0, 1.0, 0.0), Vector(-0.5, 0.0, 0.0), Vector(0.0, 0.5, 0.0))) base_mesh.add_triangle(Triangle(Vector(-1.0, -1.0, 0.0), Vector(0.0, -0.5, 0.0), Vector(-0.5, 0.0, 0.0))) base_mesh.add_triangle(Triangle(Vector(-1.0, -1.0, 0.0), Vector(1.0, -1.0, 0.0), Vector(0.0, -0.5, 0.0))) base_mesh.add_triangle(Triangle(Vector(1.0, -1.0, 0.0), Vector(1.0, 1.0, 0.0), Vector(0.5, 0.0, 0.0))) base_mesh.add_triangle(Triangle(Vector(1.0, 1.0, 0.0), Vector(-1.0, 1.0, 0.0), Vector(0.0, 0.5, 0.0))) base_mesh.add_triangle(Triangle(Vector(-1.0, 1.0, 0.0), Vector(-1.0, -1.0, 0.0), Vector(-0.5, 0.0, 0.0))) mesh_list = self.make_standard_cube_faces_using_base_mesh(base_mesh) base_mesh = TriangleMesh() base_mesh.add_triangle(Triangle(Vector(0.0, 0.0, -0.25), Vector(0.5, 0.0, -0.25), Vector(0.0, 0.5, -0.25))) base_mesh.add_triangle(Triangle(Vector(0.0, 0.0, -0.25), Vector(0.0, 0.5, -0.25), Vector(-0.5, 0.0, -0.25))) base_mesh.add_triangle(Triangle(Vector(0.0, 0.0, -0.25), Vector(-0.5, 0.0, -0.25), Vector(0.0, -0.5, -0.25))) base_mesh.add_triangle(Triangle(Vector(0.0, 0.0, -0.25), Vector(0.0, -0.5, -0.25), Vector(0.5, 0.0, -0.25))) mesh_list += self.make_standard_cube_faces_using_base_mesh(base_mesh) return mesh_list def make_generator_mesh_list(self): mesh_list = [] for i, vector in enumerate(Vector(1.0, 1.0, 1.0).sign_permute()): mesh = GeneratorMesh(mesh=TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), -vector.normalized(), 4.0, 4), axis=vector.normalized(), angle=2.0 * math.pi / 3.0, pick_point=vector) mesh_a = AffineTransform().make_translation(vector.normalized() * 0.1)(mesh) mesh_b = AffineTransform().make_translation(vector.normalized() * 0.525)(mesh) mesh_list.append(mesh_a) mesh_list.append(mesh_b) mesh_b.pick_point = None mesh_a.capture_tree_root = { 'op': 'union', 'children': [ { 'op': 'subtract', 'children': [ {'mesh': i * 2}, {'mesh': 16} ] }, { 'op': 'intersection', 'children': [ {'mesh': 16}, {'mesh': i * 2 + 1} ] } ] } self.core_mesh = GeneratorMesh(mesh=LinearTransform().make_uniform_scale(0.9)(TriangleMesh.make_polyhedron(Polyhedron.HEXAHEDRON)), pick_point=None) mesh_list.append(self.core_mesh) # TODO: Add center slice generators with offset pick-points. return mesh_list def can_apply_cutmesh_to_mesh(self, i, cut_mesh, cut_pass, mesh): if i == 16: return False # Ignore the core mesh. if i % 2 == 0: return True if self.core_mesh.captures_mesh(mesh): return True return False class SuperStar(PuzzleDefinitionBase): def __init__(self): super().__init__() self.frame_list = [ LinearTransform().make_rotation(Vector(1.0, 0.0, 0.0), 0.0), LinearTransform().make_rotation(Vector(1.0, 0.0, 0.0), math.pi / 2.0), LinearTransform().make_rotation(Vector(1.0, 0.0, 0.0), math.pi), LinearTransform().make_rotation(Vector(1.0, 0.0, 0.0), -math.pi / 2.0), LinearTransform().make_rotation(Vector(0.0, 1.0, 0.0), math.pi), LinearTransform().make_rotation(Vector(0.0, 1.0, 0.0), -math.pi / 2.0), LinearTransform().make_rotation(Vector(0.0, 0.0, 1.0), math.pi), LinearTransform().make_rotation(Vector(1.0, 0.0, 0.0), math.pi / 2.0)(LinearTransform().make_rotation(Vector(0.0, 0.0, 1.0), math.pi)) ] def make_octant_triangles(self, frame): center = (frame.x_axis + frame.y_axis + frame.z_axis) / 2.0 return [ Triangle(frame.x_axis, frame.x_axis + frame.y_axis, center), Triangle(frame.x_axis + frame.y_axis, frame.y_axis, center), Triangle(frame.y_axis, frame.y_axis + frame.z_axis, center), Triangle(frame.y_axis + frame.z_axis, frame.z_axis, center), Triangle(frame.z_axis, frame.z_axis + frame.x_axis, center), Triangle(frame.z_axis + frame.x_axis, frame.x_axis, center) ] def make_initial_mesh_list(self): mesh_list = [] # TODO: Add support on any puzzle for multiple color schemes? This puzzle is a good candidate. color_list = [ Vector(1.0, 0.0, 0.0), Vector(0.0, 1.0, 0.0), Vector(0.0, 0.5, 1.0), Vector(1.0, 1.0, 0.0) ] # Make a stellated rhombic dodecahedron. i = 0 for frame in self.frame_list: for triangle in self.make_octant_triangles(frame): mesh = TriangleMesh() mesh.add_triangle(triangle) color = color_list[i] i = (i + 1) % len(color_list) mesh_list.append(ColoredMesh(mesh=mesh, color=color)) return mesh_list def make_generator_mesh_list(self): mesh_list = [] frame = LinearTransform() axis_pair_list = [ (frame.x_axis, frame.y_axis), (frame.x_axis, -frame.y_axis), (frame.x_axis, frame.z_axis), (frame.x_axis, -frame.z_axis), (-frame.x_axis, frame.y_axis), (-frame.x_axis, -frame.y_axis), (-frame.x_axis, frame.z_axis), (-frame.x_axis, -frame.z_axis), (frame.z_axis, frame.y_axis), (frame.z_axis, -frame.y_axis), (-frame.z_axis, frame.y_axis), (-frame.z_axis, -frame.y_axis) ] for axis_pair in axis_pair_list: axis_a = axis_pair[0] axis_b = axis_pair[1] axis_sum = axis_a + axis_b mesh = GeneratorMesh(mesh=TriangleMesh.make_disk(axis_sum / 2.0, -axis_sum.normalized(), 4.0, 4), pick_point=axis_sum, axis=axis_sum.normalized(), angle=math.pi) mesh_list.append(mesh) axis_list = [ frame.x_axis, -frame.x_axis, frame.y_axis, -frame.y_axis, frame.z_axis, -frame.z_axis ] length = ((frame.x_axis + frame.y_axis + frame.z_axis) / 2.0).dot(frame.x_axis) for axis in axis_list: mesh = GeneratorMesh(mesh=TriangleMesh.make_disk(axis * length, -axis, 4.0, 4), pick_point=axis, axis=axis, angle=math.pi / 2.0) mesh_list.append(mesh) for frame in self.frame_list: center = (frame.x_axis + frame.y_axis + frame.z_axis) / 2.0 mesh = GeneratorMesh(mesh=TriangleMesh.make_disk(center * (2.0 / 3.0), -center.normalized(), 4.0, 4), pick_point=center, axis=center.normalized(), angle=2.0 * math.pi / 3.0) mesh_list.append(mesh) return mesh_list class DreidelCube(RubiksCube): def __init__(self): super().__init__() def make_generator_mesh_list(self): mesh_list = super().make_generator_mesh_list() radius = 2.0 * math.sqrt(2.0) / 3.0 for center in Vector(1.0, 1.0, 1.0).sign_permute(): sphere = Sphere(center, radius) mesh = GeneratorMesh(mesh=sphere.make_mesh(subdivision_level=2), axis=center.normalized(), angle=math.pi / 3.0, pick_point=center) mesh_list.append(mesh) return mesh_list def can_apply_cutmesh_for_pass(self, i, cut_mesh, cut_pass, generator_mesh_list): if cut_pass == 0: return True if cut_pass == 1: return True if 0 <= i < 6 else False return False def transform_meshes_for_more_cutting(self, mesh_list, generator_mesh_list, cut_pass): if cut_pass == 0: for i in range(6, len(generator_mesh_list)): self.apply_generator(mesh_list, generator_mesh_list[i]) return True if cut_pass == 1: for i in range(6, len(generator_mesh_list)): self.apply_generator(mesh_list, generator_mesh_list[i], inverse=True) return False class EitansStar(PuzzleDefinitionBase): def __init__(self): super().__init__() def make_initial_mesh_list(self): self.mesh = TriangleMesh().make_polyhedron(Polyhedron.ICOSAHEDRON) triangle = self.mesh.triangle_list[0] adjacent_triangles_list = self.mesh.find_adjacent_triangles(triangle) point_cloud = PointCloud() for triangle_info in adjacent_triangles_list: triangle = triangle_info[0] triangle = self.mesh.make_triangle(triangle) point_cloud.add_point((triangle[triangle_info[1]] + triangle[triangle_info[1] + 1]) / 2.0) point_cloud.add_point((triangle[triangle_info[1]] + triangle[triangle_info[1] - 1]) / 2.0) self.length = point_cloud.calc_center().length() face_mesh_list, plane_list = self.make_face_meshes(self.mesh.clone()) return face_mesh_list def make_generator_mesh_list(self): mesh_list = [] for vertex in self.mesh.vertex_list: normal = vertex.normalized() mesh = TriangleMesh.make_disk(Vector(0.0, 0.0, 0.0), -normal, 5.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=normal, angle=2.0 * math.pi / 5.0, pick_point=vertex) mesh_list.append(mesh) for triangle in self.mesh.triangle_list: triangle = self.mesh.make_triangle(triangle) plane = triangle.calc_plane() mesh = TriangleMesh.make_disk(plane.unit_normal * self.length, -plane.unit_normal, 5.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=plane.unit_normal, angle=2.0 * math.pi / 3.0, pick_point=triangle.calc_center()) mesh_list.append(mesh) return mesh_list class Cubic4x6x8(PuzzleDefinitionBase): def __init__(self): super().__init__() def bandages(self): return True def make_generator_mesh_list(self): mesh_list = [] for axis in [Vector(1.0, 0.0, 0.0), Vector(0.0, 1.0, 0.0), Vector(0.0, 0.0, 1.0)]: for j in range(4): center = axis * (float(j) / 5.0) mesh = TriangleMesh.make_disk(center, -axis, 4.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=axis, angle=math.pi / 2.0, pick_point=axis + center) mesh_list.append(mesh) center = axis * (-float(j) / 5.0) mesh = TriangleMesh.make_disk(center, axis, 4.0, 4) mesh = GeneratorMesh(mesh=mesh, axis=-axis, angle=math.pi / 2.0, pick_point=-axis + center) mesh_list.append(mesh) return mesh_list def can_apply_cutmesh_for_pass(self, i, cut_mesh, cut_pass, generator_mesh_list): if 0 <= i < 8: return True if 0 <= i < 6 else False if 8 <= i < 16: return True if 0 <= i - 8 < 4 else False if 16 <= i < 24: return True if 0 <= i - 16 < 8 else False # TODO: Add conjoined 3x3 Rubkiks Cubes, a concave shape. # TODO: Add constrained cube. It's just a 3x3 with logic needed in the simulator to handle the constraints. Some additional rendering # would be needed to show which way a face can turn, though, which is the crux of implementing this puzzle. Maybe do this with texture switches.
52.427083
263
0.607835
14,063
85,561
3.489796
0.024888
0.071276
0.061801
0.0401
0.868635
0.83858
0.806508
0.777513
0.748314
0.722579
0
0.077551
0.241489
85,561
1,632
264
52.427083
0.678655
0.012786
0
0.477498
0
0
0.007568
0.002535
0
0
0
0.000613
0.000763
1
0.091533
false
0.054157
0.007628
0.012204
0.210526
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
7
0f1bcb08cbe4f6f0fcbc486f0b3461609c79c4ec
1,447
py
Python
blog/blog_Plugin/music.py
gdludan/blog
8b4540d4e5d2110b661f0acd4e98b4278053eae9
[ "MIT" ]
3
2018-12-15T13:08:48.000Z
2019-01-05T08:33:14.000Z
blog/blog_Plugin/music.py
cang-meng/blog
8b4540d4e5d2110b661f0acd4e98b4278053eae9
[ "MIT" ]
9
2020-06-05T19:45:05.000Z
2022-03-11T23:38:28.000Z
blog/blog_Plugin/music.py
gdludan/blog
8b4540d4e5d2110b661f0acd4e98b4278053eae9
[ "MIT" ]
null
null
null
import requests def get_136Music(name=""): ''' 获取网易云歌曲详细信息调用接口 :param name: 歌名 :return: 歌曲详细信息的字典 ''' url = "https://api.bzqll.com/music/netease/search" params = { 'key': 579621905, 's': name, 'limit': 1, 'offset': 0, 'type': 'song'} data = requests.get(url, params=params).json() if data["data"]: data["data"][0]['pic'] = requests.get( data["data"][0]['pic'], timeout=10).url data["data"][0]['url'] = requests.get( data["data"][0]['url'], timeout=10).url data["data"][0]['lrc'] = requests.get( data["data"][0]['lrc'], timeout=10).url return data["data"][0] else: return {} def get_tencentMusic(name=""): ''' 获取腾讯歌曲详细信息 :param name: 歌名 :return: 歌曲详细信息的字典 ''' url = "https://api.bzqll.com/music/tencent/search" params = { 'key': 579621905, 's': name, 'limit': 1, 'offset': 0, 'type': 'song'} data = requests.get(url, params=params).json() if data["data"]: data["data"][0]['pic'] = requests.get( data["data"][0]['pic'], timeout=10).url data["data"][0]['url'] = requests.get( data["data"][0]['url'], timeout=10).url data["data"][0]['lrc'] = requests.get( data["data"][0]['lrc'], timeout=10).url return data["data"][0] else: return {}
26.796296
54
0.494126
170
1,447
4.194118
0.235294
0.201964
0.176718
0.159888
0.869565
0.869565
0.869565
0.869565
0.869565
0.869565
0
0.049756
0.291638
1,447
53
55
27.301887
0.645854
0.066344
0
0.871795
0
0
0.17638
0
0
0
0
0
0
1
0.051282
false
0
0.025641
0
0.179487
0
0
0
0
null
1
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
7e49a600fd0d39bd0ae783f9c77c5d0b3fa7ddff
14,123
py
Python
app/python/testing/flood_requests/sequential_requests.py
RadjaHachilif/agotool
2fcc3fd5a156053b528ec927bab79ddaf7af2dec
[ "MIT" ]
6
2016-04-14T11:47:43.000Z
2022-01-29T14:34:59.000Z
app/python/testing/flood_requests/sequential_requests.py
RadjaHachilif/agotool
2fcc3fd5a156053b528ec927bab79ddaf7af2dec
[ "MIT" ]
2
2019-12-21T12:15:46.000Z
2021-01-08T12:22:17.000Z
app/python/testing/flood_requests/sequential_requests.py
RadjaHachilif/agotool
2fcc3fd5a156053b528ec927bab79ddaf7af2dec
[ "MIT" ]
1
2021-03-04T10:26:18.000Z
2021-03-04T10:26:18.000Z
import sys, os, subprocess, datetime import numpy as np sys.path.insert(0, '../..') import variables if variables.VERSION_ == "UniProt": fn_species = "species_UniProt.txt" elif variables.VERSION_ == "STRING": fn_species = "species_STRING_v11.txt" else: print("not sure which species file to use") raise StopIteration url = sys.argv[1] prefix = sys.argv[2] sequential_iterations = int(sys.argv[3]) log_file_name = str(sys.argv[4]) try: verbose = sys.argv[5] if verbose.strip().upper() == "FALSE": verbose = False except: verbose = False taxa = [] for line in open(fn_species): taxa.append(line.strip()) FNULL = open(os.devnull, 'w') ### correct and working curl cmd for reference # curl "http://localhost:5911/api?enrichment_method=genome&taxid=9606&output_format=tsv-no-header&caller_identity=test_v1_HUMAN_1_12345&FDR_cutoff=0.05&abundance_ratio=&background=&foreground=9606.ENSP00000485227%0d9606.ENSP00000365147%0d9606.ENSP00000441140%0d9606.ENSP00000378338%0d9606.ENSP00000357453%0d9606.ENSP00000262113%0d9606.ENSP00000267569%0d9606.ENSP00000269571%0d9606.ENSP00000314776%0d9606.ENSP00000356404%0d9606.ENSP00000309262%0d9606.ENSP00000315477%0d9606.ENSP00000229595%0d9606.ENSP00000454746%0d9606.ENSP00000306788%0d9606.ENSP00000256495%0d9606.ENSP00000375086%0d9606.ENSP00000483276%0d9606.ENSP00000380352%0d9606.ENSP00000426906%0d9606.ENSP00000276914%0d9606.ENSP00000304553%0d9606.ENSP00000378328%0d9606.ENSP00000398861%0d9606.ENSP00000384700%0d9606.ENSP00000310111%0d9606.ENSP00000479617%0d9606.ENSP00000383933%0d9606.ENSP00000338260%0d9606.ENSP00000263253%0d9606.ENSP00000369497%0d9606.ENSP00000268668%0d9606.ENSP00000225823%0d9606.ENSP00000380008%0d9606.ENSP00000344456%0d9606.ENSP00000385814%0d9606.ENSP00000423067%0d9606.ENSP00000300773%0d9606.ENSP00000420037%0d9606.ENSP00000448012%0d9606.ENSP00000315602%0d9606.ENSP00000364028%0d9606.ENSP00000382982%0d9606.ENSP00000399970%0d9606.ENSP00000379904%0d9606.ENSP00000267163%0d9606.ENSP00000469391%0d9606.ENSP00000305151%0d9606.ENSP00000357907%0d9606.ENSP00000410910%0d9606.ENSP00000380153%0d9606.ENSP00000174618%0d9606.ENSP00000371377%0d9606.ENSP00000476795%0d9606.ENSP00000314505%0d9606.ENSP00000254695%0d9606.ENSP00000385523%0d9606.ENSP00000429240%0d9606.ENSP00000306100%0d9606.ENSP00000397927%0d9606.ENSP00000252744%0d9606.ENSP00000340505%0d9606.ENSP00000367691%0d9606.ENSP00000336724%0d9606.ENSP00000376611%0d9606.ENSP00000423917%0d9606.ENSP00000313811%0d9606.ENSP00000430733%0d9606.ENSP00000263097%0d9606.ENSP00000426455%0d9606.ENSP00000412897%0d9606.ENSP00000257430%0d9606.ENSP00000378803%0d9606.ENSP00000231461%0d9606.ENSP00000250113%0d9606.ENSP00000377782%0d9606.ENSP00000485401%0d9606.ENSP00000232975%0d9606.ENSP00000348769%0d9606.ENSP00000324403%0d9606.ENSP00000257776%0d9606.ENSP00000361021%0d9606.ENSP00000418960%0d9606.ENSP00000355374%0d9606.ENSP00000012443%0d9606.ENSP00000276414%0d9606.ENSP00000330269%0d9606.ENSP00000225430%0d9606.ENSP00000351015%0d9606.ENSP00000384848%0d9606.ENSP00000294889%0d9606.ENSP00000367498%0d9606.ENSP00000267889%0d9606.ENSP00000243578%0d9606.ENSP00000262133%0d9606.ENSP00000370021%0d9606.ENSP00000345163%0d9606.ENSP00000349493%0d9606.ENSP00000421725" > response.txt # url_ = "http://localhost:5911/api" desired_pvalue = 4.905584053470992e-06 ##### sequential processing (with 2 parallel calls for each iteration) using 1. def sequential_requests(url, prefix, sequential_iterations, log_file_name, verbose): FNULL = open(os.devnull, 'w') with open(log_file_name, "a") as fh_log: print(log_file_name) i = 0 while i <= sequential_iterations: for taxon in taxa: i += 1 if i <= sequential_iterations: caller_id_wrong = "{}_WRONG_{}_{}".format(prefix, i, taxon) caller_id_human = "{}_HUMAN_{}_{}".format(prefix, i, taxon) file_wrong = prefix + "/" + "sequential_" + caller_id_wrong + ".txt" file_human = prefix + "/" + "sequential_" + caller_id_human + ".txt" if verbose: print("RequestingSequential " + caller_id_wrong + " # " + str(datetime.datetime.now())) # is this visible anywhere? print("RequestingSequential " + caller_id_human + " # " + str(datetime.datetime.now())) fh_log.write("RequestingSequential " + caller_id_wrong + " # " + str(datetime.datetime.now()) + "\n") fh_log.write("RequestingSequential " + caller_id_human + " # " + str(datetime.datetime.now()) + "\n") # p1 = subprocess.Popen("perl sequential_wrong.pl %s %s %s >> %s" % (caller_id_wrong, taxon, url, file_wrong), shell=True, stderr=FNULL) # stress the system try to concurrently requests things # p2 = subprocess.Popen("perl sequential_correct.pl %s %s >> %s" % (caller_id_human, url, file_human), shell=True, stderr=FNULL) # p1.wait() # p2.wait() ### same input but wrong TaxID p1 = subprocess.Popen( '''curl "{}?enrichment_method=genome&taxid={}&output_format=tsv-no-header&caller_identity={}&FDR_cutoff=1.05&abundance_ratio=&background=&foreground=9606.ENSP00000485227%0d9606.ENSP00000365147%0d9606.ENSP00000441140%0d9606.ENSP00000378338%0d9606.ENSP00000357453%0d9606.ENSP00000262113%0d9606.ENSP00000267569%0d9606.ENSP00000269571%0d9606.ENSP00000314776%0d9606.ENSP00000356404%0d9606.ENSP00000309262%0d9606.ENSP00000315477%0d9606.ENSP00000229595%0d9606.ENSP00000454746%0d9606.ENSP00000306788%0d9606.ENSP00000256495%0d9606.ENSP00000375086%0d9606.ENSP00000483276%0d9606.ENSP00000380352%0d9606.ENSP00000426906%0d9606.ENSP00000276914%0d9606.ENSP00000304553%0d9606.ENSP00000378328%0d9606.ENSP00000398861%0d9606.ENSP00000384700%0d9606.ENSP00000310111%0d9606.ENSP00000479617%0d9606.ENSP00000383933%0d9606.ENSP00000338260%0d9606.ENSP00000263253%0d9606.ENSP00000369497%0d9606.ENSP00000268668%0d9606.ENSP00000225823%0d9606.ENSP00000380008%0d9606.ENSP00000344456%0d9606.ENSP00000385814%0d9606.ENSP00000423067%0d9606.ENSP00000300773%0d9606.ENSP00000420037%0d9606.ENSP00000448012%0d9606.ENSP00000315602%0d9606.ENSP00000364028%0d9606.ENSP00000382982%0d9606.ENSP00000399970%0d9606.ENSP00000379904%0d9606.ENSP00000267163%0d9606.ENSP00000469391%0d9606.ENSP00000305151%0d9606.ENSP00000357907%0d9606.ENSP00000410910%0d9606.ENSP00000380153%0d9606.ENSP00000174618%0d9606.ENSP00000371377%0d9606.ENSP00000476795%0d9606.ENSP00000314505%0d9606.ENSP00000254695%0d9606.ENSP00000385523%0d9606.ENSP00000429240%0d9606.ENSP00000306100%0d9606.ENSP00000397927%0d9606.ENSP00000252744%0d9606.ENSP00000340505%0d9606.ENSP00000367691%0d9606.ENSP00000336724%0d9606.ENSP00000376611%0d9606.ENSP00000423917%0d9606.ENSP00000313811%0d9606.ENSP00000430733%0d9606.ENSP00000263097%0d9606.ENSP00000426455%0d9606.ENSP00000412897%0d9606.ENSP00000257430%0d9606.ENSP00000378803%0d9606.ENSP00000231461%0d9606.ENSP00000250113%0d9606.ENSP00000377782%0d9606.ENSP00000485401%0d9606.ENSP00000232975%0d9606.ENSP00000348769%0d9606.ENSP00000324403%0d9606.ENSP00000257776%0d9606.ENSP00000361021%0d9606.ENSP00000418960%0d9606.ENSP00000355374%0d9606.ENSP00000012443%0d9606.ENSP00000276414%0d9606.ENSP00000330269%0d9606.ENSP00000225430%0d9606.ENSP00000351015%0d9606.ENSP00000384848%0d9606.ENSP00000294889%0d9606.ENSP00000367498%0d9606.ENSP00000267889%0d9606.ENSP00000243578%0d9606.ENSP00000262133%0d9606.ENSP00000370021%0d9606.ENSP00000345163%0d9606.ENSP00000349493%0d9606.ENSP00000421725" >> {}'''.format(url, taxon, caller_id_wrong, file_wrong), shell=True, stderr=FNULL) p1.wait() ### correct below, incorrect above p2 = subprocess.Popen('''curl "{}?enrichment_method=genome&taxid=9606&output_format=tsv-no-header&caller_identity{}=test_v1_HUMAN_1_12345&FDR_cutoff=0.05&abundance_ratio=&background=&foreground=9606.ENSP00000485227%0d9606.ENSP00000365147%0d9606.ENSP00000441140%0d9606.ENSP00000378338%0d9606.ENSP00000357453%0d9606.ENSP00000262113%0d9606.ENSP00000267569%0d9606.ENSP00000269571%0d9606.ENSP00000314776%0d9606.ENSP00000356404%0d9606.ENSP00000309262%0d9606.ENSP00000315477%0d9606.ENSP00000229595%0d9606.ENSP00000454746%0d9606.ENSP00000306788%0d9606.ENSP00000256495%0d9606.ENSP00000375086%0d9606.ENSP00000483276%0d9606.ENSP00000380352%0d9606.ENSP00000426906%0d9606.ENSP00000276914%0d9606.ENSP00000304553%0d9606.ENSP00000378328%0d9606.ENSP00000398861%0d9606.ENSP00000384700%0d9606.ENSP00000310111%0d9606.ENSP00000479617%0d9606.ENSP00000383933%0d9606.ENSP00000338260%0d9606.ENSP00000263253%0d9606.ENSP00000369497%0d9606.ENSP00000268668%0d9606.ENSP00000225823%0d9606.ENSP00000380008%0d9606.ENSP00000344456%0d9606.ENSP00000385814%0d9606.ENSP00000423067%0d9606.ENSP00000300773%0d9606.ENSP00000420037%0d9606.ENSP00000448012%0d9606.ENSP00000315602%0d9606.ENSP00000364028%0d9606.ENSP00000382982%0d9606.ENSP00000399970%0d9606.ENSP00000379904%0d9606.ENSP00000267163%0d9606.ENSP00000469391%0d9606.ENSP00000305151%0d9606.ENSP00000357907%0d9606.ENSP00000410910%0d9606.ENSP00000380153%0d9606.ENSP00000174618%0d9606.ENSP00000371377%0d9606.ENSP00000476795%0d9606.ENSP00000314505%0d9606.ENSP00000254695%0d9606.ENSP00000385523%0d9606.ENSP00000429240%0d9606.ENSP00000306100%0d9606.ENSP00000397927%0d9606.ENSP00000252744%0d9606.ENSP00000340505%0d9606.ENSP00000367691%0d9606.ENSP00000336724%0d9606.ENSP00000376611%0d9606.ENSP00000423917%0d9606.ENSP00000313811%0d9606.ENSP00000430733%0d9606.ENSP00000263097%0d9606.ENSP00000426455%0d9606.ENSP00000412897%0d9606.ENSP00000257430%0d9606.ENSP00000378803%0d9606.ENSP00000231461%0d9606.ENSP00000250113%0d9606.ENSP00000377782%0d9606.ENSP00000485401%0d9606.ENSP00000232975%0d9606.ENSP00000348769%0d9606.ENSP00000324403%0d9606.ENSP00000257776%0d9606.ENSP00000361021%0d9606.ENSP00000418960%0d9606.ENSP00000355374%0d9606.ENSP00000012443%0d9606.ENSP00000276414%0d9606.ENSP00000330269%0d9606.ENSP00000225430%0d9606.ENSP00000351015%0d9606.ENSP00000384848%0d9606.ENSP00000294889%0d9606.ENSP00000367498%0d9606.ENSP00000267889%0d9606.ENSP00000243578%0d9606.ENSP00000262133%0d9606.ENSP00000370021%0d9606.ENSP00000345163%0d9606.ENSP00000349493%0d9606.ENSP00000421725" >> {}'''.format(url, caller_id_human, file_human), shell=True, stderr=FNULL) p2.wait() expected_term_found = False for line in open(file_human): l = line.strip().split("\t") try: # if l[7] == 'heart development': if l[0] == "GO:0001102": # RNA polymerase II activating transcription factor binding expected_term_found = True # if l[3] != "7.489216012376792e-06": # check p_value --> former STRING_v11 version # if l[5] != "4.905584053470846e-06": # check p_value --> current UniProt version Jan 2021 actual_pvalue = float(l[5]) try: np.testing.assert_almost_equal(actual_pvalue, desired_pvalue, decimal=5) except AssertionError: if verbose: print("WARNING! 1", "CallerID:", caller_id_human, "FILE:", file_human, str(datetime.datetime.now())) fh_log.write("WARNING! 1 CallerID: {} FILE: {} {}\n".format(caller_id_human, file_human, str(datetime.datetime.now()))) break except: # connection timed out? if verbose: print("WARNING! 2", "CallerID:", caller_id_human, "FILE:", file_human) fh_log.write("WARNING! 2 CallerID: {} FILE: {} {}\n".format(caller_id_human, file_human, str(datetime.datetime.now()))) break if not expected_term_found: if verbose: print("WARNING! 3", "CallerID:", caller_id_human, "FILE:", file_human) fh_log.write("WARNING! 3 CallerID: {} FILE: {} {}\n".format(caller_id_human, file_human, str(datetime.datetime.now()))) expected_term_found = False for line in open(file_wrong): l = line.strip().split("\t") try: # if l[7] == 'heart development': if l[0] == "GO:0001102": # RNA polymerase II activating transcription factor binding expected_term_found = True # if l[8] != "12": # check foreground input if l[10] != "5": # check foreground input if verbose: print("WARNING! 4", "CallerID:", caller_id_wrong, "FILE:", file_wrong) fh_log.write("WARNING! 4 CallerID: {} FILE: {} {}\n".format(caller_id_human, file_wrong, str(datetime.datetime.now()))) break except: # connection timed out? if verbose: print("WARNING! 5", "CallerID:", caller_id_human, "FILE:", file_wrong) fh_log.write("WARNING! 5 CallerID: {} FILE: {} {}\n".format(caller_id_human, file_wrong, str(datetime.datetime.now()))) break if not expected_term_found: if verbose: print("WARNING! 6", "CallerID:", caller_id_human, "FILE:", file_wrong) fh_log.write("WARNING! 6 CallerID: {} FILE: {} {}\n".format(caller_id_human, file_wrong, str(datetime.datetime.now()))) sequential_requests(url, prefix, sequential_iterations, log_file_name, verbose) print("# Finished sequential_requests.py")
110.335938
2,566
0.717624
1,373
14,123
7.26657
0.211216
0.019244
0.022151
0.020447
0.844743
0.837226
0.823394
0.807257
0.780495
0.772677
0
0.422739
0.177937
14,123
128
2,567
110.335938
0.436606
0.248531
0
0.336842
0
0.010526
0.38539
0.30485
0
0
0
0
0.021053
1
0.010526
false
0
0.031579
0
0.042105
0.115789
0
0
0
null
0
0
0
1
1
1
1
1
1
0
1
0
0
0
1
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
7e8ca6107387c0954b5629e05f03b0d9c442aebc
213
py
Python
deepmath/public/build_data.py
LaudateCorpus1/deepmath
b5b721f54de1d5d6a02d78f5da5995237f9995f9
[ "Apache-2.0" ]
830
2016-11-07T21:46:27.000Z
2022-03-23T08:01:03.000Z
deepmath/public/build_data.py
LaudateCorpus1/deepmath
b5b721f54de1d5d6a02d78f5da5995237f9995f9
[ "Apache-2.0" ]
26
2016-11-07T22:06:31.000Z
2022-02-16T00:18:29.000Z
deepmath/public/build_data.py
LaudateCorpus1/deepmath
b5b721f54de1d5d6a02d78f5da5995237f9995f9
[ "Apache-2.0" ]
168
2016-11-07T21:48:55.000Z
2022-03-19T02:47:14.000Z
"""Replacement for internal-only build_data.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function def BuildData(): return "No build data available."
21.3
47
0.802817
27
213
5.777778
0.666667
0.192308
0.307692
0
0
0
0
0
0
0
0
0
0.131455
213
9
48
23.666667
0.843243
0.192488
0
0
0
0
0.144578
0
0
0
0
0
0
1
0.2
true
0
0.6
0.2
1
0.2
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
1
1
0
0
7
7e90b480054702ad12aa3041188918e2c7525558
4,144
py
Python
mispan/src/msp_condition_specificity_metrics.py
ikavakiotis/miSpAn
14b49c78e0948a83caf054e4d70cb5aa84155914
[ "CECILL-B" ]
null
null
null
mispan/src/msp_condition_specificity_metrics.py
ikavakiotis/miSpAn
14b49c78e0948a83caf054e4d70cb5aa84155914
[ "CECILL-B" ]
null
null
null
mispan/src/msp_condition_specificity_metrics.py
ikavakiotis/miSpAn
14b49c78e0948a83caf054e4d70cb5aa84155914
[ "CECILL-B" ]
null
null
null
import sys import numpy as np def shannon_entropy_hg(dict_mirCondEpr,ofile_tsi): dict_mirnashg={} for mirna, dict_condExpr in dict_mirCondEpr.iteritems(): '''For each microRNA collect all expression values. One for each condition''' ls_expression=[] for cond, expression in dict_condExpr.iteritems(): ls_expression.append(expression) #print cond+str(ls_expression) maxVal=max(ls_expression) summary_cond=sum(ls_expression) #sys.exit() if maxVal==0.0: continue #if mirna=='hsa-let-7a-2-3p': # print "This: "+str(ls_expression)+" "+ str(maxVal)+" "+str(summary_cond) #print mirna+ " "+str(maxVal) n_cond=0 summary=0 for cond, expression in dict_condExpr.iteritems(): '''How many condition exist''' n_cond=n_cond+1 pi=float(expression)/float(summary_cond) log2pi=np.log2(pi) formula=pi+log2pi summary=summary+ (-1)*formula hg=summary transHg=1-hg/np.log2(n_cond) dict_mirnashg[mirna]=transHg fw = open (ofile_tsi, "w") d_view = [ (tsi,miRNA) for miRNA,tsi in dict_mirnashg.iteritems() ] d_view.sort(reverse=True) # natively sort tuples by first element for tsi,miRNA in d_view: fw.write(str(miRNA)+"\t"+str(tsi)+"\n") fw.close() return dict_mirnashg def tsi(dict_mirCondEpr,ofile_tsi): dict_mirnasTsi={} for mirna, dict_condExpr in dict_mirCondEpr.iteritems(): '''For each microRNA collect all expression values. One for each condition''' ls_expression=[] for cond, expression in dict_condExpr.iteritems(): ls_expression.append(expression) #print cond+str(ls_expression) maxVal=max(ls_expression) summary=sum(ls_expression) #if mirna=='hsa-let-7a-2-3p': # print str(ls_expression)+" "+ str(maxVal)+" "+str(summary) #sys.exit() if maxVal==0.0: continue #print mirna+ " "+str(maxVal) tsi=float(maxVal)/float(summary) dict_mirnasTsi[mirna]=tsi fw = open (ofile_tsi, "w") d_view = [ (tsi,miRNA) for miRNA,tsi in dict_mirnasTsi.iteritems() ] d_view.sort(reverse=True) # natively sort tuples by first element for tsi,miRNA in d_view: fw.write(str(miRNA)+"\t"+str(tsi)+"\n") fw.close() return dict_mirnasTsi def tau_tsi(dict_mirCondEpr,ofile_tsi): dict_mirnasTsi={} for mirna, dict_condExpr in dict_mirCondEpr.iteritems(): '''For each microRNA collect all expression values. One for each condition''' ls_expression=[] for cond, expression in dict_condExpr.iteritems(): ls_expression.append(expression) #print cond+str(ls_expression) maxVal=max(ls_expression) #sys.exit() if maxVal==0.0: continue #print mirna+ " "+str(maxVal) n_cond=0 summary=0 for cond, expression in dict_condExpr.iteritems(): '''How many condition exist''' n_cond=n_cond+1 summary=summary+(1-float(expression)/float(maxVal)) tsi=float(summary)/float(n_cond-1) dict_mirnasTsi[mirna]=tsi fw = open (ofile_tsi, "w") d_view = [ (tsi,miRNA) for miRNA,tsi in dict_mirnasTsi.iteritems() ] d_view.sort(reverse=True) # natively sort tuples by first element for tsi,miRNA in d_view: fw.write(str(miRNA)+"\t"+str(tsi)+"\n") fw.close() return dict_mirnasTsi
27.626667
86
0.534266
467
4,144
4.588865
0.162741
0.089594
0.039664
0.04433
0.842744
0.830611
0.830611
0.79888
0.777415
0.760149
0
0.009837
0.36221
4,144
150
87
27.626667
0.800984
0.124276
0
0.722222
0
0
0.004727
0
0
0
0
0
0
1
0.041667
false
0
0.027778
0
0.111111
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
0e291f2f49191ab57b4f6f37bcf1de49cc59cf5a
2,166
py
Python
terrascript/ovh/r.py
jackluo923/python-terrascript
ed4b626e6d28621ea1b02fc16f7277a094d89830
[ "BSD-2-Clause" ]
4
2022-02-07T21:08:14.000Z
2022-03-03T04:41:28.000Z
terrascript/ovh/r.py
jackluo923/python-terrascript
ed4b626e6d28621ea1b02fc16f7277a094d89830
[ "BSD-2-Clause" ]
null
null
null
terrascript/ovh/r.py
jackluo923/python-terrascript
ed4b626e6d28621ea1b02fc16f7277a094d89830
[ "BSD-2-Clause" ]
2
2022-02-06T01:49:42.000Z
2022-02-08T14:15:00.000Z
# terrascript/ovh/r.py import terrascript class ovh_cloud_network_private(terrascript.Resource): pass class ovh_cloud_network_private_subnet(terrascript.Resource): pass class ovh_cloud_user(terrascript.Resource): pass class ovh_dedicated_ceph_acl(terrascript.Resource): pass class ovh_dedicated_server_install_task(terrascript.Resource): pass class ovh_dedicated_server_reboot_task(terrascript.Resource): pass class ovh_dedicated_server_update(terrascript.Resource): pass class ovh_domain_zone_record(terrascript.Resource): pass class ovh_domain_zone_redirection(terrascript.Resource): pass class ovh_ip_reverse(terrascript.Resource): pass class ovh_iploadbalancing_http_farm(terrascript.Resource): pass class ovh_iploadbalancing_http_farm_server(terrascript.Resource): pass class ovh_iploadbalancing_http_frontend(terrascript.Resource): pass class ovh_iploadbalancing_http_route(terrascript.Resource): pass class ovh_iploadbalancing_http_route_rule(terrascript.Resource): pass class ovh_iploadbalancing_refresh(terrascript.Resource): pass class ovh_iploadbalancing_tcp_farm(terrascript.Resource): pass class ovh_iploadbalancing_tcp_farm_server(terrascript.Resource): pass class ovh_iploadbalancing_tcp_frontend(terrascript.Resource): pass class ovh_iploadbalancing_vrack_network(terrascript.Resource): pass class ovh_me_installation_template(terrascript.Resource): pass class ovh_me_installation_template_partition_scheme(terrascript.Resource): pass class ovh_me_installation_template_partition_scheme_hardware_raid(terrascript.Resource): pass class ovh_me_installation_template_partition_scheme_partition(terrascript.Resource): pass class ovh_me_ipxe_script(terrascript.Resource): pass class ovh_me_ssh_key(terrascript.Resource): pass class ovh_vrack_cloudproject(terrascript.Resource): pass class ovh_vrack_dedicated_server(terrascript.Resource): pass class ovh_vrack_dedicated_server_interface(terrascript.Resource): pass class ovh_vrack_iploadbalancing(terrascript.Resource): pass
17.609756
88
0.816251
257
2,166
6.486381
0.190661
0.143971
0.413917
0.487103
0.871026
0.827834
0.65027
0.532094
0.122376
0.122376
0
0
0.1265
2,166
122
89
17.754098
0.881078
0.009234
0
0.491803
0
0
0
0
0
0
0
0
0
1
0
true
0.491803
0.016393
0
0.508197
0
0
0
0
null
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
1
0
0
7
0ea0a7a91c513d196898d3e62ea0d950ab3ab6df
175
py
Python
passgen.py
heitzlki/passgen
5a99d15ff3da98a7720aa8f16327907eee4f6656
[ "Apache-2.0" ]
null
null
null
passgen.py
heitzlki/passgen
5a99d15ff3da98a7720aa8f16327907eee4f6656
[ "Apache-2.0" ]
null
null
null
passgen.py
heitzlki/passgen
5a99d15ff3da98a7720aa8f16327907eee4f6656
[ "Apache-2.0" ]
null
null
null
import random;a,l=int(input("Amount:") or "1"), int(input("Length:") or "12");[print ("".join(random.choices("abcdefghijklmnopqrstuvwxyz1234567890",k=l))) for _ in range(a)]
87.5
174
0.691429
25
175
4.8
0.76
0.133333
0
0
0
0
0
0
0
0
0
0.080247
0.074286
175
1
175
175
0.660494
0
0
0
0
0
0.304598
0.206897
0
0
0
0
0
1
0
true
0
1
0
1
1
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
1
0
7
0ea174e4b5722df1ca98611cd01258ea3ab84da2
178,991
py
Python
src/proto/runtime_pb2.py
layotto/python-sdk
dac5833ebbfe16d6e5b6322041ca65431096f14b
[ "Apache-2.0" ]
null
null
null
src/proto/runtime_pb2.py
layotto/python-sdk
dac5833ebbfe16d6e5b6322041ca65431096f14b
[ "Apache-2.0" ]
1
2022-02-23T14:37:01.000Z
2022-02-23T14:37:01.000Z
src/proto/runtime_pb2.py
layotto/python-sdk
dac5833ebbfe16d6e5b6322041ca65431096f14b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: runtime.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='runtime.proto', package='spec.proto.runtime.v1', syntax='proto3', serialized_options=b'\n\025spec.proto.runtime.v1B\014RuntimeProtoZ-mosn.io/layotto/spec/proto/runtime/v1;runtime', create_key=_descriptor._internal_create_key, serialized_pb=b'\n\rruntime.proto\x12\x15spec.proto.runtime.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x19google/protobuf/any.proto\"I\n\x12GetFileMetaRequest\x12\x33\n\x07request\x18\x01 \x01(\x0b\x32\".spec.proto.runtime.v1.FileRequest\"m\n\x13GetFileMetaResponse\x12\x0c\n\x04size\x18\x01 \x01(\x03\x12\x15\n\rlast_modified\x18\x02 \x01(\t\x12\x31\n\x08response\x18\x03 \x01(\x0b\x32\x1f.spec.proto.runtime.v1.FileMeta\"\x1e\n\rFileMetaValue\x12\r\n\x05value\x18\x01 \x03(\t\"\xa2\x01\n\x08\x46ileMeta\x12?\n\x08metadata\x18\x01 \x03(\x0b\x32-.spec.proto.runtime.v1.FileMeta.MetadataEntry\x1aU\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32$.spec.proto.runtime.v1.FileMetaValue:\x02\x38\x01\"\xaa\x01\n\x0eGetFileRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x45\n\x08metadata\x18\x03 \x03(\x0b\x32\x33.spec.proto.runtime.v1.GetFileRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x1f\n\x0fGetFileResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"\xb8\x01\n\x0ePutFileRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x12\x45\n\x08metadata\x18\x04 \x03(\x0b\x32\x33.spec.proto.runtime.v1.PutFileRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa4\x01\n\x0b\x46ileRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x42\n\x08metadata\x18\x03 \x03(\x0b\x32\x30.spec.proto.runtime.v1.FileRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"i\n\x0fListFileRequest\x12\x33\n\x07request\x18\x01 \x01(\x0b\x32\".spec.proto.runtime.v1.FileRequest\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x0e\n\x06marker\x18\x03 \x01(\t\"\xb4\x01\n\x08\x46ileInfo\x12\x11\n\tfile_name\x18\x01 \x01(\t\x12\x0c\n\x04size\x18\x02 \x01(\x03\x12\x15\n\rlast_modified\x18\x03 \x01(\t\x12?\n\x08metadata\x18\x04 \x03(\x0b\x32-.spec.proto.runtime.v1.FileInfo.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"d\n\x0cListFileResp\x12.\n\x05\x66iles\x18\x01 \x03(\x0b\x32\x1f.spec.proto.runtime.v1.FileInfo\x12\x0e\n\x06marker\x18\x02 \x01(\t\x12\x14\n\x0cis_truncated\x18\x03 \x01(\x08\"E\n\x0e\x44\x65lFileRequest\x12\x33\n\x07request\x18\x01 \x01(\x0b\x32\".spec.proto.runtime.v1.FileRequest\"\xe7\x01\n\x10GetNextIdRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12\x38\n\x07options\x18\x03 \x01(\x0b\x32\'.spec.proto.runtime.v1.SequencerOptions\x12G\n\x08metadata\x18\x04 \x03(\x0b\x32\x35.spec.proto.runtime.v1.GetNextIdRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x83\x01\n\x10SequencerOptions\x12H\n\tincrement\x18\x01 \x01(\x0e\x32\x35.spec.proto.runtime.v1.SequencerOptions.AutoIncrement\"%\n\rAutoIncrement\x12\x08\n\x04WEAK\x10\x00\x12\n\n\x06STRONG\x10\x01\"(\n\x11GetNextIdResponse\x12\x13\n\x07next_id\x18\x01 \x01(\x03\x42\x02\x30\x01\"]\n\x0eTryLockRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x13\n\x0bresource_id\x18\x02 \x01(\t\x12\x12\n\nlock_owner\x18\x03 \x01(\t\x12\x0e\n\x06\x65xpire\x18\x04 \x01(\x05\"\"\n\x0fTryLockResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\"L\n\rUnlockRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x13\n\x0bresource_id\x18\x02 \x01(\t\x12\x12\n\nlock_owner\x18\x03 \x01(\t\"\xa6\x01\n\x0eUnlockResponse\x12<\n\x06status\x18\x01 \x01(\x0e\x32,.spec.proto.runtime.v1.UnlockResponse.Status\"V\n\x06Status\x12\x0b\n\x07SUCCESS\x10\x00\x12\x10\n\x0cLOCK_UNEXIST\x10\x01\x12\x19\n\x15LOCK_BELONG_TO_OTHERS\x10\x02\x12\x12\n\x0eINTERNAL_ERROR\x10\x03\"Y\n\x0fSayHelloRequest\x12\x14\n\x0cservice_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\"\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32\x14.google.protobuf.Any\"E\n\x10SayHelloResponse\x12\r\n\x05hello\x18\x01 \x01(\t\x12\"\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any\"_\n\x14InvokeServiceRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12;\n\x07message\x18\x03 \x01(\x0b\x32*.spec.proto.runtime.v1.CommonInvokeRequest\"\x9d\x01\n\x13\x43ommonInvokeRequest\x12\x0e\n\x06method\x18\x01 \x01(\t\x12\"\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x14\n\x0c\x63ontent_type\x18\x03 \x01(\t\x12<\n\x0ehttp_extension\x18\x04 \x01(\x0b\x32$.spec.proto.runtime.v1.HTTPExtension\"\xc6\x01\n\rHTTPExtension\x12\x37\n\x04verb\x18\x01 \x01(\x0e\x32).spec.proto.runtime.v1.HTTPExtension.Verb\x12\x13\n\x0bquerystring\x18\x02 \x01(\t\"g\n\x04Verb\x12\x08\n\x04NONE\x10\x00\x12\x07\n\x03GET\x10\x01\x12\x08\n\x04HEAD\x10\x02\x12\x08\n\x04POST\x10\x03\x12\x07\n\x03PUT\x10\x04\x12\n\n\x06\x44\x45LETE\x10\x05\x12\x0b\n\x07\x43ONNECT\x10\x06\x12\x0b\n\x07OPTIONS\x10\x07\x12\t\n\x05TRACE\x10\x08\"J\n\x0eInvokeResponse\x12\"\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x14\n\x0c\x63ontent_type\x18\x02 \x01(\t\"\xb9\x02\n\x11\x43onfigurationItem\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x12\r\n\x05group\x18\x03 \x01(\t\x12\r\n\x05label\x18\x04 \x01(\t\x12@\n\x04tags\x18\x05 \x03(\x0b\x32\x32.spec.proto.runtime.v1.ConfigurationItem.TagsEntry\x12H\n\x08metadata\x18\x06 \x03(\x0b\x32\x36.spec.proto.runtime.v1.ConfigurationItem.MetadataEntry\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x84\x02\n\x17GetConfigurationRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0e\n\x06\x61pp_id\x18\x02 \x01(\t\x12\r\n\x05group\x18\x03 \x01(\t\x12\r\n\x05label\x18\x04 \x01(\t\x12\x0c\n\x04keys\x18\x05 \x03(\t\x12N\n\x08metadata\x18\x06 \x03(\x0b\x32<.spec.proto.runtime.v1.GetConfigurationRequest.MetadataEntry\x12\x18\n\x10subscribe_update\x18\x07 \x01(\x08\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"S\n\x18GetConfigurationResponse\x12\x37\n\x05items\x18\x01 \x03(\x0b\x32(.spec.proto.runtime.v1.ConfigurationItem\"\xf6\x01\n\x1dSubscribeConfigurationRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0e\n\x06\x61pp_id\x18\x02 \x01(\t\x12\r\n\x05group\x18\x03 \x01(\t\x12\r\n\x05label\x18\x04 \x01(\t\x12\x0c\n\x04keys\x18\x05 \x03(\t\x12T\n\x08metadata\x18\x06 \x03(\x0b\x32\x42.spec.proto.runtime.v1.SubscribeConfigurationRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"}\n\x1eSubscribeConfigurationResponse\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0e\n\x06\x61pp_id\x18\x02 \x01(\t\x12\x37\n\x05items\x18\x03 \x03(\x0b\x32(.spec.proto.runtime.v1.ConfigurationItem\"\xf9\x01\n\x18SaveConfigurationRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0e\n\x06\x61pp_id\x18\x02 \x01(\t\x12\x37\n\x05items\x18\x03 \x03(\x0b\x32(.spec.proto.runtime.v1.ConfigurationItem\x12O\n\x08metadata\x18\x04 \x03(\x0b\x32=.spec.proto.runtime.v1.SaveConfigurationRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xf0\x01\n\x1a\x44\x65leteConfigurationRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0e\n\x06\x61pp_id\x18\x02 \x01(\t\x12\r\n\x05group\x18\x03 \x01(\t\x12\r\n\x05label\x18\x04 \x01(\t\x12\x0c\n\x04keys\x18\x05 \x03(\t\x12Q\n\x08metadata\x18\x06 \x03(\x0b\x32?.spec.proto.runtime.v1.DeleteConfigurationRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xf6\x01\n\x0fGetStateRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12I\n\x0b\x63onsistency\x18\x03 \x01(\x0e\x32\x34.spec.proto.runtime.v1.StateOptions.StateConsistency\x12\x46\n\x08metadata\x18\x04 \x03(\x0b\x32\x34.spec.proto.runtime.v1.GetStateRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc9\x01\n\x13GetBulkStateRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0c\n\x04keys\x18\x02 \x03(\t\x12\x13\n\x0bparallelism\x18\x03 \x01(\x05\x12J\n\x08metadata\x18\x04 \x03(\x0b\x32\x38.spec.proto.runtime.v1.GetBulkStateRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"K\n\x14GetBulkStateResponse\x12\x33\n\x05items\x18\x01 \x03(\x0b\x32$.spec.proto.runtime.v1.BulkStateItem\"\xbe\x01\n\rBulkStateItem\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\r\n\x05\x65rror\x18\x04 \x01(\t\x12\x44\n\x08metadata\x18\x05 \x03(\x0b\x32\x32.spec.proto.runtime.v1.BulkStateItem.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa8\x01\n\x10GetStateResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12G\n\x08metadata\x18\x03 \x03(\x0b\x32\x35.spec.proto.runtime.v1.GetStateResponse.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x92\x02\n\x12\x44\x65leteStateRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12)\n\x04\x65tag\x18\x03 \x01(\x0b\x32\x1b.spec.proto.runtime.v1.Etag\x12\x34\n\x07options\x18\x04 \x01(\x0b\x32#.spec.proto.runtime.v1.StateOptions\x12I\n\x08metadata\x18\x05 \x03(\x0b\x32\x37.spec.proto.runtime.v1.DeleteStateRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"^\n\x16\x44\x65leteBulkStateRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x30\n\x06states\x18\x02 \x03(\x0b\x32 .spec.proto.runtime.v1.StateItem\"X\n\x10SaveStateRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x30\n\x06states\x18\x02 \x03(\x0b\x32 .spec.proto.runtime.v1.StateItem\"\xfb\x01\n\tStateItem\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c\x12)\n\x04\x65tag\x18\x03 \x01(\x0b\x32\x1b.spec.proto.runtime.v1.Etag\x12@\n\x08metadata\x18\x04 \x03(\x0b\x32..spec.proto.runtime.v1.StateItem.MetadataEntry\x12\x34\n\x07options\x18\x05 \x01(\x0b\x32#.spec.proto.runtime.v1.StateOptions\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x15\n\x04\x45tag\x12\r\n\x05value\x18\x01 \x01(\t\"\xf1\x02\n\x0cStateOptions\x12I\n\x0b\x63oncurrency\x18\x01 \x01(\x0e\x32\x34.spec.proto.runtime.v1.StateOptions.StateConcurrency\x12I\n\x0b\x63onsistency\x18\x02 \x01(\x0e\x32\x34.spec.proto.runtime.v1.StateOptions.StateConsistency\"h\n\x10StateConcurrency\x12\x1b\n\x17\x43ONCURRENCY_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x43ONCURRENCY_FIRST_WRITE\x10\x01\x12\x1a\n\x16\x43ONCURRENCY_LAST_WRITE\x10\x02\"a\n\x10StateConsistency\x12\x1b\n\x17\x43ONSISTENCY_UNSPECIFIED\x10\x00\x12\x18\n\x14\x43ONSISTENCY_EVENTUAL\x10\x01\x12\x16\n\x12\x43ONSISTENCY_STRONG\x10\x02\"g\n\x1bTransactionalStateOperation\x12\x15\n\roperationType\x18\x01 \x01(\t\x12\x31\n\x07request\x18\x02 \x01(\x0b\x32 .spec.proto.runtime.v1.StateItem\"\x83\x02\n\x1e\x45xecuteStateTransactionRequest\x12\x11\n\tstoreName\x18\x01 \x01(\t\x12\x46\n\noperations\x18\x02 \x03(\x0b\x32\x32.spec.proto.runtime.v1.TransactionalStateOperation\x12U\n\x08metadata\x18\x03 \x03(\x0b\x32\x43.spec.proto.runtime.v1.ExecuteStateTransactionRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xdf\x01\n\x13PublishEventRequest\x12\x13\n\x0bpubsub_name\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x12\x19\n\x11\x64\x61ta_content_type\x18\x04 \x01(\t\x12J\n\x08metadata\x18\x05 \x03(\x0b\x32\x38.spec.proto.runtime.v1.PublishEventRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc3\x01\n\x14InvokeBindingRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12K\n\x08metadata\x18\x03 \x03(\x0b\x32\x39.spec.proto.runtime.v1.InvokeBindingRequest.MetadataEntry\x12\x11\n\toperation\x18\x04 \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa4\x01\n\x15InvokeBindingResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12L\n\x08metadata\x18\x02 \x03(\x0b\x32:.spec.proto.runtime.v1.InvokeBindingResponse.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\xe4\x10\n\x07Runtime\x12]\n\x08SayHello\x12&.spec.proto.runtime.v1.SayHelloRequest\x1a\'.spec.proto.runtime.v1.SayHelloResponse\"\x00\x12\x65\n\rInvokeService\x12+.spec.proto.runtime.v1.InvokeServiceRequest\x1a%.spec.proto.runtime.v1.InvokeResponse\"\x00\x12u\n\x10GetConfiguration\x12..spec.proto.runtime.v1.GetConfigurationRequest\x1a/.spec.proto.runtime.v1.GetConfigurationResponse\"\x00\x12^\n\x11SaveConfiguration\x12/.spec.proto.runtime.v1.SaveConfigurationRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x62\n\x13\x44\x65leteConfiguration\x12\x31.spec.proto.runtime.v1.DeleteConfigurationRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x8b\x01\n\x16SubscribeConfiguration\x12\x34.spec.proto.runtime.v1.SubscribeConfigurationRequest\x1a\x35.spec.proto.runtime.v1.SubscribeConfigurationResponse\"\x00(\x01\x30\x01\x12Z\n\x07TryLock\x12%.spec.proto.runtime.v1.TryLockRequest\x1a&.spec.proto.runtime.v1.TryLockResponse\"\x00\x12W\n\x06Unlock\x12$.spec.proto.runtime.v1.UnlockRequest\x1a%.spec.proto.runtime.v1.UnlockResponse\"\x00\x12`\n\tGetNextId\x12\'.spec.proto.runtime.v1.GetNextIdRequest\x1a(.spec.proto.runtime.v1.GetNextIdResponse\"\x00\x12]\n\x08GetState\x12&.spec.proto.runtime.v1.GetStateRequest\x1a\'.spec.proto.runtime.v1.GetStateResponse\"\x00\x12i\n\x0cGetBulkState\x12*.spec.proto.runtime.v1.GetBulkStateRequest\x1a+.spec.proto.runtime.v1.GetBulkStateResponse\"\x00\x12N\n\tSaveState\x12\'.spec.proto.runtime.v1.SaveStateRequest\x1a\x16.google.protobuf.Empty\"\x00\x12R\n\x0b\x44\x65leteState\x12).spec.proto.runtime.v1.DeleteStateRequest\x1a\x16.google.protobuf.Empty\"\x00\x12Z\n\x0f\x44\x65leteBulkState\x12-.spec.proto.runtime.v1.DeleteBulkStateRequest\x1a\x16.google.protobuf.Empty\"\x00\x12j\n\x17\x45xecuteStateTransaction\x12\x35.spec.proto.runtime.v1.ExecuteStateTransactionRequest\x1a\x16.google.protobuf.Empty\"\x00\x12T\n\x0cPublishEvent\x12*.spec.proto.runtime.v1.PublishEventRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\\\n\x07GetFile\x12%.spec.proto.runtime.v1.GetFileRequest\x1a&.spec.proto.runtime.v1.GetFileResponse\"\x00\x30\x01\x12L\n\x07PutFile\x12%.spec.proto.runtime.v1.PutFileRequest\x1a\x16.google.protobuf.Empty\"\x00(\x01\x12Y\n\x08ListFile\x12&.spec.proto.runtime.v1.ListFileRequest\x1a#.spec.proto.runtime.v1.ListFileResp\"\x00\x12J\n\x07\x44\x65lFile\x12%.spec.proto.runtime.v1.DelFileRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x66\n\x0bGetFileMeta\x12).spec.proto.runtime.v1.GetFileMetaRequest\x1a*.spec.proto.runtime.v1.GetFileMetaResponse\"\x00\x12l\n\rInvokeBinding\x12+.spec.proto.runtime.v1.InvokeBindingRequest\x1a,.spec.proto.runtime.v1.InvokeBindingResponse\"\x00\x42T\n\x15spec.proto.runtime.v1B\x0cRuntimeProtoZ-mosn.io/layotto/spec/proto/runtime/v1;runtimeb\x06proto3' , dependencies=[google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,]) _SEQUENCEROPTIONS_AUTOINCREMENT = _descriptor.EnumDescriptor( name='AutoIncrement', full_name='spec.proto.runtime.v1.SequencerOptions.AutoIncrement', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='WEAK', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='STRONG', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=1831, serialized_end=1868, ) _sym_db.RegisterEnumDescriptor(_SEQUENCEROPTIONS_AUTOINCREMENT) _UNLOCKRESPONSE_STATUS = _descriptor.EnumDescriptor( name='Status', full_name='spec.proto.runtime.v1.UnlockResponse.Status', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='SUCCESS', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='LOCK_UNEXIST', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='LOCK_BELONG_TO_OTHERS', index=2, number=2, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='INTERNAL_ERROR', index=3, number=3, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=2202, serialized_end=2288, ) _sym_db.RegisterEnumDescriptor(_UNLOCKRESPONSE_STATUS) _HTTPEXTENSION_VERB = _descriptor.EnumDescriptor( name='Verb', full_name='spec.proto.runtime.v1.HTTPExtension.Verb', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='NONE', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='GET', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='HEAD', index=2, number=2, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='POST', index=3, number=3, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='PUT', index=4, number=4, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='DELETE', index=5, number=5, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='CONNECT', index=6, number=6, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='OPTIONS', index=7, number=7, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='TRACE', index=8, number=8, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=2805, serialized_end=2908, ) _sym_db.RegisterEnumDescriptor(_HTTPEXTENSION_VERB) _STATEOPTIONS_STATECONCURRENCY = _descriptor.EnumDescriptor( name='StateConcurrency', full_name='spec.proto.runtime.v1.StateOptions.StateConcurrency', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='CONCURRENCY_UNSPECIFIED', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='CONCURRENCY_FIRST_WRITE', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='CONCURRENCY_LAST_WRITE', index=2, number=2, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=6322, serialized_end=6426, ) _sym_db.RegisterEnumDescriptor(_STATEOPTIONS_STATECONCURRENCY) _STATEOPTIONS_STATECONSISTENCY = _descriptor.EnumDescriptor( name='StateConsistency', full_name='spec.proto.runtime.v1.StateOptions.StateConsistency', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='CONSISTENCY_UNSPECIFIED', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='CONSISTENCY_EVENTUAL', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='CONSISTENCY_STRONG', index=2, number=2, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=6428, serialized_end=6525, ) _sym_db.RegisterEnumDescriptor(_STATEOPTIONS_STATECONSISTENCY) _GETFILEMETAREQUEST = _descriptor.Descriptor( name='GetFileMetaRequest', full_name='spec.proto.runtime.v1.GetFileMetaRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='request', full_name='spec.proto.runtime.v1.GetFileMetaRequest.request', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=96, serialized_end=169, ) _GETFILEMETARESPONSE = _descriptor.Descriptor( name='GetFileMetaResponse', full_name='spec.proto.runtime.v1.GetFileMetaResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='size', full_name='spec.proto.runtime.v1.GetFileMetaResponse.size', index=0, number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='last_modified', full_name='spec.proto.runtime.v1.GetFileMetaResponse.last_modified', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='response', full_name='spec.proto.runtime.v1.GetFileMetaResponse.response', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=171, serialized_end=280, ) _FILEMETAVALUE = _descriptor.Descriptor( name='FileMetaValue', full_name='spec.proto.runtime.v1.FileMetaValue', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.FileMetaValue.value', index=0, number=1, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=282, serialized_end=312, ) _FILEMETA_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.FileMeta.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.FileMeta.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.FileMeta.MetadataEntry.value', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=392, serialized_end=477, ) _FILEMETA = _descriptor.Descriptor( name='FileMeta', full_name='spec.proto.runtime.v1.FileMeta', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.FileMeta.metadata', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_FILEMETA_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=315, serialized_end=477, ) _GETFILEREQUEST_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.GetFileRequest.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.GetFileRequest.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.GetFileRequest.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _GETFILEREQUEST = _descriptor.Descriptor( name='GetFileRequest', full_name='spec.proto.runtime.v1.GetFileRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='store_name', full_name='spec.proto.runtime.v1.GetFileRequest.store_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='name', full_name='spec.proto.runtime.v1.GetFileRequest.name', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.GetFileRequest.metadata', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_GETFILEREQUEST_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=480, serialized_end=650, ) _GETFILERESPONSE = _descriptor.Descriptor( name='GetFileResponse', full_name='spec.proto.runtime.v1.GetFileResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='data', full_name='spec.proto.runtime.v1.GetFileResponse.data', index=0, number=1, type=12, cpp_type=9, label=1, has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=652, serialized_end=683, ) _PUTFILEREQUEST_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.PutFileRequest.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.PutFileRequest.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.PutFileRequest.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _PUTFILEREQUEST = _descriptor.Descriptor( name='PutFileRequest', full_name='spec.proto.runtime.v1.PutFileRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='store_name', full_name='spec.proto.runtime.v1.PutFileRequest.store_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='name', full_name='spec.proto.runtime.v1.PutFileRequest.name', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='data', full_name='spec.proto.runtime.v1.PutFileRequest.data', index=2, number=3, type=12, cpp_type=9, label=1, has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.PutFileRequest.metadata', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_PUTFILEREQUEST_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=686, serialized_end=870, ) _FILEREQUEST_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.FileRequest.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.FileRequest.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.FileRequest.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _FILEREQUEST = _descriptor.Descriptor( name='FileRequest', full_name='spec.proto.runtime.v1.FileRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='store_name', full_name='spec.proto.runtime.v1.FileRequest.store_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='name', full_name='spec.proto.runtime.v1.FileRequest.name', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.FileRequest.metadata', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_FILEREQUEST_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=873, serialized_end=1037, ) _LISTFILEREQUEST = _descriptor.Descriptor( name='ListFileRequest', full_name='spec.proto.runtime.v1.ListFileRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='request', full_name='spec.proto.runtime.v1.ListFileRequest.request', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='page_size', full_name='spec.proto.runtime.v1.ListFileRequest.page_size', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='marker', full_name='spec.proto.runtime.v1.ListFileRequest.marker', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1039, serialized_end=1144, ) _FILEINFO_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.FileInfo.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.FileInfo.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.FileInfo.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _FILEINFO = _descriptor.Descriptor( name='FileInfo', full_name='spec.proto.runtime.v1.FileInfo', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='file_name', full_name='spec.proto.runtime.v1.FileInfo.file_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='size', full_name='spec.proto.runtime.v1.FileInfo.size', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='last_modified', full_name='spec.proto.runtime.v1.FileInfo.last_modified', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.FileInfo.metadata', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_FILEINFO_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1147, serialized_end=1327, ) _LISTFILERESP = _descriptor.Descriptor( name='ListFileResp', full_name='spec.proto.runtime.v1.ListFileResp', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='files', full_name='spec.proto.runtime.v1.ListFileResp.files', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='marker', full_name='spec.proto.runtime.v1.ListFileResp.marker', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='is_truncated', full_name='spec.proto.runtime.v1.ListFileResp.is_truncated', index=2, number=3, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1329, serialized_end=1429, ) _DELFILEREQUEST = _descriptor.Descriptor( name='DelFileRequest', full_name='spec.proto.runtime.v1.DelFileRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='request', full_name='spec.proto.runtime.v1.DelFileRequest.request', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1431, serialized_end=1500, ) _GETNEXTIDREQUEST_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.GetNextIdRequest.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.GetNextIdRequest.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.GetNextIdRequest.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _GETNEXTIDREQUEST = _descriptor.Descriptor( name='GetNextIdRequest', full_name='spec.proto.runtime.v1.GetNextIdRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='store_name', full_name='spec.proto.runtime.v1.GetNextIdRequest.store_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.GetNextIdRequest.key', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='options', full_name='spec.proto.runtime.v1.GetNextIdRequest.options', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.GetNextIdRequest.metadata', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_GETNEXTIDREQUEST_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1503, serialized_end=1734, ) _SEQUENCEROPTIONS = _descriptor.Descriptor( name='SequencerOptions', full_name='spec.proto.runtime.v1.SequencerOptions', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='increment', full_name='spec.proto.runtime.v1.SequencerOptions.increment', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ _SEQUENCEROPTIONS_AUTOINCREMENT, ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1737, serialized_end=1868, ) _GETNEXTIDRESPONSE = _descriptor.Descriptor( name='GetNextIdResponse', full_name='spec.proto.runtime.v1.GetNextIdResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='next_id', full_name='spec.proto.runtime.v1.GetNextIdResponse.next_id', index=0, number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'0\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1870, serialized_end=1910, ) _TRYLOCKREQUEST = _descriptor.Descriptor( name='TryLockRequest', full_name='spec.proto.runtime.v1.TryLockRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='store_name', full_name='spec.proto.runtime.v1.TryLockRequest.store_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='resource_id', full_name='spec.proto.runtime.v1.TryLockRequest.resource_id', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='lock_owner', full_name='spec.proto.runtime.v1.TryLockRequest.lock_owner', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='expire', full_name='spec.proto.runtime.v1.TryLockRequest.expire', index=3, number=4, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1912, serialized_end=2005, ) _TRYLOCKRESPONSE = _descriptor.Descriptor( name='TryLockResponse', full_name='spec.proto.runtime.v1.TryLockResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='success', full_name='spec.proto.runtime.v1.TryLockResponse.success', index=0, number=1, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2007, serialized_end=2041, ) _UNLOCKREQUEST = _descriptor.Descriptor( name='UnlockRequest', full_name='spec.proto.runtime.v1.UnlockRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='store_name', full_name='spec.proto.runtime.v1.UnlockRequest.store_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='resource_id', full_name='spec.proto.runtime.v1.UnlockRequest.resource_id', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='lock_owner', full_name='spec.proto.runtime.v1.UnlockRequest.lock_owner', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2043, serialized_end=2119, ) _UNLOCKRESPONSE = _descriptor.Descriptor( name='UnlockResponse', full_name='spec.proto.runtime.v1.UnlockResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='status', full_name='spec.proto.runtime.v1.UnlockResponse.status', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ _UNLOCKRESPONSE_STATUS, ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2122, serialized_end=2288, ) _SAYHELLOREQUEST = _descriptor.Descriptor( name='SayHelloRequest', full_name='spec.proto.runtime.v1.SayHelloRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='service_name', full_name='spec.proto.runtime.v1.SayHelloRequest.service_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='name', full_name='spec.proto.runtime.v1.SayHelloRequest.name', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='data', full_name='spec.proto.runtime.v1.SayHelloRequest.data', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2290, serialized_end=2379, ) _SAYHELLORESPONSE = _descriptor.Descriptor( name='SayHelloResponse', full_name='spec.proto.runtime.v1.SayHelloResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='hello', full_name='spec.proto.runtime.v1.SayHelloResponse.hello', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='data', full_name='spec.proto.runtime.v1.SayHelloResponse.data', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2381, serialized_end=2450, ) _INVOKESERVICEREQUEST = _descriptor.Descriptor( name='InvokeServiceRequest', full_name='spec.proto.runtime.v1.InvokeServiceRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='id', full_name='spec.proto.runtime.v1.InvokeServiceRequest.id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='message', full_name='spec.proto.runtime.v1.InvokeServiceRequest.message', index=1, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2452, serialized_end=2547, ) _COMMONINVOKEREQUEST = _descriptor.Descriptor( name='CommonInvokeRequest', full_name='spec.proto.runtime.v1.CommonInvokeRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='method', full_name='spec.proto.runtime.v1.CommonInvokeRequest.method', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='data', full_name='spec.proto.runtime.v1.CommonInvokeRequest.data', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='content_type', full_name='spec.proto.runtime.v1.CommonInvokeRequest.content_type', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='http_extension', full_name='spec.proto.runtime.v1.CommonInvokeRequest.http_extension', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2550, serialized_end=2707, ) _HTTPEXTENSION = _descriptor.Descriptor( name='HTTPExtension', full_name='spec.proto.runtime.v1.HTTPExtension', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='verb', full_name='spec.proto.runtime.v1.HTTPExtension.verb', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='querystring', full_name='spec.proto.runtime.v1.HTTPExtension.querystring', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ _HTTPEXTENSION_VERB, ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2710, serialized_end=2908, ) _INVOKERESPONSE = _descriptor.Descriptor( name='InvokeResponse', full_name='spec.proto.runtime.v1.InvokeResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='data', full_name='spec.proto.runtime.v1.InvokeResponse.data', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='content_type', full_name='spec.proto.runtime.v1.InvokeResponse.content_type', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2910, serialized_end=2984, ) _CONFIGURATIONITEM_TAGSENTRY = _descriptor.Descriptor( name='TagsEntry', full_name='spec.proto.runtime.v1.ConfigurationItem.TagsEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.ConfigurationItem.TagsEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.ConfigurationItem.TagsEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=3208, serialized_end=3251, ) _CONFIGURATIONITEM_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.ConfigurationItem.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.ConfigurationItem.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.ConfigurationItem.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _CONFIGURATIONITEM = _descriptor.Descriptor( name='ConfigurationItem', full_name='spec.proto.runtime.v1.ConfigurationItem', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.ConfigurationItem.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='content', full_name='spec.proto.runtime.v1.ConfigurationItem.content', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='group', full_name='spec.proto.runtime.v1.ConfigurationItem.group', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='label', full_name='spec.proto.runtime.v1.ConfigurationItem.label', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='tags', full_name='spec.proto.runtime.v1.ConfigurationItem.tags', index=4, number=5, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.ConfigurationItem.metadata', index=5, number=6, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_CONFIGURATIONITEM_TAGSENTRY, _CONFIGURATIONITEM_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2987, serialized_end=3300, ) _GETCONFIGURATIONREQUEST_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.GetConfigurationRequest.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.GetConfigurationRequest.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.GetConfigurationRequest.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _GETCONFIGURATIONREQUEST = _descriptor.Descriptor( name='GetConfigurationRequest', full_name='spec.proto.runtime.v1.GetConfigurationRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='store_name', full_name='spec.proto.runtime.v1.GetConfigurationRequest.store_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='app_id', full_name='spec.proto.runtime.v1.GetConfigurationRequest.app_id', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='group', full_name='spec.proto.runtime.v1.GetConfigurationRequest.group', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='label', full_name='spec.proto.runtime.v1.GetConfigurationRequest.label', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='keys', full_name='spec.proto.runtime.v1.GetConfigurationRequest.keys', index=4, number=5, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.GetConfigurationRequest.metadata', index=5, number=6, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='subscribe_update', full_name='spec.proto.runtime.v1.GetConfigurationRequest.subscribe_update', index=6, number=7, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_GETCONFIGURATIONREQUEST_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=3303, serialized_end=3563, ) _GETCONFIGURATIONRESPONSE = _descriptor.Descriptor( name='GetConfigurationResponse', full_name='spec.proto.runtime.v1.GetConfigurationResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='items', full_name='spec.proto.runtime.v1.GetConfigurationResponse.items', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=3565, serialized_end=3648, ) _SUBSCRIBECONFIGURATIONREQUEST_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.SubscribeConfigurationRequest.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.SubscribeConfigurationRequest.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.SubscribeConfigurationRequest.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _SUBSCRIBECONFIGURATIONREQUEST = _descriptor.Descriptor( name='SubscribeConfigurationRequest', full_name='spec.proto.runtime.v1.SubscribeConfigurationRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='store_name', full_name='spec.proto.runtime.v1.SubscribeConfigurationRequest.store_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='app_id', full_name='spec.proto.runtime.v1.SubscribeConfigurationRequest.app_id', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='group', full_name='spec.proto.runtime.v1.SubscribeConfigurationRequest.group', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='label', full_name='spec.proto.runtime.v1.SubscribeConfigurationRequest.label', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='keys', full_name='spec.proto.runtime.v1.SubscribeConfigurationRequest.keys', index=4, number=5, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.SubscribeConfigurationRequest.metadata', index=5, number=6, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_SUBSCRIBECONFIGURATIONREQUEST_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=3651, serialized_end=3897, ) _SUBSCRIBECONFIGURATIONRESPONSE = _descriptor.Descriptor( name='SubscribeConfigurationResponse', full_name='spec.proto.runtime.v1.SubscribeConfigurationResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='store_name', full_name='spec.proto.runtime.v1.SubscribeConfigurationResponse.store_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='app_id', full_name='spec.proto.runtime.v1.SubscribeConfigurationResponse.app_id', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='items', full_name='spec.proto.runtime.v1.SubscribeConfigurationResponse.items', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=3899, serialized_end=4024, ) _SAVECONFIGURATIONREQUEST_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.SaveConfigurationRequest.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.SaveConfigurationRequest.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.SaveConfigurationRequest.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _SAVECONFIGURATIONREQUEST = _descriptor.Descriptor( name='SaveConfigurationRequest', full_name='spec.proto.runtime.v1.SaveConfigurationRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='store_name', full_name='spec.proto.runtime.v1.SaveConfigurationRequest.store_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='app_id', full_name='spec.proto.runtime.v1.SaveConfigurationRequest.app_id', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='items', full_name='spec.proto.runtime.v1.SaveConfigurationRequest.items', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.SaveConfigurationRequest.metadata', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_SAVECONFIGURATIONREQUEST_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=4027, serialized_end=4276, ) _DELETECONFIGURATIONREQUEST_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.DeleteConfigurationRequest.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.DeleteConfigurationRequest.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.DeleteConfigurationRequest.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _DELETECONFIGURATIONREQUEST = _descriptor.Descriptor( name='DeleteConfigurationRequest', full_name='spec.proto.runtime.v1.DeleteConfigurationRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='store_name', full_name='spec.proto.runtime.v1.DeleteConfigurationRequest.store_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='app_id', full_name='spec.proto.runtime.v1.DeleteConfigurationRequest.app_id', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='group', full_name='spec.proto.runtime.v1.DeleteConfigurationRequest.group', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='label', full_name='spec.proto.runtime.v1.DeleteConfigurationRequest.label', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='keys', full_name='spec.proto.runtime.v1.DeleteConfigurationRequest.keys', index=4, number=5, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.DeleteConfigurationRequest.metadata', index=5, number=6, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_DELETECONFIGURATIONREQUEST_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=4279, serialized_end=4519, ) _GETSTATEREQUEST_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.GetStateRequest.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.GetStateRequest.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.GetStateRequest.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _GETSTATEREQUEST = _descriptor.Descriptor( name='GetStateRequest', full_name='spec.proto.runtime.v1.GetStateRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='store_name', full_name='spec.proto.runtime.v1.GetStateRequest.store_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.GetStateRequest.key', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='consistency', full_name='spec.proto.runtime.v1.GetStateRequest.consistency', index=2, number=3, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.GetStateRequest.metadata', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_GETSTATEREQUEST_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=4522, serialized_end=4768, ) _GETBULKSTATEREQUEST_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.GetBulkStateRequest.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.GetBulkStateRequest.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.GetBulkStateRequest.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _GETBULKSTATEREQUEST = _descriptor.Descriptor( name='GetBulkStateRequest', full_name='spec.proto.runtime.v1.GetBulkStateRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='store_name', full_name='spec.proto.runtime.v1.GetBulkStateRequest.store_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='keys', full_name='spec.proto.runtime.v1.GetBulkStateRequest.keys', index=1, number=2, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='parallelism', full_name='spec.proto.runtime.v1.GetBulkStateRequest.parallelism', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.GetBulkStateRequest.metadata', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_GETBULKSTATEREQUEST_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=4771, serialized_end=4972, ) _GETBULKSTATERESPONSE = _descriptor.Descriptor( name='GetBulkStateResponse', full_name='spec.proto.runtime.v1.GetBulkStateResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='items', full_name='spec.proto.runtime.v1.GetBulkStateResponse.items', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=4974, serialized_end=5049, ) _BULKSTATEITEM_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.BulkStateItem.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.BulkStateItem.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.BulkStateItem.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _BULKSTATEITEM = _descriptor.Descriptor( name='BulkStateItem', full_name='spec.proto.runtime.v1.BulkStateItem', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.BulkStateItem.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='data', full_name='spec.proto.runtime.v1.BulkStateItem.data', index=1, number=2, type=12, cpp_type=9, label=1, has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='etag', full_name='spec.proto.runtime.v1.BulkStateItem.etag', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='error', full_name='spec.proto.runtime.v1.BulkStateItem.error', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.BulkStateItem.metadata', index=4, number=5, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_BULKSTATEITEM_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=5052, serialized_end=5242, ) _GETSTATERESPONSE_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.GetStateResponse.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.GetStateResponse.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.GetStateResponse.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _GETSTATERESPONSE = _descriptor.Descriptor( name='GetStateResponse', full_name='spec.proto.runtime.v1.GetStateResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='data', full_name='spec.proto.runtime.v1.GetStateResponse.data', index=0, number=1, type=12, cpp_type=9, label=1, has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='etag', full_name='spec.proto.runtime.v1.GetStateResponse.etag', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.GetStateResponse.metadata', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_GETSTATERESPONSE_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=5245, serialized_end=5413, ) _DELETESTATEREQUEST_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.DeleteStateRequest.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.DeleteStateRequest.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.DeleteStateRequest.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _DELETESTATEREQUEST = _descriptor.Descriptor( name='DeleteStateRequest', full_name='spec.proto.runtime.v1.DeleteStateRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='store_name', full_name='spec.proto.runtime.v1.DeleteStateRequest.store_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.DeleteStateRequest.key', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='etag', full_name='spec.proto.runtime.v1.DeleteStateRequest.etag', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='options', full_name='spec.proto.runtime.v1.DeleteStateRequest.options', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.DeleteStateRequest.metadata', index=4, number=5, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_DELETESTATEREQUEST_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=5416, serialized_end=5690, ) _DELETEBULKSTATEREQUEST = _descriptor.Descriptor( name='DeleteBulkStateRequest', full_name='spec.proto.runtime.v1.DeleteBulkStateRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='store_name', full_name='spec.proto.runtime.v1.DeleteBulkStateRequest.store_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='states', full_name='spec.proto.runtime.v1.DeleteBulkStateRequest.states', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=5692, serialized_end=5786, ) _SAVESTATEREQUEST = _descriptor.Descriptor( name='SaveStateRequest', full_name='spec.proto.runtime.v1.SaveStateRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='store_name', full_name='spec.proto.runtime.v1.SaveStateRequest.store_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='states', full_name='spec.proto.runtime.v1.SaveStateRequest.states', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=5788, serialized_end=5876, ) _STATEITEM_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.StateItem.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.StateItem.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.StateItem.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _STATEITEM = _descriptor.Descriptor( name='StateItem', full_name='spec.proto.runtime.v1.StateItem', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.StateItem.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.StateItem.value', index=1, number=2, type=12, cpp_type=9, label=1, has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='etag', full_name='spec.proto.runtime.v1.StateItem.etag', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.StateItem.metadata', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='options', full_name='spec.proto.runtime.v1.StateItem.options', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_STATEITEM_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=5879, serialized_end=6130, ) _ETAG = _descriptor.Descriptor( name='Etag', full_name='spec.proto.runtime.v1.Etag', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.Etag.value', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=6132, serialized_end=6153, ) _STATEOPTIONS = _descriptor.Descriptor( name='StateOptions', full_name='spec.proto.runtime.v1.StateOptions', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='concurrency', full_name='spec.proto.runtime.v1.StateOptions.concurrency', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='consistency', full_name='spec.proto.runtime.v1.StateOptions.consistency', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ _STATEOPTIONS_STATECONCURRENCY, _STATEOPTIONS_STATECONSISTENCY, ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=6156, serialized_end=6525, ) _TRANSACTIONALSTATEOPERATION = _descriptor.Descriptor( name='TransactionalStateOperation', full_name='spec.proto.runtime.v1.TransactionalStateOperation', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='operationType', full_name='spec.proto.runtime.v1.TransactionalStateOperation.operationType', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='request', full_name='spec.proto.runtime.v1.TransactionalStateOperation.request', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=6527, serialized_end=6630, ) _EXECUTESTATETRANSACTIONREQUEST_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.ExecuteStateTransactionRequest.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.ExecuteStateTransactionRequest.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.ExecuteStateTransactionRequest.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _EXECUTESTATETRANSACTIONREQUEST = _descriptor.Descriptor( name='ExecuteStateTransactionRequest', full_name='spec.proto.runtime.v1.ExecuteStateTransactionRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='storeName', full_name='spec.proto.runtime.v1.ExecuteStateTransactionRequest.storeName', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='operations', full_name='spec.proto.runtime.v1.ExecuteStateTransactionRequest.operations', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.ExecuteStateTransactionRequest.metadata', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_EXECUTESTATETRANSACTIONREQUEST_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=6633, serialized_end=6892, ) _PUBLISHEVENTREQUEST_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.PublishEventRequest.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.PublishEventRequest.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.PublishEventRequest.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _PUBLISHEVENTREQUEST = _descriptor.Descriptor( name='PublishEventRequest', full_name='spec.proto.runtime.v1.PublishEventRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='pubsub_name', full_name='spec.proto.runtime.v1.PublishEventRequest.pubsub_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='topic', full_name='spec.proto.runtime.v1.PublishEventRequest.topic', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='data', full_name='spec.proto.runtime.v1.PublishEventRequest.data', index=2, number=3, type=12, cpp_type=9, label=1, has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='data_content_type', full_name='spec.proto.runtime.v1.PublishEventRequest.data_content_type', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.PublishEventRequest.metadata', index=4, number=5, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_PUBLISHEVENTREQUEST_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=6895, serialized_end=7118, ) _INVOKEBINDINGREQUEST_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.InvokeBindingRequest.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.InvokeBindingRequest.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.InvokeBindingRequest.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _INVOKEBINDINGREQUEST = _descriptor.Descriptor( name='InvokeBindingRequest', full_name='spec.proto.runtime.v1.InvokeBindingRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='name', full_name='spec.proto.runtime.v1.InvokeBindingRequest.name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='data', full_name='spec.proto.runtime.v1.InvokeBindingRequest.data', index=1, number=2, type=12, cpp_type=9, label=1, has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.InvokeBindingRequest.metadata', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='operation', full_name='spec.proto.runtime.v1.InvokeBindingRequest.operation', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_INVOKEBINDINGREQUEST_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=7121, serialized_end=7316, ) _INVOKEBINDINGRESPONSE_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', full_name='spec.proto.runtime.v1.InvokeBindingResponse.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='spec.proto.runtime.v1.InvokeBindingResponse.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='spec.proto.runtime.v1.InvokeBindingResponse.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=603, serialized_end=650, ) _INVOKEBINDINGRESPONSE = _descriptor.Descriptor( name='InvokeBindingResponse', full_name='spec.proto.runtime.v1.InvokeBindingResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='data', full_name='spec.proto.runtime.v1.InvokeBindingResponse.data', index=0, number=1, type=12, cpp_type=9, label=1, has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metadata', full_name='spec.proto.runtime.v1.InvokeBindingResponse.metadata', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_INVOKEBINDINGRESPONSE_METADATAENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=7319, serialized_end=7483, ) _GETFILEMETAREQUEST.fields_by_name['request'].message_type = _FILEREQUEST _GETFILEMETARESPONSE.fields_by_name['response'].message_type = _FILEMETA _FILEMETA_METADATAENTRY.fields_by_name['value'].message_type = _FILEMETAVALUE _FILEMETA_METADATAENTRY.containing_type = _FILEMETA _FILEMETA.fields_by_name['metadata'].message_type = _FILEMETA_METADATAENTRY _GETFILEREQUEST_METADATAENTRY.containing_type = _GETFILEREQUEST _GETFILEREQUEST.fields_by_name['metadata'].message_type = _GETFILEREQUEST_METADATAENTRY _PUTFILEREQUEST_METADATAENTRY.containing_type = _PUTFILEREQUEST _PUTFILEREQUEST.fields_by_name['metadata'].message_type = _PUTFILEREQUEST_METADATAENTRY _FILEREQUEST_METADATAENTRY.containing_type = _FILEREQUEST _FILEREQUEST.fields_by_name['metadata'].message_type = _FILEREQUEST_METADATAENTRY _LISTFILEREQUEST.fields_by_name['request'].message_type = _FILEREQUEST _FILEINFO_METADATAENTRY.containing_type = _FILEINFO _FILEINFO.fields_by_name['metadata'].message_type = _FILEINFO_METADATAENTRY _LISTFILERESP.fields_by_name['files'].message_type = _FILEINFO _DELFILEREQUEST.fields_by_name['request'].message_type = _FILEREQUEST _GETNEXTIDREQUEST_METADATAENTRY.containing_type = _GETNEXTIDREQUEST _GETNEXTIDREQUEST.fields_by_name['options'].message_type = _SEQUENCEROPTIONS _GETNEXTIDREQUEST.fields_by_name['metadata'].message_type = _GETNEXTIDREQUEST_METADATAENTRY _SEQUENCEROPTIONS.fields_by_name['increment'].enum_type = _SEQUENCEROPTIONS_AUTOINCREMENT _SEQUENCEROPTIONS_AUTOINCREMENT.containing_type = _SEQUENCEROPTIONS _UNLOCKRESPONSE.fields_by_name['status'].enum_type = _UNLOCKRESPONSE_STATUS _UNLOCKRESPONSE_STATUS.containing_type = _UNLOCKRESPONSE _SAYHELLOREQUEST.fields_by_name['data'].message_type = google_dot_protobuf_dot_any__pb2._ANY _SAYHELLORESPONSE.fields_by_name['data'].message_type = google_dot_protobuf_dot_any__pb2._ANY _INVOKESERVICEREQUEST.fields_by_name['message'].message_type = _COMMONINVOKEREQUEST _COMMONINVOKEREQUEST.fields_by_name['data'].message_type = google_dot_protobuf_dot_any__pb2._ANY _COMMONINVOKEREQUEST.fields_by_name['http_extension'].message_type = _HTTPEXTENSION _HTTPEXTENSION.fields_by_name['verb'].enum_type = _HTTPEXTENSION_VERB _HTTPEXTENSION_VERB.containing_type = _HTTPEXTENSION _INVOKERESPONSE.fields_by_name['data'].message_type = google_dot_protobuf_dot_any__pb2._ANY _CONFIGURATIONITEM_TAGSENTRY.containing_type = _CONFIGURATIONITEM _CONFIGURATIONITEM_METADATAENTRY.containing_type = _CONFIGURATIONITEM _CONFIGURATIONITEM.fields_by_name['tags'].message_type = _CONFIGURATIONITEM_TAGSENTRY _CONFIGURATIONITEM.fields_by_name['metadata'].message_type = _CONFIGURATIONITEM_METADATAENTRY _GETCONFIGURATIONREQUEST_METADATAENTRY.containing_type = _GETCONFIGURATIONREQUEST _GETCONFIGURATIONREQUEST.fields_by_name['metadata'].message_type = _GETCONFIGURATIONREQUEST_METADATAENTRY _GETCONFIGURATIONRESPONSE.fields_by_name['items'].message_type = _CONFIGURATIONITEM _SUBSCRIBECONFIGURATIONREQUEST_METADATAENTRY.containing_type = _SUBSCRIBECONFIGURATIONREQUEST _SUBSCRIBECONFIGURATIONREQUEST.fields_by_name['metadata'].message_type = _SUBSCRIBECONFIGURATIONREQUEST_METADATAENTRY _SUBSCRIBECONFIGURATIONRESPONSE.fields_by_name['items'].message_type = _CONFIGURATIONITEM _SAVECONFIGURATIONREQUEST_METADATAENTRY.containing_type = _SAVECONFIGURATIONREQUEST _SAVECONFIGURATIONREQUEST.fields_by_name['items'].message_type = _CONFIGURATIONITEM _SAVECONFIGURATIONREQUEST.fields_by_name['metadata'].message_type = _SAVECONFIGURATIONREQUEST_METADATAENTRY _DELETECONFIGURATIONREQUEST_METADATAENTRY.containing_type = _DELETECONFIGURATIONREQUEST _DELETECONFIGURATIONREQUEST.fields_by_name['metadata'].message_type = _DELETECONFIGURATIONREQUEST_METADATAENTRY _GETSTATEREQUEST_METADATAENTRY.containing_type = _GETSTATEREQUEST _GETSTATEREQUEST.fields_by_name['consistency'].enum_type = _STATEOPTIONS_STATECONSISTENCY _GETSTATEREQUEST.fields_by_name['metadata'].message_type = _GETSTATEREQUEST_METADATAENTRY _GETBULKSTATEREQUEST_METADATAENTRY.containing_type = _GETBULKSTATEREQUEST _GETBULKSTATEREQUEST.fields_by_name['metadata'].message_type = _GETBULKSTATEREQUEST_METADATAENTRY _GETBULKSTATERESPONSE.fields_by_name['items'].message_type = _BULKSTATEITEM _BULKSTATEITEM_METADATAENTRY.containing_type = _BULKSTATEITEM _BULKSTATEITEM.fields_by_name['metadata'].message_type = _BULKSTATEITEM_METADATAENTRY _GETSTATERESPONSE_METADATAENTRY.containing_type = _GETSTATERESPONSE _GETSTATERESPONSE.fields_by_name['metadata'].message_type = _GETSTATERESPONSE_METADATAENTRY _DELETESTATEREQUEST_METADATAENTRY.containing_type = _DELETESTATEREQUEST _DELETESTATEREQUEST.fields_by_name['etag'].message_type = _ETAG _DELETESTATEREQUEST.fields_by_name['options'].message_type = _STATEOPTIONS _DELETESTATEREQUEST.fields_by_name['metadata'].message_type = _DELETESTATEREQUEST_METADATAENTRY _DELETEBULKSTATEREQUEST.fields_by_name['states'].message_type = _STATEITEM _SAVESTATEREQUEST.fields_by_name['states'].message_type = _STATEITEM _STATEITEM_METADATAENTRY.containing_type = _STATEITEM _STATEITEM.fields_by_name['etag'].message_type = _ETAG _STATEITEM.fields_by_name['metadata'].message_type = _STATEITEM_METADATAENTRY _STATEITEM.fields_by_name['options'].message_type = _STATEOPTIONS _STATEOPTIONS.fields_by_name['concurrency'].enum_type = _STATEOPTIONS_STATECONCURRENCY _STATEOPTIONS.fields_by_name['consistency'].enum_type = _STATEOPTIONS_STATECONSISTENCY _STATEOPTIONS_STATECONCURRENCY.containing_type = _STATEOPTIONS _STATEOPTIONS_STATECONSISTENCY.containing_type = _STATEOPTIONS _TRANSACTIONALSTATEOPERATION.fields_by_name['request'].message_type = _STATEITEM _EXECUTESTATETRANSACTIONREQUEST_METADATAENTRY.containing_type = _EXECUTESTATETRANSACTIONREQUEST _EXECUTESTATETRANSACTIONREQUEST.fields_by_name['operations'].message_type = _TRANSACTIONALSTATEOPERATION _EXECUTESTATETRANSACTIONREQUEST.fields_by_name['metadata'].message_type = _EXECUTESTATETRANSACTIONREQUEST_METADATAENTRY _PUBLISHEVENTREQUEST_METADATAENTRY.containing_type = _PUBLISHEVENTREQUEST _PUBLISHEVENTREQUEST.fields_by_name['metadata'].message_type = _PUBLISHEVENTREQUEST_METADATAENTRY _INVOKEBINDINGREQUEST_METADATAENTRY.containing_type = _INVOKEBINDINGREQUEST _INVOKEBINDINGREQUEST.fields_by_name['metadata'].message_type = _INVOKEBINDINGREQUEST_METADATAENTRY _INVOKEBINDINGRESPONSE_METADATAENTRY.containing_type = _INVOKEBINDINGRESPONSE _INVOKEBINDINGRESPONSE.fields_by_name['metadata'].message_type = _INVOKEBINDINGRESPONSE_METADATAENTRY DESCRIPTOR.message_types_by_name['GetFileMetaRequest'] = _GETFILEMETAREQUEST DESCRIPTOR.message_types_by_name['GetFileMetaResponse'] = _GETFILEMETARESPONSE DESCRIPTOR.message_types_by_name['FileMetaValue'] = _FILEMETAVALUE DESCRIPTOR.message_types_by_name['FileMeta'] = _FILEMETA DESCRIPTOR.message_types_by_name['GetFileRequest'] = _GETFILEREQUEST DESCRIPTOR.message_types_by_name['GetFileResponse'] = _GETFILERESPONSE DESCRIPTOR.message_types_by_name['PutFileRequest'] = _PUTFILEREQUEST DESCRIPTOR.message_types_by_name['FileRequest'] = _FILEREQUEST DESCRIPTOR.message_types_by_name['ListFileRequest'] = _LISTFILEREQUEST DESCRIPTOR.message_types_by_name['FileInfo'] = _FILEINFO DESCRIPTOR.message_types_by_name['ListFileResp'] = _LISTFILERESP DESCRIPTOR.message_types_by_name['DelFileRequest'] = _DELFILEREQUEST DESCRIPTOR.message_types_by_name['GetNextIdRequest'] = _GETNEXTIDREQUEST DESCRIPTOR.message_types_by_name['SequencerOptions'] = _SEQUENCEROPTIONS DESCRIPTOR.message_types_by_name['GetNextIdResponse'] = _GETNEXTIDRESPONSE DESCRIPTOR.message_types_by_name['TryLockRequest'] = _TRYLOCKREQUEST DESCRIPTOR.message_types_by_name['TryLockResponse'] = _TRYLOCKRESPONSE DESCRIPTOR.message_types_by_name['UnlockRequest'] = _UNLOCKREQUEST DESCRIPTOR.message_types_by_name['UnlockResponse'] = _UNLOCKRESPONSE DESCRIPTOR.message_types_by_name['SayHelloRequest'] = _SAYHELLOREQUEST DESCRIPTOR.message_types_by_name['SayHelloResponse'] = _SAYHELLORESPONSE DESCRIPTOR.message_types_by_name['InvokeServiceRequest'] = _INVOKESERVICEREQUEST DESCRIPTOR.message_types_by_name['CommonInvokeRequest'] = _COMMONINVOKEREQUEST DESCRIPTOR.message_types_by_name['HTTPExtension'] = _HTTPEXTENSION DESCRIPTOR.message_types_by_name['InvokeResponse'] = _INVOKERESPONSE DESCRIPTOR.message_types_by_name['ConfigurationItem'] = _CONFIGURATIONITEM DESCRIPTOR.message_types_by_name['GetConfigurationRequest'] = _GETCONFIGURATIONREQUEST DESCRIPTOR.message_types_by_name['GetConfigurationResponse'] = _GETCONFIGURATIONRESPONSE DESCRIPTOR.message_types_by_name['SubscribeConfigurationRequest'] = _SUBSCRIBECONFIGURATIONREQUEST DESCRIPTOR.message_types_by_name['SubscribeConfigurationResponse'] = _SUBSCRIBECONFIGURATIONRESPONSE DESCRIPTOR.message_types_by_name['SaveConfigurationRequest'] = _SAVECONFIGURATIONREQUEST DESCRIPTOR.message_types_by_name['DeleteConfigurationRequest'] = _DELETECONFIGURATIONREQUEST DESCRIPTOR.message_types_by_name['GetStateRequest'] = _GETSTATEREQUEST DESCRIPTOR.message_types_by_name['GetBulkStateRequest'] = _GETBULKSTATEREQUEST DESCRIPTOR.message_types_by_name['GetBulkStateResponse'] = _GETBULKSTATERESPONSE DESCRIPTOR.message_types_by_name['BulkStateItem'] = _BULKSTATEITEM DESCRIPTOR.message_types_by_name['GetStateResponse'] = _GETSTATERESPONSE DESCRIPTOR.message_types_by_name['DeleteStateRequest'] = _DELETESTATEREQUEST DESCRIPTOR.message_types_by_name['DeleteBulkStateRequest'] = _DELETEBULKSTATEREQUEST DESCRIPTOR.message_types_by_name['SaveStateRequest'] = _SAVESTATEREQUEST DESCRIPTOR.message_types_by_name['StateItem'] = _STATEITEM DESCRIPTOR.message_types_by_name['Etag'] = _ETAG DESCRIPTOR.message_types_by_name['StateOptions'] = _STATEOPTIONS DESCRIPTOR.message_types_by_name['TransactionalStateOperation'] = _TRANSACTIONALSTATEOPERATION DESCRIPTOR.message_types_by_name['ExecuteStateTransactionRequest'] = _EXECUTESTATETRANSACTIONREQUEST DESCRIPTOR.message_types_by_name['PublishEventRequest'] = _PUBLISHEVENTREQUEST DESCRIPTOR.message_types_by_name['InvokeBindingRequest'] = _INVOKEBINDINGREQUEST DESCRIPTOR.message_types_by_name['InvokeBindingResponse'] = _INVOKEBINDINGRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) GetFileMetaRequest = _reflection.GeneratedProtocolMessageType('GetFileMetaRequest', (_message.Message,), { 'DESCRIPTOR' : _GETFILEMETAREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetFileMetaRequest) }) _sym_db.RegisterMessage(GetFileMetaRequest) GetFileMetaResponse = _reflection.GeneratedProtocolMessageType('GetFileMetaResponse', (_message.Message,), { 'DESCRIPTOR' : _GETFILEMETARESPONSE, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetFileMetaResponse) }) _sym_db.RegisterMessage(GetFileMetaResponse) FileMetaValue = _reflection.GeneratedProtocolMessageType('FileMetaValue', (_message.Message,), { 'DESCRIPTOR' : _FILEMETAVALUE, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.FileMetaValue) }) _sym_db.RegisterMessage(FileMetaValue) FileMeta = _reflection.GeneratedProtocolMessageType('FileMeta', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _FILEMETA_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.FileMeta.MetadataEntry) }) , 'DESCRIPTOR' : _FILEMETA, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.FileMeta) }) _sym_db.RegisterMessage(FileMeta) _sym_db.RegisterMessage(FileMeta.MetadataEntry) GetFileRequest = _reflection.GeneratedProtocolMessageType('GetFileRequest', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _GETFILEREQUEST_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetFileRequest.MetadataEntry) }) , 'DESCRIPTOR' : _GETFILEREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetFileRequest) }) _sym_db.RegisterMessage(GetFileRequest) _sym_db.RegisterMessage(GetFileRequest.MetadataEntry) GetFileResponse = _reflection.GeneratedProtocolMessageType('GetFileResponse', (_message.Message,), { 'DESCRIPTOR' : _GETFILERESPONSE, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetFileResponse) }) _sym_db.RegisterMessage(GetFileResponse) PutFileRequest = _reflection.GeneratedProtocolMessageType('PutFileRequest', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _PUTFILEREQUEST_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.PutFileRequest.MetadataEntry) }) , 'DESCRIPTOR' : _PUTFILEREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.PutFileRequest) }) _sym_db.RegisterMessage(PutFileRequest) _sym_db.RegisterMessage(PutFileRequest.MetadataEntry) FileRequest = _reflection.GeneratedProtocolMessageType('FileRequest', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _FILEREQUEST_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.FileRequest.MetadataEntry) }) , 'DESCRIPTOR' : _FILEREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.FileRequest) }) _sym_db.RegisterMessage(FileRequest) _sym_db.RegisterMessage(FileRequest.MetadataEntry) ListFileRequest = _reflection.GeneratedProtocolMessageType('ListFileRequest', (_message.Message,), { 'DESCRIPTOR' : _LISTFILEREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.ListFileRequest) }) _sym_db.RegisterMessage(ListFileRequest) FileInfo = _reflection.GeneratedProtocolMessageType('FileInfo', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _FILEINFO_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.FileInfo.MetadataEntry) }) , 'DESCRIPTOR' : _FILEINFO, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.FileInfo) }) _sym_db.RegisterMessage(FileInfo) _sym_db.RegisterMessage(FileInfo.MetadataEntry) ListFileResp = _reflection.GeneratedProtocolMessageType('ListFileResp', (_message.Message,), { 'DESCRIPTOR' : _LISTFILERESP, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.ListFileResp) }) _sym_db.RegisterMessage(ListFileResp) DelFileRequest = _reflection.GeneratedProtocolMessageType('DelFileRequest', (_message.Message,), { 'DESCRIPTOR' : _DELFILEREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.DelFileRequest) }) _sym_db.RegisterMessage(DelFileRequest) GetNextIdRequest = _reflection.GeneratedProtocolMessageType('GetNextIdRequest', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _GETNEXTIDREQUEST_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetNextIdRequest.MetadataEntry) }) , 'DESCRIPTOR' : _GETNEXTIDREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetNextIdRequest) }) _sym_db.RegisterMessage(GetNextIdRequest) _sym_db.RegisterMessage(GetNextIdRequest.MetadataEntry) SequencerOptions = _reflection.GeneratedProtocolMessageType('SequencerOptions', (_message.Message,), { 'DESCRIPTOR' : _SEQUENCEROPTIONS, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.SequencerOptions) }) _sym_db.RegisterMessage(SequencerOptions) GetNextIdResponse = _reflection.GeneratedProtocolMessageType('GetNextIdResponse', (_message.Message,), { 'DESCRIPTOR' : _GETNEXTIDRESPONSE, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetNextIdResponse) }) _sym_db.RegisterMessage(GetNextIdResponse) TryLockRequest = _reflection.GeneratedProtocolMessageType('TryLockRequest', (_message.Message,), { 'DESCRIPTOR' : _TRYLOCKREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.TryLockRequest) }) _sym_db.RegisterMessage(TryLockRequest) TryLockResponse = _reflection.GeneratedProtocolMessageType('TryLockResponse', (_message.Message,), { 'DESCRIPTOR' : _TRYLOCKRESPONSE, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.TryLockResponse) }) _sym_db.RegisterMessage(TryLockResponse) UnlockRequest = _reflection.GeneratedProtocolMessageType('UnlockRequest', (_message.Message,), { 'DESCRIPTOR' : _UNLOCKREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.UnlockRequest) }) _sym_db.RegisterMessage(UnlockRequest) UnlockResponse = _reflection.GeneratedProtocolMessageType('UnlockResponse', (_message.Message,), { 'DESCRIPTOR' : _UNLOCKRESPONSE, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.UnlockResponse) }) _sym_db.RegisterMessage(UnlockResponse) SayHelloRequest = _reflection.GeneratedProtocolMessageType('SayHelloRequest', (_message.Message,), { 'DESCRIPTOR' : _SAYHELLOREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.SayHelloRequest) }) _sym_db.RegisterMessage(SayHelloRequest) SayHelloResponse = _reflection.GeneratedProtocolMessageType('SayHelloResponse', (_message.Message,), { 'DESCRIPTOR' : _SAYHELLORESPONSE, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.SayHelloResponse) }) _sym_db.RegisterMessage(SayHelloResponse) InvokeServiceRequest = _reflection.GeneratedProtocolMessageType('InvokeServiceRequest', (_message.Message,), { 'DESCRIPTOR' : _INVOKESERVICEREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.InvokeServiceRequest) }) _sym_db.RegisterMessage(InvokeServiceRequest) CommonInvokeRequest = _reflection.GeneratedProtocolMessageType('CommonInvokeRequest', (_message.Message,), { 'DESCRIPTOR' : _COMMONINVOKEREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.CommonInvokeRequest) }) _sym_db.RegisterMessage(CommonInvokeRequest) HTTPExtension = _reflection.GeneratedProtocolMessageType('HTTPExtension', (_message.Message,), { 'DESCRIPTOR' : _HTTPEXTENSION, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.HTTPExtension) }) _sym_db.RegisterMessage(HTTPExtension) InvokeResponse = _reflection.GeneratedProtocolMessageType('InvokeResponse', (_message.Message,), { 'DESCRIPTOR' : _INVOKERESPONSE, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.InvokeResponse) }) _sym_db.RegisterMessage(InvokeResponse) ConfigurationItem = _reflection.GeneratedProtocolMessageType('ConfigurationItem', (_message.Message,), { 'TagsEntry' : _reflection.GeneratedProtocolMessageType('TagsEntry', (_message.Message,), { 'DESCRIPTOR' : _CONFIGURATIONITEM_TAGSENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.ConfigurationItem.TagsEntry) }) , 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _CONFIGURATIONITEM_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.ConfigurationItem.MetadataEntry) }) , 'DESCRIPTOR' : _CONFIGURATIONITEM, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.ConfigurationItem) }) _sym_db.RegisterMessage(ConfigurationItem) _sym_db.RegisterMessage(ConfigurationItem.TagsEntry) _sym_db.RegisterMessage(ConfigurationItem.MetadataEntry) GetConfigurationRequest = _reflection.GeneratedProtocolMessageType('GetConfigurationRequest', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _GETCONFIGURATIONREQUEST_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetConfigurationRequest.MetadataEntry) }) , 'DESCRIPTOR' : _GETCONFIGURATIONREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetConfigurationRequest) }) _sym_db.RegisterMessage(GetConfigurationRequest) _sym_db.RegisterMessage(GetConfigurationRequest.MetadataEntry) GetConfigurationResponse = _reflection.GeneratedProtocolMessageType('GetConfigurationResponse', (_message.Message,), { 'DESCRIPTOR' : _GETCONFIGURATIONRESPONSE, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetConfigurationResponse) }) _sym_db.RegisterMessage(GetConfigurationResponse) SubscribeConfigurationRequest = _reflection.GeneratedProtocolMessageType('SubscribeConfigurationRequest', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _SUBSCRIBECONFIGURATIONREQUEST_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.SubscribeConfigurationRequest.MetadataEntry) }) , 'DESCRIPTOR' : _SUBSCRIBECONFIGURATIONREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.SubscribeConfigurationRequest) }) _sym_db.RegisterMessage(SubscribeConfigurationRequest) _sym_db.RegisterMessage(SubscribeConfigurationRequest.MetadataEntry) SubscribeConfigurationResponse = _reflection.GeneratedProtocolMessageType('SubscribeConfigurationResponse', (_message.Message,), { 'DESCRIPTOR' : _SUBSCRIBECONFIGURATIONRESPONSE, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.SubscribeConfigurationResponse) }) _sym_db.RegisterMessage(SubscribeConfigurationResponse) SaveConfigurationRequest = _reflection.GeneratedProtocolMessageType('SaveConfigurationRequest', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _SAVECONFIGURATIONREQUEST_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.SaveConfigurationRequest.MetadataEntry) }) , 'DESCRIPTOR' : _SAVECONFIGURATIONREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.SaveConfigurationRequest) }) _sym_db.RegisterMessage(SaveConfigurationRequest) _sym_db.RegisterMessage(SaveConfigurationRequest.MetadataEntry) DeleteConfigurationRequest = _reflection.GeneratedProtocolMessageType('DeleteConfigurationRequest', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _DELETECONFIGURATIONREQUEST_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.DeleteConfigurationRequest.MetadataEntry) }) , 'DESCRIPTOR' : _DELETECONFIGURATIONREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.DeleteConfigurationRequest) }) _sym_db.RegisterMessage(DeleteConfigurationRequest) _sym_db.RegisterMessage(DeleteConfigurationRequest.MetadataEntry) GetStateRequest = _reflection.GeneratedProtocolMessageType('GetStateRequest', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _GETSTATEREQUEST_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetStateRequest.MetadataEntry) }) , 'DESCRIPTOR' : _GETSTATEREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetStateRequest) }) _sym_db.RegisterMessage(GetStateRequest) _sym_db.RegisterMessage(GetStateRequest.MetadataEntry) GetBulkStateRequest = _reflection.GeneratedProtocolMessageType('GetBulkStateRequest', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _GETBULKSTATEREQUEST_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetBulkStateRequest.MetadataEntry) }) , 'DESCRIPTOR' : _GETBULKSTATEREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetBulkStateRequest) }) _sym_db.RegisterMessage(GetBulkStateRequest) _sym_db.RegisterMessage(GetBulkStateRequest.MetadataEntry) GetBulkStateResponse = _reflection.GeneratedProtocolMessageType('GetBulkStateResponse', (_message.Message,), { 'DESCRIPTOR' : _GETBULKSTATERESPONSE, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetBulkStateResponse) }) _sym_db.RegisterMessage(GetBulkStateResponse) BulkStateItem = _reflection.GeneratedProtocolMessageType('BulkStateItem', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _BULKSTATEITEM_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.BulkStateItem.MetadataEntry) }) , 'DESCRIPTOR' : _BULKSTATEITEM, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.BulkStateItem) }) _sym_db.RegisterMessage(BulkStateItem) _sym_db.RegisterMessage(BulkStateItem.MetadataEntry) GetStateResponse = _reflection.GeneratedProtocolMessageType('GetStateResponse', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _GETSTATERESPONSE_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetStateResponse.MetadataEntry) }) , 'DESCRIPTOR' : _GETSTATERESPONSE, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.GetStateResponse) }) _sym_db.RegisterMessage(GetStateResponse) _sym_db.RegisterMessage(GetStateResponse.MetadataEntry) DeleteStateRequest = _reflection.GeneratedProtocolMessageType('DeleteStateRequest', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _DELETESTATEREQUEST_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.DeleteStateRequest.MetadataEntry) }) , 'DESCRIPTOR' : _DELETESTATEREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.DeleteStateRequest) }) _sym_db.RegisterMessage(DeleteStateRequest) _sym_db.RegisterMessage(DeleteStateRequest.MetadataEntry) DeleteBulkStateRequest = _reflection.GeneratedProtocolMessageType('DeleteBulkStateRequest', (_message.Message,), { 'DESCRIPTOR' : _DELETEBULKSTATEREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.DeleteBulkStateRequest) }) _sym_db.RegisterMessage(DeleteBulkStateRequest) SaveStateRequest = _reflection.GeneratedProtocolMessageType('SaveStateRequest', (_message.Message,), { 'DESCRIPTOR' : _SAVESTATEREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.SaveStateRequest) }) _sym_db.RegisterMessage(SaveStateRequest) StateItem = _reflection.GeneratedProtocolMessageType('StateItem', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _STATEITEM_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.StateItem.MetadataEntry) }) , 'DESCRIPTOR' : _STATEITEM, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.StateItem) }) _sym_db.RegisterMessage(StateItem) _sym_db.RegisterMessage(StateItem.MetadataEntry) Etag = _reflection.GeneratedProtocolMessageType('Etag', (_message.Message,), { 'DESCRIPTOR' : _ETAG, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.Etag) }) _sym_db.RegisterMessage(Etag) StateOptions = _reflection.GeneratedProtocolMessageType('StateOptions', (_message.Message,), { 'DESCRIPTOR' : _STATEOPTIONS, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.StateOptions) }) _sym_db.RegisterMessage(StateOptions) TransactionalStateOperation = _reflection.GeneratedProtocolMessageType('TransactionalStateOperation', (_message.Message,), { 'DESCRIPTOR' : _TRANSACTIONALSTATEOPERATION, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.TransactionalStateOperation) }) _sym_db.RegisterMessage(TransactionalStateOperation) ExecuteStateTransactionRequest = _reflection.GeneratedProtocolMessageType('ExecuteStateTransactionRequest', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _EXECUTESTATETRANSACTIONREQUEST_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.ExecuteStateTransactionRequest.MetadataEntry) }) , 'DESCRIPTOR' : _EXECUTESTATETRANSACTIONREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.ExecuteStateTransactionRequest) }) _sym_db.RegisterMessage(ExecuteStateTransactionRequest) _sym_db.RegisterMessage(ExecuteStateTransactionRequest.MetadataEntry) PublishEventRequest = _reflection.GeneratedProtocolMessageType('PublishEventRequest', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _PUBLISHEVENTREQUEST_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.PublishEventRequest.MetadataEntry) }) , 'DESCRIPTOR' : _PUBLISHEVENTREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.PublishEventRequest) }) _sym_db.RegisterMessage(PublishEventRequest) _sym_db.RegisterMessage(PublishEventRequest.MetadataEntry) InvokeBindingRequest = _reflection.GeneratedProtocolMessageType('InvokeBindingRequest', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _INVOKEBINDINGREQUEST_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.InvokeBindingRequest.MetadataEntry) }) , 'DESCRIPTOR' : _INVOKEBINDINGREQUEST, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.InvokeBindingRequest) }) _sym_db.RegisterMessage(InvokeBindingRequest) _sym_db.RegisterMessage(InvokeBindingRequest.MetadataEntry) InvokeBindingResponse = _reflection.GeneratedProtocolMessageType('InvokeBindingResponse', (_message.Message,), { 'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), { 'DESCRIPTOR' : _INVOKEBINDINGRESPONSE_METADATAENTRY, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.InvokeBindingResponse.MetadataEntry) }) , 'DESCRIPTOR' : _INVOKEBINDINGRESPONSE, '__module__' : 'runtime_pb2' # @@protoc_insertion_point(class_scope:spec.proto.runtime.v1.InvokeBindingResponse) }) _sym_db.RegisterMessage(InvokeBindingResponse) _sym_db.RegisterMessage(InvokeBindingResponse.MetadataEntry) DESCRIPTOR._options = None _FILEMETA_METADATAENTRY._options = None _GETFILEREQUEST_METADATAENTRY._options = None _PUTFILEREQUEST_METADATAENTRY._options = None _FILEREQUEST_METADATAENTRY._options = None _FILEINFO_METADATAENTRY._options = None _GETNEXTIDREQUEST_METADATAENTRY._options = None _GETNEXTIDRESPONSE.fields_by_name['next_id']._options = None _CONFIGURATIONITEM_TAGSENTRY._options = None _CONFIGURATIONITEM_METADATAENTRY._options = None _GETCONFIGURATIONREQUEST_METADATAENTRY._options = None _SUBSCRIBECONFIGURATIONREQUEST_METADATAENTRY._options = None _SAVECONFIGURATIONREQUEST_METADATAENTRY._options = None _DELETECONFIGURATIONREQUEST_METADATAENTRY._options = None _GETSTATEREQUEST_METADATAENTRY._options = None _GETBULKSTATEREQUEST_METADATAENTRY._options = None _BULKSTATEITEM_METADATAENTRY._options = None _GETSTATERESPONSE_METADATAENTRY._options = None _DELETESTATEREQUEST_METADATAENTRY._options = None _STATEITEM_METADATAENTRY._options = None _EXECUTESTATETRANSACTIONREQUEST_METADATAENTRY._options = None _PUBLISHEVENTREQUEST_METADATAENTRY._options = None _INVOKEBINDINGREQUEST_METADATAENTRY._options = None _INVOKEBINDINGRESPONSE_METADATAENTRY._options = None _RUNTIME = _descriptor.ServiceDescriptor( name='Runtime', full_name='spec.proto.runtime.v1.Runtime', file=DESCRIPTOR, index=0, serialized_options=None, create_key=_descriptor._internal_create_key, serialized_start=7486, serialized_end=9634, methods=[ _descriptor.MethodDescriptor( name='SayHello', full_name='spec.proto.runtime.v1.Runtime.SayHello', index=0, containing_service=None, input_type=_SAYHELLOREQUEST, output_type=_SAYHELLORESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='InvokeService', full_name='spec.proto.runtime.v1.Runtime.InvokeService', index=1, containing_service=None, input_type=_INVOKESERVICEREQUEST, output_type=_INVOKERESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='GetConfiguration', full_name='spec.proto.runtime.v1.Runtime.GetConfiguration', index=2, containing_service=None, input_type=_GETCONFIGURATIONREQUEST, output_type=_GETCONFIGURATIONRESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='SaveConfiguration', full_name='spec.proto.runtime.v1.Runtime.SaveConfiguration', index=3, containing_service=None, input_type=_SAVECONFIGURATIONREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='DeleteConfiguration', full_name='spec.proto.runtime.v1.Runtime.DeleteConfiguration', index=4, containing_service=None, input_type=_DELETECONFIGURATIONREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='SubscribeConfiguration', full_name='spec.proto.runtime.v1.Runtime.SubscribeConfiguration', index=5, containing_service=None, input_type=_SUBSCRIBECONFIGURATIONREQUEST, output_type=_SUBSCRIBECONFIGURATIONRESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='TryLock', full_name='spec.proto.runtime.v1.Runtime.TryLock', index=6, containing_service=None, input_type=_TRYLOCKREQUEST, output_type=_TRYLOCKRESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='Unlock', full_name='spec.proto.runtime.v1.Runtime.Unlock', index=7, containing_service=None, input_type=_UNLOCKREQUEST, output_type=_UNLOCKRESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='GetNextId', full_name='spec.proto.runtime.v1.Runtime.GetNextId', index=8, containing_service=None, input_type=_GETNEXTIDREQUEST, output_type=_GETNEXTIDRESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='GetState', full_name='spec.proto.runtime.v1.Runtime.GetState', index=9, containing_service=None, input_type=_GETSTATEREQUEST, output_type=_GETSTATERESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='GetBulkState', full_name='spec.proto.runtime.v1.Runtime.GetBulkState', index=10, containing_service=None, input_type=_GETBULKSTATEREQUEST, output_type=_GETBULKSTATERESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='SaveState', full_name='spec.proto.runtime.v1.Runtime.SaveState', index=11, containing_service=None, input_type=_SAVESTATEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='DeleteState', full_name='spec.proto.runtime.v1.Runtime.DeleteState', index=12, containing_service=None, input_type=_DELETESTATEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='DeleteBulkState', full_name='spec.proto.runtime.v1.Runtime.DeleteBulkState', index=13, containing_service=None, input_type=_DELETEBULKSTATEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='ExecuteStateTransaction', full_name='spec.proto.runtime.v1.Runtime.ExecuteStateTransaction', index=14, containing_service=None, input_type=_EXECUTESTATETRANSACTIONREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='PublishEvent', full_name='spec.proto.runtime.v1.Runtime.PublishEvent', index=15, containing_service=None, input_type=_PUBLISHEVENTREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='GetFile', full_name='spec.proto.runtime.v1.Runtime.GetFile', index=16, containing_service=None, input_type=_GETFILEREQUEST, output_type=_GETFILERESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='PutFile', full_name='spec.proto.runtime.v1.Runtime.PutFile', index=17, containing_service=None, input_type=_PUTFILEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='ListFile', full_name='spec.proto.runtime.v1.Runtime.ListFile', index=18, containing_service=None, input_type=_LISTFILEREQUEST, output_type=_LISTFILERESP, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='DelFile', full_name='spec.proto.runtime.v1.Runtime.DelFile', index=19, containing_service=None, input_type=_DELFILEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='GetFileMeta', full_name='spec.proto.runtime.v1.Runtime.GetFileMeta', index=20, containing_service=None, input_type=_GETFILEMETAREQUEST, output_type=_GETFILEMETARESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='InvokeBinding', full_name='spec.proto.runtime.v1.Runtime.InvokeBinding', index=21, containing_service=None, input_type=_INVOKEBINDINGREQUEST, output_type=_INVOKEBINDINGRESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), ]) _sym_db.RegisterServiceDescriptor(_RUNTIME) DESCRIPTOR.services_by_name['Runtime'] = _RUNTIME # @@protoc_insertion_point(module_scope)
43.213665
15,402
0.762452
21,493
178,991
6.03564
0.029033
0.040147
0.066934
0.061053
0.806875
0.761193
0.744797
0.689842
0.674386
0.654613
0
0.035332
0.11433
178,991
4,141
15,403
43.2241
0.782977
0.033432
0
0.711065
1
0.056491
0.179405
0.133322
0
0
0
0
0
1
0
false
0
0.001555
0
0.001555
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
7d06052db12be7d797c6ae71d50d5932087e2cc9
547
py
Python
tests/parser/grounding.ordering.11.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
tests/parser/grounding.ordering.11.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
tests/parser/grounding.ordering.11.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
input = """ male(john). republican(john). male(matt). republican(matt). female(joana). republican(joana). female(luise). democrat(luise). moreMaleRepublicans :- #count{X:republican(X), female(X)} < N, #count{Y: republican(Y), male(Y)} = N. """ output = """ male(john). republican(john). male(matt). republican(matt). female(joana). republican(joana). female(luise). democrat(luise). moreMaleRepublicans :- #count{X:republican(X), female(X)} < N, #count{Y: republican(Y), male(Y)} = N. """
23.782609
44
0.608775
64
547
5.203125
0.234375
0.048048
0.108108
0.132132
0.966967
0.966967
0.966967
0.966967
0.966967
0.966967
0
0
0.190128
547
22
45
24.863636
0.751693
0
0
0.888889
0
0
0.941399
0.086957
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
7d104183b8c58220518f0c93514aba2d7001e3ff
133,268
py
Python
bobstack/tests/test_sipmessaging_sipHeaderField.py
bobjects/BobStack
c177b286075044832f44baf9ace201780c8b4320
[ "Apache-2.0" ]
null
null
null
bobstack/tests/test_sipmessaging_sipHeaderField.py
bobjects/BobStack
c177b286075044832f44baf9ace201780c8b4320
[ "Apache-2.0" ]
null
null
null
bobstack/tests/test_sipmessaging_sipHeaderField.py
bobjects/BobStack
c177b286075044832f44baf9ace201780c8b4320
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from abstractSIPHeaderFieldTestCase import AbstractSIPHeaderFieldTestCase from abstractIntegerSIPHeaderFieldTestCase import AbstractIntegerSIPHeaderFieldTestCase from ..sipmessaging import SIPURI from ..sipmessaging import UnknownSIPHeaderField from ..sipmessaging import ContentLengthSIPHeaderField from ..sipmessaging import AcceptSIPHeaderField from ..sipmessaging import AcceptEncodingSIPHeaderField from ..sipmessaging import AcceptLanguageSIPHeaderField from ..sipmessaging import AllowSIPHeaderField from ..sipmessaging import AuthorizationSIPHeaderField from ..sipmessaging import CSeqSIPHeaderField from ..sipmessaging import CallIDSIPHeaderField from ..sipmessaging import CallInfoSIPHeaderField from ..sipmessaging import ContactSIPHeaderField from ..sipmessaging import ContentDispositionSIPHeaderField from ..sipmessaging import ContentTypeSIPHeaderField from ..sipmessaging import DateSIPHeaderField from ..sipmessaging import ExpiresSIPHeaderField from ..sipmessaging import FromSIPHeaderField from ..sipmessaging import MaxForwardsSIPHeaderField from ..sipmessaging import RecordRouteSIPHeaderField from ..sipmessaging import RequireSIPHeaderField from ..sipmessaging import RetryAfterSIPHeaderField from ..sipmessaging import RouteSIPHeaderField from ..sipmessaging import ServerSIPHeaderField from ..sipmessaging import SessionExpiresSIPHeaderField from ..sipmessaging import SupportedSIPHeaderField from ..sipmessaging import TimestampSIPHeaderField from ..sipmessaging import ToSIPHeaderField from ..sipmessaging import UserAgentSIPHeaderField from ..sipmessaging import ViaSIPHeaderField from ..sipmessaging import WWWAuthenticateSIPHeaderField from ..sipmessaging import WarningSIPHeaderField from ..sipmessaging import SubjectSIPHeaderField from ..sipmessaging import ReferredBySIPHeaderField from ..sipmessaging import ReferToSIPHeaderField from ..sipmessaging import AllowEventsSIPHeaderField from ..sipmessaging import EventSIPHeaderField from ..sipmessaging import ContentEncodingSIPHeaderField from ..sipmessaging import RAckSIPHeaderField from ..sipmessaging import PChargeSIPHeaderField from ..sipmessaging import ReplyToSIPHeaderField from ..sipmessaging import UnsupportedSIPHeaderField from ..sipmessaging import PAssertedIdentitySIPHeaderField from ..sipmessaging import PPreferredIdentitySIPHeaderField from ..sipmessaging import RemotePartyIDSIPHeaderField from ..sipmessaging import AlertInfoSIPHeaderField from ..sipmessaging import HistoryInfoSIPHeaderField from ..sipmessaging import PCalledPartyIdSIPHeaderField from ..sipmessaging import PRTPStatSIPHeaderField from ..sipmessaging import PrivacySIPHeaderField from ..sipmessaging import ProxyAuthenticateSIPHeaderField from ..sipmessaging import ProxyAuthorizationSIPHeaderField from ..sipmessaging import ProxyRequireSIPHeaderField from ..sipmessaging import ReasonSIPHeaderField from ..sipmessaging import RecordSessionExpiresSIPHeaderField from ..sipmessaging import ReplacesSIPHeaderField from ..sipmessaging import SubscriptionStateSIPHeaderField from ..sipmessaging import MinExpiresSIPHeaderField class TestUnknownSipHeaderField(TestCase): @property def canonicalStrings(self): return [ '', 'fajdoutawledsuloiur', 'fdfoisfoisdjfljdsf dfdsfjsdilj dfljd', 'UnknownHeaderField: and here is some data', ] def test_parsing(self): for line in self.canonicalStrings: self.assertFalse(UnknownSIPHeaderField.can_match_string(line)) self.assertFalse(ContentLengthSIPHeaderField.can_match_string(line)) header_field = UnknownSIPHeaderField.new_parsed_from(line) if line.split().__len__() < 2: self.assertFalse(header_field.is_valid) else: if ":" not in line: self.assertFalse(header_field.is_valid) else: self.assertTrue(header_field.is_valid) self.assertFalse(header_field.is_content_length) self.assertFalse(header_field.is_known) self.assertEqual(header_field.raw_string, line) self.assertIsInstance(header_field.field_name, basestring) self.assertIsInstance(header_field.field_value_string, basestring) class TestContentLengthSipHeaderField(AbstractIntegerSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Content-Length', 'CONTENT-Length', 'content-length', 'Content-length', 'content-Length'] @property def sipHeaderFieldClassUnderTest(self): return ContentLengthSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_content_length, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_content_length) header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_content_length) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_content_length) def testIANAStandardParameters(self): # TODO pass class TestAcceptSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Accept', 'ACCEPT', 'accept'] @property def sipHeaderFieldClassUnderTest(self): return AcceptSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_accept, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_accept) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_accept) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_accept) def testIANAStandardParameters(self): # TODO pass class TestAcceptEncodingSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Accept-Encoding', 'ACCEPT-Encoding', 'accept-encoding', 'Accept-encoding', 'accept-Encoding'] @property def sipHeaderFieldClassUnderTest(self): return AcceptEncodingSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_accept_encoding, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_accept_encoding) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_accept_encoding) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_accept_encoding) def testIANAStandardParameters(self): # TODO pass class TestAcceptLanguageSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Accept-Language', 'ACCEPT-Language', 'accept-language', 'Accept-language', 'accept-Language'] @property def sipHeaderFieldClassUnderTest(self): return AcceptLanguageSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_accept_language, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_accept_language) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_accept_language) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_accept_language) def testIANAStandardParameters(self): # TODO pass class TestAllowSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Allow', 'ALLOW', 'allow'] @property def sipHeaderFieldClassUnderTest(self): return AllowSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_allow, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_allow) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_allow) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_allow) class TestAuthorizationSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Authorization', 'AUTHORIZATION', 'authorization'] @property def sipHeaderFieldClassUnderTest(self): return AuthorizationSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_authorization, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_authorization) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_authorization) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_authorization) def testIANAStandardParameters(self): # TODO pass class TestCSeqSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['CSeq', 'CSEQ', 'cseq'] @property def sipHeaderFieldClassUnderTest(self): return CSeqSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_cseq, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_cseq) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_cseq) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_cseq) class TestCallIDSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Call-ID', 'CALL-Id', 'call-id', 'Call-id', 'call-ID'] @property def sipHeaderFieldClassUnderTest(self): return CallIDSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_call_id, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_call_id) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_call_id) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_call_id) class TestCallInfoSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Call-Info', 'CALL-Info', 'call-info', 'Call-info', 'call-Info'] @property def sipHeaderFieldClassUnderTest(self): return CallInfoSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_call_info, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_call_info) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_call_info) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_call_info) def testIANAStandardParameters(self): # TODO pass class TestContactSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Contact', 'CONTACT', 'contact'] @property def canonicalFieldValues(self): return ['"3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>;expires=1000', '<sip:3122221000@200.23.3.241:5061;user=phone>', '"3122221000"<sip:200.23.3.241:5061;user=phone>', '"3122221000"<sip:3122221000@200.23.3.241;user=phone>', '"3122221000"<sip:3122221000@200.23.3.241:5061>', '"3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>', '<sip:3122221000@200.23.3.241:5061;user=phone>', 'sip:3122221000@200.23.3.241:5061', '"3122221000"<sip:3122221000@200.23.3.241:5061>', '"3122221000"<sip:200.23.3.241>', '"3122221000"<sip:200.23.3.241', 'sip:3122221000@200.23.3.241', 'sip:200.23.3.241', 'sip:200.23.3.241:5061'] @property def sipHeaderFieldClassUnderTest(self): return ContactSIPHeaderField def test_parseSetValuesAndReParse(self): header_field_string = 'Contact: "3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>;expires=1000' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {'expires': '1000'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') header_field.display_name = 'foo' self.assertEqual(header_field.raw_string, 'Contact: "foo"<sip:3122221000@200.23.3.241:5061;user=phone>;expires=1000') self.assertTrue(header_field.is_valid) self.assertEqual(header_field.display_name, 'foo') self.assertEqual(header_field.parameter_names_and_value_strings, {'expires': '1000'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') header_field.sip_uri = SIPURI.new_parsed_from('sip:0.0.0.0') self.assertEqual(header_field.raw_string, 'Contact: "foo"<sip:0.0.0.0>;expires=1000') self.assertTrue(header_field.is_valid) self.assertEqual(header_field.display_name, 'foo') self.assertEqual(header_field.parameter_names_and_value_strings, {'expires': '1000'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:0.0.0.0') self.assertEqual(header_field.sip_uri.host, '0.0.0.0') self.assertEqual(header_field.sip_uri.port, None) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.user, None) def test_parseValid001(self): header_field_string = 'Contact: "3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid002(self): header_field_string = 'Contact: <sip:3122221000@200.23.3.241:5061;user=phone>' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.display_name, '') self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid003(self): header_field_string = 'Contact: "3122221000"<sip:200.23.3.241:5061;user=phone>' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, None) def test_parseValid004(self): header_field_string = 'Contact: "3122221000"<sip:3122221000@200.23.3.241;user=phone>' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, None) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid005(self): header_field_string = 'Contact: "3122221000"<sip:3122221000@200.23.3.241:5061>' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid006(self): header_field_string = 'Contact: "3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid007(self): header_field_string = 'Contact: <sip:3122221000@200.23.3.241:5061;user=phone>' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.display_name, '') self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid008(self): header_field_string = 'Contact: sip:3122221000@200.23.3.241:5061' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.display_name, None) self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_contact, line) def test_rendering(self): header_field_string = 'Contact: "3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>' header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(display_name='3122221000', sip_uri=SIPURI.new_parsed_from('sip:3122221000@200.23.3.241:5061;user=phone')) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.display_name, '3122221000') self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def testIANAStandardParameters(self): # TODO pass class TestContentDispositionSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Content-Disposition', 'CONTENT-Disposition', 'content-disposition', 'Content-disposition', 'content-Disposition'] @property def sipHeaderFieldClassUnderTest(self): return ContentDispositionSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_content_disposition, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_content_disposition) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_content_disposition) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_content_disposition) def testIANAStandardParameters(self): # TODO pass class TestContentTypeSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Content-Type', 'CONTENT-Type', 'content-type', 'Content-type', 'content-Type'] @property def sipHeaderFieldClassUnderTest(self): return ContentTypeSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_content_type, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_content_type) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_content_type) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_content_type) class TestDateSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Date', 'DATE', 'date'] @property def sipHeaderFieldClassUnderTest(self): return DateSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_date, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_date) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_date) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_date) class TestExpiresSipHeaderField(AbstractIntegerSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Expires', 'EXPIRES', 'expires'] @property def sipHeaderFieldClassUnderTest(self): return ExpiresSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_expires, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_expires) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_expires) header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_expires) class TestFromSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['From', 'FROM', 'from'] @property def canonicalFieldValues(self): return ['"3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', '<sip:3122221000@200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', '"3122221000"<sip:200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', '"3122221000"<sip:3122221000@200.23.3.241;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', '"3122221000"<sip:3122221000@200.23.3.241:5061>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', '"3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>', '<sip:3122221000@200.23.3.241:5061;user=phone>', 'sip:3122221000@200.23.3.241:5061;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', 'sip:3122221000@200.23.3.241:5061', '"3122221000"<sip:3122221000@200.23.3.241:5061>', '"3122221000"<sip:200.23.3.241>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', '"3122221000"<sip:200.23.3.241>', '"3122221000"<sip:200.23.3.241;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', 'sip:3122221000@200.23.3.241', 'sip:200.23.3.241', 'sip:200.23.3.241:5061'] @property def sipHeaderFieldClassUnderTest(self): return FromSIPHeaderField def test_parseSetValuesAndReParse(self): header_field_string = 'From: "3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') header_field.display_name = 'foo' self.assertEqual(header_field.raw_string, 'From: "foo"<sip:3122221000@200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertEqual(header_field.display_name, 'foo') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') header_field.tag = 'TESTTAG' self.assertEqual(header_field.raw_string, 'From: "foo"<sip:3122221000@200.23.3.241:5061;user=phone>;tag=TESTTAG') self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, 'TESTTAG') self.assertEqual(header_field.display_name, 'foo') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': 'TESTTAG'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') header_field.sip_uri = SIPURI.new_parsed_from('sip:0.0.0.0') self.assertEqual(header_field.raw_string, 'From: "foo"<sip:0.0.0.0>;tag=TESTTAG') self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, 'TESTTAG') self.assertEqual(header_field.display_name, 'foo') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': 'TESTTAG'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:0.0.0.0') self.assertEqual(header_field.sip_uri.host, '0.0.0.0') self.assertEqual(header_field.sip_uri.port, None) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.user, None) def test_parseValid001(self): header_field_string = 'From: "3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid002(self): header_field_string = 'From: <sip:3122221000@200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertEqual(header_field.display_name, '') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid003(self): header_field_string = 'From: "3122221000"<sip:200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, None) def test_parseValid004(self): header_field_string = 'From: "3122221000"<sip:3122221000@200.23.3.241;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, None) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid005(self): header_field_string = 'From: "3122221000"<sip:3122221000@200.23.3.241:5061>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid006(self): header_field_string = 'From: "3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, None) self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid007(self): header_field_string = 'From: <sip:3122221000@200.23.3.241:5061;user=phone>' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, None) self.assertEqual(header_field.display_name, '') self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid008(self): header_field_string = 'From: sip:3122221000@200.23.3.241:5061' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, None) self.assertEqual(header_field.display_name, None) self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_from, line) def test_rendering(self): header_field_string = 'From: "3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875' header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(display_name='3122221000', tag='29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', sip_uri=SIPURI.new_parsed_from('sip:3122221000@200.23.3.241:5061;user=phone')) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertEqual(header_field.display_name, '3122221000') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_tagGeneration(self): header_field_string = 'From: sip:3122221000@200.23.3.241:5061' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.tag, None) self.assertEqual(header_field.parameter_names_and_value_strings, {}) header_field.generate_tag() self.assertIsInstance(header_field.tag, basestring) self.assertTrue('tag' in header_field.parameter_names_and_value_strings) def testIANAStandardParameters(self): # TODO pass class TestMaxForwardsSipHeaderField(AbstractIntegerSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Max-Forwards', 'MAX-Forwards', 'max-forwards', 'Max-forwards', 'max-Forwards'] @property def sipHeaderFieldClassUnderTest(self): return MaxForwardsSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_max_forwards, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_max_forwards) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_max_forwards) header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_max_forwards) class TestRecordRouteSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Record-Route', 'RECORD-Route', 'record-route', 'Record-route', 'record-Route'] @property def canonicalFieldValues(self): return ['<sip:3122221000@200.23.3.241:5061;lr>', '<sip:3122221000@200.23.3.241:5061>' ] @property def canonicalFieldValues(self): return ['<sip:3122221000@200.23.3.241:5061;lr>', '<sip:3122221000@200.23.3.241:5061>' ] @property def sipHeaderFieldClassUnderTest(self): return RecordRouteSIPHeaderField def test_parseSetValuesAndReParse(self): header_field_string = 'Record-Route: <sip:3122221000@200.23.3.241:5061;transport=TLS>' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;transport=TLS') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.parameter_names_and_value_strings, {}) header_field.sip_uri = SIPURI.new_parsed_from('sip:0.0.0.0') self.assertEqual(header_field.raw_string, 'Record-Route: <sip:0.0.0.0>') self.assertTrue(header_field.is_valid) self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:0.0.0.0') self.assertEqual(header_field.sip_uri.host, '0.0.0.0') self.assertEqual(header_field.sip_uri.port, None) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.parameter_names_and_value_strings, {}) def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_record_route) def test_rendering(self): header_field_string = 'Record-Route: <sip:3122221000@200.23.3.241:5061;transport=TLS>' header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(sip_uri=SIPURI.new_parsed_from('sip:3122221000@200.23.3.241:5061;transport=TLS')) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;transport=TLS') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.user, '3122221000') class TestRequireSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Require', 'REQUIRE', 'require'] @property def sipHeaderFieldClassUnderTest(self): return RequireSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_require, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_require) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_require) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_require) class TestRetryAfterSipHeaderField(AbstractIntegerSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Retry-After', 'RETRY-After', 'retry-after', 'Retry-after', 'retry-After'] @property def sipHeaderFieldClassUnderTest(self): return RetryAfterSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_retry_after, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_retry_after) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_retry_after) header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_retry_after) def testIANAStandardParameters(self): # TODO pass class TestRouteSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldValues(self): return ['<sip:3122221000@200.23.3.241:5061;lr>', '<sip:3122221000@200.23.3.241:5061>' ] @property def canonicalFieldNames(self): return['Route', 'ROUTE', 'route'] @property def sipHeaderFieldClassUnderTest(self): return RouteSIPHeaderField def test_parseSetValuesAndReParse(self): header_field_string = 'Route: <sip:3122221000@200.23.3.241:5061;transport=TLS>' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;transport=TLS') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.parameter_names_and_value_strings, {}) header_field.sip_uri = SIPURI.new_parsed_from('sip:0.0.0.0') self.assertEqual(header_field.raw_string, 'Route: <sip:0.0.0.0>') self.assertTrue(header_field.is_valid) self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:0.0.0.0') self.assertEqual(header_field.sip_uri.host, '0.0.0.0') self.assertEqual(header_field.sip_uri.port, None) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.parameter_names_and_value_strings, {}) def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_route) def test_rendering(self): header_field_string = 'Route: <sip:3122221000@200.23.3.241:5061;transport=TLS>' header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(sip_uri=SIPURI.new_parsed_from('sip:3122221000@200.23.3.241:5061;transport=TLS')) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;transport=TLS') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.user, '3122221000') class TestServerSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Server', 'SERVER', 'server'] @property def sipHeaderFieldClassUnderTest(self): return ServerSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_server, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_server) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_server) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_server) class TestSessionExpiresSipHeaderField(AbstractIntegerSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Session-Expires', 'SESSION-Expires', 'session-expires', 'Session-expires', 'session-Expires'] @property def sipHeaderFieldClassUnderTest(self): return SessionExpiresSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_session_expires, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_session_expires) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_session_expires) header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_session_expires) class TestSupportedSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Supported', 'SUPPORTED', 'supported'] @property def sipHeaderFieldClassUnderTest(self): return SupportedSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_supported, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_supported) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_supported) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_supported) class TestTimestampSipHeaderField(AbstractIntegerSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Timestamp', 'TIMESTAMP', 'timestamp'] @property def sipHeaderFieldClassUnderTest(self): return TimestampSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_timestamp, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_timestamp) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_timestamp) header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_timestamp) class TestToSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['To', 'TO', 'to'] @property def canonicalFieldValues(self): return ['"3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', '<sip:3122221000@200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', '"3122221000"<sip:200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', '"3122221000"<sip:3122221000@200.23.3.241;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', '"3122221000"<sip:3122221000@200.23.3.241:5061>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', '"3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>', '<sip:3122221000@200.23.3.241:5061;user=phone>', 'sip:3122221000@200.23.3.241:5061;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', 'sip:3122221000@200.23.3.241:5061', '"3122221000"<sip:3122221000@200.23.3.241:5061>', '"3122221000"<sip:200.23.3.241>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', '"3122221000"<sip:200.23.3.241>', '"3122221000"<sip:200.23.3.241;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', 'sip:3122221000@200.23.3.241', 'sip:200.23.3.241', 'sip:200.23.3.241:5061'] @property def sipHeaderFieldClassUnderTest(self): return ToSIPHeaderField def test_parseSetValuesAndReParse(self): header_field_string = 'To: "3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') header_field.display_name = 'foo' self.assertEqual(header_field.raw_string, 'To: "foo"<sip:3122221000@200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertEqual(header_field.display_name, 'foo') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') header_field.tag = 'TESTTAG' self.assertEqual(header_field.raw_string, 'To: "foo"<sip:3122221000@200.23.3.241:5061;user=phone>;tag=TESTTAG') self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, 'TESTTAG') self.assertEqual(header_field.display_name, 'foo') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': 'TESTTAG'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') header_field.sip_uri = SIPURI.new_parsed_from('sip:0.0.0.0') self.assertEqual(header_field.raw_string, 'To: "foo"<sip:0.0.0.0>;tag=TESTTAG') self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, 'TESTTAG') self.assertEqual(header_field.display_name, 'foo') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': 'TESTTAG'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:0.0.0.0') self.assertEqual(header_field.sip_uri.host, '0.0.0.0') self.assertEqual(header_field.sip_uri.port, None) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.user, None) def test_parseValid001(self): header_field_string = 'To: "3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid002(self): header_field_string = 'To: <sip:3122221000@200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertEqual(header_field.display_name, '') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid003(self): header_field_string = 'To: "3122221000"<sip:200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, None) def test_parseValid004(self): header_field_string = 'To: "3122221000"<sip:3122221000@200.23.3.241;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, None) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid005(self): header_field_string = 'To: "3122221000"<sip:3122221000@200.23.3.241:5061>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid006(self): header_field_string = 'To: "3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, None) self.assertEqual(header_field.display_name, '"3122221000"') self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid007(self): header_field_string = 'To: <sip:3122221000@200.23.3.241:5061;user=phone>' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, None) self.assertEqual(header_field.display_name, '') self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parseValid008(self): header_field_string = 'To: sip:3122221000@200.23.3.241:5061' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, None) self.assertEqual(header_field.display_name, None) self.assertEqual(header_field.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_to, line) def test_rendering(self): header_field_string = 'To: "3122221000"<sip:3122221000@200.23.3.241:5061;user=phone>;tag=29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875' header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(display_name='3122221000', tag='29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875', sip_uri=SIPURI.new_parsed_from('sip:3122221000@200.23.3.241:5061;user=phone')) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.tag, '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875') self.assertEqual(header_field.display_name, '3122221000') self.assertEqual(header_field.parameter_names_and_value_strings, {'tag': '29de2c8-f0a1ec8-13c5-50029-98875-169ed655-98875'}) self.assertEqual(header_field.sip_uri.raw_string, 'sip:3122221000@200.23.3.241:5061;user=phone') self.assertEqual(header_field.sip_uri.host, '200.23.3.241') self.assertEqual(header_field.sip_uri.port, 5061) self.assertEqual(header_field.sip_uri.scheme, 'sip') self.assertEqual(header_field.sip_uri.parameter_names_and_value_strings, {'user': 'phone'}) self.assertEqual(header_field.sip_uri.user, '3122221000') def test_tagGeneration(self): header_field_string = 'To: sip:3122221000@200.23.3.241:5061' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.tag, None) self.assertEqual(header_field.parameter_names_and_value_strings, {}) header_field.generate_tag() self.assertIsInstance(header_field.tag, basestring) self.assertTrue('tag' in header_field.parameter_names_and_value_strings) def testIANAStandardParameters(self): # TODO pass class TestUserAgentSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['User-Agent', 'USER-Agent', 'user-agent', 'User-agent', 'user-Agent'] @property def sipHeaderFieldClassUnderTest(self): return UserAgentSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_user_agent, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_user_agent) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_user_agent) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_user_agent) class TestWWWAuthenticateSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['WWW-Authenticate', 'Www-Authenticate', 'www-authenticate', 'Www-authenticate', 'www-Authenticate'] @property def sipHeaderFieldClassUnderTest(self): return WWWAuthenticateSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_www_authenticate, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_www_authenticate) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_www_authenticate) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_www_authenticate) def testIANAStandardParameters(self): # TODO pass class TestWarningSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Warning', 'WARNING', 'warning'] @property def sipHeaderFieldClassUnderTest(self): return WarningSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_warning, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_warning) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_warning) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_warning) class TestSubjectSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Subject', 'SUBJECT', 'subject'] @property def sipHeaderFieldClassUnderTest(self): return SubjectSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_subject, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_subject) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_subject) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_subject) class TestReferredBySIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Referred-By', 'REFERRED-BY', 'referred-by'] @property def sipHeaderFieldClassUnderTest(self): return ReferredBySIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_referred_by, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_referred_by) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_referred_by) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_referred_by) class TestReferToSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Refer-To', 'REFER-TO', 'refer-to'] @property def sipHeaderFieldClassUnderTest(self): return ReferToSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_refer_to, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_refer_to) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_refer_to) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_refer_to) class TestAllowEventsSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Allow-Events', 'ALLOW-EVENTS', 'allow-events'] @property def sipHeaderFieldClassUnderTest(self): return AllowEventsSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_allow_events, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_allow_events) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_allow_events) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_allow_events) class TestEventSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Event', 'EVENT', 'event'] @property def sipHeaderFieldClassUnderTest(self): return EventSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_event, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_event) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_event) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_event) def testIANAStandardParameters(self): # TODO pass class TestContentEncodingSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Content-Encoding', 'CONTENT-ENCODING', 'content-encoding'] @property def sipHeaderFieldClassUnderTest(self): return ContentEncodingSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_content_encoding, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_content_encoding) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_content_encoding) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_content_encoding) class TestRAckSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['RAck', 'RACK', 'rack'] @property def sipHeaderFieldClassUnderTest(self): return RAckSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_rack, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_rack) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_rack) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_rack) class TestPChargeSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['P-Charge', 'P-CHARGE', 'p-charge'] @property def sipHeaderFieldClassUnderTest(self): return PChargeSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_p_charge, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_p_charge) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_p_charge) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_p_charge) class TestReplyToSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Reply-To', 'REPLY-TO', 'reply-to'] @property def sipHeaderFieldClassUnderTest(self): return ReplyToSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_reply_to, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_reply_to) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_reply_to) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_reply_to) class TestUnsupportedSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Unsupported', 'UNSUPPORTED', 'unsupported'] @property def sipHeaderFieldClassUnderTest(self): return UnsupportedSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_unsupported, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_unsupported) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_unsupported) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_unsupported) class TestPAssertedIdentitySIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['P-Asserted-Identity', 'P-ASSERTED-IDENTITY', 'p-asserted-identity'] @property def sipHeaderFieldClassUnderTest(self): return PAssertedIdentitySIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_p_asserted_identity, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_p_asserted_identity) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_p_asserted_identity) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_p_asserted_identity) class TestPPreferredIdentitySIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['P-Preferred-Identity', 'P-PREFERRED-IDENTITY', 'p-preferred-identity'] @property def sipHeaderFieldClassUnderTest(self): return PPreferredIdentitySIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_p_preferred_identity, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_p_preferred_identity) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_p_preferred_identity) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_p_preferred_identity) class TestRemotePartyIDSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Remote-Party-ID', 'REMOTE-PARTY-ID', 'remote-party-id'] @property def sipHeaderFieldClassUnderTest(self): return RemotePartyIDSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_remote_party_id, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_remote_party_id) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_remote_party_id) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_remote_party_id) class TestAlertInfoSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Alert-Info', 'ALERT-INFO', 'alert-info'] @property def sipHeaderFieldClassUnderTest(self): return AlertInfoSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_alert_info, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_alert_info) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_alert_info) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_alert_info) def testIANAStandardParameters(self): # TODO pass class TestHistoryInfoSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['History-Info', 'HISTORY-INFO', 'history-info'] @property def sipHeaderFieldClassUnderTest(self): return HistoryInfoSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_history_info, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_history_info) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_history_info) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_history_info) def testIANAStandardParameters(self): # TODO pass class TestPCalledPartyIdSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['P-Called-Party-Id', 'P-CALLED-PARTY-ID', 'p-called-party-id'] @property def sipHeaderFieldClassUnderTest(self): return PCalledPartyIdSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_p_called_party_id, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_p_called_party_id) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_p_called_party_id) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_p_called_party_id) class TestPRTPStatSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['P-RTP-Stat', 'P-RTP-STAT', 'p-rtp-stat'] @property def sipHeaderFieldClassUnderTest(self): return PRTPStatSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_p_rtp_stat, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_p_rtp_stat) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_p_rtp_stat) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_p_rtp_stat) class TestPrivacySIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Privacy', 'PRIVACY', 'privacy'] @property def sipHeaderFieldClassUnderTest(self): return PrivacySIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_privacy, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_privacy) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_privacy) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_privacy) class TestProxyAuthenticateSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Proxy-Authenticate', 'PROXY-AUTHENTICATE', 'proxy-authenticate'] @property def sipHeaderFieldClassUnderTest(self): return ProxyAuthenticateSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_proxy_authenticate, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_proxy_authenticate) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_proxy_authenticate) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_proxy_authenticate) def testIANAStandardParameters(self): # TODO pass class TestProxyAuthorizationSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Proxy-Authorization', 'PROXY-AUTHORIZATION', 'proxy-authorization'] @property def sipHeaderFieldClassUnderTest(self): return ProxyAuthorizationSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_proxy_authorization, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_proxy_authorization) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_proxy_authorization) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_proxy_authorization) def testIANAStandardParameters(self): # TODO pass class TestProxyRequireSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Proxy-Require', 'PROXY-REQUIRE', 'proxy-require'] @property def sipHeaderFieldClassUnderTest(self): return ProxyRequireSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_proxy_require, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_proxy_require) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_proxy_require) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_proxy_require) class TestReasonSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Reason', 'REASON', 'reason'] @property def sipHeaderFieldClassUnderTest(self): return ReasonSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_reason, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_reason) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_reason) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_reason) def testIANAStandardParameters(self): # TODO pass class TestRecordSessionExpiresSIPHeaderField(AbstractIntegerSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Record-Session-Expires', 'RECORD-SESSION-EXPIRES', 'record-session-expires'] @property def sipHeaderFieldClassUnderTest(self): return RecordSessionExpiresSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_record_session_expires, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_record_session_expires) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_record_session_expires) header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_record_session_expires) class TestReplacesSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Replaces', 'REPLACES', 'replaces'] @property def sipHeaderFieldClassUnderTest(self): return ReplacesSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_replaces, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_replaces) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_replaces) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_replaces) class TestSubscriptionStateSIPHeaderField(AbstractSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Subscription-State', 'SUBSCRIPTION-STATE', 'subscription-state'] @property def sipHeaderFieldClassUnderTest(self): return SubscriptionStateSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_subscription_state, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_subscription_state) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_subscription_state) header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(field_value_string=field_value_string) self.assertTrue(header_field.is_subscription_state) class TestMinExpiresSIPHeaderField(AbstractIntegerSIPHeaderFieldTestCase): @property def canonicalFieldNames(self): return['Min-Expires', 'MIN-EXPIRES', 'min-expires'] @property def sipHeaderFieldClassUnderTest(self): return MinExpiresSIPHeaderField def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_min_expires, line) def test_rendering(self): self.basic_test_rendering() for field_name in self.canonicalFieldNames: # TODO: we will extend this once we render compact headers. for field_value_string in self.canonicalFieldValues: header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_name=field_name, field_value_string=field_value_string) self.assertTrue(header_field.is_min_expires) header_field = self.sipHeaderFieldClassUnderTest.new_for_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_min_expires) header_field = self.sipHeaderFieldClassUnderTest.new_for_field_name_and_value_string(field_value_string=field_value_string) self.assertTrue(header_field.is_min_expires) class TestViaSipHeaderField(AbstractSIPHeaderFieldTestCase): @property def sipHeaderFieldClassUnderTest(self): return ViaSIPHeaderField @property def canonicalFieldNames(self): return['Via', 'VIA', 'via'] @property def canonicalFieldValues(self): return ['SIP/2.0/TLS 200.25.3.150;branch=z9hG4bK0ee8d3e272e31ca195299efc500', 'SIP/2.0/TLS 200.25.3.250:5061;branch=z9hG4bKfdkajhdiruyalkghjladksjf', 'SIP/2.0/TLS 200.25.3.255;branch=z9hG4bKduyroiuryaludhgviukfhlasf' ] def test_parseSetValuesAndReParse(self): header_field_string = 'Via: SIP/2.0/TLS 200.25.3.150;branch=z9hG4bK0ee8d3e272e31ca195299efc500' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.branch, 'z9hG4bK0ee8d3e272e31ca195299efc500') self.assertEqual(header_field.parameter_names_and_value_strings, {'branch': 'z9hG4bK0ee8d3e272e31ca195299efc500'}) self.assertEqual(header_field.transport, 'TLS') self.assertEqual(header_field.host, '200.25.3.150') self.assertEqual(header_field.port, None) header_field.host = '192.168.0.5' self.assertEqual(header_field.raw_string, 'Via: SIP/2.0/TLS 192.168.0.5;branch=z9hG4bK0ee8d3e272e31ca195299efc500') self.assertTrue(header_field.is_valid) self.assertEqual(header_field.branch, 'z9hG4bK0ee8d3e272e31ca195299efc500') self.assertEqual(header_field.parameter_names_and_value_strings, {'branch': 'z9hG4bK0ee8d3e272e31ca195299efc500'}) self.assertEqual(header_field.transport, 'TLS') self.assertEqual(header_field.host, '192.168.0.5') self.assertEqual(header_field.port, None) header_field.port = 5061 self.assertEqual(header_field.raw_string, 'Via: SIP/2.0/TLS 192.168.0.5:5061;branch=z9hG4bK0ee8d3e272e31ca195299efc500') self.assertTrue(header_field.is_valid) self.assertEqual(header_field.branch, 'z9hG4bK0ee8d3e272e31ca195299efc500') self.assertEqual(header_field.parameter_names_and_value_strings, {'branch': 'z9hG4bK0ee8d3e272e31ca195299efc500'}) self.assertEqual(header_field.transport, 'TLS') self.assertEqual(header_field.host, '192.168.0.5') self.assertEqual(header_field.port, 5061) header_field.transport = 'UDP' self.assertEqual(header_field.raw_string, 'Via: SIP/2.0/UDP 192.168.0.5:5061;branch=z9hG4bK0ee8d3e272e31ca195299efc500') self.assertTrue(header_field.is_valid) self.assertEqual(header_field.branch, 'z9hG4bK0ee8d3e272e31ca195299efc500') self.assertEqual(header_field.parameter_names_and_value_strings, {'branch': 'z9hG4bK0ee8d3e272e31ca195299efc500'}) self.assertEqual(header_field.transport, 'UDP') self.assertEqual(header_field.host, '192.168.0.5') self.assertEqual(header_field.port, 5061) header_field.branch = 'z9hG4bKblarg' self.assertEqual(header_field.raw_string, 'Via: SIP/2.0/UDP 192.168.0.5:5061;branch=z9hG4bKblarg') self.assertTrue(header_field.is_valid) self.assertEqual(header_field.branch, 'z9hG4bKblarg') self.assertEqual(header_field.parameter_names_and_value_strings, {'branch': 'z9hG4bKblarg'}) self.assertEqual(header_field.transport, 'UDP') self.assertEqual(header_field.host, '192.168.0.5') self.assertEqual(header_field.port, 5061) def test_parseValid001(self): header_field_string = 'Via: SIP/2.0/TLS 200.25.3.150;branch=z9hG4bK0ee8d3e272e31ca195299efc500' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.branch, 'z9hG4bK0ee8d3e272e31ca195299efc500') self.assertEqual(header_field.parameter_names_and_value_strings, {'branch': 'z9hG4bK0ee8d3e272e31ca195299efc500'}) self.assertEqual(header_field.transport, 'TLS') self.assertEqual(header_field.host, '200.25.3.150') self.assertEqual(header_field.port, None) def test_parseValid002(self): header_field_string = 'Via: SIP/2.0/TLS 200.25.3.150;branch=z9hG4bK0ee8d3e272e31ca195299efc500' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.branch, 'z9hG4bK0ee8d3e272e31ca195299efc500') self.assertEqual(header_field.parameter_names_and_value_strings, {'branch': 'z9hG4bK0ee8d3e272e31ca195299efc500'}) self.assertEqual(header_field.transport, 'TLS') self.assertEqual(header_field.host, '200.25.3.150') self.assertEqual(header_field.port, None) def test_parseValid003(self): header_field_string = 'Via: SIP/2.0/TLS 192.168.0.5:5061;branch=z9hG4bK0ee8d3e272e31ca195299efc500' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.branch, 'z9hG4bK0ee8d3e272e31ca195299efc500') self.assertEqual(header_field.parameter_names_and_value_strings, {'branch': 'z9hG4bK0ee8d3e272e31ca195299efc500'}) self.assertEqual(header_field.transport, 'TLS') self.assertEqual(header_field.host, '192.168.0.5') self.assertEqual(header_field.port, 5061) def test_parseValid004(self): header_field_string = 'Via: SIP/2.0/UDP 192.168.0.5:5061;branch=z9hG4bK0ee8d3e272e31ca195299efc500' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.branch, 'z9hG4bK0ee8d3e272e31ca195299efc500') self.assertEqual(header_field.parameter_names_and_value_strings, {'branch': 'z9hG4bK0ee8d3e272e31ca195299efc500'}) self.assertEqual(header_field.transport, 'UDP') self.assertEqual(header_field.host, '192.168.0.5') self.assertEqual(header_field.port, 5061) def test_parseValid005(self): header_field_string = 'Via: SIP/2.0/UDP 192.168.0.5:5061;branch=z9hG4bKblarg' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.branch, 'z9hG4bKblarg') self.assertEqual(header_field.parameter_names_and_value_strings, {'branch': 'z9hG4bKblarg'}) self.assertEqual(header_field.transport, 'UDP') self.assertEqual(header_field.host, '192.168.0.5') self.assertEqual(header_field.port, 5061) def test_parsing(self): self.basic_test_parsing() for line in self.canonicalStrings: header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(line) self.assertTrue(header_field.is_via, line) def test_rendering(self): header_field_string = 'Via: SIP/2.0/UDP 192.168.0.5:5061;branch=z9hG4bK0ee8d3e272e31ca195299efc500' header_field = self.sipHeaderFieldClassUnderTest.new_for_attributes(host='192.168.0.5', port=5061, transport='UDP', branch='z9hG4bK0ee8d3e272e31ca195299efc500') self.assertEqual(header_field.raw_string, header_field_string) self.assertTrue(header_field.is_valid) self.assertEqual(header_field.branch, 'z9hG4bK0ee8d3e272e31ca195299efc500') self.assertEqual(header_field.parameter_names_and_value_strings, {'branch': 'z9hG4bK0ee8d3e272e31ca195299efc500'}) self.assertEqual(header_field.transport, 'UDP') self.assertEqual(header_field.host, '192.168.0.5') self.assertEqual(header_field.port, 5061) self.assertIsInstance(header_field.branch, basestring) def test_branchGeneration(self): header_field_string = 'Via: SIP/2.0/UDP 192.168.0.5:5061' header_field = self.sipHeaderFieldClassUnderTest.new_parsed_from(header_field_string) self.assertTrue(header_field.is_via) self.assertEqual(header_field.branch, None) self.assertEqual(header_field.parameter_names_and_value_strings, {}) header_field.generate_branch() self.assertIsInstance(header_field.branch, basestring) self.assertTrue('branch' in header_field.parameter_names_and_value_strings) def testIANAStandardParameters(self): # TODO pass
54.395102
236
0.734557
15,383
133,268
6.071768
0.019437
0.133787
0.108145
0.133894
0.922914
0.904713
0.857541
0.832038
0.821235
0.819404
0
0.068551
0.176854
133,268
2,449
237
54.417313
0.782888
0.022398
0
0.826385
0
0.030407
0.119019
0.081489
0
0
0
0.000408
0.372241
1
0.140265
false
0.01079
0.029426
0.057872
0.228053
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
adc8e28d1ad6071e597e940fa0bc8e2982548967
154
py
Python
dataview/exceptions.py
joshloyal/DataView
28fa57ff421115638244d59dccfaf5b3403be765
[ "MIT" ]
null
null
null
dataview/exceptions.py
joshloyal/DataView
28fa57ff421115638244d59dccfaf5b3403be765
[ "MIT" ]
null
null
null
dataview/exceptions.py
joshloyal/DataView
28fa57ff421115638244d59dccfaf5b3403be765
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import unicode_literals from __future__ import division class DatasetNotFound(IOError): pass
19.25
39
0.844156
18
154
6.444444
0.611111
0.258621
0.413793
0
0
0
0
0
0
0
0
0
0.136364
154
7
40
22
0.87218
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.2
0.6
0
0.8
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
8
ade37622c341de38de42e300a57f586968f882de
128
py
Python
python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_1/_pkg1_1_1/_pkg1_1_1_1/_pkg1_1_1_1_0/_mod1_1_1_1_0_4.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_1/_pkg1_1_1/_pkg1_1_1_1/_pkg1_1_1_1_0/_mod1_1_1_1_0_4.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_1/_pkg1_1_1/_pkg1_1_1_1/_pkg1_1_1_1_0/_mod1_1_1_1_0_4.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
name1_1_1_1_0_4_0 = None name1_1_1_1_0_4_1 = None name1_1_1_1_0_4_2 = None name1_1_1_1_0_4_3 = None name1_1_1_1_0_4_4 = None
14.222222
24
0.820313
40
128
1.875
0.175
0.266667
0.466667
0.533333
0.88
0.88
0.746667
0
0
0
0
0.318182
0.140625
128
9
25
14.222222
0.363636
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
null
1
1
1
1
1
1
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
bc1b08910f3cf4742334a053c6103c9ef45822e9
12,721
py
Python
ksteta3pi/Consideredbkg/MC_12_11104020_MagUp.py
Williams224/davinci-scripts
730642d2ff13543eca4073a4ce0932631195de56
[ "MIT" ]
null
null
null
ksteta3pi/Consideredbkg/MC_12_11104020_MagUp.py
Williams224/davinci-scripts
730642d2ff13543eca4073a4ce0932631195de56
[ "MIT" ]
null
null
null
ksteta3pi/Consideredbkg/MC_12_11104020_MagUp.py
Williams224/davinci-scripts
730642d2ff13543eca4073a4ce0932631195de56
[ "MIT" ]
null
null
null
#-- GAUDI jobOptions generated on Fri Jul 17 16:33:14 2015 #-- Contains event types : #-- 11104020 - 117 files - 2006991 events - 431.37 GBytes #-- Extra information about the data processing phases: #-- Processing Pass Step-124834 #-- StepId : 124834 #-- StepName : Reco14a for MC #-- ApplicationName : Brunel #-- ApplicationVersion : v43r2p7 #-- OptionFiles : $APPCONFIGOPTS/Brunel/DataType-2012.py;$APPCONFIGOPTS/Brunel/MC-WithTruth.py;$APPCONFIGOPTS/Persistency/Compression-ZLIB-1.py #-- DDDB : fromPreviousStep #-- CONDDB : fromPreviousStep #-- ExtraPackages : AppConfig.v3r164 #-- Visible : Y #-- Processing Pass Step-124620 #-- StepId : 124620 #-- StepName : Digi13 with G4 dE/dx #-- ApplicationName : Boole #-- ApplicationVersion : v26r3 #-- OptionFiles : $APPCONFIGOPTS/Boole/Default.py;$APPCONFIGOPTS/Boole/DataType-2012.py;$APPCONFIGOPTS/Boole/Boole-SiG4EnergyDeposit.py;$APPCONFIGOPTS/Persistency/Compression-ZLIB-1.py #-- DDDB : fromPreviousStep #-- CONDDB : fromPreviousStep #-- ExtraPackages : AppConfig.v3r164 #-- Visible : Y #-- Processing Pass Step-124632 #-- StepId : 124632 #-- StepName : TCK-0x409f0045 Flagged for Sim08 2012 #-- ApplicationName : Moore #-- ApplicationVersion : v14r8p1 #-- OptionFiles : $APPCONFIGOPTS/Moore/MooreSimProductionWithL0Emulation.py;$APPCONFIGOPTS/Conditions/TCK-0x409f0045.py;$APPCONFIGOPTS/Moore/DataType-2012.py;$APPCONFIGOPTS/L0/L0TCK-0x0045.py #-- DDDB : fromPreviousStep #-- CONDDB : fromPreviousStep #-- ExtraPackages : AppConfig.v3r164 #-- Visible : Y #-- Processing Pass Step-125578 #-- StepId : 125578 #-- StepName : Sim08a - 2012 - MU - Pythia8 #-- ApplicationName : Gauss #-- ApplicationVersion : v45r3 #-- OptionFiles : $APPCONFIGOPTS/Gauss/Sim08-Beam4000GeV-mu100-2012-nu2.5.py;$DECFILESROOT/options/@{eventType}.py;$LBPYTHIA8ROOT/options/Pythia8.py;$APPCONFIGOPTS/Gauss/G4PL_FTFP_BERT_EmNoCuts.py;$APPCONFIGOPTS/Persistency/Compression-ZLIB-1.py #-- DDDB : Sim08-20130503-1 #-- CONDDB : Sim08-20130503-1-vc-mu100 #-- ExtraPackages : AppConfig.v3r171;DecFiles.v27r11 #-- Visible : Y #-- Processing Pass Step-124630 #-- StepId : 124630 #-- StepName : Stripping20-NoPrescalingFlagged for Sim08 #-- ApplicationName : DaVinci #-- ApplicationVersion : v32r2p1 #-- OptionFiles : $APPCONFIGOPTS/DaVinci/DV-Stripping20-Stripping-MC-NoPrescaling.py;$APPCONFIGOPTS/DaVinci/DataType-2012.py;$APPCONFIGOPTS/DaVinci/InputType-DST.py;$APPCONFIGOPTS/Persistency/Compression-ZLIB-1.py #-- DDDB : fromPreviousStep #-- CONDDB : fromPreviousStep #-- ExtraPackages : AppConfig.v3r164 #-- Visible : Y from Gaudi.Configuration import * from GaudiConf import IOHelper IOHelper('ROOT').inputFiles(['LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000001_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000002_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000003_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000004_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000005_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000006_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000007_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000008_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000009_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000010_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000011_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000012_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000013_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000014_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000015_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000016_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000017_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000018_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000019_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000020_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000021_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000022_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000023_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000024_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000025_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000026_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000027_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000028_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000029_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000030_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000031_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000032_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000033_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000034_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000035_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000036_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000037_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000038_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000039_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000040_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000041_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000042_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000043_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000044_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000045_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000046_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000047_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000048_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000049_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000050_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000051_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000052_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000053_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000054_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000055_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000056_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000057_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000058_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000059_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000060_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000061_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000062_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000063_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000064_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000065_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000066_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000067_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000068_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000069_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000070_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000071_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000072_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000073_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000074_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000075_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000076_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000077_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000078_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000079_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000080_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000081_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000082_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000083_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000084_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000085_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000086_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000087_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000088_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000089_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000090_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000091_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000092_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000093_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000094_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000095_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000096_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000097_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000098_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000099_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000100_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000101_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000102_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000103_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000104_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000105_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000106_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000107_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000108_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000109_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000110_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000111_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000112_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000113_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000114_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000115_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000116_1.allstreams.dst', 'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00030272/0000/00030272_00000117_1.allstreams.dst' ], clear=True)
65.911917
247
0.802374
1,807
12,721
5.517432
0.135584
0.305115
0.105617
0.152558
0.760281
0.757673
0.757673
0.757673
0.752859
0.748245
0
0.336334
0.039384
12,721
192
248
66.255208
0.479542
0.19967
0
0
1
0.975
0.936303
0.935908
0
0
0
0
0
1
0
true
0
0.016667
0
0.016667
0
0
0
0
null
1
0
0
0
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
1
1
1
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
13
70c92b6213fc50a2072915568d8e3a071e96931a
17,506
py
Python
discO/plugin/galpy/tests/test_wrapper.py
GalOrrery/discO
3b17b6ead65908c053b09a1a967e8a1819a06209
[ "BSD-3-Clause" ]
1
2020-11-17T14:40:51.000Z
2020-11-17T14:40:51.000Z
discO/plugin/galpy/tests/test_wrapper.py
nstarman/discO
3b17b6ead65908c053b09a1a967e8a1819a06209
[ "BSD-3-Clause" ]
45
2020-11-17T14:30:13.000Z
2021-02-26T18:47:37.000Z
discO/plugin/galpy/tests/test_wrapper.py
nstarman/discO
3b17b6ead65908c053b09a1a967e8a1819a06209
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Testing :mod:`~discO.plugin.galpy.wrapper`.""" __all__ = [ "Test_GalpyPotentialWrapperMeta", "Test_GalpyPotentialWrapper", ] ############################################################################## # IMPORTS # BUILT-IN from abc import abstractmethod # THIRD PARTY import astropy.coordinates as coord import astropy.units as u import galpy.potential as gpot import numpy as np import pytest # PROJECT-SPECIFIC from discO.core.tests.test_wrapper import ( Test_PotentialWrapper as PotentialWrapper_Test, ) from discO.core.tests.test_wrapper import ( Test_PotentialWrapperMeta as PotentialWrapperMeta_Test, ) from discO.plugin.galpy import wrapper from discO.utils import resolve_framelike, vectorfield ############################################################################## # TESTS ############################################################################## class Test_GalpyPotentialWrapperMeta( PotentialWrapperMeta_Test, obj=wrapper.GalpyPotentialMeta, ): @classmethod def setup_class(cls): """Setup fixtures for testing.""" super().setup_class() # now galpy stuff # override super cls.potential = gpot.KeplerPotential( amp=1 * u.solMass, ro=8 * u.kpc, vo=220 * u.km / u.s, ) cls.potential.turn_physical_on(ro=8 * u.kpc, vo=220 * u.km / u.s) # /def ################################################################# # Method Tests def test_total_mass(self): """Test method ``total_mass``.""" assert np.allclose( self.subclass.total_mass(self.potential), 1 * u.solMass, ) # /def def test_density(self): """Test method ``density``.""" # --------------- # when there isn't a frame with pytest.raises(TypeError, match="must have a frame."): self.subclass.density(self.potential, self.points) # --------------- # basic points, values = self.subclass.density( self.potential, self.points.data, ) # the points are unchanged assert points is self.points.data # check data types assert isinstance(points, coord.BaseRepresentation) # and on the values assert isinstance(values, u.Quantity) assert values.unit == u.solMass / u.pc ** 3 # --------------- # frame # test the different inputs for frame in ( coord.Galactocentric, coord.Galactocentric(), "galactocentric", ): points, values = self.subclass.density( self.potential, self.points, frame=frame, ) assert isinstance(points, coord.SkyCoord) assert isinstance(points.frame, resolve_framelike(frame).__class__) assert isinstance(values, u.Quantity) assert values.unit == u.solMass / u.pc ** 3 # TODO! test the specific values # --------------- # representation_type points, values = self.subclass.density( self.potential, self.points, frame=self.points.frame.replicate_without_data(), representation_type=coord.CartesianRepresentation, ) assert isinstance(points, coord.SkyCoord) assert isinstance(points.frame, self.frame) assert isinstance(points.data, coord.CartesianRepresentation) assert isinstance(values, u.Quantity) assert values.unit == u.solMass / u.pc ** 3 # TODO! test the specific values # /def def test_potential(self): """Test method ``potential``.""" # --------------- # when there isn't a frame with pytest.raises(TypeError, match="must have a frame."): self.subclass.potential(self.potential, self.points) # --------------- # basic points, values = self.subclass.potential( self.potential, self.points.data, ) # the points are unchanged assert points is self.points.data # check data types assert isinstance(points, coord.BaseRepresentation) # and on the values assert isinstance(values, u.Quantity) assert values.unit == u.km ** 2 / u.s ** 2 # TODO! test the specific values # --------------- # frame # test the different inputs for frame in ( coord.Galactocentric, coord.Galactocentric(), "galactocentric", ): points, values = self.subclass.potential( self.potential, self.points, frame=frame, ) assert isinstance(points, coord.SkyCoord) assert isinstance(points.frame, resolve_framelike(frame).__class__) assert isinstance(values, u.Quantity) assert values.unit == u.km ** 2 / u.s ** 2 # TODO! test the specific values # --------------- # representation_type points, values = self.subclass.potential( self.potential, self.points, frame=self.points.frame.replicate_without_data(), representation_type=coord.CartesianRepresentation, ) assert isinstance(points, coord.SkyCoord) assert isinstance(points.frame, self.frame) assert isinstance(points.data, coord.CartesianRepresentation) assert isinstance(values, u.Quantity) assert values.unit == u.km ** 2 / u.s ** 2 # TODO! test the specific values # /def def test_specific_force(self): """Test method ``specific_force``.""" # --------------- # when there isn't a frame with pytest.raises(TypeError, match="must have a frame."): self.subclass.specific_force(self.potential, self.points) # --------------- # basic vf = self.subclass.specific_force(self.potential, self.points.data) assert isinstance(vf, vectorfield.BaseVectorField) assert isinstance(vf.points, coord.CylindricalRepresentation) assert hasattr(vf, "vf_rho") assert hasattr(vf, "vf_phi") assert hasattr(vf, "vf_z") assert vf.frame is None # TODO! test the specific values # --------------- # frame # test the different inputs for frame in ( coord.Galactocentric, coord.Galactocentric(), "galactocentric", ): vf = self.subclass.specific_force( self.potential, self.points, frame=frame, ) assert isinstance(vf, vectorfield.BaseVectorField) assert isinstance(vf.points, coord.CylindricalRepresentation) assert hasattr(vf, "vf_rho") assert hasattr(vf, "vf_phi") assert hasattr(vf, "vf_z") assert isinstance(vf.frame, resolve_framelike(frame).__class__) # TODO! test the specific values # --------------- # representation_type vf = self.subclass.specific_force( self.potential, self.points, frame=self.points.frame.replicate_without_data(), representation_type=coord.CartesianRepresentation, ) assert isinstance(vf, vectorfield.BaseVectorField) assert isinstance(vf.points, coord.CartesianRepresentation) assert hasattr(vf, "vf_x") assert hasattr(vf, "vf_y") assert hasattr(vf, "vf_z") assert isinstance(vf.frame, self.frame) # TODO! test the specific values # /def def test_acceleration(self): """Test method ``acceleration``.""" assert self.subclass.acceleration == self.subclass.specific_force # /def def test_coefficients(self): """Test method ``coefficients``.""" # No coefficients pot = gpot.KeplerPotential() assert self.subclass.coefficients(pot) is None # SCF pot = gpot.SCFPotential() coeffs = self.subclass.coefficients(pot) assert coeffs["type"] == "SCF" assert np.all(np.equal(coeffs["Acos"], pot._Acos)) assert np.all(np.equal(coeffs["Asin"], pot._Asin)) # DiskSCFPotential pot = gpot.DiskSCFPotential() coeffs = self.subclass.coefficients(pot) assert coeffs["type"] == "diskSCF" assert np.all(np.equal(coeffs["Acos"], pot._scf._Acos)) assert np.all(np.equal(coeffs["Asin"], pot._scf._Asin)) # /def ################################################################# # Usage Tests # /class ##################################################################### class Test_GalpyPotentialWrapper( PotentialWrapper_Test, obj=wrapper.GalpyPotentialWrapper, ): @classmethod def setup_class(cls): """Setup fixtures for testing.""" cls.potential = gpot.KeplerPotential( amp=1 * u.solMass, ro=8 * u.kpc, vo=220 * u.km / u.s, ) cls.potential.turn_physical_on(ro=8 * u.kpc, vo=220 * u.km / u.s) # set up the rest super().setup_class() cls.inst = cls.obj( cls.potential, frame="galactocentric", representation_type="cylindrical", ) # /def ################################################################# # Method Tests def test_total_mass(self): """Test method ``total_mass``.""" assert np.allclose(self.inst.total_mass(), 1 * u.solMass) # /def def test_density(self): """Test method ``specific_force``.""" # --------------- # basic points, values = self.inst.density(self.points.data) # check data types assert isinstance(points, self.inst.frame.__class__) # and on the values assert isinstance(values, u.Quantity) assert values.unit == u.solMass / u.pc ** 3 # TODO! test the specific values # --------------- # with a frame points, values = self.inst.density(self.points) # check data types assert isinstance(points, coord.SkyCoord) assert isinstance(points.frame, self.inst.frame.__class__) # and on the values assert isinstance(values, u.Quantity) assert values.unit == u.solMass / u.pc ** 3 # TODO! test the specific values # --------------- # can't pass frame # test the different inputs with pytest.raises(TypeError, match="keyword argument 'frame'"): points, values = self.inst.potential( self.points, frame=coord.Galactocentric(), ) # --------------- # representation_type points, values = self.inst.density( self.points, representation_type=coord.CartesianRepresentation, ) assert points is not self.points assert isinstance(points, coord.SkyCoord) assert isinstance(points.frame, self.inst.frame.__class__) assert isinstance(points.data, coord.CartesianRepresentation) assert isinstance(values, u.Quantity) assert values.unit == u.solMass / u.pc ** 3 # TODO! test the specific values # /def def test_potential(self): """Test method ``potential``.""" # --------------- # basic points, values = self.inst.potential(self.points.data) # check data types assert isinstance(points, self.inst.frame.__class__) # and on the values assert isinstance(values, u.Quantity) assert values.unit == u.km ** 2 / u.s ** 2 # TODO! test the specific values # --------------- # with a frame points, values = self.inst.potential(self.points) # check data types assert isinstance(points, coord.SkyCoord) assert isinstance(points.frame, self.inst.frame.__class__) # and on the values assert isinstance(values, u.Quantity) assert values.unit == u.km ** 2 / u.s ** 2 # TODO! test the specific values # --------------- # can't pass frame # test the different inputs with pytest.raises(TypeError, match="keyword argument 'frame'"): points, values = self.inst.potential( self.points, frame=coord.Galactocentric(), ) # --------------- # representation_type points, values = self.inst.potential( self.points, representation_type=coord.CartesianRepresentation, ) assert points is not self.points assert isinstance(points, coord.SkyCoord) assert isinstance(points.frame, self.inst.frame.__class__) assert isinstance(points.data, coord.CartesianRepresentation) assert isinstance(values, u.Quantity) assert values.unit == u.km ** 2 / u.s ** 2 # TODO! test the specific values # /def @abstractmethod def test___call__(self): """Test method ``specific_force``.""" # --------------- # basic points, values = self.inst(self.points.data) # check data types assert isinstance(points, self.inst.frame.__class__) # and on the values assert isinstance(values, u.Quantity) assert values.unit == u.km ** 2 / u.s ** 2 # --------------- # with a frame points, values = self.inst(self.points) # check data types assert isinstance(points, coord.SkyCoord) assert isinstance(points.frame, self.inst.frame.__class__) # and on the values assert isinstance(values, u.Quantity) assert values.unit == u.km ** 2 / u.s ** 2 # TODO! test the specific values # --------------- # can't pass frame # test the different inputs with pytest.raises(TypeError, match="keyword argument 'frame'"): points, values = self.inst( self.points, frame=coord.Galactocentric(), ) # --------------- # representation_type points, values = self.inst( self.points, representation_type=coord.CartesianRepresentation, ) assert points is not self.points assert isinstance(points, coord.SkyCoord) assert isinstance(points.frame, self.inst.frame.__class__) assert isinstance(points.data, coord.CartesianRepresentation) assert isinstance(values, u.Quantity) assert values.unit == u.km ** 2 / u.s ** 2 # TODO! test the specific values # /def def test_specific_force(self): """Test method ``specific_force``.""" # --------------- # basic vf = self.inst.specific_force(self.points) assert isinstance(vf, vectorfield.BaseVectorField) assert isinstance(vf.points, coord.CylindricalRepresentation) assert hasattr(vf, "vf_rho") assert hasattr(vf, "vf_phi") assert hasattr(vf, "vf_z") assert vf.vf_rho.unit == u.km / u.s ** 2 assert isinstance(vf.frame, coord.Galactocentric) # TODO! test the specific values # --------------- # frame # test the different inputs with pytest.raises(TypeError, match="keyword argument 'frame'"): vf = self.inst.specific_force( self.points, frame=coord.Galactocentric(), ) # TODO! test the specific values # --------------- # representation_type vf = self.inst.specific_force( self.points, representation_type=coord.CartesianRepresentation, ) assert isinstance(vf, vectorfield.BaseVectorField) assert isinstance(vf.points, coord.CartesianRepresentation) assert hasattr(vf, "vf_x") assert hasattr(vf, "vf_y") assert hasattr(vf, "vf_z") assert vf.vf_x.unit == u.km / u.s ** 2 assert isinstance(vf.frame, coord.Galactocentric) # TODO! test the specific values # /def @abstractmethod def test_acceleration(self): """Test method ``acceleration``.""" assert self.subclass.acceleration == self.subclass.specific_force # /def def test_coefficients(self): """Test method ``coefficients``.""" # No coefficients pot = gpot.KeplerPotential() inst = self.obj(pot) assert inst.coefficients() is None # SCF pot = gpot.SCFPotential() inst = self.obj(pot) coeffs = inst.coefficients() assert coeffs["type"] == "SCF" assert np.all(np.equal(coeffs["Acos"], pot._Acos)) assert np.all(np.equal(coeffs["Asin"], pot._Asin)) # DiskSCFPotential pot = gpot.DiskSCFPotential() inst = self.obj(pot) coeffs = inst.coefficients() assert coeffs["type"] == "diskSCF" assert np.all(np.equal(coeffs["Acos"], pot._scf._Acos)) assert np.all(np.equal(coeffs["Asin"], pot._scf._Asin)) # /def # /class ############################################################################## # END
29.274247
79
0.551811
1,746
17,506
5.438717
0.087629
0.09941
0.069503
0.038016
0.903328
0.899115
0.892692
0.871841
0.845303
0.7996
0
0.003815
0.296298
17,506
597
80
29.323283
0.767027
0.154975
0
0.767442
0
0
0.029494
0.003999
0
0
0
0.001675
0.38206
1
0.049834
false
0
0.033223
0
0.089701
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
cb1ea7425f5abe833352f8fed0a7c5183539ea07
194
py
Python
components/__init__.py
psifertex/nehebn2
8b62a88a9d06624dbb62b8b74cc0566172fba970
[ "MIT" ]
32
2018-07-02T15:43:11.000Z
2021-09-07T16:12:08.000Z
components/__init__.py
psifertex/nehebn2
8b62a88a9d06624dbb62b8b74cc0566172fba970
[ "MIT" ]
null
null
null
components/__init__.py
psifertex/nehebn2
8b62a88a9d06624dbb62b8b74cc0566172fba970
[ "MIT" ]
3
2018-09-27T23:39:04.000Z
2020-05-29T04:21:38.000Z
from components.utils import * from components.SettingsModule import * from components.MainMenuContext import * from components.BinaryNinjaContext import * from components.ProgramState import *
32.333333
43
0.845361
20
194
8.2
0.4
0.426829
0.487805
0
0
0
0
0
0
0
0
0
0.103093
194
5
44
38.8
0.942529
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
cb2bb3a32697695470085652679c83bfd21fe3f5
13,207
py
Python
law_accu_term_constraint.py
WAPAY/EPM
4c4426f3b6a86d74f2d4c2c8d0c82f9475103eb7
[ "Apache-2.0" ]
null
null
null
law_accu_term_constraint.py
WAPAY/EPM
4c4426f3b6a86d74f2d4c2c8d0c82f9475103eb7
[ "Apache-2.0" ]
null
null
null
law_accu_term_constraint.py
WAPAY/EPM
4c4426f3b6a86d74f2d4c2c8d0c82f9475103eb7
[ "Apache-2.0" ]
null
null
null
law = [i for i in range(101)] accu = [[35, 37, 22], [80, 99, 13], [54], [101, 11, 108, 109, 45, 14, 43, 53], [66, 9, 15, 113, 53, 87, 56], [106, 11, 94], [64, 1, 65, 43, 108, 109, 55, 87, 88], [9, 84, 12], [108, 77, 109, 113, 87], [33, 105, 11, 44, 108, 78, 49, 51, 52, 53, 21, 115, 92], [99, 8, 9, 108, 80, 87], [64, 6, 40, 109, 87, 88], [91], [1, 66, 3, 36, 40, 41, 105, 9, 108, 109, 76, 15, 16, 12, 53, 21, 59, 29], [108, 9, 100, 12], [34, 2, 44, 109], [32, 34, 38, 44, 77], [104, 59], [46, 87], [2, 6], [1, 69, 105, 9, 107, 24], [103, 108, 109, 18, 53, 29], [1, 98], [1, 40, 108, 109, 12, 115, 53], [81, 101, 71], [108], [0, 99, 102, 72, 9, 41, 108, 109, 76, 77, 46, 44, 16, 17, 20, 53, 21, 87, 89, 29], [96, 0, 58, 23], [3, 9, 108, 80, 20, 87, 55], [1, 99, 9, 108, 80, 53, 87], [9, 106, 12, 109, 76, 87, 89, 29], [35, 108, 109, 22], [2, 40, 105, 9, 11, 12, 108, 76, 77, 80, 16, 45, 115, 109, 53, 54, 87, 89, 59, 28], [11, 43, 77], [1, 3, 4, 9, 14, 19, 20, 21, 22, 24, 25, 29, 32, 35, 53, 54, 61, 63, 74, 76, 85, 89, 99, 103, 106, 108, 109, 110], [66, 45], [83], [53, 47], [89, 18], [6, 40, 108, 77, 53], [50], [9, 109, 14, 15, 18, 89, 29], [40, 72, 9, 12, 109, 108, 111, 80, 22], [97, 12, 53], [108, 12], [9, 12, 14, 85, 54, 21, 24], [105, 28, 108, 53], [3, 100, 99, 9, 42, 43, 108, 12, 81, 53, 54, 87], [1, 4, 70], [11, 93, 53], [40, 12, 108, 53, 25, 59, 61], [0, 73, 74, 108, 109, 16, 115, 116, 84, 56], [113, 90, 100], [56, 74, 78], [40, 6, 31], [1, 108, 109, 76, 82, 53, 59, 30], [9, 26, 108], [113, 4, 77, 25], [1, 4, 70, 76, 109], [25, 33], [66, 102, 12, 109, 15, 24], [1, 107, 12, 39], [105, 36, 9], [5, 71, 43, 108, 14, 81, 53, 21, 24, 28], [74, 78], [105, 67, 36], [40], [1, 102, 109, 14, 48, 85, 21, 24], [65, 99, 38, 41, 75, 108, 27], [96, 36, 40, 9, 116, 58], [1, 98, 52, 105], [92, 53], [108, 12, 111, 50, 54, 60], [86], [32, 7, 108, 44, 110, 81, 21, 85, 28], [33, 6, 40, 41, 108, 109, 53], [96, 68, 40, 108, 79, 51, 53, 87, 63], [10, 66, 95], [1, 5, 53], [66, 63], [112, 3], [9, 66, 87], [82, 76, 61, 78], [8, 7], [19, 53, 30], [38, 40, 41, 108, 109, 110, 77], [106, 109, 115, 22, 29], [44, 76, 48, 52, 30], [65, 38, 40, 41, 8, 43, 109, 57, 27, 28], [40, 17, 99], [53, 62], [9, 12, 114, 116, 87], [32, 43, 81, 21, 28], [1, 98, 100, 4, 39, 108, 109, 78, 53, 25], [49, 108], [65, 109, 6, 87], [0, 108, 76, 109, 116, 53, 22, 56, 58], [73, 77, 6], [47], [0, 1, 40, 9, 109, 78, 116, 53, 56, 61], [7, 8, 11, 108, 109, 44, 21]] term = [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 4, 5, 6, 7, 8, 9, 10], [1, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [2, 4, 5, 6, 7, 8, 9, 10], [6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 4, 5, 6], [0, 3, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [2, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 3, 4, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [3, 4, 5, 6, 7, 8, 9, 10], [8, 9, 7], [4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [1, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [0, 2, 3, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [8, 1, 4], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 4, 5, 6, 7, 8, 9, 10], [3, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [3, 4, 5, 6, 7, 8, 9, 10], [6, 7, 8, 9, 10], [5, 6, 7, 8, 9, 10], [1, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 4, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [2, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10]] law_accu = [[0]*117 for i in range(101)] for i in range(101): for j in accu[i]: law_accu[i][j] = 1 law_term = [[0]*11 for i in range(101)] for i in range(101): for j in term[i]: law_term[i][j] = 1 # law = [i for i in range(127)] # # term = [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 4, 5, 6, 7, 8, 9, 10], [1, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [2, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 3, 4, 5, 6, 7, 8, 9, 10], [0, 3, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [2, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [0, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 3, 4, 5, 6, 7, 8, 9, 10], [0, 2, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 4, 5, 6, 7, 8, 9, 10], [3, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [3, 4, 5, 6, 7, 8, 9, 10], [6, 7, 8, 9, 10], [5, 6, 7, 8, 9, 10], [1, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 4, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [2, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 9, 10], [1, 3, 4, 5, 6, 7, 8, 9, 10], [5, 6, 7, 8, 9], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [9, 5, 6, 7], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [1, 3, 4, 5, 6, 7, 8, 9, 10], [2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [2, 4, 5, 6, 7, 8, 9, 10], [6, 7, 8, 9, 10], [5, 6, 7, 8, 9, 10], [5, 6, 7, 8, 9, 10]] # accu = [[35, 37, 22], [80, 99, 13], [54], [101, 11, 108, 109, 43, 14, 45, 53], # [66, 41, 9, 15, 113, 53, 87, 56], [106, 11, 94], [64, 65, 1, 40, 43, 108, 109, 87, 55, 88], # [9, 125, 84, 12], [1, 11, 108, 109, 77, 113, 87], [1, 9, 11, 12, 21, 33, 40, 44, 49, 51, 52, 53, 78, 92, 105, 106, 108, 109, 115], # [99, 8, 9, 108, 80, 87], [64, 0, 6, 40, 109, 87, 88], [91], [1, 3, 9, 12, 15, 16, 21, 29, 36, 40, 41, 53, 59, 66, 76, 105, 108, 109, 117], # [128, 100, 9, 108, 12, 122], [34, 2, 44, 109], [32, 34, 38, 44, 77], [104, 59], [46, 87], [2, 6], [1, 69, 9, 105, 107, 24], [103, 108, 109, 18, 53, 29], # [137, 1, 98, 123], [1, 40, 12, 109, 108, 115, 53, 87], [81, 101, 71], [138, 108], # [0, 1, 9, 16, 17, 20, 21, 29, 40, 41, 43, 44, 46, 53, 72, 76, 77, 87, 89, 99, 102, 108, 109], [96, 0, 58, 23], [3, 9, 108, 80, 20, 55, 87], # [1, 99, 9, 12, 108, 80, 53, 87, 28], [9, 106, 76, 109, 12, 77, 87, 89, 29], [35, 108, 109, 53, 22], # [2, 9, 138, 11, 12, 16, 28, 40, 45, 53, 54, 59, 76, 77, 80, 87, 89, 105, 108, 109, 115], [11, 43, 77], # [1, 3, 4, 9, 14, 19, 20, 21, 22, 24, 25, 29, 32, 35, 53, 54, 61, 63, 65, 74, 76, 85, 89, 99, 103, 106, 108, 109, 110], [66, 45], [40, 83], [53, 47, 127], [89, 18], # [6, 40, 108, 77, 53, 117], [50], [9, 109, 14, 15, 18, 89, 29], [72, 40, 138, 9, 108, 12, 109, 111, 77, 80, 22], [97, 12, 53], [108, 12], # [9, 12, 14, 85, 54, 21, 24], [96, 105, 108, 53, 87, 28], [3, 99, 100, 6, 9, 42, 43, 12, 108, 76, 15, 81, 53, 54, 87, 117], # [1, 123, 4, 70], [11, 53, 93], [40, 108, 12, 77, 53, 87, 25, 59, 61], [0, 73, 74, 108, 109, 16, 115, 116, 117, 84, 56], # [113, 90, 100, 105], [56, 74, 78], [40, 117, 6, 31], [0, 1, 65, 3, 6, 41, 76, 109, 108, 82, 116, 53, 59, 30], # [9, 26, 123, 108], [113, 4, 77, 25], [1, 4, 70, 76, 109], [25, 125, 33], [66, 102, 12, 109, 15, 24], [1, 107, 12, 39], [105, 36, 9], # [32, 5, 71, 42, 43, 108, 14, 81, 21, 53, 24, 28], [74, 53, 78], [105, 67, 36], [40, 132], # [1, 66, 102, 109, 14, 48, 21, 85, 24], [65, 99, 38, 40, 41, 75, 108, 117, 27], [96, 36, 40, 9, 116, 58], [1, 98, 52, 105], [92, 53], [108, 12, 111, 50, 54, 60], [86], [32, 7, 108, 44, 110, 81, 85, 21, 28], [33, 1, 6, 40, 41, 108, 109, 53, 21, 87, 59], [96, 68, 6, 40, 108, 79, 51, 53, 87, 63], [10, 66, 95], [1, 53, 5], [66, 77, 63], [112, 3], # [120, 9, 66, 87], [82, 76, 61, 78], [8, 7], [19, 53, 30], [38, 40, 41, 108, 109, 110, 77], [106, 12, 109, 115, 22, 29], [8, 76, 44, 48, 52, 125, 30], [65, 38, 8, 41, 40, 43, 109, 80, 117, 57, 27, 28], [40, 17, 99], [108, 53, 62], [9, 12, 114, 116, 87, 125], [32, 43, 81, 21, 28], [1, 98, 100, 4, 39, 40, 9, 108, 109, 78, 12, 53, 25], [49, 108], [65, 6, 40, 41, 109, 87], [0, 76, 109, 108, 116, 53, 22, 118, 56, 58], [6, 40, 73, 77, 123], [47], [0, 1, 3, 40, 9, 76, 109, 78, 116, 53, 117, 56, 59, 61], [7, 8, 11, 108, 109, 44, 21], [9, 106, 87], [11, 119], [3, 138, 42, 108, 77, 80], [108, 12, 53], [124, 86], [117, 133], [8, 43], [125], [139, 20], [9, 29, 87], [40, 117, 6], [0, 1, 3, 133, 6, 16, 40, 41, 43, 45, 53, 62, 65, 66, 80, 85, 87, 108, 117], [25, 131], [113, 84, 125], [53, 126], [106, 43, 11, 109, 93], [0, 11, 108, 109, 116, 53, 118, 56, 61], [129], [123], [130], [134], [40, 9, 108, 12, 77, 109, 51, 53, 22], [136, 25, 40], [135, 77, 79, 51, 84], [33, 98, 137, 25, 123], [121]] # # # law_accu = [[0]*140 for i in range(127)] # for i in range(127): # for j in accu[i]: # law_accu[i][j] = 1 # # law_term = [[0]*11 for i in range(127)] # for i in range(127): # for j in term[i]: # law_term[i][j] = 1
269.530612
3,816
0.393503
3,419
13,207
1.517695
0.04358
0.086722
0.128927
0.171131
0.712661
0.694932
0.674118
0.65292
0.632877
0.626325
0
0.518553
0.277656
13,207
49
3,817
269.530612
0.025367
0.56258
0
0.181818
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
null
0
0
1
0
0
0
0
0
1
0
1
0
0
0
1
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
cb33699a33c0c74f5fa95f3222a204ec0243bee6
20,964
py
Python
pysnmp-with-texts/CISCO-SUBSCRIBER-IDENTITY-TC-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-SUBSCRIBER-IDENTITY-TC-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-SUBSCRIBER-IDENTITY-TC-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-SUBSCRIBER-IDENTITY-TC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-SUBSCRIBER-IDENTITY-TC-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:13:06 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter32, Integer32, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, TimeTicks, Unsigned32, Gauge32, IpAddress, ObjectIdentity, Counter64, iso, Bits, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "Integer32", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "TimeTicks", "Unsigned32", "Gauge32", "IpAddress", "ObjectIdentity", "Counter64", "iso", "Bits", "NotificationType") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") ciscoSubscriberIdentityTcMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 782)) ciscoSubscriberIdentityTcMIB.setRevisions(('2011-12-23 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoSubscriberIdentityTcMIB.setRevisionsDescriptions(('The initial version of the MIB module.',)) if mibBuilder.loadTexts: ciscoSubscriberIdentityTcMIB.setLastUpdated('201112230000Z') if mibBuilder.loadTexts: ciscoSubscriberIdentityTcMIB.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: ciscoSubscriberIdentityTcMIB.setContactInfo('Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 Tel: +1 800 553-NETS E-mail: cs-snmp@cisco.com') if mibBuilder.loadTexts: ciscoSubscriberIdentityTcMIB.setDescription('This MIB module defines textual conventions describing subscriber session identities. A subscriber session identity consists of data associated with a subscriber session serving as credentials used to determine authority, status, rights, or entitlement to privileges.') class SubSessionIdentity(TextualConvention, Integer32): description = "An enumerated integer-value describing a subscriber session identity: 'other' The implementation of the MIB module using this textual convention does not recognize the subscriber session identity. 'ifIndex' The ifIndex assigned to the interface representing the subscriber session. 'subscriberLabel' The arbitrary integer-value assigned by the system to uniquely identify the subscriber session within the scope of the system. 'macAddress' The subscriber's MAC address. 'nativeVrf' The name of the VRF on which the subscriber session originates. 'nativeIpAddress' The IP address assigned to the subscriber session on the customer-facing side of the system. 'domainVrf' The name of the VRF to which the system transfers the subscriber session traffic. 'domainIpAddress' The IP address assigned to the subscriber session on the service-facing side of the system. 'pbhk' The Port-Bundle Host Key (PBHK) uniquely identifying the subscriber session. A PBHK consists of a source IP address and a TCP port number. 'remoteId' The name identifying the 'calling station', access multiplexor, or access switch providing access to the subscriber. 'circuitId' The name identifying the circuit on the 'calling station', access multiplexor, or access switch that provides access to the subscriber. 'nasPort' An octet string identifying the port on the Network Access Server (NAS) that provides access to the subscriber. 'domain' The subscriber's domain name. 'username' The subscriber's username. 'acctSessionId' The subscriber's accounting session identifier. 'dnis' The Dialed Number Identification Service (DNIS) number (or called-party number) dialed by the subscriber. 'media' The type of media providing access to the subscriber. 'mlpNegotiated' Indicates whether the subscriber session was established using multi-link PPP negotiation. 'protocol' The type of protocol providing access to the subscriber. 'dhcpClass' The name of the class matching the DHCP DISCOVER message received from the subscriber. 'serviceName' The name identifying the service associated with the subscriber. 'tunnelName' The name of the VPDN used to carry the subscriber session." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22)) namedValues = NamedValues(("other", 1), ("ifIndex", 2), ("subscriberLabel", 3), ("macAddress", 4), ("nativeVrf", 5), ("nativeIpAddress", 6), ("domainVrf", 7), ("domainIpAddress", 8), ("pbhk", 9), ("remoteId", 10), ("circuitId", 11), ("nasPort", 12), ("domain", 13), ("username", 14), ("acctSessionId", 15), ("dnis", 16), ("media", 17), ("mlpNegotiated", 18), ("protocol", 19), ("serviceName", 20), ("dhcpClass", 21), ("tunnelName", 22)) class SubSessionIdentities(TextualConvention, Bits): description = "A bit string describing a set of subscriber session identities: 'ifIndex' The ifIndex assigned to the interface representing the subscriber session. 'subscriberLabel' The arbitrary integer-value assigned by the system to uniquely identify the subscriber session within the scope of the system. 'macAddress' The subscriber's MAC address. 'nativeVrf' The name of the VRF on which the subscriber session originates. 'nativeIpAddress' The IP address assigned to the subscriber session on the customer-facing side of the system. 'domainVrf' The name of the VRF to which the system transfers the subscriber session traffic. 'domainIpAddress' The IP address assigned to the subscriber session on the service-facing side of the system. 'pbhk' The Port-Bundle Host Key (PBHK) uniquely identifying the subscriber session. A PBHK consists of a source IP address and a TCP port number. 'remoteId' The name identifying the 'calling station' or access multiplexor providing access to the subscriber. 'circuitId' The name identifying the circuit on the 'calling station', access multiplexor, or access switch that provides access to the subscriber. 'nasPort' An octet string identifying the port on the Network Access Server (NAS) that provides access to the subscriber. 'domain' The subscriber's domain name. 'username' The subscriber's username. 'dnis' The Dialed Number Identification Service (DNIS) number (or called-party number) dialed by the subscriber. 'acctSessionId' The subscriber's accounting session identifier. 'media' The type of media providing access to the subscriber. 'mlpNegotiated' Indicates whether the subscriber session was established using multi-link PPP negotiation. 'protocol' The type of protocol providing access to the subscriber. 'serviceName' The name identifying the service associated with the subscriber. 'dhcpClass' The name of the class matching the DHCP DISCOVER message received from the subscriber. 'tunnelName' The name of the VPDN used to carry the subscriber session." status = 'current' namedValues = NamedValues(("ifIndex", 0), ("subscriberLabel", 1), ("macAddress", 2), ("nativeVrf", 3), ("nativeIpAddress", 4), ("domainVrf", 5), ("domainIpAddress", 6), ("pbhk", 7), ("remoteId", 8), ("circuitId", 9), ("nasPort", 10), ("domain", 11), ("username", 12), ("acctSessionId", 13), ("dnis", 14), ("media", 15), ("mlpNegotiated", 16), ("protocol", 17), ("serviceName", 18), ("dhcpClass", 19), ("tunnelName", 20)) class SubscriberLabel(TextualConvention, Unsigned32): description = "A positive integer-value uniquely identifying a subscriber session within the scope of a system. The value '0' is not a valid value. However, it serves as a convenient value when an instance of an object using this textual convention is not valid." status = 'current' displayHint = 'x' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 4294967295) class SubscriberVRF(TextualConvention, OctetString): reference = "D. Harrington, R. Resuhn, B. Wijnen, 'An Architecture for Describing Simple Network Management Protocol (SNMP) Management Frameworks', RFC-3411, December 2002." description = 'A string-value identifying a VRF associated with a subscriber. The semantics of the string-value are the same those specified by the SnmpAdminString textual convention defined by the SNMP-FRAMEWORK-MIB (RFC-3411). The null string is not a valid value. However, it serves as a convenient value when an instance of an object using this textual convention is not valid.' status = 'current' displayHint = '255a' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255) class SubscriberPbhk(TextualConvention, OctetString): description = "An octet string specifying a Port-Bundle Host Key (PBHK) identifying a subscriber. The octet string has the following format: Octets Field ------------------------------ 1-4 subscriber IP address 5-6 TCP port number Observe that the subscriber IP address is always an IPv4 address. The value '000000'H is not a valid value. However, it serves as a convenient value when an instance of an object using this textual convention is not valid." status = 'current' displayHint = '1x:' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6) fixedLength = 6 class SubscriberRemoteId(TextualConvention, OctetString): reference = "D. Harrington, R. Resuhn, B. Wijnen, 'An Architecture for Describing Simple Network Management Protocol (SNMP) Management Frameworks', RFC-3411, December 2002." description = "A string-value identifying the 'calling station', access multiplexor, or access switch providing access to a subscriber. The semantics of the string-value are the same those specified by the SnmpAdminString textual convention defined by the SNMP-FRAMEWORK-MIB (RFC-3411). The null string is not a valid value. However, it serves as a convenient value when an instance of an object using this textual convention is not valid." status = 'current' displayHint = '255a' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255) class SubscriberCircuitId(TextualConvention, OctetString): reference = "D. Harrington, R. Resuhn, B. Wijnen, 'An Architecture for Describing Simple Network Management Protocol (SNMP) Management Frameworks', RFC-3411, December 2002." description = "A string-value identifying the circuit on the 'calling station', access multiplexor, or access switch that provides access to the subscriber. The semantics of the string-value are the same those specified by the SnmpAdminString textual convention defined by the SNMP-FRAMEWORK-MIB (RFC-3411). The null string is not a valid value. However, it serves as a convenient value when an instance of an object using this textual convention is not valid." status = 'current' displayHint = '255a' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255) class SubscriberNasPort(TextualConvention, OctetString): description = "An octet string identifying port on the Network Access Server (NAS) that provides access to the subscriber. The value '000000'H is not a valid value. However, it serves as a convenient value when an instance of an object using this textual convention is not valid." status = 'current' displayHint = '1x:' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 64) class SubscriberDomain(TextualConvention, OctetString): reference = "D. Harrington, R. Resuhn, B. Wijnen, 'An Architecture for Describing Simple Network Management Protocol (SNMP) Management Frameworks', RFC-3411, December 2002." description = 'A string-value specifying the domain associated with a subscriber. The semantics of the string-value are the same those specified by the SnmpAdminString textual convention defined by the SNMP-FRAMEWORK-MIB (RFC-3411). The null string is not a valid value. However, it serves as a convenient value when an instance of an object using this textual convention is not valid.' status = 'current' displayHint = '255a' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255) class SubscriberUsername(TextualConvention, OctetString): reference = "D. Harrington, R. Resuhn, B. Wijnen, 'An Architecture for Describing Simple Network Management Protocol (SNMP) Management Frameworks', RFC-3411, December 2002." description = 'A string-value specifying the username identifying a subscriber. The semantics of the string-value are the same those specified by the SnmpAdminString textual convention defined by the SNMP-FRAMEWORK-MIB (RFC-3411). The null string is not a valid value. However, it serves as a convenient value when an instance of an object using this textual convention is not valid.' status = 'current' displayHint = '255a' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255) class SubscriberAcctSessionId(TextualConvention, Unsigned32): description = "An positive, integer-value specifying the accounting session ID assigned to a subscriber. The value '0' is not a valid value. However, it serves as a convenient value when an instance of an object using this textual convention is not valid." status = 'current' displayHint = 'x' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 4294967295) class SubscriberDnis(TextualConvention, OctetString): reference = "D. Harrington, R. Resuhn, B. Wijnen, 'An Architecture for Describing Simple Network Management Protocol (SNMP) Management Frameworks', RFC-3411, December 2002." description = 'A string-value specifying the Dialed Number Identification Service (DNIS) number (or called-party number) dialed by a subscriber. The semantics of the string-value are the same those specified by the SnmpAdminString textual convention defined by the SNMP-FRAMEWORK-MIB (RFC-3411). The null string is not a valid value. However, it serves as a convenient value when an instance of an object using this textual convention is not valid.' status = 'current' displayHint = '255a' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255) class SubscriberMediaType(TextualConvention, Integer32): description = "An enumerated integer-value describing the type of media providing access to the subscriber: 'other' The implementation of the MIB module using this textual convention does not recognize the type of media providing access to the subscriber. 'async' An asynchronous serial line provides access to the subscriber. 'atm' An ATM network provides access to the subscriber. 'ethernet' An Ethernet-based network provides access to the subscriber. 'ip' An IP network provides access to the subscriber. 'isdn' An ISDN line provides access to the subscriber. 'mpls' An MPLS network provides access to the subscriber. 'sync' A synchronous serial line provides access to the subscriber. The value 'other' cannot be written to an instance of an object. However, it serves as a convenient value when an instance of an object using this textual convention is not valid." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8)) namedValues = NamedValues(("other", 1), ("async", 2), ("atm", 3), ("ethernet", 4), ("ip", 5), ("isdn", 6), ("mpls", 7), ("sync", 8)) class SubscriberProtocolType(TextualConvention, Integer32): description = "An enumerated integer-value describing the type of protocol providing access to the subscriber: 'other' The implementation of the MIB module using this textual convention does not recognize the type of protocol providing access to the subscriber. 'atom' Any Transport over MPLS (AToM) provides access to the subscriber. 'ip' The Internet Protocol (IP) provides access to the subscriber. 'psdn' A Public Switched Data Network (PSDN) provides access to the subscriber. 'ppp' The Point-to-Point Protocol (PPP) provides access to the subscriber. 'vpdn' A Virtual Private Data Network (VPDN) provides access to the subscriber. The value 'other' cannot be written to an instance of an object. However, it serves as a convenient value when an instance of an object using this textual convention is not valid." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("other", 1), ("atom", 2), ("ip", 3), ("psdn", 4), ("ppp", 5), ("vpdn", 6)) class SubscriberDhcpClass(TextualConvention, OctetString): reference = "D. Harrington, R. Resuhn, B. Wijnen, 'An Architecture for Describing Simple Network Management Protocol (SNMP) Management Frameworks', RFC-3411, December 2002." description = 'A string-value specifying the name of the class matching the DHCP DISCOVER message received from the subscriber. The semantics of the string-value are the same those specified by the SnmpAdminString textual convention defined by the SNMP-FRAMEWORK-MIB (RFC-3411). The null string is not a valid value. However, it serves as a convenient value when an instance of an object using this textual convention is not valid.' status = 'current' displayHint = '255a' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255) class SubscriberTunnelName(TextualConvention, OctetString): reference = "D. Harrington, R. Resuhn, B. Wijnen, 'An Architecture for Describing Simple Network Management Protocol (SNMP) Management Frameworks', RFC-3411, December 2002." description = "A string-value specifying the name of the VPDN used to carry a subscriber's session. The semantics of the string-value are the same those specified by the SnmpAdminString textual convention defined by the SNMP-FRAMEWORK-MIB (RFC-3411). The null string is not a valid value. However, it serves as a convenient value when an instance of an object using this textual convention is not valid." status = 'current' displayHint = '255a' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255) class SubscriberLocationName(TextualConvention, OctetString): reference = "D. Harrington, R. Resuhn, B. Wijnen, 'An Architecture for Describing Simple Network Management Protocol (SNMP) Management Frameworks', RFC-3411, December 2002." description = 'A string-value specifying the location associated with a subscriber. The semantics of the string-value are the same those specified by the SnmpAdminString textual convention defined by the SNMP-FRAMEWORK-MIB (RFC-3411). The null string is not a valid value. However, it serves as a convenient value when an instance of an object using this textual convention is not valid.' status = 'current' displayHint = '255a' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255) class SubscriberServiceName(TextualConvention, OctetString): reference = "D. Harrington, R. Resuhn, B. Wijnen, 'An Architecture for Describing Simple Network Management Protocol (SNMP) Management Frameworks', RFC-3411, December 2002." description = 'A string-value specifying the subscriber service associated with a subscriber. The semantics of the string-value are the same those specified by the SnmpAdminString textual convention defined by the SNMP-FRAMEWORK-MIB (RFC-3411). The null string is not a valid value. However, it serves as a convenient value when an instance of an object using this textual convention is not valid.' status = 'current' displayHint = '255a' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255) mibBuilder.exportSymbols("CISCO-SUBSCRIBER-IDENTITY-TC-MIB", SubscriberAcctSessionId=SubscriberAcctSessionId, SubscriberLabel=SubscriberLabel, SubscriberProtocolType=SubscriberProtocolType, SubscriberCircuitId=SubscriberCircuitId, SubscriberRemoteId=SubscriberRemoteId, SubscriberDomain=SubscriberDomain, SubscriberTunnelName=SubscriberTunnelName, SubscriberServiceName=SubscriberServiceName, SubscriberLocationName=SubscriberLocationName, SubSessionIdentity=SubSessionIdentity, SubSessionIdentities=SubSessionIdentities, SubscriberVRF=SubscriberVRF, SubscriberDhcpClass=SubscriberDhcpClass, ciscoSubscriberIdentityTcMIB=ciscoSubscriberIdentityTcMIB, SubscriberMediaType=SubscriberMediaType, SubscriberNasPort=SubscriberNasPort, SubscriberDnis=SubscriberDnis, PYSNMP_MODULE_ID=ciscoSubscriberIdentityTcMIB, SubscriberUsername=SubscriberUsername, SubscriberPbhk=SubscriberPbhk)
146.601399
2,165
0.780672
2,692
20,964
6.078752
0.135215
0.050843
0.029333
0.035933
0.744745
0.720851
0.699646
0.690051
0.684796
0.67954
0
0.028397
0.138285
20,964
142
2,166
147.633803
0.877443
0.017077
0
0.465517
0
0.258621
0.686411
0.005146
0
0
0
0
0
1
0
false
0
0.060345
0
0.922414
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
1
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
7
cb3bf64cc9d7222ceb1d9d819c46b4c42603f79e
76,501
py
Python
OttBands5minFixedOtt/jessepickerdata/dnafiles/OttBands5minFixeddnas.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
38
2021-09-18T15:33:28.000Z
2022-02-21T17:29:08.000Z
OttBands5minFixedOtt/jessepickerdata/dnafiles/OttBands5minFixeddnas.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
4
2022-01-02T14:46:12.000Z
2022-02-16T18:39:41.000Z
OttBands5minFixedOtt/jessepickerdata/dnafiles/OttBands5minFixeddnas.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
11
2021-10-19T06:21:43.000Z
2022-02-21T17:29:10.000Z
dnas = [ ['vNqn]', 81, 11, 12.65, 100, 4, 9.27, {'ott_len': 35, 'ott_percent': 199, 'ott_bw': 152, 'tps_qty_index': 111, 'max_risk': 49}], ['LewDb', 76, 17, 19.15, 80, 5, 8.45, {'ott_len': 30, 'ott_percent': 227, 'ott_bw': 160, 'tps_qty_index': 44, 'max_risk': 52}], ['ui*5<', 44, 84, 12.12, 42, 14, 6.81, {'ott_len': 35, 'ott_percent': 232, 'ott_bw': 64, 'tps_qty_index': 21, 'max_risk': 28}], ['_W6,U', 40, 84, 9.31, 50, 14, 6.21, {'ott_len': 32, 'ott_percent': 210, 'ott_bw': 79, 'tps_qty_index': 6, 'max_risk': 43}], ['?^WWv', 53, 60, 21.94, 63, 11, 6.61, {'ott_len': 28, 'ott_percent': 219, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 64}], ['[VsWv', 63, 19, 14.24, 75, 4, 6.76, {'ott_len': 31, 'ott_percent': 209, 'ott_bw': 155, 'tps_qty_index': 74, 'max_risk': 64}], ['WVsWv', 63, 19, 14.24, 75, 4, 6.76, {'ott_len': 31, 'ott_percent': 209, 'ott_bw': 155, 'tps_qty_index': 74, 'max_risk': 64}], ['-dW6n', 51, 64, 27.68, 58, 12, 5.23, {'ott_len': 26, 'ott_percent': 226, 'ott_bw': 120, 'tps_qty_index': 22, 'max_risk': 59}], ['[\\sta', 66, 18, 12.71, 80, 5, 5.61, {'ott_len': 31, 'ott_percent': 216, 'ott_bw': 155, 'tps_qty_index': 120, 'max_risk': 51}], ['g^VGt', 57, 61, 16.78, 63, 11, 5.52, {'ott_len': 33, 'ott_percent': 219, 'ott_bw': 119, 'tps_qty_index': 49, 'max_risk': 63}], ['dl*.M', 39, 83, 12.17, 50, 16, 5.84, {'ott_len': 33, 'ott_percent': 236, 'ott_bw': 64, 'tps_qty_index': 9, 'max_risk': 38}], ['o4,@X', 42, 98, 8.28, 45, 20, 5.45, {'ott_len': 34, 'ott_percent': 166, 'ott_bw': 66, 'tps_qty_index': 38, 'max_risk': 45}], ['3OWXC', 54, 57, 20.13, 63, 11, 5.57, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 76, 'max_risk': 32}], ['3OWXE', 55, 58, 20.61, 63, 11, 5.57, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 76, 'max_risk': 33}], ['eVkWv', 72, 22, 20.19, 66, 6, 5.82, {'ott_len': 33, 'ott_percent': 209, 'ott_bw': 145, 'tps_qty_index': 74, 'max_risk': 64}], ['eVswv', 63, 19, 11.55, 100, 4, 5.34, {'ott_len': 33, 'ott_percent': 209, 'ott_bw': 155, 'tps_qty_index': 125, 'max_risk': 64}], ['eEsWv', 66, 9, 10.3, 75, 4, 5.13, {'ott_len': 33, 'ott_percent': 187, 'ott_bw': 155, 'tps_qty_index': 74, 'max_risk': 64}], ['ePjWv', 68, 22, 19.21, 66, 6, 5.68, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 144, 'tps_qty_index': 74, 'max_risk': 64}], ['ePjWu', 68, 22, 19.21, 66, 6, 5.68, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 144, 'tps_qty_index': 74, 'max_risk': 64}], ['hPPHs', 57, 63, 21.8, 63, 11, 5.36, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 111, 'tps_qty_index': 51, 'max_risk': 62}], ['ePPHa', 57, 63, 21.8, 63, 11, 5.36, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 111, 'tps_qty_index': 51, 'max_risk': 51}], ['ePPH]', 57, 63, 21.8, 63, 11, 5.36, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 111, 'tps_qty_index': 51, 'max_risk': 49}], ['ePPHt', 57, 63, 21.8, 63, 11, 5.36, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 111, 'tps_qty_index': 51, 'max_risk': 63}], ['3eWXn', 53, 64, 29.51, 58, 12, 4.39, {'ott_len': 26, 'ott_percent': 227, 'ott_bw': 120, 'tps_qty_index': 76, 'max_risk': 59}], ['3OWWn', 53, 58, 28.74, 66, 12, 4.33, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 59}], ['3fWHn', 56, 64, 27.28, 58, 12, 4.26, {'ott_len': 26, 'ott_percent': 229, 'ott_bw': 120, 'tps_qty_index': 51, 'max_risk': 59}], ['t]bik', 57, 35, 9.33, 62, 8, 4.47, {'ott_len': 35, 'ott_percent': 217, 'ott_bw': 134, 'tps_qty_index': 103, 'max_risk': 57}], ['O=ITi', 49, 69, 21.32, 61, 13, 4.06, {'ott_len': 30, 'ott_percent': 177, 'ott_bw': 102, 'tps_qty_index': 70, 'max_risk': 56}], ['@_W*?', 44, 58, 22.34, 55, 9, 4.25, {'ott_len': 28, 'ott_percent': 220, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 30}], ['@^W*?', 45, 57, 21.06, 55, 9, 4.26, {'ott_len': 28, 'ott_percent': 219, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 30}], ['3OW5n', 50, 59, 24.24, 66, 12, 4.05, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 21, 'max_risk': 59}], ['3OVXn', 53, 60, 21.96, 66, 12, 4.24, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 119, 'tps_qty_index': 76, 'max_risk': 59}], ['-VW.v', 49, 61, 23.86, 58, 12, 4.35, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 9, 'max_risk': 64}], ['MVsWv', 66, 18, 17.72, 60, 5, 4.17, {'ott_len': 30, 'ott_percent': 209, 'ott_bw': 155, 'tps_qty_index': 74, 'max_risk': 64}], ['eRQWv', 52, 63, 17.59, 63, 11, 4.81, {'ott_len': 33, 'ott_percent': 204, 'ott_bw': 112, 'tps_qty_index': 74, 'max_risk': 64}], ['CMNWv', 52, 71, 22.36, 58, 12, 4.3, {'ott_len': 28, 'ott_percent': 197, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['ePRWv', 53, 60, 20.61, 63, 11, 4.2, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 114, 'tps_qty_index': 74, 'max_risk': 64}], ['ePPWh', 52, 63, 19.94, 63, 11, 4.8, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 111, 'tps_qty_index': 74, 'max_risk': 56}], ['ePPWb', 52, 63, 19.94, 63, 11, 4.8, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 111, 'tps_qty_index': 74, 'max_risk': 52}], ['ePPW\\', 52, 63, 19.94, 63, 11, 4.8, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 111, 'tps_qty_index': 74, 'max_risk': 48}], ['hPmHf', 73, 19, 19.46, 75, 4, 4.96, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 147, 'tps_qty_index': 51, 'max_risk': 54}], ['3OmXn', 69, 23, 26.08, 57, 7, 3.12, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 147, 'tps_qty_index': 76, 'max_risk': 59}], ['/OWXn', 55, 58, 26.74, 66, 12, 3.61, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 76, 'max_risk': 59}], ['3OWXp', 55, 58, 26.74, 66, 12, 3.61, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 76, 'max_risk': 61}], ['.OWXn', 55, 58, 26.74, 66, 12, 3.61, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 76, 'max_risk': 59}], ['AB]Ns', 61, 34, 24.12, 60, 10, 3.12, {'ott_len': 28, 'ott_percent': 184, 'ott_bw': 127, 'tps_qty_index': 60, 'max_risk': 62}], ['7Fpob', 66, 12, 12.15, 75, 4, 3.62, {'ott_len': 27, 'ott_percent': 189, 'ott_bw': 151, 'tps_qty_index': 112, 'max_risk': 52}], ['QYRcn', 50, 65, 19.63, 58, 12, 3.49, {'ott_len': 30, 'ott_percent': 212, 'ott_bw': 114, 'tps_qty_index': 93, 'max_risk': 59}], [':YY:_', 54, 59, 21.43, 58, 12, 3.52, {'ott_len': 27, 'ott_percent': 212, 'ott_bw': 122, 'tps_qty_index': 28, 'max_risk': 50}], ['H.Su:', 73, 19, 13.4, 66, 6, 3.07, {'ott_len': 29, 'ott_percent': 159, 'ott_bw': 115, 'tps_qty_index': 122, 'max_risk': 26}], ['q9da]', 71, 14, 11.37, 75, 4, 3.13, {'ott_len': 34, 'ott_percent': 172, 'ott_bw': 136, 'tps_qty_index': 90, 'max_risk': 49}], ['O<A8_', 44, 83, 14.86, 43, 16, 3.41, {'ott_len': 30, 'ott_percent': 176, 'ott_bw': 92, 'tps_qty_index': 25, 'max_risk': 50}], ['ftUQf', 46, 66, 10.18, 58, 12, 3.51, {'ott_len': 33, 'ott_percent': 246, 'ott_bw': 117, 'tps_qty_index': 65, 'max_risk': 54}], ['AeB:S', 39, 83, 9.24, 50, 16, 3.29, {'ott_len': 28, 'ott_percent': 227, 'ott_bw': 94, 'tps_qty_index': 28, 'max_risk': 42}], ['3OWIn', 59, 59, 25.1, 66, 12, 3.29, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 52, 'max_risk': 59}], ['-SUNv', 51, 64, 24.47, 58, 12, 3.76, {'ott_len': 26, 'ott_percent': 205, 'ott_bw': 117, 'tps_qty_index': 60, 'max_risk': 64}], ['3OW?n', 54, 59, 24.5, 66, 12, 3.73, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 36, 'max_risk': 59}], ['-VWWu', 57, 61, 24.09, 58, 12, 3.47, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 64}], [',VWWv', 57, 61, 24.09, 58, 12, 3.47, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 64}], ['-VWWl', 57, 61, 24.09, 58, 12, 3.47, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 58}], ['-VWWs', 57, 61, 24.09, 58, 12, 3.47, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 62}], ['3OWCn', 54, 59, 23.15, 66, 12, 3.83, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 43, 'max_risk': 59}], ['-VWMv', 50, 61, 23.08, 58, 12, 3.48, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 59, 'max_risk': 64}], ['-VW?v', 55, 61, 23.02, 58, 12, 3.04, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 36, 'max_risk': 64}], ['-]W*v', 47, 65, 23.31, 45, 11, 3.08, {'ott_len': 26, 'ott_percent': 217, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 64}], ['-YWWv', 55, 63, 23.92, 58, 12, 3.37, {'ott_len': 26, 'ott_percent': 212, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 64}], [':VWWv', 55, 61, 23.82, 58, 12, 3.32, {'ott_len': 27, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 64}], [';VWWv', 55, 61, 23.82, 58, 12, 3.32, {'ott_len': 27, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 64}], ['-VW<v', 58, 60, 23.78, 58, 12, 3.9, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 32, 'max_risk': 64}], ['7VWWv', 55, 61, 23.82, 58, 12, 3.32, {'ott_len': 27, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 64}], ['3OWUn', 52, 59, 22.89, 66, 12, 3.29, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 71, 'max_risk': 59}], ['-VWWa', 58, 60, 22.96, 58, 12, 3.47, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 51}], ['-VWW^', 58, 60, 22.96, 58, 12, 3.47, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 49}], ['-VW=v', 55, 61, 21.99, 58, 12, 3.27, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 33, 'max_risk': 64}], ['-SWWv', 55, 60, 21.99, 58, 12, 3.16, {'ott_len': 26, 'ott_percent': 205, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 64}], ['-VW;v', 56, 60, 21.81, 58, 12, 3.24, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 30, 'max_risk': 64}], ['3OWXg', 54, 59, 19.09, 66, 12, 3.61, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 76, 'max_risk': 55}], ['-VUWv', 53, 66, 19.51, 58, 12, 3.47, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 117, 'tps_qty_index': 74, 'max_risk': 64}], [')VsWv', 68, 19, 15.64, 57, 7, 3.61, {'ott_len': 25, 'ott_percent': 209, 'ott_bw': 155, 'tps_qty_index': 74, 'max_risk': 64}], ['eRNDv', 53, 67, 17.86, 53, 13, 3.08, {'ott_len': 33, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 44, 'max_risk': 64}], ['@0W*?', 78, 19, 30.54, 42, 7, 2.46, {'ott_len': 28, 'ott_percent': 161, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 30}], ['?dpMr', 61, 26, 28.05, 50, 8, 2.43, {'ott_len': 28, 'ott_percent': 226, 'ott_bw': 151, 'tps_qty_index': 59, 'max_risk': 62}], ['BVV.a', 50, 59, 27.82, 58, 12, 2.71, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 119, 'tps_qty_index': 9, 'max_risk': 51}], ['<VV.a', 50, 59, 27.82, 58, 12, 2.71, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 119, 'tps_qty_index': 9, 'max_risk': 51}], ['?VW2v', 52, 59, 27.13, 58, 12, 2.6, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 16, 'max_risk': 64}], ['-bWWv', 51, 64, 25.88, 53, 13, 2.1, {'ott_len': 26, 'ott_percent': 224, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 64}], ['-VYWv', 57, 59, 25.08, 58, 12, 2.21, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 122, 'tps_qty_index': 74, 'max_risk': 64}], ['?VW.v', 49, 59, 25.96, 58, 12, 2.45, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 9, 'max_risk': 64}], ['-VWZv', 60, 60, 24.8, 58, 12, 2.87, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 79, 'max_risk': 64}], ['-VW*s', 50, 60, 24.47, 54, 11, 2.99, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 62}], ['-VW*i', 50, 60, 24.47, 54, 11, 2.99, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 56}], ['-VW*p', 50, 60, 24.47, 54, 11, 2.99, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 61}], ['0VW*v', 50, 60, 24.47, 54, 11, 2.99, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 64}], ['-VWLv', 50, 60, 24.44, 58, 12, 2.84, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 57, 'max_risk': 64}], ['?VW+v', 48, 58, 24.73, 58, 12, 2.09, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 5, 'max_risk': 64}], ['?VWAv', 57, 59, 24.7, 58, 12, 2.24, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 40, 'max_risk': 64}], ['ePfWh', 72, 22, 24.19, 57, 7, 2.35, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 139, 'tps_qty_index': 74, 'max_risk': 56}], ['ePfWf', 72, 22, 24.62, 57, 7, 2.35, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 139, 'tps_qty_index': 74, 'max_risk': 54}], ['6ZqSa', 71, 21, 23.78, 57, 7, 2.92, {'ott_len': 27, 'ott_percent': 214, 'ott_bw': 152, 'tps_qty_index': 68, 'max_risk': 51}], ['@+W*?', 72, 18, 23.22, 42, 7, 2.43, {'ott_len': 28, 'ott_percent': 155, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 30}], ['0VW*?', 52, 57, 23.58, 45, 11, 2.99, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 30}], ['3VW*?', 52, 57, 23.58, 45, 11, 2.99, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 30}], ['3OWan', 59, 59, 23.6, 66, 12, 2.38, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 90, 'max_risk': 59}], ['-VWQv', 53, 60, 23.81, 58, 12, 2.49, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 65, 'max_risk': 64}], ['-TW*v', 50, 59, 23.37, 54, 11, 2.62, {'ott_len': 26, 'ott_percent': 206, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 64}], ['ePhWh', 76, 21, 23.98, 57, 7, 2.35, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 141, 'tps_qty_index': 74, 'max_risk': 56}], ['3OW`n', 59, 59, 22.67, 66, 12, 2.76, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 89, 'max_risk': 59}], ['-VW*J', 50, 59, 22.72, 54, 11, 2.99, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 37}], ['ePfWw', 69, 23, 22.09, 57, 7, 2.35, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 139, 'tps_qty_index': 74, 'max_risk': 65}], ['YOR9c', 51, 60, 21.87, 58, 12, 2.39, {'ott_len': 31, 'ott_percent': 200, 'ott_bw': 114, 'tps_qty_index': 27, 'max_risk': 52}], ['iPiWn', 72, 22, 21.18, 57, 7, 2.35, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 142, 'tps_qty_index': 74, 'max_risk': 59}], ['ePhWj', 72, 22, 21.88, 57, 7, 2.35, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 141, 'tps_qty_index': 74, 'max_risk': 57}], ['-VeWv', 60, 35, 20.21, 54, 11, 2.54, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 137, 'tps_qty_index': 74, 'max_risk': 64}], ['eSNWd', 50, 67, 18.68, 53, 13, 2.22, {'ott_len': 33, 'ott_percent': 205, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['eSNWb', 50, 67, 18.68, 53, 13, 2.22, {'ott_len': 33, 'ott_percent': 205, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 52}], ['7gU6v', 43, 71, 14.16, 58, 12, 2.87, {'ott_len': 27, 'ott_percent': 230, 'ott_bw': 117, 'tps_qty_index': 22, 'max_risk': 64}], ['qV8*T', 38, 85, 12.14, 42, 14, 2.29, {'ott_len': 34, 'ott_percent': 209, 'ott_bw': 81, 'tps_qty_index': 3, 'max_risk': 43}], ['pS,t_', 43, 83, 2.32, 47, 17, 2.9, {'ott_len': 34, 'ott_percent': 205, 'ott_bw': 66, 'tps_qty_index': 120, 'max_risk': 50}], ['OuYTi', 48, 66, 16.17, 66, 12, 2.09, {'ott_len': 30, 'ott_percent': 247, 'ott_bw': 122, 'tps_qty_index': 70, 'max_risk': 56}], ['3MWXn', 55, 58, 17.01, 66, 12, 2.88, {'ott_len': 26, 'ott_percent': 197, 'ott_bw': 120, 'tps_qty_index': 76, 'max_risk': 59}], ['-VcWv', 53, 41, 14.52, 54, 11, 2.3, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 135, 'tps_qty_index': 74, 'max_risk': 64}], ['?VuWv', 62, 16, 15.34, 60, 5, 2.75, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 157, 'tps_qty_index': 74, 'max_risk': 64}], ['eRNWk', 52, 67, 17.52, 53, 13, 2.3, {'ott_len': 33, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 57}], ['eRNWf', 52, 67, 17.52, 53, 13, 2.3, {'ott_len': 33, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 54}], ['eRNWj', 52, 67, 17.52, 53, 13, 2.3, {'ott_len': 33, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 57}], ['eRNWo', 52, 67, 17.52, 53, 13, 2.3, {'ott_len': 33, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 60}], ['eRNWa', 52, 67, 17.52, 53, 13, 2.3, {'ott_len': 33, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 51}], ['eRNWZ', 52, 67, 17.52, 53, 13, 2.3, {'ott_len': 33, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 47}], ['HPqWv', 64, 17, 16.65, 60, 5, 2.69, {'ott_len': 29, 'ott_percent': 201, 'ott_bw': 152, 'tps_qty_index': 74, 'max_risk': 64}], ['jPhHq', 72, 22, 24.39, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 141, 'tps_qty_index': 51, 'max_risk': 61}], ['gPiHq', 72, 22, 24.01, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 142, 'tps_qty_index': 51, 'max_risk': 61}], ['ePiHm', 72, 22, 24.01, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 142, 'tps_qty_index': 51, 'max_risk': 59}], ['ePiHj', 72, 22, 24.01, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 142, 'tps_qty_index': 51, 'max_risk': 57}], ['ePiHq', 72, 22, 24.01, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 142, 'tps_qty_index': 51, 'max_risk': 61}], ['ePfHq', 69, 23, 22.7, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 139, 'tps_qty_index': 51, 'max_risk': 61}], ['ePhH]', 75, 20, 22.8, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 141, 'tps_qty_index': 51, 'max_risk': 49}], ['ePgHt', 69, 23, 21.85, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 140, 'tps_qty_index': 51, 'max_risk': 63}], ['ePgHq', 69, 23, 21.85, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 140, 'tps_qty_index': 51, 'max_risk': 61}], ['ePiHa', 75, 20, 22.34, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 142, 'tps_qty_index': 51, 'max_risk': 51}], ['=ptVt', 73, 26, 30.29, 50, 8, 1.89, {'ott_len': 28, 'ott_percent': 241, 'ott_bw': 156, 'tps_qty_index': 73, 'max_risk': 63}], ['BVWWv', 56, 58, 27.76, 58, 12, 1.58, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 64}], ['?VWW`', 56, 58, 27.76, 58, 12, 1.58, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 50}], ['?VWWg', 56, 58, 27.76, 58, 12, 1.58, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 55}], ['-VWav', 60, 60, 26.61, 58, 12, 1.92, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 90, 'max_risk': 64}], ['?VWav', 58, 58, 26.38, 58, 12, 1.13, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 90, 'max_risk': 64}], ['XRV.a', 50, 54, 25.07, 58, 12, 1.52, {'ott_len': 31, 'ott_percent': 204, 'ott_bw': 119, 'tps_qty_index': 9, 'max_risk': 51}], ['@XW*?', 50, 54, 25.83, 50, 10, 1.55, {'ott_len': 28, 'ott_percent': 211, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 30}], ['-VWlv', 60, 60, 25.1, 58, 12, 1.72, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 108, 'max_risk': 64}], ['hPiHf', 76, 21, 25.83, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 142, 'tps_qty_index': 51, 'max_risk': 54}], ['@VX*?', 50, 53, 24.04, 50, 10, 1.23, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 121, 'tps_qty_index': 3, 'max_risk': 30}], ['?VWIv', 57, 59, 24.13, 58, 12, 1.86, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 52, 'max_risk': 64}], ['?VWQv', 52, 59, 24.16, 58, 12, 1.63, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 65, 'max_risk': 64}], ['ePhHs', 72, 22, 24.39, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 141, 'tps_qty_index': 51, 'max_risk': 62}], ['hPfHf', 72, 22, 24.71, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 139, 'tps_qty_index': 51, 'max_risk': 54}], ['ePhHt', 72, 22, 24.39, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 141, 'tps_qty_index': 51, 'max_risk': 63}], ['hPhHt', 72, 22, 24.39, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 141, 'tps_qty_index': 51, 'max_risk': 63}], ['WPOWd', 50, 65, 23.11, 58, 12, 1.07, {'ott_len': 31, 'ott_percent': 201, 'ott_bw': 110, 'tps_qty_index': 74, 'max_risk': 53}], ['YPOWd', 50, 65, 23.11, 58, 12, 1.07, {'ott_len': 31, 'ott_percent': 201, 'ott_bw': 110, 'tps_qty_index': 74, 'max_risk': 53}], ['hPgHf', 72, 22, 23.97, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 140, 'tps_qty_index': 51, 'max_risk': 54}], ['3OWun', 60, 58, 22.28, 66, 12, 1.45, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 122, 'max_risk': 59}], ['-VWgv', 56, 60, 22.61, 58, 12, 1.74, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 100, 'max_risk': 64}], ['-VWfv', 56, 60, 22.57, 58, 12, 1.72, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 98, 'max_risk': 64}], ['IVWWv', 51, 58, 22.46, 58, 12, 1.85, {'ott_len': 29, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 64}], ['ePiH]', 75, 20, 22.34, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 142, 'tps_qty_index': 51, 'max_risk': 49}], ['iPiHd', 75, 20, 22.34, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 142, 'tps_qty_index': 51, 'max_risk': 53}], ['ePiH\\', 75, 20, 22.34, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 142, 'tps_qty_index': 51, 'max_risk': 48}], ['jPhH\\', 75, 20, 22.8, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 141, 'tps_qty_index': 51, 'max_risk': 48}], ['-VW.?', 51, 58, 21.96, 41, 12, 1.13, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 9, 'max_risk': 30}], ['EVTHN', 58, 60, 21.05, 54, 11, 1.81, {'ott_len': 29, 'ott_percent': 209, 'ott_bw': 116, 'tps_qty_index': 51, 'max_risk': 39}], ['?0WWv', 65, 29, 21.7, 55, 9, 1.06, {'ott_len': 28, 'ott_percent': 161, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 64}], ['fVPWv', 52, 65, 21.16, 53, 13, 1.82, {'ott_len': 33, 'ott_percent': 209, 'ott_bw': 111, 'tps_qty_index': 74, 'max_risk': 64}], ['eVPWc', 52, 65, 21.16, 53, 13, 1.82, {'ott_len': 33, 'ott_percent': 209, 'ott_bw': 111, 'tps_qty_index': 74, 'max_risk': 52}], ['gVPWv', 52, 65, 21.16, 53, 13, 1.82, {'ott_len': 33, 'ott_percent': 209, 'ott_bw': 111, 'tps_qty_index': 74, 'max_risk': 64}], ['`RNWv', 51, 68, 21.49, 53, 13, 1.56, {'ott_len': 32, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['cRNWv', 51, 68, 21.49, 53, 13, 1.56, {'ott_len': 32, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['e5NWv', 60, 43, 21.21, 63, 11, 1.18, {'ott_len': 33, 'ott_percent': 167, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['\\RNWv', 51, 68, 21.49, 53, 13, 1.56, {'ott_len': 32, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], [']RNWv', 51, 68, 21.49, 53, 13, 1.56, {'ott_len': 32, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['aRNWv', 51, 68, 21.49, 53, 13, 1.56, {'ott_len': 32, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['bRNWv', 51, 68, 21.49, 53, 13, 1.56, {'ott_len': 32, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['^RNWv', 51, 68, 21.49, 53, 13, 1.56, {'ott_len': 32, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['_RNWv', 51, 68, 21.49, 53, 13, 1.56, {'ott_len': 32, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['e5NWd', 61, 42, 21.48, 63, 11, 1.18, {'ott_len': 33, 'ott_percent': 167, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['e5NWj', 60, 43, 21.21, 63, 11, 1.18, {'ott_len': 33, 'ott_percent': 167, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 57}], ['eINHs', 56, 62, 21.11, 58, 12, 1.54, {'ott_len': 33, 'ott_percent': 192, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['ePfHd', 71, 21, 21.03, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 139, 'tps_qty_index': 51, 'max_risk': 53}], ['ePgHs', 69, 23, 21.85, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 140, 'tps_qty_index': 51, 'max_risk': 62}], ['ePfH]', 71, 21, 21.03, 57, 7, 1.45, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 139, 'tps_qty_index': 51, 'max_risk': 49}], ['eINHd', 56, 62, 21.11, 58, 12, 1.54, {'ott_len': 33, 'ott_percent': 192, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], [')QjFa', 70, 27, 20.1, 55, 9, 1.47, {'ott_len': 25, 'ott_percent': 202, 'ott_bw': 144, 'tps_qty_index': 47, 'max_risk': 51}], ['-VWhv', 59, 61, 20.05, 58, 12, 1.5, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 101, 'max_risk': 64}], ['3OWrn', 57, 59, 19.99, 66, 12, 1.58, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 117, 'max_risk': 59}], ['-VWkv', 59, 61, 19.99, 58, 12, 1.56, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 106, 'max_risk': 64}], ['eVP^v', 56, 65, 19.39, 53, 13, 1.44, {'ott_len': 33, 'ott_percent': 209, 'ott_bw': 111, 'tps_qty_index': 85, 'max_risk': 64}], ['eVPev', 52, 65, 18.37, 53, 13, 1.21, {'ott_len': 33, 'ott_percent': 209, 'ott_bw': 111, 'tps_qty_index': 97, 'max_risk': 64}], [')Zwhj', 68, 19, 16.47, 57, 7, 1.07, {'ott_len': 25, 'ott_percent': 214, 'ott_bw': 160, 'tps_qty_index': 101, 'max_risk': 57}], ['7rX*c', 44, 67, 14.36, 53, 13, 1.62, {'ott_len': 27, 'ott_percent': 244, 'ott_bw': 121, 'tps_qty_index': 3, 'max_risk': 52}], ['B\\\\-M', 48, 54, 11.48, 54, 11, 1.29, {'ott_len': 28, 'ott_percent': 216, 'ott_bw': 126, 'tps_qty_index': 8, 'max_risk': 38}], ['Y)eam', 70, 10, 5.43, 60, 5, 1.1, {'ott_len': 31, 'ott_percent': 152, 'ott_bw': 137, 'tps_qty_index': 90, 'max_risk': 59}], ['5l324', 38, 85, 9.96, 42, 14, 1.65, {'ott_len': 27, 'ott_percent': 236, 'ott_bw': 75, 'tps_qty_index': 16, 'max_risk': 23}], ['*r.P[', 41, 89, 8.79, 47, 17, 1.86, {'ott_len': 25, 'ott_percent': 244, 'ott_bw': 69, 'tps_qty_index': 63, 'max_risk': 47}], ['@>W*?', 54, 33, 17.27, 44, 9, 1.32, {'ott_len': 28, 'ott_percent': 179, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 30}], ['-.WWv', 55, 34, 9.74, 55, 9, 1.07, {'ott_len': 26, 'ott_percent': 159, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 64}], ['?7WWv', 58, 34, 17.24, 50, 10, 1.55, {'ott_len': 28, 'ott_percent': 170, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 64}], ['NKg8L', 76, 21, 33.19, 57, 7, 0.2, {'ott_len': 30, 'ott_percent': 195, 'ott_bw': 140, 'tps_qty_index': 25, 'max_risk': 38}], ['(ev0m', 64, 25, 28.36, 42, 7, -0.36, {'ott_len': 25, 'ott_percent': 227, 'ott_bw': 159, 'tps_qty_index': 13, 'max_risk': 59}], ['>2WpP', 74, 27, 26.71, 60, 10, -0.83, {'ott_len': 28, 'ott_percent': 164, 'ott_bw': 120, 'tps_qty_index': 114, 'max_risk': 40}], ['@VW*F', 49, 55, 26.22, 45, 11, -0.99, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 34}], ['@VW*A', 49, 55, 25.8, 45, 11, -0.99, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 31}], ['-Vo*v', 64, 25, 25.18, 42, 7, -0.84, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 150, 'tps_qty_index': 3, 'max_risk': 64}], ['?VWcv', 55, 58, 25.46, 58, 12, 0.61, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 93, 'max_risk': 64}], ['e7PWv', 60, 41, 24.06, 54, 11, -0.66, {'ott_len': 33, 'ott_percent': 170, 'ott_bw': 111, 'tps_qty_index': 74, 'max_risk': 64}], ['-VW*9', 57, 49, 23.19, 27, 11, -0.52, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 26}], ['-VWWG', 59, 59, 23.18, 50, 12, 0.4, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 35}], ['eVP1v', 50, 65, 23.71, 50, 12, 0.48, {'ott_len': 33, 'ott_percent': 209, 'ott_bw': 111, 'tps_qty_index': 14, 'max_risk': 64}], ['=bVNC', 46, 62, 22.8, 50, 12, -0.59, {'ott_len': 28, 'ott_percent': 224, 'ott_bw': 119, 'tps_qty_index': 60, 'max_risk': 32}], ['@cW*?', 47, 61, 22.93, 50, 12, 0.29, {'ott_len': 28, 'ott_percent': 225, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 30}], ['-VWWV', 58, 60, 22.96, 50, 12, 0.4, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 44}], ['?VWdv', 55, 59, 22.01, 58, 12, 0.73, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 95, 'max_risk': 64}], ['i5NHd', 61, 42, 22.65, 63, 11, 0.55, {'ott_len': 33, 'ott_percent': 167, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['a-Hnj', 57, 47, 21.77, 58, 12, -0.88, {'ott_len': 32, 'ott_percent': 157, 'ott_bw': 101, 'tps_qty_index': 111, 'max_risk': 57}], ['J,QTc', 64, 34, 21.45, 50, 10, 0.34, {'ott_len': 29, 'ott_percent': 156, 'ott_bw': 112, 'tps_qty_index': 70, 'max_risk': 52}], ['k:_Pw', 63, 22, 21.54, 50, 8, 0.39, {'ott_len': 33, 'ott_percent': 174, 'ott_bw': 130, 'tps_qty_index': 63, 'max_risk': 65}], ['eINWv', 51, 62, 21.5, 58, 12, 0.02, {'ott_len': 33, 'ott_percent': 192, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['eINWh', 51, 62, 21.5, 58, 12, 0.02, {'ott_len': 33, 'ott_percent': 192, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 56}], ['eINWd', 51, 62, 21.5, 58, 12, 0.02, {'ott_len': 33, 'ott_percent': 192, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['_0U,B', 68, 22, 20.64, 42, 7, 0.6, {'ott_len': 32, 'ott_percent': 161, 'ott_bw': 117, 'tps_qty_index': 6, 'max_risk': 31}], ['-kT.?', 42, 69, 20.62, 42, 14, 0.04, {'ott_len': 26, 'ott_percent': 235, 'ott_bw': 116, 'tps_qty_index': 9, 'max_risk': 30}], ['-VXHN', 57, 59, 20.07, 50, 12, -0.61, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 121, 'tps_qty_index': 51, 'max_risk': 39}], ['@VW.?', 49, 55, 20.38, 45, 11, -0.98, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 9, 'max_risk': 30}], ['?VWpv', 59, 59, 20.83, 58, 12, -0.02, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 114, 'max_risk': 64}], ['e9PWv', 62, 45, 20.42, 54, 11, 0.42, {'ott_len': 33, 'ott_percent': 172, 'ott_bw': 111, 'tps_qty_index': 74, 'max_risk': 64}], ['EVsWv', 72, 18, 20.39, 50, 6, 0.49, {'ott_len': 29, 'ott_percent': 209, 'ott_bw': 155, 'tps_qty_index': 74, 'max_risk': 64}], ['?VPWv', 51, 72, 20.85, 50, 14, 0.25, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 111, 'tps_qty_index': 74, 'max_risk': 64}], [';VPWv', 50, 72, 20.52, 50, 14, 0.31, {'ott_len': 27, 'ott_percent': 209, 'ott_bw': 111, 'tps_qty_index': 74, 'max_risk': 64}], ['-VWsv', 60, 61, 19.14, 58, 12, 0.61, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 119, 'max_risk': 64}], ['eHNWf', 51, 62, 19.31, 58, 12, 0.51, {'ott_len': 33, 'ott_percent': 191, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 54}], ['9nRqH', 50, 68, 17.3, 57, 14, -0.47, {'ott_len': 27, 'ott_percent': 239, 'ott_bw': 114, 'tps_qty_index': 116, 'max_risk': 35}], ['25YiA', 70, 24, 17.3, 44, 9, -0.96, {'ott_len': 26, 'ott_percent': 167, 'ott_bw': 122, 'tps_qty_index': 103, 'max_risk': 31}], ['Y5Ow@', 64, 37, 13.46, 70, 10, -0.89, {'ott_len': 31, 'ott_percent': 167, 'ott_bw': 110, 'tps_qty_index': 125, 'max_risk': 30}], ['J,MHt', 61, 42, 17.84, 50, 12, -0.3, {'ott_len': 29, 'ott_percent': 156, 'ott_bw': 107, 'tps_qty_index': 51, 'max_risk': 63}], ['\\7gAL', 77, 9, 10.56, 66, 3, -0.91, {'ott_len': 32, 'ott_percent': 170, 'ott_bw': 140, 'tps_qty_index': 40, 'max_risk': 38}], ['dl-t^', 46, 82, 7.41, 43, 16, -0.75, {'ott_len': 33, 'ott_percent': 236, 'ott_bw': 67, 'tps_qty_index': 120, 'max_risk': 49}], ['4pC[`', 46, 80, 7.63, 50, 16, 0.67, {'ott_len': 27, 'ott_percent': 241, 'ott_bw': 95, 'tps_qty_index': 81, 'max_risk': 50}], ['3qWXn', 52, 68, 17.41, 50, 14, 0.67, {'ott_len': 26, 'ott_percent': 242, 'ott_bw': 120, 'tps_qty_index': 76, 'max_risk': 59}], ['3rWXn', 50, 69, 15.25, 50, 14, 0.62, {'ott_len': 26, 'ott_percent': 244, 'ott_bw': 120, 'tps_qty_index': 76, 'max_risk': 59}], ['wVW*?', 48, 52, 15.52, 40, 10, -0.23, {'ott_len': 35, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 30}], ['3*WXn', 56, 32, 10.9, 55, 9, 0.06, {'ott_len': 26, 'ott_percent': 154, 'ott_bw': 120, 'tps_qty_index': 76, 'max_risk': 59}], ['TOWXn', 52, 48, 12.22, 58, 12, 0.58, {'ott_len': 31, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 76, 'max_risk': 59}], ['-VWvv', 62, 61, 17.02, 58, 12, -0.13, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 123, 'max_risk': 64}], ['-Ve*v', 52, 36, 14.45, 50, 10, 0.97, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 137, 'tps_qty_index': 3, 'max_risk': 64}], ['-Vc*v', 50, 42, 12.04, 50, 10, 0.84, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 135, 'tps_qty_index': 3, 'max_risk': 64}], ['e9NHq', 63, 46, 26.96, 50, 12, -1.99, {'ott_len': 33, 'ott_percent': 172, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['e1NHq', 65, 40, 21.02, 54, 11, -1.96, {'ott_len': 33, 'ott_percent': 162, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['e0NHp', 64, 39, 19.52, 54, 11, -1.94, {'ott_len': 33, 'ott_percent': 161, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['e0NHq', 64, 39, 19.52, 54, 11, -1.94, {'ott_len': 33, 'ott_percent': 161, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['h2NHd', 62, 40, 20.13, 54, 11, -1.84, {'ott_len': 33, 'ott_percent': 164, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['ePaHp', 65, 32, 20.16, 44, 9, -1.61, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 132, 'tps_qty_index': 51, 'max_risk': 61}], ['-VW*=', 55, 54, 29.83, 33, 12, -1.75, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 28}], ['?VWW[', 56, 58, 27.76, 50, 12, -1.72, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 47}], ['e@NWd', 57, 52, 27.93, 50, 12, -1.89, {'ott_len': 33, 'ott_percent': 181, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['e8NHs', 64, 45, 27.6, 50, 12, -1.16, {'ott_len': 33, 'ott_percent': 171, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['h8NHs', 64, 45, 27.6, 50, 12, -1.16, {'ott_len': 33, 'ott_percent': 171, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['e8NHq', 64, 45, 27.6, 50, 12, -1.16, {'ott_len': 33, 'ott_percent': 171, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['e8NHt', 64, 45, 27.6, 50, 12, -1.16, {'ott_len': 33, 'ott_percent': 171, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 63}], ['?VWWJ', 56, 57, 26.06, 50, 12, -1.72, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 37}], ['e;NWv', 60, 48, 26.55, 50, 12, -1.97, {'ott_len': 33, 'ott_percent': 175, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['e;NWw', 60, 48, 26.55, 50, 12, -1.97, {'ott_len': 33, 'ott_percent': 175, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 65}], ['e;NWj', 60, 48, 26.55, 50, 12, -1.97, {'ott_len': 33, 'ott_percent': 175, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 57}], ['e9NH]', 62, 45, 26.83, 50, 12, -1.99, {'ott_len': 33, 'ott_percent': 172, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 49}], ['j9NH]', 62, 45, 26.83, 50, 12, -1.99, {'ott_len': 33, 'ott_percent': 172, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 49}], ['e9NHt', 63, 46, 26.96, 50, 12, -1.99, {'ott_len': 33, 'ott_percent': 172, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 63}], ['?VWWR', 55, 58, 25.89, 50, 12, -1.72, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 42}], ['?VWWQ', 55, 58, 25.89, 50, 12, -1.72, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 41}], ['e:OWd', 62, 45, 25.96, 50, 12, -1.64, {'ott_len': 33, 'ott_percent': 174, 'ott_bw': 110, 'tps_qty_index': 74, 'max_risk': 53}], ['-VlWv', 65, 26, 24.67, 44, 9, -1.59, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 146, 'tps_qty_index': 74, 'max_risk': 64}], ['7HgfU', 69, 23, 23.07, 42, 7, -1.84, {'ott_len': 27, 'ott_percent': 191, 'ott_bw': 140, 'tps_qty_index': 98, 'max_risk': 43}], ['@VW*Z', 48, 58, 23.55, 50, 12, -1.29, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 47}], ['@VW)?', 48, 54, 23.4, 45, 11, -1.08, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 2, 'max_risk': 30}], ['eAPWv', 56, 51, 23.45, 50, 12, -1.97, {'ott_len': 33, 'ott_percent': 182, 'ott_bw': 111, 'tps_qty_index': 74, 'max_risk': 64}], ['e9NWb', 60, 45, 23.04, 50, 12, -1.81, {'ott_len': 33, 'ott_percent': 172, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 52}], ['e:NH]', 62, 45, 23.82, 50, 12, -1.84, {'ott_len': 33, 'ott_percent': 174, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 49}], ['e:NHa', 62, 45, 23.82, 50, 12, -1.84, {'ott_len': 33, 'ott_percent': 174, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 51}], ['e:NHt', 63, 46, 23.95, 50, 12, -1.84, {'ott_len': 33, 'ott_percent': 174, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 63}], ['j:NH\\', 62, 45, 23.82, 50, 12, -1.84, {'ott_len': 33, 'ott_percent': 174, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 48}], ['e:NHp', 63, 46, 23.95, 50, 12, -1.84, {'ott_len': 33, 'ott_percent': 174, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['j:NHq', 63, 46, 23.95, 50, 12, -1.84, {'ott_len': 33, 'ott_percent': 174, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['FVW*?', 50, 53, 22.75, 36, 11, -1.52, {'ott_len': 29, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 30}], ['e9NWh', 58, 46, 22.82, 50, 12, -1.81, {'ott_len': 33, 'ott_percent': 172, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 56}], ['e8NWq', 58, 46, 22.74, 50, 12, -1.4, {'ott_len': 33, 'ott_percent': 171, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 61}], ['e8NWh', 58, 46, 22.74, 50, 12, -1.4, {'ott_len': 33, 'ott_percent': 171, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 56}], ['i9NWn', 58, 46, 22.82, 50, 12, -1.81, {'ott_len': 33, 'ott_percent': 172, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 59}], ['e9NWd', 58, 46, 22.82, 50, 12, -1.81, {'ott_len': 33, 'ott_percent': 172, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['@VW*S', 46, 58, 21.65, 50, 12, -1.29, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 42}], ['@VW*V', 46, 58, 21.65, 50, 12, -1.29, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 44}], ['e:NWn', 59, 47, 21.88, 50, 12, -1.64, {'ott_len': 33, 'ott_percent': 174, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 59}], ['e:NWh', 59, 47, 21.88, 50, 12, -1.64, {'ott_len': 33, 'ott_percent': 174, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 56}], ['e:NWd', 59, 47, 21.88, 50, 12, -1.64, {'ott_len': 33, 'ott_percent': 174, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['e:NWf', 59, 47, 21.88, 50, 12, -1.64, {'ott_len': 33, 'ott_percent': 174, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 54}], ['\\POWd', 54, 64, 21.12, 53, 13, -1.27, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 110, 'tps_qty_index': 74, 'max_risk': 53}], ['cPOWd', 54, 64, 21.12, 53, 13, -1.27, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 110, 'tps_qty_index': 74, 'max_risk': 53}], ['^POWd', 54, 64, 21.12, 53, 13, -1.27, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 110, 'tps_qty_index': 74, 'max_risk': 53}], ['e2NHt', 63, 41, 20.55, 54, 11, -1.84, {'ott_len': 33, 'ott_percent': 164, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 63}], ['j2NHq', 63, 41, 20.55, 54, 11, -1.84, {'ott_len': 33, 'ott_percent': 164, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['jPaHq', 65, 32, 20.16, 44, 9, -1.61, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 132, 'tps_qty_index': 51, 'max_risk': 61}], ['ePaHq', 65, 32, 20.16, 44, 9, -1.61, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 132, 'tps_qty_index': 51, 'max_risk': 61}], ['@VWF?', 54, 55, 19.17, 45, 11, -1.64, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 47, 'max_risk': 30}], ['GVPWv', 48, 72, 19.34, 50, 14, -1.39, {'ott_len': 29, 'ott_percent': 209, 'ott_bw': 111, 'tps_qty_index': 74, 'max_risk': 64}], ['e5NWJ', 62, 40, 19.25, 54, 11, -1.74, {'ott_len': 33, 'ott_percent': 167, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 37}], ['e5NWR', 62, 40, 19.3, 54, 11, -1.74, {'ott_len': 33, 'ott_percent': 167, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['e0NHs', 64, 39, 19.52, 54, 11, -1.94, {'ott_len': 33, 'ott_percent': 161, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['e0NHt', 64, 39, 19.52, 54, 11, -1.94, {'ott_len': 33, 'ott_percent': 161, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 63}], ['RIlVK', 76, 13, 16.5, 50, 4, -1.62, {'ott_len': 30, 'ott_percent': 192, 'ott_bw': 146, 'tps_qty_index': 73, 'max_risk': 37}], ['sGTY]', 53, 49, 12.23, 50, 12, -1.72, {'ott_len': 34, 'ott_percent': 190, 'ott_bw': 116, 'tps_qty_index': 78, 'max_risk': 49}], ['WrVZ;', 49, 65, 9.97, 50, 10, -1.45, {'ott_len': 31, 'ott_percent': 244, 'ott_bw': 119, 'tps_qty_index': 79, 'max_risk': 27}], ['E^c[A', 58, 34, 10.18, 50, 10, -1.0, {'ott_len': 29, 'ott_percent': 219, 'ott_bw': 135, 'tps_qty_index': 81, 'max_risk': 31}], ['vqFsK', 50, 68, 6.1, 42, 14, -1.51, {'ott_len': 35, 'ott_percent': 242, 'ott_bw': 99, 'tps_qty_index': 119, 'max_risk': 37}], ['.a/9-', 40, 74, 9.52, 31, 16, -1.98, {'ott_len': 26, 'ott_percent': 222, 'ott_bw': 70, 'tps_qty_index': 27, 'max_risk': 18}], ['g>=Zq', 43, 83, 6.35, 41, 17, -1.89, {'ott_len': 33, 'ott_percent': 179, 'ott_bw': 87, 'tps_qty_index': 79, 'max_risk': 61}], ['@VW4?', 49, 55, 17.59, 45, 11, -1.73, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 19, 'max_risk': 30}], ['@Vb*?', 54, 31, 14.25, 37, 8, -1.93, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 134, 'tps_qty_index': 3, 'max_risk': 30}], ['@TW*?', 51, 56, 14.24, 45, 11, -1.0, {'ott_len': 28, 'ott_percent': 206, 'ott_bw': 120, 'tps_qty_index': 3, 'max_risk': 30}], ['7/Wev', 64, 28, 15.79, 50, 10, -1.65, {'ott_len': 27, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 97, 'max_risk': 64}], ['eRNW-', 53, 43, 15.93, 33, 9, -1.56, {'ott_len': 33, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 18}], ['eRNW,', 53, 43, 15.93, 33, 9, -1.56, {'ott_len': 33, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 18}], ['j-NHq', 67, 37, 23.89, 45, 11, -2.69, {'ott_len': 33, 'ott_percent': 157, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['j.NHq', 65, 38, 20.89, 54, 11, -2.87, {'ott_len': 33, 'ott_percent': 159, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['e.NHj', 65, 38, 20.89, 54, 11, -2.87, {'ott_len': 33, 'ott_percent': 159, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 57}], ['d7NHq', 62, 45, 24.07, 50, 12, -2.3, {'ott_len': 33, 'ott_percent': 170, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['e,NHq', 66, 36, 21.8, 45, 11, -2.69, {'ott_len': 33, 'ott_percent': 156, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['e,NHm', 66, 36, 21.8, 45, 11, -2.69, {'ott_len': 33, 'ott_percent': 156, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 59}], ['e,NHj', 66, 36, 21.8, 45, 11, -2.69, {'ott_len': 33, 'ott_percent': 156, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 57}], ['j,NHq', 66, 36, 21.8, 45, 11, -2.69, {'ott_len': 33, 'ott_percent': 156, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['eBNHq', 58, 55, 25.11, 50, 12, -2.45, {'ott_len': 33, 'ott_percent': 184, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['e>NWv', 60, 50, 29.02, 50, 12, -2.16, {'ott_len': 33, 'ott_percent': 179, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['e>NWh', 60, 50, 29.02, 50, 12, -2.16, {'ott_len': 33, 'ott_percent': 179, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 56}], ['e>NWd', 60, 50, 29.02, 50, 12, -2.16, {'ott_len': 33, 'ott_percent': 179, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['e?NWv', 58, 51, 27.13, 50, 12, -2.16, {'ott_len': 33, 'ott_percent': 180, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['e?NWw', 58, 51, 27.13, 50, 12, -2.16, {'ott_len': 33, 'ott_percent': 180, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 65}], ['e?NWh', 58, 51, 27.13, 50, 12, -2.16, {'ott_len': 33, 'ott_percent': 180, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 56}], ['e?NW\\', 58, 51, 27.13, 50, 12, -2.16, {'ott_len': 33, 'ott_percent': 180, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 48}], ['eBOWd', 57, 52, 27.71, 50, 12, -2.03, {'ott_len': 33, 'ott_percent': 184, 'ott_bw': 110, 'tps_qty_index': 74, 'max_risk': 53}], ['8VT.?', 51, 64, 26.5, 41, 12, -2.03, {'ott_len': 27, 'ott_percent': 209, 'ott_bw': 116, 'tps_qty_index': 9, 'max_risk': 30}], ['?VWW<', 57, 52, 26.02, 36, 11, -2.25, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 74, 'max_risk': 28}], ['e3NWv', 62, 40, 25.76, 54, 11, -2.49, {'ott_len': 33, 'ott_percent': 165, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['e2NWb', 64, 39, 25.19, 54, 11, -2.17, {'ott_len': 33, 'ott_percent': 164, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 52}], ['e<OWd', 61, 47, 25.64, 50, 12, -2.07, {'ott_len': 33, 'ott_percent': 176, 'ott_bw': 110, 'tps_qty_index': 74, 'max_risk': 53}], ['e3NWd', 64, 39, 25.98, 54, 11, -2.49, {'ott_len': 33, 'ott_percent': 165, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['e>NHs', 60, 50, 25.23, 50, 12, -2.31, {'ott_len': 33, 'ott_percent': 179, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['eBNHs', 58, 55, 25.11, 50, 12, -2.45, {'ott_len': 33, 'ott_percent': 184, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['hBNHs', 58, 55, 25.11, 50, 12, -2.45, {'ott_len': 33, 'ott_percent': 184, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['e>NH]', 60, 50, 25.23, 50, 12, -2.31, {'ott_len': 33, 'ott_percent': 179, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 49}], ['i>NHd', 60, 50, 25.23, 50, 12, -2.31, {'ott_len': 33, 'ott_percent': 179, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['hBNHf', 58, 55, 25.11, 50, 12, -2.45, {'ott_len': 33, 'ott_percent': 184, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 54}], ['e>NH\\', 60, 50, 25.23, 50, 12, -2.31, {'ott_len': 33, 'ott_percent': 179, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 48}], ['jBNH\\', 58, 55, 25.11, 50, 12, -2.45, {'ott_len': 33, 'ott_percent': 184, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 48}], ['hBNHt', 58, 55, 25.11, 50, 12, -2.45, {'ott_len': 33, 'ott_percent': 184, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 63}], ['jBNHq', 58, 55, 25.11, 50, 12, -2.45, {'ott_len': 33, 'ott_percent': 184, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['h>NHd', 60, 50, 25.23, 50, 12, -2.31, {'ott_len': 33, 'ott_percent': 179, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['e>NHq', 60, 50, 25.23, 50, 12, -2.31, {'ott_len': 33, 'ott_percent': 179, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['eBNHm', 58, 55, 25.11, 50, 12, -2.45, {'ott_len': 33, 'ott_percent': 184, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 59}], ['eBNWv', 57, 56, 24.69, 50, 12, -2.21, {'ott_len': 33, 'ott_percent': 184, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['e1NWv', 64, 39, 24.88, 54, 11, -2.15, {'ott_len': 33, 'ott_percent': 162, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['e1NWh', 64, 39, 24.88, 54, 11, -2.15, {'ott_len': 33, 'ott_percent': 162, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 56}], ['e1NWf', 64, 39, 24.88, 54, 11, -2.15, {'ott_len': 33, 'ott_percent': 162, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 54}], ['e1NWj', 64, 39, 24.88, 54, 11, -2.15, {'ott_len': 33, 'ott_percent': 162, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 57}], ['eBNWd', 57, 56, 24.69, 50, 12, -2.21, {'ott_len': 33, 'ott_percent': 184, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['eDOWd', 57, 56, 24.62, 50, 12, -2.3, {'ott_len': 33, 'ott_percent': 186, 'ott_bw': 110, 'tps_qty_index': 74, 'max_risk': 53}], ['e7NHs', 62, 45, 24.07, 50, 12, -2.3, {'ott_len': 33, 'ott_percent': 170, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['e-NHd', 67, 37, 24.02, 45, 11, -2.69, {'ott_len': 33, 'ott_percent': 157, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['i-NHd', 67, 37, 24.02, 45, 11, -2.69, {'ott_len': 33, 'ott_percent': 157, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['j;NH]', 61, 47, 24.79, 50, 12, -2.13, {'ott_len': 33, 'ott_percent': 175, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 49}], ['h7NHd', 62, 45, 24.07, 50, 12, -2.3, {'ott_len': 33, 'ott_percent': 170, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['j7NHq', 62, 45, 24.07, 50, 12, -2.3, {'ott_len': 33, 'ott_percent': 170, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['h;NHt', 61, 47, 24.79, 50, 12, -2.13, {'ott_len': 33, 'ott_percent': 175, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 63}], ['e7NHq', 62, 45, 24.07, 50, 12, -2.3, {'ott_len': 33, 'ott_percent': 170, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['e=NWj', 56, 51, 23.05, 50, 12, -2.08, {'ott_len': 33, 'ott_percent': 177, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 57}], ['e4NWf', 60, 41, 23.29, 54, 11, -2.3, {'ott_len': 33, 'ott_percent': 166, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 54}], ['e4NWj', 60, 41, 23.29, 54, 11, -2.3, {'ott_len': 33, 'ott_percent': 166, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 57}], ['e4NWd', 62, 40, 23.64, 54, 11, -2.3, {'ott_len': 33, 'ott_percent': 166, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['e0NWA', 68, 32, 23.19, 44, 9, -2.25, {'ott_len': 33, 'ott_percent': 161, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 31}], ['e?NHd', 58, 51, 23.62, 50, 12, -2.32, {'ott_len': 33, 'ott_percent': 180, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['e?NHs', 58, 51, 23.62, 50, 12, -2.32, {'ott_len': 33, 'ott_percent': 180, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['h-NHs', 67, 37, 23.89, 45, 11, -2.69, {'ott_len': 33, 'ott_percent': 157, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['e=NHa', 58, 51, 23.74, 50, 12, -2.16, {'ott_len': 33, 'ott_percent': 177, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 51}], ['h=NHf', 58, 51, 23.74, 50, 12, -2.16, {'ott_len': 33, 'ott_percent': 177, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 54}], ['e@NHq', 57, 52, 23.73, 50, 12, -2.04, {'ott_len': 33, 'ott_percent': 181, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['h=NHd', 58, 51, 23.74, 50, 12, -2.16, {'ott_len': 33, 'ott_percent': 177, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['e-NHt', 67, 37, 23.89, 45, 11, -2.69, {'ott_len': 33, 'ott_percent': 157, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 63}], ['j=NHq', 58, 51, 23.74, 50, 12, -2.16, {'ott_len': 33, 'ott_percent': 177, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['@Vi*?', 64, 17, 22.45, 37, 8, -2.47, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 142, 'tps_qty_index': 3, 'max_risk': 30}], ['e/NWv', 62, 37, 22.25, 54, 11, -2.45, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['<\\TjS', 56, 66, 21.6, 46, 13, -2.7, {'ott_len': 28, 'ott_percent': 216, 'ott_bw': 116, 'tps_qty_index': 104, 'max_risk': 42}], ['e7NWh', 60, 45, 21.0, 50, 12, -2.17, {'ott_len': 33, 'ott_percent': 170, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 56}], ['e0NWd', 62, 37, 21.03, 54, 11, -2.27, {'ott_len': 33, 'ott_percent': 161, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['e3NWb', 63, 38, 21.49, 54, 11, -2.49, {'ott_len': 33, 'ott_percent': 165, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 52}], ['e0NWb', 62, 37, 21.03, 54, 11, -2.27, {'ott_len': 33, 'ott_percent': 161, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 52}], ['e7NWd', 60, 45, 21.0, 50, 12, -2.17, {'ott_len': 33, 'ott_percent': 170, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['e/NHd', 65, 38, 21.01, 54, 11, -2.19, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['e6NHd', 62, 45, 21.75, 50, 12, -2.48, {'ott_len': 33, 'ott_percent': 169, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['e/NHs', 65, 38, 21.13, 54, 11, -2.19, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['e.NHb', 65, 38, 21.02, 54, 11, -2.87, {'ott_len': 33, 'ott_percent': 159, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 52}], ['h3NHs', 63, 41, 21.19, 54, 11, -2.64, {'ott_len': 33, 'ott_percent': 165, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['e3NHt', 63, 41, 21.19, 54, 11, -2.64, {'ott_len': 33, 'ott_percent': 165, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 63}], ['h/NHt', 65, 38, 21.13, 54, 11, -2.19, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 63}], ['e/NHp', 65, 38, 21.13, 54, 11, -2.19, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['e,NHp', 66, 36, 21.8, 45, 11, -2.69, {'ott_len': 33, 'ott_percent': 156, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['g,NHq', 66, 36, 21.8, 45, 11, -2.69, {'ott_len': 33, 'ott_percent': 156, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['e/NHq', 65, 38, 21.13, 54, 11, -2.19, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['e6NHm', 62, 45, 21.75, 50, 12, -2.48, {'ott_len': 33, 'ott_percent': 169, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 59}], ['e/NHj', 65, 38, 21.13, 54, 11, -2.19, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 57}], ['K;eUR', 78, 14, 20.85, 40, 5, -2.09, {'ott_len': 29, 'ott_percent': 175, 'ott_bw': 137, 'tps_qty_index': 71, 'max_risk': 42}], ['eRiWR', 78, 19, 20.19, 42, 7, -2.58, {'ott_len': 33, 'ott_percent': 204, 'ott_bw': 142, 'tps_qty_index': 74, 'max_risk': 42}], ['e0NWv', 60, 38, 20.6, 54, 11, -2.27, {'ott_len': 33, 'ott_percent': 161, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['e8NWA', 61, 42, 20.67, 36, 11, -2.69, {'ott_len': 33, 'ott_percent': 171, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 31}], ['\\PNHd', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['cPNHd', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['^PNHs', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['`PNHs', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['aPNHd', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['e.NHs', 65, 38, 20.89, 54, 11, -2.87, {'ott_len': 33, 'ott_percent': 159, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['e7NHb', 60, 43, 20.32, 50, 12, -2.3, {'ott_len': 33, 'ott_percent': 170, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 52}], ['_PNHs', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['\\PNHs', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 62}], ['^PNHb', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 52}], ['e7NH]', 60, 43, 20.32, 50, 12, -2.3, {'ott_len': 33, 'ott_percent': 170, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 49}], ['cPNH]', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 49}], ['e7NHa', 60, 43, 20.32, 50, 12, -2.3, {'ott_len': 33, 'ott_percent': 170, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 51}], ['h.NHf', 65, 38, 20.89, 54, 11, -2.87, {'ott_len': 33, 'ott_percent': 159, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 54}], ['bPNH]', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 49}], ['aPNHf', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 54}], ['\\PNH\\', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 48}], ['e.NHq', 65, 38, 20.89, 54, 11, -2.87, {'ott_len': 33, 'ott_percent': 159, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['e7NH\\', 60, 43, 20.32, 50, 12, -2.3, {'ott_len': 33, 'ott_percent': 170, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 48}], ['aPNHq', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['cPNHq', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['`PNHq', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['bPNHd', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['cPNHt', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 63}], ['aPNHt', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 63}], ['\\PNHt', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 63}], ['bPNHq', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['\\PNH]', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 49}], ['_PNH]', 56, 65, 20.36, 50, 14, -2.16, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 49}], ['@kPP^', 41, 70, 19.45, 50, 16, -2.1, {'ott_len': 28, 'ott_percent': 235, 'ott_bw': 111, 'tps_qty_index': 63, 'max_risk': 49}], ['e6NWv', 60, 45, 19.84, 50, 12, -2.21, {'ott_len': 33, 'ott_percent': 169, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['e6NWh', 60, 45, 19.84, 50, 12, -2.21, {'ott_len': 33, 'ott_percent': 169, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 56}], ['e6NWq', 60, 45, 19.84, 50, 12, -2.21, {'ott_len': 33, 'ott_percent': 169, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 61}], ['e6NWw', 60, 45, 19.84, 50, 12, -2.21, {'ott_len': 33, 'ott_percent': 169, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 65}], ['i6NWn', 60, 45, 19.84, 50, 12, -2.21, {'ott_len': 33, 'ott_percent': 169, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 59}], ['e4NW\\', 61, 39, 19.48, 54, 11, -2.3, {'ott_len': 33, 'ott_percent': 166, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 48}], ['e6NWj', 60, 45, 19.84, 50, 12, -2.21, {'ott_len': 33, 'ott_percent': 169, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 57}], ['e6NWd', 60, 45, 19.84, 50, 12, -2.21, {'ott_len': 33, 'ott_percent': 169, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['e4NHt', 61, 42, 19.0, 54, 11, -2.46, {'ott_len': 33, 'ott_percent': 166, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 63}], ['j4NHq', 61, 42, 19.0, 54, 11, -2.46, {'ott_len': 33, 'ott_percent': 166, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['e4NHq', 61, 42, 19.0, 54, 11, -2.46, {'ott_len': 33, 'ott_percent': 166, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 61}], ['C8]k_', 65, 26, 18.47, 44, 9, -2.66, {'ott_len': 28, 'ott_percent': 171, 'ott_bw': 127, 'tps_qty_index': 106, 'max_risk': 50}], ['e-NH]', 64, 37, 18.5, 45, 11, -2.69, {'ott_len': 33, 'ott_percent': 157, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 49}], ['h4NHd', 60, 41, 18.79, 54, 11, -2.46, {'ott_len': 33, 'ott_percent': 166, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['j-NH\\', 64, 37, 18.5, 45, 11, -2.69, {'ott_len': 33, 'ott_percent': 157, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 48}], ['R:inl', 66, 15, 15.11, 40, 5, -2.01, {'ott_len': 30, 'ott_percent': 174, 'ott_bw': 142, 'tps_qty_index': 111, 'max_risk': 58}], ['X^)d*', 43, 65, 12.56, 33, 9, -2.31, {'ott_len': 31, 'ott_percent': 219, 'ott_bw': 62, 'tps_qty_index': 95, 'max_risk': 16}], ['SDLT<', 50, 65, 10.21, 41, 12, -2.7, {'ott_len': 30, 'ott_percent': 186, 'ott_bw': 106, 'tps_qty_index': 70, 'max_risk': 28}], ['^sssF', 66, 24, 9.55, 37, 8, -2.2, {'ott_len': 32, 'ott_percent': 245, 'ott_bw': 155, 'tps_qty_index': 119, 'max_risk': 34}], ['[WO9S', 46, 71, 8.48, 46, 13, -2.89, {'ott_len': 31, 'ott_percent': 210, 'ott_bw': 110, 'tps_qty_index': 27, 'max_risk': 42}], ['QOE9Q', 44, 84, 11.3, 37, 16, -2.55, {'ott_len': 30, 'ott_percent': 200, 'ott_bw': 97, 'tps_qty_index': 27, 'max_risk': 41}], [')cP)W', 41, 79, 9.64, 37, 16, -2.09, {'ott_len': 25, 'ott_percent': 225, 'ott_bw': 111, 'tps_qty_index': 2, 'max_risk': 45}], ['@VW^?', 56, 55, 17.09, 45, 11, -2.3, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 85, 'max_risk': 30}], ['@VW\\?', 54, 55, 17.56, 45, 11, -2.1, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 82, 'max_risk': 30}], ['@VWZ?', 56, 55, 16.59, 45, 11, -2.23, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 79, 'max_risk': 30}], ['@VW]?', 54, 55, 16.56, 45, 11, -2.44, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 84, 'max_risk': 30}], ['@VWd?', 54, 55, 14.89, 45, 11, -2.49, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 95, 'max_risk': 30}], ['@VWf?', 54, 55, 14.28, 45, 11, -2.69, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 98, 'max_risk': 30}], ['-VrWv', 65, 20, 17.86, 42, 7, -2.17, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 154, 'tps_qty_index': 74, 'max_risk': 64}], ['1VsWv', 65, 20, 17.45, 42, 7, -2.17, {'ott_len': 26, 'ott_percent': 209, 'ott_bw': 155, 'tps_qty_index': 74, 'max_risk': 64}], ['e/NW\\', 61, 36, 17.85, 54, 11, -2.45, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 48}], ['Y/Wev', 69, 23, 23.99, 44, 9, -3.6, {'ott_len': 31, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 97, 'max_risk': 64}], ['CRgWv', 65, 26, 29.14, 40, 10, -3.94, {'ott_len': 28, 'ott_percent': 204, 'ott_bw': 140, 'tps_qty_index': 74, 'max_risk': 64}], ['m)C^V', 60, 53, 27.68, 42, 14, -3.55, {'ott_len': 34, 'ott_percent': 152, 'ott_bw': 95, 'tps_qty_index': 85, 'max_risk': 44}], ['e/W@v', 73, 23, 26.58, 44, 9, -3.49, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 38, 'max_risk': 64}], ['e/W8v', 69, 23, 25.21, 44, 9, -3.47, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 25, 'max_risk': 64}], ['e/W1v', 65, 23, 25.37, 44, 9, -3.52, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 14, 'max_risk': 64}], ['e-NWd', 63, 36, 25.16, 54, 11, -3.31, {'ott_len': 33, 'ott_percent': 157, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['e-NWb', 63, 36, 25.16, 54, 11, -3.31, {'ott_len': 33, 'ott_percent': 157, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 52}], ['e/WPv', 69, 23, 24.78, 44, 9, -3.77, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 63, 'max_risk': 64}], ['e-NWh', 63, 36, 24.99, 54, 11, -3.31, {'ott_len': 33, 'ott_percent': 157, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 56}], ['e-NWf', 63, 36, 24.99, 54, 11, -3.31, {'ott_len': 33, 'ott_percent': 157, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 54}], ['_LbD_', 72, 25, 23.07, 40, 10, -3.93, {'ott_len': 32, 'ott_percent': 196, 'ott_bw': 134, 'tps_qty_index': 44, 'max_risk': 50}], ['e,NWd', 62, 35, 23.17, 54, 11, -3.31, {'ott_len': 33, 'ott_percent': 156, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['X)XB[', 70, 20, 22.09, 50, 8, -3.3, {'ott_len': 31, 'ott_percent': 152, 'ott_bw': 121, 'tps_qty_index': 41, 'max_risk': 47}], ['3OfXn', 60, 28, 22.12, 40, 10, -3.43, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 139, 'tps_qty_index': 76, 'max_risk': 59}], ['e.NWv', 62, 37, 22.35, 54, 11, -3.32, {'ott_len': 33, 'ott_percent': 159, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['eRiWJ', 83, 18, 22.3, 42, 7, -3.09, {'ott_len': 33, 'ott_percent': 204, 'ott_bw': 142, 'tps_qty_index': 74, 'max_risk': 37}], ['e.NWw', 62, 37, 22.35, 54, 11, -3.32, {'ott_len': 33, 'ott_percent': 159, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 65}], ['e.NWh', 62, 37, 22.35, 54, 11, -3.32, {'ott_len': 33, 'ott_percent': 159, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 56}], ['e,NWq', 62, 35, 22.94, 54, 11, -3.31, {'ott_len': 33, 'ott_percent': 156, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 61}], ['e.NWd', 62, 37, 22.36, 54, 11, -3.32, {'ott_len': 33, 'ott_percent': 159, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['e/We<', 85, 14, 20.78, 28, 7, -3.04, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 97, 'max_risk': 28}], ['e/NWR', 62, 35, 20.04, 45, 11, -3.41, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['kGfnf', 70, 20, 18.59, 42, 7, -3.46, {'ott_len': 33, 'ott_percent': 190, 'ott_bw': 139, 'tps_qty_index': 111, 'max_risk': 54}], ['v7E1i', 48, 68, 18.97, 46, 15, -3.27, {'ott_len': 35, 'ott_percent': 170, 'ott_bw': 97, 'tps_qty_index': 14, 'max_risk': 56}], ['`RNWR', 51, 68, 18.98, 46, 13, -3.74, {'ott_len': 32, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], [']RNWR', 51, 68, 18.98, 46, 13, -3.74, {'ott_len': 32, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['\\RNWR', 51, 68, 18.98, 46, 13, -3.74, {'ott_len': 32, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['cRNWR', 51, 68, 18.98, 46, 13, -3.74, {'ott_len': 32, 'ott_percent': 204, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['^PNWv', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['\\PNWv', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['^PNWn', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 59}], ['bPNWn', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 59}], ['aPNWn', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 59}], ['\\PNWh', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 56}], ['aPNWv', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['`PNWv', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['\\PNWq', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 61}], ['bPNWd', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['\\PNWd', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['\\PNWb', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 52}], ['`PNWd', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['_PNWd', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 53}], ['\\PNWj', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 57}], ['aPNW\\', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 48}], ['\\PNW\\', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 48}], ['cPNW\\', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 48}], [']PNWu', 53, 66, 18.86, 50, 14, -3.18, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['V5RbM', 56, 32, 17.96, 40, 10, -3.76, {'ott_len': 31, 'ott_percent': 167, 'ott_bw': 114, 'tps_qty_index': 92, 'max_risk': 38}], ['@VWu?', 56, 55, 11.61, 45, 11, -3.62, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 122, 'max_risk': 30}], ['@VWq?', 56, 55, 12.17, 45, 11, -3.39, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 116, 'max_risk': 30}], ['@VWq?', 56, 55, 12.17, 45, 11, -3.39, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 116, 'max_risk': 30}], ['@VWv?', 56, 55, 10.69, 45, 11, -3.89, {'ott_len': 28, 'ott_percent': 209, 'ott_bw': 120, 'tps_qty_index': 123, 'max_risk': 30}], ['e/_ev', 63, 19, 12.52, 50, 6, -3.82, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 130, 'tps_qty_index': 97, 'max_risk': 64}], ['-aT.?', 48, 68, 29.96, 30, 13, -4.13, {'ott_len': 26, 'ott_percent': 222, 'ott_bw': 116, 'tps_qty_index': 9, 'max_risk': 30}], ['a4TTT', 66, 30, 26.46, 40, 10, -4.88, {'ott_len': 32, 'ott_percent': 166, 'ott_bw': 116, 'tps_qty_index': 70, 'max_risk': 43}], ['e/Wav', 73, 23, 25.73, 44, 9, -4.58, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 90, 'max_risk': 64}], ['e/WYv', 73, 23, 25.39, 44, 9, -4.08, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 78, 'max_risk': 64}], ['e/Web', 77, 22, 25.37, 44, 9, -4.54, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 97, 'max_risk': 52}], ['e-Wev', 73, 23, 24.21, 44, 9, -4.85, {'ott_len': 33, 'ott_percent': 157, 'ott_bw': 120, 'tps_qty_index': 97, 'max_risk': 64}], ['eCNWv', 56, 57, 24.13, 46, 13, -4.71, {'ott_len': 33, 'ott_percent': 185, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 64}], ['eCNWn', 56, 57, 24.13, 46, 13, -4.71, {'ott_len': 33, 'ott_percent': 185, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 59}], ['eCNWb', 56, 57, 24.13, 46, 13, -4.71, {'ott_len': 33, 'ott_percent': 185, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 52}], ['eCNH]', 57, 56, 24.43, 46, 13, -4.31, {'ott_len': 33, 'ott_percent': 185, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 49}], ['eCNHa', 57, 56, 24.43, 46, 13, -4.31, {'ott_len': 33, 'ott_percent': 185, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 51}], ['iCNHd', 57, 56, 24.43, 46, 13, -4.31, {'ott_len': 33, 'ott_percent': 185, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['QJ^Fp', 63, 33, 23.55, 40, 10, -4.48, {'ott_len': 30, 'ott_percent': 194, 'ott_bw': 129, 'tps_qty_index': 47, 'max_risk': 61}], ['3OWX=', 57, 50, 23.53, 38, 13, -4.7, {'ott_len': 26, 'ott_percent': 200, 'ott_bw': 120, 'tps_qty_index': 76, 'max_risk': 28}], ['e/Wiv', 73, 23, 23.27, 44, 9, -4.55, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 103, 'max_risk': 64}], ['e/Wgv', 73, 23, 23.51, 44, 9, -4.67, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 100, 'max_risk': 64}], ['f/Wev', 73, 23, 23.09, 44, 9, -4.54, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 97, 'max_risk': 64}], ['e/Wet', 73, 23, 23.09, 44, 9, -4.54, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 97, 'max_risk': 63}], ['e/Wep', 73, 23, 23.09, 44, 9, -4.54, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 97, 'max_risk': 61}], ['e/Wen', 73, 23, 23.09, 44, 9, -4.54, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 97, 'max_risk': 59}], ['j/Wev', 73, 23, 23.09, 44, 9, -4.54, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 97, 'max_risk': 64}], ['e-NWR', 64, 34, 23.16, 45, 11, -4.31, {'ott_len': 33, 'ott_percent': 157, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['e/WeI', 78, 19, 22.53, 44, 9, -4.58, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 97, 'max_risk': 36}], ['Z<W[S', 64, 31, 21.82, 33, 9, -4.87, {'ott_len': 31, 'ott_percent': 176, 'ott_bw': 120, 'tps_qty_index': 81, 'max_risk': 42}], ['_/Wev', 66, 24, 21.32, 44, 9, -4.2, {'ott_len': 32, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 97, 'max_risk': 64}], ['e/WeL', 75, 20, 21.48, 44, 9, -4.58, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 97, 'max_risk': 38}], ['e.NWV', 62, 35, 20.28, 45, 11, -4.24, {'ott_len': 33, 'ott_percent': 159, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 44}], ['e0NWJ', 64, 34, 19.41, 45, 11, -4.97, {'ott_len': 33, 'ott_percent': 161, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 37}], ['e0NWR', 62, 35, 19.15, 45, 11, -4.97, {'ott_len': 33, 'ott_percent': 161, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['eKNWR', 53, 62, 18.65, 45, 11, -4.51, {'ott_len': 33, 'ott_percent': 195, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['e-NHY', 64, 37, 18.5, 45, 11, -4.29, {'ott_len': 33, 'ott_percent': 157, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 46}], ['e3NWR', 64, 37, 23.53, 45, 11, -5.19, {'ott_len': 33, 'ott_percent': 165, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['e=NHY', 58, 51, 23.74, 41, 12, -5.63, {'ott_len': 33, 'ott_percent': 177, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 46}], ['e?NHY', 58, 51, 23.62, 41, 12, -5.8, {'ott_len': 33, 'ott_percent': 180, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 46}], ['e/Wqv', 73, 23, 22.01, 44, 9, -5.14, {'ott_len': 33, 'ott_percent': 160, 'ott_bw': 120, 'tps_qty_index': 116, 'max_risk': 64}], ['e4NWJ', 63, 38, 21.34, 45, 11, -5.02, {'ott_len': 33, 'ott_percent': 166, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 37}], ['e4NWR', 63, 38, 21.47, 45, 11, -5.02, {'ott_len': 33, 'ott_percent': 166, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['eINWV', 51, 62, 21.5, 41, 12, -5.54, {'ott_len': 33, 'ott_percent': 192, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 44}], ['eHNWR', 52, 61, 20.18, 41, 12, -5.52, {'ott_len': 33, 'ott_percent': 191, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['ePRWV', 53, 60, 20.61, 41, 12, -5.19, {'ott_len': 33, 'ott_percent': 201, 'ott_bw': 114, 'tps_qty_index': 74, 'max_risk': 44}], ['`PNHY', 56, 65, 20.36, 42, 14, -5.82, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 46}], ['cPNHY', 56, 65, 20.36, 42, 14, -5.82, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 46}], ['i)NHd', 64, 34, 20.06, 40, 10, -5.92, {'ott_len': 33, 'ott_percent': 152, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['h)NHd', 64, 34, 20.06, 40, 10, -5.92, {'ott_len': 33, 'ott_percent': 152, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['e8NWJ', 60, 43, 19.3, 33, 12, -5.7, {'ott_len': 33, 'ott_percent': 171, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 37}], ['h(NHd', 64, 34, 19.54, 40, 10, -5.9, {'ott_len': 33, 'ott_percent': 151, 'ott_bw': 109, 'tps_qty_index': 51, 'max_risk': 53}], ['e;NWV', 60, 48, 26.55, 33, 12, -6.64, {'ott_len': 33, 'ott_percent': 175, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 44}], ['e9NWR', 60, 45, 23.04, 33, 12, -6.47, {'ott_len': 33, 'ott_percent': 172, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['e=NWJ', 57, 49, 22.95, 33, 12, -6.83, {'ott_len': 33, 'ott_percent': 177, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 37}], ['e:NWR', 60, 46, 22.16, 33, 12, -6.31, {'ott_len': 33, 'ott_percent': 174, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['XPNWA', 51, 64, 21.61, 35, 14, -6.42, {'ott_len': 31, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 31}], ['VPNWA', 51, 64, 21.61, 35, 14, -6.42, {'ott_len': 31, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 31}], ['_CYnv', 56, 37, 20.33, 36, 11, -6.65, {'ott_len': 32, 'ott_percent': 185, 'ott_bw': 122, 'tps_qty_index': 111, 'max_risk': 64}], [']PNWA', 53, 63, 19.67, 38, 13, -6.08, {'ott_len': 32, 'ott_percent': 201, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 31}], ['e@NWR', 56, 51, 27.41, 33, 12, -7.73, {'ott_len': 33, 'ott_percent': 181, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['e>NWR', 59, 49, 27.98, 33, 12, -7.02, {'ott_len': 33, 'ott_percent': 179, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['e?NWV', 58, 51, 27.13, 33, 12, -7.95, {'ott_len': 33, 'ott_percent': 180, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 44}], ['e?NWR', 57, 50, 26.35, 33, 12, -7.95, {'ott_len': 33, 'ott_percent': 180, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['/cqmh', 67, 28, 21.02, 40, 10, -7.06, {'ott_len': 26, 'ott_percent': 225, 'ott_bw': 152, 'tps_qty_index': 109, 'max_risk': 56}], ['eBNWR', 58, 55, 25.59, 33, 12, -8.0, {'ott_len': 33, 'ott_percent': 184, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ['VGWE`', 55, 43, 19.67, 33, 12, -8.12, {'ott_len': 31, 'ott_percent': 190, 'ott_bw': 120, 'tps_qty_index': 46, 'max_risk': 50}], ['eCNWR', 57, 56, 25.03, 30, 13, -10.19, {'ott_len': 33, 'ott_percent': 185, 'ott_bw': 109, 'tps_qty_index': 74, 'max_risk': 42}], ]
128.573109
131
0.58611
14,984
76,501
2.754204
0.046116
0.086069
0.157794
0.078897
0.846107
0.805786
0.740386
0.722528
0.699678
0.688507
0
0.238842
0.131606
76,501
594
132
128.789562
0.38237
0
0
0.003367
0
0
0.387394
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
1
0
0
0
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
cb786eca2fa967f50107bd01f1fc5743535790ba
261
py
Python
asreviewcontrib/models/__init__.py
JTeijema/ASReview-Model_Switcher
65077e08ba3de365fbcf4b8f18e04485c1c26427
[ "Apache-2.0" ]
10
2021-07-05T06:36:47.000Z
2021-07-06T21:30:10.000Z
asreviewcontrib/models/__init__.py
JTeijema/ASReview-Model_Switcher
65077e08ba3de365fbcf4b8f18e04485c1c26427
[ "Apache-2.0" ]
null
null
null
asreviewcontrib/models/__init__.py
JTeijema/ASReview-Model_Switcher
65077e08ba3de365fbcf4b8f18e04485c1c26427
[ "Apache-2.0" ]
1
2021-07-07T12:44:04.000Z
2021-07-07T12:44:04.000Z
from asreviewcontrib.models.model_switcher import base_switcher from asreviewcontrib.models.svm_cnn import SVM_CNN_Model from asreviewcontrib.models.svm_nn import SVM_NN_Model from asreviewcontrib.models.cnn import POWER_CNN import asreviewcontrib.models.config
52.2
63
0.896552
37
261
6.081081
0.324324
0.466667
0.444444
0.248889
0
0
0
0
0
0
0
0
0.065134
261
5
64
52.2
0.922131
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
cb7f4b112d358dd7daed1a1b59697724f0517356
55
py
Python
cryptopals/tools/crypto_helper/testt.py
ghostduck/my_cryptopals_solution
10597d6787ed9f70fa6f5368958a17a53fb387a0
[ "MIT" ]
null
null
null
cryptopals/tools/crypto_helper/testt.py
ghostduck/my_cryptopals_solution
10597d6787ed9f70fa6f5368958a17a53fb387a0
[ "MIT" ]
null
null
null
cryptopals/tools/crypto_helper/testt.py
ghostduck/my_cryptopals_solution
10597d6787ed9f70fa6f5368958a17a53fb387a0
[ "MIT" ]
null
null
null
def testt(): print("try import package - testt")
18.333333
40
0.618182
7
55
4.857143
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.236364
55
2
41
27.5
0.809524
0
0
0
0
0
0.490566
0
0
0
0
0
0
1
0.5
true
0
0.5
0
1
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
1
0
7
cbd2c8ff929525fd89e3640588fd64a0b5793cbd
223
py
Python
stac_sentinel/__init__.py
rsignell-usgs/sat-stac-sentinel
c76015704a69c7aa135a4a94b832fcaecdf8964c
[ "MIT" ]
18
2019-01-28T21:19:01.000Z
2021-12-29T02:45:11.000Z
stac_sentinel/__init__.py
rsignell-usgs/sat-stac-sentinel
c76015704a69c7aa135a4a94b832fcaecdf8964c
[ "MIT" ]
13
2019-01-15T15:01:34.000Z
2021-07-06T22:40:50.000Z
stac_sentinel/__init__.py
rsignell-usgs/sat-stac-sentinel
c76015704a69c7aa135a4a94b832fcaecdf8964c
[ "MIT" ]
9
2019-01-31T11:43:43.000Z
2021-11-18T01:54:23.000Z
import logging from stac_sentinel.sentinel import SentinelSTAC # quiet loggers logging.getLogger('botocore').propagate = False logging.getLogger('urllib3').propagate = False logging.getLogger('requests').propagate = False
27.875
47
0.811659
25
223
7.2
0.56
0.266667
0.233333
0.333333
0
0
0
0
0
0
0
0.004902
0.085202
223
8
48
27.875
0.877451
0.058296
0
0
0
0
0.110048
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
7
cbdaf131058e4e96421a7607e38c441e606b395c
22,811
py
Python
2018/day13_input.py
coingraham/adventofcode
52b5b3f049242881285d0c2704f44cc1ee2a821e
[ "MIT" ]
5
2020-12-04T04:30:17.000Z
2021-11-12T11:26:22.000Z
2018/day13_input.py
coingraham/adventofcode
52b5b3f049242881285d0c2704f44cc1ee2a821e
[ "MIT" ]
null
null
null
2018/day13_input.py
coingraham/adventofcode
52b5b3f049242881285d0c2704f44cc1ee2a821e
[ "MIT" ]
null
null
null
real = """ /-------------------------------------------------------------------------------------\\ /-------------------------------\\ /---------+---\\ /-------------+---------------+---\\ /-----------\\| | /-+---+-----------------------------------------------\\ /-+-------------+---------------+---+----\\ | || | | | | /----------\\ /------------+------------\\ | |/------------+---------------+---+----+---------+------\\ || /+-------+-+---+----------------+----------+--\\ | /---------+------------+----+-++------------+---------------+---+----+---------+--\\ | || || | | | | | | | | | /+----+-++------------+---------------+---+----+---------+--+---+\\ || || | | | /--------------+----------+--+---+--+---------+-----------++----+\\|| | /-----+---+----+---\\ | | || || || | |/--+-+------\\ | | | /-+--+---------+-----------++----++++------------+---------+-----+---+----+---+-----+--+---++---++\\ || | || | | | | /------+--+-+-+--+---------+-----------++----++++------------+------\\ | | | | | | | || ||| || | || | | | |/--+-----\\| | | | | | || |||| | | | | | | | | | || ||| || | || | | | || | || | | | | | || |||| | | | | | /--+---+-----+--+---++---+++\\ || | || | | | || | || | |/+--+---------+-----------++----++++------------+------+--+-----+---+-+--+---+-----+--+---++-\\ |||| || /---+-++--+-+------+-------++--+-----++--+-+++--+---------+---\\ || |||| | | | | | | | | \\--+---++-+-/||| || | \\-++--+-+------+-------++--+-----++--+-+++--+---------/ | || |||| | | | | | | | | | || | ||| || /+-----++--+-+------+-------++--+-----++--+-+++--+-------------+-------++----++++-----------\\| | | | | | | | | || | ||| || || || | | | /---++--+-----++--+-+++--+-------------+-------++----++++-----------++-----\\| | | | | | /-+-------\\| || | ||| || || || | | /--+---+---++--+-----++--+-+++--+-------------+-------++----++++-----------++-----++--+-----+\\ | | | | | || || | ||| || || /---++--+-+---+--+---+---++--+-----++--+-+++--+-------------+-------++--\\ |||| || || | || | | | | | || || | ||| || || |/--++--+-+---+--+---+---++--+-----++--+-+++-\\| /--------+-------++--+-++++-----------++->---++--+-----++--+-+--+-+-+---\\ || || | ||| || || || || | | | | | \\+--+-----+/ | ||| || | | || | |||| /---++-----++--+-----++--+-+--+-+\\| | || || | ||| \\+--++-++--++--+-+---+--+---+----+--+-----+---/ ||| || | | ||/-+-++++-------+---++-----++--+-----++--+-+--+-+++---+-\\ || || | ||| | /++-++--++--+-+---+--+---+----+--+-----+-----+++-++----+-------\\| ||| | |||| | || || | || | | | ||| | | || || | ||| /-+-+++-++--++--+-+---+--+---+----+--+-----+-----+++-++----+-------++-------+++-+-++++------\\| || || | || | \\--+-+++---+-+-++---++-+--++/ | | ||| || |\\--+-+---+--/ | /-+--+---\\ | ||| || | || /+++-+-++++------++---++-----++--+-----++--+---\\| ||| | | || || | || | | ||| || | | | | /+--+-+--+---+-+-----+++-++----+--\\ /-++------++++-+-++++------++---++-----++--+-----++--+---++-+++---+>+-++--\\|| | || | | ||| || /+---+-+---+-----++--+-+--+---+-+-----+++-++----+--+--+-++---->-++++-+-++++---\\ || || || | || | || ||| | | || ||| | || | | ||| || || | | | || | | | | | /-+++-++----+--+--+-++------++++-+-++++---+--++---++-----++--+-----++--+---++-+++\\ | | || ||| | || | | ||| || || | | | || | | | | | | ||| || | | | || |||| | |||| | || || || | || | || |||| | | || ||| | || |/+-+++-++-++---+-+---+-----++--+-+--+---+-+---+-+++-++----+--+--+-++-\\ |||| | |||| | || || || | || | || |||| | | || ||| | || ||| ||| || || |/+---+-----++--+-+--+---+-+---+-+++-++----+--+--+-++-+----++++-+-++++---+--++---++-----++--+-----++--+-\\ || |||| | | || ||| | || ||| ||| || || /-+++---+-----++--+-+-\\| | | /+-+++-++----+--+--+-++-+----++++-+-++++---+--++---++-----++--+-----++--+\\| || |||| | | || ||| | || ||| ||| || || | ||| \\-----++--+-+-++---+-+--++-+++-++----+--+--+-++-+----++++-+-++++---+--++---++-----++--+-----+/ ||| || |||| | | || ||| | || ||| ||| || || | ||| || | \\-++---+-/ || ||\\-++----+--+--+-++-+----++/| | |||| /-+--++---++-----++--+-----+---+++-++-++++--+-+-++--+++-+--++-\\ ||| ||| || || | ||| || |/--++---+----++-++--++----+--+--+-++-+----++-+-+\\|||| | | || || || | | ||| || |||| | | || ||| | || | ||| ||| ||/++-+-+++---------++-\\|| || | || ||/-++----+--+--+-++-+----++-+-++++++-+-+--++---++-----++--+-----+---+++-++-++++--+-+-++--+++\\| || | ||| ||| ||||| | ||| || ||| || | || ||| || | | | || | \\+-+-++++++-+-+--++---++-----++--+-----+---+++-/| |||| | | || ||||| || | ||| ||| ||||| | ||| /-++-+++--++---+----++-+++-++----+--+--+-++-+-----+-+-++++++-+-+--++---++-----++--+-----+---+++--+-++++--+-+\\|| ||||| || | ||| ||| ||||| | ||| | || ||| ||/--+----++-+++-++----+--+--+-++-+-----+-+-++++++-+-+--++---++-----++--+-----+---+++--+-++++--+-++++\\ ||||| || | ||| ||| ||||| | ||| | || ||| ||| | |\\-+++-++----+--+--+-++-+-----+-+-++++++-+-+--++---++-----++--+-----+---+++--+-+++/ | ||||| ||||| || | ||| ||| ||||| | ||| | |\\-+++--+++--+----+--+++-++----+--+--+-++-+-----+-+-++++++-+-+--++---++-----/| | | ||| | ||| | ||||| ||||| || | |||/+++-+++++-+-+++-----\\ | | ||| ||| /+----+--+++-++----+--+--+-++-+-----+-+-++++++-+-+--++---++------+--+-\\ | ||| | ||| | ||||| ||||| || | ||||||| ||||| | ||| /--+-+-+--+++--+++-++----+--+++-++----+--+--+-++-+-----+-+-++++++-+-+--++---++------+--+-+---+---+++--+-+++-\\ | ||||| ||||| || | ||||||| ||||| | ||| | | | | ||| ||| || | ||| || /-+--+--+-++-+-----+-+-++++++-+-+--++---++------+--+-+\\ | ||| | ||| | | ||||| ||||| || | ||||||| \\++++-+-+++--+--+-+-+--+++--+++-++----+--+++-++--+-+--+--+-++-+-----+-+-/||||| v | ||/--++------+--+-++--+---+++--+-+++-+-+-+++++\\||||| || | ||||||| |||| | ||| | | | | ||| ||| || | ||| || | | | | || | | | ||||| | | ||| || | | || | ||| | \\++-+-+-++/|||||||| || | ||||||| |||| | ||| | | | | ||| ||| || | ||| || | | | | || | | | ||||| | | ||| || | | || | ||| | || | | || |||||||| || | ||||||| |||| | ||| | | | | ||| ||| || | ||| || | | | | || | | |/-+++++-+-+--+++--++------+--+-++--+---+++--+--++-+-+-++\\|||||||| || | ||||||| |||| | ||| | | | | ||| ||| || | |||/++--+-+--+--+-++-+-----+-++-+++++-+-+--+++--++------+--+-++--+---+++--+\\ || | | ||||||||||| || | ||||||| |||| | |||/-+--+-+-+--+++--+++-++----+--++++++--+-+--+--+-++-+-----+-++-+++++-+-+--+++--++------+--+-++--+---+++--++\\|| | | ||||||||^|| || | ||||||| |||| | |||| | | | | ||| ||| || | |||||| | | | | || | | || ||||| | | ||| || | | || | ||| ||||| | | ||||||||||| || | ||||||| |||| | |||| | | | | ||| /+++-++----+--++++++--+-+--+--+-++-+-----+-++-+++++-+-+--+++--++------+--+-++--+\\ ||| ||||| | | ||||||||||| || | ||||||| |||| | |||| | | | | ||| |||| || /+--++++++--+-+--+--+-++-+-----+-++-+++++-+-+--+++--++-----\\| | || || ||| /+++++-+-+\\||||||||||| || | ||||||| |||| | |||| | | | | ||| |||| || || |||||| | | | | || | | || ||||| | | ||\\--++-----++--+-++--++--+++-++++++-+-+++++++/||||| || | ||||||| |||| | |||| | | | | ||| |||| || || |||||| | | | | || | | || ||||| | | || || || | || || ||| |||||| | ||||||| ||||| || | ||||||| |||| | |||| | | | | ||| |||| || || |||||| | \\--+--+-++-+-----+-++-+++++-+-+--++---++-----++--+-++--++--+++-++++++-+-/|||||| ||||| || | |||||||/-++++-+-++++-+--+-+-+--+++-++++-++---++-\\|||||| | | | || | | || ||||| | | || || || | || || ||| |||||| | |||||| ||||| || | |||||||| |||| | |||| | | | | ||| ||\\+-++---++-+++++++--+----+--+-++-+-----+-++-+++++-+-+--++---++-----+/ | || || ||| |||||| | |||||| ||||| || | |||||||| |||| | |||| | | | \\--+++-++-+-++---++-+++++++--+----/ | || | | || |\\+++-+-+--++---++-----+---+-++--++--+++-+/|||| | |||||| ||||| || | |||||||| |||| | |||| | | | |||/++-+-++---++-+++++++--+-------+-++-+-----+-++-+-+++-+-+--++---++\\ | | || || ||| | |||| | |||||| ||||| || | |||||||| |||| | |||| | | | |||||| | || || ||||||| | /-----+-++\\| | || | ||| | | || ||| | | || || ||| | |||| | ^||||| ||||| || | |||||||| |||| | |||| | | | |||||| | || \\+-+++++++--+-+-----+-++++-----+-++-+-+++-+-+--++---+++----/ | || || ||| | |||| | |||||| ||||| || | |||||||| |||| | |||| | | | /-++++++-+-++----+-+++++++--+-+-----+-++++-----+\\|| | ||| | | |\\---+++--------+-++--++--+++-+-++/| | |||||| ||||| || | |||||||| |||| | |||| | | | | |||||| | || | ||||||| | | | |||| |||| | ||| | | | ||| | || ^| ||| | || | | |||||| ||||| || | |||||||| |||| | |||| | | \\--+-++++++-+-++----+-+++++++--+-+-----+-++++-----++++-+-+++-+-+--+----+++--------+-++--++--+++-+-++-+-+--++/||| ||||| || | |||||||| |||| | |||| | | |/++++++-+-++----+-+++++++--+-+-----+-++++-----++++-+-+++-+-+--+----+++--------+-++--++--+++-+-++-+-+--++-+++\\||||| || | ||||||||/++++-+-++++-+--+----++++++++-+-++----+-+++++++--+-+-----+-++++-----++++-+-+++-+-+--+----+++--------+-++\\/++--+++-+-++-+-+--++-+++++++++-\\|| | ||||||||||||| | |||| |/-+----++++++++-+-++----+-+++++++--+-+-----+-++++-----++++-+-+++-+-+--+----+++--------+-++++++--+++-+-++-+-+\\ || ||||||||| ||| | |||||||\\+++++-+-++++-++-+----++++++++-+-++----+-/|||||| | | | |||| /-++++-+-+++-+-+\\ | ||| | |||||| ||| | || | || || ||||||||| ||| | |||||||/+++++-+-++++-++-+----++++++++-+-++----+--++++++--+-+-----+-++++--\\| |||| | ||| | || | ||| | |||||| ||| | || | || || ||||||||| ||| | ||||||||||||| | |||| || | ||||||\\+-+-++----+--++++++--+-+-----+-++++--++-++++-+-+++-+-++-+----+++--------+-+++++/ ||| | || | || || ||||||||| ||| | |||||||||||||/+-++++-++-+----++++++-+-+-++----+--++++++--+-+-----+-++++--++-++++-+-+++-+-++\\| ||| | ||||| ||| | || | || || ||||||||| ||| | ||||||||||||||| |||| || | |||||| | | || | |||||| | | |/++++--++-++++-+-+++-+-++++----+++\\ /---+-+++++---+++-+-++-+\\|| || ||||||||| ||| | ||||||||||||||| |||| || | ||||\\+-+-+-++----+--++++++--+-+-----++++++--++-++++-/ ||| | |||| |||| | | ||||| ||| | || |||| || ||||||||| ||| | ||||||||||||||| |||| ||/+--<-++++-+-+-+-++----+--++++++--+-+-----++++++--++-++++--\\||| | |||| |||| | | ||||| ||| | || |||| || ||||||||| ||| | ||\\++++++++++++-/||| |||| \\+++-+-+-+-++----+--++++++--+-+-----++++++--++-+/||/-++++-+-++++----++++---+---+-+++++---+++-+-++-++++-++-+++++++++\\||| | || |||||||||||| |||/++++-----+++-+-+-+-++----+--++++++--+-+-----++++++--++-+-+++-++++-+-++++----++++---+---+-+++++-\\ ||| | || |||| || ||||||||||||| | |\\-++++++++++++--++++++++-----+++-+-+-+-++----+--++++++--+-+-----+++++/ || | ||| |||| | |||| |||| | \\-+++++-+-+++-+-++-/||| || ||||||||||||| | |/-++++++++++++--++++++++-----+++-+-+-+-++----+--++++++--+-+-----+++++---++-+-+++-++++-+-++++----++++---+----\\||||| | ||| | || ||| || ||||||||||||| | || |||||||||||| \\+++++++-----+++-+-+-+-++----+--++++++--+-+-----+++++---++-+-+++-++++-+-++++----++++---+----++++++-+-++/ | || ||| || ||||||||||||| | || |||||||||\\++---+++++++-----+++-+-+-+-++----+--++++++--+-+-----+++++---++-+-+++-++++-+-++++----+/|| | |||||| | || | || ||| || ||||||||||||| | || ||||||||| || /+++++++-----+++-+-+\\| || | |||||| | | ||||| || | ||| |||| | |||| | || | ^||||| | || | || ||| || ||||||||||||| | || ||||||||| || |||||||| ||| \\-+++-++----+--++++++--+-+-----+++++---++-+-+++-++++-+-++++----+-/| | |||||| | || | || ||| || ||||||||||||| | || ||||||||| || |||||||| ||\\---+++-+/ | |||||| | | ||||| || | |||/++++-+-++++----+--+---+----++++++-+-++--+-++--+++-++\\||||||||||||| | || ||||||||| || |||||||| || ||| | | |||||\\--+-+-----+++++---++-+-++++++++-+-++++----+--+---+----++++++-+-++--+-++--+++-++++/||||||||||| | || ||||||||| || |||||||| || ||| |/----+--+++++---+-+-----+++++-\\ || | |||||||| | |||| | | | |||||| | || | || ||| |||| ||||||||||| | || ||||||||| |v ||||||\\+-----++----+++-++----+--+++++---+-+-----+++++-+-++-+-++++/||| |/++++----+--+---+----++++++-+-++--+-++-\\||| |||| ||||||||||| | || |||\\+++++-++--++++++-+-----++----+++-++----+--+++++---+-+-----+++/| | || | |||| ||| |||||| | | | |||||| | || | || |||| |||| ||||||||||| | || ||| ||||| || |||||| | || ||| || | ||||| | | ||| | | || | |\\++-+++-++++++----+--+---+----++++++-+-++--+-++-++++-+++/ ||||||||||| | || ||| ||||| || |||||| | || ||| || | ||||| | | ||| | | || | | || ||| |||||| | | | |||||| | || | || |||| ||| ||||||||||| | || ||| ||||| || |||||| | /---++----+++-++---\\| ||||| | | ||| | | || | | || ||\\>++++++----+--+---+----++++++-+-++--+-++-++++-+++--+++/||||||| | || ||| ||||| || |||||| | | || ||| || || ||||| | | ||| | | || | | || |\\-<++++++----+--+---+----++++++-+-/| | || |||| ||| ||| ||||||| | || ||| ||||| || |||||| | | || ||| || || ||||| | | ||| | | || | | \\+-+---++++++----+--+---+----++++++-+--+--+-++-++++-+++--+++-+++/||| | ||/+++-+++++-++--++++++-+-+---++-\\ ||| || || |||\\+---+-+-----+++-+-+-++-+-+--+-+---++++++----+--+---+----++++++-+>-+--+-/| |||| ||| ||| ||| ||| | |\\++++-+++++-++--++++++-+-+---++-+--+++-++---++--+++-+---+-+-----+++-+-+-++-+-+--+-+---++++++----+--+---+----/||||| | | | | |||| ||| ||| ||| ||| | | |||| ||||| || |\\++++-+-+---++-+--+++-++---++--+++-+---+-+-----+++-+-+-++-+-+--+-/ |||||| | | /+-----+++++-+--+--+--+-++++-+++\\ ||| ||| ||| | | |||| ||||| ||/-+-++++-+-+---++\\| ||| || || ||| | | | ||| | | || | | | |||||| | | || ||||| | |/-+--+-++++-++++-+++-+++-+++\\| | |||| ||||| ||| | |||| | | ||||/-+++-++---++--+++-+---+-+----\\\\++-+-+-++-+-+--+-----++++++----+--+--++-----+++++-+--++-+--+-++++-++++-++/ ||| ||||| | |||| ||||| ||| | |||| | | ||||| ||| || || \\++-+---+-+----+-++-+-+-++-+-+--+-----++++++----+--+--++-----+++++-+--++-+--+-++++-++++-++--+++-++/|| | |||| ||||| ||| | |||\\-+-+---+++++-+++-++---++---++-+---+-+----+-++-+-+-++-+-+--+-----++++++----+--+--++-----+++++-+--++-+--+-+++/ |||| || ||| || || | ||\\+-+++++-+++-+-+++--+-+---+++++-+++-++---++---++-+---+-+----+-+/ | | ||/+-+--+-----++++++----+--+--++-----+++++-+-\\|| | | ||| |||| || ||| || || | || | ||||| ||| | ||| | |/--+++++-+++-++---++---++-+---+-+--\\ | | | | |||| | | |||||| /+--+--++-----+++++-+-+++-+--+-+++--++++-++--+++-++\\|| | || | ||||| ||| | ||| | || ||||| ||| || || || | /-+-+--+-+-+--+-+-++++-+--+-----++++++---++--+--++-----+++++-+-+++-+\\ | ||| |||| || ||| ||||| | || | |||||/+++-+-+++--+-++--+++++-+++-++---++---++-+-+-+-+--+-+-+--+-+-++++-+--+-----++++++---++--+--++-\\ ||||| | ^|| || |/+++--++++-++-\\||| ||||| | || | ||||||||| | ||| | || ||||| ||\\-++---++---++-+-+-+-+--+-+-+--+-+-++++-+--+-----++++++---++--+--++-+---+++++-+-+++-++-+++++--++++-/| |||| ||||| | || | ||||||||| \\-+++--+-++--+++++-+/ || || || | | | | | | | | | |||\\-+--+-----++++++---++--+--++-+---+++++-+-+++-++-+++++--++++--+-+/|| ||||| | || | \\++++++++---+++--+-++--+++++-+---++---++---++-+-+-+-+--+-+-+--+-+-/|| | | |||||| || | || | ||||| | ||| || ||||| |||| | | || ||||| | || | |||||||| ||| | || ||||| | || || || | | | | | | | | | || | | |||||| || | || | ||||| | ||| || ||||| |||| | | || ||||| \\-++-+--++++++++---+++--+-++--+++++-+---++---++---++-+-+-+-+--+-+-+--+-+--++--+--+-----+++++/ || | || | ||||\\-+-+++-++-+++++--++++--+-+-++-+/||| || | |||||||| ||| | || ||||| | || || || | | | | | | | | | || | | |\\+++----++--+--++-+---++++--+-+++-++-++/|v |||| | | || | ||| || | |||||||| ||| | || ||||| | || || |\\-+-+-+-+--+-+-+--+-+--++--+--+-----+-+++----++--+--++-+---++++--+-+++-++-++-++--++++--+-+-/| | ||| || | |||||||| ||| | || ||||| | \\+---++---+--+-+-+-+--+-+-+--+-+--++--+--+-----+-+++----++--+--++-+---/||| | ||| || || || |||| | | | | ||| || | ||||\\+++---+++--+-++--+++++-+----+---++---+--+-+-+-+--+-+-+--+-+--++--+--+-----+-+++----++--+--++-/ ||| | ||| || || || |||| | | | | ||| || | |||| ||| ||\\--+-++--+++++-+----+--<++---+--+-+-+-+--+-+-+--+-+--++--+--+-----+-+++----++--+--++------+++--+-+++-++-++-+/ |||| | | | | ||| || | |||\\-+++---++---+-++--+++++-+----+---++---+--+-+-+-+--+-+-+--+-+--++--+--+-----+-/|| \\+--+--++------+++--+-+++-++-++-+---++++--+-+--+-+-/|| || | ||| ||| || | || ||||| | | || | | | | | | | | | | || | | | || | | || ||| | ||| || |\\-+---++++--+-/ | | || || | ||| ||| || | || \\++++-+----+---++---+--+-+-+-+--+-+-+--+-+--++--+--+-----+--++-----+--+--++------+++--+-+++-++-+--+---++++--/ | | || |\\-+--+++--+++---++---/ || |||| | | || | | |/+-+--+-+-+--+-+--++--+--+-----+\\ || | | || ||| | ||| || | | |||| | | || | | ||| ||| || || |||| | | || \\--+-+++-+--+-+-+--+-+--++--+--+-----++-++-----+--+--++------+++--+-+++-++-+--+---++++-------/ | || | | ||| ||| || || |||| | |/--++------+-+++-+--+-+-+--+>+--++--+--+-----++-++-----+--+--++------+++--+-+++-++-+--+--\\|||| | || |/-+--+++--+++---++-----++---++++-+----++--++\\ | ||| | | | | | | || | | || || | | \\+------+++--+-+++-++-+--+--++++/ | || || \\--+++--+++---++-----++---++++-+----++--+++-----+-+++-+--+-+-+--+-+--++--+--+-----++-++-----/ | | ||| | ||| || | | |||| | || || /-+++--+++---++-----++---++++-+----++--+++-----+-+++-+--+-+-+--+-+--++--+--+---\\ || || | | ||\\--+-+++-++-+--+--++++----------/ || || | ||| ||| || || |||| |/---++--+++-----+-+++-+--+-+-+--+-+--++--+--+---+-++-++--------+---+------++---+-+++-++-+--+-\\|||| || || | |\\+--+++---++-----++---++++-++---++--+++-----/ ||| | | | | | | || | | | || || | | || | ||| || | | ||||| || || | | | ||| || || |||\\-++---++--+++-------+++-+--+-/ | | | || | \\---+-++-++--------+---+------++---+-+++-++-+--+-++++/ || || | | | ||| || \\+---+++--++---++--/|| ||\\-+--+---+--+-+--++--+------+-++-++--------+---+------/| | ||| || | | |||| || || | | | ||| || | ||| || || || || | | | | | || | | \\+-++--------+---+-------+---+-+++-++-+--+-++++--------------+/ || | | | ||| || | ||| || || || || | | | | | || | | | || /+---+-------+---+-+++\\|| | | |||| | || | | | ||\\---++------+---+/| || || || || | | | | | || \\------+--+-++-------++---+-------+---+-++++++-+--+-+++/ | || | | | || || /+---+-+--++---++---++-------++--+--+---+--+-+--++---------+--+-++-------++---+--\\ | | |||||| | | ||| | || | | | || \\+-----++---+-+--++---++---++-------++--+--+---+--+-+--++---------+--+-++-------++---+--+----+---+-++++++-/ | ||| | || | | | || | || | | || || || |\\--+--+---+--+-+--++---------+--/ || || | | | | |||||| | ||| | /++--+-+-+--++-----+-----++---+-+--++---++---++-------+--\\| | | | | || | || || | | | | |||||| | ||| | ||| | | | |\\-----+-----++---+-+--/| || || | || | | | | \\+---------+----/| || | | | | |||||| | ||| | ||| | | | | | || | | | |\\---++-------+--++--+---+--+-+---+---------+-----+-------++---+--+----+---+-++++++----+-+/| | ||| | | | | | || | | | | \\+-------+--++--+---+--+-+---+---------+-----+-------++---+--+----+---+-+/|||| | | | | |\\+--+-+-+--+------+-----++---+-/ \\---+-----+-------+--++--+---+--+-+---+---------+-----+-------++---+--+----+---+-+-++++----+-/ | | | | | | \\--+------+-----++---/ | | | || | \\--+-+---+---------+-----+-------+/ | | | | | |||| | | | | | | | | \\-----++-------------+-----+-------+--++--+------+-+---+---------+-----+-------+----+--+----+---/ | |||| | | | | | | | | || | | \\--++--+------+-+---+---------+-----+-------+----+--+----+-----+-+++/ | | | | | | | | || | | |\\--+------/ | | | | | | | | | ||| | | | | | \\-+----+------------++-------------+-----+----------+---+--------+---+---------/ | | | | | | ||| | | | | | | \\------------++-------------+-----+----------+---+--------+---+---------------/ | | | | | \\++-----+---+---------------/ | | | || \\-----+----------+---+--------/ \\-----------------------+----+--+----+-----/ || | | | | | \\+-------------------+----------+---+------------------------------------+----+--/ | || | | | \\----+------------------+-------------------/ | | \\----+-------+--------/\\-----+---/ | | \\------------------------------+---/ | | | | \\-------------------------------------------------+---------------------------------------------+-------/ | \\--------------------------------------------------------/ \\-----------------------/ """ sample = r'''/->-\ | | /----\ | /-+--+-\ | | | | | v | \-+-/ \-+--/ \------/ '''
146.224359
159
0.000658
7
22,811
2.142857
0.571429
0.266667
0
0
0
0
0
0
0
0
0
0
0.258823
22,811
156
160
146.224359
0.000887
0
0
0
0
0.23871
0.998597
0.513546
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
cbdc8b3335b0edd2f1c6fe6b574fb6fba5948087
22,107
py
Python
container_sdk/api/workload/workload_client.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
container_sdk/api/workload/workload_client.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
container_sdk/api/workload/workload_client.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import container_sdk.api.workload.create_pb2 import container_sdk.model.container.workload_pb2 import container_sdk.api.workload.create_from_yaml_pb2 import container_sdk.api.workload.delete_workload_pb2 import google.protobuf.empty_pb2 import container_sdk.api.workload.get_pb2 import container_sdk.api.workload.get_status_pb2 import container_sdk.api.workload.get_summary_pb2 import container_sdk.api.workload.list_pb2 import container_sdk.api.workload.list_event_pb2 import container_sdk.api.workload.list_history_pb2 import container_sdk.api.workload.restart_pb2 import container_sdk.api.workload.rollback_pb2 import container_sdk.api.workload.update_pb2 import container_sdk.api.workload.update_resource_spec_pb2 import container_sdk.utils.http_util import google.protobuf.json_format class WorkloadClient(object): def __init__(self, server_ip="", server_port=0, service_name="", host=""): """ 初始化client :param server_ip: 指定sdk请求的server_ip,为空时走名字服务路由 :param server_port: 指定sdk请求的server_port,与server_ip一起使用, 为空时走名字服务路由 :param service_name: 指定sdk请求的service_name, 为空时按契约名称路由。如果server_ip和service_name同时设置,server_ip优先级更高 :param host: 指定sdk请求服务的host名称, 如cmdb.easyops-only.com """ if server_ip == "" and server_port != 0 or server_ip != "" and server_port == 0: raise Exception("server_ip和server_port必须同时指定") self._server_ip = server_ip self._server_port = server_port self._service_name = service_name self._host = host def create(self, request, org, user, timeout=10): # type: (container_sdk.api.workload.create_pb2.CreateRequest, int, str, int) -> container_sdk.model.container.workload_pb2.Workload """ 创建工作负载 :param request: create请求 :param org: 客户的org编号,为数字 :param user: 调用api使用的用户名 :param timeout: 调用超时时间,单位秒 :return: container_sdk.model.container.workload_pb2.Workload """ headers = {"org": org, "user": user} route_name = "" server_ip = self._server_ip if self._service_name != "": route_name = self._service_name elif self._server_ip != "": route_name = "easyops.api.container.workload.Create" uri = "/api/container/v1/workloads" requestParam = request rsp_obj = container_sdk.utils.http_util.do_api_request( method="POST", src_name="logic.container_sdk", dst_name=route_name, server_ip=server_ip, server_port=self._server_port, host=self._host, uri=uri, params=google.protobuf.json_format.MessageToDict( requestParam, preserving_proto_field_name=True), headers=headers, timeout=timeout, ) rsp = container_sdk.model.container.workload_pb2.Workload() google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True) return rsp def create_from_yaml(self, request, org, user, timeout=10): # type: (container_sdk.api.workload.create_from_yaml_pb2.CreateFromYamlRequest, int, str, int) -> container_sdk.model.container.workload_pb2.Workload """ 通过 yaml 创建工作负载 :param request: create_from_yaml请求 :param org: 客户的org编号,为数字 :param user: 调用api使用的用户名 :param timeout: 调用超时时间,单位秒 :return: container_sdk.model.container.workload_pb2.Workload """ headers = {"org": org, "user": user} route_name = "" server_ip = self._server_ip if self._service_name != "": route_name = self._service_name elif self._server_ip != "": route_name = "easyops.api.container.workload.CreateFromYaml" uri = "/api/container/v1/workloads/yaml" requestParam = request rsp_obj = container_sdk.utils.http_util.do_api_request( method="POST", src_name="logic.container_sdk", dst_name=route_name, server_ip=server_ip, server_port=self._server_port, host=self._host, uri=uri, params=google.protobuf.json_format.MessageToDict( requestParam, preserving_proto_field_name=True), headers=headers, timeout=timeout, ) rsp = container_sdk.model.container.workload_pb2.Workload() google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True) return rsp def delete_workload(self, request, org, user, timeout=10): # type: (container_sdk.api.workload.delete_workload_pb2.DeleteWorkloadRequest, int, str, int) -> google.protobuf.empty_pb2.Empty """ 删除工作负载 :param request: delete_workload请求 :param org: 客户的org编号,为数字 :param user: 调用api使用的用户名 :param timeout: 调用超时时间,单位秒 :return: google.protobuf.empty_pb2.Empty """ headers = {"org": org, "user": user} route_name = "" server_ip = self._server_ip if self._service_name != "": route_name = self._service_name elif self._server_ip != "": route_name = "easyops.api.container.workload.DeleteWorkload" uri = "/api/container/v1/workloads/{instanceId}".format( instanceId=request.instanceId, ) requestParam = request rsp_obj = container_sdk.utils.http_util.do_api_request( method="DELETE", src_name="logic.container_sdk", dst_name=route_name, server_ip=server_ip, server_port=self._server_port, host=self._host, uri=uri, params=google.protobuf.json_format.MessageToDict( requestParam, preserving_proto_field_name=True), headers=headers, timeout=timeout, ) rsp = google.protobuf.empty_pb2.Empty() google.protobuf.json_format.ParseDict(rsp_obj, rsp, ignore_unknown_fields=True) return rsp def get(self, request, org, user, timeout=10): # type: (container_sdk.api.workload.get_pb2.GetRequest, int, str, int) -> container_sdk.api.workload.get_pb2.GetResponse """ 获取工作负载配置, 数据来源于 CMDB :param request: get请求 :param org: 客户的org编号,为数字 :param user: 调用api使用的用户名 :param timeout: 调用超时时间,单位秒 :return: container_sdk.api.workload.get_pb2.GetResponse """ headers = {"org": org, "user": user} route_name = "" server_ip = self._server_ip if self._service_name != "": route_name = self._service_name elif self._server_ip != "": route_name = "easyops.api.container.workload.Get" uri = "/api/container/v1/workloads/{instanceId}".format( instanceId=request.instanceId, ) requestParam = request rsp_obj = container_sdk.utils.http_util.do_api_request( method="GET", src_name="logic.container_sdk", dst_name=route_name, server_ip=server_ip, server_port=self._server_port, host=self._host, uri=uri, params=google.protobuf.json_format.MessageToDict( requestParam, preserving_proto_field_name=True), headers=headers, timeout=timeout, ) rsp = container_sdk.api.workload.get_pb2.GetResponse() google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True) return rsp def get_status(self, request, org, user, timeout=10): # type: (container_sdk.api.workload.get_status_pb2.GetStatusRequest, int, str, int) -> container_sdk.model.container.workload_pb2.Workload """ 获取工作负载, 数据来源于现网 :param request: get_status请求 :param org: 客户的org编号,为数字 :param user: 调用api使用的用户名 :param timeout: 调用超时时间,单位秒 :return: container_sdk.model.container.workload_pb2.Workload """ headers = {"org": org, "user": user} route_name = "" server_ip = self._server_ip if self._service_name != "": route_name = self._service_name elif self._server_ip != "": route_name = "easyops.api.container.workload.GetStatus" uri = "/api/container/v1/workloads/{instanceId}/status".format( instanceId=request.instanceId, ) requestParam = request rsp_obj = container_sdk.utils.http_util.do_api_request( method="GET", src_name="logic.container_sdk", dst_name=route_name, server_ip=server_ip, server_port=self._server_port, host=self._host, uri=uri, params=google.protobuf.json_format.MessageToDict( requestParam, preserving_proto_field_name=True), headers=headers, timeout=timeout, ) rsp = container_sdk.model.container.workload_pb2.Workload() google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True) return rsp def get_summary(self, request, org, user, timeout=10): # type: (container_sdk.api.workload.get_summary_pb2.GetSummaryRequest, int, str, int) -> container_sdk.api.workload.get_summary_pb2.GetSummaryResponse """ 获取Workload Summary :param request: get_summary请求 :param org: 客户的org编号,为数字 :param user: 调用api使用的用户名 :param timeout: 调用超时时间,单位秒 :return: container_sdk.api.workload.get_summary_pb2.GetSummaryResponse """ headers = {"org": org, "user": user} route_name = "" server_ip = self._server_ip if self._service_name != "": route_name = self._service_name elif self._server_ip != "": route_name = "easyops.api.container.workload.GetSummary" uri = "/api/container/v1/workloads/{instanceId}/summary".format( instanceId=request.instanceId, ) requestParam = request rsp_obj = container_sdk.utils.http_util.do_api_request( method="GET", src_name="logic.container_sdk", dst_name=route_name, server_ip=server_ip, server_port=self._server_port, host=self._host, uri=uri, params=google.protobuf.json_format.MessageToDict( requestParam, preserving_proto_field_name=True), headers=headers, timeout=timeout, ) rsp = container_sdk.api.workload.get_summary_pb2.GetSummaryResponse() google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True) return rsp def list(self, request, org, user, timeout=10): # type: (container_sdk.api.workload.list_pb2.ListRequest, int, str, int) -> container_sdk.api.workload.list_pb2.ListResponse """ 获取工作负载 :param request: list请求 :param org: 客户的org编号,为数字 :param user: 调用api使用的用户名 :param timeout: 调用超时时间,单位秒 :return: container_sdk.api.workload.list_pb2.ListResponse """ headers = {"org": org, "user": user} route_name = "" server_ip = self._server_ip if self._service_name != "": route_name = self._service_name elif self._server_ip != "": route_name = "easyops.api.container.workload.List" uri = "/api/container/v1/workloads" requestParam = request rsp_obj = container_sdk.utils.http_util.do_api_request( method="GET", src_name="logic.container_sdk", dst_name=route_name, server_ip=server_ip, server_port=self._server_port, host=self._host, uri=uri, params=google.protobuf.json_format.MessageToDict( requestParam, preserving_proto_field_name=True), headers=headers, timeout=timeout, ) rsp = container_sdk.api.workload.list_pb2.ListResponse() google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True) return rsp def list_event(self, request, org, user, timeout=10): # type: (container_sdk.api.workload.list_event_pb2.ListEventRequest, int, str, int) -> container_sdk.api.workload.list_event_pb2.ListEventResponse """ 获取workload事件记录 :param request: list_event请求 :param org: 客户的org编号,为数字 :param user: 调用api使用的用户名 :param timeout: 调用超时时间,单位秒 :return: container_sdk.api.workload.list_event_pb2.ListEventResponse """ headers = {"org": org, "user": user} route_name = "" server_ip = self._server_ip if self._service_name != "": route_name = self._service_name elif self._server_ip != "": route_name = "easyops.api.container.workload.ListEvent" uri = "/api/container/v1/workloads/{instanceId}/events".format( instanceId=request.instanceId, ) requestParam = request rsp_obj = container_sdk.utils.http_util.do_api_request( method="GET", src_name="logic.container_sdk", dst_name=route_name, server_ip=server_ip, server_port=self._server_port, host=self._host, uri=uri, params=google.protobuf.json_format.MessageToDict( requestParam, preserving_proto_field_name=True), headers=headers, timeout=timeout, ) rsp = container_sdk.api.workload.list_event_pb2.ListEventResponse() google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True) return rsp def list_history(self, request, org, user, timeout=10): # type: (container_sdk.api.workload.list_history_pb2.ListHistoryRequest, int, str, int) -> container_sdk.api.workload.list_history_pb2.ListHistoryResponse """ 获取workload版本历史 :param request: list_history请求 :param org: 客户的org编号,为数字 :param user: 调用api使用的用户名 :param timeout: 调用超时时间,单位秒 :return: container_sdk.api.workload.list_history_pb2.ListHistoryResponse """ headers = {"org": org, "user": user} route_name = "" server_ip = self._server_ip if self._service_name != "": route_name = self._service_name elif self._server_ip != "": route_name = "easyops.api.container.workload.ListHistory" uri = "/api/container/v1/workloads/{instanceId}/history".format( instanceId=request.instanceId, ) requestParam = request rsp_obj = container_sdk.utils.http_util.do_api_request( method="GET", src_name="logic.container_sdk", dst_name=route_name, server_ip=server_ip, server_port=self._server_port, host=self._host, uri=uri, params=google.protobuf.json_format.MessageToDict( requestParam, preserving_proto_field_name=True), headers=headers, timeout=timeout, ) rsp = container_sdk.api.workload.list_history_pb2.ListHistoryResponse() google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True) return rsp def restart(self, request, org, user, timeout=10): # type: (container_sdk.api.workload.restart_pb2.RestartRequest, int, str, int) -> google.protobuf.empty_pb2.Empty """ 重启工作负载 :param request: restart请求 :param org: 客户的org编号,为数字 :param user: 调用api使用的用户名 :param timeout: 调用超时时间,单位秒 :return: google.protobuf.empty_pb2.Empty """ headers = {"org": org, "user": user} route_name = "" server_ip = self._server_ip if self._service_name != "": route_name = self._service_name elif self._server_ip != "": route_name = "easyops.api.container.workload.Restart" uri = "/api/container/v1/workloads/{instanceId}/restart".format( instanceId=request.instanceId, ) requestParam = request rsp_obj = container_sdk.utils.http_util.do_api_request( method="PUT", src_name="logic.container_sdk", dst_name=route_name, server_ip=server_ip, server_port=self._server_port, host=self._host, uri=uri, params=google.protobuf.json_format.MessageToDict( requestParam, preserving_proto_field_name=True), headers=headers, timeout=timeout, ) rsp = google.protobuf.empty_pb2.Empty() google.protobuf.json_format.ParseDict(rsp_obj, rsp, ignore_unknown_fields=True) return rsp def rollback(self, request, org, user, timeout=10): # type: (container_sdk.api.workload.rollback_pb2.RollbackRequest, int, str, int) -> google.protobuf.empty_pb2.Empty """ 回滚 :param request: rollback请求 :param org: 客户的org编号,为数字 :param user: 调用api使用的用户名 :param timeout: 调用超时时间,单位秒 :return: google.protobuf.empty_pb2.Empty """ headers = {"org": org, "user": user} route_name = "" server_ip = self._server_ip if self._service_name != "": route_name = self._service_name elif self._server_ip != "": route_name = "easyops.api.container.workload.Rollback" uri = "/api/container/v1/workloads/{instanceId}/rollback".format( instanceId=request.instanceId, ) requestParam = request rsp_obj = container_sdk.utils.http_util.do_api_request( method="PUT", src_name="logic.container_sdk", dst_name=route_name, server_ip=server_ip, server_port=self._server_port, host=self._host, uri=uri, params=google.protobuf.json_format.MessageToDict( requestParam, preserving_proto_field_name=True), headers=headers, timeout=timeout, ) rsp = google.protobuf.empty_pb2.Empty() google.protobuf.json_format.ParseDict(rsp_obj, rsp, ignore_unknown_fields=True) return rsp def update(self, request, org, user, timeout=10): # type: (container_sdk.api.workload.update_pb2.UpdateRequest, int, str, int) -> container_sdk.model.container.workload_pb2.Workload """ 更新工作负载 :param request: update请求 :param org: 客户的org编号,为数字 :param user: 调用api使用的用户名 :param timeout: 调用超时时间,单位秒 :return: container_sdk.model.container.workload_pb2.Workload """ headers = {"org": org, "user": user} route_name = "" server_ip = self._server_ip if self._service_name != "": route_name = self._service_name elif self._server_ip != "": route_name = "easyops.api.container.workload.Update" uri = "/api/container/v1/workloads/{instanceId}".format( instanceId=request.instanceId, ) requestParam = request rsp_obj = container_sdk.utils.http_util.do_api_request( method="PUT", src_name="logic.container_sdk", dst_name=route_name, server_ip=server_ip, server_port=self._server_port, host=self._host, uri=uri, params=google.protobuf.json_format.MessageToDict( requestParam, preserving_proto_field_name=True), headers=headers, timeout=timeout, ) rsp = container_sdk.model.container.workload_pb2.Workload() google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True) return rsp def update_resource_spec(self, request, org, user, timeout=10): # type: (container_sdk.api.workload.update_resource_spec_pb2.UpdateResourceSpecRequest, int, str, int) -> container_sdk.model.container.workload_pb2.Workload """ 更新 Workload yaml 文件定义 :param request: update_resource_spec请求 :param org: 客户的org编号,为数字 :param user: 调用api使用的用户名 :param timeout: 调用超时时间,单位秒 :return: container_sdk.model.container.workload_pb2.Workload """ headers = {"org": org, "user": user} route_name = "" server_ip = self._server_ip if self._service_name != "": route_name = self._service_name elif self._server_ip != "": route_name = "easyops.api.container.workload.UpdateResourceSpec" uri = "/api/container/v1/workloads/{instanceId}/yaml".format( instanceId=request.instanceId, ) requestParam = request rsp_obj = container_sdk.utils.http_util.do_api_request( method="PUT", src_name="logic.container_sdk", dst_name=route_name, server_ip=server_ip, server_port=self._server_port, host=self._host, uri=uri, params=google.protobuf.json_format.MessageToDict( requestParam, preserving_proto_field_name=True), headers=headers, timeout=timeout, ) rsp = container_sdk.model.container.workload_pb2.Workload() google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True) return rsp
37.660988
165
0.615054
2,402
22,107
5.385928
0.070358
0.077916
0.047538
0.072892
0.88931
0.885368
0.847337
0.811084
0.761459
0.7603
0
0.006983
0.287466
22,107
586
166
37.725256
0.814309
0.196001
0
0.766234
0
0
0.089364
0.064373
0
0
0
0
0
1
0.036364
false
0
0.049351
0
0.122078
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
1dcbbb17d317470711043e2f83988eea2688ea58
20,533
py
Python
sgqcmm/orcs/forms.py
luizhenriquemaia/system_sgq
ef531a26b29945602132bbac436734f8b16bae7a
[ "MIT" ]
null
null
null
sgqcmm/orcs/forms.py
luizhenriquemaia/system_sgq
ef531a26b29945602132bbac436734f8b16bae7a
[ "MIT" ]
null
null
null
sgqcmm/orcs/forms.py
luizhenriquemaia/system_sgq
ef531a26b29945602132bbac436734f8b16bae7a
[ "MIT" ]
null
null
null
from django import forms from django.db.models import Q from main.models import (a10CatsInsumos, a11Insumos, a15AtvsPad, a19PlsPgtos, a20StsOrcs, c01Usuarios, e06ContCad) class formAdicionarDesconto(forms.Form): valor_desconto = forms.CharField( label='valor_desconto', max_length=5, required=True) class formInserirInsumoNaAtividade(forms.Form): insumo = forms.ModelChoiceField(queryset=a11Insumos.objetos.all().only("id", "descricao", "codigo").order_by('descricao'), to_field_name="id", widget=forms.Select(attrs={'class':'select-add-button'})) quant_insumo = forms.CharField(max_length=10) valor_insumo = forms.CharField(max_length=10, required=False) class formInserirServico(forms.Form): descricao = forms.CharField(max_length=255) codigo_eap = forms.CharField(max_length=30) tipo = forms.ChoiceField(choices=[ ('3', 'Entrega Externa'), ('5', 'Totalizador de Entrega Externa')]) quantidade = forms.CharField(max_length=20, required=False) unidade = forms.CharField(max_length=20, required=False) valor_unitario = forms.CharField(max_length=20, required=False) class formEditarEap(forms.Form): codigo_eap = forms.CharField(max_length=10, required=False) descricao = forms.CharField(max_length=400, required=False) quantidade = forms.CharField(max_length=20, required=False) unidade = forms.CharField(max_length=20, required=False) valor_unitario = forms.CharField(max_length=20, required=False) class formCadInsumo(forms.Form): categoria_insumo = forms.ModelChoiceField(queryset=a10CatsInsumos.objetos.all().only('id', 'ordenador', 'descricao').order_by('ordenador'), to_field_name="id") descricao = forms.CharField(max_length=100, required=True) unidade = forms.CharField(max_length=5, required=True) custo = forms.DecimalField(max_digits=12, decimal_places=4) espessura = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0, required=False) comprimento = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0, required=False) largura = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0, required=False) class formAtualizarDadosInsumo(forms.Form): descricao = forms.CharField(max_length=100, required=False) valor_unitario = forms.DecimalField(max_digits=12, decimal_places=4, required=False) unidade = forms.CharField(max_length=5, required=False) espessura = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0, required=False) comprimento = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0, required=False) largura = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0, required=False) categoria = forms.ModelChoiceField(queryset=a10CatsInsumos.objetos.all().only('id', 'ordenador', 'descricao').order_by('ordenador'), to_field_name="id", required=False) class formInserirDeslocamento(forms.Form): distancia = forms.DecimalField(max_digits=12, decimal_places=2, min_value=0, required=False) tipo_veiculo = forms.ChoiceField(choices=[('0', ''),('1', 'Carro'), ('2', 'Caminhonete'), ('3', 'Caminhão Munck'), ('4', 'Caminhão Toco')], required=False) dias = forms.DecimalField(max_digits=12, decimal_places=1, min_value=0, required=False) hospedagem = forms.DecimalField(max_digits=12, decimal_places=1, min_value=0, required=False) passagem = forms.DecimalField(max_digits=12, decimal_places=1, min_value=0, required=False) class formAlterarInsumoOrc(forms.Form): insumo = forms.ModelChoiceField(queryset=a11Insumos.objetos.all().only("id", "descricao", "codigo").order_by('descricao'), to_field_name="id", required=False) quantidade = forms.DecimalField(max_digits=12, decimal_places=4, required=False) valor_unitario = forms.DecimalField(max_digits=12, decimal_places=4, required=False) class formEditarProposta(forms.Form): def __init__(self, *args, **kwargs): escolhas_empresas = kwargs.pop('escolhas_empresas') super().__init__(*args, **kwargs) self.fields['empresa'].choices = escolhas_empresas tratamento = forms.CharField( label='tratamento', max_length=20, required=True) nomeCliente = forms.CharField( label='nomeCliente', max_length=300, required=True) empresa = forms.ChoiceField() condPgto = forms.ModelChoiceField( queryset=a19PlsPgtos.objetos.all(), to_field_name="id", required=False) prazoObra = forms.CharField( label='prazoObra', max_length=10, required=True) prazoValidade = forms.CharField( label='prazoValidade', max_length=5, required=True) vendedor = forms.ModelChoiceField( queryset=c01Usuarios.objetos.all(), to_field_name="id", required=False) tipo_proposta = forms.ChoiceField(choices=[('1', 'Execução de serviços'), ('2', 'Só o material')], required=True) show_index = forms.ChoiceField(choices=[('0', 'Sim'), ('1', 'Não')], required=True) class formEditarContrato(forms.Form): def __init__(self, *args, **kwargs): escolhas_empresas = kwargs.pop('escolhas_empresas') super().__init__(*args, **kwargs) self.fields['empresa'].choices = escolhas_empresas nomeCliente = forms.CharField( label='nomeCliente', max_length=300, required=True) cnpj = forms.CharField(label='cnpj', max_length=14, required=True) telefone = forms.CharField(label='telefone', max_length=20, required=True) empresa = forms.ChoiceField() enderecoObra = forms.CharField( label='enderecoObra', max_length=500, required=False) condPgto = forms.ModelChoiceField( queryset=a19PlsPgtos.objetos.all(), to_field_name="id") prazoObra = forms.CharField( label='prazoObra', max_length=10, required=True) vendedor = forms.ModelChoiceField( queryset=c01Usuarios.objetos.all(), to_field_name="id") class formAlterarStatus(forms.Form): combStatus = forms.ModelChoiceField(queryset=a20StsOrcs.objetos.all().order_by('descricao')) class formMarcarVisita(forms.Form): dataVisita = forms.DateField(widget=forms.TextInput(attrs={'class': 'datepicker'}), required=True) horaVisita = forms.TimeField(widget=forms.TextInput(attrs={'class': 'timepicker'}), required=True) combTiposVisita = forms.ChoiceField(choices=[('0', ''),('1', 'Cobertura de Policarbonato'), ('2', 'Venezianas')], required=True) class formMedidasVenezianas(forms.Form): selante = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=38).order_by("descricao"), to_field_name="codigo") base = forms.DecimalField(max_digits=12, decimal_places=4, required=False) altura = forms.DecimalField(max_digits=12, decimal_places=4, required=False) repeticoes = forms.DecimalField(max_digits=12, decimal_places=4, required=False) rebite = forms.DecimalField(max_digits=12, decimal_places=4, required=False) class formOrcamentoMultiClickPlanoFixo(forms.Form): chapa = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=57).order_by("descricao"), to_field_name="codigo") perfil_arremate = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(Q(catins_id=43)|Q(catins_id=42)).order_by("descricao"), to_field_name="codigo") tampa = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=58).order_by("descricao"), to_field_name="codigo") garra = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=59).order_by("descricao"), to_field_name="codigo") fita = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=46).order_by("descricao"), to_field_name="codigo") selante = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=38).order_by("descricao"), to_field_name="codigo") parafuso_arremate = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=60).order_by("descricao"), to_field_name="codigo") parafuso_terca = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=60).order_by("descricao"), to_field_name="codigo") perfil_estrutural_externo = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=15).order_by("descricao"), to_field_name="codigo") perfil_estrutural_interno = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=15).order_by("descricao"), to_field_name="codigo") rufo = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=16).order_by("descricao"), to_field_name="codigo") calha = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=16).order_by("descricao"), to_field_name="codigo") tipo_pintura = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=52).order_by("descricao"), to_field_name="codigo") quantidade_pintura = forms.DecimalField(max_digits=12, decimal_places=4, required=False) comprimento = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) largura = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) declividade = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) repeticoes = forms.DecimalField(max_digits=12, decimal_places=2, min_value=0) distancia_entre_apoios = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) distancia_entre_maos_f = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) montante = forms.ChoiceField(choices=[('0', 'livre'), ('1', 'rufo'), ('2', 'calha'), ('3', 'tampar')], required=False) jusante = forms.ChoiceField(choices=[('0', 'livre'), ('1', 'rufo'), ('2', 'calha'), ('3', 'tampar')], required=False) lateral_esquerda = forms.ChoiceField(choices=[('0', 'livre'), ('1', 'rufo'), ('2', 'calha'), ('3', 'tampar')], required=False) lateral_direita = forms.ChoiceField(choices=[('0', 'livre'), ('1', 'rufo'), ('2', 'calha'), ('3', 'tampar')], required=False) dias_serralheiro = forms.DecimalField(max_digits=12, decimal_places=4, required=False) quantidade_serralheiro = forms.DecimalField(max_digits=12, decimal_places=4, required=False) dias_auxiliar = forms.DecimalField(max_digits=12, decimal_places=4, required=False) quantidade_auxiliar = forms.DecimalField(max_digits=12, decimal_places=4, required=False) dificuldade = forms.ChoiceField(choices=[('1', 'fácil'), ('2', 'médio'), ('3', 'difícil')], required=False) aproveitar_estrutura = forms.BooleanField(required=False) class formOrcamentoTelhaTrapezoidalFixo(forms.Form): telha = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter( Q(catins_id=61)|Q(catins_id=62)).order_by("descricao"), to_field_name="codigo") parafuso_costura = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter( Q(catins_id=37)|Q(catins_id=60)).order_by("descricao"), to_field_name="codigo") parafuso_fixacao = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter( Q(catins_id=37) | Q(catins_id=60)).order_by("descricao"), to_field_name="codigo") selante = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=38).order_by("descricao"), to_field_name="codigo") perfil_estrutural_externo = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=15).order_by("descricao"), to_field_name="codigo") perfil_estrutural_interno = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=15).order_by("descricao"), to_field_name="codigo") rufo = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=16).order_by("descricao"), to_field_name="codigo") calha = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=16).order_by("descricao"), to_field_name="codigo") tipo_pintura = forms.ModelChoiceField( queryset=a11Insumos.objetos.filter(catins_id=52).order_by("descricao"), to_field_name="codigo") quantidade_pintura = forms.DecimalField(max_digits=12, decimal_places=4, required=False) comprimento = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) largura = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) declividade = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) repeticoes = forms.DecimalField(max_digits=12, decimal_places=2, min_value=0) distancia_entre_apoios = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) distancia_entre_maos_f = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) montante = forms.ChoiceField(choices=[('0', 'livre'), ('1', 'rufo'), ('2', 'calha'), ('3', 'tampar')], required=False) jusante = forms.ChoiceField(choices=[('0', 'livre'), ('1', 'rufo'), ('2', 'calha'), ('3', 'tampar')], required=False) lateral_esquerda = forms.ChoiceField(choices=[('0', 'livre'), ('1', 'rufo'), ('2', 'calha'), ('3', 'tampar')], required=False) lateral_direita = forms.ChoiceField(choices=[('0', 'livre'), ('1', 'rufo'), ('2', 'calha'), ('3', 'tampar')], required=False) dias_serralheiro = forms.DecimalField(max_digits=12, decimal_places=4, required=False) quantidade_serralheiro = forms.DecimalField(max_digits=12, decimal_places=4, required=False) dias_auxiliar = forms.DecimalField(max_digits=12, decimal_places=4, required=False) quantidade_auxiliar = forms.DecimalField(max_digits=12, decimal_places=4, required=False) dificuldade = forms.ChoiceField(choices=[(1, 'fácil'), (2, 'médio'), (3, 'difícil')], required=False) aproveitar_estrutura = forms.BooleanField(required=False) class FormChapasPolicarbonato(forms.Form): tipo_policarbonato = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(Q(catins_id=41) | Q(catins_id=49) | Q(catins_id=55)).order_by("descricao"), to_field_name="codigo") tipo_perfil_uniao = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(catins_id=42).order_by("descricao"), to_field_name="codigo") tipo_perfil_arremate = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(Q(catins_id=43) | Q(catins_id=42)).order_by("descricao"), to_field_name="codigo") tipo_perfil_u = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(catins_id=44).order_by("descricao"), to_field_name="codigo") tipo_guarnicao = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(catins_id=47).order_by("descricao"), to_field_name="codigo") tipo_gaxeta = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(catins_id=47).order_by("descricao"), to_field_name="codigo") tipo_fita_vent = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(catins_id=46).order_by("descricao"), to_field_name="codigo") tipo_fita_aluminio = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(catins_id=46).order_by("descricao"), to_field_name="codigo") tipo_selante = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(catins_id=38).order_by("descricao"), to_field_name="codigo") class FormEstruturaCobertura(forms.Form): tipo_perfil_externo = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(catins_id=15).order_by("descricao"), to_field_name="codigo") tipo_perfil_interno = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(catins_id=15).order_by("descricao"), to_field_name="codigo") tipo_pintura = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(catins_id=52).order_by("descricao").order_by("descricao"), to_field_name="codigo") quantidade_pintura = forms.DecimalField(max_digits=12, decimal_places=2, min_value=0, required=False) chapa_rufo = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(Q(catins_id=16)|Q(catins_id=63)).order_by("descricao"), to_field_name="codigo") chapa_calha = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(Q(catins_id=16)|Q(catins_id=63)).order_by("descricao"), to_field_name="codigo") montante = forms.ChoiceField(choices=[('0', 'livre'), ('1', 'rufo'), ('2', 'calha'), ('3', 'tampar')], required=False) jusante = forms.ChoiceField(choices=[('0', 'livre'), ('1', 'rufo'), ('2', 'calha'), ('3', 'tampar')], required=False) lateral_esquerda = forms.ChoiceField(choices=[('0', 'livre'), ('1', 'rufo'), ('2', 'calha'), ('3', 'tampar')], required=False) lateral_direita = forms.ChoiceField(choices=[('0', 'livre'), ('1', 'rufo'), ('2', 'calha'), ('3', 'tampar')], required=False) dias_serralheiro = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0, required=False) quantidade_serralheiro = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0, required=False) dias_auxiliar = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0, required=False) quantidade_auxiliar = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0, required=False) dificuldade = forms.ChoiceField( choices=[(1, 'fácil'), (2, 'médio'), (3, 'difícil')], required=False) aproveitar_estrutura = forms.BooleanField(required=False) class FormEstruturaCoberturaCurva(forms.Form): tipo_calandra = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(catins_id=51).order_by("descricao"), to_field_name="codigo") class FormMedidasCoberturaPlana(forms.Form): comprimento_cobertura = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) largura_cobertura = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) declividade_cobertura = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) repeticoes_cobertura = forms.DecimalField(max_digits=12, decimal_places=2, min_value=0) distancia_apoios_cobertura = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) quantidade_maos_francesas = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0, required=False) class FormMedidasCoberturaCurva(forms.Form): corda_cobertura = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) flecha_cobertura = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) largura_cobertura = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) repeticoes_cobertura = forms.DecimalField(max_digits=12, decimal_places=2, min_value=0) distancia_apoios_cobertura = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0) quantidade_maos_francesas = forms.DecimalField(max_digits=12, decimal_places=4, min_value=0, required=False) class FormCoberturaRetratil(forms.Form): tipo_motor = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(catins_id=53).order_by("descricao"), to_field_name="codigo") quantidade_motor = forms.DecimalField(max_digits=12, decimal_places=0, min_value=0) quantidade_modulos = forms.DecimalField(max_digits=12, decimal_places=0, min_value=0) quantidade_modulos_moveis = forms.DecimalField(max_digits=12, decimal_places=0, min_value=0) direcao_movimento = forms.ChoiceField(choices=[('0', 'comprimento'), ('1', 'largura')], required=True) tipo_cantoneira = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(catins_id=15).order_by("descricao"), to_field_name="codigo") tipo_perfil_cantoneira = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(catins_id=15).order_by("descricao"), to_field_name="codigo") tipo_roldana = forms.ModelChoiceField(queryset=a11Insumos.objetos.filter(catins_id=54).order_by("descricao"), to_field_name="codigo")
62.792049
172
0.708421
2,440
20,533
5.748361
0.09959
0.063953
0.085555
0.111222
0.855839
0.836589
0.828818
0.800442
0.746613
0.734279
0
0.032745
0.155214
20,533
327
173
62.792049
0.775856
0
0
0.558304
0
0
0.073731
0
0
0
0
0
0
1
0.007067
false
0.003534
0.010601
0
0.674912
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
7
69b948668eebf3eaf2e6b5aa6a6310b6a66b3928
15,650
py
Python
modules/pieces.py
yusufyil/MarunPythonProject
1f63211a72e780d92ed6ca6e1b3a288c16c1405f
[ "MIT" ]
3
2022-01-06T13:50:25.000Z
2022-01-07T12:40:51.000Z
modules/pieces.py
yusufyil/MarunPythonProject
1f63211a72e780d92ed6ca6e1b3a288c16c1405f
[ "MIT" ]
null
null
null
modules/pieces.py
yusufyil/MarunPythonProject
1f63211a72e780d92ed6ca6e1b3a288c16c1405f
[ "MIT" ]
null
null
null
import pygame as pg import os class chessPieces: def __init__(self, type, color, xPos, yPos, firstMoove): self.type = type self.color = color self.xPos = xPos self.yPos = yPos self.firstMoove = firstMoove self.graphic = None def isLegalMoove(self, pos = []): if pos[0] >= 0 and pos[0] <= 7 and pos[1] >= 0 and pos[1] <= 7: return True else: return False class king(chessPieces): def __init__(self, type, color, xPos, yPos, firstMoove): super().__init__(type, color, xPos, yPos, firstMoove) self.possibleMoovements = [] self.loadImage() def loadImage(self): if(self.color == "white"): self.graphic = pg.image.load(os.path.join("assets", "wking.png")) elif((self).color == "black"): self.graphic = pg.image.load(os.path.join("assets", "bking.png")) self.graphic = pg.transform.scale(self.graphic,(85,85)) def createPossibleMoovements(self, gameBoard = []): self.possibleMoovements.clear() tempMoovements = [] tempMoovements.append([self.xPos - 1, self.yPos - 1]) tempMoovements.append([self.xPos, self.yPos - 1]) tempMoovements.append([self.xPos + 1, self.yPos - 1]) tempMoovements.append([self.xPos - 1, self.yPos]) tempMoovements.append([self.xPos + 1, self.yPos]) tempMoovements.append([self.xPos - 1, self.yPos + 1]) tempMoovements.append([self.xPos, self.yPos + 1]) tempMoovements.append([self.xPos + 1, self.yPos + 1]) for m in tempMoovements: if self.isLegalMoove(m): if gameBoard[m[0]][m[1]] == 0: self.possibleMoovements.append(m) elif gameBoard[m[0]][m[1]].color != self.color: self.possibleMoovements.append(m) else: continue class queen(chessPieces): def __init__(self, type, color, xPos, yPos, firstMoove): super().__init__(type, color, xPos, yPos, firstMoove) self.possibleMoovements = [] self.loadImage() def loadImage(self): if(self.color == "white"): self.graphic = pg.image.load(os.path.join("assets", "wqueen.png")) elif((self).color == "black"): self.graphic = pg.image.load(os.path.join("assets", "bqueen.png")) self.graphic = pg.transform.scale(self.graphic, (85, 85)) def createPossibleMoovements(self, gameBoard = []): self.possibleMoovements.clear() for i in range(1, 8): if self.isLegalMoove([self.xPos + i, self.yPos]): if gameBoard[self.xPos + i][self.yPos] == 0: self.possibleMoovements.append([self.xPos + i, self.yPos]) elif gameBoard[self.xPos + i][self.yPos].color != self.color: self.possibleMoovements.append([self.xPos + i, self.yPos]) break else: break for i in range(1, 8): if self.isLegalMoove([self.xPos - i, self.yPos]): if gameBoard[self.xPos - i][self.yPos] == 0: self.possibleMoovements.append([self.xPos - i, self.yPos]) elif gameBoard[self.xPos - i][self.yPos].color != self.color: self.possibleMoovements.append([self.xPos - i, self.yPos]) break else: break for i in range(1, 8): if self.isLegalMoove([self.xPos, self.yPos + i]): if gameBoard[self.xPos][self.yPos + i] == 0: self.possibleMoovements.append([self.xPos, self.yPos + i]) elif gameBoard[self.xPos][self.yPos + i].color != self.color: self.possibleMoovements.append([self.xPos, self.yPos + i]) break else: break for i in range(1, 8): if self.isLegalMoove([self.xPos, self.yPos - i]): if gameBoard[self.xPos][self.yPos - i] == 0: self.possibleMoovements.append([self.xPos, self.yPos - i]) elif gameBoard[self.xPos][self.yPos - i].color != self.color: self.possibleMoovements.append([self.xPos, self.yPos - i]) break else: break for i in range(1, 8): if self.isLegalMoove([self.xPos - i, self.yPos - i]): if gameBoard[self.xPos - i][self.yPos - i] == 0: self.possibleMoovements.append([self.xPos - i, self.yPos - i]) elif gameBoard[self.xPos - i][self.yPos - i].color != self.color: self.possibleMoovements.append([self.xPos - i, self.yPos - i]) break else: break for i in range(1, 8): if self.isLegalMoove([self.xPos + i, self.yPos - i]): if gameBoard[self.xPos + i][self.yPos - i] == 0: self.possibleMoovements.append([self.xPos + i, self.yPos - i]) elif gameBoard[self.xPos + i][self.yPos - i].color != self.color: self.possibleMoovements.append([self.xPos + i, self.yPos - i]) break else: break for i in range(1, 8): if self.isLegalMoove([self.xPos + i, self.yPos + i]): if gameBoard[self.xPos + i][self.yPos + i] == 0: self.possibleMoovements.append([self.xPos + i, self.yPos + i]) elif gameBoard[self.xPos + i][self.yPos + i].color != self.color: self.possibleMoovements.append([self.xPos + i, self.yPos + i]) break else: break for i in range(1, 8): if self.isLegalMoove([self.xPos - i, self.yPos + i]): if gameBoard[self.xPos - i][self.yPos + i] == 0: self.possibleMoovements.append([self.xPos - i, self.yPos - i]) elif gameBoard[self.xPos - i][self.yPos + i].color != self.color: self.possibleMoovements.append([self.xPos - i, self.yPos + i]) break else: break class rook(chessPieces): def __init__(self, type, color, xPos, yPos, firstMoove): super().__init__(type, color, xPos, yPos, firstMoove) self.possibleMoovements = [] self.loadImage() def loadImage(self): if(self.color == "white"): self.graphic = pg.image.load(os.path.join("assets", "wrook.png")) elif((self).color == "black"): self.graphic = pg.image.load(os.path.join("assets", "brook.png")) self.graphic = pg.transform.scale(self.graphic, (85, 85)) def createPossibleMoovements(self, gameBoard = []): self.possibleMoovements.clear() for i in range(1, 8): if self.isLegalMoove([self.xPos + i, self.yPos]): if gameBoard[self.xPos + i][self.yPos] == 0: self.possibleMoovements.append([self.xPos + i, self.yPos]) elif gameBoard[self.xPos + i][self.yPos].color != self.color: self.possibleMoovements.append([self.xPos + i, self.yPos]) break else: break for i in range(1, 8): if self.isLegalMoove([self.xPos - i, self.yPos]): if gameBoard[self.xPos - i][self.yPos] == 0: self.possibleMoovements.append([self.xPos - i, self.yPos]) elif gameBoard[self.xPos - i][self.yPos].color != self.color: self.possibleMoovements.append([self.xPos - i, self.yPos]) break else: break for i in range(1, 8): if self.isLegalMoove([self.xPos, self.yPos + i]): if gameBoard[self.xPos][self.yPos + i] == 0: self.possibleMoovements.append([self.xPos, self.yPos + i]) elif gameBoard[self.xPos][self.yPos + i].color != self.color: self.possibleMoovements.append([self.xPos, self.yPos + i]) break else: break for i in range(1, 8): if self.isLegalMoove([self.xPos, self.yPos - i]): if gameBoard[self.xPos][self.yPos - i] == 0: self.possibleMoovements.append([self.xPos, self.yPos - i]) elif gameBoard[self.xPos][self.yPos - i].color != self.color: self.possibleMoovements.append([self.xPos, self.yPos - i]) break else: break class bishop(chessPieces): def __init__(self, type, color, xPos, yPos, firstMoove): super().__init__(type, color, xPos, yPos, firstMoove) self.possibleMoovements = [] self.loadImage() def loadImage(self): if(self.color == "white"): self.graphic = pg.image.load(os.path.join("assets", "wbishop.png")) elif((self).color == "black"): self.graphic = pg.image.load(os.path.join("assets", "bbishop.png")) self.graphic = pg.transform.scale(self.graphic, (85, 85)) def createPossibleMoovements(self, gameBoard = []): self.possibleMoovements.clear() for i in range(1, 8): if self.isLegalMoove([self.xPos - i, self.yPos - i]): if gameBoard[self.xPos - i][self.yPos - i] == 0: self.possibleMoovements.append([self.xPos - i, self.yPos - i]) elif gameBoard[self.xPos - i][self.yPos - i].color != self.color: self.possibleMoovements.append([self.xPos - i, self.yPos - i]) break else: break for i in range(1, 8): if self.isLegalMoove([self.xPos + i, self.yPos - i]): if gameBoard[self.xPos + i][self.yPos - i] == 0: self.possibleMoovements.append([self.xPos + i, self.yPos - i]) elif gameBoard[self.xPos + i][self.yPos - i].color != self.color: self.possibleMoovements.append([self.xPos + i, self.yPos - i]) break else: break for i in range(1, 8): if self.isLegalMoove([self.xPos + i, self.yPos + i]): if gameBoard[self.xPos + i][self.yPos + i] == 0: self.possibleMoovements.append([self.xPos + i, self.yPos + i]) elif gameBoard[self.xPos + i][self.yPos + i].color != self.color: self.possibleMoovements.append([self.xPos + i, self.yPos + i]) break else: break for i in range(1, 8): if self.isLegalMoove([self.xPos - i, self.yPos + i]): if gameBoard[self.xPos - i][self.yPos + i] == 0: self.possibleMoovements.append([self.xPos - i, self.yPos + i]) elif gameBoard[self.xPos - i][self.yPos + i].color != self.color: self.possibleMoovements.append([self.xPos - i, self.yPos + i]) break else: break class knight(chessPieces): def __init__(self, type, color, xPos, yPos, firstMoove): super().__init__(type, color, xPos, yPos, firstMoove) self.possibleMoovements = [] self.loadImage() def loadImage(self): if(self.color == "white"): self.graphic = pg.image.load(os.path.join("assets", "wknight.png")) elif((self).color == "black"): self.graphic = pg.image.load(os.path.join("assets", "bknight.png")) self.graphic = pg.transform.scale(self.graphic, (85, 85)) def createPossibleMoovements(self, gameBoard = []): self.possibleMoovements.clear() tempMoovements = [] tempMoovements.append([self.xPos - 1, self.yPos - 2]) tempMoovements.append([self.xPos + 1, self.yPos - 2]) tempMoovements.append([self.xPos - 2, self.yPos + 1]) tempMoovements.append([self.xPos - 2, self.yPos - 1]) tempMoovements.append([self.xPos + 2, self.yPos - 1]) tempMoovements.append([self.xPos + 2, self.yPos + 1]) tempMoovements.append([self.xPos - 1, self.yPos + 2]) tempMoovements.append([self.xPos + 1, self.yPos + 2]) for m in tempMoovements: if self.isLegalMoove(m): if gameBoard[m[0]][m[1]] == 0: self.possibleMoovements.append(m) elif gameBoard[m[0]][m[1]] != 0 and gameBoard[m[0]][m[1]].color != self.color: self.possibleMoovements.append(m) class pawn(chessPieces): def __init__(self, type, color, xPos, yPos, firstMoove): super().__init__(type, color, xPos, yPos, firstMoove) self.possibleMoovements = [] self.loadImage() def loadImage(self): if(self.color == "white"): self.graphic = pg.image.load(os.path.join("assets", "wpawn.png")) elif((self).color == "black"): self.graphic = pg.image.load(os.path.join("assets", "bpawn.png")) self.graphic = pg.transform.scale(self.graphic, (85, 85)) def createPossibleMoovements(self, gameBoard = []): self.possibleMoovements.clear() if self.color == "white": if self.isLegalMoove([self.xPos, self.yPos - 1]): if gameBoard[self.xPos][self.yPos - 1] == 0: self.possibleMoovements.append([self.xPos, self.yPos - 1]) if self.isLegalMoove([self.xPos, self.yPos - 2]): if gameBoard[self.xPos][self.yPos - 2] == 0 and not self.firstMoove: self.possibleMoovements.append([self.xPos, self.yPos - 2]) if self.isLegalMoove([self.xPos - 1, self.yPos - 1]): if gameBoard[self.xPos - 1][self.yPos - 1] != 0: if gameBoard[self.xPos - 1][self.yPos - 1].color == "black": self.possibleMoovements.append([self.xPos - 1, self.yPos - 1]) if self.isLegalMoove([self.xPos + 1, self.yPos - 1]): if gameBoard[self.xPos + 1][self.yPos - 1] != 0: if gameBoard[self.xPos + 1][self.yPos - 1].color == "black": self.possibleMoovements.append([self.xPos + 1, self.yPos - 1]) elif self.color =="black": if self.isLegalMoove([self.xPos, self.yPos + 1]): if gameBoard[self.xPos][self.yPos + 1] == 0: self.possibleMoovements.append([self.xPos, self.yPos + 1]) if self.isLegalMoove([self.xPos, self.yPos + 2]): if gameBoard[self.xPos][self.yPos + 2] == 0 and not self.firstMoove: self.possibleMoovements.append([self.xPos, self.yPos + 2]) if self.isLegalMoove([self.xPos - 1, self.yPos + 1]): if gameBoard[self.xPos - 1][self.yPos + 1] != 0: if gameBoard[self.xPos - 1][self.yPos + 1].color == "white": self.possibleMoovements.append([self.xPos - 1, self.yPos + 1]) if self.isLegalMoove([self.xPos + 1, self.yPos + 1]): if gameBoard[self.xPos + 1][self.yPos + 1] != 0: if gameBoard[self.xPos + 1][self.yPos + 1].color == "white": self.possibleMoovements.append([self.xPos + 1, self.yPos + 1])
48.90625
94
0.530032
1,800
15,650
4.579444
0.042222
0.121315
0.06551
0.094626
0.956933
0.956933
0.956327
0.95572
0.95572
0.949776
0
0.016517
0.330735
15,650
319
95
49.059561
0.770479
0
0
0.732441
0
0
0.017894
0
0
0
0
0
0
1
0.06689
false
0
0.006689
0
0.103679
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
2a529252123bacc94dd4597019206c44f72dccc2
175
py
Python
src/utils/__init__.py
mrsunny0/template-datalab
724eb09d9f4fb1bcab3afb8e2aae02bb39750e21
[ "MIT" ]
null
null
null
src/utils/__init__.py
mrsunny0/template-datalab
724eb09d9f4fb1bcab3afb8e2aae02bb39750e21
[ "MIT" ]
null
null
null
src/utils/__init__.py
mrsunny0/template-datalab
724eb09d9f4fb1bcab3afb8e2aae02bb39750e21
[ "MIT" ]
null
null
null
# module level imports # from . import s3 # from . import lambdas from . import pathfinder # function level imports # from .pathfinder.main import change_dir, file_structure
21.875
57
0.771429
23
175
5.782609
0.608696
0.225564
0.240602
0
0
0
0
0
0
0
0
0.006849
0.165714
175
8
57
21.875
0.90411
0.788571
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
2a692d27221c7e79fe58b89521d4843425ab08ca
3,013
py
Python
authors/apps/articles/tests/test_like_dislike.py
SilasKenneth/ah-technocrats
c199e6dd432bdb4a5e1152f90cb1716b09af2c4e
[ "BSD-3-Clause" ]
1
2018-12-04T15:29:57.000Z
2018-12-04T15:29:57.000Z
authors/apps/articles/tests/test_like_dislike.py
SilasKenneth/ah-technocrats
c199e6dd432bdb4a5e1152f90cb1716b09af2c4e
[ "BSD-3-Clause" ]
52
2018-11-27T08:00:25.000Z
2021-06-10T20:58:16.000Z
authors/apps/articles/tests/test_like_dislike.py
SilasKenneth/ah-technocrats
c199e6dd432bdb4a5e1152f90cb1716b09af2c4e
[ "BSD-3-Clause" ]
4
2019-07-15T10:24:22.000Z
2020-02-04T19:15:12.000Z
from rest_framework import status from .base_test import BaseTestCase from django.urls import reverse class TestArticles(BaseTestCase): "class to test liking and disliking of articles" def test_like(self): """test for liking an article""" self.user_signup() token = self.user_login() response = self.client.put(self.like_article(), format='json', HTTP_AUTHORIZATION='Token ' + token) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data, {'article': 'You have liked this article'}) def test_dislike(self): """test for liking an article""" self.user_signup() token = self.user_login() response = self.client.put(self.dislike_article(), format='json', HTTP_AUTHORIZATION='Token ' + token) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data, {'article': "You have disliked this article"}) def test_like_dislike(self): """test for liking then disliking an article""" self.user_signup() token = self.user_login() response = self.client.put(self.like_article(), format='json', HTTP_AUTHORIZATION='Token ' + token) self.assertEqual(response.data, {'article': 'You have liked this article'}) response = self.client.put(self.dislike_article(), format='json', HTTP_AUTHORIZATION='Token ' + token) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data, {'article': "You have disliked this article"}) def test_dislike_like(self): """test for liking then disliking an article""" self.user_signup() token = self.user_login() response = self.client.put(self.dislike_article(), format='json', HTTP_AUTHORIZATION='Token ' + token) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data, {'article': "You have disliked this article"}) response = self.client.put(self.like_article(), format='json', HTTP_AUTHORIZATION='Token ' + token) self.assertEqual(response.data, {'article': 'You have liked this article'}) def test_like_nonexisting_article(self): """test for liking an article""" self.user_signup() token = self.user_login() response = self.client.put(self.likearticle_url, format='json', HTTP_AUTHORIZATION='Token ' + token) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertEqual(response.data, {'Error': "Article does not exist"}) def test_dislike_nonexisting_article(self): """test for liking an article""" self.user_signup() token = self.user_login() response = self.client.put(self.dislikearticle_url, format='json', HTTP_AUTHORIZATION='Token ' + token) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertEqual(response.data, {'Error': "Article does not exist"})
50.216667
111
0.686027
370
3,013
5.418919
0.156757
0.062843
0.160599
0.083791
0.900249
0.881796
0.881796
0.881796
0.881796
0.881796
0
0.007395
0.192167
3,013
59
112
51.067797
0.816352
0.078991
0
0.711111
0
0
0.14081
0
0
0
0
0
0.311111
1
0.133333
false
0
0.066667
0
0.222222
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
2a859894d307a62e9d92629b334fff75b88ac29e
115
py
Python
python/pycppad/__init__.py
Simple-Robotics/pycppad
894c46b41e9c1fd383e8be2cc815d3274ab48b2f
[ "BSD-3-Clause" ]
5
2021-08-19T14:17:13.000Z
2021-08-25T08:37:23.000Z
python/pycppad/__init__.py
Simple-Robotics/pycppad
894c46b41e9c1fd383e8be2cc815d3274ab48b2f
[ "BSD-3-Clause" ]
8
2021-08-19T22:15:25.000Z
2021-10-11T10:16:23.000Z
python/pycppad/__init__.py
Simple-Robotics/pycppad
894c46b41e9c1fd383e8be2cc815d3274ab48b2f
[ "BSD-3-Clause" ]
3
2021-08-19T15:02:46.000Z
2021-08-23T11:15:33.000Z
# # Copyright 2021 INRIA # from .pycppad_pywrap import * from .pycppad_pywrap import __version__, __raw_version__
16.428571
56
0.8
14
115
5.785714
0.642857
0.271605
0.419753
0.567901
0
0
0
0
0
0
0
0.040404
0.13913
115
6
57
19.166667
0.777778
0.173913
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
2a9645cfb0d0ebf86c57e43fffb80cfa6926d120
1,855
py
Python
src/algorithmsv2/mergesort.py
BozeBro/SortingVisualizer
5d85b436a0e779247ecc2ed7e1e538c67fc314c6
[ "MIT" ]
null
null
null
src/algorithmsv2/mergesort.py
BozeBro/SortingVisualizer
5d85b436a0e779247ecc2ed7e1e538c67fc314c6
[ "MIT" ]
4
2021-06-08T22:35:38.000Z
2022-03-12T00:50:00.000Z
src/algorithmsv2/mergesort.py
BozeBro/SortingVisualizer
5d85b436a0e779247ecc2ed7e1e538c67fc314c6
[ "MIT" ]
null
null
null
def merge_sort(array, start=None, end=None): if end is None or start is None: end = len(array) - 1 start = 0 if end <= start: return mid = start + ((end - start + 1) // 2) - 1 yield from merge_sort(array, start, mid) yield from merge_sort(array, mid + 1, end) yield from merge(array, start, mid, end) def merge(array, start, mid, end): merged, left, right = [], start, mid + 1 while left <= mid and right <= end: if array[left] < array[right]: merged.append((left, array[left])) left += 1 else: merged.append((right, array[right])) right += 1 while left <= mid: merged.append((left, array[left])) left += 1 while right <= end: merged.append((right, array[right])) right += 1 for i, (ind, val) in enumerate(merged): array[start + i] = val yield start + i, val def test_merge_sort(array, start=None, end=None): if end is None or start is None: end = len(array) - 1 start = 0 if end <= start: return mid = start + ((end - start + 1) // 2) - 1 test_merge_sort(array, start, mid) test_merge_sort(array, mid + 1, end) test_merge(array, start, mid, end) def test_merge(array, start, mid, end): merged, left, right = [], start, mid + 1 while left <= mid and right <= end: if array[left] < array[right]: merged.append((left, array[left])) left += 1 else: merged.append((right, array[right])) right += 1 while left <= mid: merged.append((left, array[left])) left += 1 while right <= end: merged.append((right, array[right])) right += 1 for i, (ind, val) in enumerate(merged): array[start + i] = val
26.5
49
0.536927
251
1,855
3.924303
0.12749
0.101523
0.085279
0.077157
0.966497
0.895431
0.795939
0.795939
0.795939
0.795939
0
0.017657
0.328302
1,855
70
50
26.5
0.772873
0
0
0.8
0
0
0
0
0
0
0
0
0
1
0.072727
false
0
0
0
0.109091
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
2aa5d01d4140085f55e6f48ee2dc3e1d9d5a9238
41,155
py
Python
utils/get_data_hbag/pb/ehrv2_pb2.py
NovemberChopin/GuideLine
d49b3b527a5e54f3ee734c8d5245efb89150d594
[ "MIT" ]
null
null
null
utils/get_data_hbag/pb/ehrv2_pb2.py
NovemberChopin/GuideLine
d49b3b527a5e54f3ee734c8d5245efb89150d594
[ "MIT" ]
null
null
null
utils/get_data_hbag/pb/ehrv2_pb2.py
NovemberChopin/GuideLine
d49b3b527a5e54f3ee734c8d5245efb89150d594
[ "MIT" ]
1
2022-02-28T11:58:47.000Z
2022-02-28T11:58:47.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: ehrv2.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() import header_pb2 as header__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='ehrv2.proto', package='haomo.hios', syntax='proto3', serialized_options=None, serialized_pb=b'\n\x0b\x65hrv2.proto\x12\nhaomo.hios\x1a\x0cheader.proto\"\x86\x03\n\x13\x45hrv2DynamicInfoBus\x12\x13\n\x0bsys_time_us\x18\x01 \x01(\x04\x12\x1a\n\x12i_traffic_jam_info\x18\x02 \x01(\r\x12\x19\n\x11i_traffic_jam_dis\x18\x03 \x01(\r\x12\x1c\n\x14i_traffic_event_info\x18\x04 \x01(\r\x12\x1b\n\x13i_traffic_event_dis\x18\x05 \x01(\r\x12\x16\n\x0ei_weather_info\x18\x06 \x01(\r\x12\x15\n\ri_temperature\x18\x07 \x01(\x11\x12#\n\x1bi_traffic_jam_distance_hold\x18\x08 \x01(\r\x12$\n\x1ci_repair_road_point_distance\x18\t \x01(\r\x12\x1d\n\x15i_ctrl_point_distance\x18\n \x01(\r\x12\x17\n\x0fi_build_up_area\x18\x0b \x01(\r\x12\x1e\n\x16i_cmplx_insct_distance\x18\x0c \x01(\r\x12\x16\n\x0ei_country_code\x18\r \x01(\r\"N\n\x0b\x45hrv2HdrBus\x12\x13\n\x0bsys_time_us\x18\x01 \x01(\x04\x12\x16\n\x0emap_data_valid\x18\x02 \x01(\r\x12\x12\n\nerror_code\x18\x03 \x01(\r\"S\n\x10\x45hrv2MetaInfoBus\x12\x13\n\x0bsys_time_us\x18\x01 \x01(\x04\x12\x16\n\x0ei_spd_lmt_unit\x18\x02 \x01(\r\x12\x12\n\ni_drv_side\x18\x03 \x01(\r\"j\n\x0f\x45hrv2NavStubBus\x12\x13\n\x0bi_stub_type\x18\x01 \x01(\r\x12\x12\n\ni_stub_dis\x18\x02 \x01(\r\x12\x14\n\x0ci_stub_direc\x18\x03 \x01(\r\x12\x18\n\x10i_stub_ramp_type\x18\x04 \x01(\r\"\xfc\x01\n\x0f\x45hrv2RoadRoiBus\x12\x13\n\x0bsys_time_us\x18\x01 \x01(\x04\x12\x1f\n\x17i_toll_booth_front_info\x18\x02 \x01(\r\x12\x18\n\x10i_toll_booth_dis\x18\x03 \x01(\r\x12\x1b\n\x13i_enter_bridge_info\x18\x04 \x01(\r\x12\x14\n\x0ci_bridge_dis\x18\x05 \x01(\r\x12\x1b\n\x13i_enter_tunnel_info\x18\x06 \x01(\r\x12\x14\n\x0ci_tunnel_dis\x18\x07 \x01(\r\x12\x1c\n\x14i_enter_service_info\x18\x08 \x01(\r\x12\x15\n\ri_service_dis\x18\t \x01(\r\"\xca\x01\n\x13\x45hrv2TrafficInfoBus\x12\x13\n\x0bsys_time_us\x18\x01 \x01(\x04\x12\x1c\n\x14i_spd_lmt_front_info\x18\x02 \x01(\r\x12#\n\x1bi_end_of_spd_lmt_front_info\x18\x03 \x01(\r\x12\"\n\x1ai_end_of_spd_lmt_front_dis\x18\x04 \x01(\r\x12\x1b\n\x13i_traffic_sign_type\x18\x05 \x01(\r\x12\x1a\n\x12i_traffic_sign_dis\x18\x06 \x01(\r\"\xe1\x01\n\x0f\x45hrv2NavInfoBus\x12\x13\n\x0bsys_time_us\x18\x01 \x01(\x04\x12\x17\n\x0fi_suggest_lanes\x18\x02 \x01(\r\x12!\n\x19\x64istance_of_suggest_point\x18\x03 \x01(\r\x12\x32\n\rst_split_stub\x18\x04 \x03(\x0b\x32\x1b.haomo.hios.Ehrv2NavStubBus\x12\x32\n\rst_merge_stub\x18\x05 \x03(\x0b\x32\x1b.haomo.hios.Ehrv2NavStubBus\x12\x15\n\ri_on_nav_path\x18\x06 \x01(\r\"\xa1\x05\n\x10\x45hrv2RoadInfoBus\x12\x13\n\x0bsys_time_us\x18\x01 \x01(\x04\x12\x19\n\x11i_func_road_class\x18\x02 \x01(\r\x12\x15\n\ri_form_of_way\x18\x03 \x01(\r\x12\x16\n\x0ei_spd_lmt_type\x18\x04 \x01(\r\x12\x11\n\ti_spd_lmt\x18\x05 \x01(\r\x12\x1a\n\x12i_lane_num_cur_drv\x18\x06 \x01(\r\x12\x1a\n\x12i_lane_num_cur_opp\x18\x07 \x01(\r\x12!\n\x19i_electronic_eye_distance\x18\x08 \x01(\r\x12$\n\x1ci_electronic_eye_speed_limit\x18\t \x01(\r\x12\x18\n\x10i_road_curvature\x18\n \x01(\x02\x12\x1c\n\x14i_road_curvature_far\x18\x0b \x01(\x02\x12%\n\x1di_road_curvature_far_distance\x18\x0c \x01(\r\x12\x14\n\x0ci_road_slope\x18\r \x01(\x02\x12\x18\n\x10i_road_slope_far\x18\x0e \x01(\x02\x12%\n\x1di_road_curvature_value_matrix\x18\x0f \x03(\x02\x12(\n i_road_curvature_distance_matrix\x18\x10 \x03(\x02\x12$\n\x1ci_road_curvature_matrix_size\x18\x11 \x01(\r\x12!\n\x19i_road_slope_value_matrix\x18\x12 \x03(\x02\x12$\n\x1ci_road_slope_distance_matrix\x18\x13 \x03(\x02\x12 \n\x18i_road_slope_matrix_size\x18\x14 \x01(\r\x12)\n!i_multi_way_intersection_distance\x18\x15 \x01(\r\"\xc7\x03\n\x07\x45hrv2Pb\x12\"\n\x06header\x18\x01 \x01(\x0b\x32\x12.haomo.hios.Header\x12\x36\n\rehrv2_dynamic\x18\x02 \x01(\x0b\x32\x1f.haomo.hios.Ehrv2DynamicInfoBus\x12*\n\tehrv2_hdr\x18\x03 \x01(\x0b\x32\x17.haomo.hios.Ehrv2HdrBus\x12\x30\n\nehrv2_meta\x18\x04 \x01(\x0b\x32\x1c.haomo.hios.Ehrv2MetaInfoBus\x12\x33\n\x0e\x65hrv2_nav_stub\x18\x05 \x01(\x0b\x32\x1b.haomo.hios.Ehrv2NavStubBus\x12\x33\n\x0e\x65hrv2_road_roi\x18\x06 \x01(\x0b\x32\x1b.haomo.hios.Ehrv2RoadRoiBus\x12\x36\n\rehrv2_traffic\x18\x07 \x01(\x0b\x32\x1f.haomo.hios.Ehrv2TrafficInfoBus\x12.\n\tehrv2_nav\x18\x08 \x01(\x0b\x32\x1b.haomo.hios.Ehrv2NavInfoBus\x12\x30\n\nehrv2_road\x18\t \x01(\x0b\x32\x1c.haomo.hios.Ehrv2RoadInfoBusb\x06proto3' , dependencies=[header__pb2.DESCRIPTOR,]) _EHRV2DYNAMICINFOBUS = _descriptor.Descriptor( name='Ehrv2DynamicInfoBus', full_name='haomo.hios.Ehrv2DynamicInfoBus', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='sys_time_us', full_name='haomo.hios.Ehrv2DynamicInfoBus.sys_time_us', index=0, number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_traffic_jam_info', full_name='haomo.hios.Ehrv2DynamicInfoBus.i_traffic_jam_info', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_traffic_jam_dis', full_name='haomo.hios.Ehrv2DynamicInfoBus.i_traffic_jam_dis', index=2, number=3, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_traffic_event_info', full_name='haomo.hios.Ehrv2DynamicInfoBus.i_traffic_event_info', index=3, number=4, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_traffic_event_dis', full_name='haomo.hios.Ehrv2DynamicInfoBus.i_traffic_event_dis', index=4, number=5, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_weather_info', full_name='haomo.hios.Ehrv2DynamicInfoBus.i_weather_info', index=5, number=6, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_temperature', full_name='haomo.hios.Ehrv2DynamicInfoBus.i_temperature', index=6, number=7, type=17, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_traffic_jam_distance_hold', full_name='haomo.hios.Ehrv2DynamicInfoBus.i_traffic_jam_distance_hold', index=7, number=8, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_repair_road_point_distance', full_name='haomo.hios.Ehrv2DynamicInfoBus.i_repair_road_point_distance', index=8, number=9, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_ctrl_point_distance', full_name='haomo.hios.Ehrv2DynamicInfoBus.i_ctrl_point_distance', index=9, number=10, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_build_up_area', full_name='haomo.hios.Ehrv2DynamicInfoBus.i_build_up_area', index=10, number=11, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_cmplx_insct_distance', full_name='haomo.hios.Ehrv2DynamicInfoBus.i_cmplx_insct_distance', index=11, number=12, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_country_code', full_name='haomo.hios.Ehrv2DynamicInfoBus.i_country_code', index=12, number=13, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=42, serialized_end=432, ) _EHRV2HDRBUS = _descriptor.Descriptor( name='Ehrv2HdrBus', full_name='haomo.hios.Ehrv2HdrBus', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='sys_time_us', full_name='haomo.hios.Ehrv2HdrBus.sys_time_us', index=0, number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='map_data_valid', full_name='haomo.hios.Ehrv2HdrBus.map_data_valid', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='error_code', full_name='haomo.hios.Ehrv2HdrBus.error_code', index=2, number=3, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=434, serialized_end=512, ) _EHRV2METAINFOBUS = _descriptor.Descriptor( name='Ehrv2MetaInfoBus', full_name='haomo.hios.Ehrv2MetaInfoBus', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='sys_time_us', full_name='haomo.hios.Ehrv2MetaInfoBus.sys_time_us', index=0, number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_spd_lmt_unit', full_name='haomo.hios.Ehrv2MetaInfoBus.i_spd_lmt_unit', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_drv_side', full_name='haomo.hios.Ehrv2MetaInfoBus.i_drv_side', index=2, number=3, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=514, serialized_end=597, ) _EHRV2NAVSTUBBUS = _descriptor.Descriptor( name='Ehrv2NavStubBus', full_name='haomo.hios.Ehrv2NavStubBus', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='i_stub_type', full_name='haomo.hios.Ehrv2NavStubBus.i_stub_type', index=0, number=1, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_stub_dis', full_name='haomo.hios.Ehrv2NavStubBus.i_stub_dis', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_stub_direc', full_name='haomo.hios.Ehrv2NavStubBus.i_stub_direc', index=2, number=3, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_stub_ramp_type', full_name='haomo.hios.Ehrv2NavStubBus.i_stub_ramp_type', index=3, number=4, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=599, serialized_end=705, ) _EHRV2ROADROIBUS = _descriptor.Descriptor( name='Ehrv2RoadRoiBus', full_name='haomo.hios.Ehrv2RoadRoiBus', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='sys_time_us', full_name='haomo.hios.Ehrv2RoadRoiBus.sys_time_us', index=0, number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_toll_booth_front_info', full_name='haomo.hios.Ehrv2RoadRoiBus.i_toll_booth_front_info', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_toll_booth_dis', full_name='haomo.hios.Ehrv2RoadRoiBus.i_toll_booth_dis', index=2, number=3, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_enter_bridge_info', full_name='haomo.hios.Ehrv2RoadRoiBus.i_enter_bridge_info', index=3, number=4, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_bridge_dis', full_name='haomo.hios.Ehrv2RoadRoiBus.i_bridge_dis', index=4, number=5, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_enter_tunnel_info', full_name='haomo.hios.Ehrv2RoadRoiBus.i_enter_tunnel_info', index=5, number=6, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_tunnel_dis', full_name='haomo.hios.Ehrv2RoadRoiBus.i_tunnel_dis', index=6, number=7, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_enter_service_info', full_name='haomo.hios.Ehrv2RoadRoiBus.i_enter_service_info', index=7, number=8, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_service_dis', full_name='haomo.hios.Ehrv2RoadRoiBus.i_service_dis', index=8, number=9, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=708, serialized_end=960, ) _EHRV2TRAFFICINFOBUS = _descriptor.Descriptor( name='Ehrv2TrafficInfoBus', full_name='haomo.hios.Ehrv2TrafficInfoBus', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='sys_time_us', full_name='haomo.hios.Ehrv2TrafficInfoBus.sys_time_us', index=0, number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_spd_lmt_front_info', full_name='haomo.hios.Ehrv2TrafficInfoBus.i_spd_lmt_front_info', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_end_of_spd_lmt_front_info', full_name='haomo.hios.Ehrv2TrafficInfoBus.i_end_of_spd_lmt_front_info', index=2, number=3, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_end_of_spd_lmt_front_dis', full_name='haomo.hios.Ehrv2TrafficInfoBus.i_end_of_spd_lmt_front_dis', index=3, number=4, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_traffic_sign_type', full_name='haomo.hios.Ehrv2TrafficInfoBus.i_traffic_sign_type', index=4, number=5, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_traffic_sign_dis', full_name='haomo.hios.Ehrv2TrafficInfoBus.i_traffic_sign_dis', index=5, number=6, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=963, serialized_end=1165, ) _EHRV2NAVINFOBUS = _descriptor.Descriptor( name='Ehrv2NavInfoBus', full_name='haomo.hios.Ehrv2NavInfoBus', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='sys_time_us', full_name='haomo.hios.Ehrv2NavInfoBus.sys_time_us', index=0, number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_suggest_lanes', full_name='haomo.hios.Ehrv2NavInfoBus.i_suggest_lanes', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='distance_of_suggest_point', full_name='haomo.hios.Ehrv2NavInfoBus.distance_of_suggest_point', index=2, number=3, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='st_split_stub', full_name='haomo.hios.Ehrv2NavInfoBus.st_split_stub', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='st_merge_stub', full_name='haomo.hios.Ehrv2NavInfoBus.st_merge_stub', index=4, number=5, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_on_nav_path', full_name='haomo.hios.Ehrv2NavInfoBus.i_on_nav_path', index=5, number=6, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1168, serialized_end=1393, ) _EHRV2ROADINFOBUS = _descriptor.Descriptor( name='Ehrv2RoadInfoBus', full_name='haomo.hios.Ehrv2RoadInfoBus', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='sys_time_us', full_name='haomo.hios.Ehrv2RoadInfoBus.sys_time_us', index=0, number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_func_road_class', full_name='haomo.hios.Ehrv2RoadInfoBus.i_func_road_class', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_form_of_way', full_name='haomo.hios.Ehrv2RoadInfoBus.i_form_of_way', index=2, number=3, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_spd_lmt_type', full_name='haomo.hios.Ehrv2RoadInfoBus.i_spd_lmt_type', index=3, number=4, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_spd_lmt', full_name='haomo.hios.Ehrv2RoadInfoBus.i_spd_lmt', index=4, number=5, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_lane_num_cur_drv', full_name='haomo.hios.Ehrv2RoadInfoBus.i_lane_num_cur_drv', index=5, number=6, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_lane_num_cur_opp', full_name='haomo.hios.Ehrv2RoadInfoBus.i_lane_num_cur_opp', index=6, number=7, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_electronic_eye_distance', full_name='haomo.hios.Ehrv2RoadInfoBus.i_electronic_eye_distance', index=7, number=8, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_electronic_eye_speed_limit', full_name='haomo.hios.Ehrv2RoadInfoBus.i_electronic_eye_speed_limit', index=8, number=9, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_road_curvature', full_name='haomo.hios.Ehrv2RoadInfoBus.i_road_curvature', index=9, number=10, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_road_curvature_far', full_name='haomo.hios.Ehrv2RoadInfoBus.i_road_curvature_far', index=10, number=11, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_road_curvature_far_distance', full_name='haomo.hios.Ehrv2RoadInfoBus.i_road_curvature_far_distance', index=11, number=12, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_road_slope', full_name='haomo.hios.Ehrv2RoadInfoBus.i_road_slope', index=12, number=13, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_road_slope_far', full_name='haomo.hios.Ehrv2RoadInfoBus.i_road_slope_far', index=13, number=14, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_road_curvature_value_matrix', full_name='haomo.hios.Ehrv2RoadInfoBus.i_road_curvature_value_matrix', index=14, number=15, type=2, cpp_type=6, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_road_curvature_distance_matrix', full_name='haomo.hios.Ehrv2RoadInfoBus.i_road_curvature_distance_matrix', index=15, number=16, type=2, cpp_type=6, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_road_curvature_matrix_size', full_name='haomo.hios.Ehrv2RoadInfoBus.i_road_curvature_matrix_size', index=16, number=17, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_road_slope_value_matrix', full_name='haomo.hios.Ehrv2RoadInfoBus.i_road_slope_value_matrix', index=17, number=18, type=2, cpp_type=6, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_road_slope_distance_matrix', full_name='haomo.hios.Ehrv2RoadInfoBus.i_road_slope_distance_matrix', index=18, number=19, type=2, cpp_type=6, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_road_slope_matrix_size', full_name='haomo.hios.Ehrv2RoadInfoBus.i_road_slope_matrix_size', index=19, number=20, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='i_multi_way_intersection_distance', full_name='haomo.hios.Ehrv2RoadInfoBus.i_multi_way_intersection_distance', index=20, number=21, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1396, serialized_end=2069, ) _EHRV2PB = _descriptor.Descriptor( name='Ehrv2Pb', full_name='haomo.hios.Ehrv2Pb', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='header', full_name='haomo.hios.Ehrv2Pb.header', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='ehrv2_dynamic', full_name='haomo.hios.Ehrv2Pb.ehrv2_dynamic', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='ehrv2_hdr', full_name='haomo.hios.Ehrv2Pb.ehrv2_hdr', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='ehrv2_meta', full_name='haomo.hios.Ehrv2Pb.ehrv2_meta', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='ehrv2_nav_stub', full_name='haomo.hios.Ehrv2Pb.ehrv2_nav_stub', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='ehrv2_road_roi', full_name='haomo.hios.Ehrv2Pb.ehrv2_road_roi', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='ehrv2_traffic', full_name='haomo.hios.Ehrv2Pb.ehrv2_traffic', index=6, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='ehrv2_nav', full_name='haomo.hios.Ehrv2Pb.ehrv2_nav', index=7, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='ehrv2_road', full_name='haomo.hios.Ehrv2Pb.ehrv2_road', index=8, number=9, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2072, serialized_end=2527, ) _EHRV2NAVINFOBUS.fields_by_name['st_split_stub'].message_type = _EHRV2NAVSTUBBUS _EHRV2NAVINFOBUS.fields_by_name['st_merge_stub'].message_type = _EHRV2NAVSTUBBUS _EHRV2PB.fields_by_name['header'].message_type = header__pb2._HEADER _EHRV2PB.fields_by_name['ehrv2_dynamic'].message_type = _EHRV2DYNAMICINFOBUS _EHRV2PB.fields_by_name['ehrv2_hdr'].message_type = _EHRV2HDRBUS _EHRV2PB.fields_by_name['ehrv2_meta'].message_type = _EHRV2METAINFOBUS _EHRV2PB.fields_by_name['ehrv2_nav_stub'].message_type = _EHRV2NAVSTUBBUS _EHRV2PB.fields_by_name['ehrv2_road_roi'].message_type = _EHRV2ROADROIBUS _EHRV2PB.fields_by_name['ehrv2_traffic'].message_type = _EHRV2TRAFFICINFOBUS _EHRV2PB.fields_by_name['ehrv2_nav'].message_type = _EHRV2NAVINFOBUS _EHRV2PB.fields_by_name['ehrv2_road'].message_type = _EHRV2ROADINFOBUS DESCRIPTOR.message_types_by_name['Ehrv2DynamicInfoBus'] = _EHRV2DYNAMICINFOBUS DESCRIPTOR.message_types_by_name['Ehrv2HdrBus'] = _EHRV2HDRBUS DESCRIPTOR.message_types_by_name['Ehrv2MetaInfoBus'] = _EHRV2METAINFOBUS DESCRIPTOR.message_types_by_name['Ehrv2NavStubBus'] = _EHRV2NAVSTUBBUS DESCRIPTOR.message_types_by_name['Ehrv2RoadRoiBus'] = _EHRV2ROADROIBUS DESCRIPTOR.message_types_by_name['Ehrv2TrafficInfoBus'] = _EHRV2TRAFFICINFOBUS DESCRIPTOR.message_types_by_name['Ehrv2NavInfoBus'] = _EHRV2NAVINFOBUS DESCRIPTOR.message_types_by_name['Ehrv2RoadInfoBus'] = _EHRV2ROADINFOBUS DESCRIPTOR.message_types_by_name['Ehrv2Pb'] = _EHRV2PB _sym_db.RegisterFileDescriptor(DESCRIPTOR) Ehrv2DynamicInfoBus = _reflection.GeneratedProtocolMessageType('Ehrv2DynamicInfoBus', (_message.Message,), { 'DESCRIPTOR' : _EHRV2DYNAMICINFOBUS, '__module__' : 'ehrv2_pb2' # @@protoc_insertion_point(class_scope:haomo.hios.Ehrv2DynamicInfoBus) }) _sym_db.RegisterMessage(Ehrv2DynamicInfoBus) Ehrv2HdrBus = _reflection.GeneratedProtocolMessageType('Ehrv2HdrBus', (_message.Message,), { 'DESCRIPTOR' : _EHRV2HDRBUS, '__module__' : 'ehrv2_pb2' # @@protoc_insertion_point(class_scope:haomo.hios.Ehrv2HdrBus) }) _sym_db.RegisterMessage(Ehrv2HdrBus) Ehrv2MetaInfoBus = _reflection.GeneratedProtocolMessageType('Ehrv2MetaInfoBus', (_message.Message,), { 'DESCRIPTOR' : _EHRV2METAINFOBUS, '__module__' : 'ehrv2_pb2' # @@protoc_insertion_point(class_scope:haomo.hios.Ehrv2MetaInfoBus) }) _sym_db.RegisterMessage(Ehrv2MetaInfoBus) Ehrv2NavStubBus = _reflection.GeneratedProtocolMessageType('Ehrv2NavStubBus', (_message.Message,), { 'DESCRIPTOR' : _EHRV2NAVSTUBBUS, '__module__' : 'ehrv2_pb2' # @@protoc_insertion_point(class_scope:haomo.hios.Ehrv2NavStubBus) }) _sym_db.RegisterMessage(Ehrv2NavStubBus) Ehrv2RoadRoiBus = _reflection.GeneratedProtocolMessageType('Ehrv2RoadRoiBus', (_message.Message,), { 'DESCRIPTOR' : _EHRV2ROADROIBUS, '__module__' : 'ehrv2_pb2' # @@protoc_insertion_point(class_scope:haomo.hios.Ehrv2RoadRoiBus) }) _sym_db.RegisterMessage(Ehrv2RoadRoiBus) Ehrv2TrafficInfoBus = _reflection.GeneratedProtocolMessageType('Ehrv2TrafficInfoBus', (_message.Message,), { 'DESCRIPTOR' : _EHRV2TRAFFICINFOBUS, '__module__' : 'ehrv2_pb2' # @@protoc_insertion_point(class_scope:haomo.hios.Ehrv2TrafficInfoBus) }) _sym_db.RegisterMessage(Ehrv2TrafficInfoBus) Ehrv2NavInfoBus = _reflection.GeneratedProtocolMessageType('Ehrv2NavInfoBus', (_message.Message,), { 'DESCRIPTOR' : _EHRV2NAVINFOBUS, '__module__' : 'ehrv2_pb2' # @@protoc_insertion_point(class_scope:haomo.hios.Ehrv2NavInfoBus) }) _sym_db.RegisterMessage(Ehrv2NavInfoBus) Ehrv2RoadInfoBus = _reflection.GeneratedProtocolMessageType('Ehrv2RoadInfoBus', (_message.Message,), { 'DESCRIPTOR' : _EHRV2ROADINFOBUS, '__module__' : 'ehrv2_pb2' # @@protoc_insertion_point(class_scope:haomo.hios.Ehrv2RoadInfoBus) }) _sym_db.RegisterMessage(Ehrv2RoadInfoBus) Ehrv2Pb = _reflection.GeneratedProtocolMessageType('Ehrv2Pb', (_message.Message,), { 'DESCRIPTOR' : _EHRV2PB, '__module__' : 'ehrv2_pb2' # @@protoc_insertion_point(class_scope:haomo.hios.Ehrv2Pb) }) _sym_db.RegisterMessage(Ehrv2Pb) # @@protoc_insertion_point(module_scope)
48.474676
4,185
0.752618
5,656
41,155
5.152228
0.050919
0.063416
0.060533
0.04842
0.817336
0.762843
0.722007
0.694691
0.651179
0.629903
0
0.048829
0.127664
41,155
848
4,186
48.53184
0.762876
0.018321
0
0.7299
1
0.001256
0.242436
0.198732
0
0
0
0
0
1
0
false
0
0.006281
0
0.006281
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
2af5908bebfa8d19a60cd6fbcf0c097ef1b66354
1,332
py
Python
ssd_keras-master/run_ssd.py
RentadroneCL/model-definition
9dab1f1a808a1efc54d64144745277396c145ff7
[ "MIT" ]
2
2020-01-22T19:54:16.000Z
2020-02-07T12:20:17.000Z
ssd_keras-master/run_ssd.py
RentadroneCL/model-definition
9dab1f1a808a1efc54d64144745277396c145ff7
[ "MIT" ]
4
2020-06-03T00:27:22.000Z
2020-07-15T17:15:23.000Z
ssd_keras-master/run_ssd.py
RentadroneCL/model-definition
9dab1f1a808a1efc54d64144745277396c145ff7
[ "MIT" ]
1
2020-01-21T22:38:22.000Z
2020-01-21T22:38:22.000Z
import os #os.mkdir('../Experimento_5/Resultados_ssd') #os.mkdir('../Experimento_3/Resultados_ssd/ssd512') #os.mkdir('../Experimento_5/Resultados_ssd/ssd300') #os.mkdir('../Experimento_3/Resultados_ssd/ssd7') #print ('Training ssd7') #os.system('python train.py -c config_7.json > ../Experimento_3/Resultados_ssd/ssd7/ssd7.output 2> ../Experimento_3/Resultados_ssd/ssd7/ssd7.err') #print ('Testing ssd7') #os.system('python evaluate.py -c config_7.json > ../Experimento_3/Resultados_ssd/ssd7/ssd7_test.output 2> ../Experimento_3/Resultados_ssd/ssd7/ssd7_test.err') print ('Training ssd300') os.system('python train.py -c config_300.json > ../Experimento_5/Resultados_ssd/ssd300/ssd300.output 2> ../Experimento_5/Resultados_ssd/ssd300/ssd300.err') print ('Testing ssd300') os.system('python evaluate.py -c config_300.json > ../Experimento_5/Resultados_ssd/ssd300/ssd300_test.output 2> ../Experimento_5/Resultados_ssd/ssd300/ssd300_test.err') #print ('Training ssd512') #os.system('python train.py -c config_512.json > ../Experimento_3/Resultados_ssd/ssd512/ssd_512.output 2> ../Experimento_3/Resultados_ssd/ssd512/ssd_512.err') #print ('Testing ssd7') #os.system('python evaluate.py -c config_512.json > ../Experimento_3/Resultados_ssd/ssd512/ssd512_test.output 2> ../Experimento_3/Resultados_ssd/ssd512/ssd512_test.err')
47.571429
169
0.773273
199
1,332
4.944724
0.145729
0.211382
0.223577
0.254065
0.905488
0.889228
0.759146
0.552846
0.382114
0.382114
0
0.088871
0.062312
1,332
27
170
49.333333
0.698959
0.684685
0
0
0
0.4
0.808933
0.526055
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0.4
0
0
0
null
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2afa7023b03e85c9f701dd059b59b33c183ef570
3,424
py
Python
14A-235/HI/analysis/cube_pipeline.py
Astroua/LocalGroup-VLA
4920341c9e25343d724fb4a2e37cdcd234201047
[ "MIT" ]
1
2019-04-11T00:37:56.000Z
2019-04-11T00:37:56.000Z
14A-235/HI/analysis/cube_pipeline.py
Astroua/LocalGroup-VLA
4920341c9e25343d724fb4a2e37cdcd234201047
[ "MIT" ]
null
null
null
14A-235/HI/analysis/cube_pipeline.py
Astroua/LocalGroup-VLA
4920341c9e25343d724fb4a2e37cdcd234201047
[ "MIT" ]
null
null
null
''' Make signal masks and compute the moments. ''' from astropy import log from cube_analysis import run_pipeline run_042kms = True num_cores = 4 if run_042kms: log.info("Running 0.42 km/s cubes") from paths import (fourteenA_HI_data_path, fourteenA_HI_data_wEBHIS_path,) # VLA-only cube log.info("Masking and moments for the VLA-only cube") run_pipeline(fourteenA_HI_data_path("M31_14A_HI_contsub_width_04kms.image.pbcor.fits"), fourteenA_HI_data_path("", no_check=True), pb_file=fourteenA_HI_data_path("M31_14A_HI_contsub_width_04kms.pb.fits"), pb_lim=0.05, apply_pbmasking=False, convolve_to_common_beam=False, convert_to_K=True, skip_existing_mask=True, custom_mask_name=fourteenA_HI_data_wEBHIS_path("M31_14A_HI_contsub_width_04kms.image.pbcor.EBHIS_feathered_interactive_mask.fits", no_check=True), masking_kwargs={"method": "ppv_connectivity", "save_cube": True, "is_huge": True, "smooth_chans": 17, "min_chan": 5, "peak_snr": 4., "min_snr": 2, "edge_thresh": 1, "pb_map_name": fourteenA_HI_data_path("M31_14A_HI_contsub_width_04kms.pb.fits") }, moment_kwargs={"num_cores": num_cores, "verbose": True, "chunk_size": 1e6, "make_peakvels": True, "smooth_size": 1}, combeam_kwargs={}) # VLA+GBT cube log.info("Masking and moments for the VLA+EBHIS cube") run_pipeline(fourteenA_HI_data_wEBHIS_path("M31_14A_HI_contsub_width_04kms.image.pbcor.EBHIS_feathered.fits"), fourteenA_HI_data_wEBHIS_path("", no_check=True), pb_file=fourteenA_HI_data_path("M31_14A_HI_contsub_width_04kms.pb.fits"), pb_lim=0.05, apply_pbmasking=False, convolve_to_common_beam=False, convert_to_K=True, skip_existing_mask=True, custom_mask_name=fourteenA_HI_data_wEBHIS_path("M31_14A_HI_contsub_width_04kms.image.pbcor.EBHIS_feathered_interactive_mask.fits", no_check=True), masking_kwargs={"method": "ppv_connectivity", "save_cube": True, "is_huge": True, "smooth_chans": 17, "min_chan": 5, "peak_snr": 4., "min_snr": 2, "edge_thresh": 1, "pb_map_name": fourteenA_HI_data_path("M31_14A_HI_contsub_width_04kms.pb.fits") }, moment_kwargs={"num_cores": num_cores, "verbose": True, "chunk_size": 1e6, "make_peakvels": True, "smooth_size": 1}, combeam_kwargs={})
45.653333
163
0.501752
356
3,424
4.379213
0.272472
0.08467
0.115459
0.061578
0.855677
0.826171
0.806928
0.806928
0.806928
0.753047
0
0.041
0.415888
3,424
74
164
46.27027
0.7385
0.020444
0
0.733333
0
0
0.244617
0.126196
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
2dbb174d9cd32f09e86911e079f2281abc789d0e
9,561
py
Python
test/test_behavior.py
hroncok/filabel
14061f21d33629fcf1290044ab2b04fc0cdf574c
[ "MIT" ]
null
null
null
test/test_behavior.py
hroncok/filabel
14061f21d33629fcf1290044ab2b04fc0cdf574c
[ "MIT" ]
1
2018-12-04T14:33:46.000Z
2018-12-04T14:33:46.000Z
test/test_behavior.py
hroncok/filabel
14061f21d33629fcf1290044ab2b04fc0cdf574c
[ "MIT" ]
null
null
null
from helper import run, run_ok, config, user, pr_labels auth = config("auth.real.cfg") def test_empty_labels(): cp = run_ok(f'--config-labels "{config("labels.empty.cfg")}" ' f'--config-auth "{auth}" ' f'{user}/filabel-testrepo1 {user}/filabel-testrepo3') assert '\n' + cp.stdout == f''' REPO {user}/filabel-testrepo1 - OK PR https://github.com/{user}/filabel-testrepo1/pull/2 - OK PR https://github.com/{user}/filabel-testrepo1/pull/1 - OK REPO {user}/filabel-testrepo3 - OK ''' assert pr_labels('filabel-testrepo1', 1) == [] assert pr_labels('filabel-testrepo1', 2) == [] def test_404_repos(): cp = run_ok(f'--config-labels "{config("labels.empty.cfg")}" ' f'--config-auth "{auth}" ' f'hroncok/non-exsiting-repo MarekSuchanek/non-exsiting-repo') assert '\n' + cp.stdout == f''' REPO hroncok/non-exsiting-repo - FAIL REPO MarekSuchanek/non-exsiting-repo - FAIL ''' def test_foreign_repos(): cp = run_ok(f'--config-labels "{config("labels.abc.cfg")}" ' f'--config-auth "{auth}" ' f'hroncok/filabel-testrepo-everybody') assert 'REPO hroncok/filabel-testrepo-everybody - OK' in cp.stdout assert (' PR https://github.com/hroncok/filabel-testrepo-everybody/pull/1' ' - FAIL' in cp.stdout) assert cp.stdout.count('- OK\n') == 1 def test_abc_labels(): cp = run_ok(f'--config-labels "{config("labels.abc.cfg")}" ' f'--config-auth "{auth}" ' f'{user}/filabel-testrepo1 {user}/filabel-testrepo3') assert '\n' + cp.stdout == f''' REPO {user}/filabel-testrepo1 - OK PR https://github.com/{user}/filabel-testrepo1/pull/2 - OK PR https://github.com/{user}/filabel-testrepo1/pull/1 - OK + a + ab + abc REPO {user}/filabel-testrepo3 - OK ''' assert pr_labels('filabel-testrepo1', 1) == ['a', 'ab', 'abc'] assert pr_labels('filabel-testrepo1', 2) == [] def test_abc_labels_again(): cp = run_ok(f'--config-labels "{config("labels.abc.cfg")}" ' f'--config-auth "{auth}" ' f'{user}/filabel-testrepo1 {user}/filabel-testrepo3') assert '\n' + cp.stdout == f''' REPO {user}/filabel-testrepo1 - OK PR https://github.com/{user}/filabel-testrepo1/pull/2 - OK PR https://github.com/{user}/filabel-testrepo1/pull/1 - OK = a = ab = abc REPO {user}/filabel-testrepo3 - OK ''' assert pr_labels('filabel-testrepo1', 1) == ['a', 'ab', 'abc'] assert pr_labels('filabel-testrepo1', 2) == [] def test_nine_labels(): cp = run_ok(f'--config-labels "{config("labels.9.cfg")}" ' f'--config-auth "{auth}" ' f'{user}/filabel-testrepo1 {user}/filabel-testrepo3') assert '\n' + cp.stdout == f''' REPO {user}/filabel-testrepo1 - OK PR https://github.com/{user}/filabel-testrepo1/pull/2 - OK + nine + ninenine PR https://github.com/{user}/filabel-testrepo1/pull/1 - OK REPO {user}/filabel-testrepo3 - OK ''' assert pr_labels('filabel-testrepo1', 1) == ['a', 'ab', 'abc'] assert pr_labels('filabel-testrepo1', 2) == ['nine', 'ninenine'] def test_empty_labels_wont_remove(): cp = run_ok(f'--config-labels "{config("labels.empty.cfg")}" ' f'--config-auth "{auth}" ' f'{user}/filabel-testrepo1 {user}/filabel-testrepo3') assert '\n' + cp.stdout == f''' REPO {user}/filabel-testrepo1 - OK PR https://github.com/{user}/filabel-testrepo1/pull/2 - OK PR https://github.com/{user}/filabel-testrepo1/pull/1 - OK REPO {user}/filabel-testrepo3 - OK ''' assert pr_labels('filabel-testrepo1', 1) == ['a', 'ab', 'abc'] assert pr_labels('filabel-testrepo1', 2) == ['nine', 'ninenine'] def test_empty_globs_remove_disabled(): cp = run_ok(f'--config-labels "{config("labels.eraser.cfg")}" ' f'--config-auth "{auth}" ' f'--no-delete-old ' f'{user}/filabel-testrepo1 {user}/filabel-testrepo3') assert '\n' + cp.stdout == f''' REPO {user}/filabel-testrepo1 - OK PR https://github.com/{user}/filabel-testrepo1/pull/2 - OK PR https://github.com/{user}/filabel-testrepo1/pull/1 - OK REPO {user}/filabel-testrepo3 - OK ''' assert pr_labels('filabel-testrepo1', 1) == ['a', 'ab', 'abc'] assert pr_labels('filabel-testrepo1', 2) == ['nine', 'ninenine'] def test_closed_prs_no_labels(): cp = run_ok(f'--config-labels "{config("labels.abc.cfg")}" ' f'--config-auth "{auth}" ' f'{user}/filabel-testrepo4') assert '\n' + cp.stdout == f''' REPO {user}/filabel-testrepo4 - OK PR https://github.com/{user}/filabel-testrepo4/pull/3 - OK + ab + abc PR https://github.com/{user}/filabel-testrepo4/pull/2 - OK + a + ab + abc ''' assert pr_labels('filabel-testrepo4', 1) == [] assert pr_labels('filabel-testrepo4', 2) == ['a', 'ab', 'abc'] assert pr_labels('filabel-testrepo4', 3) == ['ab', 'abc'] # should erase lables, courtesy run(f'--config-labels "{config("labels.eraser.cfg")}" ' f'--config-auth "{auth}" ' f'{user}/filabel-testrepo4') def test_closed_prs_get_labels(): cp = run_ok(f'--config-labels "{config("labels.abc.cfg")}" ' f'--config-auth "{auth}" ' f'--state closed ' f'{user}/filabel-testrepo4') assert '\n' + cp.stdout == f''' REPO {user}/filabel-testrepo4 - OK PR https://github.com/{user}/filabel-testrepo4/pull/1 - OK + a + ab + abc ''' assert pr_labels('filabel-testrepo4', 1) == ['a', 'ab', 'abc'] assert pr_labels('filabel-testrepo4', 2) == [] assert pr_labels('filabel-testrepo4', 3) == [] # should erase lables, courtesy run(f'--config-labels "{config("labels.eraser.cfg")}" ' f'--config-auth "{auth}" ' f'--state closed ' f'{user}/filabel-testrepo4') def test_all_prs_get_labels(): cp = run_ok(f'--config-labels "{config("labels.abc.cfg")}" ' f'--config-auth "{auth}" ' f'--state all ' f'{user}/filabel-testrepo4') assert '\n' + cp.stdout == f''' REPO {user}/filabel-testrepo4 - OK PR https://github.com/{user}/filabel-testrepo4/pull/3 - OK + ab + abc PR https://github.com/{user}/filabel-testrepo4/pull/2 - OK + a + ab + abc PR https://github.com/{user}/filabel-testrepo4/pull/1 - OK + a + ab + abc ''' assert pr_labels('filabel-testrepo4', 1) == ['a', 'ab', 'abc'] assert pr_labels('filabel-testrepo4', 2) == ['a', 'ab', 'abc'] assert pr_labels('filabel-testrepo4', 3) == ['ab', 'abc'] # should erase lables, courtesy run(f'--config-labels "{config("labels.eraser.cfg")}" ' f'--config-auth "{auth}" ' f'--state all ' f'{user}/filabel-testrepo4') def test_master_base(): cp = run_ok(f'--config-labels "{config("labels.abc.cfg")}" ' f'--config-auth "{auth}" ' f'--base master ' f'{user}/filabel-testrepo4') assert '\n' + cp.stdout == f''' REPO {user}/filabel-testrepo4 - OK PR https://github.com/{user}/filabel-testrepo4/pull/2 - OK + a + ab + abc ''' assert pr_labels('filabel-testrepo4', 2) == ['a', 'ab', 'abc'] assert pr_labels('filabel-testrepo4', 3) == [] # should erase lables, courtesy run(f'--config-labels "{config("labels.eraser.cfg")}" ' f'--config-auth "{auth}" ' f'{user}/filabel-testrepo4') def test_custom_base(): cp = run_ok(f'--config-labels "{config("labels.abc.cfg")}" ' f'--config-auth "{auth}" ' f'--base pr_open ' f'{user}/filabel-testrepo4') assert '\n' + cp.stdout == f''' REPO {user}/filabel-testrepo4 - OK PR https://github.com/{user}/filabel-testrepo4/pull/3 - OK + ab + abc ''' assert pr_labels('filabel-testrepo4', 2) == [] assert pr_labels('filabel-testrepo4', 3) == ['ab', 'abc'] # should erase lables, courtesy run(f'--config-labels "{config("labels.eraser.cfg")}" ' f'--config-auth "{auth}" ' f'{user}/filabel-testrepo4') def test_diffs(): cp = run_ok(f'--config-labels "{config("labels.changer.cfg")}" ' f'--config-auth "{auth}" ' f'{user}/filabel-testrepo1 {user}/filabel-testrepo3 ' f'hroncok/non-exisitng-repo ') assert '\n' + cp.stdout == f''' REPO {user}/filabel-testrepo1 - OK PR https://github.com/{user}/filabel-testrepo1/pull/2 - OK + eight - nine PR https://github.com/{user}/filabel-testrepo1/pull/1 - OK = a - ab = abc + cd REPO {user}/filabel-testrepo3 - OK REPO hroncok/non-exisitng-repo - FAIL ''' assert pr_labels('filabel-testrepo1', 1) == ['a', 'abc', 'cd'] assert pr_labels('filabel-testrepo1', 2) == ['eight', 'ninenine'] # The last test, if your app works, would also remove all tags supplied by # the previous tests def test_empty_globs(): cp = run_ok(f'--config-labels "{config("labels.eraser.cfg")}" ' f'--config-auth "{auth}" ' f'{user}/filabel-testrepo1 {user}/filabel-testrepo3') assert '\n' + cp.stdout == f''' REPO {user}/filabel-testrepo1 - OK PR https://github.com/{user}/filabel-testrepo1/pull/2 - OK - eight - ninenine PR https://github.com/{user}/filabel-testrepo1/pull/1 - OK - a - abc - cd REPO {user}/filabel-testrepo3 - OK ''' assert pr_labels('filabel-testrepo1', 1) == [] assert pr_labels('filabel-testrepo1', 2) == []
32.968966
79
0.587386
1,256
9,561
4.40207
0.071656
0.141255
0.115753
0.110147
0.8913
0.880449
0.87231
0.852957
0.845903
0.836137
0
0.021245
0.217237
9,561
289
80
33.083045
0.717531
0.025207
0
0.794872
0
0
0.616624
0.209085
0
0
0
0
0.196581
1
0.064103
false
0
0.004274
0
0.068376
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
93039c2e8a06e45b448c118ba3b66921d4969a83
157
py
Python
jupyterlabpymolpysnips/H-bonds/drawHbonds.py
MooersLab/pymolpysnips
50a89c85adf8006d85c1d6cd3f8aad7e440a0b92
[ "MIT" ]
null
null
null
jupyterlabpymolpysnips/H-bonds/drawHbonds.py
MooersLab/pymolpysnips
50a89c85adf8006d85c1d6cd3f8aad7e440a0b92
[ "MIT" ]
null
null
null
jupyterlabpymolpysnips/H-bonds/drawHbonds.py
MooersLab/pymolpysnips
50a89c85adf8006d85c1d6cd3f8aad7e440a0b92
[ "MIT" ]
null
null
null
cmd.do('hide everything, hydrogens') cmd.do('hide labels') cmd.do('set dash_color, blackyelow ') cmd.do('set dash_gap, 0.4') cmd.do('set dash_radius, 0.08')
26.166667
37
0.707006
29
157
3.724138
0.517241
0.231481
0.222222
0.333333
0
0
0
0
0
0
0
0.035211
0.095541
157
5
38
31.4
0.725352
0
0
0
0
0
0.649682
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
7
93822c266ad3ea9cca7fe92b96d966797d3af7f4
2,498
py
Python
AATCC/lab-report/w2/lc-13-test.py
kancheng/kan-cs-report-in-2022
2a1e1eaa515349d59803c7831a7bd4cbea890a44
[ "MIT" ]
null
null
null
AATCC/lab-report/w2/lc-13-test.py
kancheng/kan-cs-report-in-2022
2a1e1eaa515349d59803c7831a7bd4cbea890a44
[ "MIT" ]
null
null
null
AATCC/lab-report/w2/lc-13-test.py
kancheng/kan-cs-report-in-2022
2a1e1eaa515349d59803c7831a7bd4cbea890a44
[ "MIT" ]
null
null
null
import time # 計算通過 EX 1 的效率 start = time.process_time() class Solution1: def romanToInt(self, s): rn = {'I':1, 'V':5, 'X':10, 'L':50, 'C':100, 'D':500, 'M':1000} ans=0 for i in range(len(s)): if i<len(s)-1 and rn[s[i]]<rn[s[i+1]]: ans -= rn[s[i]] else: ans += rn[s[i]] return ans x = "III" ob1 = Solution1() print(ob1.romanToInt(x)) end = time.process_time() print("Process Time: time of EX 1 is %.5f" % float(end-start)) start = time.perf_counter() class Solution1: def romanToInt(self, s): rn = {'I':1, 'V':5, 'X':10, 'L':50, 'C':100, 'D':500, 'M':1000} ans=0 for i in range(len(s)): if i<len(s)-1 and rn[s[i]]<rn[s[i+1]]: ans -= rn[s[i]] else: ans += rn[s[i]] return ans x = "III" ob1 = Solution1() print(ob1.romanToInt(x)) end = time.perf_counter() print("Perf Counter: time of EX 1 is %.5f" % float(end-start)) # 計算通過 EX 2 的效率 start = time.process_time() class Solution2: def romanToInt(self, s: 'str') -> 'int': value_roman = {"M":1000, "CM":900, "D":500, "CD": 400, "C":100,"XC":90, "L":50, "XL":40, "X":10, "IX":9, "V":5, "IV":4, "I":1} num = 0 specials_list = ["CM","CD","XC","XL","IX","IV"] for i in specials_list: if i in s: num = num + value_roman[i] s=s.replace(i,"") for i in s: num = num + value_roman[i] return(num) x = "III" ob2 = Solution2() print(ob2.romanToInt(x)) end = time.process_time() print("Process Time: time of EX 2 is %.5f" % float(end-start)) start = time.perf_counter() class Solution2: def romanToInt(self, s: 'str') -> 'int': value_roman = {"M":1000, "CM":900, "D":500, "CD": 400, "C":100,"XC":90, "L":50, "XL":40, "X":10, "IX":9, "V":5, "IV":4, "I":1} num = 0 specials_list = ["CM","CD","XC","XL","IX","IV"] for i in specials_list: if i in s: num = num + value_roman[i] s=s.replace(i,"") for i in s: num = num + value_roman[i] return(num) x = "III" ob2 = Solution2() print(ob2.romanToInt(x)) end = time.perf_counter() print("Perf Counter: time of EX 2 is %.5f" % float(end-start))
32.025641
79
0.467574
378
2,498
3.042328
0.187831
0.02087
0.027826
0.062609
0.97913
0.97913
0.93913
0.93913
0.93913
0.906087
0
0.0743
0.342674
2,498
78
80
32.025641
0.626066
0.010809
0
0.931507
0
0
0.095585
0
0
0
0
0
0
1
0.054795
false
0
0.013699
0
0.150685
0.109589
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
fa7373ac7b81dd8400b42bc6c34c3f27d0800fe9
119
py
Python
eppy/load_test/__init__.py
infonetworks-global/eppy
d16d796a532455f8aca21c09ff0d0aef3293d806
[ "MIT" ]
22
2016-04-16T01:09:07.000Z
2021-06-09T12:16:20.000Z
eppy/load_test/__init__.py
infonetworks-global/eppy
d16d796a532455f8aca21c09ff0d0aef3293d806
[ "MIT" ]
19
2016-04-30T11:00:08.000Z
2019-05-22T16:41:51.000Z
eppy/load_test/__init__.py
infonetworks-global/eppy
d16d796a532455f8aca21c09ff0d0aef3293d806
[ "MIT" ]
22
2016-03-02T10:55:00.000Z
2020-12-14T16:10:11.000Z
#pylint: disable=wildcard-import, W0614 from __future__ import absolute_import #pylint: disable=wildcard-import, W0614
39.666667
78
0.831933
15
119
6.266667
0.533333
0.276596
0.446809
0.574468
0.680851
0
0
0
0
0
0
0.073395
0.084034
119
2
79
59.5
0.788991
0.638655
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
faefe4df0b0c90c76b10b692e75c9a046be66f83
10,245
py
Python
full_cost/lab/migrations/0001_initial.py
CEMES-CNRS/full_cost_git
600409b49db123db82e7f66462395294dde320ce
[ "CECILL-B" ]
null
null
null
full_cost/lab/migrations/0001_initial.py
CEMES-CNRS/full_cost_git
600409b49db123db82e7f66462395294dde320ce
[ "CECILL-B" ]
null
null
null
full_cost/lab/migrations/0001_initial.py
CEMES-CNRS/full_cost_git
600409b49db123db82e7f66462395294dde320ce
[ "CECILL-B" ]
null
null
null
# Generated by Django 2.2.8 on 2019-12-20 09:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import simple_history.models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Gestionnaire', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(default=None, max_length=200)), ('last_name', models.CharField(default=None, max_length=200)), ('email', models.EmailField(default=None, max_length=200)), ], options={ 'ordering': ['last_name'], }, ), migrations.CreateModel( name='Group', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('group', models.CharField(max_length=200)), ('description', models.CharField(default='', max_length=200)), ], options={ 'ordering': ['group'], }, ), migrations.CreateModel( name='Price', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('price_category', models.CharField(choices=[('T1', 'Private Prices'), ('T2', 'Academic Prices'), ('T3', 'Internal Fact.'), ('T3ANR', 'Internal Fact. ANR')], default='T3ANR', max_length=200)), ('price', models.FloatField(default=0)), ('price_name', models.CharField(default='', max_length=200)), ('price_entity', models.CharField(choices=[('SPECTRO', 'Optical Spectroscopy'), ('TEM', 'Electronic Microscopy'), ('PREPA', 'Sample Preparation'), ('MEBA', 'Advanced MEB'), ('FIBCR', 'FIB Clean Room'), ('SOFT', 'Soft Matter'), ('MATCARAC', 'Material Caracterisation'), ('MAGNETIC', 'Magnetic Measurement'), ('CHEM', 'Chemistry'), ('CLEANR', 'Clean Room Processes'), ('UHVI', 'UHV Imagery'), ('LT4', 'LT-UHV 4 tips'), ('DUFG', 'Growth DUF'), ('NEARF', 'Near-field microscopy'), ('GROWTHIMP', 'Growth and Implantation'), ('MECA', 'Mechanic Service'), ('ELEC', 'Electronic Service')], default=('SPECTRO', 'Optical Spectroscopy'), max_length=200)), ], options={ 'ordering': ['price_entity', 'price_name', 'price_category'], }, ), migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('user_last_name', models.CharField(max_length=200)), ('user_first_name', models.CharField(max_length=200)), ('is_left', models.BooleanField(default=False)), ('group', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, to='lab.Group')), ], options={ 'ordering': ['user_last_name'], }, ), migrations.CreateModel( name='Project', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('project_name', models.CharField(max_length=200)), ('project_pi', models.CharField(max_length=200)), ('pricing', models.CharField(choices=[('T1', 'Private Prices'), ('T2', 'Academic Prices'), ('T3', 'Internal Fact.'), ('T3ANR', 'Internal Fact. ANR')], default='T3ANR', max_length=200)), ('expired', models.BooleanField(default=False)), ('expired_date', models.DateField(default=django.utils.timezone.now)), ('amount_left', models.FloatField(default=0.0)), ('gestionnaire', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, to='lab.Gestionnaire')), ], options={ 'ordering': ['project_name'], }, ), migrations.CreateModel( name='HistoricalUser', fields=[ ('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), ('user_last_name', models.CharField(max_length=200)), ('user_first_name', models.CharField(max_length=200)), ('is_left', models.BooleanField(default=False)), ('history_id', models.AutoField(primary_key=True, serialize=False)), ('history_date', models.DateTimeField()), ('history_change_reason', models.CharField(max_length=100, null=True)), ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), ('group', models.ForeignKey(blank=True, db_constraint=False, default=None, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='lab.Group')), ('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'historical user', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': 'history_date', }, bases=(simple_history.models.HistoricalChanges, models.Model), ), migrations.CreateModel( name='HistoricalProject', fields=[ ('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), ('project_name', models.CharField(max_length=200)), ('project_pi', models.CharField(max_length=200)), ('pricing', models.CharField(choices=[('T1', 'Private Prices'), ('T2', 'Academic Prices'), ('T3', 'Internal Fact.'), ('T3ANR', 'Internal Fact. ANR')], default='T3ANR', max_length=200)), ('expired', models.BooleanField(default=False)), ('expired_date', models.DateField(default=django.utils.timezone.now)), ('amount_left', models.FloatField(default=0.0)), ('history_id', models.AutoField(primary_key=True, serialize=False)), ('history_date', models.DateTimeField()), ('history_change_reason', models.CharField(max_length=100, null=True)), ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), ('gestionnaire', models.ForeignKey(blank=True, db_constraint=False, default=None, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='lab.Gestionnaire')), ('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'historical project', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': 'history_date', }, bases=(simple_history.models.HistoricalChanges, models.Model), ), migrations.CreateModel( name='HistoricalGroup', fields=[ ('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), ('group', models.CharField(max_length=200)), ('description', models.CharField(default='', max_length=200)), ('history_id', models.AutoField(primary_key=True, serialize=False)), ('history_date', models.DateTimeField()), ('history_change_reason', models.CharField(max_length=100, null=True)), ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), ('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'historical group', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': 'history_date', }, bases=(simple_history.models.HistoricalChanges, models.Model), ), migrations.CreateModel( name='Extraction', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date_after', models.DateField(default=django.utils.timezone.now)), ('date_before', models.DateField(default=django.utils.timezone.now)), ('creation_date', models.DateField(default=django.utils.timezone.now)), ('creation_id', models.IntegerField(default=-1)), ('factured', models.BooleanField(default=False)), ('amount', models.FloatField(default=0.0)), ('billing', models.CharField(choices=[('SPECTRO', 'Optical Spectroscopy'), ('TEM', 'Electronic Microscopy'), ('PREPA', 'Sample Preparation'), ('MEBA', 'Advanced MEB'), ('FIBCR', 'FIB Clean Room'), ('SOFT', 'Soft Matter'), ('MATCARAC', 'Material Caracterisation'), ('MAGNETIC', 'Magnetic Measurement'), ('CHEM', 'Chemistry'), ('CLEANR', 'Clean Room Processes'), ('UHVI', 'UHV Imagery'), ('LT4', 'LT-UHV 4 tips'), ('DUFG', 'Growth DUF'), ('NEARF', 'Near-field microscopy'), ('GROWTHIMP', 'Growth and Implantation'), ('MECA', 'Mechanic Service'), ('ELEC', 'Electronic Service')], default=('SPECTRO', 'Optical Spectroscopy'), max_length=200)), ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='lab.Project')), ], options={ 'ordering': ['creation_date', 'creation_id'], }, ), ]
61.716867
660
0.581942
1,007
10,245
5.757696
0.169811
0.041911
0.043463
0.053812
0.842187
0.814764
0.803725
0.796137
0.763022
0.763022
0
0.015205
0.248902
10,245
165
661
62.090909
0.738272
0.004392
0
0.632911
1
0
0.223867
0.006178
0
0
0
0
0
1
0
false
0
0.031646
0
0.056962
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
4f037e8441d6bf06c7ec42ce2e665ac66ce0133c
2,014
py
Python
app/resources/payment_orders.py
grantt/peregrine
3ea53ebac28beb5637aa39532a9b3bb6d0b9063c
[ "Apache-2.0" ]
1
2018-12-12T08:33:53.000Z
2018-12-12T08:33:53.000Z
app/resources/payment_orders.py
grantt/peregrine
3ea53ebac28beb5637aa39532a9b3bb6d0b9063c
[ "Apache-2.0" ]
null
null
null
app/resources/payment_orders.py
grantt/peregrine
3ea53ebac28beb5637aa39532a9b3bb6d0b9063c
[ "Apache-2.0" ]
null
null
null
import falcon import json class PaymentOrdersResource(object): def on_get(self, req, resp, order_id): """Handles GET requests""" resp.status = falcon.HTTP_200 resp.body = 'Hello world from payment orders!' def on_put(self, req, resp, order_id): """Handles PUT requests""" try: raw_json = req.stream.read() except Exception as ex: raise falcon.HTTPError(falcon.HTTP_400, 'Error', ex.message) try: result_json = json.loads(raw_json, encoding='utf-8') except ValueError: raise falcon.HTTPError(falcon.HTTP_400, 'Malformed JSON', 'Could not decode the request body. The ' 'JSON was incorrect.') resp.status = falcon.HTTP_202 resp.body = json.dumps(result_json, encoding='utf-8') class PaymentOrdersCollection(object): def on_get(self, req, resp): """Handles GET requests""" resp.status = falcon.HTTP_200 resp.body = 'Hello world from payment orders!' def on_post(self, req, resp): """Handles POST requests""" try: raw_json = req.stream.read() except Exception as ex: raise falcon.HTTPError(falcon.HTTP_400, 'Error', ex.message) try: result_json = json.loads(raw_json, encoding='utf-8') except ValueError: raise falcon.HTTPError(falcon.HTTP_400, 'Malformed JSON', 'Could not decode the request body. The ' 'JSON was incorrect.') resp.status = falcon.HTTP_202 resp.body = json.dumps(result_json, encoding='utf-8') resource = PaymentOrdersResource() collection = PaymentOrdersCollection()
34.135593
76
0.523337
204
2,014
5.058824
0.289216
0.077519
0.042636
0.077519
0.835271
0.835271
0.804264
0.755814
0.755814
0.755814
0
0.022654
0.386296
2,014
59
77
34.135593
0.812298
0.041708
0
0.772727
0
0
0.124607
0
0
0
0
0
0
1
0.090909
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
4f04720d96c774c965991e17a1ef3f16beea8713
9,200
py
Python
tests/test_users.py
Eubule/Store-Manager-With-Datastructure
c21a7307cc59b53516fb40437b1a359ca48a4f2e
[ "MIT" ]
null
null
null
tests/test_users.py
Eubule/Store-Manager-With-Datastructure
c21a7307cc59b53516fb40437b1a359ca48a4f2e
[ "MIT" ]
4
2018-10-25T07:33:03.000Z
2019-10-18T17:20:55.000Z
tests/test_users.py
Eubule/Store-Manager-With-Datastructure
c21a7307cc59b53516fb40437b1a359ca48a4f2e
[ "MIT" ]
null
null
null
from flask import json, jsonify from app import app import unittest from app.database.db import Database db = Database() class TestUser(unittest.TestCase): def setUp(self): self.app = app.test_client() db.create_tables() db.create_admin() def tearDown(self): db.delete_tables() def admin_token(self): response = self.app.post('/api/v2/auth/login', content_type = 'json/application', data=json.dumps(dict( username= "malaba", password= "malaba" ),)) token = json.loads(response.data) return token def attendant_token(self): token = self.admin_token() response = self.app.post('/api/v2/auth/signup', headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({ "username": "eric", "email": "eric@store.com", "password": "eubule", "user_role": "attendant" })) response = self.app.post('/api/v2/auth/login', content_type = 'json/application', data=json.dumps(dict( username= "eric", password= "eubule" ),)) token = json.loads(response.data) return token def test_if_admin_can_login_successfully(self): user = {"username": "malaba", "password": "malaba"} response = self.app.post("/api/v2/auth/login", content_type = "json/application", data=json.dumps(user)) self.assertIn("User successfully login", str(response.data)) response = self.app.post("/api/v2/auth/login", content_type = "json/application", data=json.dumps({"username": "ma", "password": "malaba"})) self.assertIn("Invalid Name. Name must be at least 3 characters", str(response.data)) def test_if_admin_can_register_successfully(self): token = self.admin_token() response = self.app.post('/api/v2/auth/signup', headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({ "username": "eric", "email": "eric@store.com", "password": "eubule", "user_role": "attendant" })) self.assertIn("Successfully Created Attendant", str(response.data)) response = self.app.post("/api/v2/auth/login", content_type = 'json/application', data = json.dumps({'username': 'eric', 'password': 'eubulus'})) self.assertIn("Wrong password. Please try again", str(response.data)) response = self.app.post("/api/v2/auth/login", content_type = 'json/application', data = json.dumps({'username': 'Rick', 'password': 'eubulus'})) self.assertIn("User with name Rick does not have an account", str(response.data)) response = self.app.post("/api/v2/auth/login", content_type = 'json/application', data = json.dumps({'username': 'eric', 'password': 'er'})) self.assertEqual(response.status_code, 417) response = self.app.post("/api/v2/auth/login", content_type = 'json/application', data = json.dumps({'username': 'eric', 'Oassword': 'eubule'})) self.assertEqual(response.status_code, 400) response = self.app.post("/api/v2/auth/login", content_type = 'json/application', data = json.dumps({'username': 'eric', 'password': 'eubule', 'other': 'eubule'})) self.assertEqual(response.status_code, 414) response = self.app.post("/api/v2/auth/login", content_type = 'json/application', data = json.dumps({'username': 'eric'})) self.assertEqual(response.status_code, 400) def test_if_admin_tries_to_create_user_with_wrong_data(self): token = self.attendant_token() response = self.app.post('/api/v2/auth/signup', headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({"username": "eric", "email": "eric@store.com", "password": "eubule","user_role": "attendant"})) self.assertEqual(response.status_code, 403) token = self.admin_token() response = self.app.post('/api/v2/auth/signup', headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps([])) self.assertEqual(response.status_code, 400) response = self.app.post('/api/v2/auth/signup', headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({"username": "eric", "email": "eric@store.com", "password": "eubule"})) self.assertIn("Missing fields. Please make sure username, email and password are provided", str(response.data)) response = self.app.post('/api/v2/auth/signup', headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({"username": "eric", "email": "eric@store.com", "password": "eubule","user_role": "attendant", "other": 1})) self.assertIn("Too many arguments. Only username, email and password are required", str(response.data)) response = self.app.post('/api/v2/auth/signup', headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({"username": "eric", "email": "eric@store.com", "password": "eubule","user_rol": "attendant"})) self.assertIn("Either username, email, password or user_role is missing. Please check the spelling", str(response.data)) response = self.app.post('/api/v2/auth/signup', headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({"username": "er", "email": "eric@store.com", "password": "eubule","user_role": "attendant"})) self.assertEqual(response.status_code, 417) response = self.app.post('/api/v2/auth/signup', headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({"username": "eric", "email": "ericstorecom", "password": "eubule","user_role": "attendant"})) self.assertEqual(response.status_code, 417) response = self.app.post('/api/v2/auth/signup', headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({"username": "eric", "email": "eric@store.com", "password": "eub","user_role": "attendant"})) self.assertEqual(response.status_code, 417) response = self.app.post('/api/v2/auth/signup', headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({"username": "eric", "email": "eric@store.com", "password": "eubule","user_role": "atendant"})) self.assertEqual(response.status_code, 417) def test_if_the_admin_can_successfuly_update_user_role(self): token = self.admin_token() response = self.app.post('/api/v2/auth/signup', headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({ "username": "eric", "email": "eric@store.com", "password": "eubule", "user_role": "attendant" })) response = self.app.put("/api/v2/users/1", headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({"user_role": "admin"})) self.assertIn("Successfully updated user role", str(response.data)) def test_if_admin_tries_to_update_user_role_with_wrong_data(self): token = self.admin_token() response = self.app.put("/api/v2/users/1", headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({"user_role": "admi"})) self.assertEqual(response.status_code, 417) response = self.app.put("/api/v2/users/1", headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({"user_role": "admin", "other": 1})) self.assertIn("Too many arguments. Only user_role is required", str(response.data)) response = self.app.put("/api/v2/users/1", headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({"user_rolE": "admin"})) self.assertIn("Pease make sure user_role in the request. Check spelling", str(response.data)) response = self.app.put("/api/v2/users/one", headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({"user_role": "admin"})) self.assertIn("Bad request. Id should be an integer", str(response.data)) response = self.app.put("/api/v2/users/0", headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({"user_role": "admin"})) self.assertIn("Invalid Id. Must be a positive number", str(response.data)) response = self.app.put("/api/v2/users/0", headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({})) self.assertEqual(response.status_code, 400) token = self.attendant_token() response = self.app.put("/api/v2/users/0", headers={'Authorization': 'Bearer '+ token['token']}, content_type = 'json/application', data=json.dumps({"user_role": "admin"})) self.assertIn("Access denied", str(response.data))
73.6
269
0.653043
1,123
9,200
5.250223
0.120214
0.036805
0.076323
0.132293
0.826153
0.814111
0.78443
0.76306
0.731174
0.725068
0
0.009895
0.165109
9,200
124
270
74.193548
0.757714
0
0
0.416667
0
0
0.33982
0
0
0
0
0
0.240741
1
0.083333
false
0.212963
0.037037
0
0.148148
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
7
87fc6d05762090fe255c0fdaaf1983b3f72805e4
11,455
py
Python
a10sdk/core/slb/slb_template_monitor.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
16
2015-05-20T07:26:30.000Z
2021-01-23T11:56:57.000Z
a10sdk/core/slb/slb_template_monitor.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
6
2015-03-24T22:07:11.000Z
2017-03-28T21:31:18.000Z
a10sdk/core/slb/slb_template_monitor.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
23
2015-03-29T15:43:01.000Z
2021-06-02T17:12:01.000Z
from a10sdk.common.A10BaseClass import A10BaseClass class ClearCfg(A10BaseClass): """This class does not support CRUD Operations please use parent. :param clear_sequence: {"description": "Specify the port physical port number", "minimum": 1, "type": "number", "maximum": 16, "format": "number"} :param clear_all_sequence: {"description": "Sequence number (Specify the port physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"} :param sessions: {"enum": ["all", "sequence"], "type": "string", "description": "'all': Clear all sessions; 'sequence': Sequence number; ", "format": "enum"} :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device_proxy.py` """ def __init__(self, **kwargs): self.ERROR_MSG = "" self.b_key = "clear-cfg" self.DeviceProxy = "" self.clear_sequence = "" self.clear_all_sequence = "" self.sessions = "" for keys, value in kwargs.items(): setattr(self,keys, value) class LinkEnableCfg(A10BaseClass): """This class does not support CRUD Operations please use parent. :param ena_sequence: {"description": "Sequence number (Specify the physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"} :param enaeth: {"type": "number", "description": "Specify the physical port number (Ethernet interface number)", "format": "interface"} :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device_proxy.py` """ def __init__(self, **kwargs): self.ERROR_MSG = "" self.b_key = "link-enable-cfg" self.DeviceProxy = "" self.ena_sequence = "" self.enaeth = "" for keys, value in kwargs.items(): setattr(self,keys, value) class LinkUpCfg(A10BaseClass): """This class does not support CRUD Operations please use parent. :param linkup_ethernet3: {"type": "number", "description": "Specify the port physical port number (Ethernet interface number)", "format": "interface"} :param linkup_ethernet2: {"type": "number", "description": "Specify the port physical port number (Ethernet interface number)", "format": "interface"} :param linkup_ethernet1: {"type": "number", "description": "Specify the port physical port number (Ethernet interface number)", "format": "interface"} :param link_up_sequence1: {"description": "Sequence number (Specify the port physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"} :param link_up_sequence3: {"description": "Sequence number (Specify the port physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"} :param link_up_sequence2: {"description": "Sequence number (Specify the port physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"} :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device_proxy.py` """ def __init__(self, **kwargs): self.ERROR_MSG = "" self.b_key = "link-up-cfg" self.DeviceProxy = "" self.linkup_ethernet3 = "" self.linkup_ethernet2 = "" self.linkup_ethernet1 = "" self.link_up_sequence1 = "" self.link_up_sequence3 = "" self.link_up_sequence2 = "" for keys, value in kwargs.items(): setattr(self,keys, value) class LinkDownCfg(A10BaseClass): """This class does not support CRUD Operations please use parent. :param link_down_sequence1: {"description": "Sequence number (Specify the port physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"} :param link_down_sequence2: {"description": "Sequence number (Specify the port physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"} :param link_down_sequence3: {"description": "Sequence number (Specify the port physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"} :param linkdown_ethernet2: {"type": "number", "description": "Specify the port physical port number (Ethernet interface number)", "format": "interface"} :param linkdown_ethernet3: {"type": "number", "description": "Specify the port physical port number (Ethernet interface number)", "format": "interface"} :param linkdown_ethernet1: {"type": "number", "description": "Specify the port physical port number (Ethernet interface number)", "format": "interface"} :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device_proxy.py` """ def __init__(self, **kwargs): self.ERROR_MSG = "" self.b_key = "link-down-cfg" self.DeviceProxy = "" self.link_down_sequence1 = "" self.link_down_sequence2 = "" self.link_down_sequence3 = "" self.linkdown_ethernet2 = "" self.linkdown_ethernet3 = "" self.linkdown_ethernet1 = "" for keys, value in kwargs.items(): setattr(self,keys, value) class LinkDisableCfg(A10BaseClass): """This class does not support CRUD Operations please use parent. :param dis_sequence: {"description": "Sequence number (Specify the physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"} :param diseth: {"type": "number", "description": "Specify the physical port number (Ethernet interface number)", "format": "interface"} :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device_proxy.py` """ def __init__(self, **kwargs): self.ERROR_MSG = "" self.b_key = "link-disable-cfg" self.DeviceProxy = "" self.dis_sequence = "" self.diseth = "" for keys, value in kwargs.items(): setattr(self,keys, value) class Monitor(A10BaseClass): """Class Description:: Monitor template. Class monitor supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for this module.` :param clear_cfg: {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"clear-sequence": {"description": "Specify the port physical port number", "minimum": 1, "type": "number", "maximum": 16, "format": "number"}, "clear-all-sequence": {"description": "Sequence number (Specify the port physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"}, "optional": true, "sessions": {"enum": ["all", "sequence"], "type": "string", "description": "'all': Clear all sessions; 'sequence': Sequence number; ", "format": "enum"}}}]} :param uuid: {"description": "uuid of the object", "format": "string", "minLength": 1, "modify-not-allowed": 1, "optional": true, "maxLength": 64, "type": "string"} :param link_enable_cfg: {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"ena-sequence": {"description": "Sequence number (Specify the physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"}, "enaeth": {"type": "number", "description": "Specify the physical port number (Ethernet interface number)", "format": "interface"}, "optional": true}}]} :param link_up_cfg: {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"linkup-ethernet3": {"type": "number", "description": "Specify the port physical port number (Ethernet interface number)", "format": "interface"}, "linkup-ethernet2": {"type": "number", "description": "Specify the port physical port number (Ethernet interface number)", "format": "interface"}, "linkup-ethernet1": {"type": "number", "description": "Specify the port physical port number (Ethernet interface number)", "format": "interface"}, "link-up-sequence1": {"description": "Sequence number (Specify the port physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"}, "link-up-sequence3": {"description": "Sequence number (Specify the port physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"}, "link-up-sequence2": {"description": "Sequence number (Specify the port physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"}, "optional": true}}]} :param link_down_cfg: {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"link-down-sequence1": {"description": "Sequence number (Specify the port physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"}, "link-down-sequence2": {"description": "Sequence number (Specify the port physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"}, "link-down-sequence3": {"description": "Sequence number (Specify the port physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"}, "optional": true, "linkdown-ethernet2": {"type": "number", "description": "Specify the port physical port number (Ethernet interface number)", "format": "interface"}, "linkdown-ethernet3": {"type": "number", "description": "Specify the port physical port number (Ethernet interface number)", "format": "interface"}, "linkdown-ethernet1": {"type": "number", "description": "Specify the port physical port number (Ethernet interface number)", "format": "interface"}}}]} :param link_disable_cfg: {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"dis-sequence": {"description": "Sequence number (Specify the physical port number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"}, "diseth": {"type": "number", "description": "Specify the physical port number (Ethernet interface number)", "format": "interface"}, "optional": true}}]} :param monitor_relation: {"description": "'monitor-and': Configures the monitors in current template to work with AND logic; 'monitor-or': Configures the monitors in current template to work with OR logic; ", "format": "enum", "default": "monitor-and", "type": "string", "enum": ["monitor-and", "monitor-or"], "optional": true} :param id: {"description": "Monitor template ID Number", "format": "number", "type": "number", "maximum": 16, "minimum": 1, "optional": false} :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device_proxy.py` URL for this object:: `https://<Hostname|Ip address>//axapi/v3/slb/template/monitor/{id}`. """ def __init__(self, **kwargs): self.ERROR_MSG = "" self.required = [ "id"] self.b_key = "monitor" self.a10_url="/axapi/v3/slb/template/monitor/{id}" self.DeviceProxy = "" self.clear_cfg = [] self.uuid = "" self.link_enable_cfg = [] self.link_up_cfg = [] self.link_down_cfg = [] self.link_disable_cfg = [] self.monitor_relation = "" self.A10WW_id = "" for keys, value in kwargs.items(): setattr(self,keys, value)
60.608466
1,100
0.652379
1,311
11,455
5.616323
0.095347
0.050251
0.088008
0.083662
0.824392
0.824392
0.817058
0.817058
0.812576
0.799538
0
0.014289
0.181318
11,455
188
1,101
60.930851
0.770847
0.747185
0
0.416667
0
0
0.041459
0.013436
0
0
0
0
0
1
0.083333
false
0
0.013889
0
0.180556
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e204edf6226d1ee273b9a1d4c46d84c37c0233d5
1,117
py
Python
POGGERS.py
someStranger8/POGGERS
13d43b1622c14186735cca3ab1d2ddc69100c2e2
[ "CC0-1.0" ]
null
null
null
POGGERS.py
someStranger8/POGGERS
13d43b1622c14186735cca3ab1d2ddc69100c2e2
[ "CC0-1.0" ]
null
null
null
POGGERS.py
someStranger8/POGGERS
13d43b1622c14186735cca3ab1d2ddc69100c2e2
[ "CC0-1.0" ]
null
null
null
#python 3.7.1 i=1 while i < 10: poggers = "poggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggerspoggers" print(poggers * 99999) i+=1
159.571429
1,052
0.967771
16
1,117
67.5625
0.6875
0.0037
0
0
0
0
0
0
0
0
0
0.010959
0.019696
1,117
6
1,053
186.166667
0.976256
0.010743
0
0
0
0
0.938406
0.938406
0
1
0
0
0
1
0
false
0
0
0
0
0.2
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
8
355c9e06e480fe59ec67a7fd9b0c84511e1b77da
6,964
py
Python
components/collector/tests/source_collectors/file_source_collectors/test_owasp_dependency_check.py
Gamer1120/quality-time
f3a0d6f75cd6055d78995d37feae72bc3e837e4b
[ "Apache-2.0" ]
1
2021-02-22T07:53:36.000Z
2021-02-22T07:53:36.000Z
components/collector/tests/source_collectors/file_source_collectors/test_owasp_dependency_check.py
Gamer1120/quality-time
f3a0d6f75cd6055d78995d37feae72bc3e837e4b
[ "Apache-2.0" ]
338
2020-10-29T04:28:09.000Z
2022-02-22T04:09:33.000Z
components/collector/tests/source_collectors/file_source_collectors/test_owasp_dependency_check.py
dicksnel/quality-time
4c04f8852aa97175f2bca2b5c5391b3e09b657af
[ "Apache-2.0" ]
1
2022-01-06T04:07:03.000Z
2022-01-06T04:07:03.000Z
"""Unit tests for the OWASP Dependency Check source.""" from datetime import datetime, timedelta, timezone from tests.source_collectors.source_collector_test_case import SourceCollectorTestCase from source_collectors.file_source_collectors.owasp_dependency_check import OWASPDependencyCheckBase class OWASPDependencyCheckTest(SourceCollectorTestCase): """Unit tests for the OWASP Dependency Check metrics.""" def setUp(self): super().setUp() self.sources = dict( sourceid=dict(type="owasp_dependency_check", parameters=dict(url="https://owasp_dependency_check.xml"))) async def test_warnings(self): """Test that the number of warnings is returned.""" xml = """<?xml version="1.0"?> <analysis xmlns="https://jeremylong.github.io/DependencyCheck/dependency-check.2.0.xsd"> <dependency isVirtual="false"> <sha1>12345</sha1> <fileName>jquery.min.js</fileName> <filePath>/home/jenkins/workspace/hackazon-owaspdep/hackazon/js/jquery.min.js</filePath> <vulnerabilities> <vulnerability source="NVD"> <cvssV2> <severity>MEDIUM</severity> </cvssV2> </vulnerability> <vulnerability source="NVD"> <cvssV2> <severity>LOW</severity> </cvssV2> </vulnerability> </vulnerabilities> </dependency> </analysis>""" metric = dict(type="security_warnings", addition="sum", sources=self.sources) response = await self.collect(metric, get_request_text=xml) expected_entities = [ dict(key="12345", url="https://owasp_dependency_check.html#l1_12345", highest_severity="Medium", nr_vulnerabilities="2", file_path="/home/jenkins/workspace/hackazon-owaspdep/hackazon/js/jquery.min.js")] self.assert_measurement(response, value="1", entities=expected_entities) async def test_low_warnings(self): """Test that the number of warnings is returned.""" xml = """<?xml version="1.0"?> <analysis xmlns="https://jeremylong.github.io/DependencyCheck/dependency-check.2.0.xsd"> <dependency isVirtual="false"> <sha1>12345</sha1> <fileName>jquery.min.js</fileName> <filePath>/home/jenkins/workspace/hackazon-owaspdep/hackazon/js/jquery.min.js</filePath> <vulnerabilities> <vulnerability source="NVD"> <cvssV2> <severity>LOW</severity> </cvssV2> </vulnerability> </vulnerabilities> </dependency> </analysis>""" metric = dict(type="security_warnings", addition="sum", sources=self.sources) response = await self.collect(metric, get_request_text=xml) expected_entities = [ dict(key="12345", url="https://owasp_dependency_check.html#l1_12345", highest_severity="Low", nr_vulnerabilities="1", file_path="/home/jenkins/workspace/hackazon-owaspdep/hackazon/js/jquery.min.js")] self.assert_measurement(response, value="1", entities=expected_entities) async def test_invalid_xml(self): """Test that the number of warnings is returned.""" xml = """<?xml version="1.0"?> <analysis xmlns="https://jeremylong.github.io/DependencyCheck/dependency-check.1.8.xsd"> </analysis>""" metric = dict(type="security_warnings", addition="sum", sources=self.sources) response = await self.collect(metric, get_request_text=xml) self.assert_measurement( response, value=None, entities=[], parse_error=f""" AssertionError: The XML root element should be one of \ "{OWASPDependencyCheckBase.allowed_root_tags}" but is \ "{{https://jeremylong.github.io/DependencyCheck/dependency-check.1.8.xsd}}analysis" """) async def test_dependencies(self): """Test that the dependencies are returned.""" xml = """<?xml version="1.0"?> <analysis xmlns="https://jeremylong.github.io/DependencyCheck/dependency-check.2.0.xsd"> <dependency isVirtual="false"> <sha1>9999</sha1> <fileName>jquery.min.js</fileName> <filePath>/home/jenkins/workspace/hackazon/js/jquery.min.js</filePath> <vulnerabilities> <vulnerability source="NVD"> <cvssV2> <severity>LOW</severity> </cvssV2> </vulnerability> </vulnerabilities> </dependency> </analysis>""" metric = dict(type="dependencies", addition="sum", sources=self.sources) response = await self.collect(metric, get_request_text=xml) expected_entities = [ dict(key="9999", url="https://owasp_dependency_check.html#l1_9999", file_path="/home/jenkins/workspace/hackazon/js/jquery.min.js")] self.assert_measurement(response, value="1", entities=expected_entities) async def test_source_up_to_dateness(self): """Test that the source age in days is returned.""" xml = """<?xml version="1.0"?> <analysis xmlns="https://jeremylong.github.io/DependencyCheck/dependency-check.2.0.xsd"> <projectInfo> <reportDate>2018-10-03T13:01:24.784+0200</reportDate> </projectInfo> </analysis>""" metric = dict(type="source_up_to_dateness", addition="max", sources=self.sources) response = await self.collect(metric, get_request_text=xml) timezone_info = timezone(timedelta(hours=2)) expected_age = (datetime.now(timezone_info) - datetime(2018, 10, 3, 13, 1, 24, 784, tzinfo=timezone_info)).days self.assert_measurement(response, value=str(expected_age)) async def test_source_up_to_dateness_no_encoding(self): """Test that the source age in days is returned, also when the XML has no encoding specified.""" xml = """<?xml version="1.0"?> <analysis xmlns="https://jeremylong.github.io/DependencyCheck/dependency-check.2.0.xsd"> <projectInfo> <reportDate>2018-10-03T13:01:24.784+0200</reportDate> </projectInfo> </analysis>""" metric = dict(type="source_up_to_dateness", addition="max", sources=self.sources) response = await self.collect(metric, get_request_text=xml) timezone_info = timezone(timedelta(hours=2)) expected_age = (datetime.now(timezone_info) - datetime(2018, 10, 3, 13, 1, 24, 784, tzinfo=timezone_info)).days self.assert_measurement(response, value=str(expected_age))
50.463768
119
0.612292
735
6,964
5.677551
0.193197
0.053918
0.023724
0.038581
0.831536
0.816679
0.814762
0.778337
0.773544
0.773544
0
0.031814
0.259765
6,964
137
120
50.832117
0.777692
0.01436
0
0.752137
0
0.08547
0.551253
0.130014
0
0
0
0
0.059829
1
0.008547
false
0
0.025641
0
0.042735
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
35e420e02fe276b0978c58db056786d54273851b
21,632
py
Python
operations/accounts/migrations/0002_auto_20170516_0932.py
kaizer88/emps
2669b32c46befcf1a19390fb25013817e6b00980
[ "MIT" ]
null
null
null
operations/accounts/migrations/0002_auto_20170516_0932.py
kaizer88/emps
2669b32c46befcf1a19390fb25013817e6b00980
[ "MIT" ]
null
null
null
operations/accounts/migrations/0002_auto_20170516_0932.py
kaizer88/emps
2669b32c46befcf1a19390fb25013817e6b00980
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): def insert_permissions(apps, schema_editor): Permission = apps.get_model("auth", "Permission") ContentType = apps.get_model("contenttypes", "ContentType") # content_type = ContentType.objects.get_or_create(app_label="policies", model="policy")[0] models_list = ['FileUpload', 'FuelAllocation', 'FuelCard', 'Incident', 'InsuranceClaim', 'MileageLog', 'RenewLicenceDisk', 'ServiceBooking', 'Trafficfine', 'Trip', 'TripLog', 'Vehicle', 'VehicleAllocation', 'VehicleExtras', 'VehicleMaintenance', 'VehicleMakeAndModel', 'Comment','Requisition', 'RequisitionItem'] p_types = ['view', 'create', 'edit', 'authorize'] for m in models_list: content_type = ContentType.objects.get_or_create(app_label="fleet", model=m)[0] for p_type in p_types: Permission.objects.get_or_create(codename='%s_%s' % (p_type, m.lower()), name='%s %s' % (p_type.upper(), m), content_type=content_type) Permission.objects.get_or_create(codename='view_reports', name='View Reports', content_type=content_type) Group = apps.get_model("auth", "Group") ops_executive, exists = Group.objects.get_or_create(name='Operations Executive') ops_manager, exists = Group.objects.get_or_create(name='Operations Manager') ops_fleet, exists = Group.objects.get_or_create(name='Operations Fleet') ops_assistant, exists = Group.objects.get_or_create(name='Operations Assistant') ops_assets, exists = Group.objects.get_or_create(name='Operations Assets') ops_offices, exists = Group.objects.get_or_create(name='Operations Offices') ops_property, exists = Group.objects.get_or_create(name='Operations Property And Facilities') #Operations Executive ops_executive.permissions.add(Permission.objects.get(codename='view_fileupload').pk) ops_executive.permissions.add(Permission.objects.get(codename='create_fileupload').pk) ops_executive.permissions.add(Permission.objects.get(codename='edit_fileupload').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_fileupload').pk) ops_executive.permissions.add(Permission.objects.get(codename='view_fuelallocation').pk) ops_executive.permissions.add(Permission.objects.get(codename='create_fuelallocation').pk) ops_executive.permissions.add(Permission.objects.get(codename='edit_fuelallocation').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_fuelallocation').pk) ops_executive.permissions.add(Permission.objects.get(codename='view_fuelcard').pk) ops_executive.permissions.add(Permission.objects.get(codename='create_fuelcard').pk) ops_executive.permissions.add(Permission.objects.get(codename='edit_fuelcard').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_fuelcard').pk) ops_executive.permissions.add(Permission.objects.get(codename='view_incident').pk) ops_executive.permissions.add(Permission.objects.get(codename='create_incident').pk) ops_executive.permissions.add(Permission.objects.get(codename='edit_incident').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_incident').pk) ops_executive.permissions.add(Permission.objects.get(codename='view_insuranceclaim').pk) ops_executive.permissions.add(Permission.objects.get(codename='create_insuranceclaim').pk) ops_executive.permissions.add(Permission.objects.get(codename='edit_insuranceclaim').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_insuranceclaim').pk) ops_executive.permissions.add(Permission.objects.get(codename='view_mileagelog').pk) ops_executive.permissions.add(Permission.objects.get(codename='create_mileagelog').pk) ops_executive.permissions.add(Permission.objects.get(codename='edit_mileagelog').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_mileagelog').pk) ops_executive.permissions.add(Permission.objects.get(codename='view_renewlicencedisk').pk) ops_executive.permissions.add(Permission.objects.get(codename='create_renewlicencedisk').pk) ops_executive.permissions.add(Permission.objects.get(codename='edit_renewlicencedisk').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_renewlicencedisk').pk) ops_executive.permissions.add(Permission.objects.get(codename='view_servicebooking').pk) ops_executive.permissions.add(Permission.objects.get(codename='create_servicebooking').pk) ops_executive.permissions.add(Permission.objects.get(codename='edit_servicebooking').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_servicebooking').pk) ops_executive.permissions.add(Permission.objects.get(codename='view_trafficfine').pk) ops_executive.permissions.add(Permission.objects.get(codename='create_trafficfine').pk) ops_executive.permissions.add(Permission.objects.get(codename='edit_trafficfine').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_trafficfine').pk) ops_executive.permissions.add(Permission.objects.get(codename='view_trip').pk) ops_executive.permissions.add(Permission.objects.get(codename='create_trip').pk) ops_executive.permissions.add(Permission.objects.get(codename='edit_trip').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_trip').pk) ops_executive.permissions.add(Permission.objects.get(codename='view_triplog').pk) ops_executive.permissions.add(Permission.objects.get(codename='create_triplog').pk) ops_executive.permissions.add(Permission.objects.get(codename='edit_triplog').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_triplog').pk) ops_executive.permissions.add(Permission.objects.get(codename='view_vehicle').pk) ops_executive.permissions.add(Permission.objects.get(codename='create_vehicle').pk) ops_executive.permissions.add(Permission.objects.get(codename='edit_vehicle').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_vehicle').pk) ops_executive.permissions.add(Permission.objects.get(codename='view_vehicleallocation').pk) ops_executive.permissions.add(Permission.objects.get(codename='create_vehicleallocation').pk) ops_executive.permissions.add(Permission.objects.get(codename='edit_vehicleallocation').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_vehicleallocation').pk) ops_executive.permissions.add(Permission.objects.get(codename='view_vehiclemaintenance').pk) ops_executive.permissions.add(Permission.objects.get(codename='create_vehiclemaintenance').pk) ops_executive.permissions.add(Permission.objects.get(codename='edit_vehiclemaintenance').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_vehiclemaintenance').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_comment').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_comment').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_comment').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_comment').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_requisition').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_requisition').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_requisition').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_requisition').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_requisitionitem').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_requisitionitem').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_requisitionitem').pk) ops_executive.permissions.add(Permission.objects.get(codename='authorize_requisitionitem').pk) #Operations Manager ops_manager.permissions.add(Permission.objects.get(codename='view_fileupload').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_fileupload').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_fileupload').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_fuelallocation').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_fuelallocation').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_fuelallocation').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_fuelcard').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_fuelcard').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_fuelcard').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_incident').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_incident').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_incident').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_insuranceclaim').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_insuranceclaim').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_insuranceclaim').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_mileagelog').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_mileagelog').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_mileagelog').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_renewlicencedisk').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_renewlicencedisk').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_renewlicencedisk').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_servicebooking').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_servicebooking').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_servicebooking').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_trafficfine').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_trafficfine').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_trafficfine').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_trip').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_trip').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_trip').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_triplog').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_triplog').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_triplog').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_vehicle').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_vehicle').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_vehicle').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_vehicleallocation').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_vehicleallocation').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_vehicleallocation').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_vehiclemaintenance').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_vehiclemaintenance').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_vehiclemaintenance').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_comment').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_comment').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_comment').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_requisition').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_requisition').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_requisition').pk) ops_manager.permissions.add(Permission.objects.get(codename='view_requisitionitem').pk) ops_manager.permissions.add(Permission.objects.get(codename='create_requisitionitem').pk) ops_manager.permissions.add(Permission.objects.get(codename='edit_requisitionitem').pk) #Operations Fleet ops_fleet.permissions.add(Permission.objects.get(codename='view_fileupload').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_fileupload').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_fileupload').pk) ops_fleet.permissions.add(Permission.objects.get(codename='view_fuelallocation').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_fuelallocation').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_fuelallocation').pk) ops_fleet.permissions.add(Permission.objects.get(codename='view_fuelcard').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_fuelcard').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_fuelcard').pk) ops_fleet.permissions.add(Permission.objects.get(codename='view_incident').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_incident').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_incident').pk) ops_fleet.permissions.add(Permission.objects.get(codename='view_insuranceclaim').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_insuranceclaim').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_insuranceclaim').pk) ops_fleet.permissions.add(Permission.objects.get(codename='view_mileagelog').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_mileagelog').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_mileagelog').pk) ops_fleet.permissions.add(Permission.objects.get(codename='view_renewlicencedisk').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_renewlicencedisk').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_renewlicencedisk').pk) ops_fleet.permissions.add(Permission.objects.get(codename='view_servicebooking').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_servicebooking').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_servicebooking').pk) ops_fleet.permissions.add(Permission.objects.get(codename='view_trafficfine').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_trafficfine').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_trafficfine').pk) ops_fleet.permissions.add(Permission.objects.get(codename='view_trip').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_trip').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_trip').pk) ops_fleet.permissions.add(Permission.objects.get(codename='view_triplog').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_triplog').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_triplog').pk) ops_fleet.permissions.add(Permission.objects.get(codename='view_vehicle').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_vehicle').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_vehicle').pk) ops_fleet.permissions.add(Permission.objects.get(codename='view_vehicleallocation').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_vehicleallocation').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_vehicleallocation').pk) ops_fleet.permissions.add(Permission.objects.get(codename='view_vehiclemaintenance').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_vehiclemaintenance').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_vehiclemaintenance').pk) ops_fleet.permissions.add(Permission.objects.get(codename='view_comment').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_comment').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_comment').pk) ops_fleet.permissions.add(Permission.objects.get(codename='view_requisition').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_requisition').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_requisition').pk) ops_fleet.permissions.add(Permission.objects.get(codename='view_requisitionitem').pk) ops_fleet.permissions.add(Permission.objects.get(codename='create_requisitionitem').pk) ops_fleet.permissions.add(Permission.objects.get(codename='edit_requisitionitem').pk) #Operations Assistant ops_assistant.permissions.add(Permission.objects.get(codename='view_fileupload').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_fileupload').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_fileupload').pk) ops_assistant.permissions.add(Permission.objects.get(codename='view_fuelallocation').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_fuelallocation').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_fuelallocation').pk) ops_assistant.permissions.add(Permission.objects.get(codename='view_fuelcard').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_fuelcard').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_fuelcard').pk) ops_assistant.permissions.add(Permission.objects.get(codename='view_incident').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_incident').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_incident').pk) ops_assistant.permissions.add(Permission.objects.get(codename='view_insuranceclaim').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_insuranceclaim').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_insuranceclaim').pk) ops_assistant.permissions.add(Permission.objects.get(codename='view_mileagelog').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_mileagelog').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_mileagelog').pk) ops_assistant.permissions.add(Permission.objects.get(codename='view_renewlicencedisk').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_renewlicencedisk').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_renewlicencedisk').pk) ops_assistant.permissions.add(Permission.objects.get(codename='view_servicebooking').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_servicebooking').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_servicebooking').pk) ops_assistant.permissions.add(Permission.objects.get(codename='view_trafficfine').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_trafficfine').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_trafficfine').pk) ops_assistant.permissions.add(Permission.objects.get(codename='view_trip').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_trip').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_trip').pk) ops_assistant.permissions.add(Permission.objects.get(codename='view_triplog').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_triplog').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_triplog').pk) ops_assistant.permissions.add(Permission.objects.get(codename='view_vehicle').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_vehicle').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_vehicle').pk) ops_assistant.permissions.add(Permission.objects.get(codename='view_vehicleallocation').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_vehicleallocation').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_vehicleallocation').pk) ops_assistant.permissions.add(Permission.objects.get(codename='view_vehiclemaintenance').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_vehiclemaintenance').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_vehiclemaintenance').pk) ops_assistant.permissions.add(Permission.objects.get(codename='view_comment').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_comment').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_comment').pk) ops_assistant.permissions.add(Permission.objects.get(codename='view_requisition').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_requisition').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_requisition').pk) ops_assistant.permissions.add(Permission.objects.get(codename='view_requisitionitem').pk) ops_assistant.permissions.add(Permission.objects.get(codename='create_requisitionitem').pk) ops_assistant.permissions.add(Permission.objects.get(codename='edit_requisitionitem').pk) dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.RunPython(insert_permissions) ]
63.251462
154
0.812223
2,671
21,632
6.390865
0.033695
0.135911
0.261277
0.401347
0.943878
0.943878
0.93966
0.93966
0.922027
0.912947
0
0.000342
0.052422
21,632
341
155
63.43695
0.832423
0.008552
0
0.071429
0
0
0.2007
0.064179
0
0
0
0
0
0
null
null
0
0.007937
null
null
0
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
9
ea2066b5f1b0081823af3eab4717a0905d1a0c12
9,718
py
Python
istsos/files/tutorial/fill/procedure.py
psychicLocust/istsos-docker
e5b87a0b5a6a02d7fc453beedf7609e4661b2107
[ "Beerware" ]
7
2018-03-20T12:02:11.000Z
2019-02-20T21:40:20.000Z
istsos/files/tutorial/fill/procedure.py
esgn/istsos-docker
e5b87a0b5a6a02d7fc453beedf7609e4661b2107
[ "Beerware" ]
null
null
null
istsos/files/tutorial/fill/procedure.py
esgn/istsos-docker
e5b87a0b5a6a02d7fc453beedf7609e4661b2107
[ "Beerware" ]
null
null
null
# -*- coding: utf-8 -*- import requests import json import os # just in case os.environ['NO_PROXY'] = 'localhost' def rest_request(url, json_data): r = requests.post(url, data=json.dumps(json_data)) if not r.json()['success']: print "problem with ", json_data['system_id'] print r.json() def insert_procedure(service_url, service): t_lugano = { "system_id":"T_LUGANO", "system":"T_LUGANO", "description":"temperature weather station in Lugano", "keywords": "weather, meteorological, IST", "identification":[ { "name":"uniqueID", "definition":"urn:ogc:def:identifier:OGC:uniqueID", "value":"urn:ogc:def:procedure:x-istsos:1.0:T_LUGANO" } ], "classification":[ { "name":"System Type", "definition":"urn:ogc:def:classifier:x-istsos:1.0:systemType", "value":"insitu-fixed-point" }, { "name":"Sensor Type", "definition":"urn:ogc:def:classifier:x-istsos:1.0:sensorType", "value":"Davis weather station" } ], "characteristics":"", "contacts":[], "documentation":[], "capabilities":[], "location":{ "type":"Feature", "geometry":{ "type":"Point", "coordinates":["8.96127","46.02723","344.1"] }, "crs":{ "type":"name", "properties":{"name":"4326"} }, "properties":{ "name":"LUGANO" } }, "interfaces":"", "inputs":[], "outputs":[ { "name":"Time", "definition":"urn:ogc:def:parameter:x-istsos:1.0:time:iso8601", "uom":"iso8601", "description":"", "constraint":{} }, { "name":"air-temperature", "definition":"urn:ogc:def:parameter:x-istsos:1.0:meteo:air:temperature", "uom":"°C", "description":"conversion from resistance to temperature", "constraint":{ "role":"urn:ogc:def:classifiers:x-istsos:1.0:qualityIndex:check:reasonable", "interval":["-40","60"] } } ], "history":[] } p_lugano = { "system_id":"P_LUGANO", "system":"P_LUGANO", "description":"temperature weather station in Locarno", "keywords": "weather, meteorological, IST", "identification":[ { "name":"uniqueID", "definition":"urn:ogc:def:identifier:OGC:uniqueID", "value":"urn:ogc:def:procedure:x-istsos:1.0:P_LUGANO" } ], "classification":[ { "name":"System Type", "definition":"urn:ogc:def:classifier:x-istsos:1.0:systemType", "value":"insitu-fixed-point" }, { "name":"Sensor Type", "definition":"urn:ogc:def:classifier:x-istsos:1.0:sensorType", "value":"Davis weather station" } ], "characteristics":"", "contacts":[], "documentation":[], "capabilities":[], "location":{ "type":"Feature", "geometry":{ "type":"Point", "coordinates":["8.96127","46.02723","344.1"] }, "crs":{ "type":"name", "properties":{"name":"4326"} }, "properties":{ "name":"LUGANO" } }, "interfaces":"", "inputs":[], "outputs":[ { "name":"Time", "definition":"urn:ogc:def:parameter:x-istsos:1.0:time:iso8601", "uom":"iso8601", "description":"", "constraint":{} }, { "name":"air-rainfall", "definition":"urn:ogc:def:parameter:x-istsos:1.0:meteo:air:rainfall", "uom":"mm", "description":"-", "constraint":{ "role":"urn:ogc:def:classifiers:x-istsos:1.0:qualityIndex:check:reasonable", "interval":["0","500"] } } ], "history":[] } locarno = { "system_id":"LOCARNO", "system":"LOCARNO", "description":"temperature weather station in Locarno", "keywords": "weather, meteorological, IST", "identification":[ { "name":"uniqueID", "definition":"urn:ogc:def:identifier:OGC:uniqueID", "value":"urn:ogc:def:procedure:x-istsos:1.0:LOCARNO" } ], "classification":[ { "name":"System Type", "definition":"urn:ogc:def:classifier:x-istsos:1.0:systemType", "value":"insitu-fixed-point" }, { "name":"Sensor Type", "definition":"urn:ogc:def:classifier:x-istsos:1.0:sensorType", "value":"Davis weather station" } ], "characteristics":"", "contacts":[], "documentation":[], "capabilities":[], "location":{ "type":"Feature", "geometry":{ "type":"Point", "coordinates":["8.79212","46.15515","197.8"] }, "crs":{ "type":"name", "properties":{"name":"4326"} }, "properties":{ "name":"LOCARNO" } }, "interfaces":"", "inputs":[], "outputs":[ { "name":"Time", "definition":"urn:ogc:def:parameter:x-istsos:1.0:time:iso8601", "uom":"iso8601", "description":"", "constraint":{} }, { "name":"air-temperature", "definition":"urn:ogc:def:parameter:x-istsos:1.0:meteo:air:temperature", "uom":"°C", "description":"conversion from resistance to temperature", "constraint":{ "role":"urn:ogc:def:classifiers:x-istsos:1.0:qualityIndex:check:reasonable", "interval":["-40","60"] } }, { "name":"air-rainfall", "definition":"urn:ogc:def:parameter:x-istsos:1.0:meteo:air:rainfall", "uom":"mm", "description":"-", "constraint":{ "role":"urn:ogc:def:classifiers:x-istsos:1.0:qualityIndex:check:reasonable", "interval":["0","500"] } } ], "history":[] } bellinzona = { "system_id":"BELLINZONA", "system":"BELLINZONA", "description":"Meteo Station in Bellinzona", "keywords": "weather, meteorological, IST", "identification":[ { "name":"uniqueID", "definition":"urn:ogc:def:identifier:OGC:uniqueID", "value":"urn:ogc:def:procedure:x-istsos:1.0:BELLINZONA" } ], "classification":[ { "name":"System Type", "definition":"urn:ogc:def:classifier:x-istsos:1.0:systemType", "value":"insitu-fixed-point" }, { "name":"Sensor Type", "definition":"urn:ogc:def:classifier:x-istsos:1.0:sensorType", "value":"Davis weather station" } ], "characteristics":"", "contacts":[], "documentation":[], "capabilities":[], "location":{ "type":"Feature", "geometry":{ "type":"Point", "coordinates":["9.01976","46.20322","226.3"] }, "crs":{ "type":"name", "properties":{"name":"4326"} }, "properties":{ "name":"BELLINZONA" } }, "interfaces":"", "inputs":[], "outputs":[ { "name":"Time", "definition":"urn:ogc:def:parameter:x-istsos:1.0:time:iso8601", "uom":"iso8601", "description":"", "constraint":{} }, { "name":"air-temperature", "definition":"urn:ogc:def:parameter:x-istsos:1.0:meteo:air:temperature", "uom":"°C", "description":"conversion from resistance to temperature", "constraint":{ "role":"urn:ogc:def:classifiers:x-istsos:1.0:qualityIndex:check:reasonable", "interval":["-40","60"] } }, { "name":"air-humidity-relative", "definition":"urn:ogc:def:parameter:x-istsos:1.0:meteo:air:humidity:relative", "uom":"%", "description":"-", "constraint":{ "role":"urn:ogc:def:classifiers:x-istsos:1.0:qualityIndex:check:reasonable", "interval":["0","100"] } }, { "name":"air-rainfall", "definition":"urn:ogc:def:parameter:x-istsos:1.0:meteo:air:rainfall", "uom":"%", "description":"-", "constraint":{ "role":"urn:ogc:def:classifiers:x-istsos:1.0:qualityIndex:check:reasonable", "interval":["0","500"] } }, { "name":"air-wind-velocity", "definition":"urn:ogc:def:parameter:x-istsos:1.0:meteo:air:wind:velocity", "uom":"m/s", "description":"-", "constraint":{ "role":"urn:ogc:def:classifiers:x-istsos:1.0:qualityIndex:check:reasonable", "interval":["0","200"] } } ], "history":[] } gnosca = { "system_id":"RH_GNOSCA", "system":"RH_GNOSCA", "description":"River height River of Gnosca", "keywords": "river, water, height, IST", "identification":[ { "name":"uniqueID", "definition":"urn:ogc:def:identifier:OGC:uniqueID", "value":"urn:ogc:def:procedure:x-istsos:1.0:RH_GNOSCA" } ], "classification":[ { "name":"System Type", "definition":"urn:ogc:def:classifier:x-istsos:1.0:systemType", "value":"insitu-fixed-point" }, { "name":"Sensor Type", "definition":"urn:ogc:def:classifier:x-istsos:1.0:sensorType", "value":"Pressure sensor" } ], "characteristics":"", "contacts":[], "documentation":[], "capabilities":[], "location":{ "type":"Feature", "geometry":{ "type":"Point", "coordinates":["9.01939","46.23339","278.8"] }, "crs":{ "type":"name", "properties":{"name":"4326"} }, "properties":{ "name":"GNOSCA" } }, "interfaces":"", "inputs":[], "outputs":[ { "name":"Time", "definition":"urn:ogc:def:parameter:x-istsos:1.0:time:iso8601", "uom":"iso8601", "description":"", "constraint":{} }, { "name":"water-height", "definition":"urn:ogc:def:parameter:x-istsos:1.0:river:water:height", "uom":"m", "description":"conversion from resistance to temperature", "constraint":{ "role":"urn:ogc:def:classifiers:x-istsos:1.0:qualityIndex:check:reasonable", "interval":["0","1.5"] } } ], "history":[] } url = service_url + 'wa/istsos/services/' + service + '/procedures' print " Add procedure" rest_request(url, t_lugano) rest_request(url, p_lugano) rest_request(url, locarno) rest_request(url, bellinzona) rest_request(url, gnosca)
24.174129
83
0.564725
1,019
9,718
5.357213
0.138371
0.047261
0.070892
0.062649
0.83257
0.83257
0.823411
0.823411
0.815534
0.792636
0
0.033568
0.212184
9,718
401
84
24.234414
0.679075
0.003499
0
0.604712
0
0.04712
0.580415
0.227456
0
0
0
0
0
0
null
null
0
0.007853
null
null
0.007853
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
7
ea4669af782ffa09c4b1950d9f79ecc143bba6ce
108
py
Python
example/py/lib/lib.py
repository-archives/blade-build
3ff04a65a3c72a6a77b13b72b7d0328cdc68ab4c
[ "BSD-3-Clause" ]
842
2019-03-21T01:00:36.000Z
2022-03-31T05:19:51.000Z
example/py/lib/lib.py
repository-archives/blade-build
3ff04a65a3c72a6a77b13b72b7d0328cdc68ab4c
[ "BSD-3-Clause" ]
310
2019-03-21T04:57:33.000Z
2022-03-24T10:19:51.000Z
example/py/lib/lib.py
repository-archives/blade-build
3ff04a65a3c72a6a77b13b72b7d0328cdc68ab4c
[ "BSD-3-Clause" ]
253
2015-01-04T17:02:30.000Z
2019-03-19T18:25:40.000Z
import py.proto.address_book_pb2 def NewAddressBook(): return py.proto.address_book_pb2.AddressBook()
18
50
0.796296
15
108
5.466667
0.666667
0.170732
0.341463
0.439024
0.512195
0
0
0
0
0
0
0.020833
0.111111
108
5
51
21.6
0.833333
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0.333333
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
1
1
0
0
9
ea513d0bb2daf6355d77b553c2f4e185775e3c45
448,056
py
Python
twc/python/antchain_sdk_twc/client.py
alipay/antchain-openapi-prod-sdk
f78549e5135d91756093bd88d191ca260b28e083
[ "MIT" ]
6
2020-06-28T06:40:50.000Z
2022-02-25T11:02:18.000Z
twc/python/antchain_sdk_twc/client.py
alipay/antchain-openapi-prod-sdk
f78549e5135d91756093bd88d191ca260b28e083
[ "MIT" ]
null
null
null
twc/python/antchain_sdk_twc/client.py
alipay/antchain-openapi-prod-sdk
f78549e5135d91756093bd88d191ca260b28e083
[ "MIT" ]
6
2020-06-30T09:29:03.000Z
2022-01-07T10:42:22.000Z
# -*- coding: utf-8 -*- # This file is auto-generated, don't edit it. Thanks. import time from Tea.exceptions import TeaException, UnretryableException from Tea.request import TeaRequest from Tea.core import TeaCore from antchain_alipay_util.antchain_utils import AntchainUtils from typing import Dict from antchain_sdk_twc import models as twc_models from alibabacloud_tea_util.client import Client as UtilClient from alibabacloud_tea_util import models as util_models from alibabacloud_rpc_util.client import Client as RPCUtilClient class Client: _endpoint: str = None _region_id: str = None _access_key_id: str = None _access_key_secret: str = None _protocol: str = None _user_agent: str = None _read_timeout: int = None _connect_timeout: int = None _http_proxy: str = None _https_proxy: str = None _socks_5proxy: str = None _socks_5net_work: str = None _no_proxy: str = None _max_idle_conns: int = None _security_token: str = None _max_idle_time_millis: int = None _keep_alive_duration_millis: int = None _max_requests: int = None _max_requests_per_host: int = None def __init__( self, config: twc_models.Config, ): """ Init client with Config @param config: config contains the necessary information to create a client """ if UtilClient.is_unset(config): raise TeaException({ 'code': 'ParameterMissing', 'message': "'config' can not be unset" }) self._access_key_id = config.access_key_id self._access_key_secret = config.access_key_secret self._security_token = config.security_token self._endpoint = config.endpoint self._protocol = config.protocol self._user_agent = config.user_agent self._read_timeout = UtilClient.default_number(config.read_timeout, 20000) self._connect_timeout = UtilClient.default_number(config.connect_timeout, 20000) self._http_proxy = config.http_proxy self._https_proxy = config.https_proxy self._no_proxy = config.no_proxy self._socks_5proxy = config.socks_5proxy self._socks_5net_work = config.socks_5net_work self._max_idle_conns = UtilClient.default_number(config.max_idle_conns, 60000) self._max_idle_time_millis = UtilClient.default_number(config.max_idle_time_millis, 5) self._keep_alive_duration_millis = UtilClient.default_number(config.keep_alive_duration_millis, 5000) self._max_requests = UtilClient.default_number(config.max_requests, 100) self._max_requests_per_host = UtilClient.default_number(config.max_requests_per_host, 100) def do_request( self, version: str, action: str, protocol: str, method: str, pathname: str, request: dict, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> dict: """ Encapsulate the request and invoke the network @param action: api name @param protocol: http or https @param method: e.g. GET @param pathname: pathname of every api @param request: which contains request params @param runtime: which controls some details of call api, such as retry times @return: the response """ runtime.validate() _runtime = { 'timeouted': 'retry', 'readTimeout': UtilClient.default_number(runtime.read_timeout, self._read_timeout), 'connectTimeout': UtilClient.default_number(runtime.connect_timeout, self._connect_timeout), 'httpProxy': UtilClient.default_string(runtime.http_proxy, self._http_proxy), 'httpsProxy': UtilClient.default_string(runtime.https_proxy, self._https_proxy), 'noProxy': UtilClient.default_string(runtime.no_proxy, self._no_proxy), 'maxIdleConns': UtilClient.default_number(runtime.max_idle_conns, self._max_idle_conns), 'maxIdleTimeMillis': self._max_idle_time_millis, 'keepAliveDurationMillis': self._keep_alive_duration_millis, 'maxRequests': self._max_requests, 'maxRequestsPerHost': self._max_requests_per_host, 'retry': { 'retryable': runtime.autoretry, 'maxAttempts': UtilClient.default_number(runtime.max_attempts, 3) }, 'backoff': { 'policy': UtilClient.default_string(runtime.backoff_policy, 'no'), 'period': UtilClient.default_number(runtime.backoff_period, 1) }, 'ignoreSSL': runtime.ignore_ssl, # 订单商品信息 } _last_request = None _last_exception = None _now = time.time() _retry_times = 0 while TeaCore.allow_retry(_runtime.get('retry'), _retry_times, _now): if _retry_times > 0: _backoff_time = TeaCore.get_backoff_time(_runtime.get('backoff'), _retry_times) if _backoff_time > 0: TeaCore.sleep(_backoff_time) _retry_times = _retry_times + 1 try: _request = TeaRequest() _request.protocol = UtilClient.default_string(self._protocol, protocol) _request.method = method _request.pathname = pathname _request.query = { 'method': action, 'version': version, 'sign_type': 'HmacSHA1', 'req_time': AntchainUtils.get_timestamp(), 'req_msg_id': AntchainUtils.get_nonce(), 'access_key': self._access_key_id, 'base_sdk_version': 'TeaSDK-2.0', 'sdk_version': '1.7.19' } if not UtilClient.empty(self._security_token): _request.query['security_token'] = self._security_token _request.headers = TeaCore.merge({ 'host': UtilClient.default_string(self._endpoint, 'twc-openapi.antchain.antgroup.com'), 'user-agent': UtilClient.get_user_agent(self._user_agent) }, headers) tmp = UtilClient.anyify_map_value(RPCUtilClient.query(request)) _request.body = UtilClient.to_form_string(tmp) _request.headers['content-type'] = 'application/x-www-form-urlencoded' signed_param = TeaCore.merge(_request.query, RPCUtilClient.query(request)) _request.query['sign'] = AntchainUtils.get_signature(signed_param, self._access_key_secret) _last_request = _request _response = TeaCore.do_action(_request, _runtime) raw = UtilClient.read_as_string(_response.body) obj = UtilClient.parse_json(raw) res = UtilClient.assert_as_map(obj) resp = UtilClient.assert_as_map(res.get('response')) if AntchainUtils.has_error(raw, self._access_key_secret): raise TeaException({ 'message': resp.get('result_msg'), 'data': resp, 'code': resp.get('result_code') }) return resp except Exception as e: if TeaCore.is_retryable(e): _last_exception = e continue raise e raise UnretryableException(_last_request, _last_exception) async def do_request_async( self, version: str, action: str, protocol: str, method: str, pathname: str, request: dict, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> dict: """ Encapsulate the request and invoke the network @param action: api name @param protocol: http or https @param method: e.g. GET @param pathname: pathname of every api @param request: which contains request params @param runtime: which controls some details of call api, such as retry times @return: the response """ runtime.validate() _runtime = { 'timeouted': 'retry', 'readTimeout': UtilClient.default_number(runtime.read_timeout, self._read_timeout), 'connectTimeout': UtilClient.default_number(runtime.connect_timeout, self._connect_timeout), 'httpProxy': UtilClient.default_string(runtime.http_proxy, self._http_proxy), 'httpsProxy': UtilClient.default_string(runtime.https_proxy, self._https_proxy), 'noProxy': UtilClient.default_string(runtime.no_proxy, self._no_proxy), 'maxIdleConns': UtilClient.default_number(runtime.max_idle_conns, self._max_idle_conns), 'maxIdleTimeMillis': self._max_idle_time_millis, 'keepAliveDurationMillis': self._keep_alive_duration_millis, 'maxRequests': self._max_requests, 'maxRequestsPerHost': self._max_requests_per_host, 'retry': { 'retryable': runtime.autoretry, 'maxAttempts': UtilClient.default_number(runtime.max_attempts, 3) }, 'backoff': { 'policy': UtilClient.default_string(runtime.backoff_policy, 'no'), 'period': UtilClient.default_number(runtime.backoff_period, 1) }, 'ignoreSSL': runtime.ignore_ssl, # 订单商品信息 } _last_request = None _last_exception = None _now = time.time() _retry_times = 0 while TeaCore.allow_retry(_runtime.get('retry'), _retry_times, _now): if _retry_times > 0: _backoff_time = TeaCore.get_backoff_time(_runtime.get('backoff'), _retry_times) if _backoff_time > 0: TeaCore.sleep(_backoff_time) _retry_times = _retry_times + 1 try: _request = TeaRequest() _request.protocol = UtilClient.default_string(self._protocol, protocol) _request.method = method _request.pathname = pathname _request.query = { 'method': action, 'version': version, 'sign_type': 'HmacSHA1', 'req_time': AntchainUtils.get_timestamp(), 'req_msg_id': AntchainUtils.get_nonce(), 'access_key': self._access_key_id, 'base_sdk_version': 'TeaSDK-2.0', 'sdk_version': '1.7.19' } if not UtilClient.empty(self._security_token): _request.query['security_token'] = self._security_token _request.headers = TeaCore.merge({ 'host': UtilClient.default_string(self._endpoint, 'twc-openapi.antchain.antgroup.com'), 'user-agent': UtilClient.get_user_agent(self._user_agent) }, headers) tmp = UtilClient.anyify_map_value(RPCUtilClient.query(request)) _request.body = UtilClient.to_form_string(tmp) _request.headers['content-type'] = 'application/x-www-form-urlencoded' signed_param = TeaCore.merge(_request.query, RPCUtilClient.query(request)) _request.query['sign'] = AntchainUtils.get_signature(signed_param, self._access_key_secret) _last_request = _request _response = await TeaCore.async_do_action(_request, _runtime) raw = await UtilClient.read_as_string_async(_response.body) obj = UtilClient.parse_json(raw) res = UtilClient.assert_as_map(obj) resp = UtilClient.assert_as_map(res.get('response')) if AntchainUtils.has_error(raw, self._access_key_secret): raise TeaException({ 'message': resp.get('result_msg'), 'data': resp, 'code': resp.get('result_code') }) return resp except Exception as e: if TeaCore.is_retryable(e): _last_exception = e continue raise e raise UnretryableException(_last_request, _last_exception) def callback_arbitration_status( self, request: twc_models.CallbackArbitrationStatusRequest, ) -> twc_models.CallbackArbitrationStatusResponse: """ Description: 提供给第三方仲裁isv的仲裁申请状态变化回调接口 Summary: 仲裁状态信息变更回调接口 """ runtime = util_models.RuntimeOptions() headers = {} return self.callback_arbitration_status_ex(request, headers, runtime) async def callback_arbitration_status_async( self, request: twc_models.CallbackArbitrationStatusRequest, ) -> twc_models.CallbackArbitrationStatusResponse: """ Description: 提供给第三方仲裁isv的仲裁申请状态变化回调接口 Summary: 仲裁状态信息变更回调接口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.callback_arbitration_status_ex_async(request, headers, runtime) def callback_arbitration_status_ex( self, request: twc_models.CallbackArbitrationStatusRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CallbackArbitrationStatusResponse: """ Description: 提供给第三方仲裁isv的仲裁申请状态变化回调接口 Summary: 仲裁状态信息变更回调接口 """ UtilClient.validate_model(request) return twc_models.CallbackArbitrationStatusResponse().from_map( self.do_request('1.0', 'twc.notary.arbitration.status.callback', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def callback_arbitration_status_ex_async( self, request: twc_models.CallbackArbitrationStatusRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CallbackArbitrationStatusResponse: """ Description: 提供给第三方仲裁isv的仲裁申请状态变化回调接口 Summary: 仲裁状态信息变更回调接口 """ UtilClient.validate_model(request) return twc_models.CallbackArbitrationStatusResponse().from_map( await self.do_request_async('1.0', 'twc.notary.arbitration.status.callback', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_account( self, request: twc_models.CreateContractAccountRequest, ) -> twc_models.CreateContractAccountResponse: """ Description: 调用本接口创建个人账号,后续有关该用户的所有操作都需使用该用户的accountId。如提供用户证件信息,则将根据提供的用户证件信息申请数字证书。 Summary: 创建电子合同签署个人帐户 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_account_ex(request, headers, runtime) async def create_contract_account_async( self, request: twc_models.CreateContractAccountRequest, ) -> twc_models.CreateContractAccountResponse: """ Description: 调用本接口创建个人账号,后续有关该用户的所有操作都需使用该用户的accountId。如提供用户证件信息,则将根据提供的用户证件信息申请数字证书。 Summary: 创建电子合同签署个人帐户 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_account_ex_async(request, headers, runtime) def create_contract_account_ex( self, request: twc_models.CreateContractAccountRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractAccountResponse: """ Description: 调用本接口创建个人账号,后续有关该用户的所有操作都需使用该用户的accountId。如提供用户证件信息,则将根据提供的用户证件信息申请数字证书。 Summary: 创建电子合同签署个人帐户 """ UtilClient.validate_model(request) return twc_models.CreateContractAccountResponse().from_map( self.do_request('1.0', 'twc.notary.contract.account.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_account_ex_async( self, request: twc_models.CreateContractAccountRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractAccountResponse: """ Description: 调用本接口创建个人账号,后续有关该用户的所有操作都需使用该用户的accountId。如提供用户证件信息,则将根据提供的用户证件信息申请数字证书。 Summary: 创建电子合同签署个人帐户 """ UtilClient.validate_model(request) return twc_models.CreateContractAccountResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.account.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_accountseal( self, request: twc_models.CreateContractAccountsealRequest, ) -> twc_models.CreateContractAccountsealResponse: """ Description: 通过模版参数,创建个人印章 Summary: 创建电子合同个人帐户印章 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_accountseal_ex(request, headers, runtime) async def create_contract_accountseal_async( self, request: twc_models.CreateContractAccountsealRequest, ) -> twc_models.CreateContractAccountsealResponse: """ Description: 通过模版参数,创建个人印章 Summary: 创建电子合同个人帐户印章 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_accountseal_ex_async(request, headers, runtime) def create_contract_accountseal_ex( self, request: twc_models.CreateContractAccountsealRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractAccountsealResponse: """ Description: 通过模版参数,创建个人印章 Summary: 创建电子合同个人帐户印章 """ UtilClient.validate_model(request) return twc_models.CreateContractAccountsealResponse().from_map( self.do_request('1.0', 'twc.notary.contract.accountseal.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_accountseal_ex_async( self, request: twc_models.CreateContractAccountsealRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractAccountsealResponse: """ Description: 通过模版参数,创建个人印章 Summary: 创建电子合同个人帐户印章 """ UtilClient.validate_model(request) return twc_models.CreateContractAccountsealResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.accountseal.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_organization( self, request: twc_models.CreateContractOrganizationRequest, ) -> twc_models.CreateContractOrganizationResponse: """ Description: 对接方调用本接口创建机构账号,后续有关该机构的所有操作都需使用该机构的orgId。如提供机构证件信息,则将根据提供的机构证件信息申请数字证书。 创建机构账号前需要先创建一个个人账号并通过本接口传给服务器,该个人账号将作为该机构签署的经办人,代表企业完成实名认证和意愿认证,并完成签署操作。 Summary: 创建电子合同签署机构帐户 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_organization_ex(request, headers, runtime) async def create_contract_organization_async( self, request: twc_models.CreateContractOrganizationRequest, ) -> twc_models.CreateContractOrganizationResponse: """ Description: 对接方调用本接口创建机构账号,后续有关该机构的所有操作都需使用该机构的orgId。如提供机构证件信息,则将根据提供的机构证件信息申请数字证书。 创建机构账号前需要先创建一个个人账号并通过本接口传给服务器,该个人账号将作为该机构签署的经办人,代表企业完成实名认证和意愿认证,并完成签署操作。 Summary: 创建电子合同签署机构帐户 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_organization_ex_async(request, headers, runtime) def create_contract_organization_ex( self, request: twc_models.CreateContractOrganizationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractOrganizationResponse: """ Description: 对接方调用本接口创建机构账号,后续有关该机构的所有操作都需使用该机构的orgId。如提供机构证件信息,则将根据提供的机构证件信息申请数字证书。 创建机构账号前需要先创建一个个人账号并通过本接口传给服务器,该个人账号将作为该机构签署的经办人,代表企业完成实名认证和意愿认证,并完成签署操作。 Summary: 创建电子合同签署机构帐户 """ UtilClient.validate_model(request) return twc_models.CreateContractOrganizationResponse().from_map( self.do_request('1.0', 'twc.notary.contract.organization.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_organization_ex_async( self, request: twc_models.CreateContractOrganizationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractOrganizationResponse: """ Description: 对接方调用本接口创建机构账号,后续有关该机构的所有操作都需使用该机构的orgId。如提供机构证件信息,则将根据提供的机构证件信息申请数字证书。 创建机构账号前需要先创建一个个人账号并通过本接口传给服务器,该个人账号将作为该机构签署的经办人,代表企业完成实名认证和意愿认证,并完成签署操作。 Summary: 创建电子合同签署机构帐户 """ UtilClient.validate_model(request) return twc_models.CreateContractOrganizationResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.organization.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_orgseal( self, request: twc_models.CreateContractOrgsealRequest, ) -> twc_models.CreateContractOrgsealResponse: """ Description: 通过模版参数,创建机构印章 Summary: 创建电子合同机构帐户印章 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_orgseal_ex(request, headers, runtime) async def create_contract_orgseal_async( self, request: twc_models.CreateContractOrgsealRequest, ) -> twc_models.CreateContractOrgsealResponse: """ Description: 通过模版参数,创建机构印章 Summary: 创建电子合同机构帐户印章 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_orgseal_ex_async(request, headers, runtime) def create_contract_orgseal_ex( self, request: twc_models.CreateContractOrgsealRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractOrgsealResponse: """ Description: 通过模版参数,创建机构印章 Summary: 创建电子合同机构帐户印章 """ UtilClient.validate_model(request) return twc_models.CreateContractOrgsealResponse().from_map( self.do_request('1.0', 'twc.notary.contract.orgseal.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_orgseal_ex_async( self, request: twc_models.CreateContractOrgsealRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractOrgsealResponse: """ Description: 通过模版参数,创建机构印章 Summary: 创建电子合同机构帐户印章 """ UtilClient.validate_model(request) return twc_models.CreateContractOrgsealResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.orgseal.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def auth_contract_sign( self, request: twc_models.AuthContractSignRequest, ) -> twc_models.AuthContractSignResponse: """ Description: 静默签署授权 Summary: 静默签署授权 """ runtime = util_models.RuntimeOptions() headers = {} return self.auth_contract_sign_ex(request, headers, runtime) async def auth_contract_sign_async( self, request: twc_models.AuthContractSignRequest, ) -> twc_models.AuthContractSignResponse: """ Description: 静默签署授权 Summary: 静默签署授权 """ runtime = util_models.RuntimeOptions() headers = {} return await self.auth_contract_sign_ex_async(request, headers, runtime) def auth_contract_sign_ex( self, request: twc_models.AuthContractSignRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.AuthContractSignResponse: """ Description: 静默签署授权 Summary: 静默签署授权 """ UtilClient.validate_model(request) return twc_models.AuthContractSignResponse().from_map( self.do_request('1.0', 'twc.notary.contract.sign.auth', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def auth_contract_sign_ex_async( self, request: twc_models.AuthContractSignRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.AuthContractSignResponse: """ Description: 静默签署授权 Summary: 静默签署授权 """ UtilClient.validate_model(request) return twc_models.AuthContractSignResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.sign.auth', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_template( self, request: twc_models.CreateContractTemplateRequest, ) -> twc_models.CreateContractTemplateResponse: """ Description: 通过文件直传地址创建模板,创建模板后上传文件,上传方法请参考文件流上传方法 Summary: 通过文件上传方式创建电子合同签署模板 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_template_ex(request, headers, runtime) async def create_contract_template_async( self, request: twc_models.CreateContractTemplateRequest, ) -> twc_models.CreateContractTemplateResponse: """ Description: 通过文件直传地址创建模板,创建模板后上传文件,上传方法请参考文件流上传方法 Summary: 通过文件上传方式创建电子合同签署模板 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_template_ex_async(request, headers, runtime) def create_contract_template_ex( self, request: twc_models.CreateContractTemplateRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractTemplateResponse: """ Description: 通过文件直传地址创建模板,创建模板后上传文件,上传方法请参考文件流上传方法 Summary: 通过文件上传方式创建电子合同签署模板 """ UtilClient.validate_model(request) return twc_models.CreateContractTemplateResponse().from_map( self.do_request('1.0', 'twc.notary.contract.template.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_template_ex_async( self, request: twc_models.CreateContractTemplateRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractTemplateResponse: """ Description: 通过文件直传地址创建模板,创建模板后上传文件,上传方法请参考文件流上传方法 Summary: 通过文件上传方式创建电子合同签署模板 """ UtilClient.validate_model(request) return twc_models.CreateContractTemplateResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.template.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_flow( self, request: twc_models.CreateContractFlowRequest, ) -> twc_models.CreateContractFlowResponse: """ Description: 创建签署流程 Summary: 创建电子合同签署流程 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_flow_ex(request, headers, runtime) async def create_contract_flow_async( self, request: twc_models.CreateContractFlowRequest, ) -> twc_models.CreateContractFlowResponse: """ Description: 创建签署流程 Summary: 创建电子合同签署流程 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_flow_ex_async(request, headers, runtime) def create_contract_flow_ex( self, request: twc_models.CreateContractFlowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractFlowResponse: """ Description: 创建签署流程 Summary: 创建电子合同签署流程 """ UtilClient.validate_model(request) return twc_models.CreateContractFlowResponse().from_map( self.do_request('1.0', 'twc.notary.contract.flow.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_flow_ex_async( self, request: twc_models.CreateContractFlowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractFlowResponse: """ Description: 创建签署流程 Summary: 创建电子合同签署流程 """ UtilClient.validate_model(request) return twc_models.CreateContractFlowResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.flow.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def add_contract_document( self, request: twc_models.AddContractDocumentRequest, ) -> twc_models.AddContractDocumentResponse: """ Description: 向流程中添加待签署文档,文档必须先用文档管理接口创建,创建方式请参见文件管理接口文档。已经开启的流程不能再添加签署文档。 Summary: 向电子合同签署流程中添加待签署文档 """ runtime = util_models.RuntimeOptions() headers = {} return self.add_contract_document_ex(request, headers, runtime) async def add_contract_document_async( self, request: twc_models.AddContractDocumentRequest, ) -> twc_models.AddContractDocumentResponse: """ Description: 向流程中添加待签署文档,文档必须先用文档管理接口创建,创建方式请参见文件管理接口文档。已经开启的流程不能再添加签署文档。 Summary: 向电子合同签署流程中添加待签署文档 """ runtime = util_models.RuntimeOptions() headers = {} return await self.add_contract_document_ex_async(request, headers, runtime) def add_contract_document_ex( self, request: twc_models.AddContractDocumentRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.AddContractDocumentResponse: """ Description: 向流程中添加待签署文档,文档必须先用文档管理接口创建,创建方式请参见文件管理接口文档。已经开启的流程不能再添加签署文档。 Summary: 向电子合同签署流程中添加待签署文档 """ UtilClient.validate_model(request) return twc_models.AddContractDocumentResponse().from_map( self.do_request('1.0', 'twc.notary.contract.document.add', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def add_contract_document_ex_async( self, request: twc_models.AddContractDocumentRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.AddContractDocumentResponse: """ Description: 向流程中添加待签署文档,文档必须先用文档管理接口创建,创建方式请参见文件管理接口文档。已经开启的流程不能再添加签署文档。 Summary: 向电子合同签署流程中添加待签署文档 """ UtilClient.validate_model(request) return twc_models.AddContractDocumentResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.document.add', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def add_contract_signfield( self, request: twc_models.AddContractSignfieldRequest, ) -> twc_models.AddContractSignfieldResponse: """ Description: 向指定流程中创建签署区,每个签署区视为一个任务,系统会自动按照流程流转。 签署区的添加必须在签署文档添加之后, 签署区信息内部包含签署人、签署文档信息。 签署区创建完成,流程开启后,系统将自动完成“用户自动盖章签署区”的盖章。用户可全程无感完成本次签署。创建签署方自动盖章签署区前,需确定已完成账号静默签署授权。签署方自动盖章的合同,需要由对接平台方自行校验真实身份和真实意愿 Summary: 添加电子合同签署方自动盖章签署区 """ runtime = util_models.RuntimeOptions() headers = {} return self.add_contract_signfield_ex(request, headers, runtime) async def add_contract_signfield_async( self, request: twc_models.AddContractSignfieldRequest, ) -> twc_models.AddContractSignfieldResponse: """ Description: 向指定流程中创建签署区,每个签署区视为一个任务,系统会自动按照流程流转。 签署区的添加必须在签署文档添加之后, 签署区信息内部包含签署人、签署文档信息。 签署区创建完成,流程开启后,系统将自动完成“用户自动盖章签署区”的盖章。用户可全程无感完成本次签署。创建签署方自动盖章签署区前,需确定已完成账号静默签署授权。签署方自动盖章的合同,需要由对接平台方自行校验真实身份和真实意愿 Summary: 添加电子合同签署方自动盖章签署区 """ runtime = util_models.RuntimeOptions() headers = {} return await self.add_contract_signfield_ex_async(request, headers, runtime) def add_contract_signfield_ex( self, request: twc_models.AddContractSignfieldRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.AddContractSignfieldResponse: """ Description: 向指定流程中创建签署区,每个签署区视为一个任务,系统会自动按照流程流转。 签署区的添加必须在签署文档添加之后, 签署区信息内部包含签署人、签署文档信息。 签署区创建完成,流程开启后,系统将自动完成“用户自动盖章签署区”的盖章。用户可全程无感完成本次签署。创建签署方自动盖章签署区前,需确定已完成账号静默签署授权。签署方自动盖章的合同,需要由对接平台方自行校验真实身份和真实意愿 Summary: 添加电子合同签署方自动盖章签署区 """ UtilClient.validate_model(request) return twc_models.AddContractSignfieldResponse().from_map( self.do_request('1.0', 'twc.notary.contract.signfield.add', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def add_contract_signfield_ex_async( self, request: twc_models.AddContractSignfieldRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.AddContractSignfieldResponse: """ Description: 向指定流程中创建签署区,每个签署区视为一个任务,系统会自动按照流程流转。 签署区的添加必须在签署文档添加之后, 签署区信息内部包含签署人、签署文档信息。 签署区创建完成,流程开启后,系统将自动完成“用户自动盖章签署区”的盖章。用户可全程无感完成本次签署。创建签署方自动盖章签署区前,需确定已完成账号静默签署授权。签署方自动盖章的合同,需要由对接平台方自行校验真实身份和真实意愿 Summary: 添加电子合同签署方自动盖章签署区 """ UtilClient.validate_model(request) return twc_models.AddContractSignfieldResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.signfield.add', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def start_contract_flow( self, request: twc_models.StartContractFlowRequest, ) -> twc_models.StartContractFlowResponse: """ Description: 开启签署流程,开启后流程文档不可再添加或修改文档,签署任务会自动按照设置开始流转。流程开启后,归档前,可随时追加签署区(指定签署人的签署信息) Summary: 电子合同签署流程开启 """ runtime = util_models.RuntimeOptions() headers = {} return self.start_contract_flow_ex(request, headers, runtime) async def start_contract_flow_async( self, request: twc_models.StartContractFlowRequest, ) -> twc_models.StartContractFlowResponse: """ Description: 开启签署流程,开启后流程文档不可再添加或修改文档,签署任务会自动按照设置开始流转。流程开启后,归档前,可随时追加签署区(指定签署人的签署信息) Summary: 电子合同签署流程开启 """ runtime = util_models.RuntimeOptions() headers = {} return await self.start_contract_flow_ex_async(request, headers, runtime) def start_contract_flow_ex( self, request: twc_models.StartContractFlowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.StartContractFlowResponse: """ Description: 开启签署流程,开启后流程文档不可再添加或修改文档,签署任务会自动按照设置开始流转。流程开启后,归档前,可随时追加签署区(指定签署人的签署信息) Summary: 电子合同签署流程开启 """ UtilClient.validate_model(request) return twc_models.StartContractFlowResponse().from_map( self.do_request('1.0', 'twc.notary.contract.flow.start', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def start_contract_flow_ex_async( self, request: twc_models.StartContractFlowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.StartContractFlowResponse: """ Description: 开启签署流程,开启后流程文档不可再添加或修改文档,签署任务会自动按照设置开始流转。流程开启后,归档前,可随时追加签署区(指定签署人的签署信息) Summary: 电子合同签署流程开启 """ UtilClient.validate_model(request) return twc_models.StartContractFlowResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.flow.start', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def save_contract_flow( self, request: twc_models.SaveContractFlowRequest, ) -> twc_models.SaveContractFlowResponse: """ Description: 手动归档签署流程,归档后所有资源均不可修改。归档前签署流程中的所有签署人必须都签署完成。如创建流程时设置了自动归档,则无需调用本接口,签署完成后系统会自动调用 Summary: 电子合同签署流程归档 """ runtime = util_models.RuntimeOptions() headers = {} return self.save_contract_flow_ex(request, headers, runtime) async def save_contract_flow_async( self, request: twc_models.SaveContractFlowRequest, ) -> twc_models.SaveContractFlowResponse: """ Description: 手动归档签署流程,归档后所有资源均不可修改。归档前签署流程中的所有签署人必须都签署完成。如创建流程时设置了自动归档,则无需调用本接口,签署完成后系统会自动调用 Summary: 电子合同签署流程归档 """ runtime = util_models.RuntimeOptions() headers = {} return await self.save_contract_flow_ex_async(request, headers, runtime) def save_contract_flow_ex( self, request: twc_models.SaveContractFlowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SaveContractFlowResponse: """ Description: 手动归档签署流程,归档后所有资源均不可修改。归档前签署流程中的所有签署人必须都签署完成。如创建流程时设置了自动归档,则无需调用本接口,签署完成后系统会自动调用 Summary: 电子合同签署流程归档 """ UtilClient.validate_model(request) return twc_models.SaveContractFlowResponse().from_map( self.do_request('1.0', 'twc.notary.contract.flow.save', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def save_contract_flow_ex_async( self, request: twc_models.SaveContractFlowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SaveContractFlowResponse: """ Description: 手动归档签署流程,归档后所有资源均不可修改。归档前签署流程中的所有签署人必须都签署完成。如创建流程时设置了自动归档,则无需调用本接口,签署完成后系统会自动调用 Summary: 电子合同签署流程归档 """ UtilClient.validate_model(request) return twc_models.SaveContractFlowResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.flow.save', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def download_contract_document( self, request: twc_models.DownloadContractDocumentRequest, ) -> twc_models.DownloadContractDocumentResponse: """ Description: 流程归档后,查询和下载签署后的文件 Summary: 电子合同流程文档下载 """ runtime = util_models.RuntimeOptions() headers = {} return self.download_contract_document_ex(request, headers, runtime) async def download_contract_document_async( self, request: twc_models.DownloadContractDocumentRequest, ) -> twc_models.DownloadContractDocumentResponse: """ Description: 流程归档后,查询和下载签署后的文件 Summary: 电子合同流程文档下载 """ runtime = util_models.RuntimeOptions() headers = {} return await self.download_contract_document_ex_async(request, headers, runtime) def download_contract_document_ex( self, request: twc_models.DownloadContractDocumentRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.DownloadContractDocumentResponse: """ Description: 流程归档后,查询和下载签署后的文件 Summary: 电子合同流程文档下载 """ UtilClient.validate_model(request) return twc_models.DownloadContractDocumentResponse().from_map( self.do_request('1.0', 'twc.notary.contract.document.download', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def download_contract_document_ex_async( self, request: twc_models.DownloadContractDocumentRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.DownloadContractDocumentResponse: """ Description: 流程归档后,查询和下载签署后的文件 Summary: 电子合同流程文档下载 """ UtilClient.validate_model(request) return twc_models.DownloadContractDocumentResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.document.download', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def add_contract_file( self, request: twc_models.AddContractFileRequest, ) -> twc_models.AddContractFileResponse: """ Description: 基于文件模板生成待签文件用于后续文件,该文件可用用于签署,也可作为附件 Summary: 通过电子合同模板添加文档 """ runtime = util_models.RuntimeOptions() headers = {} return self.add_contract_file_ex(request, headers, runtime) async def add_contract_file_async( self, request: twc_models.AddContractFileRequest, ) -> twc_models.AddContractFileResponse: """ Description: 基于文件模板生成待签文件用于后续文件,该文件可用用于签署,也可作为附件 Summary: 通过电子合同模板添加文档 """ runtime = util_models.RuntimeOptions() headers = {} return await self.add_contract_file_ex_async(request, headers, runtime) def add_contract_file_ex( self, request: twc_models.AddContractFileRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.AddContractFileResponse: """ Description: 基于文件模板生成待签文件用于后续文件,该文件可用用于签署,也可作为附件 Summary: 通过电子合同模板添加文档 """ UtilClient.validate_model(request) return twc_models.AddContractFileResponse().from_map( self.do_request('1.0', 'twc.notary.contract.file.add', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def add_contract_file_ex_async( self, request: twc_models.AddContractFileRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.AddContractFileResponse: """ Description: 基于文件模板生成待签文件用于后续文件,该文件可用用于签署,也可作为附件 Summary: 通过电子合同模板添加文档 """ UtilClient.validate_model(request) return twc_models.AddContractFileResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.file.add', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_platform( self, request: twc_models.CreateContractPlatformRequest, ) -> twc_models.CreateContractPlatformResponse: """ Description: 电子合同平台方发起注册,提供企业信息、合同签署的经办人信息,注册成为电子合同平台方用户 Summary: 电子合同平台方注册 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_platform_ex(request, headers, runtime) async def create_contract_platform_async( self, request: twc_models.CreateContractPlatformRequest, ) -> twc_models.CreateContractPlatformResponse: """ Description: 电子合同平台方发起注册,提供企业信息、合同签署的经办人信息,注册成为电子合同平台方用户 Summary: 电子合同平台方注册 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_platform_ex_async(request, headers, runtime) def create_contract_platform_ex( self, request: twc_models.CreateContractPlatformRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractPlatformResponse: """ Description: 电子合同平台方发起注册,提供企业信息、合同签署的经办人信息,注册成为电子合同平台方用户 Summary: 电子合同平台方注册 """ UtilClient.validate_model(request) return twc_models.CreateContractPlatformResponse().from_map( self.do_request('1.0', 'twc.notary.contract.platform.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_platform_ex_async( self, request: twc_models.CreateContractPlatformRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractPlatformResponse: """ Description: 电子合同平台方发起注册,提供企业信息、合同签署的经办人信息,注册成为电子合同平台方用户 Summary: 电子合同平台方注册 """ UtilClient.validate_model(request) return twc_models.CreateContractPlatformResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.platform.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_user( self, request: twc_models.CreateContractUserRequest, ) -> twc_models.CreateContractUserResponse: """ Description: 电子合同平台方提供用户信息,注册成为平台用户 Summary: 电子合同平台方的用户注册 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_user_ex(request, headers, runtime) async def create_contract_user_async( self, request: twc_models.CreateContractUserRequest, ) -> twc_models.CreateContractUserResponse: """ Description: 电子合同平台方提供用户信息,注册成为平台用户 Summary: 电子合同平台方的用户注册 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_user_ex_async(request, headers, runtime) def create_contract_user_ex( self, request: twc_models.CreateContractUserRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractUserResponse: """ Description: 电子合同平台方提供用户信息,注册成为平台用户 Summary: 电子合同平台方的用户注册 """ UtilClient.validate_model(request) return twc_models.CreateContractUserResponse().from_map( self.do_request('1.0', 'twc.notary.contract.user.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_user_ex_async( self, request: twc_models.CreateContractUserRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractUserResponse: """ Description: 电子合同平台方提供用户信息,注册成为平台用户 Summary: 电子合同平台方的用户注册 """ UtilClient.validate_model(request) return twc_models.CreateContractUserResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.user.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def start_contract_handsign( self, request: twc_models.StartContractHandsignRequest, ) -> twc_models.StartContractHandsignResponse: """ Description: 电子合同平台方发起签署流程,用户在H5页面完成手动签署 Summary: 电子合同平台方发起手动签署流程 """ runtime = util_models.RuntimeOptions() headers = {} return self.start_contract_handsign_ex(request, headers, runtime) async def start_contract_handsign_async( self, request: twc_models.StartContractHandsignRequest, ) -> twc_models.StartContractHandsignResponse: """ Description: 电子合同平台方发起签署流程,用户在H5页面完成手动签署 Summary: 电子合同平台方发起手动签署流程 """ runtime = util_models.RuntimeOptions() headers = {} return await self.start_contract_handsign_ex_async(request, headers, runtime) def start_contract_handsign_ex( self, request: twc_models.StartContractHandsignRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.StartContractHandsignResponse: """ Description: 电子合同平台方发起签署流程,用户在H5页面完成手动签署 Summary: 电子合同平台方发起手动签署流程 """ UtilClient.validate_model(request) return twc_models.StartContractHandsignResponse().from_map( self.do_request('1.0', 'twc.notary.contract.handsign.start', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def start_contract_handsign_ex_async( self, request: twc_models.StartContractHandsignRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.StartContractHandsignResponse: """ Description: 电子合同平台方发起签署流程,用户在H5页面完成手动签署 Summary: 电子合同平台方发起手动签署流程 """ UtilClient.validate_model(request) return twc_models.StartContractHandsignResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.handsign.start', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_flow( self, request: twc_models.QueryContractFlowRequest, ) -> twc_models.QueryContractFlowResponse: """ Description: 查询签署流程的详细信息,包括流程配置、签署状态等 Summary: 签署流程查询 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_flow_ex(request, headers, runtime) async def query_contract_flow_async( self, request: twc_models.QueryContractFlowRequest, ) -> twc_models.QueryContractFlowResponse: """ Description: 查询签署流程的详细信息,包括流程配置、签署状态等 Summary: 签署流程查询 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_flow_ex_async(request, headers, runtime) def query_contract_flow_ex( self, request: twc_models.QueryContractFlowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractFlowResponse: """ Description: 查询签署流程的详细信息,包括流程配置、签署状态等 Summary: 签署流程查询 """ UtilClient.validate_model(request) return twc_models.QueryContractFlowResponse().from_map( self.do_request('1.0', 'twc.notary.contract.flow.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_flow_ex_async( self, request: twc_models.QueryContractFlowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractFlowResponse: """ Description: 查询签署流程的详细信息,包括流程配置、签署状态等 Summary: 签署流程查询 """ UtilClient.validate_model(request) return twc_models.QueryContractFlowResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.flow.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_accountsealimage( self, request: twc_models.CreateContractAccountsealimageRequest, ) -> twc_models.CreateContractAccountsealimageResponse: """ Description: 创建个人/机构图片印章 Summary: 创建个人/机构图片印章 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_accountsealimage_ex(request, headers, runtime) async def create_contract_accountsealimage_async( self, request: twc_models.CreateContractAccountsealimageRequest, ) -> twc_models.CreateContractAccountsealimageResponse: """ Description: 创建个人/机构图片印章 Summary: 创建个人/机构图片印章 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_accountsealimage_ex_async(request, headers, runtime) def create_contract_accountsealimage_ex( self, request: twc_models.CreateContractAccountsealimageRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractAccountsealimageResponse: """ Description: 创建个人/机构图片印章 Summary: 创建个人/机构图片印章 """ UtilClient.validate_model(request) return twc_models.CreateContractAccountsealimageResponse().from_map( self.do_request('1.0', 'twc.notary.contract.accountsealimage.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_accountsealimage_ex_async( self, request: twc_models.CreateContractAccountsealimageRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractAccountsealimageResponse: """ Description: 创建个人/机构图片印章 Summary: 创建个人/机构图片印章 """ UtilClient.validate_model(request) return twc_models.CreateContractAccountsealimageResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.accountsealimage.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_contract_fileuploadurl( self, request: twc_models.GetContractFileuploadurlRequest, ) -> twc_models.GetContractFileuploadurlResponse: """ Description: 采用文件直传的方式完成用户文件的上传。对接方通过该接口获取文件上传的授权地址 Summary: 通过上传方式创建文件 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_contract_fileuploadurl_ex(request, headers, runtime) async def get_contract_fileuploadurl_async( self, request: twc_models.GetContractFileuploadurlRequest, ) -> twc_models.GetContractFileuploadurlResponse: """ Description: 采用文件直传的方式完成用户文件的上传。对接方通过该接口获取文件上传的授权地址 Summary: 通过上传方式创建文件 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_contract_fileuploadurl_ex_async(request, headers, runtime) def get_contract_fileuploadurl_ex( self, request: twc_models.GetContractFileuploadurlRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetContractFileuploadurlResponse: """ Description: 采用文件直传的方式完成用户文件的上传。对接方通过该接口获取文件上传的授权地址 Summary: 通过上传方式创建文件 """ UtilClient.validate_model(request) return twc_models.GetContractFileuploadurlResponse().from_map( self.do_request('1.0', 'twc.notary.contract.fileuploadurl.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_contract_fileuploadurl_ex_async( self, request: twc_models.GetContractFileuploadurlRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetContractFileuploadurlResponse: """ Description: 采用文件直传的方式完成用户文件的上传。对接方通过该接口获取文件上传的授权地址 Summary: 通过上传方式创建文件 """ UtilClient.validate_model(request) return twc_models.GetContractFileuploadurlResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.fileuploadurl.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def add_contract_platformsignfields( self, request: twc_models.AddContractPlatformsignfieldsRequest, ) -> twc_models.AddContractPlatformsignfieldsResponse: """ Description: 向指定流程中创建签署区,每个签署区视为一个任务,系统会自动按照流程流转。 签署区的添加必须在签署文档添加之后, 签署区信息内部包含签署文档信息(平台自动签无需指定签署人信息,默认签署人是对接的企业)。 签署区创建完成,流程开启后,系统将自动完成“对接平台自动盖章签署区”的盖章,对接平台可全程无感完成本次签署。 Summary: 添加平台自动盖章签署区 """ runtime = util_models.RuntimeOptions() headers = {} return self.add_contract_platformsignfields_ex(request, headers, runtime) async def add_contract_platformsignfields_async( self, request: twc_models.AddContractPlatformsignfieldsRequest, ) -> twc_models.AddContractPlatformsignfieldsResponse: """ Description: 向指定流程中创建签署区,每个签署区视为一个任务,系统会自动按照流程流转。 签署区的添加必须在签署文档添加之后, 签署区信息内部包含签署文档信息(平台自动签无需指定签署人信息,默认签署人是对接的企业)。 签署区创建完成,流程开启后,系统将自动完成“对接平台自动盖章签署区”的盖章,对接平台可全程无感完成本次签署。 Summary: 添加平台自动盖章签署区 """ runtime = util_models.RuntimeOptions() headers = {} return await self.add_contract_platformsignfields_ex_async(request, headers, runtime) def add_contract_platformsignfields_ex( self, request: twc_models.AddContractPlatformsignfieldsRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.AddContractPlatformsignfieldsResponse: """ Description: 向指定流程中创建签署区,每个签署区视为一个任务,系统会自动按照流程流转。 签署区的添加必须在签署文档添加之后, 签署区信息内部包含签署文档信息(平台自动签无需指定签署人信息,默认签署人是对接的企业)。 签署区创建完成,流程开启后,系统将自动完成“对接平台自动盖章签署区”的盖章,对接平台可全程无感完成本次签署。 Summary: 添加平台自动盖章签署区 """ UtilClient.validate_model(request) return twc_models.AddContractPlatformsignfieldsResponse().from_map( self.do_request('1.0', 'twc.notary.contract.platformsignfields.add', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def add_contract_platformsignfields_ex_async( self, request: twc_models.AddContractPlatformsignfieldsRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.AddContractPlatformsignfieldsResponse: """ Description: 向指定流程中创建签署区,每个签署区视为一个任务,系统会自动按照流程流转。 签署区的添加必须在签署文档添加之后, 签署区信息内部包含签署文档信息(平台自动签无需指定签署人信息,默认签署人是对接的企业)。 签署区创建完成,流程开启后,系统将自动完成“对接平台自动盖章签署区”的盖章,对接平台可全程无感完成本次签署。 Summary: 添加平台自动盖章签署区 """ UtilClient.validate_model(request) return twc_models.AddContractPlatformsignfieldsResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.platformsignfields.add', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_contract_file( self, request: twc_models.GetContractFileRequest, ) -> twc_models.GetContractFileResponse: """ Description: 查询文件详情,包括文件名称、大小、下载地址等 Summary: 查询文件详情 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_contract_file_ex(request, headers, runtime) async def get_contract_file_async( self, request: twc_models.GetContractFileRequest, ) -> twc_models.GetContractFileResponse: """ Description: 查询文件详情,包括文件名称、大小、下载地址等 Summary: 查询文件详情 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_contract_file_ex_async(request, headers, runtime) def get_contract_file_ex( self, request: twc_models.GetContractFileRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetContractFileResponse: """ Description: 查询文件详情,包括文件名称、大小、下载地址等 Summary: 查询文件详情 """ UtilClient.validate_model(request) return twc_models.GetContractFileResponse().from_map( self.do_request('1.0', 'twc.notary.contract.file.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_contract_file_ex_async( self, request: twc_models.GetContractFileRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetContractFileResponse: """ Description: 查询文件详情,包括文件名称、大小、下载地址等 Summary: 查询文件详情 """ UtilClient.validate_model(request) return twc_models.GetContractFileResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.file.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_accountseals( self, request: twc_models.QueryContractAccountsealsRequest, ) -> twc_models.QueryContractAccountsealsResponse: """ Description: 查询个人所有印章 Summary: 查询个人印章 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_accountseals_ex(request, headers, runtime) async def query_contract_accountseals_async( self, request: twc_models.QueryContractAccountsealsRequest, ) -> twc_models.QueryContractAccountsealsResponse: """ Description: 查询个人所有印章 Summary: 查询个人印章 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_accountseals_ex_async(request, headers, runtime) def query_contract_accountseals_ex( self, request: twc_models.QueryContractAccountsealsRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractAccountsealsResponse: """ Description: 查询个人所有印章 Summary: 查询个人印章 """ UtilClient.validate_model(request) return twc_models.QueryContractAccountsealsResponse().from_map( self.do_request('1.0', 'twc.notary.contract.accountseals.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_accountseals_ex_async( self, request: twc_models.QueryContractAccountsealsRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractAccountsealsResponse: """ Description: 查询个人所有印章 Summary: 查询个人印章 """ UtilClient.validate_model(request) return twc_models.QueryContractAccountsealsResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.accountseals.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_organizationseals( self, request: twc_models.QueryContractOrganizationsealsRequest, ) -> twc_models.QueryContractOrganizationsealsResponse: """ Description: 查询机构所有印章 Summary: 查询机构印章 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_organizationseals_ex(request, headers, runtime) async def query_contract_organizationseals_async( self, request: twc_models.QueryContractOrganizationsealsRequest, ) -> twc_models.QueryContractOrganizationsealsResponse: """ Description: 查询机构所有印章 Summary: 查询机构印章 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_organizationseals_ex_async(request, headers, runtime) def query_contract_organizationseals_ex( self, request: twc_models.QueryContractOrganizationsealsRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractOrganizationsealsResponse: """ Description: 查询机构所有印章 Summary: 查询机构印章 """ UtilClient.validate_model(request) return twc_models.QueryContractOrganizationsealsResponse().from_map( self.do_request('1.0', 'twc.notary.contract.organizationseals.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_organizationseals_ex_async( self, request: twc_models.QueryContractOrganizationsealsRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractOrganizationsealsResponse: """ Description: 查询机构所有印章 Summary: 查询机构印章 """ UtilClient.validate_model(request) return twc_models.QueryContractOrganizationsealsResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.organizationseals.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_flowsigner( self, request: twc_models.QueryContractFlowsignerRequest, ) -> twc_models.QueryContractFlowsignerResponse: """ Description: 查询流程所有签署人列表。 Summary: 查询流程签署人列表 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_flowsigner_ex(request, headers, runtime) async def query_contract_flowsigner_async( self, request: twc_models.QueryContractFlowsignerRequest, ) -> twc_models.QueryContractFlowsignerResponse: """ Description: 查询流程所有签署人列表。 Summary: 查询流程签署人列表 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_flowsigner_ex_async(request, headers, runtime) def query_contract_flowsigner_ex( self, request: twc_models.QueryContractFlowsignerRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractFlowsignerResponse: """ Description: 查询流程所有签署人列表。 Summary: 查询流程签署人列表 """ UtilClient.validate_model(request) return twc_models.QueryContractFlowsignerResponse().from_map( self.do_request('1.0', 'twc.notary.contract.flowsigner.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_flowsigner_ex_async( self, request: twc_models.QueryContractFlowsignerRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractFlowsignerResponse: """ Description: 查询流程所有签署人列表。 Summary: 查询流程签署人列表 """ UtilClient.validate_model(request) return twc_models.QueryContractFlowsignerResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.flowsigner.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_signfields( self, request: twc_models.QueryContractSignfieldsRequest, ) -> twc_models.QueryContractSignfieldsResponse: """ Description: 查询流程签署区列表,可以查询指定指定id或者签署人所属的签署区 Summary: 查询签署区列表 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_signfields_ex(request, headers, runtime) async def query_contract_signfields_async( self, request: twc_models.QueryContractSignfieldsRequest, ) -> twc_models.QueryContractSignfieldsResponse: """ Description: 查询流程签署区列表,可以查询指定指定id或者签署人所属的签署区 Summary: 查询签署区列表 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_signfields_ex_async(request, headers, runtime) def query_contract_signfields_ex( self, request: twc_models.QueryContractSignfieldsRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractSignfieldsResponse: """ Description: 查询流程签署区列表,可以查询指定指定id或者签署人所属的签署区 Summary: 查询签署区列表 """ UtilClient.validate_model(request) return twc_models.QueryContractSignfieldsResponse().from_map( self.do_request('1.0', 'twc.notary.contract.signfields.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_signfields_ex_async( self, request: twc_models.QueryContractSignfieldsRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractSignfieldsResponse: """ Description: 查询流程签署区列表,可以查询指定指定id或者签署人所属的签署区 Summary: 查询签署区列表 """ UtilClient.validate_model(request) return twc_models.QueryContractSignfieldsResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.signfields.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_account( self, request: twc_models.QueryContractAccountRequest, ) -> twc_models.QueryContractAccountResponse: """ Description: 使用创建账号返回的账号id查询用户的账号。 Summary: 查询个人账号 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_account_ex(request, headers, runtime) async def query_contract_account_async( self, request: twc_models.QueryContractAccountRequest, ) -> twc_models.QueryContractAccountResponse: """ Description: 使用创建账号返回的账号id查询用户的账号。 Summary: 查询个人账号 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_account_ex_async(request, headers, runtime) def query_contract_account_ex( self, request: twc_models.QueryContractAccountRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractAccountResponse: """ Description: 使用创建账号返回的账号id查询用户的账号。 Summary: 查询个人账号 """ UtilClient.validate_model(request) return twc_models.QueryContractAccountResponse().from_map( self.do_request('1.0', 'twc.notary.contract.account.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_account_ex_async( self, request: twc_models.QueryContractAccountRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractAccountResponse: """ Description: 使用创建账号返回的账号id查询用户的账号。 Summary: 查询个人账号 """ UtilClient.validate_model(request) return twc_models.QueryContractAccountResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.account.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_organization( self, request: twc_models.QueryContractOrganizationRequest, ) -> twc_models.QueryContractOrganizationResponse: """ Description: 使用创建账号返回的账号id查询机构账号。 Summary: 查询机构账号 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_organization_ex(request, headers, runtime) async def query_contract_organization_async( self, request: twc_models.QueryContractOrganizationRequest, ) -> twc_models.QueryContractOrganizationResponse: """ Description: 使用创建账号返回的账号id查询机构账号。 Summary: 查询机构账号 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_organization_ex_async(request, headers, runtime) def query_contract_organization_ex( self, request: twc_models.QueryContractOrganizationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractOrganizationResponse: """ Description: 使用创建账号返回的账号id查询机构账号。 Summary: 查询机构账号 """ UtilClient.validate_model(request) return twc_models.QueryContractOrganizationResponse().from_map( self.do_request('1.0', 'twc.notary.contract.organization.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_organization_ex_async( self, request: twc_models.QueryContractOrganizationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractOrganizationResponse: """ Description: 使用创建账号返回的账号id查询机构账号。 Summary: 查询机构账号 """ UtilClient.validate_model(request) return twc_models.QueryContractOrganizationResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.organization.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_template( self, request: twc_models.QueryContractTemplateRequest, ) -> twc_models.QueryContractTemplateResponse: """ Description: 查询模板详情,包括文件模板基本信息和输入项组件信息 Summary: 查询模板详情详情 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_template_ex(request, headers, runtime) async def query_contract_template_async( self, request: twc_models.QueryContractTemplateRequest, ) -> twc_models.QueryContractTemplateResponse: """ Description: 查询模板详情,包括文件模板基本信息和输入项组件信息 Summary: 查询模板详情详情 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_template_ex_async(request, headers, runtime) def query_contract_template_ex( self, request: twc_models.QueryContractTemplateRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractTemplateResponse: """ Description: 查询模板详情,包括文件模板基本信息和输入项组件信息 Summary: 查询模板详情详情 """ UtilClient.validate_model(request) return twc_models.QueryContractTemplateResponse().from_map( self.do_request('1.0', 'twc.notary.contract.template.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_template_ex_async( self, request: twc_models.QueryContractTemplateRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractTemplateResponse: """ Description: 查询模板详情,包括文件模板基本信息和输入项组件信息 Summary: 查询模板详情详情 """ UtilClient.validate_model(request) return twc_models.QueryContractTemplateResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.template.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_signflow( self, request: twc_models.CreateContractSignflowRequest, ) -> twc_models.CreateContractSignflowResponse: """ Description: 平台方制定签约模板和用户,发起手动签署流程,获得签署流程ID Summary: 创建签署流程 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_signflow_ex(request, headers, runtime) async def create_contract_signflow_async( self, request: twc_models.CreateContractSignflowRequest, ) -> twc_models.CreateContractSignflowResponse: """ Description: 平台方制定签约模板和用户,发起手动签署流程,获得签署流程ID Summary: 创建签署流程 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_signflow_ex_async(request, headers, runtime) def create_contract_signflow_ex( self, request: twc_models.CreateContractSignflowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractSignflowResponse: """ Description: 平台方制定签约模板和用户,发起手动签署流程,获得签署流程ID Summary: 创建签署流程 """ UtilClient.validate_model(request) return twc_models.CreateContractSignflowResponse().from_map( self.do_request('1.0', 'twc.notary.contract.signflow.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_signflow_ex_async( self, request: twc_models.CreateContractSignflowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractSignflowResponse: """ Description: 平台方制定签约模板和用户,发起手动签署流程,获得签署流程ID Summary: 创建签署流程 """ UtilClient.validate_model(request) return twc_models.CreateContractSignflowResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.signflow.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_registerzft( self, request: twc_models.CreateContractRegisterzftRequest, ) -> twc_models.CreateContractRegisterzftResponse: """ Description: 商户签署直付通协议 Summary: 商户签署直付通协议 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_registerzft_ex(request, headers, runtime) async def create_contract_registerzft_async( self, request: twc_models.CreateContractRegisterzftRequest, ) -> twc_models.CreateContractRegisterzftResponse: """ Description: 商户签署直付通协议 Summary: 商户签署直付通协议 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_registerzft_ex_async(request, headers, runtime) def create_contract_registerzft_ex( self, request: twc_models.CreateContractRegisterzftRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractRegisterzftResponse: """ Description: 商户签署直付通协议 Summary: 商户签署直付通协议 """ UtilClient.validate_model(request) return twc_models.CreateContractRegisterzftResponse().from_map( self.do_request('1.0', 'twc.notary.contract.registerzft.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_registerzft_ex_async( self, request: twc_models.CreateContractRegisterzftRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractRegisterzftResponse: """ Description: 商户签署直付通协议 Summary: 商户签署直付通协议 """ UtilClient.validate_model(request) return twc_models.CreateContractRegisterzftResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.registerzft.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_platformtemplate( self, request: twc_models.CreateContractPlatformtemplateRequest, ) -> twc_models.CreateContractPlatformtemplateResponse: """ Description: 创建模板的同时,指定平台方签署信息,完成智能合同模板创建 Summary: 创建智能合同模板 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_platformtemplate_ex(request, headers, runtime) async def create_contract_platformtemplate_async( self, request: twc_models.CreateContractPlatformtemplateRequest, ) -> twc_models.CreateContractPlatformtemplateResponse: """ Description: 创建模板的同时,指定平台方签署信息,完成智能合同模板创建 Summary: 创建智能合同模板 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_platformtemplate_ex_async(request, headers, runtime) def create_contract_platformtemplate_ex( self, request: twc_models.CreateContractPlatformtemplateRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractPlatformtemplateResponse: """ Description: 创建模板的同时,指定平台方签署信息,完成智能合同模板创建 Summary: 创建智能合同模板 """ UtilClient.validate_model(request) return twc_models.CreateContractPlatformtemplateResponse().from_map( self.do_request('1.0', 'twc.notary.contract.platformtemplate.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_platformtemplate_ex_async( self, request: twc_models.CreateContractPlatformtemplateRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractPlatformtemplateResponse: """ Description: 创建模板的同时,指定平台方签署信息,完成智能合同模板创建 Summary: 创建智能合同模板 """ UtilClient.validate_model(request) return twc_models.CreateContractPlatformtemplateResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.platformtemplate.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_merchantzft( self, request: twc_models.QueryContractMerchantzftRequest, ) -> twc_models.QueryContractMerchantzftResponse: """ Description: 查询商户直付通入驻信息 Summary: 查询商户直付通入驻信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_merchantzft_ex(request, headers, runtime) async def query_contract_merchantzft_async( self, request: twc_models.QueryContractMerchantzftRequest, ) -> twc_models.QueryContractMerchantzftResponse: """ Description: 查询商户直付通入驻信息 Summary: 查询商户直付通入驻信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_merchantzft_ex_async(request, headers, runtime) def query_contract_merchantzft_ex( self, request: twc_models.QueryContractMerchantzftRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractMerchantzftResponse: """ Description: 查询商户直付通入驻信息 Summary: 查询商户直付通入驻信息 """ UtilClient.validate_model(request) return twc_models.QueryContractMerchantzftResponse().from_map( self.do_request('1.0', 'twc.notary.contract.merchantzft.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_merchantzft_ex_async( self, request: twc_models.QueryContractMerchantzftRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractMerchantzftResponse: """ Description: 查询商户直付通入驻信息 Summary: 查询商户直付通入驻信息 """ UtilClient.validate_model(request) return twc_models.QueryContractMerchantzftResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.merchantzft.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def list_contract_outtradeid( self, request: twc_models.ListContractOuttradeidRequest, ) -> twc_models.ListContractOuttradeidResponse: """ Description: 列举本租户合同相关交易 Summary: 列举本租户合同相关交易 """ runtime = util_models.RuntimeOptions() headers = {} return self.list_contract_outtradeid_ex(request, headers, runtime) async def list_contract_outtradeid_async( self, request: twc_models.ListContractOuttradeidRequest, ) -> twc_models.ListContractOuttradeidResponse: """ Description: 列举本租户合同相关交易 Summary: 列举本租户合同相关交易 """ runtime = util_models.RuntimeOptions() headers = {} return await self.list_contract_outtradeid_ex_async(request, headers, runtime) def list_contract_outtradeid_ex( self, request: twc_models.ListContractOuttradeidRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ListContractOuttradeidResponse: """ Description: 列举本租户合同相关交易 Summary: 列举本租户合同相关交易 """ UtilClient.validate_model(request) return twc_models.ListContractOuttradeidResponse().from_map( self.do_request('1.0', 'twc.notary.contract.outtradeid.list', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def list_contract_outtradeid_ex_async( self, request: twc_models.ListContractOuttradeidRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ListContractOuttradeidResponse: """ Description: 列举本租户合同相关交易 Summary: 列举本租户合同相关交易 """ UtilClient.validate_model(request) return twc_models.ListContractOuttradeidResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.outtradeid.list', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_tradedetail( self, request: twc_models.QueryContractTradedetailRequest, ) -> twc_models.QueryContractTradedetailResponse: """ Description: 根据订单id查询订单代扣详情 Summary: 根据订单id查询订单代扣详情 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_tradedetail_ex(request, headers, runtime) async def query_contract_tradedetail_async( self, request: twc_models.QueryContractTradedetailRequest, ) -> twc_models.QueryContractTradedetailResponse: """ Description: 根据订单id查询订单代扣详情 Summary: 根据订单id查询订单代扣详情 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_tradedetail_ex_async(request, headers, runtime) def query_contract_tradedetail_ex( self, request: twc_models.QueryContractTradedetailRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractTradedetailResponse: """ Description: 根据订单id查询订单代扣详情 Summary: 根据订单id查询订单代扣详情 """ UtilClient.validate_model(request) return twc_models.QueryContractTradedetailResponse().from_map( self.do_request('1.0', 'twc.notary.contract.tradedetail.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_tradedetail_ex_async( self, request: twc_models.QueryContractTradedetailRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractTradedetailResponse: """ Description: 根据订单id查询订单代扣详情 Summary: 根据订单id查询订单代扣详情 """ UtilClient.validate_model(request) return twc_models.QueryContractTradedetailResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.tradedetail.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_merchantrefund( self, request: twc_models.CreateContractMerchantrefundRequest, ) -> twc_models.CreateContractMerchantrefundResponse: """ Description: 商户根据订单id退款 Summary: 商户根据订单id退款 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_merchantrefund_ex(request, headers, runtime) async def create_contract_merchantrefund_async( self, request: twc_models.CreateContractMerchantrefundRequest, ) -> twc_models.CreateContractMerchantrefundResponse: """ Description: 商户根据订单id退款 Summary: 商户根据订单id退款 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_merchantrefund_ex_async(request, headers, runtime) def create_contract_merchantrefund_ex( self, request: twc_models.CreateContractMerchantrefundRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractMerchantrefundResponse: """ Description: 商户根据订单id退款 Summary: 商户根据订单id退款 """ UtilClient.validate_model(request) return twc_models.CreateContractMerchantrefundResponse().from_map( self.do_request('1.0', 'twc.notary.contract.merchantrefund.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_merchantrefund_ex_async( self, request: twc_models.CreateContractMerchantrefundRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractMerchantrefundResponse: """ Description: 商户根据订单id退款 Summary: 商户根据订单id退款 """ UtilClient.validate_model(request) return twc_models.CreateContractMerchantrefundResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.merchantrefund.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_adminaccount( self, request: twc_models.CreateContractAdminaccountRequest, ) -> twc_models.CreateContractAdminaccountResponse: """ Description: 创建蚂蚁区块链账户 Summary: 创建蚂蚁区块链账户 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_adminaccount_ex(request, headers, runtime) async def create_contract_adminaccount_async( self, request: twc_models.CreateContractAdminaccountRequest, ) -> twc_models.CreateContractAdminaccountResponse: """ Description: 创建蚂蚁区块链账户 Summary: 创建蚂蚁区块链账户 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_adminaccount_ex_async(request, headers, runtime) def create_contract_adminaccount_ex( self, request: twc_models.CreateContractAdminaccountRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractAdminaccountResponse: """ Description: 创建蚂蚁区块链账户 Summary: 创建蚂蚁区块链账户 """ UtilClient.validate_model(request) return twc_models.CreateContractAdminaccountResponse().from_map( self.do_request('1.0', 'twc.notary.contract.adminaccount.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_adminaccount_ex_async( self, request: twc_models.CreateContractAdminaccountRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractAdminaccountResponse: """ Description: 创建蚂蚁区块链账户 Summary: 创建蚂蚁区块链账户 """ UtilClient.validate_model(request) return twc_models.CreateContractAdminaccountResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.adminaccount.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def list_contract_tradeids( self, request: twc_models.ListContractTradeidsRequest, ) -> twc_models.ListContractTradeidsResponse: """ Description: 商户根据合同id列举所有的tradeId Summary: 商户根据合同id列举所有的tradeId """ runtime = util_models.RuntimeOptions() headers = {} return self.list_contract_tradeids_ex(request, headers, runtime) async def list_contract_tradeids_async( self, request: twc_models.ListContractTradeidsRequest, ) -> twc_models.ListContractTradeidsResponse: """ Description: 商户根据合同id列举所有的tradeId Summary: 商户根据合同id列举所有的tradeId """ runtime = util_models.RuntimeOptions() headers = {} return await self.list_contract_tradeids_ex_async(request, headers, runtime) def list_contract_tradeids_ex( self, request: twc_models.ListContractTradeidsRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ListContractTradeidsResponse: """ Description: 商户根据合同id列举所有的tradeId Summary: 商户根据合同id列举所有的tradeId """ UtilClient.validate_model(request) return twc_models.ListContractTradeidsResponse().from_map( self.do_request('1.0', 'twc.notary.contract.tradeids.list', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def list_contract_tradeids_ex_async( self, request: twc_models.ListContractTradeidsRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ListContractTradeidsResponse: """ Description: 商户根据合同id列举所有的tradeId Summary: 商户根据合同id列举所有的tradeId """ UtilClient.validate_model(request) return twc_models.ListContractTradeidsResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.tradeids.list', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_commontrigger( self, request: twc_models.CreateContractCommontriggerRequest, ) -> twc_models.CreateContractCommontriggerResponse: """ Description: 商户上传代扣规则 Summary: 商户上传代扣规则 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_commontrigger_ex(request, headers, runtime) async def create_contract_commontrigger_async( self, request: twc_models.CreateContractCommontriggerRequest, ) -> twc_models.CreateContractCommontriggerResponse: """ Description: 商户上传代扣规则 Summary: 商户上传代扣规则 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_commontrigger_ex_async(request, headers, runtime) def create_contract_commontrigger_ex( self, request: twc_models.CreateContractCommontriggerRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractCommontriggerResponse: """ Description: 商户上传代扣规则 Summary: 商户上传代扣规则 """ UtilClient.validate_model(request) return twc_models.CreateContractCommontriggerResponse().from_map( self.do_request('1.0', 'twc.notary.contract.commontrigger.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_commontrigger_ex_async( self, request: twc_models.CreateContractCommontriggerRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractCommontriggerResponse: """ Description: 商户上传代扣规则 Summary: 商户上传代扣规则 """ UtilClient.validate_model(request) return twc_models.CreateContractCommontriggerResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.commontrigger.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_merchantindirectzft( self, request: twc_models.CreateContractMerchantindirectzftRequest, ) -> twc_models.CreateContractMerchantindirectzftResponse: """ Description: 商户入驻直付通 Summary: 商户入驻直付通 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_merchantindirectzft_ex(request, headers, runtime) async def create_contract_merchantindirectzft_async( self, request: twc_models.CreateContractMerchantindirectzftRequest, ) -> twc_models.CreateContractMerchantindirectzftResponse: """ Description: 商户入驻直付通 Summary: 商户入驻直付通 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_merchantindirectzft_ex_async(request, headers, runtime) def create_contract_merchantindirectzft_ex( self, request: twc_models.CreateContractMerchantindirectzftRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractMerchantindirectzftResponse: """ Description: 商户入驻直付通 Summary: 商户入驻直付通 """ UtilClient.validate_model(request) return twc_models.CreateContractMerchantindirectzftResponse().from_map( self.do_request('1.0', 'twc.notary.contract.merchantindirectzft.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_merchantindirectzft_ex_async( self, request: twc_models.CreateContractMerchantindirectzftRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractMerchantindirectzftResponse: """ Description: 商户入驻直付通 Summary: 商户入驻直付通 """ UtilClient.validate_model(request) return twc_models.CreateContractMerchantindirectzftResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.merchantindirectzft.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_merchantindirectzft( self, request: twc_models.QueryContractMerchantindirectzftRequest, ) -> twc_models.QueryContractMerchantindirectzftResponse: """ Description: 根据订单id查询直付通商户入驻信息 Summary: 根据订单id查询直付通商户入驻信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_merchantindirectzft_ex(request, headers, runtime) async def query_contract_merchantindirectzft_async( self, request: twc_models.QueryContractMerchantindirectzftRequest, ) -> twc_models.QueryContractMerchantindirectzftResponse: """ Description: 根据订单id查询直付通商户入驻信息 Summary: 根据订单id查询直付通商户入驻信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_merchantindirectzft_ex_async(request, headers, runtime) def query_contract_merchantindirectzft_ex( self, request: twc_models.QueryContractMerchantindirectzftRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractMerchantindirectzftResponse: """ Description: 根据订单id查询直付通商户入驻信息 Summary: 根据订单id查询直付通商户入驻信息 """ UtilClient.validate_model(request) return twc_models.QueryContractMerchantindirectzftResponse().from_map( self.do_request('1.0', 'twc.notary.contract.merchantindirectzft.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_merchantindirectzft_ex_async( self, request: twc_models.QueryContractMerchantindirectzftRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractMerchantindirectzftResponse: """ Description: 根据订单id查询直付通商户入驻信息 Summary: 根据订单id查询直付通商户入驻信息 """ UtilClient.validate_model(request) return twc_models.QueryContractMerchantindirectzftResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.merchantindirectzft.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_payresultfileurl( self, request: twc_models.QueryPayresultfileurlRequest, ) -> twc_models.QueryPayresultfileurlResponse: """ Description: 获取支付对账文件的url Summary: 获取支付对账文件的url """ runtime = util_models.RuntimeOptions() headers = {} return self.query_payresultfileurl_ex(request, headers, runtime) async def query_payresultfileurl_async( self, request: twc_models.QueryPayresultfileurlRequest, ) -> twc_models.QueryPayresultfileurlResponse: """ Description: 获取支付对账文件的url Summary: 获取支付对账文件的url """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_payresultfileurl_ex_async(request, headers, runtime) def query_payresultfileurl_ex( self, request: twc_models.QueryPayresultfileurlRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryPayresultfileurlResponse: """ Description: 获取支付对账文件的url Summary: 获取支付对账文件的url """ UtilClient.validate_model(request) return twc_models.QueryPayresultfileurlResponse().from_map( self.do_request('1.0', 'twc.notary.payresultfileurl.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_payresultfileurl_ex_async( self, request: twc_models.QueryPayresultfileurlRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryPayresultfileurlResponse: """ Description: 获取支付对账文件的url Summary: 获取支付对账文件的url """ UtilClient.validate_model(request) return twc_models.QueryPayresultfileurlResponse().from_map( await self.do_request_async('1.0', 'twc.notary.payresultfileurl.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_merchantimage( self, request: twc_models.CreateContractMerchantimageRequest, ) -> twc_models.CreateContractMerchantimageResponse: """ Description: 智能合同图片上传 Summary: 智能合同图片上传 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_merchantimage_ex(request, headers, runtime) async def create_contract_merchantimage_async( self, request: twc_models.CreateContractMerchantimageRequest, ) -> twc_models.CreateContractMerchantimageResponse: """ Description: 智能合同图片上传 Summary: 智能合同图片上传 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_merchantimage_ex_async(request, headers, runtime) def create_contract_merchantimage_ex( self, request: twc_models.CreateContractMerchantimageRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractMerchantimageResponse: """ Description: 智能合同图片上传 Summary: 智能合同图片上传 """ UtilClient.validate_model(request) return twc_models.CreateContractMerchantimageResponse().from_map( self.do_request('1.0', 'twc.notary.contract.merchantimage.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_merchantimage_ex_async( self, request: twc_models.CreateContractMerchantimageRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractMerchantimageResponse: """ Description: 智能合同图片上传 Summary: 智能合同图片上传 """ UtilClient.validate_model(request) return twc_models.CreateContractMerchantimageResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.merchantimage.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def cancel_contract_paytrade( self, request: twc_models.CancelContractPaytradeRequest, ) -> twc_models.CancelContractPaytradeResponse: """ Description: 取消智能合同剩余代扣条目 Summary: 取消智能合同剩余代扣条目 """ runtime = util_models.RuntimeOptions() headers = {} return self.cancel_contract_paytrade_ex(request, headers, runtime) async def cancel_contract_paytrade_async( self, request: twc_models.CancelContractPaytradeRequest, ) -> twc_models.CancelContractPaytradeResponse: """ Description: 取消智能合同剩余代扣条目 Summary: 取消智能合同剩余代扣条目 """ runtime = util_models.RuntimeOptions() headers = {} return await self.cancel_contract_paytrade_ex_async(request, headers, runtime) def cancel_contract_paytrade_ex( self, request: twc_models.CancelContractPaytradeRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CancelContractPaytradeResponse: """ Description: 取消智能合同剩余代扣条目 Summary: 取消智能合同剩余代扣条目 """ UtilClient.validate_model(request) return twc_models.CancelContractPaytradeResponse().from_map( self.do_request('1.0', 'twc.notary.contract.paytrade.cancel', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def cancel_contract_paytrade_ex_async( self, request: twc_models.CancelContractPaytradeRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CancelContractPaytradeResponse: """ Description: 取消智能合同剩余代扣条目 Summary: 取消智能合同剩余代扣条目 """ UtilClient.validate_model(request) return twc_models.CancelContractPaytradeResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.paytrade.cancel', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_handsignflow( self, request: twc_models.CreateContractHandsignflowRequest, ) -> twc_models.CreateContractHandsignflowResponse: """ Description: 创建手动签署流程 Summary: 创建手动签署流程 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_handsignflow_ex(request, headers, runtime) async def create_contract_handsignflow_async( self, request: twc_models.CreateContractHandsignflowRequest, ) -> twc_models.CreateContractHandsignflowResponse: """ Description: 创建手动签署流程 Summary: 创建手动签署流程 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_handsignflow_ex_async(request, headers, runtime) def create_contract_handsignflow_ex( self, request: twc_models.CreateContractHandsignflowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractHandsignflowResponse: """ Description: 创建手动签署流程 Summary: 创建手动签署流程 """ UtilClient.validate_model(request) return twc_models.CreateContractHandsignflowResponse().from_map( self.do_request('1.0', 'twc.notary.contract.handsignflow.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_handsignflow_ex_async( self, request: twc_models.CreateContractHandsignflowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractHandsignflowResponse: """ Description: 创建手动签署流程 Summary: 创建手动签署流程 """ UtilClient.validate_model(request) return twc_models.CreateContractHandsignflowResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.handsignflow.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_handsignfield( self, request: twc_models.CreateContractHandsignfieldRequest, ) -> twc_models.CreateContractHandsignfieldResponse: """ Description: 向指定流程中创建签署区,每个签署区视为一个任务,系统会自动按照流程流转。 签署区的添加必须在签署文档添加之后, 签署区信息内部包含签署文档信息。签署区创建完成,流程开启后,通过获取签署地址接口,可获取用户手动签署链接,通过此链接可打开文件签署页面,进行人工确认签署。 Summary: 添加电子合同签署方手动盖章签署区 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_handsignfield_ex(request, headers, runtime) async def create_contract_handsignfield_async( self, request: twc_models.CreateContractHandsignfieldRequest, ) -> twc_models.CreateContractHandsignfieldResponse: """ Description: 向指定流程中创建签署区,每个签署区视为一个任务,系统会自动按照流程流转。 签署区的添加必须在签署文档添加之后, 签署区信息内部包含签署文档信息。签署区创建完成,流程开启后,通过获取签署地址接口,可获取用户手动签署链接,通过此链接可打开文件签署页面,进行人工确认签署。 Summary: 添加电子合同签署方手动盖章签署区 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_handsignfield_ex_async(request, headers, runtime) def create_contract_handsignfield_ex( self, request: twc_models.CreateContractHandsignfieldRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractHandsignfieldResponse: """ Description: 向指定流程中创建签署区,每个签署区视为一个任务,系统会自动按照流程流转。 签署区的添加必须在签署文档添加之后, 签署区信息内部包含签署文档信息。签署区创建完成,流程开启后,通过获取签署地址接口,可获取用户手动签署链接,通过此链接可打开文件签署页面,进行人工确认签署。 Summary: 添加电子合同签署方手动盖章签署区 """ UtilClient.validate_model(request) return twc_models.CreateContractHandsignfieldResponse().from_map( self.do_request('1.0', 'twc.notary.contract.handsignfield.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_handsignfield_ex_async( self, request: twc_models.CreateContractHandsignfieldRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractHandsignfieldResponse: """ Description: 向指定流程中创建签署区,每个签署区视为一个任务,系统会自动按照流程流转。 签署区的添加必须在签署文档添加之后, 签署区信息内部包含签署文档信息。签署区创建完成,流程开启后,通过获取签署地址接口,可获取用户手动签署链接,通过此链接可打开文件签署页面,进行人工确认签署。 Summary: 添加电子合同签署方手动盖章签署区 """ UtilClient.validate_model(request) return twc_models.CreateContractHandsignfieldResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.handsignfield.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_contract_signurl( self, request: twc_models.GetContractSignurlRequest, ) -> twc_models.GetContractSignurlResponse: """ Description: 流程开启后,获取指定签署人的签署链接地址,如仅传入签署人账号id,则获取的签署任务链接仅包含本人的签署任务;如同时签署人账号id+机构id,则获取的签署任务链接包含机构与个人的签署任务;organizeId传入0,则返回的任务链接包含签署人“本人+所有代签机构”的签署任务。 Summary: 获取签署地址 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_contract_signurl_ex(request, headers, runtime) async def get_contract_signurl_async( self, request: twc_models.GetContractSignurlRequest, ) -> twc_models.GetContractSignurlResponse: """ Description: 流程开启后,获取指定签署人的签署链接地址,如仅传入签署人账号id,则获取的签署任务链接仅包含本人的签署任务;如同时签署人账号id+机构id,则获取的签署任务链接包含机构与个人的签署任务;organizeId传入0,则返回的任务链接包含签署人“本人+所有代签机构”的签署任务。 Summary: 获取签署地址 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_contract_signurl_ex_async(request, headers, runtime) def get_contract_signurl_ex( self, request: twc_models.GetContractSignurlRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetContractSignurlResponse: """ Description: 流程开启后,获取指定签署人的签署链接地址,如仅传入签署人账号id,则获取的签署任务链接仅包含本人的签署任务;如同时签署人账号id+机构id,则获取的签署任务链接包含机构与个人的签署任务;organizeId传入0,则返回的任务链接包含签署人“本人+所有代签机构”的签署任务。 Summary: 获取签署地址 """ UtilClient.validate_model(request) return twc_models.GetContractSignurlResponse().from_map( self.do_request('1.0', 'twc.notary.contract.signurl.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_contract_signurl_ex_async( self, request: twc_models.GetContractSignurlRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetContractSignurlResponse: """ Description: 流程开启后,获取指定签署人的签署链接地址,如仅传入签署人账号id,则获取的签署任务链接仅包含本人的签署任务;如同时签署人账号id+机构id,则获取的签署任务链接包含机构与个人的签署任务;organizeId传入0,则返回的任务链接包含签署人“本人+所有代签机构”的签署任务。 Summary: 获取签署地址 """ UtilClient.validate_model(request) return twc_models.GetContractSignurlResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.signurl.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_withhold_agreement( self, request: twc_models.CreateWithholdAgreementRequest, ) -> twc_models.CreateWithholdAgreementResponse: """ Description: 可信付代扣规则内容创建 Summary: 可信付代扣规则内容创建 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_withhold_agreement_ex(request, headers, runtime) async def create_withhold_agreement_async( self, request: twc_models.CreateWithholdAgreementRequest, ) -> twc_models.CreateWithholdAgreementResponse: """ Description: 可信付代扣规则内容创建 Summary: 可信付代扣规则内容创建 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_withhold_agreement_ex_async(request, headers, runtime) def create_withhold_agreement_ex( self, request: twc_models.CreateWithholdAgreementRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateWithholdAgreementResponse: """ Description: 可信付代扣规则内容创建 Summary: 可信付代扣规则内容创建 """ UtilClient.validate_model(request) return twc_models.CreateWithholdAgreementResponse().from_map( self.do_request('1.0', 'twc.notary.withhold.agreement.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_withhold_agreement_ex_async( self, request: twc_models.CreateWithholdAgreementRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateWithholdAgreementResponse: """ Description: 可信付代扣规则内容创建 Summary: 可信付代扣规则内容创建 """ UtilClient.validate_model(request) return twc_models.CreateWithholdAgreementResponse().from_map( await self.do_request_async('1.0', 'twc.notary.withhold.agreement.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_withhold_agreement( self, request: twc_models.QueryWithholdAgreementRequest, ) -> twc_models.QueryWithholdAgreementResponse: """ Description: 查询消金代扣协议 Summary: 查询可信付代扣协议内容 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_withhold_agreement_ex(request, headers, runtime) async def query_withhold_agreement_async( self, request: twc_models.QueryWithholdAgreementRequest, ) -> twc_models.QueryWithholdAgreementResponse: """ Description: 查询消金代扣协议 Summary: 查询可信付代扣协议内容 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_withhold_agreement_ex_async(request, headers, runtime) def query_withhold_agreement_ex( self, request: twc_models.QueryWithholdAgreementRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryWithholdAgreementResponse: """ Description: 查询消金代扣协议 Summary: 查询可信付代扣协议内容 """ UtilClient.validate_model(request) return twc_models.QueryWithholdAgreementResponse().from_map( self.do_request('1.0', 'twc.notary.withhold.agreement.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_withhold_agreement_ex_async( self, request: twc_models.QueryWithholdAgreementRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryWithholdAgreementResponse: """ Description: 查询消金代扣协议 Summary: 查询可信付代扣协议内容 """ UtilClient.validate_model(request) return twc_models.QueryWithholdAgreementResponse().from_map( await self.do_request_async('1.0', 'twc.notary.withhold.agreement.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_withhold_agreementurl( self, request: twc_models.QueryWithholdAgreementurlRequest, ) -> twc_models.QueryWithholdAgreementurlResponse: """ Description: 查询可信付协议的入口 Summary: 查询可信付协议的入口 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_withhold_agreementurl_ex(request, headers, runtime) async def query_withhold_agreementurl_async( self, request: twc_models.QueryWithholdAgreementurlRequest, ) -> twc_models.QueryWithholdAgreementurlResponse: """ Description: 查询可信付协议的入口 Summary: 查询可信付协议的入口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_withhold_agreementurl_ex_async(request, headers, runtime) def query_withhold_agreementurl_ex( self, request: twc_models.QueryWithholdAgreementurlRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryWithholdAgreementurlResponse: """ Description: 查询可信付协议的入口 Summary: 查询可信付协议的入口 """ UtilClient.validate_model(request) return twc_models.QueryWithholdAgreementurlResponse().from_map( self.do_request('1.0', 'twc.notary.withhold.agreementurl.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_withhold_agreementurl_ex_async( self, request: twc_models.QueryWithholdAgreementurlRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryWithholdAgreementurlResponse: """ Description: 查询可信付协议的入口 Summary: 查询可信付协议的入口 """ UtilClient.validate_model(request) return twc_models.QueryWithholdAgreementurlResponse().from_map( await self.do_request_async('1.0', 'twc.notary.withhold.agreementurl.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_withhold_overduetime( self, request: twc_models.CreateWithholdOverduetimeRequest, ) -> twc_models.CreateWithholdOverduetimeResponse: """ Description: 后台录入商家的产品的逾期日 Summary: 后台录入商家的产品的逾期日 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_withhold_overduetime_ex(request, headers, runtime) async def create_withhold_overduetime_async( self, request: twc_models.CreateWithholdOverduetimeRequest, ) -> twc_models.CreateWithholdOverduetimeResponse: """ Description: 后台录入商家的产品的逾期日 Summary: 后台录入商家的产品的逾期日 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_withhold_overduetime_ex_async(request, headers, runtime) def create_withhold_overduetime_ex( self, request: twc_models.CreateWithholdOverduetimeRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateWithholdOverduetimeResponse: """ Description: 后台录入商家的产品的逾期日 Summary: 后台录入商家的产品的逾期日 """ UtilClient.validate_model(request) return twc_models.CreateWithholdOverduetimeResponse().from_map( self.do_request('1.0', 'twc.notary.withhold.overduetime.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_withhold_overduetime_ex_async( self, request: twc_models.CreateWithholdOverduetimeRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateWithholdOverduetimeResponse: """ Description: 后台录入商家的产品的逾期日 Summary: 后台录入商家的产品的逾期日 """ UtilClient.validate_model(request) return twc_models.CreateWithholdOverduetimeResponse().from_map( await self.do_request_async('1.0', 'twc.notary.withhold.overduetime.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def send_withhold_deduct( self, request: twc_models.SendWithholdDeductRequest, ) -> twc_models.SendWithholdDeductResponse: """ Description: 可信付代扣的扣费请求 Summary: 发送代扣请求 """ runtime = util_models.RuntimeOptions() headers = {} return self.send_withhold_deduct_ex(request, headers, runtime) async def send_withhold_deduct_async( self, request: twc_models.SendWithholdDeductRequest, ) -> twc_models.SendWithholdDeductResponse: """ Description: 可信付代扣的扣费请求 Summary: 发送代扣请求 """ runtime = util_models.RuntimeOptions() headers = {} return await self.send_withhold_deduct_ex_async(request, headers, runtime) def send_withhold_deduct_ex( self, request: twc_models.SendWithholdDeductRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SendWithholdDeductResponse: """ Description: 可信付代扣的扣费请求 Summary: 发送代扣请求 """ UtilClient.validate_model(request) return twc_models.SendWithholdDeductResponse().from_map( self.do_request('1.0', 'twc.notary.withhold.deduct.send', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def send_withhold_deduct_ex_async( self, request: twc_models.SendWithholdDeductRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SendWithholdDeductResponse: """ Description: 可信付代扣的扣费请求 Summary: 发送代扣请求 """ UtilClient.validate_model(request) return twc_models.SendWithholdDeductResponse().from_map( await self.do_request_async('1.0', 'twc.notary.withhold.deduct.send', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_withhold_payresult( self, request: twc_models.QueryWithholdPayresultRequest, ) -> twc_models.QueryWithholdPayresultResponse: """ Description: 可信付代扣结果查询 Summary: 可信付代扣结果查询 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_withhold_payresult_ex(request, headers, runtime) async def query_withhold_payresult_async( self, request: twc_models.QueryWithholdPayresultRequest, ) -> twc_models.QueryWithholdPayresultResponse: """ Description: 可信付代扣结果查询 Summary: 可信付代扣结果查询 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_withhold_payresult_ex_async(request, headers, runtime) def query_withhold_payresult_ex( self, request: twc_models.QueryWithholdPayresultRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryWithholdPayresultResponse: """ Description: 可信付代扣结果查询 Summary: 可信付代扣结果查询 """ UtilClient.validate_model(request) return twc_models.QueryWithholdPayresultResponse().from_map( self.do_request('1.0', 'twc.notary.withhold.payresult.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_withhold_payresult_ex_async( self, request: twc_models.QueryWithholdPayresultRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryWithholdPayresultResponse: """ Description: 可信付代扣结果查询 Summary: 可信付代扣结果查询 """ UtilClient.validate_model(request) return twc_models.QueryWithholdPayresultResponse().from_map( await self.do_request_async('1.0', 'twc.notary.withhold.payresult.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def send_withhold_refund( self, request: twc_models.SendWithholdRefundRequest, ) -> twc_models.SendWithholdRefundResponse: """ Description: 可信付退款请求 Summary: 可信付退款请求 """ runtime = util_models.RuntimeOptions() headers = {} return self.send_withhold_refund_ex(request, headers, runtime) async def send_withhold_refund_async( self, request: twc_models.SendWithholdRefundRequest, ) -> twc_models.SendWithholdRefundResponse: """ Description: 可信付退款请求 Summary: 可信付退款请求 """ runtime = util_models.RuntimeOptions() headers = {} return await self.send_withhold_refund_ex_async(request, headers, runtime) def send_withhold_refund_ex( self, request: twc_models.SendWithholdRefundRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SendWithholdRefundResponse: """ Description: 可信付退款请求 Summary: 可信付退款请求 """ UtilClient.validate_model(request) return twc_models.SendWithholdRefundResponse().from_map( self.do_request('1.0', 'twc.notary.withhold.refund.send', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def send_withhold_refund_ex_async( self, request: twc_models.SendWithholdRefundRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SendWithholdRefundResponse: """ Description: 可信付退款请求 Summary: 可信付退款请求 """ UtilClient.validate_model(request) return twc_models.SendWithholdRefundResponse().from_map( await self.do_request_async('1.0', 'twc.notary.withhold.refund.send', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def send_contract_invitation( self, request: twc_models.SendContractInvitationRequest, ) -> twc_models.SendContractInvitationResponse: """ Description: 创建邀请任务,被邀请人收到通知后需要注册并完成实名认证方可开通电子签名服务。 Summary: 创建注册邀请任务 """ runtime = util_models.RuntimeOptions() headers = {} return self.send_contract_invitation_ex(request, headers, runtime) async def send_contract_invitation_async( self, request: twc_models.SendContractInvitationRequest, ) -> twc_models.SendContractInvitationResponse: """ Description: 创建邀请任务,被邀请人收到通知后需要注册并完成实名认证方可开通电子签名服务。 Summary: 创建注册邀请任务 """ runtime = util_models.RuntimeOptions() headers = {} return await self.send_contract_invitation_ex_async(request, headers, runtime) def send_contract_invitation_ex( self, request: twc_models.SendContractInvitationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SendContractInvitationResponse: """ Description: 创建邀请任务,被邀请人收到通知后需要注册并完成实名认证方可开通电子签名服务。 Summary: 创建注册邀请任务 """ UtilClient.validate_model(request) return twc_models.SendContractInvitationResponse().from_map( self.do_request('1.0', 'twc.notary.contract.invitation.send', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def send_contract_invitation_ex_async( self, request: twc_models.SendContractInvitationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SendContractInvitationResponse: """ Description: 创建邀请任务,被邀请人收到通知后需要注册并完成实名认证方可开通电子签名服务。 Summary: 创建注册邀请任务 """ UtilClient.validate_model(request) return twc_models.SendContractInvitationResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.invitation.send', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def list_contract_payrule( self, request: twc_models.ListContractPayruleRequest, ) -> twc_models.ListContractPayruleResponse: """ Description: 查询代扣规则 Summary: 查询代扣规则 """ runtime = util_models.RuntimeOptions() headers = {} return self.list_contract_payrule_ex(request, headers, runtime) async def list_contract_payrule_async( self, request: twc_models.ListContractPayruleRequest, ) -> twc_models.ListContractPayruleResponse: """ Description: 查询代扣规则 Summary: 查询代扣规则 """ runtime = util_models.RuntimeOptions() headers = {} return await self.list_contract_payrule_ex_async(request, headers, runtime) def list_contract_payrule_ex( self, request: twc_models.ListContractPayruleRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ListContractPayruleResponse: """ Description: 查询代扣规则 Summary: 查询代扣规则 """ UtilClient.validate_model(request) return twc_models.ListContractPayruleResponse().from_map( self.do_request('1.0', 'twc.notary.contract.payrule.list', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def list_contract_payrule_ex_async( self, request: twc_models.ListContractPayruleRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ListContractPayruleResponse: """ Description: 查询代扣规则 Summary: 查询代扣规则 """ UtilClient.validate_model(request) return twc_models.ListContractPayruleResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.payrule.list', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_withhold_qrcode( self, request: twc_models.CreateWithholdQrcodeRequest, ) -> twc_models.CreateWithholdQrcodeResponse: """ Description: 获取可信付免签协议的二维码 Summary: 获取可信付免签协议的二维码 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_withhold_qrcode_ex(request, headers, runtime) async def create_withhold_qrcode_async( self, request: twc_models.CreateWithholdQrcodeRequest, ) -> twc_models.CreateWithholdQrcodeResponse: """ Description: 获取可信付免签协议的二维码 Summary: 获取可信付免签协议的二维码 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_withhold_qrcode_ex_async(request, headers, runtime) def create_withhold_qrcode_ex( self, request: twc_models.CreateWithholdQrcodeRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateWithholdQrcodeResponse: """ Description: 获取可信付免签协议的二维码 Summary: 获取可信付免签协议的二维码 """ UtilClient.validate_model(request) return twc_models.CreateWithholdQrcodeResponse().from_map( self.do_request('1.0', 'twc.notary.withhold.qrcode.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_withhold_qrcode_ex_async( self, request: twc_models.CreateWithholdQrcodeRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateWithholdQrcodeResponse: """ Description: 获取可信付免签协议的二维码 Summary: 获取可信付免签协议的二维码 """ UtilClient.validate_model(request) return twc_models.CreateWithholdQrcodeResponse().from_map( await self.do_request_async('1.0', 'twc.notary.withhold.qrcode.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def cancel_contract_paysingletrade( self, request: twc_models.CancelContractPaysingletradeRequest, ) -> twc_models.CancelContractPaysingletradeResponse: """ Description: 取消某一期的代扣规则 Summary: 取消某一期的代扣规则 """ runtime = util_models.RuntimeOptions() headers = {} return self.cancel_contract_paysingletrade_ex(request, headers, runtime) async def cancel_contract_paysingletrade_async( self, request: twc_models.CancelContractPaysingletradeRequest, ) -> twc_models.CancelContractPaysingletradeResponse: """ Description: 取消某一期的代扣规则 Summary: 取消某一期的代扣规则 """ runtime = util_models.RuntimeOptions() headers = {} return await self.cancel_contract_paysingletrade_ex_async(request, headers, runtime) def cancel_contract_paysingletrade_ex( self, request: twc_models.CancelContractPaysingletradeRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CancelContractPaysingletradeResponse: """ Description: 取消某一期的代扣规则 Summary: 取消某一期的代扣规则 """ UtilClient.validate_model(request) return twc_models.CancelContractPaysingletradeResponse().from_map( self.do_request('1.0', 'twc.notary.contract.paysingletrade.cancel', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def cancel_contract_paysingletrade_ex_async( self, request: twc_models.CancelContractPaysingletradeRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CancelContractPaysingletradeResponse: """ Description: 取消某一期的代扣规则 Summary: 取消某一期的代扣规则 """ UtilClient.validate_model(request) return twc_models.CancelContractPaysingletradeResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.paysingletrade.cancel', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def apply_contract_callbackkey( self, request: twc_models.ApplyContractCallbackkeyRequest, ) -> twc_models.ApplyContractCallbackkeyResponse: """ Description: 使用区块链合同回调服务,需要申请加签时使用的key。该key每个平台方对应一个,不可变更,多次申请结果幂等。 Summary: 申请区块链合同回调加签key """ runtime = util_models.RuntimeOptions() headers = {} return self.apply_contract_callbackkey_ex(request, headers, runtime) async def apply_contract_callbackkey_async( self, request: twc_models.ApplyContractCallbackkeyRequest, ) -> twc_models.ApplyContractCallbackkeyResponse: """ Description: 使用区块链合同回调服务,需要申请加签时使用的key。该key每个平台方对应一个,不可变更,多次申请结果幂等。 Summary: 申请区块链合同回调加签key """ runtime = util_models.RuntimeOptions() headers = {} return await self.apply_contract_callbackkey_ex_async(request, headers, runtime) def apply_contract_callbackkey_ex( self, request: twc_models.ApplyContractCallbackkeyRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ApplyContractCallbackkeyResponse: """ Description: 使用区块链合同回调服务,需要申请加签时使用的key。该key每个平台方对应一个,不可变更,多次申请结果幂等。 Summary: 申请区块链合同回调加签key """ UtilClient.validate_model(request) return twc_models.ApplyContractCallbackkeyResponse().from_map( self.do_request('1.0', 'twc.notary.contract.callbackkey.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def apply_contract_callbackkey_ex_async( self, request: twc_models.ApplyContractCallbackkeyRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ApplyContractCallbackkeyResponse: """ Description: 使用区块链合同回调服务,需要申请加签时使用的key。该key每个平台方对应一个,不可变更,多次申请结果幂等。 Summary: 申请区块链合同回调加签key """ UtilClient.validate_model(request) return twc_models.ApplyContractCallbackkeyResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.callbackkey.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_onestepflow( self, request: twc_models.CreateContractOnestepflowRequest, ) -> twc_models.CreateContractOnestepflowResponse: """ Description: 快速创建签署流程,完成添加待签文档、流程基本信息、签署方,支持自动开启、自动归档。 Summary: 一步创建签署流程接口 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_onestepflow_ex(request, headers, runtime) async def create_contract_onestepflow_async( self, request: twc_models.CreateContractOnestepflowRequest, ) -> twc_models.CreateContractOnestepflowResponse: """ Description: 快速创建签署流程,完成添加待签文档、流程基本信息、签署方,支持自动开启、自动归档。 Summary: 一步创建签署流程接口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_onestepflow_ex_async(request, headers, runtime) def create_contract_onestepflow_ex( self, request: twc_models.CreateContractOnestepflowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractOnestepflowResponse: """ Description: 快速创建签署流程,完成添加待签文档、流程基本信息、签署方,支持自动开启、自动归档。 Summary: 一步创建签署流程接口 """ UtilClient.validate_model(request) return twc_models.CreateContractOnestepflowResponse().from_map( self.do_request('1.0', 'twc.notary.contract.onestepflow.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_onestepflow_ex_async( self, request: twc_models.CreateContractOnestepflowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractOnestepflowResponse: """ Description: 快速创建签署流程,完成添加待签文档、流程基本信息、签署方,支持自动开启、自动归档。 Summary: 一步创建签署流程接口 """ UtilClient.validate_model(request) return twc_models.CreateContractOnestepflowResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.onestepflow.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_notary( self, request: twc_models.QueryContractNotaryRequest, ) -> twc_models.QueryContractNotaryResponse: """ Description: 通过流程ID查询合同存证信息 Summary: 查询合同存证信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_notary_ex(request, headers, runtime) async def query_contract_notary_async( self, request: twc_models.QueryContractNotaryRequest, ) -> twc_models.QueryContractNotaryResponse: """ Description: 通过流程ID查询合同存证信息 Summary: 查询合同存证信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_notary_ex_async(request, headers, runtime) def query_contract_notary_ex( self, request: twc_models.QueryContractNotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractNotaryResponse: """ Description: 通过流程ID查询合同存证信息 Summary: 查询合同存证信息 """ UtilClient.validate_model(request) return twc_models.QueryContractNotaryResponse().from_map( self.do_request('1.0', 'twc.notary.contract.notary.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_notary_ex_async( self, request: twc_models.QueryContractNotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractNotaryResponse: """ Description: 通过流程ID查询合同存证信息 Summary: 查询合同存证信息 """ UtilClient.validate_model(request) return twc_models.QueryContractNotaryResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.notary.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_ecocontract_trans( self, request: twc_models.CreateEcocontractTransRequest, ) -> twc_models.CreateEcocontractTransResponse: """ Description: 获取合同存证事务ID Summary: 获取合同存证事务ID """ runtime = util_models.RuntimeOptions() headers = {} return self.create_ecocontract_trans_ex(request, headers, runtime) async def create_ecocontract_trans_async( self, request: twc_models.CreateEcocontractTransRequest, ) -> twc_models.CreateEcocontractTransResponse: """ Description: 获取合同存证事务ID Summary: 获取合同存证事务ID """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_ecocontract_trans_ex_async(request, headers, runtime) def create_ecocontract_trans_ex( self, request: twc_models.CreateEcocontractTransRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateEcocontractTransResponse: """ Description: 获取合同存证事务ID Summary: 获取合同存证事务ID """ UtilClient.validate_model(request) return twc_models.CreateEcocontractTransResponse().from_map( self.do_request('1.0', 'twc.notary.ecocontract.trans.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_ecocontract_trans_ex_async( self, request: twc_models.CreateEcocontractTransRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateEcocontractTransResponse: """ Description: 获取合同存证事务ID Summary: 获取合同存证事务ID """ UtilClient.validate_model(request) return twc_models.CreateEcocontractTransResponse().from_map( await self.do_request_async('1.0', 'twc.notary.ecocontract.trans.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_ecocontract_text( self, request: twc_models.CreateEcocontractTextRequest, ) -> twc_models.CreateEcocontractTextResponse: """ Description: 合同文本存证 Summary: 合同文本存证 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_ecocontract_text_ex(request, headers, runtime) async def create_ecocontract_text_async( self, request: twc_models.CreateEcocontractTextRequest, ) -> twc_models.CreateEcocontractTextResponse: """ Description: 合同文本存证 Summary: 合同文本存证 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_ecocontract_text_ex_async(request, headers, runtime) def create_ecocontract_text_ex( self, request: twc_models.CreateEcocontractTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateEcocontractTextResponse: """ Description: 合同文本存证 Summary: 合同文本存证 """ UtilClient.validate_model(request) return twc_models.CreateEcocontractTextResponse().from_map( self.do_request('1.0', 'twc.notary.ecocontract.text.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_ecocontract_text_ex_async( self, request: twc_models.CreateEcocontractTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateEcocontractTextResponse: """ Description: 合同文本存证 Summary: 合同文本存证 """ UtilClient.validate_model(request) return twc_models.CreateEcocontractTextResponse().from_map( await self.do_request_async('1.0', 'twc.notary.ecocontract.text.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_wordsposition( self, request: twc_models.QueryContractWordspositionRequest, ) -> twc_models.QueryContractWordspositionResponse: """ Description: 搜索关键字坐标,以关键字左下角为原点去查询坐标 Summary: 搜索关键字坐标 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_wordsposition_ex(request, headers, runtime) async def query_contract_wordsposition_async( self, request: twc_models.QueryContractWordspositionRequest, ) -> twc_models.QueryContractWordspositionResponse: """ Description: 搜索关键字坐标,以关键字左下角为原点去查询坐标 Summary: 搜索关键字坐标 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_wordsposition_ex_async(request, headers, runtime) def query_contract_wordsposition_ex( self, request: twc_models.QueryContractWordspositionRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractWordspositionResponse: """ Description: 搜索关键字坐标,以关键字左下角为原点去查询坐标 Summary: 搜索关键字坐标 """ UtilClient.validate_model(request) return twc_models.QueryContractWordspositionResponse().from_map( self.do_request('1.0', 'twc.notary.contract.wordsposition.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_wordsposition_ex_async( self, request: twc_models.QueryContractWordspositionRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractWordspositionResponse: """ Description: 搜索关键字坐标,以关键字左下角为原点去查询坐标 Summary: 搜索关键字坐标 """ UtilClient.validate_model(request) return twc_models.QueryContractWordspositionResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.wordsposition.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def delete_contract_signer( self, request: twc_models.DeleteContractSignerRequest, ) -> twc_models.DeleteContractSignerResponse: """ Description: 执行签署人删除逻辑 Summary: 删除签署人 """ runtime = util_models.RuntimeOptions() headers = {} return self.delete_contract_signer_ex(request, headers, runtime) async def delete_contract_signer_async( self, request: twc_models.DeleteContractSignerRequest, ) -> twc_models.DeleteContractSignerResponse: """ Description: 执行签署人删除逻辑 Summary: 删除签署人 """ runtime = util_models.RuntimeOptions() headers = {} return await self.delete_contract_signer_ex_async(request, headers, runtime) def delete_contract_signer_ex( self, request: twc_models.DeleteContractSignerRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.DeleteContractSignerResponse: """ Description: 执行签署人删除逻辑 Summary: 删除签署人 """ UtilClient.validate_model(request) return twc_models.DeleteContractSignerResponse().from_map( self.do_request('1.0', 'twc.notary.contract.signer.delete', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def delete_contract_signer_ex_async( self, request: twc_models.DeleteContractSignerRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.DeleteContractSignerResponse: """ Description: 执行签署人删除逻辑 Summary: 删除签署人 """ UtilClient.validate_model(request) return twc_models.DeleteContractSignerResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.signer.delete', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_contract_certificate( self, request: twc_models.GetContractCertificateRequest, ) -> twc_models.GetContractCertificateResponse: """ Description: 获取区块链合同存证证明 Summary: 获取区块链合同存证证明 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_contract_certificate_ex(request, headers, runtime) async def get_contract_certificate_async( self, request: twc_models.GetContractCertificateRequest, ) -> twc_models.GetContractCertificateResponse: """ Description: 获取区块链合同存证证明 Summary: 获取区块链合同存证证明 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_contract_certificate_ex_async(request, headers, runtime) def get_contract_certificate_ex( self, request: twc_models.GetContractCertificateRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetContractCertificateResponse: """ Description: 获取区块链合同存证证明 Summary: 获取区块链合同存证证明 """ UtilClient.validate_model(request) return twc_models.GetContractCertificateResponse().from_map( self.do_request('1.0', 'twc.notary.contract.certificate.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_contract_certificate_ex_async( self, request: twc_models.GetContractCertificateRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetContractCertificateResponse: """ Description: 获取区块链合同存证证明 Summary: 获取区块链合同存证证明 """ UtilClient.validate_model(request) return twc_models.GetContractCertificateResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.certificate.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_signfieldsealid( self, request: twc_models.QueryContractSignfieldsealidRequest, ) -> twc_models.QueryContractSignfieldsealidResponse: """ Description: 已归档的合同,支持根据合同流程签署区查询已使用的印章id Summary: 根据合同流程签署区查询已使用的印章id """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_signfieldsealid_ex(request, headers, runtime) async def query_contract_signfieldsealid_async( self, request: twc_models.QueryContractSignfieldsealidRequest, ) -> twc_models.QueryContractSignfieldsealidResponse: """ Description: 已归档的合同,支持根据合同流程签署区查询已使用的印章id Summary: 根据合同流程签署区查询已使用的印章id """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_signfieldsealid_ex_async(request, headers, runtime) def query_contract_signfieldsealid_ex( self, request: twc_models.QueryContractSignfieldsealidRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractSignfieldsealidResponse: """ Description: 已归档的合同,支持根据合同流程签署区查询已使用的印章id Summary: 根据合同流程签署区查询已使用的印章id """ UtilClient.validate_model(request) return twc_models.QueryContractSignfieldsealidResponse().from_map( self.do_request('1.0', 'twc.notary.contract.signfieldsealid.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_signfieldsealid_ex_async( self, request: twc_models.QueryContractSignfieldsealidRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractSignfieldsealidResponse: """ Description: 已归档的合同,支持根据合同流程签署区查询已使用的印章id Summary: 根据合同流程签署区查询已使用的印章id """ UtilClient.validate_model(request) return twc_models.QueryContractSignfieldsealidResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.signfieldsealid.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def notify_contract_signer( self, request: twc_models.NotifyContractSignerRequest, ) -> twc_models.NotifyContractSignerResponse: """ Description: 本接口功能默认不开启,如有需求请联系技术支持。添加手动签署区,并启动签署流程之后,触发通知,提醒签署方执行签署。通知方式以创建流程时的配置为准(目前仅支持短信)。 Summary: 通知签署方执行合同签署 """ runtime = util_models.RuntimeOptions() headers = {} return self.notify_contract_signer_ex(request, headers, runtime) async def notify_contract_signer_async( self, request: twc_models.NotifyContractSignerRequest, ) -> twc_models.NotifyContractSignerResponse: """ Description: 本接口功能默认不开启,如有需求请联系技术支持。添加手动签署区,并启动签署流程之后,触发通知,提醒签署方执行签署。通知方式以创建流程时的配置为准(目前仅支持短信)。 Summary: 通知签署方执行合同签署 """ runtime = util_models.RuntimeOptions() headers = {} return await self.notify_contract_signer_ex_async(request, headers, runtime) def notify_contract_signer_ex( self, request: twc_models.NotifyContractSignerRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.NotifyContractSignerResponse: """ Description: 本接口功能默认不开启,如有需求请联系技术支持。添加手动签署区,并启动签署流程之后,触发通知,提醒签署方执行签署。通知方式以创建流程时的配置为准(目前仅支持短信)。 Summary: 通知签署方执行合同签署 """ UtilClient.validate_model(request) return twc_models.NotifyContractSignerResponse().from_map( self.do_request('1.0', 'twc.notary.contract.signer.notify', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def notify_contract_signer_ex_async( self, request: twc_models.NotifyContractSignerRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.NotifyContractSignerResponse: """ Description: 本接口功能默认不开启,如有需求请联系技术支持。添加手动签署区,并启动签署流程之后,触发通知,提醒签署方执行签署。通知方式以创建流程时的配置为准(目前仅支持短信)。 Summary: 通知签署方执行合同签署 """ UtilClient.validate_model(request) return twc_models.NotifyContractSignerResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.signer.notify', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def update_contract_platform( self, request: twc_models.UpdateContractPlatformRequest, ) -> twc_models.UpdateContractPlatformResponse: """ Description: 通过配置白名单,临时允许修改证件号/名称等所有字段以及经办人的信息,修改后从白名单中去除 Summary: 修改平台方注册信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.update_contract_platform_ex(request, headers, runtime) async def update_contract_platform_async( self, request: twc_models.UpdateContractPlatformRequest, ) -> twc_models.UpdateContractPlatformResponse: """ Description: 通过配置白名单,临时允许修改证件号/名称等所有字段以及经办人的信息,修改后从白名单中去除 Summary: 修改平台方注册信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.update_contract_platform_ex_async(request, headers, runtime) def update_contract_platform_ex( self, request: twc_models.UpdateContractPlatformRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateContractPlatformResponse: """ Description: 通过配置白名单,临时允许修改证件号/名称等所有字段以及经办人的信息,修改后从白名单中去除 Summary: 修改平台方注册信息 """ UtilClient.validate_model(request) return twc_models.UpdateContractPlatformResponse().from_map( self.do_request('1.0', 'twc.notary.contract.platform.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def update_contract_platform_ex_async( self, request: twc_models.UpdateContractPlatformRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateContractPlatformResponse: """ Description: 通过配置白名单,临时允许修改证件号/名称等所有字段以及经办人的信息,修改后从白名单中去除 Summary: 修改平台方注册信息 """ UtilClient.validate_model(request) return twc_models.UpdateContractPlatformResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.platform.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def update_contract_user( self, request: twc_models.UpdateContractUserRequest, ) -> twc_models.UpdateContractUserResponse: """ Description: 个人的注册信息中证件信息为空时允许修改姓名、证件等各项信息,如果不为空,则不允许修改 Summary: 修改用户注册信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.update_contract_user_ex(request, headers, runtime) async def update_contract_user_async( self, request: twc_models.UpdateContractUserRequest, ) -> twc_models.UpdateContractUserResponse: """ Description: 个人的注册信息中证件信息为空时允许修改姓名、证件等各项信息,如果不为空,则不允许修改 Summary: 修改用户注册信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.update_contract_user_ex_async(request, headers, runtime) def update_contract_user_ex( self, request: twc_models.UpdateContractUserRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateContractUserResponse: """ Description: 个人的注册信息中证件信息为空时允许修改姓名、证件等各项信息,如果不为空,则不允许修改 Summary: 修改用户注册信息 """ UtilClient.validate_model(request) return twc_models.UpdateContractUserResponse().from_map( self.do_request('1.0', 'twc.notary.contract.user.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def update_contract_user_ex_async( self, request: twc_models.UpdateContractUserRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateContractUserResponse: """ Description: 个人的注册信息中证件信息为空时允许修改姓名、证件等各项信息,如果不为空,则不允许修改 Summary: 修改用户注册信息 """ UtilClient.validate_model(request) return twc_models.UpdateContractUserResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.user.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def update_contract_organization( self, request: twc_models.UpdateContractOrganizationRequest, ) -> twc_models.UpdateContractOrganizationResponse: """ Description: 机构的注册信息中证件信息为空时允许修改机构名、证件等各项信息,但不允许修改经办人信息,如果不为空,则无法修改 Summary: 修改机构用户注册信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.update_contract_organization_ex(request, headers, runtime) async def update_contract_organization_async( self, request: twc_models.UpdateContractOrganizationRequest, ) -> twc_models.UpdateContractOrganizationResponse: """ Description: 机构的注册信息中证件信息为空时允许修改机构名、证件等各项信息,但不允许修改经办人信息,如果不为空,则无法修改 Summary: 修改机构用户注册信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.update_contract_organization_ex_async(request, headers, runtime) def update_contract_organization_ex( self, request: twc_models.UpdateContractOrganizationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateContractOrganizationResponse: """ Description: 机构的注册信息中证件信息为空时允许修改机构名、证件等各项信息,但不允许修改经办人信息,如果不为空,则无法修改 Summary: 修改机构用户注册信息 """ UtilClient.validate_model(request) return twc_models.UpdateContractOrganizationResponse().from_map( self.do_request('1.0', 'twc.notary.contract.organization.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def update_contract_organization_ex_async( self, request: twc_models.UpdateContractOrganizationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateContractOrganizationResponse: """ Description: 机构的注册信息中证件信息为空时允许修改机构名、证件等各项信息,但不允许修改经办人信息,如果不为空,则无法修改 Summary: 修改机构用户注册信息 """ UtilClient.validate_model(request) return twc_models.UpdateContractOrganizationResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.organization.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def apply_contract_merchant( self, request: twc_models.ApplyContractMerchantRequest, ) -> twc_models.ApplyContractMerchantResponse: """ Description: 商户入驻直付通新接口,通过此接口创建的商户,签约模式默认走单独签约授权模式(即不同商户都需要进行单独的代扣签约授权)。 Summary: 商户入驻直付通新接口 """ runtime = util_models.RuntimeOptions() headers = {} return self.apply_contract_merchant_ex(request, headers, runtime) async def apply_contract_merchant_async( self, request: twc_models.ApplyContractMerchantRequest, ) -> twc_models.ApplyContractMerchantResponse: """ Description: 商户入驻直付通新接口,通过此接口创建的商户,签约模式默认走单独签约授权模式(即不同商户都需要进行单独的代扣签约授权)。 Summary: 商户入驻直付通新接口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.apply_contract_merchant_ex_async(request, headers, runtime) def apply_contract_merchant_ex( self, request: twc_models.ApplyContractMerchantRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ApplyContractMerchantResponse: """ Description: 商户入驻直付通新接口,通过此接口创建的商户,签约模式默认走单独签约授权模式(即不同商户都需要进行单独的代扣签约授权)。 Summary: 商户入驻直付通新接口 """ UtilClient.validate_model(request) return twc_models.ApplyContractMerchantResponse().from_map( self.do_request('1.0', 'twc.notary.contract.merchant.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def apply_contract_merchant_ex_async( self, request: twc_models.ApplyContractMerchantRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ApplyContractMerchantResponse: """ Description: 商户入驻直付通新接口,通过此接口创建的商户,签约模式默认走单独签约授权模式(即不同商户都需要进行单独的代扣签约授权)。 Summary: 商户入驻直付通新接口 """ UtilClient.validate_model(request) return twc_models.ApplyContractMerchantResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.merchant.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def confirm_contract_merchant( self, request: twc_models.ConfirmContractMerchantRequest, ) -> twc_models.ConfirmContractMerchantResponse: """ Description: 直付通商户入驻确认(确认成功则表明入驻成功) Summary: 直付通商户入驻确认 """ runtime = util_models.RuntimeOptions() headers = {} return self.confirm_contract_merchant_ex(request, headers, runtime) async def confirm_contract_merchant_async( self, request: twc_models.ConfirmContractMerchantRequest, ) -> twc_models.ConfirmContractMerchantResponse: """ Description: 直付通商户入驻确认(确认成功则表明入驻成功) Summary: 直付通商户入驻确认 """ runtime = util_models.RuntimeOptions() headers = {} return await self.confirm_contract_merchant_ex_async(request, headers, runtime) def confirm_contract_merchant_ex( self, request: twc_models.ConfirmContractMerchantRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ConfirmContractMerchantResponse: """ Description: 直付通商户入驻确认(确认成功则表明入驻成功) Summary: 直付通商户入驻确认 """ UtilClient.validate_model(request) return twc_models.ConfirmContractMerchantResponse().from_map( self.do_request('1.0', 'twc.notary.contract.merchant.confirm', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def confirm_contract_merchant_ex_async( self, request: twc_models.ConfirmContractMerchantRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ConfirmContractMerchantResponse: """ Description: 直付通商户入驻确认(确认成功则表明入驻成功) Summary: 直付通商户入驻确认 """ UtilClient.validate_model(request) return twc_models.ConfirmContractMerchantResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.merchant.confirm', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_privatecontract_trans( self, request: twc_models.CreatePrivatecontractTransRequest, ) -> twc_models.CreatePrivatecontractTransResponse: """ Description: 创建合同存证事务ID。私有云使用。 Summary: 创建合同存证事务ID。私有云使用。 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_privatecontract_trans_ex(request, headers, runtime) async def create_privatecontract_trans_async( self, request: twc_models.CreatePrivatecontractTransRequest, ) -> twc_models.CreatePrivatecontractTransResponse: """ Description: 创建合同存证事务ID。私有云使用。 Summary: 创建合同存证事务ID。私有云使用。 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_privatecontract_trans_ex_async(request, headers, runtime) def create_privatecontract_trans_ex( self, request: twc_models.CreatePrivatecontractTransRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreatePrivatecontractTransResponse: """ Description: 创建合同存证事务ID。私有云使用。 Summary: 创建合同存证事务ID。私有云使用。 """ UtilClient.validate_model(request) return twc_models.CreatePrivatecontractTransResponse().from_map( self.do_request('1.0', 'twc.notary.privatecontract.trans.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_privatecontract_trans_ex_async( self, request: twc_models.CreatePrivatecontractTransRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreatePrivatecontractTransResponse: """ Description: 创建合同存证事务ID。私有云使用。 Summary: 创建合同存证事务ID。私有云使用。 """ UtilClient.validate_model(request) return twc_models.CreatePrivatecontractTransResponse().from_map( await self.do_request_async('1.0', 'twc.notary.privatecontract.trans.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_privatecontract_text( self, request: twc_models.CreatePrivatecontractTextRequest, ) -> twc_models.CreatePrivatecontractTextResponse: """ Description: 合同文本存证。私有云使用。 Summary: 合同文本存证。私有云使用。 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_privatecontract_text_ex(request, headers, runtime) async def create_privatecontract_text_async( self, request: twc_models.CreatePrivatecontractTextRequest, ) -> twc_models.CreatePrivatecontractTextResponse: """ Description: 合同文本存证。私有云使用。 Summary: 合同文本存证。私有云使用。 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_privatecontract_text_ex_async(request, headers, runtime) def create_privatecontract_text_ex( self, request: twc_models.CreatePrivatecontractTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreatePrivatecontractTextResponse: """ Description: 合同文本存证。私有云使用。 Summary: 合同文本存证。私有云使用。 """ UtilClient.validate_model(request) return twc_models.CreatePrivatecontractTextResponse().from_map( self.do_request('1.0', 'twc.notary.privatecontract.text.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_privatecontract_text_ex_async( self, request: twc_models.CreatePrivatecontractTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreatePrivatecontractTextResponse: """ Description: 合同文本存证。私有云使用。 Summary: 合同文本存证。私有云使用。 """ UtilClient.validate_model(request) return twc_models.CreatePrivatecontractTextResponse().from_map( await self.do_request_async('1.0', 'twc.notary.privatecontract.text.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def verify_privateperson_twometa( self, request: twc_models.VerifyPrivatepersonTwometaRequest, ) -> twc_models.VerifyPrivatepersonTwometaResponse: """ Description: 个人二要素校验 Summary: 个人二要素校验 """ runtime = util_models.RuntimeOptions() headers = {} return self.verify_privateperson_twometa_ex(request, headers, runtime) async def verify_privateperson_twometa_async( self, request: twc_models.VerifyPrivatepersonTwometaRequest, ) -> twc_models.VerifyPrivatepersonTwometaResponse: """ Description: 个人二要素校验 Summary: 个人二要素校验 """ runtime = util_models.RuntimeOptions() headers = {} return await self.verify_privateperson_twometa_ex_async(request, headers, runtime) def verify_privateperson_twometa_ex( self, request: twc_models.VerifyPrivatepersonTwometaRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.VerifyPrivatepersonTwometaResponse: """ Description: 个人二要素校验 Summary: 个人二要素校验 """ UtilClient.validate_model(request) return twc_models.VerifyPrivatepersonTwometaResponse().from_map( self.do_request('1.0', 'twc.notary.privateperson.twometa.verify', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def verify_privateperson_twometa_ex_async( self, request: twc_models.VerifyPrivatepersonTwometaRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.VerifyPrivatepersonTwometaResponse: """ Description: 个人二要素校验 Summary: 个人二要素校验 """ UtilClient.validate_model(request) return twc_models.VerifyPrivatepersonTwometaResponse().from_map( await self.do_request_async('1.0', 'twc.notary.privateperson.twometa.verify', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def verify_privatecompany_twometa( self, request: twc_models.VerifyPrivatecompanyTwometaRequest, ) -> twc_models.VerifyPrivatecompanyTwometaResponse: """ Description: 企业二要素校验 Summary: 企业二要素校验 """ runtime = util_models.RuntimeOptions() headers = {} return self.verify_privatecompany_twometa_ex(request, headers, runtime) async def verify_privatecompany_twometa_async( self, request: twc_models.VerifyPrivatecompanyTwometaRequest, ) -> twc_models.VerifyPrivatecompanyTwometaResponse: """ Description: 企业二要素校验 Summary: 企业二要素校验 """ runtime = util_models.RuntimeOptions() headers = {} return await self.verify_privatecompany_twometa_ex_async(request, headers, runtime) def verify_privatecompany_twometa_ex( self, request: twc_models.VerifyPrivatecompanyTwometaRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.VerifyPrivatecompanyTwometaResponse: """ Description: 企业二要素校验 Summary: 企业二要素校验 """ UtilClient.validate_model(request) return twc_models.VerifyPrivatecompanyTwometaResponse().from_map( self.do_request('1.0', 'twc.notary.privatecompany.twometa.verify', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def verify_privatecompany_twometa_ex_async( self, request: twc_models.VerifyPrivatecompanyTwometaRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.VerifyPrivatecompanyTwometaResponse: """ Description: 企业二要素校验 Summary: 企业二要素校验 """ UtilClient.validate_model(request) return twc_models.VerifyPrivatecompanyTwometaResponse().from_map( await self.do_request_async('1.0', 'twc.notary.privatecompany.twometa.verify', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def verify_privatecompany_fourmeta( self, request: twc_models.VerifyPrivatecompanyFourmetaRequest, ) -> twc_models.VerifyPrivatecompanyFourmetaResponse: """ Description: 企业四要素校验 Summary: 企业四要素校验 """ runtime = util_models.RuntimeOptions() headers = {} return self.verify_privatecompany_fourmeta_ex(request, headers, runtime) async def verify_privatecompany_fourmeta_async( self, request: twc_models.VerifyPrivatecompanyFourmetaRequest, ) -> twc_models.VerifyPrivatecompanyFourmetaResponse: """ Description: 企业四要素校验 Summary: 企业四要素校验 """ runtime = util_models.RuntimeOptions() headers = {} return await self.verify_privatecompany_fourmeta_ex_async(request, headers, runtime) def verify_privatecompany_fourmeta_ex( self, request: twc_models.VerifyPrivatecompanyFourmetaRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.VerifyPrivatecompanyFourmetaResponse: """ Description: 企业四要素校验 Summary: 企业四要素校验 """ UtilClient.validate_model(request) return twc_models.VerifyPrivatecompanyFourmetaResponse().from_map( self.do_request('1.0', 'twc.notary.privatecompany.fourmeta.verify', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def verify_privatecompany_fourmeta_ex_async( self, request: twc_models.VerifyPrivatecompanyFourmetaRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.VerifyPrivatecompanyFourmetaResponse: """ Description: 企业四要素校验 Summary: 企业四要素校验 """ UtilClient.validate_model(request) return twc_models.VerifyPrivatecompanyFourmetaResponse().from_map( await self.do_request_async('1.0', 'twc.notary.privatecompany.fourmeta.verify', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def apply_privatecontract_cert( self, request: twc_models.ApplyPrivatecontractCertRequest, ) -> twc_models.ApplyPrivatecontractCertResponse: """ Description: 开放给私有云的外部用户的注册接口. Summary: 私有云的外部用户注册接口. """ runtime = util_models.RuntimeOptions() headers = {} return self.apply_privatecontract_cert_ex(request, headers, runtime) async def apply_privatecontract_cert_async( self, request: twc_models.ApplyPrivatecontractCertRequest, ) -> twc_models.ApplyPrivatecontractCertResponse: """ Description: 开放给私有云的外部用户的注册接口. Summary: 私有云的外部用户注册接口. """ runtime = util_models.RuntimeOptions() headers = {} return await self.apply_privatecontract_cert_ex_async(request, headers, runtime) def apply_privatecontract_cert_ex( self, request: twc_models.ApplyPrivatecontractCertRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ApplyPrivatecontractCertResponse: """ Description: 开放给私有云的外部用户的注册接口. Summary: 私有云的外部用户注册接口. """ UtilClient.validate_model(request) return twc_models.ApplyPrivatecontractCertResponse().from_map( self.do_request('1.0', 'twc.notary.privatecontract.cert.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def apply_privatecontract_cert_ex_async( self, request: twc_models.ApplyPrivatecontractCertRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ApplyPrivatecontractCertResponse: """ Description: 开放给私有云的外部用户的注册接口. Summary: 私有云的外部用户注册接口. """ UtilClient.validate_model(request) return twc_models.ApplyPrivatecontractCertResponse().from_map( await self.do_request_async('1.0', 'twc.notary.privatecontract.cert.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_tradestatus( self, request: twc_models.QueryContractTradestatusRequest, ) -> twc_models.QueryContractTradestatusResponse: """ Description: 代扣计划状态查询接口,仅能查询到由新状态机执行的代扣计划,未切换到新状态机的老数据查询不到 Summary: 代扣计划状态查询 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_tradestatus_ex(request, headers, runtime) async def query_contract_tradestatus_async( self, request: twc_models.QueryContractTradestatusRequest, ) -> twc_models.QueryContractTradestatusResponse: """ Description: 代扣计划状态查询接口,仅能查询到由新状态机执行的代扣计划,未切换到新状态机的老数据查询不到 Summary: 代扣计划状态查询 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_tradestatus_ex_async(request, headers, runtime) def query_contract_tradestatus_ex( self, request: twc_models.QueryContractTradestatusRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractTradestatusResponse: """ Description: 代扣计划状态查询接口,仅能查询到由新状态机执行的代扣计划,未切换到新状态机的老数据查询不到 Summary: 代扣计划状态查询 """ UtilClient.validate_model(request) return twc_models.QueryContractTradestatusResponse().from_map( self.do_request('1.0', 'twc.notary.contract.tradestatus.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_tradestatus_ex_async( self, request: twc_models.QueryContractTradestatusRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractTradestatusResponse: """ Description: 代扣计划状态查询接口,仅能查询到由新状态机执行的代扣计划,未切换到新状态机的老数据查询不到 Summary: 代扣计划状态查询 """ UtilClient.validate_model(request) return twc_models.QueryContractTradestatusResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.tradestatus.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_refund( self, request: twc_models.QueryContractRefundRequest, ) -> twc_models.QueryContractRefundResponse: """ Description: 代扣退款查询,仅支持新代扣状态机处理过的数据,老状态机处理的数据无法查到。 Summary: 代扣退款查询 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_refund_ex(request, headers, runtime) async def query_contract_refund_async( self, request: twc_models.QueryContractRefundRequest, ) -> twc_models.QueryContractRefundResponse: """ Description: 代扣退款查询,仅支持新代扣状态机处理过的数据,老状态机处理的数据无法查到。 Summary: 代扣退款查询 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_refund_ex_async(request, headers, runtime) def query_contract_refund_ex( self, request: twc_models.QueryContractRefundRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractRefundResponse: """ Description: 代扣退款查询,仅支持新代扣状态机处理过的数据,老状态机处理的数据无法查到。 Summary: 代扣退款查询 """ UtilClient.validate_model(request) return twc_models.QueryContractRefundResponse().from_map( self.do_request('1.0', 'twc.notary.contract.refund.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_refund_ex_async( self, request: twc_models.QueryContractRefundRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractRefundResponse: """ Description: 代扣退款查询,仅支持新代扣状态机处理过的数据,老状态机处理的数据无法查到。 Summary: 代扣退款查询 """ UtilClient.validate_model(request) return twc_models.QueryContractRefundResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.refund.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_privatecontract_signurl( self, request: twc_models.GetPrivatecontractSignurlRequest, ) -> twc_models.GetPrivatecontractSignurlResponse: """ Description: 私有云合同服务通过调用公有云合同服务,获取可公网访问的外部客户的签署地址 Summary: 私有云服务获取外部用户签署地址 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_privatecontract_signurl_ex(request, headers, runtime) async def get_privatecontract_signurl_async( self, request: twc_models.GetPrivatecontractSignurlRequest, ) -> twc_models.GetPrivatecontractSignurlResponse: """ Description: 私有云合同服务通过调用公有云合同服务,获取可公网访问的外部客户的签署地址 Summary: 私有云服务获取外部用户签署地址 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_privatecontract_signurl_ex_async(request, headers, runtime) def get_privatecontract_signurl_ex( self, request: twc_models.GetPrivatecontractSignurlRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetPrivatecontractSignurlResponse: """ Description: 私有云合同服务通过调用公有云合同服务,获取可公网访问的外部客户的签署地址 Summary: 私有云服务获取外部用户签署地址 """ UtilClient.validate_model(request) return twc_models.GetPrivatecontractSignurlResponse().from_map( self.do_request('1.0', 'twc.notary.privatecontract.signurl.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_privatecontract_signurl_ex_async( self, request: twc_models.GetPrivatecontractSignurlRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetPrivatecontractSignurlResponse: """ Description: 私有云合同服务通过调用公有云合同服务,获取可公网访问的外部客户的签署地址 Summary: 私有云服务获取外部用户签署地址 """ UtilClient.validate_model(request) return twc_models.GetPrivatecontractSignurlResponse().from_map( await self.do_request_async('1.0', 'twc.notary.privatecontract.signurl.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_contract_merchantorder( self, request: twc_models.QueryContractMerchantorderRequest, ) -> twc_models.QueryContractMerchantorderResponse: """ Description: 商户入驻直付通进度查询,替代twc.notary.contract.merchantindirectzft.query Summary: 商户入驻直付通进度查询 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_contract_merchantorder_ex(request, headers, runtime) async def query_contract_merchantorder_async( self, request: twc_models.QueryContractMerchantorderRequest, ) -> twc_models.QueryContractMerchantorderResponse: """ Description: 商户入驻直付通进度查询,替代twc.notary.contract.merchantindirectzft.query Summary: 商户入驻直付通进度查询 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_contract_merchantorder_ex_async(request, headers, runtime) def query_contract_merchantorder_ex( self, request: twc_models.QueryContractMerchantorderRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractMerchantorderResponse: """ Description: 商户入驻直付通进度查询,替代twc.notary.contract.merchantindirectzft.query Summary: 商户入驻直付通进度查询 """ UtilClient.validate_model(request) return twc_models.QueryContractMerchantorderResponse().from_map( self.do_request('1.0', 'twc.notary.contract.merchantorder.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_contract_merchantorder_ex_async( self, request: twc_models.QueryContractMerchantorderRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryContractMerchantorderResponse: """ Description: 商户入驻直付通进度查询,替代twc.notary.contract.merchantindirectzft.query Summary: 商户入驻直付通进度查询 """ UtilClient.validate_model(request) return twc_models.QueryContractMerchantorderResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.merchantorder.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def update_contract_merchant( self, request: twc_models.UpdateContractMerchantRequest, ) -> twc_models.UpdateContractMerchantResponse: """ Description: 修改商户进件信息,单商户可能被多个用户代理,信息修改会生效到所有代理用户上。 Summary: 商户进件信息修改 """ runtime = util_models.RuntimeOptions() headers = {} return self.update_contract_merchant_ex(request, headers, runtime) async def update_contract_merchant_async( self, request: twc_models.UpdateContractMerchantRequest, ) -> twc_models.UpdateContractMerchantResponse: """ Description: 修改商户进件信息,单商户可能被多个用户代理,信息修改会生效到所有代理用户上。 Summary: 商户进件信息修改 """ runtime = util_models.RuntimeOptions() headers = {} return await self.update_contract_merchant_ex_async(request, headers, runtime) def update_contract_merchant_ex( self, request: twc_models.UpdateContractMerchantRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateContractMerchantResponse: """ Description: 修改商户进件信息,单商户可能被多个用户代理,信息修改会生效到所有代理用户上。 Summary: 商户进件信息修改 """ UtilClient.validate_model(request) return twc_models.UpdateContractMerchantResponse().from_map( self.do_request('1.0', 'twc.notary.contract.merchant.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def update_contract_merchant_ex_async( self, request: twc_models.UpdateContractMerchantRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateContractMerchantResponse: """ Description: 修改商户进件信息,单商户可能被多个用户代理,信息修改会生效到所有代理用户上。 Summary: 商户进件信息修改 """ UtilClient.validate_model(request) return twc_models.UpdateContractMerchantResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.merchant.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def bind_contract_merchant( self, request: twc_models.BindContractMerchantRequest, ) -> twc_models.BindContractMerchantResponse: """ Description: 一个二级商户可以挂接多个平台方用户,此接口可以对已进件的商户进行挂接操作。 Summary: 二级商户代理挂接接口 """ runtime = util_models.RuntimeOptions() headers = {} return self.bind_contract_merchant_ex(request, headers, runtime) async def bind_contract_merchant_async( self, request: twc_models.BindContractMerchantRequest, ) -> twc_models.BindContractMerchantResponse: """ Description: 一个二级商户可以挂接多个平台方用户,此接口可以对已进件的商户进行挂接操作。 Summary: 二级商户代理挂接接口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.bind_contract_merchant_ex_async(request, headers, runtime) def bind_contract_merchant_ex( self, request: twc_models.BindContractMerchantRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.BindContractMerchantResponse: """ Description: 一个二级商户可以挂接多个平台方用户,此接口可以对已进件的商户进行挂接操作。 Summary: 二级商户代理挂接接口 """ UtilClient.validate_model(request) return twc_models.BindContractMerchantResponse().from_map( self.do_request('1.0', 'twc.notary.contract.merchant.bind', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def bind_contract_merchant_ex_async( self, request: twc_models.BindContractMerchantRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.BindContractMerchantResponse: """ Description: 一个二级商户可以挂接多个平台方用户,此接口可以对已进件的商户进行挂接操作。 Summary: 二级商户代理挂接接口 """ UtilClient.validate_model(request) return twc_models.BindContractMerchantResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.merchant.bind', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def init_privatecontract_intance( self, request: twc_models.InitPrivatecontractIntanceRequest, ) -> twc_models.InitPrivatecontractIntanceResponse: """ Description: 初始化私有化合同服务实例,生成服务验签的公/私钥,以及回调使用的公/私钥 Summary: 初始化新的私有化合同服务实例 """ runtime = util_models.RuntimeOptions() headers = {} return self.init_privatecontract_intance_ex(request, headers, runtime) async def init_privatecontract_intance_async( self, request: twc_models.InitPrivatecontractIntanceRequest, ) -> twc_models.InitPrivatecontractIntanceResponse: """ Description: 初始化私有化合同服务实例,生成服务验签的公/私钥,以及回调使用的公/私钥 Summary: 初始化新的私有化合同服务实例 """ runtime = util_models.RuntimeOptions() headers = {} return await self.init_privatecontract_intance_ex_async(request, headers, runtime) def init_privatecontract_intance_ex( self, request: twc_models.InitPrivatecontractIntanceRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.InitPrivatecontractIntanceResponse: """ Description: 初始化私有化合同服务实例,生成服务验签的公/私钥,以及回调使用的公/私钥 Summary: 初始化新的私有化合同服务实例 """ UtilClient.validate_model(request) return twc_models.InitPrivatecontractIntanceResponse().from_map( self.do_request('1.0', 'twc.notary.privatecontract.intance.init', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def init_privatecontract_intance_ex_async( self, request: twc_models.InitPrivatecontractIntanceRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.InitPrivatecontractIntanceResponse: """ Description: 初始化私有化合同服务实例,生成服务验签的公/私钥,以及回调使用的公/私钥 Summary: 初始化新的私有化合同服务实例 """ UtilClient.validate_model(request) return twc_models.InitPrivatecontractIntanceResponse().from_map( await self.do_request_async('1.0', 'twc.notary.privatecontract.intance.init', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def update_privatecontract_intance( self, request: twc_models.UpdatePrivatecontractIntanceRequest, ) -> twc_models.UpdatePrivatecontractIntanceResponse: """ Description: 更新已有的私有化合同服务实例信息,如私有化服务地址 Summary: 更新私有化合同服务实例信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.update_privatecontract_intance_ex(request, headers, runtime) async def update_privatecontract_intance_async( self, request: twc_models.UpdatePrivatecontractIntanceRequest, ) -> twc_models.UpdatePrivatecontractIntanceResponse: """ Description: 更新已有的私有化合同服务实例信息,如私有化服务地址 Summary: 更新私有化合同服务实例信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.update_privatecontract_intance_ex_async(request, headers, runtime) def update_privatecontract_intance_ex( self, request: twc_models.UpdatePrivatecontractIntanceRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdatePrivatecontractIntanceResponse: """ Description: 更新已有的私有化合同服务实例信息,如私有化服务地址 Summary: 更新私有化合同服务实例信息 """ UtilClient.validate_model(request) return twc_models.UpdatePrivatecontractIntanceResponse().from_map( self.do_request('1.0', 'twc.notary.privatecontract.intance.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def update_privatecontract_intance_ex_async( self, request: twc_models.UpdatePrivatecontractIntanceRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdatePrivatecontractIntanceResponse: """ Description: 更新已有的私有化合同服务实例信息,如私有化服务地址 Summary: 更新私有化合同服务实例信息 """ UtilClient.validate_model(request) return twc_models.UpdatePrivatecontractIntanceResponse().from_map( await self.do_request_async('1.0', 'twc.notary.privatecontract.intance.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def update_privatecontract_cert( self, request: twc_models.UpdatePrivatecontractCertRequest, ) -> twc_models.UpdatePrivatecontractCertResponse: """ Description: 开放给私有云的外部用户的证书更新接口. Summary: 私有云用户证书更新接口. """ runtime = util_models.RuntimeOptions() headers = {} return self.update_privatecontract_cert_ex(request, headers, runtime) async def update_privatecontract_cert_async( self, request: twc_models.UpdatePrivatecontractCertRequest, ) -> twc_models.UpdatePrivatecontractCertResponse: """ Description: 开放给私有云的外部用户的证书更新接口. Summary: 私有云用户证书更新接口. """ runtime = util_models.RuntimeOptions() headers = {} return await self.update_privatecontract_cert_ex_async(request, headers, runtime) def update_privatecontract_cert_ex( self, request: twc_models.UpdatePrivatecontractCertRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdatePrivatecontractCertResponse: """ Description: 开放给私有云的外部用户的证书更新接口. Summary: 私有云用户证书更新接口. """ UtilClient.validate_model(request) return twc_models.UpdatePrivatecontractCertResponse().from_map( self.do_request('1.0', 'twc.notary.privatecontract.cert.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def update_privatecontract_cert_ex_async( self, request: twc_models.UpdatePrivatecontractCertRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdatePrivatecontractCertResponse: """ Description: 开放给私有云的外部用户的证书更新接口. Summary: 私有云用户证书更新接口. """ UtilClient.validate_model(request) return twc_models.UpdatePrivatecontractCertResponse().from_map( await self.do_request_async('1.0', 'twc.notary.privatecontract.cert.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def reset_contract_merchantapply( self, request: twc_models.ResetContractMerchantapplyRequest, ) -> twc_models.ResetContractMerchantapplyResponse: """ Description: 修改商户进件申请信息状态数据,只允许超管租户操作 Summary: 商户进件申请信息重置 """ runtime = util_models.RuntimeOptions() headers = {} return self.reset_contract_merchantapply_ex(request, headers, runtime) async def reset_contract_merchantapply_async( self, request: twc_models.ResetContractMerchantapplyRequest, ) -> twc_models.ResetContractMerchantapplyResponse: """ Description: 修改商户进件申请信息状态数据,只允许超管租户操作 Summary: 商户进件申请信息重置 """ runtime = util_models.RuntimeOptions() headers = {} return await self.reset_contract_merchantapply_ex_async(request, headers, runtime) def reset_contract_merchantapply_ex( self, request: twc_models.ResetContractMerchantapplyRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ResetContractMerchantapplyResponse: """ Description: 修改商户进件申请信息状态数据,只允许超管租户操作 Summary: 商户进件申请信息重置 """ UtilClient.validate_model(request) return twc_models.ResetContractMerchantapplyResponse().from_map( self.do_request('1.0', 'twc.notary.contract.merchantapply.reset', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def reset_contract_merchantapply_ex_async( self, request: twc_models.ResetContractMerchantapplyRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ResetContractMerchantapplyResponse: """ Description: 修改商户进件申请信息状态数据,只允许超管租户操作 Summary: 商户进件申请信息重置 """ UtilClient.validate_model(request) return twc_models.ResetContractMerchantapplyResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.merchantapply.reset', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def sync_inner_trans( self, request: twc_models.SyncInnerTransRequest, ) -> twc_models.SyncInnerTransResponse: """ Description: baas-notary向notarycore同步生成的事务数据,仅做数据同步使用 Summary: 向notarycore同步事务数据 """ runtime = util_models.RuntimeOptions() headers = {} return self.sync_inner_trans_ex(request, headers, runtime) async def sync_inner_trans_async( self, request: twc_models.SyncInnerTransRequest, ) -> twc_models.SyncInnerTransResponse: """ Description: baas-notary向notarycore同步生成的事务数据,仅做数据同步使用 Summary: 向notarycore同步事务数据 """ runtime = util_models.RuntimeOptions() headers = {} return await self.sync_inner_trans_ex_async(request, headers, runtime) def sync_inner_trans_ex( self, request: twc_models.SyncInnerTransRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SyncInnerTransResponse: """ Description: baas-notary向notarycore同步生成的事务数据,仅做数据同步使用 Summary: 向notarycore同步事务数据 """ UtilClient.validate_model(request) return twc_models.SyncInnerTransResponse().from_map( self.do_request('1.0', 'twc.notary.inner.trans.sync', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def sync_inner_trans_ex_async( self, request: twc_models.SyncInnerTransRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SyncInnerTransResponse: """ Description: baas-notary向notarycore同步生成的事务数据,仅做数据同步使用 Summary: 向notarycore同步事务数据 """ UtilClient.validate_model(request) return twc_models.SyncInnerTransResponse().from_map( await self.do_request_async('1.0', 'twc.notary.inner.trans.sync', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def sync_inner_notary( self, request: twc_models.SyncInnerNotaryRequest, ) -> twc_models.SyncInnerNotaryResponse: """ Description: 从baas-notary向notarycore同步存证数据 Summary: 向notarycore同步存证数据 """ runtime = util_models.RuntimeOptions() headers = {} return self.sync_inner_notary_ex(request, headers, runtime) async def sync_inner_notary_async( self, request: twc_models.SyncInnerNotaryRequest, ) -> twc_models.SyncInnerNotaryResponse: """ Description: 从baas-notary向notarycore同步存证数据 Summary: 向notarycore同步存证数据 """ runtime = util_models.RuntimeOptions() headers = {} return await self.sync_inner_notary_ex_async(request, headers, runtime) def sync_inner_notary_ex( self, request: twc_models.SyncInnerNotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SyncInnerNotaryResponse: """ Description: 从baas-notary向notarycore同步存证数据 Summary: 向notarycore同步存证数据 """ UtilClient.validate_model(request) return twc_models.SyncInnerNotaryResponse().from_map( self.do_request('1.0', 'twc.notary.inner.notary.sync', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def sync_inner_notary_ex_async( self, request: twc_models.SyncInnerNotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SyncInnerNotaryResponse: """ Description: 从baas-notary向notarycore同步存证数据 Summary: 向notarycore同步存证数据 """ UtilClient.validate_model(request) return twc_models.SyncInnerNotaryResponse().from_map( await self.do_request_async('1.0', 'twc.notary.inner.notary.sync', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def sync_inner_twcopen( self, request: twc_models.SyncInnerTwcopenRequest, ) -> twc_models.SyncInnerTwcopenResponse: """ Description: 从baas-notary向notarycore同步自租户信息 Summary: 向notarycore同步子租户数据 """ runtime = util_models.RuntimeOptions() headers = {} return self.sync_inner_twcopen_ex(request, headers, runtime) async def sync_inner_twcopen_async( self, request: twc_models.SyncInnerTwcopenRequest, ) -> twc_models.SyncInnerTwcopenResponse: """ Description: 从baas-notary向notarycore同步自租户信息 Summary: 向notarycore同步子租户数据 """ runtime = util_models.RuntimeOptions() headers = {} return await self.sync_inner_twcopen_ex_async(request, headers, runtime) def sync_inner_twcopen_ex( self, request: twc_models.SyncInnerTwcopenRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SyncInnerTwcopenResponse: """ Description: 从baas-notary向notarycore同步自租户信息 Summary: 向notarycore同步子租户数据 """ UtilClient.validate_model(request) return twc_models.SyncInnerTwcopenResponse().from_map( self.do_request('1.0', 'twc.notary.inner.twcopen.sync', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def sync_inner_twcopen_ex_async( self, request: twc_models.SyncInnerTwcopenRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SyncInnerTwcopenResponse: """ Description: 从baas-notary向notarycore同步自租户信息 Summary: 向notarycore同步子租户数据 """ UtilClient.validate_model(request) return twc_models.SyncInnerTwcopenResponse().from_map( await self.do_request_async('1.0', 'twc.notary.inner.twcopen.sync', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def sync_inner_provision( self, request: twc_models.SyncInnerProvisionRequest, ) -> twc_models.SyncInnerProvisionResponse: """ Description: 从baas-notary向notarycore同步租户权限数据 Summary: 向notarycore同步租户数据 """ runtime = util_models.RuntimeOptions() headers = {} return self.sync_inner_provision_ex(request, headers, runtime) async def sync_inner_provision_async( self, request: twc_models.SyncInnerProvisionRequest, ) -> twc_models.SyncInnerProvisionResponse: """ Description: 从baas-notary向notarycore同步租户权限数据 Summary: 向notarycore同步租户数据 """ runtime = util_models.RuntimeOptions() headers = {} return await self.sync_inner_provision_ex_async(request, headers, runtime) def sync_inner_provision_ex( self, request: twc_models.SyncInnerProvisionRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SyncInnerProvisionResponse: """ Description: 从baas-notary向notarycore同步租户权限数据 Summary: 向notarycore同步租户数据 """ UtilClient.validate_model(request) return twc_models.SyncInnerProvisionResponse().from_map( self.do_request('1.0', 'twc.notary.inner.provision.sync', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def sync_inner_provision_ex_async( self, request: twc_models.SyncInnerProvisionRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SyncInnerProvisionResponse: """ Description: 从baas-notary向notarycore同步租户权限数据 Summary: 向notarycore同步租户数据 """ UtilClient.validate_model(request) return twc_models.SyncInnerProvisionResponse().from_map( await self.do_request_async('1.0', 'twc.notary.inner.provision.sync', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def sync_inner_tsr( self, request: twc_models.SyncInnerTsrRequest, ) -> twc_models.SyncInnerTsrResponse: """ Description: 从baas-notary向notarycore同步tsr数据 Summary: 向notarycore同步tsr数据 """ runtime = util_models.RuntimeOptions() headers = {} return self.sync_inner_tsr_ex(request, headers, runtime) async def sync_inner_tsr_async( self, request: twc_models.SyncInnerTsrRequest, ) -> twc_models.SyncInnerTsrResponse: """ Description: 从baas-notary向notarycore同步tsr数据 Summary: 向notarycore同步tsr数据 """ runtime = util_models.RuntimeOptions() headers = {} return await self.sync_inner_tsr_ex_async(request, headers, runtime) def sync_inner_tsr_ex( self, request: twc_models.SyncInnerTsrRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SyncInnerTsrResponse: """ Description: 从baas-notary向notarycore同步tsr数据 Summary: 向notarycore同步tsr数据 """ UtilClient.validate_model(request) return twc_models.SyncInnerTsrResponse().from_map( self.do_request('1.0', 'twc.notary.inner.tsr.sync', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def sync_inner_tsr_ex_async( self, request: twc_models.SyncInnerTsrRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SyncInnerTsrResponse: """ Description: 从baas-notary向notarycore同步tsr数据 Summary: 向notarycore同步tsr数据 """ UtilClient.validate_model(request) return twc_models.SyncInnerTsrResponse().from_map( await self.do_request_async('1.0', 'twc.notary.inner.tsr.sync', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def check_epidentity_twometa( self, request: twc_models.CheckEpidentityTwometaRequest, ) -> twc_models.CheckEpidentityTwometaResponse: """ Description: 输入企业名+证件号,发起企业二要素认证请求。 Summary: 企业二要素认证 """ runtime = util_models.RuntimeOptions() headers = {} return self.check_epidentity_twometa_ex(request, headers, runtime) async def check_epidentity_twometa_async( self, request: twc_models.CheckEpidentityTwometaRequest, ) -> twc_models.CheckEpidentityTwometaResponse: """ Description: 输入企业名+证件号,发起企业二要素认证请求。 Summary: 企业二要素认证 """ runtime = util_models.RuntimeOptions() headers = {} return await self.check_epidentity_twometa_ex_async(request, headers, runtime) def check_epidentity_twometa_ex( self, request: twc_models.CheckEpidentityTwometaRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CheckEpidentityTwometaResponse: """ Description: 输入企业名+证件号,发起企业二要素认证请求。 Summary: 企业二要素认证 """ UtilClient.validate_model(request) return twc_models.CheckEpidentityTwometaResponse().from_map( self.do_request('1.0', 'twc.notary.epidentity.twometa.check', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def check_epidentity_twometa_ex_async( self, request: twc_models.CheckEpidentityTwometaRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CheckEpidentityTwometaResponse: """ Description: 输入企业名+证件号,发起企业二要素认证请求。 Summary: 企业二要素认证 """ UtilClient.validate_model(request) return twc_models.CheckEpidentityTwometaResponse().from_map( await self.do_request_async('1.0', 'twc.notary.epidentity.twometa.check', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def check_epidentity_threemeta( self, request: twc_models.CheckEpidentityThreemetaRequest, ) -> twc_models.CheckEpidentityThreemetaResponse: """ Description: 输入企业名+证件号+企业法人姓名,发起企业三要素认证请求。 Summary: 企业三要素认证 """ runtime = util_models.RuntimeOptions() headers = {} return self.check_epidentity_threemeta_ex(request, headers, runtime) async def check_epidentity_threemeta_async( self, request: twc_models.CheckEpidentityThreemetaRequest, ) -> twc_models.CheckEpidentityThreemetaResponse: """ Description: 输入企业名+证件号+企业法人姓名,发起企业三要素认证请求。 Summary: 企业三要素认证 """ runtime = util_models.RuntimeOptions() headers = {} return await self.check_epidentity_threemeta_ex_async(request, headers, runtime) def check_epidentity_threemeta_ex( self, request: twc_models.CheckEpidentityThreemetaRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CheckEpidentityThreemetaResponse: """ Description: 输入企业名+证件号+企业法人姓名,发起企业三要素认证请求。 Summary: 企业三要素认证 """ UtilClient.validate_model(request) return twc_models.CheckEpidentityThreemetaResponse().from_map( self.do_request('1.0', 'twc.notary.epidentity.threemeta.check', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def check_epidentity_threemeta_ex_async( self, request: twc_models.CheckEpidentityThreemetaRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CheckEpidentityThreemetaResponse: """ Description: 输入企业名+证件号+企业法人姓名,发起企业三要素认证请求。 Summary: 企业三要素认证 """ UtilClient.validate_model(request) return twc_models.CheckEpidentityThreemetaResponse().from_map( await self.do_request_async('1.0', 'twc.notary.epidentity.threemeta.check', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def check_epidentity_fourmeta( self, request: twc_models.CheckEpidentityFourmetaRequest, ) -> twc_models.CheckEpidentityFourmetaResponse: """ Description: 输入企业名+证件号+企业法人姓+法人证件号,发起企业四要素认证请求。 Summary: 企业四要素认证 """ runtime = util_models.RuntimeOptions() headers = {} return self.check_epidentity_fourmeta_ex(request, headers, runtime) async def check_epidentity_fourmeta_async( self, request: twc_models.CheckEpidentityFourmetaRequest, ) -> twc_models.CheckEpidentityFourmetaResponse: """ Description: 输入企业名+证件号+企业法人姓+法人证件号,发起企业四要素认证请求。 Summary: 企业四要素认证 """ runtime = util_models.RuntimeOptions() headers = {} return await self.check_epidentity_fourmeta_ex_async(request, headers, runtime) def check_epidentity_fourmeta_ex( self, request: twc_models.CheckEpidentityFourmetaRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CheckEpidentityFourmetaResponse: """ Description: 输入企业名+证件号+企业法人姓+法人证件号,发起企业四要素认证请求。 Summary: 企业四要素认证 """ UtilClient.validate_model(request) return twc_models.CheckEpidentityFourmetaResponse().from_map( self.do_request('1.0', 'twc.notary.epidentity.fourmeta.check', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def check_epidentity_fourmeta_ex_async( self, request: twc_models.CheckEpidentityFourmetaRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CheckEpidentityFourmetaResponse: """ Description: 输入企业名+证件号+企业法人姓+法人证件号,发起企业四要素认证请求。 Summary: 企业四要素认证 """ UtilClient.validate_model(request) return twc_models.CheckEpidentityFourmetaResponse().from_map( await self.do_request_async('1.0', 'twc.notary.epidentity.fourmeta.check', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def check_notarization_order( self, request: twc_models.CheckNotarizationOrderRequest, ) -> twc_models.CheckNotarizationOrderResponse: """ Description: 查询公证订单的有效性 Summary: 查询公证订单的有效性 """ runtime = util_models.RuntimeOptions() headers = {} return self.check_notarization_order_ex(request, headers, runtime) async def check_notarization_order_async( self, request: twc_models.CheckNotarizationOrderRequest, ) -> twc_models.CheckNotarizationOrderResponse: """ Description: 查询公证订单的有效性 Summary: 查询公证订单的有效性 """ runtime = util_models.RuntimeOptions() headers = {} return await self.check_notarization_order_ex_async(request, headers, runtime) def check_notarization_order_ex( self, request: twc_models.CheckNotarizationOrderRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CheckNotarizationOrderResponse: """ Description: 查询公证订单的有效性 Summary: 查询公证订单的有效性 """ UtilClient.validate_model(request) return twc_models.CheckNotarizationOrderResponse().from_map( self.do_request('1.0', 'twc.notary.notarization.order.check', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def check_notarization_order_ex_async( self, request: twc_models.CheckNotarizationOrderRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CheckNotarizationOrderResponse: """ Description: 查询公证订单的有效性 Summary: 查询公证订单的有效性 """ UtilClient.validate_model(request) return twc_models.CheckNotarizationOrderResponse().from_map( await self.do_request_async('1.0', 'twc.notary.notarization.order.check', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def update_notarization_order( self, request: twc_models.UpdateNotarizationOrderRequest, ) -> twc_models.UpdateNotarizationOrderResponse: """ Description: 更新公证订单状态 Summary: 更新公证订单状态 """ runtime = util_models.RuntimeOptions() headers = {} return self.update_notarization_order_ex(request, headers, runtime) async def update_notarization_order_async( self, request: twc_models.UpdateNotarizationOrderRequest, ) -> twc_models.UpdateNotarizationOrderResponse: """ Description: 更新公证订单状态 Summary: 更新公证订单状态 """ runtime = util_models.RuntimeOptions() headers = {} return await self.update_notarization_order_ex_async(request, headers, runtime) def update_notarization_order_ex( self, request: twc_models.UpdateNotarizationOrderRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateNotarizationOrderResponse: """ Description: 更新公证订单状态 Summary: 更新公证订单状态 """ UtilClient.validate_model(request) return twc_models.UpdateNotarizationOrderResponse().from_map( self.do_request('1.0', 'twc.notary.notarization.order.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def update_notarization_order_ex_async( self, request: twc_models.UpdateNotarizationOrderRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateNotarizationOrderResponse: """ Description: 更新公证订单状态 Summary: 更新公证订单状态 """ UtilClient.validate_model(request) return twc_models.UpdateNotarizationOrderResponse().from_map( await self.do_request_async('1.0', 'twc.notary.notarization.order.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def set_notarization_order( self, request: twc_models.SetNotarizationOrderRequest, ) -> twc_models.SetNotarizationOrderResponse: """ Description: 设置订单属性 Summary: 设置订单属性 """ runtime = util_models.RuntimeOptions() headers = {} return self.set_notarization_order_ex(request, headers, runtime) async def set_notarization_order_async( self, request: twc_models.SetNotarizationOrderRequest, ) -> twc_models.SetNotarizationOrderResponse: """ Description: 设置订单属性 Summary: 设置订单属性 """ runtime = util_models.RuntimeOptions() headers = {} return await self.set_notarization_order_ex_async(request, headers, runtime) def set_notarization_order_ex( self, request: twc_models.SetNotarizationOrderRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SetNotarizationOrderResponse: """ Description: 设置订单属性 Summary: 设置订单属性 """ UtilClient.validate_model(request) return twc_models.SetNotarizationOrderResponse().from_map( self.do_request('1.0', 'twc.notary.notarization.order.set', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def set_notarization_order_ex_async( self, request: twc_models.SetNotarizationOrderRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SetNotarizationOrderResponse: """ Description: 设置订单属性 Summary: 设置订单属性 """ UtilClient.validate_model(request) return twc_models.SetNotarizationOrderResponse().from_map( await self.do_request_async('1.0', 'twc.notary.notarization.order.set', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def init_identification_faceauth( self, request: twc_models.InitIdentificationFaceauthRequest, ) -> twc_models.InitIdentificationFaceauthResponse: """ Description: 实人认证初始化 Summary: 实人认证初始化 """ runtime = util_models.RuntimeOptions() headers = {} return self.init_identification_faceauth_ex(request, headers, runtime) async def init_identification_faceauth_async( self, request: twc_models.InitIdentificationFaceauthRequest, ) -> twc_models.InitIdentificationFaceauthResponse: """ Description: 实人认证初始化 Summary: 实人认证初始化 """ runtime = util_models.RuntimeOptions() headers = {} return await self.init_identification_faceauth_ex_async(request, headers, runtime) def init_identification_faceauth_ex( self, request: twc_models.InitIdentificationFaceauthRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.InitIdentificationFaceauthResponse: """ Description: 实人认证初始化 Summary: 实人认证初始化 """ UtilClient.validate_model(request) return twc_models.InitIdentificationFaceauthResponse().from_map( self.do_request('1.0', 'twc.notary.identification.faceauth.init', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def init_identification_faceauth_ex_async( self, request: twc_models.InitIdentificationFaceauthRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.InitIdentificationFaceauthResponse: """ Description: 实人认证初始化 Summary: 实人认证初始化 """ UtilClient.validate_model(request) return twc_models.InitIdentificationFaceauthResponse().from_map( await self.do_request_async('1.0', 'twc.notary.identification.faceauth.init', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def certify_identification_faceauth( self, request: twc_models.CertifyIdentificationFaceauthRequest, ) -> twc_models.CertifyIdentificationFaceauthResponse: """ Description: 发起实人认证 Summary: 发起实人认证 """ runtime = util_models.RuntimeOptions() headers = {} return self.certify_identification_faceauth_ex(request, headers, runtime) async def certify_identification_faceauth_async( self, request: twc_models.CertifyIdentificationFaceauthRequest, ) -> twc_models.CertifyIdentificationFaceauthResponse: """ Description: 发起实人认证 Summary: 发起实人认证 """ runtime = util_models.RuntimeOptions() headers = {} return await self.certify_identification_faceauth_ex_async(request, headers, runtime) def certify_identification_faceauth_ex( self, request: twc_models.CertifyIdentificationFaceauthRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CertifyIdentificationFaceauthResponse: """ Description: 发起实人认证 Summary: 发起实人认证 """ UtilClient.validate_model(request) return twc_models.CertifyIdentificationFaceauthResponse().from_map( self.do_request('1.0', 'twc.notary.identification.faceauth.certify', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def certify_identification_faceauth_ex_async( self, request: twc_models.CertifyIdentificationFaceauthRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CertifyIdentificationFaceauthResponse: """ Description: 发起实人认证 Summary: 发起实人认证 """ UtilClient.validate_model(request) return twc_models.CertifyIdentificationFaceauthResponse().from_map( await self.do_request_async('1.0', 'twc.notary.identification.faceauth.certify', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_identification_faceauth( self, request: twc_models.QueryIdentificationFaceauthRequest, ) -> twc_models.QueryIdentificationFaceauthResponse: """ Description: 查询实人认证结果 Summary: 查询实人认证结果 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_identification_faceauth_ex(request, headers, runtime) async def query_identification_faceauth_async( self, request: twc_models.QueryIdentificationFaceauthRequest, ) -> twc_models.QueryIdentificationFaceauthResponse: """ Description: 查询实人认证结果 Summary: 查询实人认证结果 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_identification_faceauth_ex_async(request, headers, runtime) def query_identification_faceauth_ex( self, request: twc_models.QueryIdentificationFaceauthRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryIdentificationFaceauthResponse: """ Description: 查询实人认证结果 Summary: 查询实人认证结果 """ UtilClient.validate_model(request) return twc_models.QueryIdentificationFaceauthResponse().from_map( self.do_request('1.0', 'twc.notary.identification.faceauth.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_identification_faceauth_ex_async( self, request: twc_models.QueryIdentificationFaceauthRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryIdentificationFaceauthResponse: """ Description: 查询实人认证结果 Summary: 查询实人认证结果 """ UtilClient.validate_model(request) return twc_models.QueryIdentificationFaceauthResponse().from_map( await self.do_request_async('1.0', 'twc.notary.identification.faceauth.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_enterprise_faceauth( self, request: twc_models.QueryEnterpriseFaceauthRequest, ) -> twc_models.QueryEnterpriseFaceauthResponse: """ Description: 企业法人认证查询结果接口 Summary: 企业法人认证查询 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_enterprise_faceauth_ex(request, headers, runtime) async def query_enterprise_faceauth_async( self, request: twc_models.QueryEnterpriseFaceauthRequest, ) -> twc_models.QueryEnterpriseFaceauthResponse: """ Description: 企业法人认证查询结果接口 Summary: 企业法人认证查询 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_enterprise_faceauth_ex_async(request, headers, runtime) def query_enterprise_faceauth_ex( self, request: twc_models.QueryEnterpriseFaceauthRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryEnterpriseFaceauthResponse: """ Description: 企业法人认证查询结果接口 Summary: 企业法人认证查询 """ UtilClient.validate_model(request) return twc_models.QueryEnterpriseFaceauthResponse().from_map( self.do_request('1.0', 'twc.notary.enterprise.faceauth.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_enterprise_faceauth_ex_async( self, request: twc_models.QueryEnterpriseFaceauthRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryEnterpriseFaceauthResponse: """ Description: 企业法人认证查询结果接口 Summary: 企业法人认证查询 """ UtilClient.validate_model(request) return twc_models.QueryEnterpriseFaceauthResponse().from_map( await self.do_request_async('1.0', 'twc.notary.enterprise.faceauth.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def init_enterprise_faceauth( self, request: twc_models.InitEnterpriseFaceauthRequest, ) -> twc_models.InitEnterpriseFaceauthResponse: """ Description: 企业法人认证初始化接口 Summary: 企业法人认证初始化 """ runtime = util_models.RuntimeOptions() headers = {} return self.init_enterprise_faceauth_ex(request, headers, runtime) async def init_enterprise_faceauth_async( self, request: twc_models.InitEnterpriseFaceauthRequest, ) -> twc_models.InitEnterpriseFaceauthResponse: """ Description: 企业法人认证初始化接口 Summary: 企业法人认证初始化 """ runtime = util_models.RuntimeOptions() headers = {} return await self.init_enterprise_faceauth_ex_async(request, headers, runtime) def init_enterprise_faceauth_ex( self, request: twc_models.InitEnterpriseFaceauthRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.InitEnterpriseFaceauthResponse: """ Description: 企业法人认证初始化接口 Summary: 企业法人认证初始化 """ UtilClient.validate_model(request) return twc_models.InitEnterpriseFaceauthResponse().from_map( self.do_request('1.0', 'twc.notary.enterprise.faceauth.init', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def init_enterprise_faceauth_ex_async( self, request: twc_models.InitEnterpriseFaceauthRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.InitEnterpriseFaceauthResponse: """ Description: 企业法人认证初始化接口 Summary: 企业法人认证初始化 """ UtilClient.validate_model(request) return twc_models.InitEnterpriseFaceauthResponse().from_map( await self.do_request_async('1.0', 'twc.notary.enterprise.faceauth.init', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def certify_enterprise_faceauth( self, request: twc_models.CertifyEnterpriseFaceauthRequest, ) -> twc_models.CertifyEnterpriseFaceauthResponse: """ Description: 企业法人认证开始接口 Summary: 企业法人认证开始 """ runtime = util_models.RuntimeOptions() headers = {} return self.certify_enterprise_faceauth_ex(request, headers, runtime) async def certify_enterprise_faceauth_async( self, request: twc_models.CertifyEnterpriseFaceauthRequest, ) -> twc_models.CertifyEnterpriseFaceauthResponse: """ Description: 企业法人认证开始接口 Summary: 企业法人认证开始 """ runtime = util_models.RuntimeOptions() headers = {} return await self.certify_enterprise_faceauth_ex_async(request, headers, runtime) def certify_enterprise_faceauth_ex( self, request: twc_models.CertifyEnterpriseFaceauthRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CertifyEnterpriseFaceauthResponse: """ Description: 企业法人认证开始接口 Summary: 企业法人认证开始 """ UtilClient.validate_model(request) return twc_models.CertifyEnterpriseFaceauthResponse().from_map( self.do_request('1.0', 'twc.notary.enterprise.faceauth.certify', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def certify_enterprise_faceauth_ex_async( self, request: twc_models.CertifyEnterpriseFaceauthRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CertifyEnterpriseFaceauthResponse: """ Description: 企业法人认证开始接口 Summary: 企业法人认证开始 """ UtilClient.validate_model(request) return twc_models.CertifyEnterpriseFaceauthResponse().from_map( await self.do_request_async('1.0', 'twc.notary.enterprise.faceauth.certify', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_order( self, request: twc_models.CreateLeaseOrderRequest, ) -> twc_models.CreateLeaseOrderResponse: """ Description: 创建租赁订单 Summary: 租赁订单创建 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_order_ex(request, headers, runtime) async def create_lease_order_async( self, request: twc_models.CreateLeaseOrderRequest, ) -> twc_models.CreateLeaseOrderResponse: """ Description: 创建租赁订单 Summary: 租赁订单创建 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_order_ex_async(request, headers, runtime) def create_lease_order_ex( self, request: twc_models.CreateLeaseOrderRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseOrderResponse: """ Description: 创建租赁订单 Summary: 租赁订单创建 """ UtilClient.validate_model(request) return twc_models.CreateLeaseOrderResponse().from_map( self.do_request('1.0', 'twc.notary.lease.order.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_order_ex_async( self, request: twc_models.CreateLeaseOrderRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseOrderResponse: """ Description: 创建租赁订单 Summary: 租赁订单创建 """ UtilClient.validate_model(request) return twc_models.CreateLeaseOrderResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.order.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_notarization_bill( self, request: twc_models.CreateNotarizationBillRequest, ) -> twc_models.CreateNotarizationBillResponse: """ Description: 电子公证或存证证明场景中,用户通过回传相关信息创建收费订单。 Summary: 公证场景创建收费订单 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_notarization_bill_ex(request, headers, runtime) async def create_notarization_bill_async( self, request: twc_models.CreateNotarizationBillRequest, ) -> twc_models.CreateNotarizationBillResponse: """ Description: 电子公证或存证证明场景中,用户通过回传相关信息创建收费订单。 Summary: 公证场景创建收费订单 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_notarization_bill_ex_async(request, headers, runtime) def create_notarization_bill_ex( self, request: twc_models.CreateNotarizationBillRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateNotarizationBillResponse: """ Description: 电子公证或存证证明场景中,用户通过回传相关信息创建收费订单。 Summary: 公证场景创建收费订单 """ UtilClient.validate_model(request) return twc_models.CreateNotarizationBillResponse().from_map( self.do_request('1.0', 'twc.notary.notarization.bill.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_notarization_bill_ex_async( self, request: twc_models.CreateNotarizationBillRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateNotarizationBillResponse: """ Description: 电子公证或存证证明场景中,用户通过回传相关信息创建收费订单。 Summary: 公证场景创建收费订单 """ UtilClient.validate_model(request) return twc_models.CreateNotarizationBillResponse().from_map( await self.do_request_async('1.0', 'twc.notary.notarization.bill.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def init_certification( self, request: twc_models.InitCertificationRequest, ) -> twc_models.InitCertificationResponse: """ Description: 提供必要的存证信息,初始化一个存证证明的订单,提交公证处审核,并返回订单号 Summary: 初始化存证证明订单 """ runtime = util_models.RuntimeOptions() headers = {} return self.init_certification_ex(request, headers, runtime) async def init_certification_async( self, request: twc_models.InitCertificationRequest, ) -> twc_models.InitCertificationResponse: """ Description: 提供必要的存证信息,初始化一个存证证明的订单,提交公证处审核,并返回订单号 Summary: 初始化存证证明订单 """ runtime = util_models.RuntimeOptions() headers = {} return await self.init_certification_ex_async(request, headers, runtime) def init_certification_ex( self, request: twc_models.InitCertificationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.InitCertificationResponse: """ Description: 提供必要的存证信息,初始化一个存证证明的订单,提交公证处审核,并返回订单号 Summary: 初始化存证证明订单 """ UtilClient.validate_model(request) return twc_models.InitCertificationResponse().from_map( self.do_request('1.0', 'twc.notary.certification.init', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def init_certification_ex_async( self, request: twc_models.InitCertificationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.InitCertificationResponse: """ Description: 提供必要的存证信息,初始化一个存证证明的订单,提交公证处审核,并返回订单号 Summary: 初始化存证证明订单 """ UtilClient.validate_model(request) return twc_models.InitCertificationResponse().from_map( await self.do_request_async('1.0', 'twc.notary.certification.init', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_certification( self, request: twc_models.QueryCertificationRequest, ) -> twc_models.QueryCertificationResponse: """ Description: 输入申请ID,查询存证证明申请状态,成功后返回下载地址等信息 Summary: 查询存证证明申请状态 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_certification_ex(request, headers, runtime) async def query_certification_async( self, request: twc_models.QueryCertificationRequest, ) -> twc_models.QueryCertificationResponse: """ Description: 输入申请ID,查询存证证明申请状态,成功后返回下载地址等信息 Summary: 查询存证证明申请状态 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_certification_ex_async(request, headers, runtime) def query_certification_ex( self, request: twc_models.QueryCertificationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryCertificationResponse: """ Description: 输入申请ID,查询存证证明申请状态,成功后返回下载地址等信息 Summary: 查询存证证明申请状态 """ UtilClient.validate_model(request) return twc_models.QueryCertificationResponse().from_map( self.do_request('1.0', 'twc.notary.certification.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_certification_ex_async( self, request: twc_models.QueryCertificationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryCertificationResponse: """ Description: 输入申请ID,查询存证证明申请状态,成功后返回下载地址等信息 Summary: 查询存证证明申请状态 """ UtilClient.validate_model(request) return twc_models.QueryCertificationResponse().from_map( await self.do_request_async('1.0', 'twc.notary.certification.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_tsr_certificate( self, request: twc_models.GetTsrCertificateRequest, ) -> twc_models.GetTsrCertificateResponse: """ Description: 可以根据存证过程中获得当可信时间戳凭证,获取国家授时中心颁发的PDF格式可信时间证书 Summary: 可信时间凭证服务 - 获取时间凭证证书 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_tsr_certificate_ex(request, headers, runtime) async def get_tsr_certificate_async( self, request: twc_models.GetTsrCertificateRequest, ) -> twc_models.GetTsrCertificateResponse: """ Description: 可以根据存证过程中获得当可信时间戳凭证,获取国家授时中心颁发的PDF格式可信时间证书 Summary: 可信时间凭证服务 - 获取时间凭证证书 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_tsr_certificate_ex_async(request, headers, runtime) def get_tsr_certificate_ex( self, request: twc_models.GetTsrCertificateRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetTsrCertificateResponse: """ Description: 可以根据存证过程中获得当可信时间戳凭证,获取国家授时中心颁发的PDF格式可信时间证书 Summary: 可信时间凭证服务 - 获取时间凭证证书 """ UtilClient.validate_model(request) return twc_models.GetTsrCertificateResponse().from_map( self.do_request('1.0', 'twc.notary.tsr.certificate.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_tsr_certificate_ex_async( self, request: twc_models.GetTsrCertificateRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetTsrCertificateResponse: """ Description: 可以根据存证过程中获得当可信时间戳凭证,获取国家授时中心颁发的PDF格式可信时间证书 Summary: 可信时间凭证服务 - 获取时间凭证证书 """ UtilClient.validate_model(request) return twc_models.GetTsrCertificateResponse().from_map( await self.do_request_async('1.0', 'twc.notary.tsr.certificate.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def save_jointconstraint_record( self, request: twc_models.SaveJointconstraintRecordRequest, ) -> twc_models.SaveJointconstraintRecordResponse: """ Description: 新增/修改履行记录,依据contractCode与contractFulfillmentCode判断唯一性 Summary: 联合执行履行记录新增/修改接口 """ runtime = util_models.RuntimeOptions() headers = {} return self.save_jointconstraint_record_ex(request, headers, runtime) async def save_jointconstraint_record_async( self, request: twc_models.SaveJointconstraintRecordRequest, ) -> twc_models.SaveJointconstraintRecordResponse: """ Description: 新增/修改履行记录,依据contractCode与contractFulfillmentCode判断唯一性 Summary: 联合执行履行记录新增/修改接口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.save_jointconstraint_record_ex_async(request, headers, runtime) def save_jointconstraint_record_ex( self, request: twc_models.SaveJointconstraintRecordRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SaveJointconstraintRecordResponse: """ Description: 新增/修改履行记录,依据contractCode与contractFulfillmentCode判断唯一性 Summary: 联合执行履行记录新增/修改接口 """ UtilClient.validate_model(request) return twc_models.SaveJointconstraintRecordResponse().from_map( self.do_request('1.0', 'twc.notary.jointconstraint.record.save', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def save_jointconstraint_record_ex_async( self, request: twc_models.SaveJointconstraintRecordRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SaveJointconstraintRecordResponse: """ Description: 新增/修改履行记录,依据contractCode与contractFulfillmentCode判断唯一性 Summary: 联合执行履行记录新增/修改接口 """ UtilClient.validate_model(request) return twc_models.SaveJointconstraintRecordResponse().from_map( await self.do_request_async('1.0', 'twc.notary.jointconstraint.record.save', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def delete_jointconstraint_record( self, request: twc_models.DeleteJointconstraintRecordRequest, ) -> twc_models.DeleteJointconstraintRecordResponse: """ Description: 删除履行记录 Summary: 履行记录删除接口 """ runtime = util_models.RuntimeOptions() headers = {} return self.delete_jointconstraint_record_ex(request, headers, runtime) async def delete_jointconstraint_record_async( self, request: twc_models.DeleteJointconstraintRecordRequest, ) -> twc_models.DeleteJointconstraintRecordResponse: """ Description: 删除履行记录 Summary: 履行记录删除接口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.delete_jointconstraint_record_ex_async(request, headers, runtime) def delete_jointconstraint_record_ex( self, request: twc_models.DeleteJointconstraintRecordRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.DeleteJointconstraintRecordResponse: """ Description: 删除履行记录 Summary: 履行记录删除接口 """ UtilClient.validate_model(request) return twc_models.DeleteJointconstraintRecordResponse().from_map( self.do_request('1.0', 'twc.notary.jointconstraint.record.delete', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def delete_jointconstraint_record_ex_async( self, request: twc_models.DeleteJointconstraintRecordRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.DeleteJointconstraintRecordResponse: """ Description: 删除履行记录 Summary: 履行记录删除接口 """ UtilClient.validate_model(request) return twc_models.DeleteJointconstraintRecordResponse().from_map( await self.do_request_async('1.0', 'twc.notary.jointconstraint.record.delete', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_jointconstraint_breachrecord( self, request: twc_models.QueryJointconstraintBreachrecordRequest, ) -> twc_models.QueryJointconstraintBreachrecordResponse: """ Description: 查询违约记录 Summary: 违约记录查询接口 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_jointconstraint_breachrecord_ex(request, headers, runtime) async def query_jointconstraint_breachrecord_async( self, request: twc_models.QueryJointconstraintBreachrecordRequest, ) -> twc_models.QueryJointconstraintBreachrecordResponse: """ Description: 查询违约记录 Summary: 违约记录查询接口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_jointconstraint_breachrecord_ex_async(request, headers, runtime) def query_jointconstraint_breachrecord_ex( self, request: twc_models.QueryJointconstraintBreachrecordRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryJointconstraintBreachrecordResponse: """ Description: 查询违约记录 Summary: 违约记录查询接口 """ UtilClient.validate_model(request) return twc_models.QueryJointconstraintBreachrecordResponse().from_map( self.do_request('1.0', 'twc.notary.jointconstraint.breachrecord.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_jointconstraint_breachrecord_ex_async( self, request: twc_models.QueryJointconstraintBreachrecordRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryJointconstraintBreachrecordResponse: """ Description: 查询违约记录 Summary: 违约记录查询接口 """ UtilClient.validate_model(request) return twc_models.QueryJointconstraintBreachrecordResponse().from_map( await self.do_request_async('1.0', 'twc.notary.jointconstraint.breachrecord.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def apply_justice_mediation( self, request: twc_models.ApplyJusticeMediationRequest, ) -> twc_models.ApplyJusticeMediationResponse: """ Description: 提供给第三方调解申请提交 Summary: 调解申请 """ runtime = util_models.RuntimeOptions() headers = {} return self.apply_justice_mediation_ex(request, headers, runtime) async def apply_justice_mediation_async( self, request: twc_models.ApplyJusticeMediationRequest, ) -> twc_models.ApplyJusticeMediationResponse: """ Description: 提供给第三方调解申请提交 Summary: 调解申请 """ runtime = util_models.RuntimeOptions() headers = {} return await self.apply_justice_mediation_ex_async(request, headers, runtime) def apply_justice_mediation_ex( self, request: twc_models.ApplyJusticeMediationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ApplyJusticeMediationResponse: """ Description: 提供给第三方调解申请提交 Summary: 调解申请 """ UtilClient.validate_model(request) return twc_models.ApplyJusticeMediationResponse().from_map( self.do_request('1.0', 'twc.notary.justice.mediation.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def apply_justice_mediation_ex_async( self, request: twc_models.ApplyJusticeMediationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ApplyJusticeMediationResponse: """ Description: 提供给第三方调解申请提交 Summary: 调解申请 """ UtilClient.validate_model(request) return twc_models.ApplyJusticeMediationResponse().from_map( await self.do_request_async('1.0', 'twc.notary.justice.mediation.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_justice_mediation( self, request: twc_models.QueryJusticeMediationRequest, ) -> twc_models.QueryJusticeMediationResponse: """ Description: 调解申请进度查询 Summary: 调解申请进度查询 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_justice_mediation_ex(request, headers, runtime) async def query_justice_mediation_async( self, request: twc_models.QueryJusticeMediationRequest, ) -> twc_models.QueryJusticeMediationResponse: """ Description: 调解申请进度查询 Summary: 调解申请进度查询 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_justice_mediation_ex_async(request, headers, runtime) def query_justice_mediation_ex( self, request: twc_models.QueryJusticeMediationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryJusticeMediationResponse: """ Description: 调解申请进度查询 Summary: 调解申请进度查询 """ UtilClient.validate_model(request) return twc_models.QueryJusticeMediationResponse().from_map( self.do_request('1.0', 'twc.notary.justice.mediation.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_justice_mediation_ex_async( self, request: twc_models.QueryJusticeMediationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryJusticeMediationResponse: """ Description: 调解申请进度查询 Summary: 调解申请进度查询 """ UtilClient.validate_model(request) return twc_models.QueryJusticeMediationResponse().from_map( await self.do_request_async('1.0', 'twc.notary.justice.mediation.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_justice_caseinfo( self, request: twc_models.QueryJusticeCaseinfoRequest, ) -> twc_models.QueryJusticeCaseinfoResponse: """ Description: 汇裁证据要素查询接口 Summary: 汇裁证据要素查询接口 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_justice_caseinfo_ex(request, headers, runtime) async def query_justice_caseinfo_async( self, request: twc_models.QueryJusticeCaseinfoRequest, ) -> twc_models.QueryJusticeCaseinfoResponse: """ Description: 汇裁证据要素查询接口 Summary: 汇裁证据要素查询接口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_justice_caseinfo_ex_async(request, headers, runtime) def query_justice_caseinfo_ex( self, request: twc_models.QueryJusticeCaseinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryJusticeCaseinfoResponse: """ Description: 汇裁证据要素查询接口 Summary: 汇裁证据要素查询接口 """ UtilClient.validate_model(request) return twc_models.QueryJusticeCaseinfoResponse().from_map( self.do_request('1.0', 'twc.notary.justice.caseinfo.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_justice_caseinfo_ex_async( self, request: twc_models.QueryJusticeCaseinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryJusticeCaseinfoResponse: """ Description: 汇裁证据要素查询接口 Summary: 汇裁证据要素查询接口 """ UtilClient.validate_model(request) return twc_models.QueryJusticeCaseinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.justice.caseinfo.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_justice_uploadfilepath( self, request: twc_models.GetJusticeUploadfilepathRequest, ) -> twc_models.GetJusticeUploadfilepathResponse: """ Description: 获取oss文件上传路径,返回业务方oss文件上传链接和fileKey Summary: 获取OSS文件上传路径 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_justice_uploadfilepath_ex(request, headers, runtime) async def get_justice_uploadfilepath_async( self, request: twc_models.GetJusticeUploadfilepathRequest, ) -> twc_models.GetJusticeUploadfilepathResponse: """ Description: 获取oss文件上传路径,返回业务方oss文件上传链接和fileKey Summary: 获取OSS文件上传路径 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_justice_uploadfilepath_ex_async(request, headers, runtime) def get_justice_uploadfilepath_ex( self, request: twc_models.GetJusticeUploadfilepathRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetJusticeUploadfilepathResponse: """ Description: 获取oss文件上传路径,返回业务方oss文件上传链接和fileKey Summary: 获取OSS文件上传路径 """ UtilClient.validate_model(request) return twc_models.GetJusticeUploadfilepathResponse().from_map( self.do_request('1.0', 'twc.notary.justice.uploadfilepath.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_justice_uploadfilepath_ex_async( self, request: twc_models.GetJusticeUploadfilepathRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetJusticeUploadfilepathResponse: """ Description: 获取oss文件上传路径,返回业务方oss文件上传链接和fileKey Summary: 获取OSS文件上传路径 """ UtilClient.validate_model(request) return twc_models.GetJusticeUploadfilepathResponse().from_map( await self.do_request_async('1.0', 'twc.notary.justice.uploadfilepath.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_justice_casewriteback( self, request: twc_models.CreateJusticeCasewritebackRequest, ) -> twc_models.CreateJusticeCasewritebackResponse: """ Description: 纠纷处理平台提供回调接口供业务平台自动插入案件模型中,业务方需要调用回写接口创建案件。 Summary: 自动进件案件回写 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_justice_casewriteback_ex(request, headers, runtime) async def create_justice_casewriteback_async( self, request: twc_models.CreateJusticeCasewritebackRequest, ) -> twc_models.CreateJusticeCasewritebackResponse: """ Description: 纠纷处理平台提供回调接口供业务平台自动插入案件模型中,业务方需要调用回写接口创建案件。 Summary: 自动进件案件回写 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_justice_casewriteback_ex_async(request, headers, runtime) def create_justice_casewriteback_ex( self, request: twc_models.CreateJusticeCasewritebackRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateJusticeCasewritebackResponse: """ Description: 纠纷处理平台提供回调接口供业务平台自动插入案件模型中,业务方需要调用回写接口创建案件。 Summary: 自动进件案件回写 """ UtilClient.validate_model(request) return twc_models.CreateJusticeCasewritebackResponse().from_map( self.do_request('1.0', 'twc.notary.justice.casewriteback.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_justice_casewriteback_ex_async( self, request: twc_models.CreateJusticeCasewritebackRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateJusticeCasewritebackResponse: """ Description: 纠纷处理平台提供回调接口供业务平台自动插入案件模型中,业务方需要调用回写接口创建案件。 Summary: 自动进件案件回写 """ UtilClient.validate_model(request) return twc_models.CreateJusticeCasewritebackResponse().from_map( await self.do_request_async('1.0', 'twc.notary.justice.casewriteback.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def update_lease_contract( self, request: twc_models.UpdateLeaseContractRequest, ) -> twc_models.UpdateLeaseContractResponse: """ Description: 升级融资租赁合约 Summary: 升级融资租赁合约 """ runtime = util_models.RuntimeOptions() headers = {} return self.update_lease_contract_ex(request, headers, runtime) async def update_lease_contract_async( self, request: twc_models.UpdateLeaseContractRequest, ) -> twc_models.UpdateLeaseContractResponse: """ Description: 升级融资租赁合约 Summary: 升级融资租赁合约 """ runtime = util_models.RuntimeOptions() headers = {} return await self.update_lease_contract_ex_async(request, headers, runtime) def update_lease_contract_ex( self, request: twc_models.UpdateLeaseContractRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateLeaseContractResponse: """ Description: 升级融资租赁合约 Summary: 升级融资租赁合约 """ UtilClient.validate_model(request) return twc_models.UpdateLeaseContractResponse().from_map( self.do_request('1.0', 'twc.notary.lease.contract.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def update_lease_contract_ex_async( self, request: twc_models.UpdateLeaseContractRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateLeaseContractResponse: """ Description: 升级融资租赁合约 Summary: 升级融资租赁合约 """ UtilClient.validate_model(request) return twc_models.UpdateLeaseContractResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.contract.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_assetagentregister( self, request: twc_models.CreateLeaseAssetagentregisterRequest, ) -> twc_models.CreateLeaseAssetagentregisterResponse: """ Description: 租赁平台isv模式代理商户入驻 Summary: 租赁平台isv模式代理商户入驻 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_assetagentregister_ex(request, headers, runtime) async def create_lease_assetagentregister_async( self, request: twc_models.CreateLeaseAssetagentregisterRequest, ) -> twc_models.CreateLeaseAssetagentregisterResponse: """ Description: 租赁平台isv模式代理商户入驻 Summary: 租赁平台isv模式代理商户入驻 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_assetagentregister_ex_async(request, headers, runtime) def create_lease_assetagentregister_ex( self, request: twc_models.CreateLeaseAssetagentregisterRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseAssetagentregisterResponse: """ Description: 租赁平台isv模式代理商户入驻 Summary: 租赁平台isv模式代理商户入驻 """ UtilClient.validate_model(request) return twc_models.CreateLeaseAssetagentregisterResponse().from_map( self.do_request('1.0', 'twc.notary.lease.assetagentregister.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_assetagentregister_ex_async( self, request: twc_models.CreateLeaseAssetagentregisterRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseAssetagentregisterResponse: """ Description: 租赁平台isv模式代理商户入驻 Summary: 租赁平台isv模式代理商户入驻 """ UtilClient.validate_model(request) return twc_models.CreateLeaseAssetagentregisterResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.assetagentregister.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_lease_productinfo( self, request: twc_models.QueryLeaseProductinfoRequest, ) -> twc_models.QueryLeaseProductinfoResponse: """ Description: 融资租赁商品信息查询接口 Summary: 融资租赁商品信息查询接口 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_lease_productinfo_ex(request, headers, runtime) async def query_lease_productinfo_async( self, request: twc_models.QueryLeaseProductinfoRequest, ) -> twc_models.QueryLeaseProductinfoResponse: """ Description: 融资租赁商品信息查询接口 Summary: 融资租赁商品信息查询接口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_lease_productinfo_ex_async(request, headers, runtime) def query_lease_productinfo_ex( self, request: twc_models.QueryLeaseProductinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseProductinfoResponse: """ Description: 融资租赁商品信息查询接口 Summary: 融资租赁商品信息查询接口 """ UtilClient.validate_model(request) return twc_models.QueryLeaseProductinfoResponse().from_map( self.do_request('1.0', 'twc.notary.lease.productinfo.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_lease_productinfo_ex_async( self, request: twc_models.QueryLeaseProductinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseProductinfoResponse: """ Description: 融资租赁商品信息查询接口 Summary: 融资租赁商品信息查询接口 """ UtilClient.validate_model(request) return twc_models.QueryLeaseProductinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.productinfo.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def sync_lease_supplierorderstatus( self, request: twc_models.SyncLeaseSupplierorderstatusRequest, ) -> twc_models.SyncLeaseSupplierorderstatusResponse: """ Description: 同步采购平台订单状态 Summary: 同步采购平台订单状态 """ runtime = util_models.RuntimeOptions() headers = {} return self.sync_lease_supplierorderstatus_ex(request, headers, runtime) async def sync_lease_supplierorderstatus_async( self, request: twc_models.SyncLeaseSupplierorderstatusRequest, ) -> twc_models.SyncLeaseSupplierorderstatusResponse: """ Description: 同步采购平台订单状态 Summary: 同步采购平台订单状态 """ runtime = util_models.RuntimeOptions() headers = {} return await self.sync_lease_supplierorderstatus_ex_async(request, headers, runtime) def sync_lease_supplierorderstatus_ex( self, request: twc_models.SyncLeaseSupplierorderstatusRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SyncLeaseSupplierorderstatusResponse: """ Description: 同步采购平台订单状态 Summary: 同步采购平台订单状态 """ UtilClient.validate_model(request) return twc_models.SyncLeaseSupplierorderstatusResponse().from_map( self.do_request('1.0', 'twc.notary.lease.supplierorderstatus.sync', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def sync_lease_supplierorderstatus_ex_async( self, request: twc_models.SyncLeaseSupplierorderstatusRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SyncLeaseSupplierorderstatusResponse: """ Description: 同步采购平台订单状态 Summary: 同步采购平台订单状态 """ UtilClient.validate_model(request) return twc_models.SyncLeaseSupplierorderstatusResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.supplierorderstatus.sync', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def init_lease_supplier( self, request: twc_models.InitLeaseSupplierRequest, ) -> twc_models.InitLeaseSupplierResponse: """ Description: 采购供应商初始化 Summary: 采购供应商初始化 """ runtime = util_models.RuntimeOptions() headers = {} return self.init_lease_supplier_ex(request, headers, runtime) async def init_lease_supplier_async( self, request: twc_models.InitLeaseSupplierRequest, ) -> twc_models.InitLeaseSupplierResponse: """ Description: 采购供应商初始化 Summary: 采购供应商初始化 """ runtime = util_models.RuntimeOptions() headers = {} return await self.init_lease_supplier_ex_async(request, headers, runtime) def init_lease_supplier_ex( self, request: twc_models.InitLeaseSupplierRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.InitLeaseSupplierResponse: """ Description: 采购供应商初始化 Summary: 采购供应商初始化 """ UtilClient.validate_model(request) return twc_models.InitLeaseSupplierResponse().from_map( self.do_request('1.0', 'twc.notary.lease.supplier.init', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def init_lease_supplier_ex_async( self, request: twc_models.InitLeaseSupplierRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.InitLeaseSupplierResponse: """ Description: 采购供应商初始化 Summary: 采购供应商初始化 """ UtilClient.validate_model(request) return twc_models.InitLeaseSupplierResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.supplier.init', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def finish_lease_supplierstatus( self, request: twc_models.FinishLeaseSupplierstatusRequest, ) -> twc_models.FinishLeaseSupplierstatusResponse: """ Description: 租赁订单接收采购平台的采购状态信息,完成采购流程 Summary: 租赁订单接收采购状态信息,完成采购流程 """ runtime = util_models.RuntimeOptions() headers = {} return self.finish_lease_supplierstatus_ex(request, headers, runtime) async def finish_lease_supplierstatus_async( self, request: twc_models.FinishLeaseSupplierstatusRequest, ) -> twc_models.FinishLeaseSupplierstatusResponse: """ Description: 租赁订单接收采购平台的采购状态信息,完成采购流程 Summary: 租赁订单接收采购状态信息,完成采购流程 """ runtime = util_models.RuntimeOptions() headers = {} return await self.finish_lease_supplierstatus_ex_async(request, headers, runtime) def finish_lease_supplierstatus_ex( self, request: twc_models.FinishLeaseSupplierstatusRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.FinishLeaseSupplierstatusResponse: """ Description: 租赁订单接收采购平台的采购状态信息,完成采购流程 Summary: 租赁订单接收采购状态信息,完成采购流程 """ UtilClient.validate_model(request) return twc_models.FinishLeaseSupplierstatusResponse().from_map( self.do_request('1.0', 'twc.notary.lease.supplierstatus.finish', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def finish_lease_supplierstatus_ex_async( self, request: twc_models.FinishLeaseSupplierstatusRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.FinishLeaseSupplierstatusResponse: """ Description: 租赁订单接收采购平台的采购状态信息,完成采购流程 Summary: 租赁订单接收采购状态信息,完成采购流程 """ UtilClient.validate_model(request) return twc_models.FinishLeaseSupplierstatusResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.supplierstatus.finish', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_supplierproduct( self, request: twc_models.CreateLeaseSupplierproductRequest, ) -> twc_models.CreateLeaseSupplierproductResponse: """ Description: 采购商品初始化 Summary: 采购商品初始化 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_supplierproduct_ex(request, headers, runtime) async def create_lease_supplierproduct_async( self, request: twc_models.CreateLeaseSupplierproductRequest, ) -> twc_models.CreateLeaseSupplierproductResponse: """ Description: 采购商品初始化 Summary: 采购商品初始化 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_supplierproduct_ex_async(request, headers, runtime) def create_lease_supplierproduct_ex( self, request: twc_models.CreateLeaseSupplierproductRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseSupplierproductResponse: """ Description: 采购商品初始化 Summary: 采购商品初始化 """ UtilClient.validate_model(request) return twc_models.CreateLeaseSupplierproductResponse().from_map( self.do_request('1.0', 'twc.notary.lease.supplierproduct.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_supplierproduct_ex_async( self, request: twc_models.CreateLeaseSupplierproductRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseSupplierproductResponse: """ Description: 采购商品初始化 Summary: 采购商品初始化 """ UtilClient.validate_model(request) return twc_models.CreateLeaseSupplierproductResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.supplierproduct.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def apply_lease_supplierorder( self, request: twc_models.ApplyLeaseSupplierorderRequest, ) -> twc_models.ApplyLeaseSupplierorderResponse: """ Description: 链上采购申请 Summary: 链上采购申请 """ runtime = util_models.RuntimeOptions() headers = {} return self.apply_lease_supplierorder_ex(request, headers, runtime) async def apply_lease_supplierorder_async( self, request: twc_models.ApplyLeaseSupplierorderRequest, ) -> twc_models.ApplyLeaseSupplierorderResponse: """ Description: 链上采购申请 Summary: 链上采购申请 """ runtime = util_models.RuntimeOptions() headers = {} return await self.apply_lease_supplierorder_ex_async(request, headers, runtime) def apply_lease_supplierorder_ex( self, request: twc_models.ApplyLeaseSupplierorderRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ApplyLeaseSupplierorderResponse: """ Description: 链上采购申请 Summary: 链上采购申请 """ UtilClient.validate_model(request) return twc_models.ApplyLeaseSupplierorderResponse().from_map( self.do_request('1.0', 'twc.notary.lease.supplierorder.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def apply_lease_supplierorder_ex_async( self, request: twc_models.ApplyLeaseSupplierorderRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ApplyLeaseSupplierorderResponse: """ Description: 链上采购申请 Summary: 链上采购申请 """ UtilClient.validate_model(request) return twc_models.ApplyLeaseSupplierorderResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.supplierorder.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_financecertify( self, request: twc_models.CreateLeaseFinancecertifyRequest, ) -> twc_models.CreateLeaseFinancecertifyResponse: """ Description: 创建融资租赁提前还款人脸认证信息 Summary: 创建融资租赁提前还款人脸认证信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_financecertify_ex(request, headers, runtime) async def create_lease_financecertify_async( self, request: twc_models.CreateLeaseFinancecertifyRequest, ) -> twc_models.CreateLeaseFinancecertifyResponse: """ Description: 创建融资租赁提前还款人脸认证信息 Summary: 创建融资租赁提前还款人脸认证信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_financecertify_ex_async(request, headers, runtime) def create_lease_financecertify_ex( self, request: twc_models.CreateLeaseFinancecertifyRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseFinancecertifyResponse: """ Description: 创建融资租赁提前还款人脸认证信息 Summary: 创建融资租赁提前还款人脸认证信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseFinancecertifyResponse().from_map( self.do_request('1.0', 'twc.notary.lease.financecertify.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_financecertify_ex_async( self, request: twc_models.CreateLeaseFinancecertifyRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseFinancecertifyResponse: """ Description: 创建融资租赁提前还款人脸认证信息 Summary: 创建融资租赁提前还款人脸认证信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseFinancecertifyResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.financecertify.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_lease_financecertify( self, request: twc_models.QueryLeaseFinancecertifyRequest, ) -> twc_models.QueryLeaseFinancecertifyResponse: """ Description: 融资租赁提前还款人脸识别核验 Summary: 融资租赁提前还款人脸识别核验 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_lease_financecertify_ex(request, headers, runtime) async def query_lease_financecertify_async( self, request: twc_models.QueryLeaseFinancecertifyRequest, ) -> twc_models.QueryLeaseFinancecertifyResponse: """ Description: 融资租赁提前还款人脸识别核验 Summary: 融资租赁提前还款人脸识别核验 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_lease_financecertify_ex_async(request, headers, runtime) def query_lease_financecertify_ex( self, request: twc_models.QueryLeaseFinancecertifyRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseFinancecertifyResponse: """ Description: 融资租赁提前还款人脸识别核验 Summary: 融资租赁提前还款人脸识别核验 """ UtilClient.validate_model(request) return twc_models.QueryLeaseFinancecertifyResponse().from_map( self.do_request('1.0', 'twc.notary.lease.financecertify.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_lease_financecertify_ex_async( self, request: twc_models.QueryLeaseFinancecertifyRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseFinancecertifyResponse: """ Description: 融资租赁提前还款人脸识别核验 Summary: 融资租赁提前还款人脸识别核验 """ UtilClient.validate_model(request) return twc_models.QueryLeaseFinancecertifyResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.financecertify.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_lease_financecertifyincontract( self, request: twc_models.QueryLeaseFinancecertifyincontractRequest, ) -> twc_models.QueryLeaseFinancecertifyincontractResponse: """ Description: 查询融资租赁合约内核验结果 Summary: 查询融资租赁合约内核验结果 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_lease_financecertifyincontract_ex(request, headers, runtime) async def query_lease_financecertifyincontract_async( self, request: twc_models.QueryLeaseFinancecertifyincontractRequest, ) -> twc_models.QueryLeaseFinancecertifyincontractResponse: """ Description: 查询融资租赁合约内核验结果 Summary: 查询融资租赁合约内核验结果 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_lease_financecertifyincontract_ex_async(request, headers, runtime) def query_lease_financecertifyincontract_ex( self, request: twc_models.QueryLeaseFinancecertifyincontractRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseFinancecertifyincontractResponse: """ Description: 查询融资租赁合约内核验结果 Summary: 查询融资租赁合约内核验结果 """ UtilClient.validate_model(request) return twc_models.QueryLeaseFinancecertifyincontractResponse().from_map( self.do_request('1.0', 'twc.notary.lease.financecertifyincontract.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_lease_financecertifyincontract_ex_async( self, request: twc_models.QueryLeaseFinancecertifyincontractRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseFinancecertifyincontractResponse: """ Description: 查询融资租赁合约内核验结果 Summary: 查询融资租赁合约内核验结果 """ UtilClient.validate_model(request) return twc_models.QueryLeaseFinancecertifyincontractResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.financecertifyincontract.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_witness_flow( self, request: twc_models.CreateWitnessFlowRequest, ) -> twc_models.CreateWitnessFlowResponse: """ Description: 创建签署见证流程 Summary: 创建见证流程 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_witness_flow_ex(request, headers, runtime) async def create_witness_flow_async( self, request: twc_models.CreateWitnessFlowRequest, ) -> twc_models.CreateWitnessFlowResponse: """ Description: 创建签署见证流程 Summary: 创建见证流程 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_witness_flow_ex_async(request, headers, runtime) def create_witness_flow_ex( self, request: twc_models.CreateWitnessFlowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateWitnessFlowResponse: """ Description: 创建签署见证流程 Summary: 创建见证流程 """ UtilClient.validate_model(request) return twc_models.CreateWitnessFlowResponse().from_map( self.do_request('1.0', 'twc.notary.witness.flow.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_witness_flow_ex_async( self, request: twc_models.CreateWitnessFlowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateWitnessFlowResponse: """ Description: 创建签署见证流程 Summary: 创建见证流程 """ UtilClient.validate_model(request) return twc_models.CreateWitnessFlowResponse().from_map( await self.do_request_async('1.0', 'twc.notary.witness.flow.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def save_witness_snapshot( self, request: twc_models.SaveWitnessSnapshotRequest, ) -> twc_models.SaveWitnessSnapshotResponse: """ Description: 保存见证流程快照数据 Summary: 保存见证流程快照数据 """ runtime = util_models.RuntimeOptions() headers = {} return self.save_witness_snapshot_ex(request, headers, runtime) async def save_witness_snapshot_async( self, request: twc_models.SaveWitnessSnapshotRequest, ) -> twc_models.SaveWitnessSnapshotResponse: """ Description: 保存见证流程快照数据 Summary: 保存见证流程快照数据 """ runtime = util_models.RuntimeOptions() headers = {} return await self.save_witness_snapshot_ex_async(request, headers, runtime) def save_witness_snapshot_ex( self, request: twc_models.SaveWitnessSnapshotRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SaveWitnessSnapshotResponse: """ Description: 保存见证流程快照数据 Summary: 保存见证流程快照数据 """ UtilClient.validate_model(request) return twc_models.SaveWitnessSnapshotResponse().from_map( self.do_request('1.0', 'twc.notary.witness.snapshot.save', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def save_witness_snapshot_ex_async( self, request: twc_models.SaveWitnessSnapshotRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SaveWitnessSnapshotResponse: """ Description: 保存见证流程快照数据 Summary: 保存见证流程快照数据 """ UtilClient.validate_model(request) return twc_models.SaveWitnessSnapshotResponse().from_map( await self.do_request_async('1.0', 'twc.notary.witness.snapshot.save', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def check_witness_signaccess( self, request: twc_models.CheckWitnessSignaccessRequest, ) -> twc_models.CheckWitnessSignaccessResponse: """ Description: 见证流程签署权限校验 Summary: 见证流程签署权限校验 """ runtime = util_models.RuntimeOptions() headers = {} return self.check_witness_signaccess_ex(request, headers, runtime) async def check_witness_signaccess_async( self, request: twc_models.CheckWitnessSignaccessRequest, ) -> twc_models.CheckWitnessSignaccessResponse: """ Description: 见证流程签署权限校验 Summary: 见证流程签署权限校验 """ runtime = util_models.RuntimeOptions() headers = {} return await self.check_witness_signaccess_ex_async(request, headers, runtime) def check_witness_signaccess_ex( self, request: twc_models.CheckWitnessSignaccessRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CheckWitnessSignaccessResponse: """ Description: 见证流程签署权限校验 Summary: 见证流程签署权限校验 """ UtilClient.validate_model(request) return twc_models.CheckWitnessSignaccessResponse().from_map( self.do_request('1.0', 'twc.notary.witness.signaccess.check', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def check_witness_signaccess_ex_async( self, request: twc_models.CheckWitnessSignaccessRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CheckWitnessSignaccessResponse: """ Description: 见证流程签署权限校验 Summary: 见证流程签署权限校验 """ UtilClient.validate_model(request) return twc_models.CheckWitnessSignaccessResponse().from_map( await self.do_request_async('1.0', 'twc.notary.witness.signaccess.check', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def auth_witness_flow( self, request: twc_models.AuthWitnessFlowRequest, ) -> twc_models.AuthWitnessFlowResponse: """ Description: 见证流程签署 Summary: 见证流程签署 """ runtime = util_models.RuntimeOptions() headers = {} return self.auth_witness_flow_ex(request, headers, runtime) async def auth_witness_flow_async( self, request: twc_models.AuthWitnessFlowRequest, ) -> twc_models.AuthWitnessFlowResponse: """ Description: 见证流程签署 Summary: 见证流程签署 """ runtime = util_models.RuntimeOptions() headers = {} return await self.auth_witness_flow_ex_async(request, headers, runtime) def auth_witness_flow_ex( self, request: twc_models.AuthWitnessFlowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.AuthWitnessFlowResponse: """ Description: 见证流程签署 Summary: 见证流程签署 """ UtilClient.validate_model(request) return twc_models.AuthWitnessFlowResponse().from_map( self.do_request('1.0', 'twc.notary.witness.flow.auth', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def auth_witness_flow_ex_async( self, request: twc_models.AuthWitnessFlowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.AuthWitnessFlowResponse: """ Description: 见证流程签署 Summary: 见证流程签署 """ UtilClient.validate_model(request) return twc_models.AuthWitnessFlowResponse().from_map( await self.do_request_async('1.0', 'twc.notary.witness.flow.auth', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def confirm_witness_flow( self, request: twc_models.ConfirmWitnessFlowRequest, ) -> twc_models.ConfirmWitnessFlowResponse: """ Description: 见证流程签署确认 Summary: 见证流程签署确认 """ runtime = util_models.RuntimeOptions() headers = {} return self.confirm_witness_flow_ex(request, headers, runtime) async def confirm_witness_flow_async( self, request: twc_models.ConfirmWitnessFlowRequest, ) -> twc_models.ConfirmWitnessFlowResponse: """ Description: 见证流程签署确认 Summary: 见证流程签署确认 """ runtime = util_models.RuntimeOptions() headers = {} return await self.confirm_witness_flow_ex_async(request, headers, runtime) def confirm_witness_flow_ex( self, request: twc_models.ConfirmWitnessFlowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ConfirmWitnessFlowResponse: """ Description: 见证流程签署确认 Summary: 见证流程签署确认 """ UtilClient.validate_model(request) return twc_models.ConfirmWitnessFlowResponse().from_map( self.do_request('1.0', 'twc.notary.witness.flow.confirm', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def confirm_witness_flow_ex_async( self, request: twc_models.ConfirmWitnessFlowRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ConfirmWitnessFlowResponse: """ Description: 见证流程签署确认 Summary: 见证流程签署确认 """ UtilClient.validate_model(request) return twc_models.ConfirmWitnessFlowResponse().from_map( await self.do_request_async('1.0', 'twc.notary.witness.flow.confirm', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_trans( self, request: twc_models.CreateTransRequest, ) -> twc_models.CreateTransResponse: """ Description: 获取存证事务ID Summary: 获取存证事务ID """ runtime = util_models.RuntimeOptions() headers = {} return self.create_trans_ex(request, headers, runtime) async def create_trans_async( self, request: twc_models.CreateTransRequest, ) -> twc_models.CreateTransResponse: """ Description: 获取存证事务ID Summary: 获取存证事务ID """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_trans_ex_async(request, headers, runtime) def create_trans_ex( self, request: twc_models.CreateTransRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateTransResponse: """ Description: 获取存证事务ID Summary: 获取存证事务ID """ UtilClient.validate_model(request) return twc_models.CreateTransResponse().from_map( self.do_request('1.0', 'twc.notary.trans.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_trans_ex_async( self, request: twc_models.CreateTransRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateTransResponse: """ Description: 获取存证事务ID Summary: 获取存证事务ID """ UtilClient.validate_model(request) return twc_models.CreateTransResponse().from_map( await self.do_request_async('1.0', 'twc.notary.trans.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_trans( self, request: twc_models.GetTransRequest, ) -> twc_models.GetTransResponse: """ Description: 通过存证事务Token,获取事务中所有的存证信息 Summary: 获取事务中所有的存证信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_trans_ex(request, headers, runtime) async def get_trans_async( self, request: twc_models.GetTransRequest, ) -> twc_models.GetTransResponse: """ Description: 通过存证事务Token,获取事务中所有的存证信息 Summary: 获取事务中所有的存证信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_trans_ex_async(request, headers, runtime) def get_trans_ex( self, request: twc_models.GetTransRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetTransResponse: """ Description: 通过存证事务Token,获取事务中所有的存证信息 Summary: 获取事务中所有的存证信息 """ UtilClient.validate_model(request) return twc_models.GetTransResponse().from_map( self.do_request('1.0', 'twc.notary.trans.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_trans_ex_async( self, request: twc_models.GetTransRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetTransResponse: """ Description: 通过存证事务Token,获取事务中所有的存证信息 Summary: 获取事务中所有的存证信息 """ UtilClient.validate_model(request) return twc_models.GetTransResponse().from_map( await self.do_request_async('1.0', 'twc.notary.trans.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_text( self, request: twc_models.CreateTextRequest, ) -> twc_models.CreateTextResponse: """ Description: 发起文本存证,将文本内容存证上链 Summary: 文本存证,将文本内容存证上链 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_text_ex(request, headers, runtime) async def create_text_async( self, request: twc_models.CreateTextRequest, ) -> twc_models.CreateTextResponse: """ Description: 发起文本存证,将文本内容存证上链 Summary: 文本存证,将文本内容存证上链 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_text_ex_async(request, headers, runtime) def create_text_ex( self, request: twc_models.CreateTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateTextResponse: """ Description: 发起文本存证,将文本内容存证上链 Summary: 文本存证,将文本内容存证上链 """ UtilClient.validate_model(request) return twc_models.CreateTextResponse().from_map( self.do_request('1.0', 'twc.notary.text.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_text_ex_async( self, request: twc_models.CreateTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateTextResponse: """ Description: 发起文本存证,将文本内容存证上链 Summary: 文本存证,将文本内容存证上链 """ UtilClient.validate_model(request) return twc_models.CreateTextResponse().from_map( await self.do_request_async('1.0', 'twc.notary.text.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_text( self, request: twc_models.GetTextRequest, ) -> twc_models.GetTextResponse: """ Description: 用户通过交易哈希获取自己上传的文本存证内容 Summary: 获取文本存证内容 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_text_ex(request, headers, runtime) async def get_text_async( self, request: twc_models.GetTextRequest, ) -> twc_models.GetTextResponse: """ Description: 用户通过交易哈希获取自己上传的文本存证内容 Summary: 获取文本存证内容 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_text_ex_async(request, headers, runtime) def get_text_ex( self, request: twc_models.GetTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetTextResponse: """ Description: 用户通过交易哈希获取自己上传的文本存证内容 Summary: 获取文本存证内容 """ UtilClient.validate_model(request) return twc_models.GetTextResponse().from_map( self.do_request('1.0', 'twc.notary.text.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_text_ex_async( self, request: twc_models.GetTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetTextResponse: """ Description: 用户通过交易哈希获取自己上传的文本存证内容 Summary: 获取文本存证内容 """ UtilClient.validate_model(request) return twc_models.GetTextResponse().from_map( await self.do_request_async('1.0', 'twc.notary.text.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_file( self, request: twc_models.CreateFileRequest, ) -> twc_models.CreateFileResponse: """ Description: 发起文件存证,将文件内容存证上链 Summary: 文件内容存证上链 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_file_ex(request, headers, runtime) async def create_file_async( self, request: twc_models.CreateFileRequest, ) -> twc_models.CreateFileResponse: """ Description: 发起文件存证,将文件内容存证上链 Summary: 文件内容存证上链 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_file_ex_async(request, headers, runtime) def create_file_ex( self, request: twc_models.CreateFileRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateFileResponse: """ Description: 发起文件存证,将文件内容存证上链 Summary: 文件内容存证上链 """ UtilClient.validate_model(request) return twc_models.CreateFileResponse().from_map( self.do_request('1.0', 'twc.notary.file.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_file_ex_async( self, request: twc_models.CreateFileRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateFileResponse: """ Description: 发起文件存证,将文件内容存证上链 Summary: 文件内容存证上链 """ UtilClient.validate_model(request) return twc_models.CreateFileResponse().from_map( await self.do_request_async('1.0', 'twc.notary.file.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_file( self, request: twc_models.GetFileRequest, ) -> twc_models.GetFileResponse: """ Description: 用户通过交易哈希获取自己上传的文件存证oss下载地址 Summary: 获取文件存证oss下载地址 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_file_ex(request, headers, runtime) async def get_file_async( self, request: twc_models.GetFileRequest, ) -> twc_models.GetFileResponse: """ Description: 用户通过交易哈希获取自己上传的文件存证oss下载地址 Summary: 获取文件存证oss下载地址 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_file_ex_async(request, headers, runtime) def get_file_ex( self, request: twc_models.GetFileRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetFileResponse: """ Description: 用户通过交易哈希获取自己上传的文件存证oss下载地址 Summary: 获取文件存证oss下载地址 """ UtilClient.validate_model(request) return twc_models.GetFileResponse().from_map( self.do_request('1.0', 'twc.notary.file.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_file_ex_async( self, request: twc_models.GetFileRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetFileResponse: """ Description: 用户通过交易哈希获取自己上传的文件存证oss下载地址 Summary: 获取文件存证oss下载地址 """ UtilClient.validate_model(request) return twc_models.GetFileResponse().from_map( await self.do_request_async('1.0', 'twc.notary.file.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_source( self, request: twc_models.CreateSourceRequest, ) -> twc_models.CreateSourceResponse: """ Description: 发起原文存证,将原文内容存证上链 Summary: 原文内容存证 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_source_ex(request, headers, runtime) async def create_source_async( self, request: twc_models.CreateSourceRequest, ) -> twc_models.CreateSourceResponse: """ Description: 发起原文存证,将原文内容存证上链 Summary: 原文内容存证 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_source_ex_async(request, headers, runtime) def create_source_ex( self, request: twc_models.CreateSourceRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateSourceResponse: """ Description: 发起原文存证,将原文内容存证上链 Summary: 原文内容存证 """ UtilClient.validate_model(request) return twc_models.CreateSourceResponse().from_map( self.do_request('1.0', 'twc.notary.source.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_source_ex_async( self, request: twc_models.CreateSourceRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateSourceResponse: """ Description: 发起原文存证,将原文内容存证上链 Summary: 原文内容存证 """ UtilClient.validate_model(request) return twc_models.CreateSourceResponse().from_map( await self.do_request_async('1.0', 'twc.notary.source.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_source( self, request: twc_models.GetSourceRequest, ) -> twc_models.GetSourceResponse: """ Description: 用户通过交易哈希获取自己上传的原文存证oss下载地址 Summary: 获取原文存证oss下载地址 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_source_ex(request, headers, runtime) async def get_source_async( self, request: twc_models.GetSourceRequest, ) -> twc_models.GetSourceResponse: """ Description: 用户通过交易哈希获取自己上传的原文存证oss下载地址 Summary: 获取原文存证oss下载地址 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_source_ex_async(request, headers, runtime) def get_source_ex( self, request: twc_models.GetSourceRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetSourceResponse: """ Description: 用户通过交易哈希获取自己上传的原文存证oss下载地址 Summary: 获取原文存证oss下载地址 """ UtilClient.validate_model(request) return twc_models.GetSourceResponse().from_map( self.do_request('1.0', 'twc.notary.source.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_source_ex_async( self, request: twc_models.GetSourceRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetSourceResponse: """ Description: 用户通过交易哈希获取自己上传的原文存证oss下载地址 Summary: 获取原文存证oss下载地址 """ UtilClient.validate_model(request) return twc_models.GetSourceResponse().from_map( await self.do_request_async('1.0', 'twc.notary.source.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def check_status( self, request: twc_models.CheckStatusRequest, ) -> twc_models.CheckStatusResponse: """ Description: 创建存证后,使用存证凭据核验存证状态。 Summary: 存证内容核验 """ runtime = util_models.RuntimeOptions() headers = {} return self.check_status_ex(request, headers, runtime) async def check_status_async( self, request: twc_models.CheckStatusRequest, ) -> twc_models.CheckStatusResponse: """ Description: 创建存证后,使用存证凭据核验存证状态。 Summary: 存证内容核验 """ runtime = util_models.RuntimeOptions() headers = {} return await self.check_status_ex_async(request, headers, runtime) def check_status_ex( self, request: twc_models.CheckStatusRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CheckStatusResponse: """ Description: 创建存证后,使用存证凭据核验存证状态。 Summary: 存证内容核验 """ UtilClient.validate_model(request) return twc_models.CheckStatusResponse().from_map( self.do_request('1.0', 'twc.notary.status.check', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def check_status_ex_async( self, request: twc_models.CheckStatusRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CheckStatusResponse: """ Description: 创建存证后,使用存证凭据核验存证状态。 Summary: 存证内容核验 """ UtilClient.validate_model(request) return twc_models.CheckStatusResponse().from_map( await self.do_request_async('1.0', 'twc.notary.status.check', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def deploy_lease_contract( self, request: twc_models.DeployLeaseContractRequest, ) -> twc_models.DeployLeaseContractResponse: """ Description: 融资服务平台部署合约 Summary: 融资服务平台部署合约 """ runtime = util_models.RuntimeOptions() headers = {} return self.deploy_lease_contract_ex(request, headers, runtime) async def deploy_lease_contract_async( self, request: twc_models.DeployLeaseContractRequest, ) -> twc_models.DeployLeaseContractResponse: """ Description: 融资服务平台部署合约 Summary: 融资服务平台部署合约 """ runtime = util_models.RuntimeOptions() headers = {} return await self.deploy_lease_contract_ex_async(request, headers, runtime) def deploy_lease_contract_ex( self, request: twc_models.DeployLeaseContractRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.DeployLeaseContractResponse: """ Description: 融资服务平台部署合约 Summary: 融资服务平台部署合约 """ UtilClient.validate_model(request) return twc_models.DeployLeaseContractResponse().from_map( self.do_request('1.0', 'twc.notary.lease.contract.deploy', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def deploy_lease_contract_ex_async( self, request: twc_models.DeployLeaseContractRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.DeployLeaseContractResponse: """ Description: 融资服务平台部署合约 Summary: 融资服务平台部署合约 """ UtilClient.validate_model(request) return twc_models.DeployLeaseContractResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.contract.deploy', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_productinfo( self, request: twc_models.CreateLeaseProductinfoRequest, ) -> twc_models.CreateLeaseProductinfoResponse: """ Description: 融资服务平台上传商品类别信息 Summary: 融资服务平台上传商品类别信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_productinfo_ex(request, headers, runtime) async def create_lease_productinfo_async( self, request: twc_models.CreateLeaseProductinfoRequest, ) -> twc_models.CreateLeaseProductinfoResponse: """ Description: 融资服务平台上传商品类别信息 Summary: 融资服务平台上传商品类别信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_productinfo_ex_async(request, headers, runtime) def create_lease_productinfo_ex( self, request: twc_models.CreateLeaseProductinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseProductinfoResponse: """ Description: 融资服务平台上传商品类别信息 Summary: 融资服务平台上传商品类别信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseProductinfoResponse().from_map( self.do_request('1.0', 'twc.notary.lease.productinfo.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_productinfo_ex_async( self, request: twc_models.CreateLeaseProductinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseProductinfoResponse: """ Description: 融资服务平台上传商品类别信息 Summary: 融资服务平台上传商品类别信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseProductinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.productinfo.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def auth_lease_contract( self, request: twc_models.AuthLeaseContractRequest, ) -> twc_models.AuthLeaseContractResponse: """ Description: 租赁服务平台授权融资服务平台 Summary: 租赁服务平台授权融资服务平台 """ runtime = util_models.RuntimeOptions() headers = {} return self.auth_lease_contract_ex(request, headers, runtime) async def auth_lease_contract_async( self, request: twc_models.AuthLeaseContractRequest, ) -> twc_models.AuthLeaseContractResponse: """ Description: 租赁服务平台授权融资服务平台 Summary: 租赁服务平台授权融资服务平台 """ runtime = util_models.RuntimeOptions() headers = {} return await self.auth_lease_contract_ex_async(request, headers, runtime) def auth_lease_contract_ex( self, request: twc_models.AuthLeaseContractRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.AuthLeaseContractResponse: """ Description: 租赁服务平台授权融资服务平台 Summary: 租赁服务平台授权融资服务平台 """ UtilClient.validate_model(request) return twc_models.AuthLeaseContractResponse().from_map( self.do_request('1.0', 'twc.notary.lease.contract.auth', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def auth_lease_contract_ex_async( self, request: twc_models.AuthLeaseContractRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.AuthLeaseContractResponse: """ Description: 租赁服务平台授权融资服务平台 Summary: 租赁服务平台授权融资服务平台 """ UtilClient.validate_model(request) return twc_models.AuthLeaseContractResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.contract.auth', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_userinfo( self, request: twc_models.CreateLeaseUserinfoRequest, ) -> twc_models.CreateLeaseUserinfoResponse: """ Description: 租赁服务平台上传用户信息 Summary: 租赁服务平台上传用户信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_userinfo_ex(request, headers, runtime) async def create_lease_userinfo_async( self, request: twc_models.CreateLeaseUserinfoRequest, ) -> twc_models.CreateLeaseUserinfoResponse: """ Description: 租赁服务平台上传用户信息 Summary: 租赁服务平台上传用户信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_userinfo_ex_async(request, headers, runtime) def create_lease_userinfo_ex( self, request: twc_models.CreateLeaseUserinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseUserinfoResponse: """ Description: 租赁服务平台上传用户信息 Summary: 租赁服务平台上传用户信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseUserinfoResponse().from_map( self.do_request('1.0', 'twc.notary.lease.userinfo.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_userinfo_ex_async( self, request: twc_models.CreateLeaseUserinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseUserinfoResponse: """ Description: 租赁服务平台上传用户信息 Summary: 租赁服务平台上传用户信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseUserinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.userinfo.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_orderinfo( self, request: twc_models.CreateLeaseOrderinfoRequest, ) -> twc_models.CreateLeaseOrderinfoResponse: """ Description: 租赁服务平台上传订单产品/服务信息 Summary: 租赁服务平台上传订单产品/服务信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_orderinfo_ex(request, headers, runtime) async def create_lease_orderinfo_async( self, request: twc_models.CreateLeaseOrderinfoRequest, ) -> twc_models.CreateLeaseOrderinfoResponse: """ Description: 租赁服务平台上传订单产品/服务信息 Summary: 租赁服务平台上传订单产品/服务信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_orderinfo_ex_async(request, headers, runtime) def create_lease_orderinfo_ex( self, request: twc_models.CreateLeaseOrderinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseOrderinfoResponse: """ Description: 租赁服务平台上传订单产品/服务信息 Summary: 租赁服务平台上传订单产品/服务信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseOrderinfoResponse().from_map( self.do_request('1.0', 'twc.notary.lease.orderinfo.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_orderinfo_ex_async( self, request: twc_models.CreateLeaseOrderinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseOrderinfoResponse: """ Description: 租赁服务平台上传订单产品/服务信息 Summary: 租赁服务平台上传订单产品/服务信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseOrderinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.orderinfo.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_promise( self, request: twc_models.CreateLeasePromiseRequest, ) -> twc_models.CreateLeasePromiseResponse: """ Description: 租赁服务平台上传承诺信息 Summary: 租赁服务平台上传承诺信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_promise_ex(request, headers, runtime) async def create_lease_promise_async( self, request: twc_models.CreateLeasePromiseRequest, ) -> twc_models.CreateLeasePromiseResponse: """ Description: 租赁服务平台上传承诺信息 Summary: 租赁服务平台上传承诺信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_promise_ex_async(request, headers, runtime) def create_lease_promise_ex( self, request: twc_models.CreateLeasePromiseRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeasePromiseResponse: """ Description: 租赁服务平台上传承诺信息 Summary: 租赁服务平台上传承诺信息 """ UtilClient.validate_model(request) return twc_models.CreateLeasePromiseResponse().from_map( self.do_request('1.0', 'twc.notary.lease.promise.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_promise_ex_async( self, request: twc_models.CreateLeasePromiseRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeasePromiseResponse: """ Description: 租赁服务平台上传承诺信息 Summary: 租赁服务平台上传承诺信息 """ UtilClient.validate_model(request) return twc_models.CreateLeasePromiseResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.promise.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_verifyinfo( self, request: twc_models.CreateLeaseVerifyinfoRequest, ) -> twc_models.CreateLeaseVerifyinfoResponse: """ Description: 融资平台上传租赁物购买贷款订单信息 Summary: 融资平台上传租赁物购买贷款订单信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_verifyinfo_ex(request, headers, runtime) async def create_lease_verifyinfo_async( self, request: twc_models.CreateLeaseVerifyinfoRequest, ) -> twc_models.CreateLeaseVerifyinfoResponse: """ Description: 融资平台上传租赁物购买贷款订单信息 Summary: 融资平台上传租赁物购买贷款订单信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_verifyinfo_ex_async(request, headers, runtime) def create_lease_verifyinfo_ex( self, request: twc_models.CreateLeaseVerifyinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseVerifyinfoResponse: """ Description: 融资平台上传租赁物购买贷款订单信息 Summary: 融资平台上传租赁物购买贷款订单信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseVerifyinfoResponse().from_map( self.do_request('1.0', 'twc.notary.lease.verifyinfo.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_verifyinfo_ex_async( self, request: twc_models.CreateLeaseVerifyinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseVerifyinfoResponse: """ Description: 融资平台上传租赁物购买贷款订单信息 Summary: 融资平台上传租赁物购买贷款订单信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseVerifyinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.verifyinfo.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_creditpromise( self, request: twc_models.CreateLeaseCreditpromiseRequest, ) -> twc_models.CreateLeaseCreditpromiseResponse: """ Description: 融资方上传承诺信息 Summary: 融资方上传承诺信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_creditpromise_ex(request, headers, runtime) async def create_lease_creditpromise_async( self, request: twc_models.CreateLeaseCreditpromiseRequest, ) -> twc_models.CreateLeaseCreditpromiseResponse: """ Description: 融资方上传承诺信息 Summary: 融资方上传承诺信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_creditpromise_ex_async(request, headers, runtime) def create_lease_creditpromise_ex( self, request: twc_models.CreateLeaseCreditpromiseRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseCreditpromiseResponse: """ Description: 融资方上传承诺信息 Summary: 融资方上传承诺信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseCreditpromiseResponse().from_map( self.do_request('1.0', 'twc.notary.lease.creditpromise.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_creditpromise_ex_async( self, request: twc_models.CreateLeaseCreditpromiseRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseCreditpromiseResponse: """ Description: 融资方上传承诺信息 Summary: 融资方上传承诺信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseCreditpromiseResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.creditpromise.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_disburseinfo( self, request: twc_models.CreateLeaseDisburseinfoRequest, ) -> twc_models.CreateLeaseDisburseinfoResponse: """ Description: 租赁平台上传支用/还款信息 Summary: 租赁平台上传支用/还款信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_disburseinfo_ex(request, headers, runtime) async def create_lease_disburseinfo_async( self, request: twc_models.CreateLeaseDisburseinfoRequest, ) -> twc_models.CreateLeaseDisburseinfoResponse: """ Description: 租赁平台上传支用/还款信息 Summary: 租赁平台上传支用/还款信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_disburseinfo_ex_async(request, headers, runtime) def create_lease_disburseinfo_ex( self, request: twc_models.CreateLeaseDisburseinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseDisburseinfoResponse: """ Description: 租赁平台上传支用/还款信息 Summary: 租赁平台上传支用/还款信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseDisburseinfoResponse().from_map( self.do_request('1.0', 'twc.notary.lease.disburseinfo.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_disburseinfo_ex_async( self, request: twc_models.CreateLeaseDisburseinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseDisburseinfoResponse: """ Description: 租赁平台上传支用/还款信息 Summary: 租赁平台上传支用/还款信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseDisburseinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.disburseinfo.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_lease_orderinfo( self, request: twc_models.QueryLeaseOrderinfoRequest, ) -> twc_models.QueryLeaseOrderinfoResponse: """ Description: 查询订单详细信息 Summary: 查询订单详细信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_lease_orderinfo_ex(request, headers, runtime) async def query_lease_orderinfo_async( self, request: twc_models.QueryLeaseOrderinfoRequest, ) -> twc_models.QueryLeaseOrderinfoResponse: """ Description: 查询订单详细信息 Summary: 查询订单详细信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_lease_orderinfo_ex_async(request, headers, runtime) def query_lease_orderinfo_ex( self, request: twc_models.QueryLeaseOrderinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseOrderinfoResponse: """ Description: 查询订单详细信息 Summary: 查询订单详细信息 """ UtilClient.validate_model(request) return twc_models.QueryLeaseOrderinfoResponse().from_map( self.do_request('1.0', 'twc.notary.lease.orderinfo.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_lease_orderinfo_ex_async( self, request: twc_models.QueryLeaseOrderinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseOrderinfoResponse: """ Description: 查询订单详细信息 Summary: 查询订单详细信息 """ UtilClient.validate_model(request) return twc_models.QueryLeaseOrderinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.orderinfo.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_finance_textnotary( self, request: twc_models.CreateFinanceTextnotaryRequest, ) -> twc_models.CreateFinanceTextnotaryResponse: """ Description: 创建金融行业标准文本存证 Summary: 创建金融行业文本存证 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_finance_textnotary_ex(request, headers, runtime) async def create_finance_textnotary_async( self, request: twc_models.CreateFinanceTextnotaryRequest, ) -> twc_models.CreateFinanceTextnotaryResponse: """ Description: 创建金融行业标准文本存证 Summary: 创建金融行业文本存证 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_finance_textnotary_ex_async(request, headers, runtime) def create_finance_textnotary_ex( self, request: twc_models.CreateFinanceTextnotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateFinanceTextnotaryResponse: """ Description: 创建金融行业标准文本存证 Summary: 创建金融行业文本存证 """ UtilClient.validate_model(request) return twc_models.CreateFinanceTextnotaryResponse().from_map( self.do_request('1.0', 'twc.notary.finance.textnotary.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_finance_textnotary_ex_async( self, request: twc_models.CreateFinanceTextnotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateFinanceTextnotaryResponse: """ Description: 创建金融行业标准文本存证 Summary: 创建金融行业文本存证 """ UtilClient.validate_model(request) return twc_models.CreateFinanceTextnotaryResponse().from_map( await self.do_request_async('1.0', 'twc.notary.finance.textnotary.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_finance_textnotary( self, request: twc_models.GetFinanceTextnotaryRequest, ) -> twc_models.GetFinanceTextnotaryResponse: """ Description: 获取金融行业文本存证接口描述 Summary: 获取金融行业文本存证 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_finance_textnotary_ex(request, headers, runtime) async def get_finance_textnotary_async( self, request: twc_models.GetFinanceTextnotaryRequest, ) -> twc_models.GetFinanceTextnotaryResponse: """ Description: 获取金融行业文本存证接口描述 Summary: 获取金融行业文本存证 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_finance_textnotary_ex_async(request, headers, runtime) def get_finance_textnotary_ex( self, request: twc_models.GetFinanceTextnotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetFinanceTextnotaryResponse: """ Description: 获取金融行业文本存证接口描述 Summary: 获取金融行业文本存证 """ UtilClient.validate_model(request) return twc_models.GetFinanceTextnotaryResponse().from_map( self.do_request('1.0', 'twc.notary.finance.textnotary.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_finance_textnotary_ex_async( self, request: twc_models.GetFinanceTextnotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetFinanceTextnotaryResponse: """ Description: 获取金融行业文本存证接口描述 Summary: 获取金融行业文本存证 """ UtilClient.validate_model(request) return twc_models.GetFinanceTextnotaryResponse().from_map( await self.do_request_async('1.0', 'twc.notary.finance.textnotary.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_finance_filenotary( self, request: twc_models.CreateFinanceFilenotaryRequest, ) -> twc_models.CreateFinanceFilenotaryResponse: """ Description: 创建金融行业文件存证接口描述 Summary: 创建金融行业文件存证 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_finance_filenotary_ex(request, headers, runtime) async def create_finance_filenotary_async( self, request: twc_models.CreateFinanceFilenotaryRequest, ) -> twc_models.CreateFinanceFilenotaryResponse: """ Description: 创建金融行业文件存证接口描述 Summary: 创建金融行业文件存证 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_finance_filenotary_ex_async(request, headers, runtime) def create_finance_filenotary_ex( self, request: twc_models.CreateFinanceFilenotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateFinanceFilenotaryResponse: """ Description: 创建金融行业文件存证接口描述 Summary: 创建金融行业文件存证 """ UtilClient.validate_model(request) return twc_models.CreateFinanceFilenotaryResponse().from_map( self.do_request('1.0', 'twc.notary.finance.filenotary.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_finance_filenotary_ex_async( self, request: twc_models.CreateFinanceFilenotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateFinanceFilenotaryResponse: """ Description: 创建金融行业文件存证接口描述 Summary: 创建金融行业文件存证 """ UtilClient.validate_model(request) return twc_models.CreateFinanceFilenotaryResponse().from_map( await self.do_request_async('1.0', 'twc.notary.finance.filenotary.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_finance_filenotary( self, request: twc_models.GetFinanceFilenotaryRequest, ) -> twc_models.GetFinanceFilenotaryResponse: """ Description: 获取金融行业文件存证接口描述 Summary: 获取金融行业文件存证 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_finance_filenotary_ex(request, headers, runtime) async def get_finance_filenotary_async( self, request: twc_models.GetFinanceFilenotaryRequest, ) -> twc_models.GetFinanceFilenotaryResponse: """ Description: 获取金融行业文件存证接口描述 Summary: 获取金融行业文件存证 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_finance_filenotary_ex_async(request, headers, runtime) def get_finance_filenotary_ex( self, request: twc_models.GetFinanceFilenotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetFinanceFilenotaryResponse: """ Description: 获取金融行业文件存证接口描述 Summary: 获取金融行业文件存证 """ UtilClient.validate_model(request) return twc_models.GetFinanceFilenotaryResponse().from_map( self.do_request('1.0', 'twc.notary.finance.filenotary.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_finance_filenotary_ex_async( self, request: twc_models.GetFinanceFilenotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetFinanceFilenotaryResponse: """ Description: 获取金融行业文件存证接口描述 Summary: 获取金融行业文件存证 """ UtilClient.validate_model(request) return twc_models.GetFinanceFilenotaryResponse().from_map( await self.do_request_async('1.0', 'twc.notary.finance.filenotary.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def check_industry_notary( self, request: twc_models.CheckIndustryNotaryRequest, ) -> twc_models.CheckIndustryNotaryResponse: """ Description: 统一存证核验接口 Summary: 统一存证核验接口(已下架) """ runtime = util_models.RuntimeOptions() headers = {} return self.check_industry_notary_ex(request, headers, runtime) async def check_industry_notary_async( self, request: twc_models.CheckIndustryNotaryRequest, ) -> twc_models.CheckIndustryNotaryResponse: """ Description: 统一存证核验接口 Summary: 统一存证核验接口(已下架) """ runtime = util_models.RuntimeOptions() headers = {} return await self.check_industry_notary_ex_async(request, headers, runtime) def check_industry_notary_ex( self, request: twc_models.CheckIndustryNotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CheckIndustryNotaryResponse: """ Description: 统一存证核验接口 Summary: 统一存证核验接口(已下架) """ UtilClient.validate_model(request) return twc_models.CheckIndustryNotaryResponse().from_map( self.do_request('1.0', 'twc.notary.industry.notary.check', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def check_industry_notary_ex_async( self, request: twc_models.CheckIndustryNotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CheckIndustryNotaryResponse: """ Description: 统一存证核验接口 Summary: 统一存证核验接口(已下架) """ UtilClient.validate_model(request) return twc_models.CheckIndustryNotaryResponse().from_map( await self.do_request_async('1.0', 'twc.notary.industry.notary.check', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_sue_breakpromiseinfo( self, request: twc_models.CreateSueBreakpromiseinfoRequest, ) -> twc_models.CreateSueBreakpromiseinfoResponse: """ Description: 违约案件信息提交服务 Summary: 违约案件信息提交服务 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_sue_breakpromiseinfo_ex(request, headers, runtime) async def create_sue_breakpromiseinfo_async( self, request: twc_models.CreateSueBreakpromiseinfoRequest, ) -> twc_models.CreateSueBreakpromiseinfoResponse: """ Description: 违约案件信息提交服务 Summary: 违约案件信息提交服务 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_sue_breakpromiseinfo_ex_async(request, headers, runtime) def create_sue_breakpromiseinfo_ex( self, request: twc_models.CreateSueBreakpromiseinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateSueBreakpromiseinfoResponse: """ Description: 违约案件信息提交服务 Summary: 违约案件信息提交服务 """ UtilClient.validate_model(request) return twc_models.CreateSueBreakpromiseinfoResponse().from_map( self.do_request('1.0', 'twc.notary.sue.breakpromiseinfo.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_sue_breakpromiseinfo_ex_async( self, request: twc_models.CreateSueBreakpromiseinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateSueBreakpromiseinfoResponse: """ Description: 违约案件信息提交服务 Summary: 违约案件信息提交服务 """ UtilClient.validate_model(request) return twc_models.CreateSueBreakpromiseinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.sue.breakpromiseinfo.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def update_sue_breakpromiseinfo( self, request: twc_models.UpdateSueBreakpromiseinfoRequest, ) -> twc_models.UpdateSueBreakpromiseinfoResponse: """ Description: 违约案件信息修改服务 Summary: 违约案件信息修改服务 """ runtime = util_models.RuntimeOptions() headers = {} return self.update_sue_breakpromiseinfo_ex(request, headers, runtime) async def update_sue_breakpromiseinfo_async( self, request: twc_models.UpdateSueBreakpromiseinfoRequest, ) -> twc_models.UpdateSueBreakpromiseinfoResponse: """ Description: 违约案件信息修改服务 Summary: 违约案件信息修改服务 """ runtime = util_models.RuntimeOptions() headers = {} return await self.update_sue_breakpromiseinfo_ex_async(request, headers, runtime) def update_sue_breakpromiseinfo_ex( self, request: twc_models.UpdateSueBreakpromiseinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateSueBreakpromiseinfoResponse: """ Description: 违约案件信息修改服务 Summary: 违约案件信息修改服务 """ UtilClient.validate_model(request) return twc_models.UpdateSueBreakpromiseinfoResponse().from_map( self.do_request('1.0', 'twc.notary.sue.breakpromiseinfo.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def update_sue_breakpromiseinfo_ex_async( self, request: twc_models.UpdateSueBreakpromiseinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateSueBreakpromiseinfoResponse: """ Description: 违约案件信息修改服务 Summary: 违约案件信息修改服务 """ UtilClient.validate_model(request) return twc_models.UpdateSueBreakpromiseinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.sue.breakpromiseinfo.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def delete_sue_breakpromiseinfo( self, request: twc_models.DeleteSueBreakpromiseinfoRequest, ) -> twc_models.DeleteSueBreakpromiseinfoResponse: """ Description: 违约案件信息删除服务 Summary: 违约案件信息删除服务 """ runtime = util_models.RuntimeOptions() headers = {} return self.delete_sue_breakpromiseinfo_ex(request, headers, runtime) async def delete_sue_breakpromiseinfo_async( self, request: twc_models.DeleteSueBreakpromiseinfoRequest, ) -> twc_models.DeleteSueBreakpromiseinfoResponse: """ Description: 违约案件信息删除服务 Summary: 违约案件信息删除服务 """ runtime = util_models.RuntimeOptions() headers = {} return await self.delete_sue_breakpromiseinfo_ex_async(request, headers, runtime) def delete_sue_breakpromiseinfo_ex( self, request: twc_models.DeleteSueBreakpromiseinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.DeleteSueBreakpromiseinfoResponse: """ Description: 违约案件信息删除服务 Summary: 违约案件信息删除服务 """ UtilClient.validate_model(request) return twc_models.DeleteSueBreakpromiseinfoResponse().from_map( self.do_request('1.0', 'twc.notary.sue.breakpromiseinfo.delete', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def delete_sue_breakpromiseinfo_ex_async( self, request: twc_models.DeleteSueBreakpromiseinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.DeleteSueBreakpromiseinfoResponse: """ Description: 违约案件信息删除服务 Summary: 违约案件信息删除服务 """ UtilClient.validate_model(request) return twc_models.DeleteSueBreakpromiseinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.sue.breakpromiseinfo.delete', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_sue_userinfo( self, request: twc_models.QuerySueUserinfoRequest, ) -> twc_models.QuerySueUserinfoResponse: """ Description: 查询惩戒信息 Summary: 查询惩戒信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_sue_userinfo_ex(request, headers, runtime) async def query_sue_userinfo_async( self, request: twc_models.QuerySueUserinfoRequest, ) -> twc_models.QuerySueUserinfoResponse: """ Description: 查询惩戒信息 Summary: 查询惩戒信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_sue_userinfo_ex_async(request, headers, runtime) def query_sue_userinfo_ex( self, request: twc_models.QuerySueUserinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QuerySueUserinfoResponse: """ Description: 查询惩戒信息 Summary: 查询惩戒信息 """ UtilClient.validate_model(request) return twc_models.QuerySueUserinfoResponse().from_map( self.do_request('1.0', 'twc.notary.sue.userinfo.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_sue_userinfo_ex_async( self, request: twc_models.QuerySueUserinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QuerySueUserinfoResponse: """ Description: 查询惩戒信息 Summary: 查询惩戒信息 """ UtilClient.validate_model(request) return twc_models.QuerySueUserinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.sue.userinfo.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def update_sue_exeplarycontract( self, request: twc_models.UpdateSueExeplarycontractRequest, ) -> twc_models.UpdateSueExeplarycontractResponse: """ Description: 升级用户管理合约 Summary: 升级用户管理合约 """ runtime = util_models.RuntimeOptions() headers = {} return self.update_sue_exeplarycontract_ex(request, headers, runtime) async def update_sue_exeplarycontract_async( self, request: twc_models.UpdateSueExeplarycontractRequest, ) -> twc_models.UpdateSueExeplarycontractResponse: """ Description: 升级用户管理合约 Summary: 升级用户管理合约 """ runtime = util_models.RuntimeOptions() headers = {} return await self.update_sue_exeplarycontract_ex_async(request, headers, runtime) def update_sue_exeplarycontract_ex( self, request: twc_models.UpdateSueExeplarycontractRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateSueExeplarycontractResponse: """ Description: 升级用户管理合约 Summary: 升级用户管理合约 """ UtilClient.validate_model(request) return twc_models.UpdateSueExeplarycontractResponse().from_map( self.do_request('1.0', 'twc.notary.sue.exeplarycontract.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def update_sue_exeplarycontract_ex_async( self, request: twc_models.UpdateSueExeplarycontractRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateSueExeplarycontractResponse: """ Description: 升级用户管理合约 Summary: 升级用户管理合约 """ UtilClient.validate_model(request) return twc_models.UpdateSueExeplarycontractResponse().from_map( await self.do_request_async('1.0', 'twc.notary.sue.exeplarycontract.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def update_sue_exemplaryrevert( self, request: twc_models.UpdateSueExemplaryrevertRequest, ) -> twc_models.UpdateSueExemplaryrevertResponse: """ Description: 回退用户管理合约 Summary: 回退用户管理合约 """ runtime = util_models.RuntimeOptions() headers = {} return self.update_sue_exemplaryrevert_ex(request, headers, runtime) async def update_sue_exemplaryrevert_async( self, request: twc_models.UpdateSueExemplaryrevertRequest, ) -> twc_models.UpdateSueExemplaryrevertResponse: """ Description: 回退用户管理合约 Summary: 回退用户管理合约 """ runtime = util_models.RuntimeOptions() headers = {} return await self.update_sue_exemplaryrevert_ex_async(request, headers, runtime) def update_sue_exemplaryrevert_ex( self, request: twc_models.UpdateSueExemplaryrevertRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateSueExemplaryrevertResponse: """ Description: 回退用户管理合约 Summary: 回退用户管理合约 """ UtilClient.validate_model(request) return twc_models.UpdateSueExemplaryrevertResponse().from_map( self.do_request('1.0', 'twc.notary.sue.exemplaryrevert.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def update_sue_exemplaryrevert_ex_async( self, request: twc_models.UpdateSueExemplaryrevertRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.UpdateSueExemplaryrevertResponse: """ Description: 回退用户管理合约 Summary: 回退用户管理合约 """ UtilClient.validate_model(request) return twc_models.UpdateSueExemplaryrevertResponse().from_map( await self.do_request_async('1.0', 'twc.notary.sue.exemplaryrevert.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_audit( self, request: twc_models.CreateLeaseAuditRequest, ) -> twc_models.CreateLeaseAuditResponse: """ Description: 融资平台审核订单信息 Summary: 融资平台审核订单信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_audit_ex(request, headers, runtime) async def create_lease_audit_async( self, request: twc_models.CreateLeaseAuditRequest, ) -> twc_models.CreateLeaseAuditResponse: """ Description: 融资平台审核订单信息 Summary: 融资平台审核订单信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_audit_ex_async(request, headers, runtime) def create_lease_audit_ex( self, request: twc_models.CreateLeaseAuditRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseAuditResponse: """ Description: 融资平台审核订单信息 Summary: 融资平台审核订单信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseAuditResponse().from_map( self.do_request('1.0', 'twc.notary.lease.audit.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_audit_ex_async( self, request: twc_models.CreateLeaseAuditRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseAuditResponse: """ Description: 融资平台审核订单信息 Summary: 融资平台审核订单信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseAuditResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.audit.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_paymentfile( self, request: twc_models.CreateLeasePaymentfileRequest, ) -> twc_models.CreateLeasePaymentfileResponse: """ Description: 租赁平台上传付款通知信息 Summary: 租赁平台上传付款通知信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_paymentfile_ex(request, headers, runtime) async def create_lease_paymentfile_async( self, request: twc_models.CreateLeasePaymentfileRequest, ) -> twc_models.CreateLeasePaymentfileResponse: """ Description: 租赁平台上传付款通知信息 Summary: 租赁平台上传付款通知信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_paymentfile_ex_async(request, headers, runtime) def create_lease_paymentfile_ex( self, request: twc_models.CreateLeasePaymentfileRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeasePaymentfileResponse: """ Description: 租赁平台上传付款通知信息 Summary: 租赁平台上传付款通知信息 """ UtilClient.validate_model(request) return twc_models.CreateLeasePaymentfileResponse().from_map( self.do_request('1.0', 'twc.notary.lease.paymentfile.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_paymentfile_ex_async( self, request: twc_models.CreateLeasePaymentfileRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeasePaymentfileResponse: """ Description: 租赁平台上传付款通知信息 Summary: 租赁平台上传付款通知信息 """ UtilClient.validate_model(request) return twc_models.CreateLeasePaymentfileResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.paymentfile.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_rental( self, request: twc_models.CreateLeaseRentalRequest, ) -> twc_models.CreateLeaseRentalResponse: """ Description: 租赁系统上传租金归还记录 分期调用 Summary: 租赁系统上传租金归还记录 分期调用 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_rental_ex(request, headers, runtime) async def create_lease_rental_async( self, request: twc_models.CreateLeaseRentalRequest, ) -> twc_models.CreateLeaseRentalResponse: """ Description: 租赁系统上传租金归还记录 分期调用 Summary: 租赁系统上传租金归还记录 分期调用 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_rental_ex_async(request, headers, runtime) def create_lease_rental_ex( self, request: twc_models.CreateLeaseRentalRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseRentalResponse: """ Description: 租赁系统上传租金归还记录 分期调用 Summary: 租赁系统上传租金归还记录 分期调用 """ UtilClient.validate_model(request) return twc_models.CreateLeaseRentalResponse().from_map( self.do_request('1.0', 'twc.notary.lease.rental.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_rental_ex_async( self, request: twc_models.CreateLeaseRentalRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseRentalResponse: """ Description: 租赁系统上传租金归还记录 分期调用 Summary: 租赁系统上传租金归还记录 分期调用 """ UtilClient.validate_model(request) return twc_models.CreateLeaseRentalResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.rental.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_clearing( self, request: twc_models.CreateLeaseClearingRequest, ) -> twc_models.CreateLeaseClearingResponse: """ Description: 清分服务机构上传资金清算记录,分期 Summary: 清分服务机构上传资金清算记录,分期 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_clearing_ex(request, headers, runtime) async def create_lease_clearing_async( self, request: twc_models.CreateLeaseClearingRequest, ) -> twc_models.CreateLeaseClearingResponse: """ Description: 清分服务机构上传资金清算记录,分期 Summary: 清分服务机构上传资金清算记录,分期 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_clearing_ex_async(request, headers, runtime) def create_lease_clearing_ex( self, request: twc_models.CreateLeaseClearingRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseClearingResponse: """ Description: 清分服务机构上传资金清算记录,分期 Summary: 清分服务机构上传资金清算记录,分期 """ UtilClient.validate_model(request) return twc_models.CreateLeaseClearingResponse().from_map( self.do_request('1.0', 'twc.notary.lease.clearing.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_clearing_ex_async( self, request: twc_models.CreateLeaseClearingRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseClearingResponse: """ Description: 清分服务机构上传资金清算记录,分期 Summary: 清分服务机构上传资金清算记录,分期 """ UtilClient.validate_model(request) return twc_models.CreateLeaseClearingResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.clearing.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_repayment( self, request: twc_models.CreateLeaseRepaymentRequest, ) -> twc_models.CreateLeaseRepaymentResponse: """ Description: 融资金融机构上传还款信息 每期 Summary: 融资金融机构上传还款信息 每期 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_repayment_ex(request, headers, runtime) async def create_lease_repayment_async( self, request: twc_models.CreateLeaseRepaymentRequest, ) -> twc_models.CreateLeaseRepaymentResponse: """ Description: 融资金融机构上传还款信息 每期 Summary: 融资金融机构上传还款信息 每期 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_repayment_ex_async(request, headers, runtime) def create_lease_repayment_ex( self, request: twc_models.CreateLeaseRepaymentRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseRepaymentResponse: """ Description: 融资金融机构上传还款信息 每期 Summary: 融资金融机构上传还款信息 每期 """ UtilClient.validate_model(request) return twc_models.CreateLeaseRepaymentResponse().from_map( self.do_request('1.0', 'twc.notary.lease.repayment.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_repayment_ex_async( self, request: twc_models.CreateLeaseRepaymentRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseRepaymentResponse: """ Description: 融资金融机构上传还款信息 每期 Summary: 融资金融机构上传还款信息 每期 """ UtilClient.validate_model(request) return twc_models.CreateLeaseRepaymentResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.repayment.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_notifyregister( self, request: twc_models.CreateLeaseNotifyregisterRequest, ) -> twc_models.CreateLeaseNotifyregisterResponse: """ Description: 融资租赁通知系统注册 Summary: 融资租赁通知系统注册 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_notifyregister_ex(request, headers, runtime) async def create_lease_notifyregister_async( self, request: twc_models.CreateLeaseNotifyregisterRequest, ) -> twc_models.CreateLeaseNotifyregisterResponse: """ Description: 融资租赁通知系统注册 Summary: 融资租赁通知系统注册 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_notifyregister_ex_async(request, headers, runtime) def create_lease_notifyregister_ex( self, request: twc_models.CreateLeaseNotifyregisterRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseNotifyregisterResponse: """ Description: 融资租赁通知系统注册 Summary: 融资租赁通知系统注册 """ UtilClient.validate_model(request) return twc_models.CreateLeaseNotifyregisterResponse().from_map( self.do_request('1.0', 'twc.notary.lease.notifyregister.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_notifyregister_ex_async( self, request: twc_models.CreateLeaseNotifyregisterRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseNotifyregisterResponse: """ Description: 融资租赁通知系统注册 Summary: 融资租赁通知系统注册 """ UtilClient.validate_model(request) return twc_models.CreateLeaseNotifyregisterResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.notifyregister.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_lease_iotinfo( self, request: twc_models.QueryLeaseIotinfoRequest, ) -> twc_models.QueryLeaseIotinfoResponse: """ Description: 根据imeiID查询iot设备的详情 Summary: 根据imeiID查询iot设备的详情 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_lease_iotinfo_ex(request, headers, runtime) async def query_lease_iotinfo_async( self, request: twc_models.QueryLeaseIotinfoRequest, ) -> twc_models.QueryLeaseIotinfoResponse: """ Description: 根据imeiID查询iot设备的详情 Summary: 根据imeiID查询iot设备的详情 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_lease_iotinfo_ex_async(request, headers, runtime) def query_lease_iotinfo_ex( self, request: twc_models.QueryLeaseIotinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseIotinfoResponse: """ Description: 根据imeiID查询iot设备的详情 Summary: 根据imeiID查询iot设备的详情 """ UtilClient.validate_model(request) return twc_models.QueryLeaseIotinfoResponse().from_map( self.do_request('1.0', 'twc.notary.lease.iotinfo.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_lease_iotinfo_ex_async( self, request: twc_models.QueryLeaseIotinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseIotinfoResponse: """ Description: 根据imeiID查询iot设备的详情 Summary: 根据imeiID查询iot设备的详情 """ UtilClient.validate_model(request) return twc_models.QueryLeaseIotinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.iotinfo.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_court_textnotary( self, request: twc_models.CreateCourtTextnotaryRequest, ) -> twc_models.CreateCourtTextnotaryResponse: """ Description: 创建法院通用文本存证 Summary: 法院通用文本存证创建接口 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_court_textnotary_ex(request, headers, runtime) async def create_court_textnotary_async( self, request: twc_models.CreateCourtTextnotaryRequest, ) -> twc_models.CreateCourtTextnotaryResponse: """ Description: 创建法院通用文本存证 Summary: 法院通用文本存证创建接口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_court_textnotary_ex_async(request, headers, runtime) def create_court_textnotary_ex( self, request: twc_models.CreateCourtTextnotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateCourtTextnotaryResponse: """ Description: 创建法院通用文本存证 Summary: 法院通用文本存证创建接口 """ UtilClient.validate_model(request) return twc_models.CreateCourtTextnotaryResponse().from_map( self.do_request('1.0', 'twc.notary.court.textnotary.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_court_textnotary_ex_async( self, request: twc_models.CreateCourtTextnotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateCourtTextnotaryResponse: """ Description: 创建法院通用文本存证 Summary: 法院通用文本存证创建接口 """ UtilClient.validate_model(request) return twc_models.CreateCourtTextnotaryResponse().from_map( await self.do_request_async('1.0', 'twc.notary.court.textnotary.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_court_textnotary( self, request: twc_models.GetCourtTextnotaryRequest, ) -> twc_models.GetCourtTextnotaryResponse: """ Description: 获取法院通用文本存证 Summary: 法院通用文本存证获取接口 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_court_textnotary_ex(request, headers, runtime) async def get_court_textnotary_async( self, request: twc_models.GetCourtTextnotaryRequest, ) -> twc_models.GetCourtTextnotaryResponse: """ Description: 获取法院通用文本存证 Summary: 法院通用文本存证获取接口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_court_textnotary_ex_async(request, headers, runtime) def get_court_textnotary_ex( self, request: twc_models.GetCourtTextnotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetCourtTextnotaryResponse: """ Description: 获取法院通用文本存证 Summary: 法院通用文本存证获取接口 """ UtilClient.validate_model(request) return twc_models.GetCourtTextnotaryResponse().from_map( self.do_request('1.0', 'twc.notary.court.textnotary.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_court_textnotary_ex_async( self, request: twc_models.GetCourtTextnotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetCourtTextnotaryResponse: """ Description: 获取法院通用文本存证 Summary: 法院通用文本存证获取接口 """ UtilClient.validate_model(request) return twc_models.GetCourtTextnotaryResponse().from_map( await self.do_request_async('1.0', 'twc.notary.court.textnotary.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_court_filenotary( self, request: twc_models.CreateCourtFilenotaryRequest, ) -> twc_models.CreateCourtFilenotaryResponse: """ Description: 创建法院通用文件存证接口 Summary: 法院通用文件存证创建接口 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_court_filenotary_ex(request, headers, runtime) async def create_court_filenotary_async( self, request: twc_models.CreateCourtFilenotaryRequest, ) -> twc_models.CreateCourtFilenotaryResponse: """ Description: 创建法院通用文件存证接口 Summary: 法院通用文件存证创建接口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_court_filenotary_ex_async(request, headers, runtime) def create_court_filenotary_ex( self, request: twc_models.CreateCourtFilenotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateCourtFilenotaryResponse: """ Description: 创建法院通用文件存证接口 Summary: 法院通用文件存证创建接口 """ UtilClient.validate_model(request) return twc_models.CreateCourtFilenotaryResponse().from_map( self.do_request('1.0', 'twc.notary.court.filenotary.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_court_filenotary_ex_async( self, request: twc_models.CreateCourtFilenotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateCourtFilenotaryResponse: """ Description: 创建法院通用文件存证接口 Summary: 法院通用文件存证创建接口 """ UtilClient.validate_model(request) return twc_models.CreateCourtFilenotaryResponse().from_map( await self.do_request_async('1.0', 'twc.notary.court.filenotary.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_court_filenotary( self, request: twc_models.GetCourtFilenotaryRequest, ) -> twc_models.GetCourtFilenotaryResponse: """ Description: 获取法院通用文件存证 Summary: 法院通用文件存证获取接口 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_court_filenotary_ex(request, headers, runtime) async def get_court_filenotary_async( self, request: twc_models.GetCourtFilenotaryRequest, ) -> twc_models.GetCourtFilenotaryResponse: """ Description: 获取法院通用文件存证 Summary: 法院通用文件存证获取接口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_court_filenotary_ex_async(request, headers, runtime) def get_court_filenotary_ex( self, request: twc_models.GetCourtFilenotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetCourtFilenotaryResponse: """ Description: 获取法院通用文件存证 Summary: 法院通用文件存证获取接口 """ UtilClient.validate_model(request) return twc_models.GetCourtFilenotaryResponse().from_map( self.do_request('1.0', 'twc.notary.court.filenotary.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_court_filenotary_ex_async( self, request: twc_models.GetCourtFilenotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetCourtFilenotaryResponse: """ Description: 获取法院通用文件存证 Summary: 法院通用文件存证获取接口 """ UtilClient.validate_model(request) return twc_models.GetCourtFilenotaryResponse().from_map( await self.do_request_async('1.0', 'twc.notary.court.filenotary.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_route( self, request: twc_models.CreateLeaseRouteRequest, ) -> twc_models.CreateLeaseRouteResponse: """ Description: 融资租赁定制化统一入口 Summary: 融资租赁定制化统一入口 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_route_ex(request, headers, runtime) async def create_lease_route_async( self, request: twc_models.CreateLeaseRouteRequest, ) -> twc_models.CreateLeaseRouteResponse: """ Description: 融资租赁定制化统一入口 Summary: 融资租赁定制化统一入口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_route_ex_async(request, headers, runtime) def create_lease_route_ex( self, request: twc_models.CreateLeaseRouteRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseRouteResponse: """ Description: 融资租赁定制化统一入口 Summary: 融资租赁定制化统一入口 """ UtilClient.validate_model(request) return twc_models.CreateLeaseRouteResponse().from_map( self.do_request('1.0', 'twc.notary.lease.route.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_route_ex_async( self, request: twc_models.CreateLeaseRouteRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseRouteResponse: """ Description: 融资租赁定制化统一入口 Summary: 融资租赁定制化统一入口 """ UtilClient.validate_model(request) return twc_models.CreateLeaseRouteResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.route.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_lease_encryptedinfo( self, request: twc_models.QueryLeaseEncryptedinfoRequest, ) -> twc_models.QueryLeaseEncryptedinfoResponse: """ Description: 查询用户等加密信息,返回加密后的结果,用户自己进行解密 Summary: 查询用户等加密信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_lease_encryptedinfo_ex(request, headers, runtime) async def query_lease_encryptedinfo_async( self, request: twc_models.QueryLeaseEncryptedinfoRequest, ) -> twc_models.QueryLeaseEncryptedinfoResponse: """ Description: 查询用户等加密信息,返回加密后的结果,用户自己进行解密 Summary: 查询用户等加密信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_lease_encryptedinfo_ex_async(request, headers, runtime) def query_lease_encryptedinfo_ex( self, request: twc_models.QueryLeaseEncryptedinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseEncryptedinfoResponse: """ Description: 查询用户等加密信息,返回加密后的结果,用户自己进行解密 Summary: 查询用户等加密信息 """ UtilClient.validate_model(request) return twc_models.QueryLeaseEncryptedinfoResponse().from_map( self.do_request('1.0', 'twc.notary.lease.encryptedinfo.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_lease_encryptedinfo_ex_async( self, request: twc_models.QueryLeaseEncryptedinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseEncryptedinfoResponse: """ Description: 查询用户等加密信息,返回加密后的结果,用户自己进行解密 Summary: 查询用户等加密信息 """ UtilClient.validate_model(request) return twc_models.QueryLeaseEncryptedinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.encryptedinfo.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_contract_text( self, request: twc_models.CreateContractTextRequest, ) -> twc_models.CreateContractTextResponse: """ Description: 电子合同文本存证 Summary: 电子合同文本存证 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_contract_text_ex(request, headers, runtime) async def create_contract_text_async( self, request: twc_models.CreateContractTextRequest, ) -> twc_models.CreateContractTextResponse: """ Description: 电子合同文本存证 Summary: 电子合同文本存证 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_contract_text_ex_async(request, headers, runtime) def create_contract_text_ex( self, request: twc_models.CreateContractTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractTextResponse: """ Description: 电子合同文本存证 Summary: 电子合同文本存证 """ UtilClient.validate_model(request) return twc_models.CreateContractTextResponse().from_map( self.do_request('1.0', 'twc.notary.contract.text.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_contract_text_ex_async( self, request: twc_models.CreateContractTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateContractTextResponse: """ Description: 电子合同文本存证 Summary: 电子合同文本存证 """ UtilClient.validate_model(request) return twc_models.CreateContractTextResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.text.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def apply_contract_report( self, request: twc_models.ApplyContractReportRequest, ) -> twc_models.ApplyContractReportResponse: """ Description: 全流程存证后,批量提交全流程核验信息,申请出证报告授权码。成功后可生成全流程上链报告 Summary: 申请电子合同存证报告 """ runtime = util_models.RuntimeOptions() headers = {} return self.apply_contract_report_ex(request, headers, runtime) async def apply_contract_report_async( self, request: twc_models.ApplyContractReportRequest, ) -> twc_models.ApplyContractReportResponse: """ Description: 全流程存证后,批量提交全流程核验信息,申请出证报告授权码。成功后可生成全流程上链报告 Summary: 申请电子合同存证报告 """ runtime = util_models.RuntimeOptions() headers = {} return await self.apply_contract_report_ex_async(request, headers, runtime) def apply_contract_report_ex( self, request: twc_models.ApplyContractReportRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ApplyContractReportResponse: """ Description: 全流程存证后,批量提交全流程核验信息,申请出证报告授权码。成功后可生成全流程上链报告 Summary: 申请电子合同存证报告 """ UtilClient.validate_model(request) return twc_models.ApplyContractReportResponse().from_map( self.do_request('1.0', 'twc.notary.contract.report.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def apply_contract_report_ex_async( self, request: twc_models.ApplyContractReportRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ApplyContractReportResponse: """ Description: 全流程存证后,批量提交全流程核验信息,申请出证报告授权码。成功后可生成全流程上链报告 Summary: 申请电子合同存证报告 """ UtilClient.validate_model(request) return twc_models.ApplyContractReportResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.report.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_contract_text( self, request: twc_models.GetContractTextRequest, ) -> twc_models.GetContractTextResponse: """ Description: 下载合同存证某个环节的内容,得到存证信息对象最终上链的JSON序列化形式,该内容可用于统一核验 Summary: 下载合同存证 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_contract_text_ex(request, headers, runtime) async def get_contract_text_async( self, request: twc_models.GetContractTextRequest, ) -> twc_models.GetContractTextResponse: """ Description: 下载合同存证某个环节的内容,得到存证信息对象最终上链的JSON序列化形式,该内容可用于统一核验 Summary: 下载合同存证 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_contract_text_ex_async(request, headers, runtime) def get_contract_text_ex( self, request: twc_models.GetContractTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetContractTextResponse: """ Description: 下载合同存证某个环节的内容,得到存证信息对象最终上链的JSON序列化形式,该内容可用于统一核验 Summary: 下载合同存证 """ UtilClient.validate_model(request) return twc_models.GetContractTextResponse().from_map( self.do_request('1.0', 'twc.notary.contract.text.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_contract_text_ex_async( self, request: twc_models.GetContractTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetContractTextResponse: """ Description: 下载合同存证某个环节的内容,得到存证信息对象最终上链的JSON序列化形式,该内容可用于统一核验 Summary: 下载合同存证 """ UtilClient.validate_model(request) return twc_models.GetContractTextResponse().from_map( await self.do_request_async('1.0', 'twc.notary.contract.text.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_internal_trans( self, request: twc_models.CreateInternalTransRequest, ) -> twc_models.CreateInternalTransResponse: """ Description: 获取存证事务ID内部接口 Summary: 获取存证事务ID内部接口 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_internal_trans_ex(request, headers, runtime) async def create_internal_trans_async( self, request: twc_models.CreateInternalTransRequest, ) -> twc_models.CreateInternalTransResponse: """ Description: 获取存证事务ID内部接口 Summary: 获取存证事务ID内部接口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_internal_trans_ex_async(request, headers, runtime) def create_internal_trans_ex( self, request: twc_models.CreateInternalTransRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateInternalTransResponse: """ Description: 获取存证事务ID内部接口 Summary: 获取存证事务ID内部接口 """ UtilClient.validate_model(request) return twc_models.CreateInternalTransResponse().from_map( self.do_request('1.0', 'twc.notary.internal.trans.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_internal_trans_ex_async( self, request: twc_models.CreateInternalTransRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateInternalTransResponse: """ Description: 获取存证事务ID内部接口 Summary: 获取存证事务ID内部接口 """ UtilClient.validate_model(request) return twc_models.CreateInternalTransResponse().from_map( await self.do_request_async('1.0', 'twc.notary.internal.trans.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_internal_text( self, request: twc_models.CreateInternalTextRequest, ) -> twc_models.CreateInternalTextResponse: """ Description: 文本存证内部接口,将文本内容存证上链 Summary: 文本存证内部接口,将文本内容存证上链 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_internal_text_ex(request, headers, runtime) async def create_internal_text_async( self, request: twc_models.CreateInternalTextRequest, ) -> twc_models.CreateInternalTextResponse: """ Description: 文本存证内部接口,将文本内容存证上链 Summary: 文本存证内部接口,将文本内容存证上链 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_internal_text_ex_async(request, headers, runtime) def create_internal_text_ex( self, request: twc_models.CreateInternalTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateInternalTextResponse: """ Description: 文本存证内部接口,将文本内容存证上链 Summary: 文本存证内部接口,将文本内容存证上链 """ UtilClient.validate_model(request) return twc_models.CreateInternalTextResponse().from_map( self.do_request('1.0', 'twc.notary.internal.text.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_internal_text_ex_async( self, request: twc_models.CreateInternalTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateInternalTextResponse: """ Description: 文本存证内部接口,将文本内容存证上链 Summary: 文本存证内部接口,将文本内容存证上链 """ UtilClient.validate_model(request) return twc_models.CreateInternalTextResponse().from_map( await self.do_request_async('1.0', 'twc.notary.internal.text.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_text( self, request: twc_models.CreateLeaseTextRequest, ) -> twc_models.CreateLeaseTextResponse: """ Description: 发起文本存证,将文本内容存证上链,租赁业务专用。 Summary: 租赁业务文本存证,将文本内容存证上链 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_text_ex(request, headers, runtime) async def create_lease_text_async( self, request: twc_models.CreateLeaseTextRequest, ) -> twc_models.CreateLeaseTextResponse: """ Description: 发起文本存证,将文本内容存证上链,租赁业务专用。 Summary: 租赁业务文本存证,将文本内容存证上链 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_text_ex_async(request, headers, runtime) def create_lease_text_ex( self, request: twc_models.CreateLeaseTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseTextResponse: """ Description: 发起文本存证,将文本内容存证上链,租赁业务专用。 Summary: 租赁业务文本存证,将文本内容存证上链 """ UtilClient.validate_model(request) return twc_models.CreateLeaseTextResponse().from_map( self.do_request('1.0', 'twc.notary.lease.text.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_text_ex_async( self, request: twc_models.CreateLeaseTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseTextResponse: """ Description: 发起文本存证,将文本内容存证上链,租赁业务专用。 Summary: 租赁业务文本存证,将文本内容存证上链 """ UtilClient.validate_model(request) return twc_models.CreateLeaseTextResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.text.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_file( self, request: twc_models.CreateLeaseFileRequest, ) -> twc_models.CreateLeaseFileResponse: """ Description: 发起文件存证,将文件内容存证上链,租赁业务专用。 Summary: 租赁业务文件内容存证上链 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_file_ex(request, headers, runtime) async def create_lease_file_async( self, request: twc_models.CreateLeaseFileRequest, ) -> twc_models.CreateLeaseFileResponse: """ Description: 发起文件存证,将文件内容存证上链,租赁业务专用。 Summary: 租赁业务文件内容存证上链 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_file_ex_async(request, headers, runtime) def create_lease_file_ex( self, request: twc_models.CreateLeaseFileRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseFileResponse: """ Description: 发起文件存证,将文件内容存证上链,租赁业务专用。 Summary: 租赁业务文件内容存证上链 """ UtilClient.validate_model(request) return twc_models.CreateLeaseFileResponse().from_map( self.do_request('1.0', 'twc.notary.lease.file.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_file_ex_async( self, request: twc_models.CreateLeaseFileRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseFileResponse: """ Description: 发起文件存证,将文件内容存证上链,租赁业务专用。 Summary: 租赁业务文件内容存证上链 """ UtilClient.validate_model(request) return twc_models.CreateLeaseFileResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.file.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def list_lease_notary( self, request: twc_models.ListLeaseNotaryRequest, ) -> twc_models.ListLeaseNotaryResponse: """ Description: 使用接口查询订单存证的信息,需要在完成订单回传后才可返回。获取到txhash后,用户可使用 获取文本存证、存证核验 等存证服务功能。 Summary: 租赁业务获取订单存证列表 """ runtime = util_models.RuntimeOptions() headers = {} return self.list_lease_notary_ex(request, headers, runtime) async def list_lease_notary_async( self, request: twc_models.ListLeaseNotaryRequest, ) -> twc_models.ListLeaseNotaryResponse: """ Description: 使用接口查询订单存证的信息,需要在完成订单回传后才可返回。获取到txhash后,用户可使用 获取文本存证、存证核验 等存证服务功能。 Summary: 租赁业务获取订单存证列表 """ runtime = util_models.RuntimeOptions() headers = {} return await self.list_lease_notary_ex_async(request, headers, runtime) def list_lease_notary_ex( self, request: twc_models.ListLeaseNotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ListLeaseNotaryResponse: """ Description: 使用接口查询订单存证的信息,需要在完成订单回传后才可返回。获取到txhash后,用户可使用 获取文本存证、存证核验 等存证服务功能。 Summary: 租赁业务获取订单存证列表 """ UtilClient.validate_model(request) return twc_models.ListLeaseNotaryResponse().from_map( self.do_request('1.0', 'twc.notary.lease.notary.list', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def list_lease_notary_ex_async( self, request: twc_models.ListLeaseNotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ListLeaseNotaryResponse: """ Description: 使用接口查询订单存证的信息,需要在完成订单回传后才可返回。获取到txhash后,用户可使用 获取文本存证、存证核验 等存证服务功能。 Summary: 租赁业务获取订单存证列表 """ UtilClient.validate_model(request) return twc_models.ListLeaseNotaryResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.notary.list', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_lease_application( self, request: twc_models.QueryLeaseApplicationRequest, ) -> twc_models.QueryLeaseApplicationResponse: """ Description: 查询融资租赁application Summary: 查询融资租赁application """ runtime = util_models.RuntimeOptions() headers = {} return self.query_lease_application_ex(request, headers, runtime) async def query_lease_application_async( self, request: twc_models.QueryLeaseApplicationRequest, ) -> twc_models.QueryLeaseApplicationResponse: """ Description: 查询融资租赁application Summary: 查询融资租赁application """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_lease_application_ex_async(request, headers, runtime) def query_lease_application_ex( self, request: twc_models.QueryLeaseApplicationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseApplicationResponse: """ Description: 查询融资租赁application Summary: 查询融资租赁application """ UtilClient.validate_model(request) return twc_models.QueryLeaseApplicationResponse().from_map( self.do_request('1.0', 'twc.notary.lease.application.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_lease_application_ex_async( self, request: twc_models.QueryLeaseApplicationRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseApplicationResponse: """ Description: 查询融资租赁application Summary: 查询融资租赁application """ UtilClient.validate_model(request) return twc_models.QueryLeaseApplicationResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.application.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_lease_applicationdetailinfo( self, request: twc_models.QueryLeaseApplicationdetailinfoRequest, ) -> twc_models.QueryLeaseApplicationdetailinfoResponse: """ Description: 查询融资租赁application的定义详情 Summary: 查询application的定义详情 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_lease_applicationdetailinfo_ex(request, headers, runtime) async def query_lease_applicationdetailinfo_async( self, request: twc_models.QueryLeaseApplicationdetailinfoRequest, ) -> twc_models.QueryLeaseApplicationdetailinfoResponse: """ Description: 查询融资租赁application的定义详情 Summary: 查询application的定义详情 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_lease_applicationdetailinfo_ex_async(request, headers, runtime) def query_lease_applicationdetailinfo_ex( self, request: twc_models.QueryLeaseApplicationdetailinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseApplicationdetailinfoResponse: """ Description: 查询融资租赁application的定义详情 Summary: 查询application的定义详情 """ UtilClient.validate_model(request) return twc_models.QueryLeaseApplicationdetailinfoResponse().from_map( self.do_request('1.0', 'twc.notary.lease.applicationdetailinfo.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_lease_applicationdetailinfo_ex_async( self, request: twc_models.QueryLeaseApplicationdetailinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseApplicationdetailinfoResponse: """ Description: 查询融资租赁application的定义详情 Summary: 查询application的定义详情 """ UtilClient.validate_model(request) return twc_models.QueryLeaseApplicationdetailinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.applicationdetailinfo.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def set_lease_repaymentstatus( self, request: twc_models.SetLeaseRepaymentstatusRequest, ) -> twc_models.SetLeaseRepaymentstatusResponse: """ Description: 融资租赁资方重置订单状态 Summary: 融资租赁资方重置订单状态 """ runtime = util_models.RuntimeOptions() headers = {} return self.set_lease_repaymentstatus_ex(request, headers, runtime) async def set_lease_repaymentstatus_async( self, request: twc_models.SetLeaseRepaymentstatusRequest, ) -> twc_models.SetLeaseRepaymentstatusResponse: """ Description: 融资租赁资方重置订单状态 Summary: 融资租赁资方重置订单状态 """ runtime = util_models.RuntimeOptions() headers = {} return await self.set_lease_repaymentstatus_ex_async(request, headers, runtime) def set_lease_repaymentstatus_ex( self, request: twc_models.SetLeaseRepaymentstatusRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SetLeaseRepaymentstatusResponse: """ Description: 融资租赁资方重置订单状态 Summary: 融资租赁资方重置订单状态 """ UtilClient.validate_model(request) return twc_models.SetLeaseRepaymentstatusResponse().from_map( self.do_request('1.0', 'twc.notary.lease.repaymentstatus.set', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def set_lease_repaymentstatus_ex_async( self, request: twc_models.SetLeaseRepaymentstatusRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.SetLeaseRepaymentstatusResponse: """ Description: 融资租赁资方重置订单状态 Summary: 融资租赁资方重置订单状态 """ UtilClient.validate_model(request) return twc_models.SetLeaseRepaymentstatusResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.repaymentstatus.set', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_supplierinfo( self, request: twc_models.CreateLeaseSupplierinfoRequest, ) -> twc_models.CreateLeaseSupplierinfoResponse: """ Description: 供应商上传采购等相关信息 Summary: 供应商上传采购等相关信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_supplierinfo_ex(request, headers, runtime) async def create_lease_supplierinfo_async( self, request: twc_models.CreateLeaseSupplierinfoRequest, ) -> twc_models.CreateLeaseSupplierinfoResponse: """ Description: 供应商上传采购等相关信息 Summary: 供应商上传采购等相关信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_supplierinfo_ex_async(request, headers, runtime) def create_lease_supplierinfo_ex( self, request: twc_models.CreateLeaseSupplierinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseSupplierinfoResponse: """ Description: 供应商上传采购等相关信息 Summary: 供应商上传采购等相关信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseSupplierinfoResponse().from_map( self.do_request('1.0', 'twc.notary.lease.supplierinfo.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_supplierinfo_ex_async( self, request: twc_models.CreateLeaseSupplierinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseSupplierinfoResponse: """ Description: 供应商上传采购等相关信息 Summary: 供应商上传采购等相关信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseSupplierinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.supplierinfo.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def deploy_mytf_tapp( self, request: twc_models.DeployMytfTappRequest, ) -> twc_models.DeployMytfTappResponse: """ Description: mytf的tapp部署 Summary: mytf的tapp部署 """ runtime = util_models.RuntimeOptions() headers = {} return self.deploy_mytf_tapp_ex(request, headers, runtime) async def deploy_mytf_tapp_async( self, request: twc_models.DeployMytfTappRequest, ) -> twc_models.DeployMytfTappResponse: """ Description: mytf的tapp部署 Summary: mytf的tapp部署 """ runtime = util_models.RuntimeOptions() headers = {} return await self.deploy_mytf_tapp_ex_async(request, headers, runtime) def deploy_mytf_tapp_ex( self, request: twc_models.DeployMytfTappRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.DeployMytfTappResponse: """ Description: mytf的tapp部署 Summary: mytf的tapp部署 """ UtilClient.validate_model(request) return twc_models.DeployMytfTappResponse().from_map( self.do_request('1.0', 'twc.notary.mytf.tapp.deploy', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def deploy_mytf_tapp_ex_async( self, request: twc_models.DeployMytfTappRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.DeployMytfTappResponse: """ Description: mytf的tapp部署 Summary: mytf的tapp部署 """ UtilClient.validate_model(request) return twc_models.DeployMytfTappResponse().from_map( await self.do_request_async('1.0', 'twc.notary.mytf.tapp.deploy', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_supplierdynamicinfo( self, request: twc_models.CreateLeaseSupplierdynamicinfoRequest, ) -> twc_models.CreateLeaseSupplierdynamicinfoResponse: """ Description: 供应商更新物流状态、签收记录等信息 Summary: 供应商更新物流状态、签收记录等信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_supplierdynamicinfo_ex(request, headers, runtime) async def create_lease_supplierdynamicinfo_async( self, request: twc_models.CreateLeaseSupplierdynamicinfoRequest, ) -> twc_models.CreateLeaseSupplierdynamicinfoResponse: """ Description: 供应商更新物流状态、签收记录等信息 Summary: 供应商更新物流状态、签收记录等信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_supplierdynamicinfo_ex_async(request, headers, runtime) def create_lease_supplierdynamicinfo_ex( self, request: twc_models.CreateLeaseSupplierdynamicinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseSupplierdynamicinfoResponse: """ Description: 供应商更新物流状态、签收记录等信息 Summary: 供应商更新物流状态、签收记录等信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseSupplierdynamicinfoResponse().from_map( self.do_request('1.0', 'twc.notary.lease.supplierdynamicinfo.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_supplierdynamicinfo_ex_async( self, request: twc_models.CreateLeaseSupplierdynamicinfoRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseSupplierdynamicinfoResponse: """ Description: 供应商更新物流状态、签收记录等信息 Summary: 供应商更新物流状态、签收记录等信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseSupplierdynamicinfoResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.supplierdynamicinfo.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_biz( self, request: twc_models.CreateLeaseBizRequest, ) -> twc_models.CreateLeaseBizResponse: """ Description: 创建租赁订单相关信息,融资租赁的前置条件 Summary: 创建租赁订单相关信息,融资租赁的前置条件 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_biz_ex(request, headers, runtime) async def create_lease_biz_async( self, request: twc_models.CreateLeaseBizRequest, ) -> twc_models.CreateLeaseBizResponse: """ Description: 创建租赁订单相关信息,融资租赁的前置条件 Summary: 创建租赁订单相关信息,融资租赁的前置条件 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_biz_ex_async(request, headers, runtime) def create_lease_biz_ex( self, request: twc_models.CreateLeaseBizRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseBizResponse: """ Description: 创建租赁订单相关信息,融资租赁的前置条件 Summary: 创建租赁订单相关信息,融资租赁的前置条件 """ UtilClient.validate_model(request) return twc_models.CreateLeaseBizResponse().from_map( self.do_request('1.0', 'twc.notary.lease.biz.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_biz_ex_async( self, request: twc_models.CreateLeaseBizRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseBizResponse: """ Description: 创建租赁订单相关信息,融资租赁的前置条件 Summary: 创建租赁订单相关信息,融资租赁的前置条件 """ UtilClient.validate_model(request) return twc_models.CreateLeaseBizResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.biz.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_lease_proof( self, request: twc_models.QueryLeaseProofRequest, ) -> twc_models.QueryLeaseProofResponse: """ Description: 查询核验结果 Summary: 查询核验结果 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_lease_proof_ex(request, headers, runtime) async def query_lease_proof_async( self, request: twc_models.QueryLeaseProofRequest, ) -> twc_models.QueryLeaseProofResponse: """ Description: 查询核验结果 Summary: 查询核验结果 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_lease_proof_ex_async(request, headers, runtime) def query_lease_proof_ex( self, request: twc_models.QueryLeaseProofRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseProofResponse: """ Description: 查询核验结果 Summary: 查询核验结果 """ UtilClient.validate_model(request) return twc_models.QueryLeaseProofResponse().from_map( self.do_request('1.0', 'twc.notary.lease.proof.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_lease_proof_ex_async( self, request: twc_models.QueryLeaseProofRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseProofResponse: """ Description: 查询核验结果 Summary: 查询核验结果 """ UtilClient.validate_model(request) return twc_models.QueryLeaseProofResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.proof.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_largefile( self, request: twc_models.CreateLargefileRequest, ) -> twc_models.CreateLargefileResponse: """ Description: 发起文件存证,将文件内容存证上链,可存证10M以内的文件 Summary: 大文件内容存证接口 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_largefile_ex(request, headers, runtime) async def create_largefile_async( self, request: twc_models.CreateLargefileRequest, ) -> twc_models.CreateLargefileResponse: """ Description: 发起文件存证,将文件内容存证上链,可存证10M以内的文件 Summary: 大文件内容存证接口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_largefile_ex_async(request, headers, runtime) def create_largefile_ex( self, request: twc_models.CreateLargefileRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLargefileResponse: """ Description: 发起文件存证,将文件内容存证上链,可存证10M以内的文件 Summary: 大文件内容存证接口 """ UtilClient.validate_model(request) return twc_models.CreateLargefileResponse().from_map( self.do_request('1.0', 'twc.notary.largefile.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_largefile_ex_async( self, request: twc_models.CreateLargefileRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLargefileResponse: """ Description: 发起文件存证,将文件内容存证上链,可存证10M以内的文件 Summary: 大文件内容存证接口 """ UtilClient.validate_model(request) return twc_models.CreateLargefileResponse().from_map( await self.do_request_async('1.0', 'twc.notary.largefile.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_lease_biz( self, request: twc_models.QueryLeaseBizRequest, ) -> twc_models.QueryLeaseBizResponse: """ Description: 租赁平台查询接口 Summary: 租赁平台查询接口 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_lease_biz_ex(request, headers, runtime) async def query_lease_biz_async( self, request: twc_models.QueryLeaseBizRequest, ) -> twc_models.QueryLeaseBizResponse: """ Description: 租赁平台查询接口 Summary: 租赁平台查询接口 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_lease_biz_ex_async(request, headers, runtime) def query_lease_biz_ex( self, request: twc_models.QueryLeaseBizRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseBizResponse: """ Description: 租赁平台查询接口 Summary: 租赁平台查询接口 """ UtilClient.validate_model(request) return twc_models.QueryLeaseBizResponse().from_map( self.do_request('1.0', 'twc.notary.lease.biz.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_lease_biz_ex_async( self, request: twc_models.QueryLeaseBizRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryLeaseBizResponse: """ Description: 租赁平台查询接口 Summary: 租赁平台查询接口 """ UtilClient.validate_model(request) return twc_models.QueryLeaseBizResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.biz.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_biznotary( self, request: twc_models.CreateLeaseBiznotaryRequest, ) -> twc_models.CreateLeaseBiznotaryResponse: """ Description: 租赁宝哈希存证 Summary: 租赁宝哈希存证 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_biznotary_ex(request, headers, runtime) async def create_lease_biznotary_async( self, request: twc_models.CreateLeaseBiznotaryRequest, ) -> twc_models.CreateLeaseBiznotaryResponse: """ Description: 租赁宝哈希存证 Summary: 租赁宝哈希存证 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_biznotary_ex_async(request, headers, runtime) def create_lease_biznotary_ex( self, request: twc_models.CreateLeaseBiznotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseBiznotaryResponse: """ Description: 租赁宝哈希存证 Summary: 租赁宝哈希存证 """ UtilClient.validate_model(request) return twc_models.CreateLeaseBiznotaryResponse().from_map( self.do_request('1.0', 'twc.notary.lease.biznotary.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_biznotary_ex_async( self, request: twc_models.CreateLeaseBiznotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseBiznotaryResponse: """ Description: 租赁宝哈希存证 Summary: 租赁宝哈希存证 """ UtilClient.validate_model(request) return twc_models.CreateLeaseBiznotaryResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.biznotary.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_internal_contract( self, request: twc_models.CreateInternalContractRequest, ) -> twc_models.CreateInternalContractResponse: """ Description: 合同内部文本存证 Summary: 合同内部文本存证 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_internal_contract_ex(request, headers, runtime) async def create_internal_contract_async( self, request: twc_models.CreateInternalContractRequest, ) -> twc_models.CreateInternalContractResponse: """ Description: 合同内部文本存证 Summary: 合同内部文本存证 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_internal_contract_ex_async(request, headers, runtime) def create_internal_contract_ex( self, request: twc_models.CreateInternalContractRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateInternalContractResponse: """ Description: 合同内部文本存证 Summary: 合同内部文本存证 """ UtilClient.validate_model(request) return twc_models.CreateInternalContractResponse().from_map( self.do_request('1.0', 'twc.notary.internal.contract.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_internal_contract_ex_async( self, request: twc_models.CreateInternalContractRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateInternalContractResponse: """ Description: 合同内部文本存证 Summary: 合同内部文本存证 """ UtilClient.validate_model(request) return twc_models.CreateInternalContractResponse().from_map( await self.do_request_async('1.0', 'twc.notary.internal.contract.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_zftagreementsign( self, request: twc_models.CreateLeaseZftagreementsignRequest, ) -> twc_models.CreateLeaseZftagreementsignResponse: """ Description: 资方上传网商直付通代扣协议核验结果 Summary: 资方上传网商直付通代扣协议核验结果 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_zftagreementsign_ex(request, headers, runtime) async def create_lease_zftagreementsign_async( self, request: twc_models.CreateLeaseZftagreementsignRequest, ) -> twc_models.CreateLeaseZftagreementsignResponse: """ Description: 资方上传网商直付通代扣协议核验结果 Summary: 资方上传网商直付通代扣协议核验结果 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_zftagreementsign_ex_async(request, headers, runtime) def create_lease_zftagreementsign_ex( self, request: twc_models.CreateLeaseZftagreementsignRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseZftagreementsignResponse: """ Description: 资方上传网商直付通代扣协议核验结果 Summary: 资方上传网商直付通代扣协议核验结果 """ UtilClient.validate_model(request) return twc_models.CreateLeaseZftagreementsignResponse().from_map( self.do_request('1.0', 'twc.notary.lease.zftagreementsign.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_zftagreementsign_ex_async( self, request: twc_models.CreateLeaseZftagreementsignRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseZftagreementsignResponse: """ Description: 资方上传网商直付通代扣协议核验结果 Summary: 资方上传网商直付通代扣协议核验结果 """ UtilClient.validate_model(request) return twc_models.CreateLeaseZftagreementsignResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.zftagreementsign.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_lease_zftagreementunsign( self, request: twc_models.CreateLeaseZftagreementunsignRequest, ) -> twc_models.CreateLeaseZftagreementunsignResponse: """ Description: 资方上传网商直付通代扣协议解约相关信息 Summary: 资方上传网商直付通代扣协议解约相关信息 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_lease_zftagreementunsign_ex(request, headers, runtime) async def create_lease_zftagreementunsign_async( self, request: twc_models.CreateLeaseZftagreementunsignRequest, ) -> twc_models.CreateLeaseZftagreementunsignResponse: """ Description: 资方上传网商直付通代扣协议解约相关信息 Summary: 资方上传网商直付通代扣协议解约相关信息 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_lease_zftagreementunsign_ex_async(request, headers, runtime) def create_lease_zftagreementunsign_ex( self, request: twc_models.CreateLeaseZftagreementunsignRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseZftagreementunsignResponse: """ Description: 资方上传网商直付通代扣协议解约相关信息 Summary: 资方上传网商直付通代扣协议解约相关信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseZftagreementunsignResponse().from_map( self.do_request('1.0', 'twc.notary.lease.zftagreementunsign.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_lease_zftagreementunsign_ex_async( self, request: twc_models.CreateLeaseZftagreementunsignRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateLeaseZftagreementunsignResponse: """ Description: 资方上传网商直付通代扣协议解约相关信息 Summary: 资方上传网商直付通代扣协议解约相关信息 """ UtilClient.validate_model(request) return twc_models.CreateLeaseZftagreementunsignResponse().from_map( await self.do_request_async('1.0', 'twc.notary.lease.zftagreementunsign.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_certificate_detail( self, request: twc_models.GetCertificateDetailRequest, ) -> twc_models.GetCertificateDetailResponse: """ Description: 获取蚂蚁链版存证证明 Summary: 获取蚂蚁链版存证证明 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_certificate_detail_ex(request, headers, runtime) async def get_certificate_detail_async( self, request: twc_models.GetCertificateDetailRequest, ) -> twc_models.GetCertificateDetailResponse: """ Description: 获取蚂蚁链版存证证明 Summary: 获取蚂蚁链版存证证明 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_certificate_detail_ex_async(request, headers, runtime) def get_certificate_detail_ex( self, request: twc_models.GetCertificateDetailRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetCertificateDetailResponse: """ Description: 获取蚂蚁链版存证证明 Summary: 获取蚂蚁链版存证证明 """ UtilClient.validate_model(request) return twc_models.GetCertificateDetailResponse().from_map( self.do_request('1.0', 'twc.notary.certificate.detail.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_certificate_detail_ex_async( self, request: twc_models.GetCertificateDetailRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetCertificateDetailResponse: """ Description: 获取蚂蚁链版存证证明 Summary: 获取蚂蚁链版存证证明 """ UtilClient.validate_model(request) return twc_models.GetCertificateDetailResponse().from_map( await self.do_request_async('1.0', 'twc.notary.certificate.detail.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def get_internal_text( self, request: twc_models.GetInternalTextRequest, ) -> twc_models.GetInternalTextResponse: """ Description: 用户通过交易哈希获取自己上传的文本存证内容 Summary: 获取文本存证内容 """ runtime = util_models.RuntimeOptions() headers = {} return self.get_internal_text_ex(request, headers, runtime) async def get_internal_text_async( self, request: twc_models.GetInternalTextRequest, ) -> twc_models.GetInternalTextResponse: """ Description: 用户通过交易哈希获取自己上传的文本存证内容 Summary: 获取文本存证内容 """ runtime = util_models.RuntimeOptions() headers = {} return await self.get_internal_text_ex_async(request, headers, runtime) def get_internal_text_ex( self, request: twc_models.GetInternalTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetInternalTextResponse: """ Description: 用户通过交易哈希获取自己上传的文本存证内容 Summary: 获取文本存证内容 """ UtilClient.validate_model(request) return twc_models.GetInternalTextResponse().from_map( self.do_request('1.0', 'twc.notary.internal.text.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def get_internal_text_ex_async( self, request: twc_models.GetInternalTextRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.GetInternalTextResponse: """ Description: 用户通过交易哈希获取自己上传的文本存证内容 Summary: 获取文本存证内容 """ UtilClient.validate_model(request) return twc_models.GetInternalTextResponse().from_map( await self.do_request_async('1.0', 'twc.notary.internal.text.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def open_internal_twc( self, request: twc_models.OpenInternalTwcRequest, ) -> twc_models.OpenInternalTwcResponse: """ Description: 三方服务获取开通权限,标记开通状态。 Summary: 三方服务获取开通权限,标记开通状态。 """ runtime = util_models.RuntimeOptions() headers = {} return self.open_internal_twc_ex(request, headers, runtime) async def open_internal_twc_async( self, request: twc_models.OpenInternalTwcRequest, ) -> twc_models.OpenInternalTwcResponse: """ Description: 三方服务获取开通权限,标记开通状态。 Summary: 三方服务获取开通权限,标记开通状态。 """ runtime = util_models.RuntimeOptions() headers = {} return await self.open_internal_twc_ex_async(request, headers, runtime) def open_internal_twc_ex( self, request: twc_models.OpenInternalTwcRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.OpenInternalTwcResponse: """ Description: 三方服务获取开通权限,标记开通状态。 Summary: 三方服务获取开通权限,标记开通状态。 """ UtilClient.validate_model(request) return twc_models.OpenInternalTwcResponse().from_map( self.do_request('1.0', 'twc.notary.internal.twc.open', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def open_internal_twc_ex_async( self, request: twc_models.OpenInternalTwcRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.OpenInternalTwcResponse: """ Description: 三方服务获取开通权限,标记开通状态。 Summary: 三方服务获取开通权限,标记开通状态。 """ UtilClient.validate_model(request) return twc_models.OpenInternalTwcResponse().from_map( await self.do_request_async('1.0', 'twc.notary.internal.twc.open', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_flow_instance( self, request: twc_models.CreateFlowInstanceRequest, ) -> twc_models.CreateFlowInstanceResponse: """ Description: 创建存证流程实例 Summary: 创建存证流程实例 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_flow_instance_ex(request, headers, runtime) async def create_flow_instance_async( self, request: twc_models.CreateFlowInstanceRequest, ) -> twc_models.CreateFlowInstanceResponse: """ Description: 创建存证流程实例 Summary: 创建存证流程实例 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_flow_instance_ex_async(request, headers, runtime) def create_flow_instance_ex( self, request: twc_models.CreateFlowInstanceRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateFlowInstanceResponse: """ Description: 创建存证流程实例 Summary: 创建存证流程实例 """ UtilClient.validate_model(request) return twc_models.CreateFlowInstanceResponse().from_map( self.do_request('1.0', 'twc.notary.flow.instance.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_flow_instance_ex_async( self, request: twc_models.CreateFlowInstanceRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateFlowInstanceResponse: """ Description: 创建存证流程实例 Summary: 创建存证流程实例 """ UtilClient.validate_model(request) return twc_models.CreateFlowInstanceResponse().from_map( await self.do_request_async('1.0', 'twc.notary.flow.instance.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def finish_flow_instance( self, request: twc_models.FinishFlowInstanceRequest, ) -> twc_models.FinishFlowInstanceResponse: """ Description: 存证流程实例完结 Summary: 存证流程实例完结 """ runtime = util_models.RuntimeOptions() headers = {} return self.finish_flow_instance_ex(request, headers, runtime) async def finish_flow_instance_async( self, request: twc_models.FinishFlowInstanceRequest, ) -> twc_models.FinishFlowInstanceResponse: """ Description: 存证流程实例完结 Summary: 存证流程实例完结 """ runtime = util_models.RuntimeOptions() headers = {} return await self.finish_flow_instance_ex_async(request, headers, runtime) def finish_flow_instance_ex( self, request: twc_models.FinishFlowInstanceRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.FinishFlowInstanceResponse: """ Description: 存证流程实例完结 Summary: 存证流程实例完结 """ UtilClient.validate_model(request) return twc_models.FinishFlowInstanceResponse().from_map( self.do_request('1.0', 'twc.notary.flow.instance.finish', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def finish_flow_instance_ex_async( self, request: twc_models.FinishFlowInstanceRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.FinishFlowInstanceResponse: """ Description: 存证流程实例完结 Summary: 存证流程实例完结 """ UtilClient.validate_model(request) return twc_models.FinishFlowInstanceResponse().from_map( await self.do_request_async('1.0', 'twc.notary.flow.instance.finish', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def init_flow_phase( self, request: twc_models.InitFlowPhaseRequest, ) -> twc_models.InitFlowPhaseResponse: """ Description: 创建阶段存证 Summary: 创建阶段存证 """ runtime = util_models.RuntimeOptions() headers = {} return self.init_flow_phase_ex(request, headers, runtime) async def init_flow_phase_async( self, request: twc_models.InitFlowPhaseRequest, ) -> twc_models.InitFlowPhaseResponse: """ Description: 创建阶段存证 Summary: 创建阶段存证 """ runtime = util_models.RuntimeOptions() headers = {} return await self.init_flow_phase_ex_async(request, headers, runtime) def init_flow_phase_ex( self, request: twc_models.InitFlowPhaseRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.InitFlowPhaseResponse: """ Description: 创建阶段存证 Summary: 创建阶段存证 """ UtilClient.validate_model(request) return twc_models.InitFlowPhaseResponse().from_map( self.do_request('1.0', 'twc.notary.flow.phase.init', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def init_flow_phase_ex_async( self, request: twc_models.InitFlowPhaseRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.InitFlowPhaseResponse: """ Description: 创建阶段存证 Summary: 创建阶段存证 """ UtilClient.validate_model(request) return twc_models.InitFlowPhaseResponse().from_map( await self.do_request_async('1.0', 'twc.notary.flow.phase.init', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_flow_phase( self, request: twc_models.QueryFlowPhaseRequest, ) -> twc_models.QueryFlowPhaseResponse: """ Description: 查询阶段存证结果 Summary: 查询阶段存证结果 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_flow_phase_ex(request, headers, runtime) async def query_flow_phase_async( self, request: twc_models.QueryFlowPhaseRequest, ) -> twc_models.QueryFlowPhaseResponse: """ Description: 查询阶段存证结果 Summary: 查询阶段存证结果 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_flow_phase_ex_async(request, headers, runtime) def query_flow_phase_ex( self, request: twc_models.QueryFlowPhaseRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryFlowPhaseResponse: """ Description: 查询阶段存证结果 Summary: 查询阶段存证结果 """ UtilClient.validate_model(request) return twc_models.QueryFlowPhaseResponse().from_map( self.do_request('1.0', 'twc.notary.flow.phase.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_flow_phase_ex_async( self, request: twc_models.QueryFlowPhaseRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryFlowPhaseResponse: """ Description: 查询阶段存证结果 Summary: 查询阶段存证结果 """ UtilClient.validate_model(request) return twc_models.QueryFlowPhaseResponse().from_map( await self.do_request_async('1.0', 'twc.notary.flow.phase.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def detail_flow_phase( self, request: twc_models.DetailFlowPhaseRequest, ) -> twc_models.DetailFlowPhaseResponse: """ Description: 阶段存证数据详情 Summary: 阶段存证数据详情 """ runtime = util_models.RuntimeOptions() headers = {} return self.detail_flow_phase_ex(request, headers, runtime) async def detail_flow_phase_async( self, request: twc_models.DetailFlowPhaseRequest, ) -> twc_models.DetailFlowPhaseResponse: """ Description: 阶段存证数据详情 Summary: 阶段存证数据详情 """ runtime = util_models.RuntimeOptions() headers = {} return await self.detail_flow_phase_ex_async(request, headers, runtime) def detail_flow_phase_ex( self, request: twc_models.DetailFlowPhaseRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.DetailFlowPhaseResponse: """ Description: 阶段存证数据详情 Summary: 阶段存证数据详情 """ UtilClient.validate_model(request) return twc_models.DetailFlowPhaseResponse().from_map( self.do_request('1.0', 'twc.notary.flow.phase.detail', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def detail_flow_phase_ex_async( self, request: twc_models.DetailFlowPhaseRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.DetailFlowPhaseResponse: """ Description: 阶段存证数据详情 Summary: 阶段存证数据详情 """ UtilClient.validate_model(request) return twc_models.DetailFlowPhaseResponse().from_map( await self.do_request_async('1.0', 'twc.notary.flow.phase.detail', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def create_flow_onestepnotary( self, request: twc_models.CreateFlowOnestepnotaryRequest, ) -> twc_models.CreateFlowOnestepnotaryResponse: """ Description: 一键创建全流程存证实例和阶段存证 Summary: 一键创建全流程存证实例和阶段存证 """ runtime = util_models.RuntimeOptions() headers = {} return self.create_flow_onestepnotary_ex(request, headers, runtime) async def create_flow_onestepnotary_async( self, request: twc_models.CreateFlowOnestepnotaryRequest, ) -> twc_models.CreateFlowOnestepnotaryResponse: """ Description: 一键创建全流程存证实例和阶段存证 Summary: 一键创建全流程存证实例和阶段存证 """ runtime = util_models.RuntimeOptions() headers = {} return await self.create_flow_onestepnotary_ex_async(request, headers, runtime) def create_flow_onestepnotary_ex( self, request: twc_models.CreateFlowOnestepnotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateFlowOnestepnotaryResponse: """ Description: 一键创建全流程存证实例和阶段存证 Summary: 一键创建全流程存证实例和阶段存证 """ UtilClient.validate_model(request) return twc_models.CreateFlowOnestepnotaryResponse().from_map( self.do_request('1.0', 'twc.notary.flow.onestepnotary.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def create_flow_onestepnotary_ex_async( self, request: twc_models.CreateFlowOnestepnotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.CreateFlowOnestepnotaryResponse: """ Description: 一键创建全流程存证实例和阶段存证 Summary: 一键创建全流程存证实例和阶段存证 """ UtilClient.validate_model(request) return twc_models.CreateFlowOnestepnotaryResponse().from_map( await self.do_request_async('1.0', 'twc.notary.flow.onestepnotary.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_flow_onestepnotary( self, request: twc_models.QueryFlowOnestepnotaryRequest, ) -> twc_models.QueryFlowOnestepnotaryResponse: """ Description: 查询一键创建全流程存证进度状态 Summary: 查询一键创建全流程存证进度状态 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_flow_onestepnotary_ex(request, headers, runtime) async def query_flow_onestepnotary_async( self, request: twc_models.QueryFlowOnestepnotaryRequest, ) -> twc_models.QueryFlowOnestepnotaryResponse: """ Description: 查询一键创建全流程存证进度状态 Summary: 查询一键创建全流程存证进度状态 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_flow_onestepnotary_ex_async(request, headers, runtime) def query_flow_onestepnotary_ex( self, request: twc_models.QueryFlowOnestepnotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryFlowOnestepnotaryResponse: """ Description: 查询一键创建全流程存证进度状态 Summary: 查询一键创建全流程存证进度状态 """ UtilClient.validate_model(request) return twc_models.QueryFlowOnestepnotaryResponse().from_map( self.do_request('1.0', 'twc.notary.flow.onestepnotary.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_flow_onestepnotary_ex_async( self, request: twc_models.QueryFlowOnestepnotaryRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryFlowOnestepnotaryResponse: """ Description: 查询一键创建全流程存证进度状态 Summary: 查询一键创建全流程存证进度状态 """ UtilClient.validate_model(request) return twc_models.QueryFlowOnestepnotaryResponse().from_map( await self.do_request_async('1.0', 'twc.notary.flow.onestepnotary.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def apply_flow_certificate( self, request: twc_models.ApplyFlowCertificateRequest, ) -> twc_models.ApplyFlowCertificateResponse: """ Description: 存证全流程证明申请 Summary: 存证全流程证明申请 """ runtime = util_models.RuntimeOptions() headers = {} return self.apply_flow_certificate_ex(request, headers, runtime) async def apply_flow_certificate_async( self, request: twc_models.ApplyFlowCertificateRequest, ) -> twc_models.ApplyFlowCertificateResponse: """ Description: 存证全流程证明申请 Summary: 存证全流程证明申请 """ runtime = util_models.RuntimeOptions() headers = {} return await self.apply_flow_certificate_ex_async(request, headers, runtime) def apply_flow_certificate_ex( self, request: twc_models.ApplyFlowCertificateRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ApplyFlowCertificateResponse: """ Description: 存证全流程证明申请 Summary: 存证全流程证明申请 """ UtilClient.validate_model(request) return twc_models.ApplyFlowCertificateResponse().from_map( self.do_request('1.0', 'twc.notary.flow.certificate.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def apply_flow_certificate_ex_async( self, request: twc_models.ApplyFlowCertificateRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.ApplyFlowCertificateResponse: """ Description: 存证全流程证明申请 Summary: 存证全流程证明申请 """ UtilClient.validate_model(request) return twc_models.ApplyFlowCertificateResponse().from_map( await self.do_request_async('1.0', 'twc.notary.flow.certificate.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) def query_flow_certificate( self, request: twc_models.QueryFlowCertificateRequest, ) -> twc_models.QueryFlowCertificateResponse: """ Description: 存证全流程证明出证进度查询 Summary: 存证全流程证明出证进度查询 """ runtime = util_models.RuntimeOptions() headers = {} return self.query_flow_certificate_ex(request, headers, runtime) async def query_flow_certificate_async( self, request: twc_models.QueryFlowCertificateRequest, ) -> twc_models.QueryFlowCertificateResponse: """ Description: 存证全流程证明出证进度查询 Summary: 存证全流程证明出证进度查询 """ runtime = util_models.RuntimeOptions() headers = {} return await self.query_flow_certificate_ex_async(request, headers, runtime) def query_flow_certificate_ex( self, request: twc_models.QueryFlowCertificateRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryFlowCertificateResponse: """ Description: 存证全流程证明出证进度查询 Summary: 存证全流程证明出证进度查询 """ UtilClient.validate_model(request) return twc_models.QueryFlowCertificateResponse().from_map( self.do_request('1.0', 'twc.notary.flow.certificate.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) ) async def query_flow_certificate_ex_async( self, request: twc_models.QueryFlowCertificateRequest, headers: Dict[str, str], runtime: util_models.RuntimeOptions, ) -> twc_models.QueryFlowCertificateResponse: """ Description: 存证全流程证明出证进度查询 Summary: 存证全流程证明出证进度查询 """ UtilClient.validate_model(request) return twc_models.QueryFlowCertificateResponse().from_map( await self.do_request_async('1.0', 'twc.notary.flow.certificate.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime) )
38.200699
209
0.662645
40,264
448,056
7.143428
0.032138
0.066399
0.050239
0.091613
0.994444
0.984424
0.978489
0.95266
0.869864
0.8586
0
0.00272
0.242735
448,056
11,728
210
38.203956
0.844982
0.055243
0
0.706111
1
0
0.067755
0.039066
0
0
0
0
0.000537
1
0.05722
false
0
0.001343
0
0.17542
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
ea57b4a186182e2cf09363e842891290cab1f1c0
3,883
py
Python
lib/backproppers.py
giulio-zhou/pytorch-cifar
fd05e164ccc23a54fb4f1aa2101b20cf4abf71f6
[ "MIT" ]
null
null
null
lib/backproppers.py
giulio-zhou/pytorch-cifar
fd05e164ccc23a54fb4f1aa2101b20cf4abf71f6
[ "MIT" ]
null
null
null
lib/backproppers.py
giulio-zhou/pytorch-cifar
fd05e164ccc23a54fb4f1aa2101b20cf4abf71f6
[ "MIT" ]
null
null
null
import torch import torch.nn as nn class PrimedBackpropper(object): def __init__(self, initial, final, initial_epochs, epoch=0): self.epoch = epoch self.initial = initial self.final = final self.initial_epochs = initial_epochs def next_epoch(self): self.epoch += 1 def get_backpropper(self): return self.initial if self.epoch < self.initial_epochs else self.final @property def optimizer(self): return self.initial.optimizer if self.epoch < self.initial_epochs else self.final.optimizer def backward_pass(self, *args, **kwargs): return self.get_backpropper().backward_pass(*args, **kwargs) class BaselineBackpropper(object): def __init__(self, device, net, optimizer): self.optimizer = optimizer self.net = net self.device = device # TODO: This doesn't work after resuming from checkpoint def _get_chosen_data_tensor(self, batch): chosen_data = [example.datum for example in batch if example.select] return torch.stack(chosen_data) def _get_chosen_targets_tensor(self, batch): chosen_targets = [example.target for example in batch if example.select] return torch.stack(chosen_targets) def _get_chosen_probabilities_tensor(self, batch): probabilities = [example.select_probability for example in batch if example.select] return torch.tensor(probabilities, dtype=torch.float) def backward_pass(self, batch): self.net.train() data = self._get_chosen_data_tensor(batch) targets = self._get_chosen_targets_tensor(batch) probabilities = self._get_chosen_probabilities_tensor(batch) # Run forward pass # Necessary if the network has been updated between last forward pass outputs = self.net(data) losses = nn.CrossEntropyLoss(reduce=False)(outputs, targets) # Add for logging selected loss for example, loss in zip(batch, losses): example.backpropped_loss = loss.item() # Reduce loss loss = losses.mean() # Run backwards pass self.optimizer.zero_grad() loss.backward() self.optimizer.step() return batch class SamplingBackpropper(object): def __init__(self, device, net, optimizer): self.optimizer = optimizer self.net = net self.device = device def _get_chosen_data_tensor(self, batch): chosen_data = [example.datum for example in batch if example.select] return torch.stack(chosen_data) def _get_chosen_targets_tensor(self, batch): chosen_targets = [example.target for example in batch if example.select] return torch.stack(chosen_targets) def _get_chosen_probabilities_tensor(self, batch): probabilities = [example.select_probability for example in batch if example.select] return torch.tensor(probabilities, dtype=torch.float) def backward_pass(self, batch): self.net.train() data = self._get_chosen_data_tensor(batch) targets = self._get_chosen_targets_tensor(batch) probabilities = self._get_chosen_probabilities_tensor(batch) # Run forward pass # Necessary if the network has been updated between last forward pass outputs = self.net(data) losses = nn.CrossEntropyLoss(reduce=False)(outputs, targets) # Scale each loss by image-specific select probs #losses = torch.div(losses, probabilities.to(self.device)) # Add for logging selected loss for example, loss in zip(batch, losses): example.backpropped_loss = loss.item() # Reduce loss loss = losses.mean() # Run backwards pass self.optimizer.zero_grad() loss.backward() self.optimizer.step() return batch
32.090909
99
0.673448
471
3,883
5.369427
0.197452
0.042705
0.02847
0.040332
0.782918
0.782918
0.782918
0.782918
0.782918
0.750494
0
0.000684
0.246716
3,883
120
100
32.358333
0.863932
0.11589
0
0.739726
0
0
0
0
0
0
0
0.008333
0
1
0.205479
false
0.054795
0.027397
0.041096
0.424658
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
8
ea658afe7ff617aa994f4e035a37520d0cbee4f1
289,913
py
Python
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_firewall_vip6.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_firewall_vip6.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_firewall_vip6.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019-2020 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. __metaclass__ = type ANSIBLE_METADATA = {'status': ['preview'], 'supported_by': 'community', 'metadata_version': '1.1'} DOCUMENTATION = ''' --- module: fortios_firewall_vip6 short_description: Configure virtual IP for IPv6 in Fortinet's FortiOS and FortiGate. description: - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify firewall feature and vip6 category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v6.0.0 version_added: "2.10" author: - Link Zheng (@chillancezen) - Jie Xue (@JieX19) - Hongbin Lu (@fgtdev-hblu) - Frank Shen (@frankshen01) - Miguel Angel Munoz (@mamunozgonzalez) - Nicolas Thomas (@thomnico) notes: - Legacy fortiosapi has been deprecated, httpapi is the preferred way to run playbooks requirements: - ansible>=2.9.0 options: access_token: description: - Token-based authentication. Generated from GUI of Fortigate. type: str required: false enable_log: description: - Enable/Disable logging for task. type: bool required: false default: false vdom: description: - Virtual domain, among those defined previously. A vdom is a virtual instance of the FortiGate that can be configured and used as a different unit. type: str default: root member_path: type: str description: - Member attribute path to operate on. - Delimited by a slash character if there are more than one attribute. - Parameter marked with member_path is legitimate for doing member operation. member_state: type: str description: - Add or delete a member under specified attribute path. - When member_state is specified, the state option is ignored. choices: - present - absent state: description: - Indicates whether to create or remove the object. type: str required: true choices: - present - absent firewall_vip6: description: - Configure virtual IP for IPv6. default: null type: dict suboptions: add_nat64_route: description: - Enable/disable adding NAT64 route. type: str choices: - disable - enable arp_reply: description: - Enable to respond to ARP requests for this virtual IP address. Enabled by default. type: str choices: - disable - enable color: description: - Color of icon on the GUI. type: int comment: description: - Comment. type: str embedded_ipv4_address: description: - Enable/disable embedded IPv4 address. type: str choices: - disable - enable extip: description: - IP address or address range on the external interface that you want to map to an address or address range on the destination network. type: str extport: description: - Incoming port number range that you want to map to a port number range on the destination network. type: str http_cookie_age: description: - Time in minutes that client web browsers should keep a cookie. Default is 60 seconds. 0 = no time limit. type: int http_cookie_domain: description: - Domain that HTTP cookie persistence should apply to. type: str http_cookie_domain_from_host: description: - Enable/disable use of HTTP cookie domain from host field in HTTP. type: str choices: - disable - enable http_cookie_generation: description: - Generation of HTTP cookie to be accepted. Changing invalidates all existing cookies. type: int http_cookie_path: description: - Limit HTTP cookie persistence to the specified path. type: str http_cookie_share: description: - Control sharing of cookies across virtual servers. same-ip means a cookie from one virtual server can be used by another. Disable stops cookie sharing. type: str choices: - disable - same-ip http_ip_header: description: - For HTTP multiplexing, enable to add the original client IP address in the XForwarded-For HTTP header. type: str choices: - enable - disable http_ip_header_name: description: - For HTTP multiplexing, enter a custom HTTPS header name. The original client IP address is added to this header. If empty, X-Forwarded-For is used. type: str http_multiplex: description: - Enable/disable HTTP multiplexing. type: str choices: - enable - disable http_redirect: description: - Enable/disable redirection of HTTP to HTTPS type: str choices: - enable - disable https_cookie_secure: description: - Enable/disable verification that inserted HTTPS cookies are secure. type: str choices: - disable - enable id: description: - Custom defined ID. type: int ipv4_mappedip: description: - Start-mapped-IPv4-address [-end mapped-IPv4-address]. type: str ipv4_mappedport: description: - IPv4 port number range on the destination network to which the external port number range is mapped. type: str ldb_method: description: - Method used to distribute sessions to real servers. type: str choices: - static - round-robin - weighted - least-session - least-rtt - first-alive - http-host mappedip: description: - Mapped IP address range in the format startIP-endIP. type: str mappedport: description: - Port number range on the destination network to which the external port number range is mapped. type: str max_embryonic_connections: description: - Maximum number of incomplete connections. type: int monitor: description: - Name of the health check monitor to use when polling to determine a virtual server"s connectivity status. type: list suboptions: name: description: - Health monitor name. Source firewall.ldb-monitor.name. required: true type: str name: description: - Virtual ip6 name. required: true type: str nat_source_vip: description: - Enable to perform SNAT on traffic from mappedip to the extip for all egress interfaces. type: str choices: - disable - enable nat64: description: - Enable/disable DNAT64. type: str choices: - disable - enable nat66: description: - Enable/disable DNAT66. type: str choices: - disable - enable outlook_web_access: description: - Enable to add the Front-End-Https header for Microsoft Outlook Web Access. type: str choices: - disable - enable persistence: description: - Configure how to make sure that clients connect to the same server every time they make a request that is part of the same session. type: str choices: - none - http-cookie - ssl-session-id portforward: description: - Enable port forwarding. type: str choices: - disable - enable protocol: description: - Protocol to use when forwarding packets. type: str choices: - tcp - udp - sctp realservers: description: - Select the real servers that this server load balancing VIP will distribute traffic to. type: list suboptions: client_ip: description: - Only clients in this IP range can connect to this real server. type: str healthcheck: description: - Enable to check the responsiveness of the real server before forwarding traffic. type: str choices: - disable - enable - vip holddown_interval: description: - Time in seconds that the health check monitor continues to monitor an unresponsive server that should be active. type: int http_host: description: - HTTP server domain name in HTTP header. type: str id: description: - Real server ID. required: true type: int ip: description: - IPv6 address of the real server. type: str max_connections: description: - Max number of active connections that can directed to the real server. When reached, sessions are sent to other real servers. type: int monitor: description: - Name of the health check monitor to use when polling to determine a virtual server"s connectivity status. Source firewall .ldb-monitor.name. type: str port: description: - Port for communicating with the real server. Required if port forwarding is enabled. type: int status: description: - Set the status of the real server to active so that it can accept traffic, or on standby or disabled so no traffic is sent. type: str choices: - active - standby - disable weight: description: - Weight of the real server. If weighted load balancing is enabled, the server with the highest weight gets more connections. type: int server_type: description: - Protocol to be load balanced by the virtual server (also called the server load balance virtual IP). type: str choices: - http - https - imaps - pop3s - smtps - ssl - tcp - udp - ip src_filter: description: - 'Source IP6 filter (x:x:x:x:x:x:x:x/x). Separate addresses with spaces.' type: list suboptions: range: description: - Source-filter range. required: true type: str ssl_algorithm: description: - Permitted encryption algorithms for SSL sessions according to encryption strength. type: str choices: - high - medium - low - custom ssl_certificate: description: - The name of the SSL certificate to use for SSL acceleration. Source vpn.certificate.local.name. type: str ssl_cipher_suites: description: - SSL/TLS cipher suites acceptable from a client, ordered by priority. type: list suboptions: cipher: description: - Cipher suite name. type: str choices: - TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256 - TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256 - TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256 - TLS-DHE-RSA-WITH-AES-128-CBC-SHA - TLS-DHE-RSA-WITH-AES-256-CBC-SHA - TLS-DHE-RSA-WITH-AES-128-CBC-SHA256 - TLS-DHE-RSA-WITH-AES-128-GCM-SHA256 - TLS-DHE-RSA-WITH-AES-256-CBC-SHA256 - TLS-DHE-RSA-WITH-AES-256-GCM-SHA384 - TLS-DHE-DSS-WITH-AES-128-CBC-SHA - TLS-DHE-DSS-WITH-AES-256-CBC-SHA - TLS-DHE-DSS-WITH-AES-128-CBC-SHA256 - TLS-DHE-DSS-WITH-AES-128-GCM-SHA256 - TLS-DHE-DSS-WITH-AES-256-CBC-SHA256 - TLS-DHE-DSS-WITH-AES-256-GCM-SHA384 - TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA - TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256 - TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256 - TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA - TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384 - TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384 - TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA - TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256 - TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256 - TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384 - TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384 - TLS-RSA-WITH-AES-128-CBC-SHA - TLS-RSA-WITH-AES-256-CBC-SHA - TLS-RSA-WITH-AES-128-CBC-SHA256 - TLS-RSA-WITH-AES-128-GCM-SHA256 - TLS-RSA-WITH-AES-256-CBC-SHA256 - TLS-RSA-WITH-AES-256-GCM-SHA384 - TLS-RSA-WITH-CAMELLIA-128-CBC-SHA - TLS-RSA-WITH-CAMELLIA-256-CBC-SHA - TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256 - TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256 - TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA - TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA - TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA - TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA - TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA - TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256 - TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256 - TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256 - TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256 - TLS-DHE-RSA-WITH-SEED-CBC-SHA - TLS-DHE-DSS-WITH-SEED-CBC-SHA - TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256 - TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384 - TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256 - TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384 - TLS-RSA-WITH-SEED-CBC-SHA - TLS-RSA-WITH-ARIA-128-CBC-SHA256 - TLS-RSA-WITH-ARIA-256-CBC-SHA384 - TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256 - TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384 - TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256 - TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384 - TLS-ECDHE-RSA-WITH-RC4-128-SHA - TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA - TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA - TLS-RSA-WITH-3DES-EDE-CBC-SHA - TLS-RSA-WITH-RC4-128-MD5 - TLS-RSA-WITH-RC4-128-SHA - TLS-DHE-RSA-WITH-DES-CBC-SHA - TLS-DHE-DSS-WITH-DES-CBC-SHA - TLS-RSA-WITH-DES-CBC-SHA - TLS-AES-128-GCM-SHA256 - TLS-AES-256-GCM-SHA384 - TLS-CHACHA20-POLY1305-SHA256 - TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA priority: description: - SSL/TLS cipher suites priority. required: true type: int versions: description: - SSL/TLS versions that the cipher suite can be used with. type: str choices: - ssl-3.0 - tls-1.0 - tls-1.1 - tls-1.2 - tls-1.3 ssl_client_fallback: description: - Enable/disable support for preventing Downgrade Attacks on client connections (RFC 7507). type: str choices: - disable - enable ssl_client_rekey_count: description: - Maximum length of data in MB before triggering a client rekey (0 = disable). type: int ssl_client_renegotiation: description: - Allow, deny, or require secure renegotiation of client sessions to comply with RFC 5746. type: str choices: - allow - deny - secure ssl_client_session_state_max: description: - Maximum number of client to FortiGate SSL session states to keep. type: int ssl_client_session_state_timeout: description: - Number of minutes to keep client to FortiGate SSL session state. type: int ssl_client_session_state_type: description: - How to expire SSL sessions for the segment of the SSL connection between the client and the FortiGate. type: str choices: - disable - time - count - both ssl_dh_bits: description: - Number of bits to use in the Diffie-Hellman exchange for RSA encryption of SSL sessions. type: str choices: - 768 - 1024 - 1536 - 2048 - 3072 - 4096 ssl_hpkp: description: - Enable/disable including HPKP header in response. type: str choices: - disable - enable - report-only ssl_hpkp_age: description: - Number of minutes the web browser should keep HPKP. type: int ssl_hpkp_backup: description: - Certificate to generate backup HPKP pin from. Source vpn.certificate.local.name vpn.certificate.ca.name. type: str ssl_hpkp_include_subdomains: description: - Indicate that HPKP header applies to all subdomains. type: str choices: - disable - enable ssl_hpkp_primary: description: - Certificate to generate primary HPKP pin from. Source vpn.certificate.local.name vpn.certificate.ca.name. type: str ssl_hpkp_report_uri: description: - URL to report HPKP violations to. type: str ssl_hsts: description: - Enable/disable including HSTS header in response. type: str choices: - disable - enable ssl_hsts_age: description: - Number of seconds the client should honour the HSTS setting. type: int ssl_hsts_include_subdomains: description: - Indicate that HSTS header applies to all subdomains. type: str choices: - disable - enable ssl_http_location_conversion: description: - Enable to replace HTTP with HTTPS in the reply"s Location HTTP header field. type: str choices: - enable - disable ssl_http_match_host: description: - Enable/disable HTTP host matching for location conversion. type: str choices: - enable - disable ssl_max_version: description: - Highest SSL/TLS version acceptable from a client. type: str choices: - ssl-3.0 - tls-1.0 - tls-1.1 - tls-1.2 - tls-1.3 ssl_min_version: description: - Lowest SSL/TLS version acceptable from a client. type: str choices: - ssl-3.0 - tls-1.0 - tls-1.1 - tls-1.2 - tls-1.3 ssl_mode: description: - Apply SSL offloading between the client and the FortiGate (half) or from the client to the FortiGate and from the FortiGate to the server (full). type: str choices: - half - full ssl_pfs: description: - Select the cipher suites that can be used for SSL perfect forward secrecy (PFS). Applies to both client and server sessions. type: str choices: - require - deny - allow ssl_send_empty_frags: description: - Enable/disable sending empty fragments to avoid CBC IV attacks (SSL 3.0 & TLS 1.0 only). May need to be disabled for compatibility with older systems. type: str choices: - enable - disable ssl_server_algorithm: description: - Permitted encryption algorithms for the server side of SSL full mode sessions according to encryption strength. type: str choices: - high - medium - low - custom - client ssl_server_cipher_suites: description: - SSL/TLS cipher suites to offer to a server, ordered by priority. type: list suboptions: cipher: description: - Cipher suite name. type: str choices: - TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256 - TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256 - TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256 - TLS-DHE-RSA-WITH-AES-128-CBC-SHA - TLS-DHE-RSA-WITH-AES-256-CBC-SHA - TLS-DHE-RSA-WITH-AES-128-CBC-SHA256 - TLS-DHE-RSA-WITH-AES-128-GCM-SHA256 - TLS-DHE-RSA-WITH-AES-256-CBC-SHA256 - TLS-DHE-RSA-WITH-AES-256-GCM-SHA384 - TLS-DHE-DSS-WITH-AES-128-CBC-SHA - TLS-DHE-DSS-WITH-AES-256-CBC-SHA - TLS-DHE-DSS-WITH-AES-128-CBC-SHA256 - TLS-DHE-DSS-WITH-AES-128-GCM-SHA256 - TLS-DHE-DSS-WITH-AES-256-CBC-SHA256 - TLS-DHE-DSS-WITH-AES-256-GCM-SHA384 - TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA - TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256 - TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256 - TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA - TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384 - TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384 - TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA - TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256 - TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256 - TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384 - TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384 - TLS-RSA-WITH-AES-128-CBC-SHA - TLS-RSA-WITH-AES-256-CBC-SHA - TLS-RSA-WITH-AES-128-CBC-SHA256 - TLS-RSA-WITH-AES-128-GCM-SHA256 - TLS-RSA-WITH-AES-256-CBC-SHA256 - TLS-RSA-WITH-AES-256-GCM-SHA384 - TLS-RSA-WITH-CAMELLIA-128-CBC-SHA - TLS-RSA-WITH-CAMELLIA-256-CBC-SHA - TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256 - TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256 - TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA - TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA - TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA - TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA - TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA - TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256 - TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256 - TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256 - TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256 - TLS-DHE-RSA-WITH-SEED-CBC-SHA - TLS-DHE-DSS-WITH-SEED-CBC-SHA - TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256 - TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384 - TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256 - TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384 - TLS-RSA-WITH-SEED-CBC-SHA - TLS-RSA-WITH-ARIA-128-CBC-SHA256 - TLS-RSA-WITH-ARIA-256-CBC-SHA384 - TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256 - TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384 - TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256 - TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384 - TLS-ECDHE-RSA-WITH-RC4-128-SHA - TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA - TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA - TLS-RSA-WITH-3DES-EDE-CBC-SHA - TLS-RSA-WITH-RC4-128-MD5 - TLS-RSA-WITH-RC4-128-SHA - TLS-DHE-RSA-WITH-DES-CBC-SHA - TLS-DHE-DSS-WITH-DES-CBC-SHA - TLS-RSA-WITH-DES-CBC-SHA - TLS-AES-128-GCM-SHA256 - TLS-AES-256-GCM-SHA384 - TLS-CHACHA20-POLY1305-SHA256 - TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA priority: description: - SSL/TLS cipher suites priority. required: true type: int versions: description: - SSL/TLS versions that the cipher suite can be used with. type: str choices: - ssl-3.0 - tls-1.0 - tls-1.1 - tls-1.2 - tls-1.3 ssl_server_max_version: description: - Highest SSL/TLS version acceptable from a server. Use the client setting by default. type: str choices: - ssl-3.0 - tls-1.0 - tls-1.1 - tls-1.2 - client - tls-1.3 ssl_server_min_version: description: - Lowest SSL/TLS version acceptable from a server. Use the client setting by default. type: str choices: - ssl-3.0 - tls-1.0 - tls-1.1 - tls-1.2 - client - tls-1.3 ssl_server_session_state_max: description: - Maximum number of FortiGate to Server SSL session states to keep. type: int ssl_server_session_state_timeout: description: - Number of minutes to keep FortiGate to Server SSL session state. type: int ssl_server_session_state_type: description: - How to expire SSL sessions for the segment of the SSL connection between the server and the FortiGate. type: str choices: - disable - time - count - both type: description: - Configure a static NAT or server load balance VIP. type: str choices: - static-nat - server-load-balance - access-proxy uuid: description: - Universally Unique Identifier (UUID; automatically assigned but can be manually reset). type: str weblogic_server: description: - Enable to add an HTTP header to indicate SSL offloading for a WebLogic server. type: str choices: - disable - enable websphere_server: description: - Enable to add an HTTP header to indicate SSL offloading for a WebSphere server. type: str choices: - disable - enable ''' EXAMPLES = ''' - collections: - fortinet.fortios connection: httpapi hosts: fortigate01 vars: ansible_httpapi_port: 443 ansible_httpapi_use_ssl: true ansible_httpapi_validate_certs: false vdom: root tasks: - name: fortios_firewall_vip6 fortios_firewall_vip6: vdom: root state: present firewall_vip6: arp_reply: enable color: 0 extip: 2001:1:1:12::100 extport: 0-65535 http_cookie_age: 60 http_cookie_domain_from_host: disable http_cookie_generation: 0 http_cookie_share: same-ip http_ip_header: disable http_multiplex: disable http_redirect: disable https_cookie_secure: disable id: 0 ldb_method: static mappedip: 2001:1:1:12::200 mappedport: 0-65535 max_embryonic_connections: 1000 name: vip6s1 nat_source_vip: disable outlook_web_access: disable persistence: none portforward: disable protocol: tcp ssl_algorithm: high ssl_client_fallback: enable ssl_client_rekey_count: 200 ssl_client_renegotiation: secure ssl_client_session_state_max: 1000 ssl_client_session_state_timeout: 30 ssl_client_session_state_type: both ssl_dh_bits: '2048' ssl_hpkp: disable ssl_hpkp_age: 5184000 ssl_hpkp_include_subdomains: disable ssl_hsts: disable ssl_hsts_age: 5184000 ssl_hsts_include_subdomains: disable ssl_http_location_conversion: disable ssl_http_match_host: enable ssl_max_version: tls-1.3 ssl_min_version: tls-1.1 ssl_mode: half ssl_pfs: require ssl_send_empty_frags: enable ssl_server_algorithm: client ssl_server_max_version: client ssl_server_min_version: client ssl_server_session_state_max: 100 ssl_server_session_state_timeout: 60 ssl_server_session_state_type: both type: static-nat weblogic_server: disable websphere_server: disable ''' RETURN = ''' build: description: Build number of the fortigate image returned: always type: str sample: '1547' http_method: description: Last method used to provision the content into FortiGate returned: always type: str sample: 'PUT' http_status: description: Last result given by FortiGate on last operation applied returned: always type: str sample: "200" mkey: description: Master key (id) used in the last call to FortiGate returned: success type: str sample: "id" name: description: Name of the table used to fulfill the request returned: always type: str sample: "urlfilter" path: description: Path of the table used to fulfill the request returned: always type: str sample: "webfilter" revision: description: Internal revision number returned: always type: str sample: "17.0.2.10658" serial: description: Serial number of the unit returned: always type: str sample: "FGVMEVYYQT3AB5352" status: description: Indication of the operation's result returned: always type: str sample: "success" vdom: description: Virtual domain used returned: always type: str sample: "root" version: description: Version of the FortiGate returned: always type: str sample: "v5.6.3" ''' from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.connection import Connection from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.fortios import FortiOSHandler from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.fortios import check_legacy_fortiosapi from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.fortios import schema_to_module_spec from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.fortios import check_schema_versioning from ansible_collections.fortinet.fortios.plugins.module_utils.fortimanager.common import FAIL_SOCKET_MSG from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.comparison import is_same_comparison from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.comparison import serialize def filter_firewall_vip6_data(json): option_list = ['add_nat64_route', 'arp_reply', 'color', 'comment', 'embedded_ipv4_address', 'extip', 'extport', 'http_cookie_age', 'http_cookie_domain', 'http_cookie_domain_from_host', 'http_cookie_generation', 'http_cookie_path', 'http_cookie_share', 'http_ip_header', 'http_ip_header_name', 'http_multiplex', 'http_redirect', 'https_cookie_secure', 'id', 'ipv4_mappedip', 'ipv4_mappedport', 'ldb_method', 'mappedip', 'mappedport', 'max_embryonic_connections', 'monitor', 'name', 'nat_source_vip', 'nat64', 'nat66', 'outlook_web_access', 'persistence', 'portforward', 'protocol', 'realservers', 'server_type', 'src_filter', 'ssl_algorithm', 'ssl_certificate', 'ssl_cipher_suites', 'ssl_client_fallback', 'ssl_client_rekey_count', 'ssl_client_renegotiation', 'ssl_client_session_state_max', 'ssl_client_session_state_timeout', 'ssl_client_session_state_type', 'ssl_dh_bits', 'ssl_hpkp', 'ssl_hpkp_age', 'ssl_hpkp_backup', 'ssl_hpkp_include_subdomains', 'ssl_hpkp_primary', 'ssl_hpkp_report_uri', 'ssl_hsts', 'ssl_hsts_age', 'ssl_hsts_include_subdomains', 'ssl_http_location_conversion', 'ssl_http_match_host', 'ssl_max_version', 'ssl_min_version', 'ssl_mode', 'ssl_pfs', 'ssl_send_empty_frags', 'ssl_server_algorithm', 'ssl_server_cipher_suites', 'ssl_server_max_version', 'ssl_server_min_version', 'ssl_server_session_state_max', 'ssl_server_session_state_timeout', 'ssl_server_session_state_type', 'type', 'uuid', 'weblogic_server', 'websphere_server'] dictionary = {} for attribute in option_list: if attribute in json and json[attribute] is not None: dictionary[attribute] = json[attribute] return dictionary def flatten_single_path(data, path, index): if not data or index == len(path) or path[index] not in data or not data[path[index]]: return if index == len(path) - 1: data[path[index]] = ' '.join(str(elem) for elem in data[path[index]]) elif isinstance(data[path[index]], list): for value in data[path[index]]: flatten_single_path(value, path, index + 1) else: flatten_single_path(data[path[index]], path, index + 1) def flatten_multilists_attributes(data): multilist_attrs = [ [u'ssl_cipher_suites', u'versions'], [u'ssl_server_cipher_suites', u'versions'], ] for attr in multilist_attrs: flatten_single_path(data, attr, 0) return data def underscore_to_hyphen(data): if isinstance(data, list): for i, elem in enumerate(data): data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): new_data[k.replace('_', '-')] = underscore_to_hyphen(v) data = new_data return data def firewall_vip6(data, fos, check_mode=False): vdom = data['vdom'] state = data['state'] firewall_vip6_data = data['firewall_vip6'] firewall_vip6_data = flatten_multilists_attributes(firewall_vip6_data) filtered_data = underscore_to_hyphen(filter_firewall_vip6_data(firewall_vip6_data)) # check_mode starts from here if check_mode: mkey = fos.get_mkey('firewall', 'vip6', filtered_data, vdom=vdom) current_data = fos.get('firewall', 'vip6', vdom=vdom, mkey=mkey) is_existed = current_data and current_data.get('http_status') == 200 \ and isinstance(current_data.get('results'), list) \ and len(current_data['results']) > 0 # 2. if it exists and the state is 'present' then compare current settings with desired if state == 'present' or state is True: if mkey is None: return False, True, filtered_data # if mkey exists then compare each other # record exits and they're matched or not if is_existed: is_same = is_same_comparison( serialize(current_data['results'][0]), serialize(filtered_data)) return False, not is_same, filtered_data # record does not exist return False, True, filtered_data if state == 'absent': if mkey is None: return False, False, filtered_data if is_existed: return False, True, filtered_data return False, False, filtered_data return True, False, {'reason: ': 'Must provide state parameter'} if state == "present" or state is True: return fos.set('firewall', 'vip6', data=filtered_data, vdom=vdom) elif state == "absent": return fos.delete('firewall', 'vip6', mkey=filtered_data['name'], vdom=vdom) else: fos._module.fail_json(msg='state must be present or absent!') def is_successful_status(resp): return 'status' in resp and resp['status'] == 'success' or \ 'http_status' in resp and resp['http_status'] == 200 or \ 'http_method' in resp and resp['http_method'] == "DELETE" and resp['http_status'] == 404 def fortios_firewall(data, fos, check_mode): fos.do_member_operation('firewall_vip6') if data['firewall_vip6']: resp = firewall_vip6(data, fos, check_mode) else: fos._module.fail_json(msg='missing task body: %s' % ('firewall_vip6')) if check_mode: return resp return not is_successful_status(resp), \ is_successful_status(resp) and \ (resp['revision_changed'] if 'revision_changed' in resp else True), \ resp versioned_schema = { "type": "list", "children": { "comment": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_hpkp_backup": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_client_session_state_type": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "time", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "count", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "both", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "protocol": { "type": "string", "options": [ { "value": "tcp", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "udp", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "sctp", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_hsts": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ipv4_mappedport": { "type": "string", "revisions": { "v7.0.1": True } }, "color": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_server_min_version": { "type": "string", "options": [ { "value": "ssl-3.0", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.0", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.1", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.2", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "client", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.3", "revisions": { "v7.0.1": True, "v7.0.0": True, "v6.4.4": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_hpkp_primary": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "http_cookie_generation": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "http_cookie_domain": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "http_ip_header_name": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "arp_reply": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "http_redirect": { "type": "string", "options": [ { "value": "enable", "revisions": { "v7.0.1": True, "v7.0.0": True, "v6.4.4": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True } }, { "value": "disable", "revisions": { "v7.0.1": True, "v7.0.0": True, "v6.4.4": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True } } ], "revisions": { "v7.0.1": True, "v7.0.0": True, "v6.4.4": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True } }, "mappedip": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_max_version": { "type": "string", "options": [ { "value": "ssl-3.0", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.0", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.1", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.2", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.3", "revisions": { "v7.0.1": True, "v7.0.0": True, "v6.4.4": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_mode": { "type": "string", "options": [ { "value": "half", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "full", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_min_version": { "type": "string", "options": [ { "value": "ssl-3.0", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.0", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.1", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.2", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.3", "revisions": { "v7.0.1": True, "v7.0.0": True, "v6.4.4": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "portforward": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "id": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "add_nat64_route": { "type": "string", "options": [ { "value": "disable", "revisions": { "v7.0.1": True } }, { "value": "enable", "revisions": { "v7.0.1": True } } ], "revisions": { "v7.0.1": True } }, "ipv4_mappedip": { "type": "string", "revisions": { "v7.0.1": True } }, "ssl_http_location_conversion": { "type": "string", "options": [ { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_algorithm": { "type": "string", "options": [ { "value": "high", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "medium", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "low", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "custom", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "extip": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "uuid": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_client_rekey_count": { "type": "integer", "revisions": { "v7.0.1": True, "v7.0.0": True, "v6.4.4": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True } }, "ssl_hpkp": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "report-only", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_http_match_host": { "type": "string", "options": [ { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "monitor": { "type": "list", "children": { "name": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } }, "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_hpkp_include_subdomains": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_hsts_age": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_hpkp_age": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_cipher_suites": { "type": "list", "children": { "priority": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "cipher": { "type": "string", "options": [ { "value": "TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-AES-128-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-AES-256-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-AES-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-AES-128-GCM-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-AES-256-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-AES-256-GCM-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-AES-128-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-AES-256-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-AES-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-AES-128-GCM-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-AES-256-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-AES-256-GCM-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-AES-128-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-AES-256-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-AES-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-AES-128-GCM-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-AES-256-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-AES-256-GCM-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-CAMELLIA-128-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-CAMELLIA-256-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-SEED-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-SEED-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-SEED-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-ARIA-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-ARIA-256-CBC-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-RC4-128-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-3DES-EDE-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-RC4-128-MD5", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-RC4-128-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-DES-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-DES-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-DES-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-AES-128-GCM-SHA256", "revisions": { "v7.0.1": True, "v7.0.0": True, "v6.4.4": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True } }, { "value": "TLS-AES-256-GCM-SHA384", "revisions": { "v7.0.1": True, "v7.0.0": True, "v6.4.4": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True } }, { "value": "TLS-CHACHA20-POLY1305-SHA256", "revisions": { "v7.0.1": True, "v7.0.0": True, "v6.4.4": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA", "revisions": { "v7.0.1": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "versions": { "multiple_values": True, "type": "list", "options": [ { "value": "ssl-3.0", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.0", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.1", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.2", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.3", "revisions": { "v7.0.1": True, "v7.0.0": True, "v6.4.4": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } }, "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_dh_bits": { "type": "string", "options": [ { "value": "768", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "1024", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "1536", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "2048", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "3072", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "4096", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "mappedport": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_server_cipher_suites": { "type": "list", "children": { "priority": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "cipher": { "type": "string", "options": [ { "value": "TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-AES-128-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-AES-256-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-AES-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-AES-128-GCM-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-AES-256-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-AES-256-GCM-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-AES-128-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-AES-256-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-AES-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-AES-128-GCM-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-AES-256-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-AES-256-GCM-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-AES-128-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-AES-256-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-AES-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-AES-128-GCM-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-AES-256-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-AES-256-GCM-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-CAMELLIA-128-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-CAMELLIA-256-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-SEED-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-SEED-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-SEED-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-ARIA-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-ARIA-256-CBC-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-RC4-128-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-3DES-EDE-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-RC4-128-MD5", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-RC4-128-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-RSA-WITH-DES-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-DHE-DSS-WITH-DES-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-RSA-WITH-DES-CBC-SHA", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "TLS-AES-128-GCM-SHA256", "revisions": { "v7.0.1": True, "v7.0.0": True, "v6.4.4": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True } }, { "value": "TLS-AES-256-GCM-SHA384", "revisions": { "v7.0.1": True, "v7.0.0": True, "v6.4.4": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True } }, { "value": "TLS-CHACHA20-POLY1305-SHA256", "revisions": { "v7.0.1": True, "v7.0.0": True, "v6.4.4": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True } }, { "value": "TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA", "revisions": { "v7.0.1": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "versions": { "multiple_values": True, "type": "list", "options": [ { "value": "ssl-3.0", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.0", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.1", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.2", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.3", "revisions": { "v7.0.1": True, "v7.0.0": True, "v6.4.4": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } }, "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "type": { "type": "string", "options": [ { "value": "static-nat", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "server-load-balance", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "access-proxy", "revisions": { "v7.0.1": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "src_filter": { "type": "list", "children": { "range": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } }, "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "persistence": { "type": "string", "options": [ { "value": "none", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "http-cookie", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "ssl-session-id", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_client_renegotiation": { "type": "string", "options": [ { "value": "allow", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "deny", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "secure", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "max_embryonic_connections": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "http_ip_header": { "type": "string", "options": [ { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_server_session_state_timeout": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "server_type": { "type": "string", "options": [ { "value": "http", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "https", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "imaps", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "pop3s", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "smtps", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "ssl", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tcp", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "udp", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "ip", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "nat66": { "type": "string", "options": [ { "value": "disable", "revisions": { "v7.0.1": True } }, { "value": "enable", "revisions": { "v7.0.1": True } } ], "revisions": { "v7.0.1": True } }, "nat64": { "type": "string", "options": [ { "value": "disable", "revisions": { "v7.0.1": True } }, { "value": "enable", "revisions": { "v7.0.1": True } } ], "revisions": { "v7.0.1": True } }, "https_cookie_secure": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_server_max_version": { "type": "string", "options": [ { "value": "ssl-3.0", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.0", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.1", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.2", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "client", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "tls-1.3", "revisions": { "v7.0.1": True, "v7.0.0": True, "v6.4.4": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_client_session_state_timeout": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "extport": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_server_session_state_max": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "http_cookie_path": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "nat_source_vip": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.4.4": True, "v7.0.0": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True } }, { "value": "enable", "revisions": { "v6.4.4": True, "v7.0.0": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True } } ], "revisions": { "v6.4.4": True, "v7.0.0": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True } }, "http_cookie_domain_from_host": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "http_multiplex": { "type": "string", "options": [ { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "http_cookie_age": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_send_empty_frags": { "type": "string", "options": [ { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_certificate": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "name": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "realservers": { "type": "list", "children": { "status": { "type": "string", "options": [ { "value": "active", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "standby", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "client_ip": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "monitor": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "weight": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ip": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "port": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "holddown_interval": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "http_host": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "healthcheck": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "vip", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "id": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "max_connections": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } }, "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_client_session_state_max": { "type": "integer", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_hpkp_report_uri": { "type": "string", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_hsts_include_subdomains": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "http_cookie_share": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "same-ip", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "embedded_ipv4_address": { "type": "string", "options": [ { "value": "disable", "revisions": { "v7.0.1": True } }, { "value": "enable", "revisions": { "v7.0.1": True } } ], "revisions": { "v7.0.1": True } }, "ldb_method": { "type": "string", "options": [ { "value": "static", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "round-robin", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "weighted", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "least-session", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "least-rtt", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "first-alive", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "http-host", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_pfs": { "type": "string", "options": [ { "value": "require", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "deny", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "allow", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "outlook_web_access": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_server_algorithm": { "type": "string", "options": [ { "value": "high", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "medium", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "low", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "custom", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "client", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_server_session_state_type": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "time", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "count", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "both", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "websphere_server": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "ssl_client_fallback": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, "weblogic_server": { "type": "string", "options": [ { "value": "disable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } }, { "value": "enable", "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } ], "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } }, "revisions": { "v6.0.0": True, "v7.0.0": True, "v6.0.5": True, "v6.4.4": True, "v7.0.1": True, "v6.4.0": True, "v6.4.1": True, "v6.2.0": True, "v6.2.3": True, "v6.2.5": True, "v6.2.7": True, "v6.0.11": True } } def main(): module_spec = schema_to_module_spec(versioned_schema) mkeyname = 'name' fields = { "access_token": {"required": False, "type": "str", "no_log": True}, "enable_log": {"required": False, "type": bool}, "vdom": {"required": False, "type": "str", "default": "root"}, "member_path": {"required": False, "type": "str"}, "member_state": { "type": "str", "required": False, "choices": ["present", "absent"] }, "state": {"required": True, "type": "str", "choices": ["present", "absent"]}, "firewall_vip6": { "required": False, "type": "dict", "default": None, "options": { } } } for attribute_name in module_spec['options']: fields["firewall_vip6"]['options'][attribute_name] = module_spec['options'][attribute_name] if mkeyname and mkeyname == attribute_name: fields["firewall_vip6"]['options'][attribute_name]['required'] = True check_legacy_fortiosapi() module = AnsibleModule(argument_spec=fields, supports_check_mode=True) versions_check_result = None if module._socket_path: connection = Connection(module._socket_path) if 'access_token' in module.params: connection.set_option('access_token', module.params['access_token']) if 'enable_log' in module.params: connection.set_option('enable_log', module.params['enable_log']) else: connection.set_option('enable_log', False) fos = FortiOSHandler(connection, module, mkeyname) versions_check_result = check_schema_versioning(fos, versioned_schema, "firewall_vip6") is_error, has_changed, result = fortios_firewall(module.params, fos, module.check_mode) else: module.fail_json(**FAIL_SOCKET_MSG) if versions_check_result and versions_check_result['matched'] is False: module.warn("Ansible has detected version mismatch between FortOS system and your playbook, see more details by specifying option -vvv") if not is_error: if versions_check_result and versions_check_result['matched'] is False: module.exit_json(changed=has_changed, version_check_warning=versions_check_result, meta=result) else: module.exit_json(changed=has_changed, meta=result) else: if versions_check_result and versions_check_result['matched'] is False: module.fail_json(msg="Error in repo", version_check_warning=versions_check_result, meta=result) else: module.fail_json(msg="Error in repo", meta=result) if __name__ == '__main__': main()
38.805113
157
0.245374
24,479
289,913
2.876016
0.028473
0.273146
0.14278
0.043067
0.802648
0.778003
0.758572
0.75228
0.74924
0.747791
0
0.13998
0.631931
289,913
7,470
158
38.810308
0.519783
0.003025
0
0.773797
0
0.002434
0.274853
0.041423
0
0
0
0
0
1
0.001082
false
0
0.001352
0.000135
0.004597
0.000135
0
0
0
null
1
0
0
1
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
5796ef4bb87b6cf7b0978b7bf877d1a36a38e6b6
167
py
Python
logs.py
botleague/botleague-liaison
5fbd2e4056ac6d40a52f8b4b47af1c4e408d6980
[ "MIT" ]
1
2022-01-25T04:42:55.000Z
2022-01-25T04:42:55.000Z
logs.py
botleague/botleague-liaison
5fbd2e4056ac6d40a52f8b4b47af1c4e408d6980
[ "MIT" ]
null
null
null
logs.py
botleague/botleague-liaison
5fbd2e4056ac6d40a52f8b4b47af1c4e408d6980
[ "MIT" ]
null
null
null
from loguru import logger as log from botleague_helpers.logs import add_slack_error_sink add_slack_error_sink(log, '#deepdrive-alerts', log_name='Botleague Liaison')
33.4
76
0.838323
26
167
5.076923
0.653846
0.121212
0.19697
0.257576
0
0
0
0
0
0
0
0
0.08982
167
4
77
41.75
0.868421
0
0
0
0
0
0.203593
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
57d93794ac79dac3ba731fafcb52fcf74a863e9a
2,778
py
Python
tests/unit/compress/Try.py
wangjeaf/CSSCheckStyle
d1b1ed89c61ca80d65f398ec4a07d73789197b04
[ "BSD-3-Clause" ]
21
2015-04-27T14:54:45.000Z
2021-11-08T09:12:08.000Z
tests/unit/compress/Try.py
wangjeaf/CSSCheckStyle
d1b1ed89c61ca80d65f398ec4a07d73789197b04
[ "BSD-3-Clause" ]
null
null
null
tests/unit/compress/Try.py
wangjeaf/CSSCheckStyle
d1b1ed89c61ca80d65f398ec4a07d73789197b04
[ "BSD-3-Clause" ]
6
2015-03-02T08:08:59.000Z
2016-03-16T14:52:38.000Z
from helper import * def doTest(): _basic() _with_hack() _with_extra() _with_keyframes() _with_keyframes_enter() _only_comments() _with_complecated_keyframes() def _basic(): msg = doCssCompress('/* @wangjeaf */ .test {width: 100px; height: 100px;}') equal(msg, '.test{width:100px;height:100px}', 'compressed') def _with_hack(): msg = doCssCompress('.test {_width: 100px; *height: 100px;}') equal(msg, '.test{_width:100px;*height:100px}', 'hack compressed') def _with_extra(): msg = doCssCompress('@import (url-here);.test {_width: 100px; *height: 100px;}') equal(msg, '@import (url-here);.test{_width:100px;*height:100px}', 'extra compressed') def _with_keyframes(): msg = doCssCompress('@keyframes "test"{ \n10% {\nwidth:100px;\n} 60% {\nwidth: 200px;\n}}') equal(msg, '@keyframes \'test\'{10%{width:100px}60%{width:200px}}', 'keyframes compressed') def _with_keyframes_enter(): msg = doCssCompress(''' @keyframes .fdasfads { 10% { width: 200px; } 20% { width: 200px; } }''') equal(msg, '@keyframes .fdasfads{10%{width:200px}20%{width:200px}}', 'keyframes compressed') def _only_comments(): msg = doCssCompress('/* a */ /* a */ /* a */ /* a */') equal(msg, '', 'nothing') def _with_complecated_keyframes(): msg = doCssCompress('@keyframes "test"{ \n10% {\nwidth:100px;\n} 60% {\nwidth: 200px;\n}}') equal(msg, '@keyframes \'test\'{10%{width:100px}60%{width:200px}}', 'keyframes compressed') def _with_keyframes_enter(): msg = doCssCompress('''@media screen and (-webkit-min-device-pixel-ratio:0) { .publisher-c .global-publisher-selector{ top:5px;} .publisher-a .global-publisher-selector-status a, .publisher-a .global-publisher-selector-status .global-publisher-status-trigger:hover, .publisher-a .global-publisher-selector .active .global-publisher-status-trigger { background-position: 0 1px; } .publisher-a .global-publisher-selector-share a, .publisher-a .global-publisher-selector-share a:hover, .publisher-a .global-publisher-selector .active .global-publisher-share-trigger{ background-position: 0 -48px; } }''') equal(msg, '@media screen and (-webkit-min-device-pixel-ratio:0){.publisher-c .global-publisher-selector{top:5px}.publisher-a .global-publisher-selector-status a,.publisher-a .global-publisher-selector-status .global-publisher-status-trigger:hover,.publisher-a .global-publisher-selector .active .global-publisher-status-trigger{background-position:0 1px}.publisher-a .global-publisher-selector-share a,.publisher-a .global-publisher-selector-share a:hover,.publisher-a .global-publisher-selector .active .global-publisher-share-trigger{background-position:0 -48px}}', 'complecated keyframes compressed')
43.40625
608
0.697984
340
2,778
5.594118
0.173529
0.157729
0.169295
0.157729
0.811777
0.80021
0.80021
0.796004
0.712934
0.712934
0
0.045267
0.12527
2,778
63
609
44.095238
0.737449
0
0
0.188679
0
0.113208
0.706264
0.359611
0
0
0
0
0
1
0.169811
false
0
0.056604
0
0.226415
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
17b175495e33c41960f3bbc038bf9ece1f31cc80
10,971
py
Python
wagtail_localize_rws_languagecloud/tests/test_admin.py
zerolab/wagtail-localize-rws-languagecloud
35c67c014c195e4e77896c7449643ea78a6aae68
[ "BSD-3-Clause" ]
null
null
null
wagtail_localize_rws_languagecloud/tests/test_admin.py
zerolab/wagtail-localize-rws-languagecloud
35c67c014c195e4e77896c7449643ea78a6aae68
[ "BSD-3-Clause" ]
6
2022-01-29T14:59:50.000Z
2022-03-31T12:09:06.000Z
wagtail_localize_rws_languagecloud/tests/test_admin.py
zerolab/wagtail-localize-rws-languagecloud
35c67c014c195e4e77896c7449643ea78a6aae68
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.models import Group, Permission from django.test import TestCase from django.urls.base import reverse from wagtail.core.models import Locale from wagtail.tests.utils import WagtailTestUtils from wagtail_localize.models import Translation from .helpers import create_editor_user, create_snippet, create_test_page class TestPageEditTranslateButton(TestCase, WagtailTestUtils): def setUp(self): self.editor_user = create_editor_user() self.locale_fr = Locale.objects.create(language_code="fr") self.locale_de = Locale.objects.create(language_code="de") self.client.force_login(self.editor_user) self.test_page, source = create_test_page( title="Test page", slug="test-page", test_charfield="Some test translatable content", ) def test_translate_button_in_action_menu(self): resp = self.client.get( reverse("wagtailadmin_pages:edit", args=[self.test_page.pk]) ) self.assertContains( resp, f'<a class="button" href="/admin/localize/submit/page/{self.test_page.pk}/"><svg class="icon icon-site icon" aria-hidden="true" focusable="false"><use href="#icon-site"></use></svg>Translate this page</a>', ) def test_translate_button_no_permission(self): group = Group.objects.get(name="Editors") group.permissions.remove(Permission.objects.get(codename="submit_translation")) resp = self.client.get( reverse("wagtailadmin_pages:edit", args=[self.test_page.pk]) ) self.assertNotContains( resp, f'<a class="button" href="/admin/localize/submit/page/{self.test_page.pk}/"><svg class="icon icon-site icon" aria-hidden="true" focusable="false"><use href="#icon-site"></use></svg>Translate this page</a>', ) def test_translate_button_no_available_locales(self): self.locale_fr.delete() self.locale_de.delete() resp = self.client.get( reverse("wagtailadmin_pages:edit", args=[self.test_page.pk]) ) self.assertNotContains( resp, f'<a class="button" href="/admin/localize/submit/page/{self.test_page.pk}/"><svg class="icon icon-site icon" aria-hidden="true" focusable="false"><use href="#icon-site"></use></svg>Translate this page</a>', ) class TestPageEditSyncTranslationsButton(TestCase, WagtailTestUtils): def setUp(self): self.editor_user = create_editor_user() self.locale_fr = Locale.objects.create(language_code="fr") self.locale_de = Locale.objects.create(language_code="de") self.client.force_login(self.editor_user) self.test_page, self.test_page_source = create_test_page( title="Test page", slug="test-page", test_charfield="Some test translatable content", ) # Create translations for test page Translation.objects.create( source=self.test_page_source, target_locale=self.locale_fr ) Translation.objects.create( source=self.test_page_source, target_locale=self.locale_de ) def test_sync_button_in_action_menu(self): resp = self.client.get( reverse("wagtailadmin_pages:edit", args=[self.test_page.pk]) ) self.assertContains( resp, f'<a class="button" href="/admin/localize/update/{self.test_page_source.pk}/"><svg class="icon icon-repeat icon" aria-hidden="true" focusable="false"><use href="#icon-repeat"></use></svg>Sync translated pages</a>', ) def test_sync_button_no_permission(self): group = Group.objects.get(name="Editors") group.permissions.remove(Permission.objects.get(codename="submit_translation")) resp = self.client.get( reverse("wagtailadmin_pages:edit", args=[self.test_page.pk]) ) self.assertNotContains( resp, f'<a class="button" href="/admin/localize/update/{self.test_page_source.pk}/"><svg class="icon icon-repeat icon" aria-hidden="true" focusable="false"><use href="#icon-repeat"></use></svg>Sync translated pages</a>', ) def test_sync_button_no_translations(self): self.locale_fr.delete() self.locale_de.delete() resp = self.client.get( reverse("wagtailadmin_pages:edit", args=[self.test_page.pk]) ) self.assertNotContains( resp, f'<a class="button" href="/admin/localize/update/{self.test_page_source.pk}/"><svg class="icon icon-repeat icon" aria-hidden="true" focusable="false"><use href="#icon-repeat"></use></svg>Sync translated pages</a>', ) class TestSnippetEditTranslateButton(TestCase, WagtailTestUtils): def setUp(self): group = Group.objects.get(name="Editors") # Add snippet permissions group.permissions.add( *Permission.objects.filter( codename__in=[ "add_examplesnippet", "change_examplesnippet", "delete_examplesnippet", ] ) ) self.editor_user = create_editor_user() self.locale_fr = Locale.objects.create(language_code="fr") self.locale_de = Locale.objects.create(language_code="de") self.client.force_login(self.editor_user) self.test_snippet, source = create_snippet() def test_translate_button_in_action_menu(self): resp = self.client.get( reverse( "wagtailsnippets:edit", args=[ "wagtail_localize_rws_languagecloud_test", "examplesnippet", self.test_snippet.pk, ], ) ) self.assertContains( resp, f'<a class="button" href="/admin/localize/submit/snippet/wagtail_localize_rws_languagecloud_test/examplesnippet/{self.test_snippet.pk}/"><svg class="icon icon-site icon" aria-hidden="true" focusable="false"><use href="#icon-site"></use></svg>Translate this snippet</a>', ) def test_translate_button_no_permission(self): group = Group.objects.get(name="Editors") group.permissions.remove(Permission.objects.get(codename="submit_translation")) resp = self.client.get( reverse( "wagtailsnippets:edit", args=[ "wagtail_localize_rws_languagecloud_test", "examplesnippet", self.test_snippet.pk, ], ) ) self.assertNotContains( resp, f'<a class="button" href="/admin/localize/submit/snippet/wagtail_localize_rws_languagecloud_test/examplesnippet/{self.test_snippet.pk}/"><svg class="icon icon-site icon" aria-hidden="true" focusable="false"><use href="#icon-site"></use></svg>Translate this snippet</a>', ) def test_translate_button_no_available_locales(self): self.locale_fr.delete() self.locale_de.delete() resp = self.client.get( reverse( "wagtailsnippets:edit", args=[ "wagtail_localize_rws_languagecloud_test", "examplesnippet", self.test_snippet.pk, ], ) ) self.assertNotContains( resp, f'<a class="button" href="/admin/localize/submit/snippet/wagtail_localize_rws_languagecloud_test/examplesnippet/{self.test_snippet.pk}/"><svg class="icon icon-site icon" aria-hidden="true" focusable="false"><use href="#icon-site"></use></svg>Translate this snippet</a>', ) class TestSnippetEditSyncTranslationsButton(TestCase, WagtailTestUtils): def setUp(self): group = Group.objects.get(name="Editors") # Add snippet permissions group.permissions.add( *Permission.objects.filter( codename__in=[ "add_examplesnippet", "change_examplesnippet", "delete_examplesnippet", ] ) ) self.editor_user = create_editor_user() self.locale_fr = Locale.objects.create(language_code="fr") self.locale_de = Locale.objects.create(language_code="de") self.client.force_login(self.editor_user) self.test_snippet, self.test_snippet_source = create_snippet() # Create translations for test snippet Translation.objects.create( source=self.test_snippet_source, target_locale=self.locale_fr ) Translation.objects.create( source=self.test_snippet_source, target_locale=self.locale_de ) def test_sync_button_in_action_menu(self): resp = self.client.get( reverse( "wagtailsnippets:edit", args=[ "wagtail_localize_rws_languagecloud_test", "examplesnippet", self.test_snippet.pk, ], ) ) self.assertContains( resp, f'<a class="button" href="/admin/localize/update/{self.test_snippet_source.pk}/"><svg class="icon icon-repeat icon" aria-hidden="true" focusable="false"><use href="#icon-repeat"></use></svg>Sync translated snippets</a>', ) def test_sync_button_no_permission(self): group = Group.objects.get(name="Editors") group.permissions.remove(Permission.objects.get(codename="submit_translation")) resp = self.client.get( reverse( "wagtailsnippets:edit", args=[ "wagtail_localize_rws_languagecloud_test", "examplesnippet", self.test_snippet.pk, ], ) ) self.assertNotContains( resp, f'<a class="button" href="/admin/localize/update/{self.test_snippet_source.pk}/"><svg class="icon icon-repeat icon" aria-hidden="true" focusable="false"><use href="#icon-repeat"></use></svg>Sync translated snippets</a>', ) def test_sync_button_no_translations(self): self.locale_fr.delete() self.locale_de.delete() resp = self.client.get( reverse( "wagtailsnippets:edit", args=[ "wagtail_localize_rws_languagecloud_test", "examplesnippet", self.test_snippet.pk, ], ) ) self.assertNotContains( resp, f'<a class="button" href="/admin/localize/update/{self.test_snippet_source.pk}/"><svg class="icon icon-repeat icon" aria-hidden="true" focusable="false"><use href="#icon-repeat"></use></svg>Sync translated snippets</a>', )
38.36014
282
0.609151
1,194
10,971
5.411223
0.086265
0.042099
0.031574
0.031574
0.923541
0.923541
0.915338
0.915338
0.915338
0.915338
0
0
0.269711
10,971
285
283
38.494737
0.806415
0.010756
0
0.733624
0
0.052402
0.332227
0.193031
0
0
0
0
0.052402
1
0.069869
false
0
0.030568
0
0.117904
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
17d0befd9cc862a9e8cf01b43e43f9788fa87600
55
py
Python
tmp_project/src/project7/my_file.py
antauren/test_pip
593d64bddc479ce7c29d0dbabc89db2cabc7975c
[ "MIT" ]
null
null
null
tmp_project/src/project7/my_file.py
antauren/test_pip
593d64bddc479ce7c29d0dbabc89db2cabc7975c
[ "MIT" ]
null
null
null
tmp_project/src/project7/my_file.py
antauren/test_pip
593d64bddc479ce7c29d0dbabc89db2cabc7975c
[ "MIT" ]
null
null
null
N = 5 def add_3(a1, a2, a3): return a1 + a2 + a3
9.166667
23
0.509091
12
55
2.25
0.75
0.296296
0.444444
0
0
0
0
0
0
0
0
0.222222
0.345455
55
5
24
11
0.527778
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
0.666667
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
8
a4bf2f47b7af3935e8e19373b0692da38575caa6
1,828
py
Python
tests/test_elements/test_traversable.py
embaba/simple-playgrounds
74225a032cc20ad83ae1ce39811b1fde29e44cc4
[ "MIT" ]
12
2022-01-13T09:33:49.000Z
2022-02-10T12:10:51.000Z
tests/test_elements/test_traversable.py
embaba/simple-playgrounds
74225a032cc20ad83ae1ce39811b1fde29e44cc4
[ "MIT" ]
31
2020-07-19T21:47:02.000Z
2021-11-11T23:09:18.000Z
tests/test_elements/test_traversable.py
embaba/simple-playgrounds
74225a032cc20ad83ae1ce39811b1fde29e44cc4
[ "MIT" ]
4
2020-11-03T17:38:52.000Z
2021-09-02T12:04:26.000Z
from simple_playgrounds.engine import Engine from simple_playgrounds.playground.layouts import SingleRoom from simple_playgrounds.element.elements.basic import Traversable, Physical def test_traversable_physical(): # non traversable vs non traversable playground = SingleRoom(size=(200, 200)) elem_1 = Traversable(radius=20, movable=True, mass=5, config_key='circle') playground.add_element(elem_1, initial_coordinates=((100, 100), 0)) elem_2 = Physical(radius=20, movable=True, mass=5, config_key='circle') playground.add_element(elem_2, initial_coordinates=((100, 100), 0)) playground.update(10) playground.update(10) playground.update(10) assert elem_1.position == elem_2.position def test_physical_physical(): # non traversable vs non traversable playground = SingleRoom(size=(200, 200)) elem_1 = Physical(radius=20, movable=True, mass=5, config_key='circle') playground.add_element(elem_1, initial_coordinates=((100, 100), 0)) elem_2 = Physical(radius=20, movable=True, mass=5, config_key='circle') playground.add_element(elem_2, initial_coordinates=((100, 100), 0)) playground.update(10) playground.update(10) playground.update(10) assert elem_1.position != elem_2.position def test_traversable_traversable(): # non traversable vs non traversable playground = SingleRoom(size=(200, 200)) elem_1 = Traversable(radius=20, movable=True, mass=5, config_key='circle') playground.add_element(elem_1, initial_coordinates=((100, 100), 0)) elem_2 = Traversable(radius=20, movable=True, mass=5, config_key='circle') playground.add_element(elem_2, initial_coordinates=((100, 100), 0)) playground.update(10) playground.update(10) playground.update(10) assert elem_1.position == elem_2.position
32.070175
78
0.733589
244
1,828
5.311475
0.163934
0.034722
0.125
0.087963
0.840278
0.840278
0.840278
0.840278
0.840278
0.840278
0
0.073171
0.147702
1,828
56
79
32.642857
0.758665
0.056893
0
0.727273
0
0
0.020942
0
0
0
0
0
0.090909
1
0.090909
false
0
0.090909
0
0.181818
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
a4faea57058a50ae99500ff193f8185093d859b8
174
py
Python
neural_models/architectures/__init__.py
ajupatatero/neurasim
c1d3f8163a7389b06a13e453daa98ad5157d9b2e
[ "MIT" ]
null
null
null
neural_models/architectures/__init__.py
ajupatatero/neurasim
c1d3f8163a7389b06a13e453daa98ad5157d9b2e
[ "MIT" ]
null
null
null
neural_models/architectures/__init__.py
ajupatatero/neurasim
c1d3f8163a7389b06a13e453daa98ad5157d9b2e
[ "MIT" ]
null
null
null
from .multi_scale_net import * from .MultiGrid import * from .Unet import * from .multi_scale_net_mono_big import * from .multi_scale_net_small import * from .Unet_3 import *
29
39
0.798851
28
174
4.607143
0.392857
0.387597
0.325581
0.395349
0.356589
0
0
0
0
0
0
0.006623
0.132184
174
6
40
29
0.847682
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
352bb46542a6c3961dd7d91b72e35895c1d27785
5,197
py
Python
backend/tests/test_time_period_grouper.py
googleinterns/inventory-visualizer
8368b9df059b13c0b53be49b770002018dcf461f
[ "Apache-2.0" ]
1
2021-01-21T16:29:15.000Z
2021-01-21T16:29:15.000Z
backend/tests/test_time_period_grouper.py
googleinterns/inventory-visualizer
8368b9df059b13c0b53be49b770002018dcf461f
[ "Apache-2.0" ]
3
2020-07-16T12:48:03.000Z
2022-03-02T09:35:45.000Z
backend/tests/test_time_period_grouper.py
googleinterns/inventory-visualizer
8368b9df059b13c0b53be49b770002018dcf461f
[ "Apache-2.0" ]
null
null
null
import unittest from filters.time_period_grouper import group_segment_data_by_time_period from datetime import datetime, timedelta from tests.segment_set_up import get_generated_data from calendar import monthrange class TestTimePeriodGrouper(unittest.TestCase): def setUp(self): self.current_time = datetime.now() self.data = get_generated_data(self.current_time) def test_time_grouper_with_unallowed_time_period(self): time_period = 'not a time period' grouped_data = group_segment_data_by_time_period(self.data, time_period) for segment in grouped_data.values(): self.assertFalse(segment.dates) self.assertFalse(segment.inventory_volumes) def test_daily_time_grouper(self): time_period = 'day' grouped_data = group_segment_data_by_time_period(self.data, time_period) self.assertDictEqual(self.data, grouped_data) def test_weekly_time_grouper_inventory_and_dates_length_match(self): time_period = 'week' grouped_data = group_segment_data_by_time_period(self.data, time_period) for tuple, segment in grouped_data.items(): self.assertEqual(len(segment.inventory_volumes), len(segment.dates)) def test_weekly_time_grouper_first_day_in_group(self): time_period = 'week' grouped_data = group_segment_data_by_time_period(self.data, time_period) for tuple, segment in grouped_data.items(): for i in range(len(segment.dates) - 1): date = datetime.fromtimestamp(segment.dates[i].seconds) self.assertEqual(0, date.weekday()) def test_weekly_time_grouper_days_in_between_dates(self): time_period = 'week' grouped_data = group_segment_data_by_time_period(self.data, time_period) for tuple, segment in grouped_data.items(): for i in range(len(segment.dates) - 1): in_a_week = segment.dates[i].seconds + 60 * 60 * 24 * 7 self.assertEqual(in_a_week, segment.dates[i + 1].seconds) def test_weekly_time_grouper_inventory_volumes_sum(self): time_period = 'week' grouped_data = group_segment_data_by_time_period(self.data, time_period) for tuple, segment in grouped_data.items(): self.assertEqual(len(segment.inventory_volumes), len(segment.dates)) for i in range(len(segment.dates) - 1): date_index_in_original_data = list(self.data[tuple].dates).index(segment.dates[i]) inventory_volumes_sum = sum( self.data[tuple].inventory_volumes[date_index_in_original_data:date_index_in_original_data + 7]) self.assertEqual(inventory_volumes_sum, segment.inventory_volumes[i]) def test_monthly_time_grouper_inventory_and_dates_length_match(self): time_period = 'month' grouped_data = group_segment_data_by_time_period(self.data, time_period) for tuple, segment in grouped_data.items(): self.assertEqual(len(segment.inventory_volumes), len(segment.dates)) def test_monthly_time_grouper_first_day_in_group(self): time_period = 'month' grouped_data = group_segment_data_by_time_period(self.data, time_period) for tuple, segment in grouped_data.items(): self.assertEqual(len(segment.inventory_volumes), len(segment.dates)) for i in range(len(segment.dates) - 1): date = datetime.fromtimestamp(segment.dates[i].seconds) self.assertEqual(1, date.day) def test_monthly_time_grouper_gap_between_dates(self): time_period = 'month' grouped_data = group_segment_data_by_time_period(self.data, time_period) for tuple, segment in grouped_data.items(): self.assertEqual(len(segment.inventory_volumes), len(segment.dates)) for i in range(len(segment.dates) - 1): date = datetime.fromtimestamp(segment.dates[i].seconds) days_in_current_month = monthrange(date.year, date.month)[1] in_a_month = segment.dates[i].seconds + 60 * 60 * 24 * days_in_current_month self.assertEqual(in_a_month, segment.dates[i + 1].seconds) def test_monthly_time_grouper_inventory_volumes_sum(self): time_period = 'month' grouped_data = group_segment_data_by_time_period(self.data, time_period) for tuple, segment in grouped_data.items(): self.assertEqual(len(segment.inventory_volumes), len(segment.dates)) for i in range(len(segment.dates) - 1): date = datetime.fromtimestamp(segment.dates[i].seconds) days_in_current_month = monthrange(date.year, date.month)[1] date_index_in_original_data = list(self.data[tuple].dates).index(segment.dates[i]) inventory_volumes_sum = sum( self.data[tuple].inventory_volumes[ date_index_in_original_data:date_index_in_original_data + days_in_current_month]) self.assertEqual(inventory_volumes_sum, segment.inventory_volumes[i]) if __name__ == '__main__': unittest.main()
42.598361
116
0.690206
675
5,197
4.958519
0.115556
0.101584
0.050194
0.059157
0.827009
0.801315
0.756797
0.724529
0.706603
0.656409
0
0.006432
0.222244
5,197
121
117
42.950413
0.821623
0
0
0.581395
1
0
0.012315
0
0
0
0
0
0.174419
1
0.127907
false
0
0.05814
0
0.197674
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
354952309eccd6c2041830b27d17bbb8625e592e
268,071
py
Python
skautis/OrganizationUnit.py
janmpeterka/skautis-py
d335728c01d58e3c9dfab8c0b044117b177b8807
[ "BSD-3-Clause" ]
6
2019-03-19T08:34:17.000Z
2022-01-20T19:28:17.000Z
skautis/OrganizationUnit.py
skaut/skautis-py
d335728c01d58e3c9dfab8c0b044117b177b8807
[ "BSD-3-Clause" ]
4
2021-09-12T09:13:47.000Z
2022-01-16T08:39:05.000Z
skautis/OrganizationUnit.py
janmpeterka/skautis-py
d335728c01d58e3c9dfab8c0b044117b177b8807
[ "BSD-3-Clause" ]
2
2021-09-26T11:01:29.000Z
2021-12-28T14:41:46.000Z
# -*- coding: utf-8 -*- import zeep # Webová služba pro práci s organizačními jednotkami a osobami class OrganizationUnit(object): __module__ = 'skautis' def __init__(self, test): if test: self._client = zeep.Client('https://test-is.skaut.cz/JunakWebservice/OrganizationUnit.asmx?wsdl') else: self._client = zeep.Client('https://is.skaut.cz/JunakWebservice/OrganizationUnit.asmx?wsdl') # Upravit hospodářský výkaz def StatementUpdate(self, ID_Login, ID, ID_Unit, Year, IsError, IsDelivered, DateDelivered, DateCreated, IsThousands, IsConsultant, ID_Document, ID_DocumentTempFile, DateSent, ID_PersonSent, DateConfirmed, ID_PersonConfirmed, ID_Registry, ShowOverview, Unit=None, RegistrationNumber=None, ID_StatementType=None, StatementType=None, ID_StatementState=None, StatementState=None, PersonSent=None, PersonConfirmed=None): return self._client.service.StatementUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Year": Year, "IsError": IsError, "IsDelivered": IsDelivered, "DateDelivered": DateDelivered, "DateCreated": DateCreated, "IsThousands": IsThousands, "IsConsultant": IsConsultant, "ID_Document": ID_Document, "ID_DocumentTempFile": ID_DocumentTempFile, "DateSent": DateSent, "ID_PersonSent": ID_PersonSent, "DateConfirmed": DateConfirmed, "ID_PersonConfirmed": ID_PersonConfirmed, "ID_Registry": ID_Registry, "ShowOverview": ShowOverview, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "ID_StatementType": ID_StatementType, "StatementType": StatementType, "ID_StatementState": ID_StatementState, "StatementState": StatementState, "PersonSent": PersonSent, "PersonConfirmed": PersonConfirmed}) # Načíst seznam typů oddílu def TroopArtAll(self, ID_Login, DisplayName=None): return self._client.service.TroopArtAll({"ID_Login": ID_Login, "DisplayName": DisplayName}) # Načíst seznam jednotek def UnitAll(self, ID_Login, ID_Application, ID, ID_Group, ID_UnitParent, ID_UnitChild, ID_UnitTree, RegistrationNumberStartWith, ID_AlignmentType, ID_UnitType=None, RegistrationNumber=None, DisplayName=None, Location=None, AccountNumber=None, IC=None): return self._client.service.UnitAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID, "ID_Group": ID_Group, "ID_UnitParent": ID_UnitParent, "ID_UnitChild": ID_UnitChild, "ID_UnitTree": ID_UnitTree, "RegistrationNumberStartWith": RegistrationNumberStartWith, "ID_AlignmentType": ID_AlignmentType, "ID_UnitType": ID_UnitType, "RegistrationNumber": RegistrationNumber, "DisplayName": DisplayName, "Location": Location, "AccountNumber": AccountNumber, "IC": IC}) # Načíst seznam kontaktů jednotky def UnitContactAll(self, ID_Login, ID_Application, ID_Unit, Publish, ID_ContactType=None): return self._client.service.UnitContactAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_Unit": ID_Unit, "Publish": Publish, "ID_ContactType": ID_ContactType}) # Smazat kontakt jednotky def UnitContactDelete(self, ID_Login, ID): return self._client.service.UnitContactDelete({"ID_Login": ID_Login, "ID": ID}) # Založit kontakt jednotky def UnitContactInsert(self, ID_Login, ID_Unit, ID, Publish, ID_ContactType=None, Value=None, Note=None): return self._client.service.UnitContactInsert({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "ID": ID, "Publish": Publish, "ID_ContactType": ID_ContactType, "Value": Value, "Note": Note}) # Upravit kontakt jednotky def UnitContactUpdate(self, ID_Login, ID_Unit, ID, Publish, ID_ContactType=None, Value=None, Note=None): return self._client.service.UnitContactUpdate({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "ID": ID, "Publish": Publish, "ID_ContactType": ID_ContactType, "Value": Value, "Note": Note}) # Založit podřízenou jednotku def UnitInsertUnit(self, ID_Login, ID, ID_Group, ID_Unit, ContainsMembers, CommissionDeadline, IsVatPayer, ID_TroopArt, CanUpdateRegistrationNumber, IsUnitCancel, JournalParent, ChangeFreeJournal, ID_UnitParent, OnlyValidate, IsPostalAuthenticated, IsAddressAuthenticated, ID_PersonChangeName, DateChangeName, IsPropertyOwner, ID_TempFilePropertyAgreement, ID_DocumentDecision, ID_DocumentPropertyAgreement, ID_TempFileSeatChange, ID_UnitType=None, UnitType=None, DisplayName=None, SortName=None, RegistrationNumber=None, ShortRegistrationNumber=None, Location=None, IC=None, DIC=None, FileReference=None, Street=None, City=None, Postcode=None, State=None, PostalFirstLine=None, PostalStreet=None, PostalCity=None, PostalPostcode=None, PostalState=None, Note=None, TroopArt=None, LogoContent=None, LogoExtension=None, AddressDistrict=None, PostalDistrict=None, NewDisplayName=None, CompleteDisplayName=None, PersonChangeName=None, PropertyAgreementExtension=None, PropertyAgreementContent=None, TroopArtKey=None, ID_JournalNovice=None, ID_JournalDeliveryType=None, FullDisplayName=None, DecisionSeatChangeExtension=None, ShopDiscountBarcode=None, ID_UnitFoundReason=None, UnitFoundReason=None, UnitFoundDescription=None): return self._client.service.UnitInsertUnit({"ID_Login": ID_Login, "ID": ID, "ID_Group": ID_Group, "ID_Unit": ID_Unit, "ContainsMembers": ContainsMembers, "CommissionDeadline": CommissionDeadline, "IsVatPayer": IsVatPayer, "ID_TroopArt": ID_TroopArt, "CanUpdateRegistrationNumber": CanUpdateRegistrationNumber, "IsUnitCancel": IsUnitCancel, "JournalParent": JournalParent, "ChangeFreeJournal": ChangeFreeJournal, "ID_UnitParent": ID_UnitParent, "OnlyValidate": OnlyValidate, "IsPostalAuthenticated": IsPostalAuthenticated, "IsAddressAuthenticated": IsAddressAuthenticated, "ID_PersonChangeName": ID_PersonChangeName, "DateChangeName": DateChangeName, "IsPropertyOwner": IsPropertyOwner, "ID_TempFilePropertyAgreement": ID_TempFilePropertyAgreement, "ID_DocumentDecision": ID_DocumentDecision, "ID_DocumentPropertyAgreement": ID_DocumentPropertyAgreement, "ID_TempFileSeatChange": ID_TempFileSeatChange, "ID_UnitType": ID_UnitType, "UnitType": UnitType, "DisplayName": DisplayName, "SortName": SortName, "RegistrationNumber": RegistrationNumber, "ShortRegistrationNumber": ShortRegistrationNumber, "Location": Location, "IC": IC, "DIC": DIC, "FileReference": FileReference, "Street": Street, "City": City, "Postcode": Postcode, "State": State, "PostalFirstLine": PostalFirstLine, "PostalStreet": PostalStreet, "PostalCity": PostalCity, "PostalPostcode": PostalPostcode, "PostalState": PostalState, "Note": Note, "TroopArt": TroopArt, "LogoContent": LogoContent, "LogoExtension": LogoExtension, "AddressDistrict": AddressDistrict, "PostalDistrict": PostalDistrict, "NewDisplayName": NewDisplayName, "CompleteDisplayName": CompleteDisplayName, "PersonChangeName": PersonChangeName, "PropertyAgreementExtension": PropertyAgreementExtension, "PropertyAgreementContent": PropertyAgreementContent, "TroopArtKey": TroopArtKey, "ID_JournalNovice": ID_JournalNovice, "ID_JournalDeliveryType": ID_JournalDeliveryType, "FullDisplayName": FullDisplayName, "DecisionSeatChangeExtension": DecisionSeatChangeExtension, "ShopDiscountBarcode": ShopDiscountBarcode, "ID_UnitFoundReason": ID_UnitFoundReason, "UnitFoundReason": UnitFoundReason, "UnitFoundDescription": UnitFoundDescription}) # Smazat registrační vadu jednotky def UnitMistakeReportDelete(self, ID_Login, ID): return self._client.service.UnitMistakeReportDelete({"ID_Login": ID_Login, "ID": ID}) # Založit registrační vadu jednotky def UnitMistakeReportInsert(self, ID_Login, ID, ID_Unit, ID_Mistake, Unit=None, RegistrationNumber=None, Mistake=None, DisplayName=None, ParentComment=None): return self._client.service.UnitMistakeReportInsert({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Mistake": ID_Mistake, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "Mistake": Mistake, "DisplayName": DisplayName, "ParentComment": ParentComment}) # Načíst seznam registrací jednotky def UnitRegistrationAll(self, ID_Login, ID_Unit, Year): return self._client.service.UnitRegistrationAll({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "Year": Year}) # Provede kontrolu zadané registrace jednotky a vrátí nalezené vady def UnitRegistrationCheck(self, ID_Login, ID): return self._client.service.UnitRegistrationCheck({"ID_Login": ID_Login, "ID": ID}) # Načíst detail registrace jednotky def UnitRegistrationDetail(self, ID_Login, ID, ID_Unit, Year, Instructions=None): return self._client.service.UnitRegistrationDetail({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Year": Year, "Instructions": Instructions}) # Založit registraci jednotky def UnitRegistrationInsert(self, ID_Login, ID, ID_Unit, Year, DateChecked, DateConfirmed, IsDelivered, IsAccepted, ID_UnitRegistrationParent, ParentIsDelivered, ParentIsAccepted, ParentHasCreated, Unit=None, RegistrationNumber=None, DisplayName=None, ID_UnitType=None, Instructions=None, UnitRegistrationParent=None, InstructionsParent=None): return self._client.service.UnitRegistrationInsert({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Year": Year, "DateChecked": DateChecked, "DateConfirmed": DateConfirmed, "IsDelivered": IsDelivered, "IsAccepted": IsAccepted, "ID_UnitRegistrationParent": ID_UnitRegistrationParent, "ParentIsDelivered": ParentIsDelivered, "ParentIsAccepted": ParentIsAccepted, "ParentHasCreated": ParentHasCreated, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "DisplayName": DisplayName, "ID_UnitType": ID_UnitType, "Instructions": Instructions, "UnitRegistrationParent": UnitRegistrationParent, "InstructionsParent": InstructionsParent}) # Upravit registraci jednotky def UnitRegistrationUpdate(self, ID_Login, ID, ID_Unit, Year, DateChecked, DateConfirmed, IsDelivered, IsAccepted, ID_UnitRegistrationParent, ParentIsDelivered, ParentIsAccepted, ParentHasCreated, Unit=None, RegistrationNumber=None, DisplayName=None, ID_UnitType=None, Instructions=None, UnitRegistrationParent=None, InstructionsParent=None): return self._client.service.UnitRegistrationUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Year": Year, "DateChecked": DateChecked, "DateConfirmed": DateConfirmed, "IsDelivered": IsDelivered, "IsAccepted": IsAccepted, "ID_UnitRegistrationParent": ID_UnitRegistrationParent, "ParentIsDelivered": ParentIsDelivered, "ParentIsAccepted": ParentIsAccepted, "ParentHasCreated": ParentHasCreated, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "DisplayName": DisplayName, "ID_UnitType": ID_UnitType, "Instructions": Instructions, "UnitRegistrationParent": UnitRegistrationParent, "InstructionsParent": InstructionsParent}) # Načíst seznam podřízených jednotek def UnitTreeAll(self, ID_Login, ID_Application, ID_UnitParent, ShowHistory, IsValid): return self._client.service.UnitTreeAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_UnitParent": ID_UnitParent, "ShowHistory": ShowHistory, "IsValid": IsValid}) # Načíst detail existence jednotky def UnitTreeDetail(self, ID_Login, ID): return self._client.service.UnitTreeDetail({"ID_Login": ID_Login, "ID": ID}) # Načíst seznam důvodů ukončení existence def UnitTreeReasonAll(self, ID_Login, DisplayName=None): return self._client.service.UnitTreeReasonAll({"ID_Login": ID_Login, "DisplayName": DisplayName}) # Ukončit existenci jednotky def UnitTreeUpdate(self, ID_Login, ID, ValidFrom, ValidTo, ID_Unit, ID_UnitParent, ID_UnitMerge, ID_UnitTreeReason=None, Unit=None, UnitParent=None, RegistrationNumber=None, ID_UnitType=None, UnitMerge=None, ID_UnitFoundReason=None, UnitFoundReason=None, UnitFoundDescription=None): return self._client.service.UnitTreeUpdate({"ID_Login": ID_Login, "ID": ID, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_Unit": ID_Unit, "ID_UnitParent": ID_UnitParent, "ID_UnitMerge": ID_UnitMerge, "ID_UnitTreeReason": ID_UnitTreeReason, "Unit": Unit, "UnitParent": UnitParent, "RegistrationNumber": RegistrationNumber, "ID_UnitType": ID_UnitType, "UnitMerge": UnitMerge, "ID_UnitFoundReason": ID_UnitFoundReason, "UnitFoundReason": UnitFoundReason, "UnitFoundDescription": UnitFoundDescription}) # Načíst seznam typů jednotek def UnitTypeAll(self, ID_Login, DisplayName=None, ID_UnitTypeCreate=None, ID_UnitTypeParent=None): return self._client.service.UnitTypeAll({"ID_Login": ID_Login, "DisplayName": DisplayName, "ID_UnitTypeCreate": ID_UnitTypeCreate, "ID_UnitTypeParent": ID_UnitTypeParent}) # Upravit jednotku def UnitUpdate(self, ID_Login, ID, ID_Group, ID_Unit, ContainsMembers, CommissionDeadline, IsVatPayer, ID_TroopArt, CanUpdateRegistrationNumber, IsUnitCancel, JournalParent, ChangeFreeJournal, ID_UnitParent, OnlyValidate, IsPostalAuthenticated, IsAddressAuthenticated, ID_PersonChangeName, DateChangeName, IsPropertyOwner, ID_TempFilePropertyAgreement, ID_DocumentDecision, ID_DocumentPropertyAgreement, ID_TempFileSeatChange, ID_UnitType=None, UnitType=None, DisplayName=None, SortName=None, RegistrationNumber=None, ShortRegistrationNumber=None, Location=None, IC=None, DIC=None, FileReference=None, Street=None, City=None, Postcode=None, State=None, PostalFirstLine=None, PostalStreet=None, PostalCity=None, PostalPostcode=None, PostalState=None, Note=None, TroopArt=None, LogoContent=None, LogoExtension=None, AddressDistrict=None, PostalDistrict=None, NewDisplayName=None, CompleteDisplayName=None, PersonChangeName=None, PropertyAgreementExtension=None, PropertyAgreementContent=None, TroopArtKey=None, ID_JournalNovice=None, ID_JournalDeliveryType=None, FullDisplayName=None, DecisionSeatChangeExtension=None, ShopDiscountBarcode=None, ID_UnitFoundReason=None, UnitFoundReason=None, UnitFoundDescription=None): return self._client.service.UnitUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Group": ID_Group, "ID_Unit": ID_Unit, "ContainsMembers": ContainsMembers, "CommissionDeadline": CommissionDeadline, "IsVatPayer": IsVatPayer, "ID_TroopArt": ID_TroopArt, "CanUpdateRegistrationNumber": CanUpdateRegistrationNumber, "IsUnitCancel": IsUnitCancel, "JournalParent": JournalParent, "ChangeFreeJournal": ChangeFreeJournal, "ID_UnitParent": ID_UnitParent, "OnlyValidate": OnlyValidate, "IsPostalAuthenticated": IsPostalAuthenticated, "IsAddressAuthenticated": IsAddressAuthenticated, "ID_PersonChangeName": ID_PersonChangeName, "DateChangeName": DateChangeName, "IsPropertyOwner": IsPropertyOwner, "ID_TempFilePropertyAgreement": ID_TempFilePropertyAgreement, "ID_DocumentDecision": ID_DocumentDecision, "ID_DocumentPropertyAgreement": ID_DocumentPropertyAgreement, "ID_TempFileSeatChange": ID_TempFileSeatChange, "ID_UnitType": ID_UnitType, "UnitType": UnitType, "DisplayName": DisplayName, "SortName": SortName, "RegistrationNumber": RegistrationNumber, "ShortRegistrationNumber": ShortRegistrationNumber, "Location": Location, "IC": IC, "DIC": DIC, "FileReference": FileReference, "Street": Street, "City": City, "Postcode": Postcode, "State": State, "PostalFirstLine": PostalFirstLine, "PostalStreet": PostalStreet, "PostalCity": PostalCity, "PostalPostcode": PostalPostcode, "PostalState": PostalState, "Note": Note, "TroopArt": TroopArt, "LogoContent": LogoContent, "LogoExtension": LogoExtension, "AddressDistrict": AddressDistrict, "PostalDistrict": PostalDistrict, "NewDisplayName": NewDisplayName, "CompleteDisplayName": CompleteDisplayName, "PersonChangeName": PersonChangeName, "PropertyAgreementExtension": PropertyAgreementExtension, "PropertyAgreementContent": PropertyAgreementContent, "TroopArtKey": TroopArtKey, "ID_JournalNovice": ID_JournalNovice, "ID_JournalDeliveryType": ID_JournalDeliveryType, "FullDisplayName": FullDisplayName, "DecisionSeatChangeExtension": DecisionSeatChangeExtension, "ShopDiscountBarcode": ShopDiscountBarcode, "ID_UnitFoundReason": ID_UnitFoundReason, "UnitFoundReason": UnitFoundReason, "UnitFoundDescription": UnitFoundDescription}) # Přiřadit osobě uživatelský účet def PersonUpdateUser(self, ID_Login, ID, Overwrite, UserName=None, SecurityCode=None): return self._client.service.PersonUpdateUser({"ID_Login": ID_Login, "ID": ID, "Overwrite": Overwrite, "UserName": UserName, "SecurityCode": SecurityCode}) # Načtení informací o osobě def PersonDetail(self, ID_Login, ID): return self._client.service.PersonDetail({"ID_Login": ID_Login, "ID": ID}) # Načtení informací o jednotce def UnitDetail(self, ID_Login, ID_Application, ID, FindStredisko, FindUstredi): return self._client.service.UnitDetail({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID, "FindStredisko": FindStredisko, "FindUstredi": FindUstredi}) # Načte fotografii osoby def PersonPhoto(self, ID_Login, ID, Size=None): return self._client.service.PersonPhoto({"ID_Login": ID_Login, "ID": ID, "Size": Size}) # Načíst obsazení funkcí v jednotce pro zobrazení v registru OJ def FunctionAllRegistry(self, ID_Login, ID_Application, ID_Unit, ReturnStatutory, ReturnAssistant, ReturnContact): return self._client.service.FunctionAllRegistry({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_Unit": ID_Unit, "ReturnStatutory": ReturnStatutory, "ReturnAssistant": ReturnAssistant, "ReturnContact": ReturnContact}) # Načíst seznam termínů schůzek def MeetingDateAll(self, ID_Login, ID_Application, ID_Unit, ID_Occupation, ID_WeekDay=None): return self._client.service.MeetingDateAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_Unit": ID_Unit, "ID_Occupation": ID_Occupation, "ID_WeekDay": ID_WeekDay}) # Smazat termín schůzek def MeetingDateDelete(self, ID_Login, ID): return self._client.service.MeetingDateDelete({"ID_Login": ID_Login, "ID": ID}) # Načíst detail termínu schůzek def MeetingDateDetail(self, ID_Login, ID): return self._client.service.MeetingDateDetail({"ID_Login": ID_Login, "ID": ID}) # Založit termín schůzek def MeetingDateInsert(self, ID_Login, ID, ID_Unit, ID_Occupation, DisplayName=None, Unit=None, ID_WeekDay=None, WeekDay=None, TimeFrom=None, TimeTo=None, Periodicity=None, Occupation=None): return self._client.service.MeetingDateInsert({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Occupation": ID_Occupation, "DisplayName": DisplayName, "Unit": Unit, "ID_WeekDay": ID_WeekDay, "WeekDay": WeekDay, "TimeFrom": TimeFrom, "TimeTo": TimeTo, "Periodicity": Periodicity, "Occupation": Occupation}) # Upravit termín schůzek def MeetingDateUpdate(self, ID_Login, ID, ID_Unit, ID_Occupation, DisplayName=None, Unit=None, ID_WeekDay=None, WeekDay=None, TimeFrom=None, TimeTo=None, Periodicity=None, Occupation=None): return self._client.service.MeetingDateUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Occupation": ID_Occupation, "DisplayName": DisplayName, "Unit": Unit, "ID_WeekDay": ID_WeekDay, "WeekDay": WeekDay, "TimeFrom": TimeFrom, "TimeTo": TimeTo, "Periodicity": Periodicity, "Occupation": Occupation}) # Hledání v registru OJ def UnitAllRegistry(self, ID_Login, ID_Application, IsValid, DisplayName=None, IC=None, RegistrationNumber=None, Location=None, ParentDisplayName=None, ParentRegistrationNumber=None): return self._client.service.UnitAllRegistry({"ID_Login": ID_Login, "ID_Application": ID_Application, "IsValid": IsValid, "DisplayName": DisplayName, "IC": IC, "RegistrationNumber": RegistrationNumber, "Location": Location, "ParentDisplayName": ParentDisplayName, "ParentRegistrationNumber": ParentRegistrationNumber}) # Načíst seznam zrušení jednotky def UnitCancelAll(self, ID_Login, ID_Application, ID_Unit, ID_Person, IsValid, ID_UnitCancelType=None): return self._client.service.UnitCancelAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_Unit": ID_Unit, "ID_Person": ID_Person, "IsValid": IsValid, "ID_UnitCancelType": ID_UnitCancelType}) # Založit zrušení jednotky def UnitCancelInsert(self, ID_Login, ID, ID_Unit, DateDecision, ID_Person, ValidTo, Unit=None, ID_UnitCancelType=None, UnitCancelType=None, Description=None, Person=None): return self._client.service.UnitCancelInsert({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "DateDecision": DateDecision, "ID_Person": ID_Person, "ValidTo": ValidTo, "Unit": Unit, "ID_UnitCancelType": ID_UnitCancelType, "UnitCancelType": UnitCancelType, "Description": Description, "Person": Person}) # Načíst seznam typů rozhodnutí def UnitCancelTypeAll(self, ID_Login, ID_Unit, DisplayName=None): return self._client.service.UnitCancelTypeAll({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "DisplayName": DisplayName}) # Přehled počtu členů podle poslední uzavřené registrace def UnitDetailMembersRegistry(self, ID_Login, ID_Application, ID): return self._client.service.UnitDetailMembersRegistry({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID}) # Zobrazit detail jednotky v registru OJ def UnitDetailRegistry(self, ID_Login, ID_Application, ID): return self._client.service.UnitDetailRegistry({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID}) # Načte logo jednotky def UnitLogo(self, ID_Login, ID_Application, ID): return self._client.service.UnitLogo({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID}) # Statistika členů a jednotek v registraci def UnitRegistrationMembers(self, ID_Login, ID): return self._client.service.UnitRegistrationMembers({"ID_Login": ID_Login, "ID": ID}) # Načíst seznam hospodářských výkazů def StatementErrors(self, ID_Login, ID): return self._client.service.StatementErrors({"ID_Login": ID_Login, "ID": ID}) # Spočítat, zda hospodářský výkaz obsahuje chyby def StatementComputeIsError(self, ID_Login, ID, ID_Unit, Year, IsError, IsDelivered, DateDelivered, DateCreated, IsThousands, IsConsultant, ID_Document, ID_DocumentTempFile, DateSent, ID_PersonSent, DateConfirmed, ID_PersonConfirmed, ID_Registry, ShowOverview, Unit=None, RegistrationNumber=None, ID_StatementType=None, StatementType=None, ID_StatementState=None, StatementState=None, PersonSent=None, PersonConfirmed=None): return self._client.service.StatementComputeIsError({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Year": Year, "IsError": IsError, "IsDelivered": IsDelivered, "DateDelivered": DateDelivered, "DateCreated": DateCreated, "IsThousands": IsThousands, "IsConsultant": IsConsultant, "ID_Document": ID_Document, "ID_DocumentTempFile": ID_DocumentTempFile, "DateSent": DateSent, "ID_PersonSent": ID_PersonSent, "DateConfirmed": DateConfirmed, "ID_PersonConfirmed": ID_PersonConfirmed, "ID_Registry": ID_Registry, "ShowOverview": ShowOverview, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "ID_StatementType": ID_StatementType, "StatementType": StatementType, "ID_StatementState": ID_StatementState, "StatementState": StatementState, "PersonSent": PersonSent, "PersonConfirmed": PersonConfirmed}) # Načíst seznam hospodářských výkazů podřízených jednotek def StatementAllChild(self, ID_Login, ID): return self._client.service.StatementAllChild({"ID_Login": ID_Login, "ID": ID}) # Načíst seznam položek hospodářského výkazu včetně součtů oblastí def StatementEntryAllTotals(self, ID_Login, ID_Statement, ID_StatementEntryType, IsMoney): return self._client.service.StatementEntryAllTotals({"ID_Login": ID_Login, "ID_Statement": ID_Statement, "ID_StatementEntryType": ID_StatementEntryType, "IsMoney": IsMoney}) # Obnovit existenci jednotky def UnitTreeRenew(self, ID_Login, ID, ValidFrom, ValidTo, ID_Unit, ID_UnitParent, ID_UnitMerge, ID_UnitTreeReason=None, Unit=None, UnitParent=None, RegistrationNumber=None, ID_UnitType=None, UnitMerge=None, ID_UnitFoundReason=None, UnitFoundReason=None, UnitFoundDescription=None): return self._client.service.UnitTreeRenew({"ID_Login": ID_Login, "ID": ID, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_Unit": ID_Unit, "ID_UnitParent": ID_UnitParent, "ID_UnitMerge": ID_UnitMerge, "ID_UnitTreeReason": ID_UnitTreeReason, "Unit": Unit, "UnitParent": UnitParent, "RegistrationNumber": RegistrationNumber, "ID_UnitType": ID_UnitType, "UnitMerge": UnitMerge, "ID_UnitFoundReason": ID_UnitFoundReason, "UnitFoundReason": UnitFoundReason, "UnitFoundDescription": UnitFoundDescription}) # Načíst detail vady registrace def MistakeDetail(self, ID_Login, ID): return self._client.service.MistakeDetail({"ID_Login": ID_Login, "ID": ID}) # Ověření, zda lze osobu převést do zadané jednotky def PersonDetailIdentificationCode(self, ID_Login, ID_Unit, IdentificationCode=None): return self._client.service.PersonDetailIdentificationCode({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "IdentificationCode": IdentificationCode}) # Načíst seznam jednotek ve stejném středisku a nebo všech podřízených def UnitAllUnit(self, ID_Login, ID_Unit, SearchStredisko): return self._client.service.UnitAllUnit({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "SearchStredisko": SearchStredisko}) # Obnovit členství osoby v jednotce def MembershipRenew(self, ID_Login, ID, ID_Unit, ID_Person, ID_User, ValidFrom, ValidTo, IsUnique, CreateNew, OnlyValidate, IsFunction, IsUnitFunction, IsSts, IsDelegate, PersonDateBirth, Person=None, ID_MembershipType=None, ID_MembershipCategory=None, ID_MembershipReason=None): return self._client.service.MembershipRenew({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Person": ID_Person, "ID_User": ID_User, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "IsUnique": IsUnique, "CreateNew": CreateNew, "OnlyValidate": OnlyValidate, "IsFunction": IsFunction, "IsUnitFunction": IsUnitFunction, "IsSts": IsSts, "IsDelegate": IsDelegate, "PersonDateBirth": PersonDateBirth, "Person": Person, "ID_MembershipType": ID_MembershipType, "ID_MembershipCategory": ID_MembershipCategory, "ID_MembershipReason": ID_MembershipReason}) # Hledání osob (helpdesk) def PersonAllHelpdesk(self, ID_Login, IsValid, FirstName=None, LastName=None, NickName=None, IdentificationCode=None, City=None, UserName=None, Email=None, Phone=None): return self._client.service.PersonAllHelpdesk({"ID_Login": ID_Login, "IsValid": IsValid, "FirstName": FirstName, "LastName": LastName, "NickName": NickName, "IdentificationCode": IdentificationCode, "City": City, "UserName": UserName, "Email": Email, "Phone": Phone}) # Načíst seznam žádostí o převod def RequestAll(self, ID_Login, ID_Person, ID_UserCreate, ID_Unit, ID_UserDecision, ID_MembershipType=None, ID_MembershipCategory=None, ID_RequestState=None): return self._client.service.RequestAll({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID_UserCreate": ID_UserCreate, "ID_Unit": ID_Unit, "ID_UserDecision": ID_UserDecision, "ID_MembershipType": ID_MembershipType, "ID_MembershipCategory": ID_MembershipCategory, "ID_RequestState": ID_RequestState}) # Načíst detail žádosti o převod def RequestDetail(self, ID_Login, ID): return self._client.service.RequestDetail({"ID_Login": ID_Login, "ID": ID}) # Založit žádost o převod def RequestInsert(self, ID_Login, ID, ID_Person, Birthday, ValidFrom, ID_UserCreate, ID_PersonCreate, DateCreate, ID_Unit, ID_UserDecision, ID_PersonDecision, DateDecision, NewMembership, IdentificationCode=None, Person=None, ID_Sex=None, Sex=None, Reason=None, ID_MembershipType=None, MembershipType=None, ID_MembershipCategory=None, MembershipCategory=None, PersonCreate=None, Unit=None, RegistrationNumber=None, ID_RequestState=None, RequestState=None, PersonDecision=None, Decision=None): return self._client.service.RequestInsert({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "Birthday": Birthday, "ValidFrom": ValidFrom, "ID_UserCreate": ID_UserCreate, "ID_PersonCreate": ID_PersonCreate, "DateCreate": DateCreate, "ID_Unit": ID_Unit, "ID_UserDecision": ID_UserDecision, "ID_PersonDecision": ID_PersonDecision, "DateDecision": DateDecision, "NewMembership": NewMembership, "IdentificationCode": IdentificationCode, "Person": Person, "ID_Sex": ID_Sex, "Sex": Sex, "Reason": Reason, "ID_MembershipType": ID_MembershipType, "MembershipType": MembershipType, "ID_MembershipCategory": ID_MembershipCategory, "MembershipCategory": MembershipCategory, "PersonCreate": PersonCreate, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "ID_RequestState": ID_RequestState, "RequestState": RequestState, "PersonDecision": PersonDecision, "Decision": Decision}) # Načíst seznam stavů žadosti o převod def RequestStateAll(self, ID_Login, DisplayName=None): return self._client.service.RequestStateAll({"ID_Login": ID_Login, "DisplayName": DisplayName}) # Upravit žádost o převod def RequestUpdate(self, ID_Login, ID, ID_Person, Birthday, ValidFrom, ID_UserCreate, ID_PersonCreate, DateCreate, ID_Unit, ID_UserDecision, ID_PersonDecision, DateDecision, NewMembership, IdentificationCode=None, Person=None, ID_Sex=None, Sex=None, Reason=None, ID_MembershipType=None, MembershipType=None, ID_MembershipCategory=None, MembershipCategory=None, PersonCreate=None, Unit=None, RegistrationNumber=None, ID_RequestState=None, RequestState=None, PersonDecision=None, Decision=None): return self._client.service.RequestUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "Birthday": Birthday, "ValidFrom": ValidFrom, "ID_UserCreate": ID_UserCreate, "ID_PersonCreate": ID_PersonCreate, "DateCreate": DateCreate, "ID_Unit": ID_Unit, "ID_UserDecision": ID_UserDecision, "ID_PersonDecision": ID_PersonDecision, "DateDecision": DateDecision, "NewMembership": NewMembership, "IdentificationCode": IdentificationCode, "Person": Person, "ID_Sex": ID_Sex, "Sex": Sex, "Reason": Reason, "ID_MembershipType": ID_MembershipType, "MembershipType": MembershipType, "ID_MembershipCategory": ID_MembershipCategory, "MembershipCategory": MembershipCategory, "PersonCreate": PersonCreate, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "ID_RequestState": ID_RequestState, "RequestState": RequestState, "PersonDecision": PersonDecision, "Decision": Decision}) # Přehled registračních komentářů def UnitRegistrationReport(self, ID_Login, ID): return self._client.service.UnitRegistrationReport({"ID_Login": ID_Login, "ID": ID}) # Detailní informace o osobách v jednotce (pro export do CSV) def PersonAllExport(self, ID_Login, ID_Unit): return self._client.service.PersonAllExport({"ID_Login": ID_Login, "ID_Unit": ID_Unit}) # Načíst seznam registrací podřízených jednotek def UnitRegistrationAllChild(self, ID_Login, ID_UnitRegistration): return self._client.service.UnitRegistrationAllChild({"ID_Login": ID_Login, "ID_UnitRegistration": ID_UnitRegistration}) # Upravit historickou funkci def FunctionUpdateHistory(self, ID_Login, ID, ValidFrom, ValidTo, ID_Person, ID_Unit, ID_FunctionType, ID_Role, IsDeleteRole, AgreementConfirmed, ID_TempFile, AgreementNeeded, AgreementCanUpload, AgreementCanConfirm, AgreementCanView, ID_FunctionReason=None, Specification=None, AgreementExtension=None, Code=None, Number=None): return self._client.service.FunctionUpdateHistory({"ID_Login": ID_Login, "ID": ID, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_Person": ID_Person, "ID_Unit": ID_Unit, "ID_FunctionType": ID_FunctionType, "ID_Role": ID_Role, "IsDeleteRole": IsDeleteRole, "AgreementConfirmed": AgreementConfirmed, "ID_TempFile": ID_TempFile, "AgreementNeeded": AgreementNeeded, "AgreementCanUpload": AgreementCanUpload, "AgreementCanConfirm": AgreementCanConfirm, "AgreementCanView": AgreementCanView, "ID_FunctionReason": ID_FunctionReason, "Specification": Specification, "AgreementExtension": AgreementExtension, "Code": Code, "Number": Number}) # Založit historickou funkci def FunctionInsertHistory(self, ID_Login, ID, ValidFrom, ValidTo, ID_Person, ID_Unit, ID_FunctionType, ID_Role, IsDeleteRole, AgreementConfirmed, ID_TempFile, AgreementNeeded, AgreementCanUpload, AgreementCanConfirm, AgreementCanView, ID_FunctionReason=None, Specification=None, AgreementExtension=None, Code=None, Number=None): return self._client.service.FunctionInsertHistory({"ID_Login": ID_Login, "ID": ID, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_Person": ID_Person, "ID_Unit": ID_Unit, "ID_FunctionType": ID_FunctionType, "ID_Role": ID_Role, "IsDeleteRole": IsDeleteRole, "AgreementConfirmed": AgreementConfirmed, "ID_TempFile": ID_TempFile, "AgreementNeeded": AgreementNeeded, "AgreementCanUpload": AgreementCanUpload, "AgreementCanConfirm": AgreementCanConfirm, "AgreementCanView": AgreementCanView, "ID_FunctionReason": ID_FunctionReason, "Specification": Specification, "AgreementExtension": AgreementExtension, "Code": Code, "Number": Number}) # Smazat historickou funkci def FunctionDeleteHistory(self, ID_Login, ID): return self._client.service.FunctionDeleteHistory({"ID_Login": ID_Login, "ID": ID}) # Smazat historickou kvalifikaci def QualificationDeleteHistory(self, ID_Login, ID): return self._client.service.QualificationDeleteHistory({"ID_Login": ID_Login, "ID": ID}) # Založit historickou kvalifikaci def QualificationInsertHistory(self, ID_Login, ID_Person, ID, ValidFrom, ValidTo, ID_QualificationType, IsUsed, SendMessage, ID_Document, Person=None, QualificationType=None, LetterNumber=None, Note=None): return self._client.service.QualificationInsertHistory({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID": ID, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_QualificationType": ID_QualificationType, "IsUsed": IsUsed, "SendMessage": SendMessage, "ID_Document": ID_Document, "Person": Person, "QualificationType": QualificationType, "LetterNumber": LetterNumber, "Note": Note}) # Upravit historickou kvalifikaci def QualificationUpdateHistory(self, ID_Login, ID_Person, ID, ValidFrom, ValidTo, ID_QualificationType, IsUsed, SendMessage, ID_Document, Person=None, QualificationType=None, LetterNumber=None, Note=None): return self._client.service.QualificationUpdateHistory({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID": ID, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_QualificationType": ID_QualificationType, "IsUsed": IsUsed, "SendMessage": SendMessage, "ID_Document": ID_Document, "Person": Person, "QualificationType": QualificationType, "LetterNumber": LetterNumber, "Note": Note}) # Přehled odvodů pro nadřízené jednotky def UnitRegistrationSummary(self, ID_Login, ID): return self._client.service.UnitRegistrationSummary({"ID_Login": ID_Login, "ID": ID}) # Hledání osob def PersonAllLogin(self, ID_Login, Birthday, FirstName=None, LastName=None, NickName=None, IdentificationCode=None, IdentificationCodeStartsWith=None, ID_MembershipType=None, ID_MembershipCategory=None, Phone=None, Email=None, City=None, RegistrationNumber=None): return self._client.service.PersonAllLogin({"ID_Login": ID_Login, "Birthday": Birthday, "FirstName": FirstName, "LastName": LastName, "NickName": NickName, "IdentificationCode": IdentificationCode, "IdentificationCodeStartsWith": IdentificationCodeStartsWith, "ID_MembershipType": ID_MembershipType, "ID_MembershipCategory": ID_MembershipCategory, "Phone": Phone, "Email": Email, "City": City, "RegistrationNumber": RegistrationNumber}) # Načtení informací o osobě podle bezpečnostního kódu a uživatelského jména def PersonDetailSecurityCode(self, ID_Login, UserName=None, SecurityCode=None): return self._client.service.PersonDetailSecurityCode({"ID_Login": ID_Login, "UserName": UserName, "SecurityCode": SecurityCode}) # Ověření platnosti rodného čísla def PersonParseIdentificationCode(self, ID_Login, IdentificationCode=None): return self._client.service.PersonParseIdentificationCode({"ID_Login": ID_Login, "IdentificationCode": IdentificationCode}) # Načíst seznam registrací osoby def PersonRegistrationAllPerson(self, ID_Login, ID_Person, Year, IsLastRegistration, Unit=None): return self._client.service.PersonRegistrationAllPerson({"ID_Login": ID_Login, "ID_Person": ID_Person, "Year": Year, "IsLastRegistration": IsLastRegistration, "Unit": Unit}) # Načíst seznam funkcí osoby def FunctionAllPerson(self, ID_Login, ID_Person, ID_Unit, ID_FunctionType, ShowHistory, IsOficial, IsValid, ID_FunctionReason=None): return self._client.service.FunctionAllPerson({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID_Unit": ID_Unit, "ID_FunctionType": ID_FunctionType, "ShowHistory": ShowHistory, "IsOficial": IsOficial, "IsValid": IsValid, "ID_FunctionReason": ID_FunctionReason}) # Načíst seznam členství osob v jednotce def MembershipAllPerson(self, ID_Login, ID_Person, ID_Unit, ShowHistory, IsValid, ID_MembershipType=None, ID_MembershipCategory=None): return self._client.service.MembershipAllPerson({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID_Unit": ID_Unit, "ShowHistory": ShowHistory, "IsValid": IsValid, "ID_MembershipType": ID_MembershipType, "ID_MembershipCategory": ID_MembershipCategory}) # Vrátí seznam uživatelů, kteří nejsou zaregistrovaní v registraci jednotky odpovídající zadané kategorii def PersonAllRegistrationCategory(self, ID_Login, ID_RegistrationCategory, ID, IncludeChild): return self._client.service.PersonAllRegistrationCategory({"ID_Login": ID_Login, "ID_RegistrationCategory": ID_RegistrationCategory, "ID": ID, "IncludeChild": IncludeChild}) # Smazat registrační vadu osoby def PersonMistakeReportDelete(self, ID_Login, ID): return self._client.service.PersonMistakeReportDelete({"ID_Login": ID_Login, "ID": ID}) # Založit registrační vadu osoby def PersonMistakeReportInsert(self, ID_Login, ID, ID_Person, ID_Unit, ID_UnitRegistration, ID_Mistake, Person=None, UnitRegistrationNumber=None, Unit=None, Mistake=None, DisplayName=None, ParentComment=None): return self._client.service.PersonMistakeReportInsert({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "ID_Unit": ID_Unit, "ID_UnitRegistration": ID_UnitRegistration, "ID_Mistake": ID_Mistake, "Person": Person, "UnitRegistrationNumber": UnitRegistrationNumber, "Unit": Unit, "Mistake": Mistake, "DisplayName": DisplayName, "ParentComment": ParentComment}) # Načíst seznam registrací osob v jednotce def PersonRegistrationAll(self, ID_Login, ID_UnitRegistration, IncludeChild): return self._client.service.PersonRegistrationAll({"ID_Login": ID_Login, "ID_UnitRegistration": ID_UnitRegistration, "IncludeChild": IncludeChild}) # Smazat registraci osoby def PersonRegistrationDelete(self, ID_Login, ID, ID_UnitRegistration, ID_Items=None): return self._client.service.PersonRegistrationDelete({"ID_Login": ID_Login, "ID": ID, "ID_UnitRegistration": ID_UnitRegistration, "ID_Items": ID_Items}) # Založit registraci osoby def PersonRegistrationInsert(self, ID_Login, ID_Membership, ID_RegistrationCategory, ID_RegistrationServiceArray=None): return self._client.service.PersonRegistrationInsert({"ID_Login": ID_Login, "ID_Membership": ID_Membership, "ID_RegistrationCategory": ID_RegistrationCategory, "ID_RegistrationServiceArray": ID_RegistrationServiceArray}) # Založit registraci jednotky def RegistrationCategoryCopyFromParentUnit(self, ID_Login, ID_UnitRegistrationCopy): return self._client.service.RegistrationCategoryCopyFromParentUnit({"ID_Login": ID_Login, "ID_UnitRegistrationCopy": ID_UnitRegistrationCopy}) # Načíst seznam titulů osoby def DegreeAll(self, ID_Login, ID_Person, ID_DegreeType): return self._client.service.DegreeAll({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID_DegreeType": ID_DegreeType}) # Smazat titul osoby def DegreeDelete(self, ID_Login, ID): return self._client.service.DegreeDelete({"ID_Login": ID_Login, "ID": ID}) # Založit titul osoby def DegreeInsert(self, ID_Login, ID_Person, ID, ID_DegreeType): return self._client.service.DegreeInsert({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID": ID, "ID_DegreeType": ID_DegreeType}) # Načíst seznam titulů def DegreeTypeAll(self, ID_Login, ID_Application, ID, DisplayName=None): return self._client.service.DegreeTypeAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID, "DisplayName": DisplayName}) # Upravit titul osoby def DegreeUpdate(self, ID_Login, ID_Person, ID, ID_DegreeType): return self._client.service.DegreeUpdate({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID": ID, "ID_DegreeType": ID_DegreeType}) # Načíst seznam vzdělání osoby def EducationAll(self, ID_Login, ID_Person, ID_EducationType): return self._client.service.EducationAll({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID_EducationType": ID_EducationType}) # Smazat vzdělání osoby def EducationDelete(self, ID_Login, ID): return self._client.service.EducationDelete({"ID_Login": ID_Login, "ID": ID}) # Založit vzdělání osoby def EducationInsert(self, ID_Login, ID_Person, ID, ID_EducationType, Note=None): return self._client.service.EducationInsert({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID": ID, "ID_EducationType": ID_EducationType, "Note": Note}) # Načíst seznam typů vzdělání def EducationTypeAll(self, ID_Login, DisplayName=None): return self._client.service.EducationTypeAll({"ID_Login": ID_Login, "DisplayName": DisplayName}) # Upravit vzdělání osoby def EducationUpdate(self, ID_Login, ID_Person, ID, ID_EducationType, Note=None): return self._client.service.EducationUpdate({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID": ID, "ID_EducationType": ID_EducationType, "Note": Note}) # Načíst seznam funkcí v jednotce def FunctionAll(self, ID_Login, ID_Person, ID_Unit, ID_FunctionType, IsValid, ShowHistory, IsAgency, ID_Agency, IsStatutory, ID_FunctionReason=None, Person=None): return self._client.service.FunctionAll({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID_Unit": ID_Unit, "ID_FunctionType": ID_FunctionType, "IsValid": IsValid, "ShowHistory": ShowHistory, "IsAgency": IsAgency, "ID_Agency": ID_Agency, "IsStatutory": IsStatutory, "ID_FunctionReason": ID_FunctionReason, "Person": Person}) # Načíst detail funkce def FunctionDetail(self, ID_Login, ID): return self._client.service.FunctionDetail({"ID_Login": ID_Login, "ID": ID}) # Založit funkci def FunctionInsert(self, ID_Login, ID, ValidFrom, ValidTo, ID_Person, ID_Unit, ID_FunctionType, ID_Role, IsDeleteRole, AgreementConfirmed, ID_TempFile, AgreementNeeded, AgreementCanUpload, AgreementCanConfirm, AgreementCanView, ID_FunctionReason=None, Specification=None, AgreementExtension=None, Code=None, Number=None): return self._client.service.FunctionInsert({"ID_Login": ID_Login, "ID": ID, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_Person": ID_Person, "ID_Unit": ID_Unit, "ID_FunctionType": ID_FunctionType, "ID_Role": ID_Role, "IsDeleteRole": IsDeleteRole, "AgreementConfirmed": AgreementConfirmed, "ID_TempFile": ID_TempFile, "AgreementNeeded": AgreementNeeded, "AgreementCanUpload": AgreementCanUpload, "AgreementCanConfirm": AgreementCanConfirm, "AgreementCanView": AgreementCanView, "ID_FunctionReason": ID_FunctionReason, "Specification": Specification, "AgreementExtension": AgreementExtension, "Code": Code, "Number": Number}) # Načíst seznam důvodů ukončení funkce def FunctionReasonAll(self, ID_Login, DisplayName=None): return self._client.service.FunctionReasonAll({"ID_Login": ID_Login, "DisplayName": DisplayName}) # Načíst seznam typů funkcí def FunctionTypeAll(self, ID_Login, ID_Role, IsElective, DisplayName=None, ID_UnitType=None): return self._client.service.FunctionTypeAll({"ID_Login": ID_Login, "ID_Role": ID_Role, "IsElective": IsElective, "DisplayName": DisplayName, "ID_UnitType": ID_UnitType}) # Smazat typ funkce def FunctionTypeDelete(self, ID_Login, ID): return self._client.service.FunctionTypeDelete({"ID_Login": ID_Login, "ID": ID}) # Načíst detail typu funkce def FunctionTypeDetail(self, ID_Login, ID): return self._client.service.FunctionTypeDetail({"ID_Login": ID_Login, "ID": ID}) # Založit typ funkce def FunctionTypeInsert(self, ID_Login, ID, ID_Role, MinCount, MaxCount, IsStatutory, IsAssistant, IsAudit, IsOficial, IsElective, IsNotCongress, IsSpecification, ID_Agency, Order, DisplayName=None, Code=None, ID_UnitType=None, Note=None, Agency=None): return self._client.service.FunctionTypeInsert({"ID_Login": ID_Login, "ID": ID, "ID_Role": ID_Role, "MinCount": MinCount, "MaxCount": MaxCount, "IsStatutory": IsStatutory, "IsAssistant": IsAssistant, "IsAudit": IsAudit, "IsOficial": IsOficial, "IsElective": IsElective, "IsNotCongress": IsNotCongress, "IsSpecification": IsSpecification, "ID_Agency": ID_Agency, "Order": Order, "DisplayName": DisplayName, "Code": Code, "ID_UnitType": ID_UnitType, "Note": Note, "Agency": Agency}) # Upravit typ funkce def FunctionTypeUpdate(self, ID_Login, ID, ID_Role, MinCount, MaxCount, IsStatutory, IsAssistant, IsAudit, IsOficial, IsElective, IsNotCongress, IsSpecification, ID_Agency, Order, DisplayName=None, Code=None, ID_UnitType=None, Note=None, Agency=None): return self._client.service.FunctionTypeUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Role": ID_Role, "MinCount": MinCount, "MaxCount": MaxCount, "IsStatutory": IsStatutory, "IsAssistant": IsAssistant, "IsAudit": IsAudit, "IsOficial": IsOficial, "IsElective": IsElective, "IsNotCongress": IsNotCongress, "IsSpecification": IsSpecification, "ID_Agency": ID_Agency, "Order": Order, "DisplayName": DisplayName, "Code": Code, "ID_UnitType": ID_UnitType, "Note": Note, "Agency": Agency}) # Upravit funkci def FunctionUpdate(self, ID_Login, ID, ValidFrom, ValidTo, ID_Person, ID_Unit, ID_FunctionType, ID_Role, IsDeleteRole, AgreementConfirmed, ID_TempFile, AgreementNeeded, AgreementCanUpload, AgreementCanConfirm, AgreementCanView, ID_FunctionReason=None, Specification=None, AgreementExtension=None, Code=None, Number=None): return self._client.service.FunctionUpdate({"ID_Login": ID_Login, "ID": ID, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_Person": ID_Person, "ID_Unit": ID_Unit, "ID_FunctionType": ID_FunctionType, "ID_Role": ID_Role, "IsDeleteRole": IsDeleteRole, "AgreementConfirmed": AgreementConfirmed, "ID_TempFile": ID_TempFile, "AgreementNeeded": AgreementNeeded, "AgreementCanUpload": AgreementCanUpload, "AgreementCanConfirm": AgreementCanConfirm, "AgreementCanView": AgreementCanView, "ID_FunctionReason": ID_FunctionReason, "Specification": Specification, "AgreementExtension": AgreementExtension, "Code": Code, "Number": Number}) # Načíst seznam členství osob v jednotce k aktualizaci def MembershipAllUnitUpdate(self, ID_Login, ID_Unit, OnlyDirectMember, LastValidOnly): return self._client.service.MembershipAllUnitUpdate({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "OnlyDirectMember": OnlyDirectMember, "LastValidOnly": LastValidOnly}) # Načíst seznam výchovných kategorií def MembershipCategoryAll(self, ID_Login, Age, ID_Unit, ID=None, DisplayName=None, ID_Sex=None): return self._client.service.MembershipCategoryAll({"ID_Login": ID_Login, "Age": Age, "ID_Unit": ID_Unit, "ID": ID, "DisplayName": DisplayName, "ID_Sex": ID_Sex}) # Načíst detail členství osoby v jednotce def MembershipDetail(self, ID_Login, ID): return self._client.service.MembershipDetail({"ID_Login": ID_Login, "ID": ID}) # Založit členství osoby v jednotce def MembershipInsert(self, ID_Login, ID, ID_Unit, ID_Person, ID_User, ValidFrom, ValidTo, IsUnique, CreateNew, OnlyValidate, IsFunction, IsUnitFunction, IsSts, IsDelegate, PersonDateBirth, Person=None, ID_MembershipType=None, ID_MembershipCategory=None, ID_MembershipReason=None): return self._client.service.MembershipInsert({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Person": ID_Person, "ID_User": ID_User, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "IsUnique": IsUnique, "CreateNew": CreateNew, "OnlyValidate": OnlyValidate, "IsFunction": IsFunction, "IsUnitFunction": IsUnitFunction, "IsSts": IsSts, "IsDelegate": IsDelegate, "PersonDateBirth": PersonDateBirth, "Person": Person, "ID_MembershipType": ID_MembershipType, "ID_MembershipCategory": ID_MembershipCategory, "ID_MembershipReason": ID_MembershipReason}) # Načíst seznam důvodů změny/ukončení členství def MembershipReasonAll(self, ID_Login, IsMulti, ID=None, DisplayName=None): return self._client.service.MembershipReasonAll({"ID_Login": ID_Login, "IsMulti": IsMulti, "ID": ID, "DisplayName": DisplayName}) # Načíst seznam typů členství def MembershipTypeAll(self, ID_Login, DisplayName=None): return self._client.service.MembershipTypeAll({"ID_Login": ID_Login, "DisplayName": DisplayName}) # Upravit členství osoby v jednotce def MembershipUpdate(self, ID_Login, ID, ID_Unit, ID_Person, ID_User, ValidFrom, ValidTo, IsUnique, CreateNew, OnlyValidate, IsFunction, IsUnitFunction, IsSts, IsDelegate, PersonDateBirth, Person=None, ID_MembershipType=None, ID_MembershipCategory=None, ID_MembershipReason=None): return self._client.service.MembershipUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Person": ID_Person, "ID_User": ID_User, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "IsUnique": IsUnique, "CreateNew": CreateNew, "OnlyValidate": OnlyValidate, "IsFunction": IsFunction, "IsUnitFunction": IsUnitFunction, "IsSts": IsSts, "IsDelegate": IsDelegate, "PersonDateBirth": PersonDateBirth, "Person": Person, "ID_MembershipType": ID_MembershipType, "ID_MembershipCategory": ID_MembershipCategory, "ID_MembershipReason": ID_MembershipReason}) # Načíst seznam užívání nemovitosti def OccupationAll(self, ID_Login, ID_Application, ID_Unit, IncludeChildUnits, ID_Realty, Publish, ID_RealtyType, Distance, GpsLatitude, GpsLongitude, GpsLatitudeStart, GpsLongitudeStart, GpsLatitudeEnd, GpsLongitudeEnd, AdvertisingCategories=None): return self._client.service.OccupationAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_Unit": ID_Unit, "IncludeChildUnits": IncludeChildUnits, "ID_Realty": ID_Realty, "Publish": Publish, "ID_RealtyType": ID_RealtyType, "Distance": Distance, "GpsLatitude": GpsLatitude, "GpsLongitude": GpsLongitude, "GpsLatitudeStart": GpsLatitudeStart, "GpsLongitudeStart": GpsLongitudeStart, "GpsLatitudeEnd": GpsLatitudeEnd, "GpsLongitudeEnd": GpsLongitudeEnd, "AdvertisingCategories": AdvertisingCategories}) # Smazat užívání nemovitosti def OccupationDelete(self, ID_Login, ID): return self._client.service.OccupationDelete({"ID_Login": ID_Login, "ID": ID}) # Načíst detail užívání nemovitosti def OccupationDetail(self, ID_Login, ID): return self._client.service.OccupationDetail({"ID_Login": ID_Login, "ID": ID}) # Založit užívání nemovitosti def OccupationInsert(self, ID_Login, ID, ID_Unit, ID_Realty, Publish, ID_RealtyType, Note=None, RealtyType=None): return self._client.service.OccupationInsert({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Realty": ID_Realty, "Publish": Publish, "ID_RealtyType": ID_RealtyType, "Note": Note, "RealtyType": RealtyType}) # Upravit užívání nemovitosti def OccupationUpdate(self, ID_Login, ID, ID_Unit, ID_Realty, Publish, ID_RealtyType, Note=None, RealtyType=None): return self._client.service.OccupationUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Realty": ID_Realty, "Publish": Publish, "ID_RealtyType": ID_RealtyType, "Note": Note, "RealtyType": RealtyType}) # Načíst seznam nabídky činnosti def OfferAll(self, ID_Login, ID_Person, ID_OfferType, ShowHistory): return self._client.service.OfferAll({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID_OfferType": ID_OfferType, "ShowHistory": ShowHistory}) # Smazat nabídku činnosti def OfferDelete(self, ID_Login, ID): return self._client.service.OfferDelete({"ID_Login": ID_Login, "ID": ID}) # Založit nabídku činnosti def OfferInsert(self, ID_Login, ID_Person, ID, ID_OfferType, Note=None): return self._client.service.OfferInsert({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID": ID, "ID_OfferType": ID_OfferType, "Note": Note}) # Načíst seznam činností def OfferTypeAll(self, ID_Login, DisplayName=None): return self._client.service.OfferTypeAll({"ID_Login": ID_Login, "DisplayName": DisplayName}) # Upravit nabídku činnosti def OfferUpdate(self, ID_Login, ID_Person, ID, ID_OfferType, Note=None): return self._client.service.OfferUpdate({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID": ID, "ID_OfferType": ID_OfferType, "Note": Note}) # Načíst seznam osob def PersonAll(self, ID_Login, ID, ID_Unit, OnlyDirectMember, ID_FunctionType, ID_QualificationType, DisplayName=None, ID_Sex=None, IdentificationCode=None, FirstName=None, LastName=None, SecurityCode=None, IdentificationCodeStartsWith=None, RegistrationNumber=None): return self._client.service.PersonAll({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "OnlyDirectMember": OnlyDirectMember, "ID_FunctionType": ID_FunctionType, "ID_QualificationType": ID_QualificationType, "DisplayName": DisplayName, "ID_Sex": ID_Sex, "IdentificationCode": IdentificationCode, "FirstName": FirstName, "LastName": LastName, "SecurityCode": SecurityCode, "IdentificationCodeStartsWith": IdentificationCodeStartsWith, "RegistrationNumber": RegistrationNumber}) # Načíst seznam kontaktů osoby def PersonContactAll(self, ID_Login, ID_Person, IsCatalog, IsMain, IsHidden, ID_ContactType=None): return self._client.service.PersonContactAll({"ID_Login": ID_Login, "ID_Person": ID_Person, "IsCatalog": IsCatalog, "IsMain": IsMain, "IsHidden": IsHidden, "ID_ContactType": ID_ContactType}) # Smazat kontakt osoby def PersonContactDelete(self, ID_Login, ID): return self._client.service.PersonContactDelete({"ID_Login": ID_Login, "ID": ID}) # Založit kontakt osoby def PersonContactInsert(self, ID_Login, ID_Person, ID, IsGa, IsCatalog, IsHidden, ID_ContactType=None, Value=None, Note=None): return self._client.service.PersonContactInsert({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID": ID, "IsGa": IsGa, "IsCatalog": IsCatalog, "IsHidden": IsHidden, "ID_ContactType": ID_ContactType, "Value": Value, "Note": Note}) # Upravit kontakt osoby def PersonContactUpdate(self, ID_Login, ID_Person, ID, IsGa, IsCatalog, IsHidden, ID_ContactType=None, Value=None, Note=None): return self._client.service.PersonContactUpdate({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID": ID, "IsGa": IsGa, "IsCatalog": IsCatalog, "IsHidden": IsHidden, "ID_ContactType": ID_ContactType, "Value": Value, "Note": Note}) # Založení osoby def PersonInsert(self, ID_Login, Birthday, BirthdayYear, IsForeign, YearFrom, ID_User, OnlyValidate, IsPostalAuthenticated, IsAddressAuthenticated, AllowDataStorage, AllowAudiovisual, AllowSocialNetwork, AllowMarketing, IdentificationCodeForce, ID_UnitEnrollTempFile, IdentificationCode=None, FirstName=None, LastName=None, NickName=None, Address=None, Street=None, City=None, Postcode=None, State=None, PostalFirstLine=None, PostalAddress=None, PostalStreet=None, PostalCity=None, PostalPostcode=None, PostalState=None, Note=None, ID_Sex=None, RegistrationNumber=None, PhotoExtension=None, MaidenName=None, AddressDistrict=None, PostalDistrict=None, UnitEnrollExtension=None, UnitEnroll=None): return self._client.service.PersonInsert({"ID_Login": ID_Login, "Birthday": Birthday, "BirthdayYear": BirthdayYear, "IsForeign": IsForeign, "YearFrom": YearFrom, "ID_User": ID_User, "OnlyValidate": OnlyValidate, "IsPostalAuthenticated": IsPostalAuthenticated, "IsAddressAuthenticated": IsAddressAuthenticated, "AllowDataStorage": AllowDataStorage, "AllowAudiovisual": AllowAudiovisual, "AllowSocialNetwork": AllowSocialNetwork, "AllowMarketing": AllowMarketing, "IdentificationCodeForce": IdentificationCodeForce, "ID_UnitEnrollTempFile": ID_UnitEnrollTempFile, "IdentificationCode": IdentificationCode, "FirstName": FirstName, "LastName": LastName, "NickName": NickName, "Address": Address, "Street": Street, "City": City, "Postcode": Postcode, "State": State, "PostalFirstLine": PostalFirstLine, "PostalAddress": PostalAddress, "PostalStreet": PostalStreet, "PostalCity": PostalCity, "PostalPostcode": PostalPostcode, "PostalState": PostalState, "Note": Note, "ID_Sex": ID_Sex, "RegistrationNumber": RegistrationNumber, "PhotoExtension": PhotoExtension, "MaidenName": MaidenName, "AddressDistrict": AddressDistrict, "PostalDistrict": PostalDistrict, "UnitEnrollExtension": UnitEnrollExtension, "UnitEnroll": UnitEnroll}) # Editace osoby def PersonUpdate(self, ID_Login, ID, Birthday, BirthdayYear, IsForeign, YearFrom, ID_User, OnlyValidate, IsPostalAuthenticated, IsAddressAuthenticated, RejectDataStorage, IdentificationCodeForce, GenerateSecurityCode, ID_TempFile, ID_PersonPhotoBig, ID_PersonPhotoMedium, ID_PersonPhotoNormal, ID_PersonPhotoSmall, IdentificationCode=None, FirstName=None, LastName=None, NickName=None, Address=None, Street=None, City=None, Postcode=None, State=None, PostalFirstLine=None, PostalAddress=None, PostalStreet=None, PostalCity=None, PostalPostcode=None, PostalState=None, Note=None, ID_Sex=None, RegistrationNumber=None, PhotoExtension=None, PhotoContent=None, MaidenName=None, AddressDistrict=None, PostalDistrict=None, UnitEnrollExtension=None, UnitEnroll=None): return self._client.service.PersonUpdate({"ID_Login": ID_Login, "ID": ID, "Birthday": Birthday, "BirthdayYear": BirthdayYear, "IsForeign": IsForeign, "YearFrom": YearFrom, "ID_User": ID_User, "OnlyValidate": OnlyValidate, "IsPostalAuthenticated": IsPostalAuthenticated, "IsAddressAuthenticated": IsAddressAuthenticated, "RejectDataStorage": RejectDataStorage, "IdentificationCodeForce": IdentificationCodeForce, "GenerateSecurityCode": GenerateSecurityCode, "ID_TempFile": ID_TempFile, "ID_PersonPhotoBig": ID_PersonPhotoBig, "ID_PersonPhotoMedium": ID_PersonPhotoMedium, "ID_PersonPhotoNormal": ID_PersonPhotoNormal, "ID_PersonPhotoSmall": ID_PersonPhotoSmall, "IdentificationCode": IdentificationCode, "FirstName": FirstName, "LastName": LastName, "NickName": NickName, "Address": Address, "Street": Street, "City": City, "Postcode": Postcode, "State": State, "PostalFirstLine": PostalFirstLine, "PostalAddress": PostalAddress, "PostalStreet": PostalStreet, "PostalCity": PostalCity, "PostalPostcode": PostalPostcode, "PostalState": PostalState, "Note": Note, "ID_Sex": ID_Sex, "RegistrationNumber": RegistrationNumber, "PhotoExtension": PhotoExtension, "PhotoContent": PhotoContent, "MaidenName": MaidenName, "AddressDistrict": AddressDistrict, "PostalDistrict": PostalDistrict, "UnitEnrollExtension": UnitEnrollExtension, "UnitEnroll": UnitEnroll}) # Načíst seznam kvalifikací def QualificationAll(self, ShowHistory, ID_Login, ID_Person, ID_QualificationType, IsValid, QualificationTypeKey=None): return self._client.service.QualificationAll({"ShowHistory": ShowHistory, "ID_Login": ID_Login, "ID_Person": ID_Person, "ID_QualificationType": ID_QualificationType, "IsValid": IsValid, "QualificationTypeKey": QualificationTypeKey}) # Načíst detail kvalifikace def QualificationDetail(self, ID_Login, ID): return self._client.service.QualificationDetail({"ID_Login": ID_Login, "ID": ID}) # Založit kvalifikaci def QualificationInsert(self, ID_Login, ID_Person, ID, ValidFrom, ValidTo, ID_QualificationType, IsUsed, SendMessage, ID_Document, Person=None, QualificationType=None, LetterNumber=None, Note=None): return self._client.service.QualificationInsert({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID": ID, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_QualificationType": ID_QualificationType, "IsUsed": IsUsed, "SendMessage": SendMessage, "ID_Document": ID_Document, "Person": Person, "QualificationType": QualificationType, "LetterNumber": LetterNumber, "Note": Note}) # Načíst seznam typů kvalfikace def QualificationTypeAll(self, ID_Login, IsExam, ShowManualIssue, DisplayName=None): return self._client.service.QualificationTypeAll({"ID_Login": ID_Login, "IsExam": IsExam, "ShowManualIssue": ShowManualIssue, "DisplayName": DisplayName}) # Upravit kvalifikaci def QualificationUpdate(self, ID_Login, ID_Person, ID, ValidFrom, ValidTo, ID_QualificationType, IsUsed, SendMessage, ID_Document, Person=None, QualificationType=None, LetterNumber=None, Note=None): return self._client.service.QualificationUpdate({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID": ID, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_QualificationType": ID_QualificationType, "IsUsed": IsUsed, "SendMessage": SendMessage, "ID_Document": ID_Document, "Person": Person, "QualificationType": QualificationType, "LetterNumber": LetterNumber, "Note": Note}) # Načíst seznam nemovitostí def RealtyAll(self, ID_Login, ID, ID_RealtyType, SearchByCity, SearchByName, SearchString=None): return self._client.service.RealtyAll({"ID_Login": ID_Login, "ID": ID, "ID_RealtyType": ID_RealtyType, "SearchByCity": SearchByCity, "SearchByName": SearchByName, "SearchString": SearchString}) # Načíst detail nemovitosti def RealtyDetail(self, ID_Login, ID): return self._client.service.RealtyDetail({"ID_Login": ID_Login, "ID": ID}) # Založit nemovitost def RealtyInsert(self, ID_Login, ID, ID_RealtyType, GpsLatitude, GpsLongitude, ID_RealtyCollection, IsPower, ValidTo, IsActive, ID_TempFilePhoto, IsAddressAuthenticated, ID_Document, LVNumber, Acreage, RealtyGpsLatitude, RealtyGpsLongitude, CoordinateX, CoordinateY, DisplayName=None, RealtyType=None, Street=None, City=None, Postcode=None, Description=None, Note=None, RealtyCollection=None, ID_OwnerType=None, OwnerType=None, OwnerTypeNote=None, PhotoExtension=None, PhotoFileContent=None, FotogalleryUrl=None, District=None, Storage=None, ParcelNumber=None, RegisterCity=None, CadastralArea=None, ParcelType=None, LandType=None, Unit=None, UnitRegistrationNumber=None): return self._client.service.RealtyInsert({"ID_Login": ID_Login, "ID": ID, "ID_RealtyType": ID_RealtyType, "GpsLatitude": GpsLatitude, "GpsLongitude": GpsLongitude, "ID_RealtyCollection": ID_RealtyCollection, "IsPower": IsPower, "ValidTo": ValidTo, "IsActive": IsActive, "ID_TempFilePhoto": ID_TempFilePhoto, "IsAddressAuthenticated": IsAddressAuthenticated, "ID_Document": ID_Document, "LVNumber": LVNumber, "Acreage": Acreage, "RealtyGpsLatitude": RealtyGpsLatitude, "RealtyGpsLongitude": RealtyGpsLongitude, "CoordinateX": CoordinateX, "CoordinateY": CoordinateY, "DisplayName": DisplayName, "RealtyType": RealtyType, "Street": Street, "City": City, "Postcode": Postcode, "Description": Description, "Note": Note, "RealtyCollection": RealtyCollection, "ID_OwnerType": ID_OwnerType, "OwnerType": OwnerType, "OwnerTypeNote": OwnerTypeNote, "PhotoExtension": PhotoExtension, "PhotoFileContent": PhotoFileContent, "FotogalleryUrl": FotogalleryUrl, "District": District, "Storage": Storage, "ParcelNumber": ParcelNumber, "RegisterCity": RegisterCity, "CadastralArea": CadastralArea, "ParcelType": ParcelType, "LandType": LandType, "Unit": Unit, "UnitRegistrationNumber": UnitRegistrationNumber}) # Načíst seznam typů nemovitostí def RealtyTypeAll(self, ID_Login, ID_Application, DisplayName=None): return self._client.service.RealtyTypeAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "DisplayName": DisplayName}) # Upravit nemovitost def RealtyUpdate(self, ID_Login, ID, ID_RealtyType, GpsLatitude, GpsLongitude, ID_RealtyCollection, IsPower, ValidTo, IsActive, ID_TempFilePhoto, IsAddressAuthenticated, ID_Document, LVNumber, Acreage, RealtyGpsLatitude, RealtyGpsLongitude, CoordinateX, CoordinateY, DisplayName=None, RealtyType=None, Street=None, City=None, Postcode=None, Description=None, Note=None, RealtyCollection=None, ID_OwnerType=None, OwnerType=None, OwnerTypeNote=None, PhotoExtension=None, PhotoFileContent=None, FotogalleryUrl=None, District=None, Storage=None, ParcelNumber=None, RegisterCity=None, CadastralArea=None, ParcelType=None, LandType=None, Unit=None, UnitRegistrationNumber=None): return self._client.service.RealtyUpdate({"ID_Login": ID_Login, "ID": ID, "ID_RealtyType": ID_RealtyType, "GpsLatitude": GpsLatitude, "GpsLongitude": GpsLongitude, "ID_RealtyCollection": ID_RealtyCollection, "IsPower": IsPower, "ValidTo": ValidTo, "IsActive": IsActive, "ID_TempFilePhoto": ID_TempFilePhoto, "IsAddressAuthenticated": IsAddressAuthenticated, "ID_Document": ID_Document, "LVNumber": LVNumber, "Acreage": Acreage, "RealtyGpsLatitude": RealtyGpsLatitude, "RealtyGpsLongitude": RealtyGpsLongitude, "CoordinateX": CoordinateX, "CoordinateY": CoordinateY, "DisplayName": DisplayName, "RealtyType": RealtyType, "Street": Street, "City": City, "Postcode": Postcode, "Description": Description, "Note": Note, "RealtyCollection": RealtyCollection, "ID_OwnerType": ID_OwnerType, "OwnerType": OwnerType, "OwnerTypeNote": OwnerTypeNote, "PhotoExtension": PhotoExtension, "PhotoFileContent": PhotoFileContent, "FotogalleryUrl": FotogalleryUrl, "District": District, "Storage": Storage, "ParcelNumber": ParcelNumber, "RegisterCity": RegisterCity, "CadastralArea": CadastralArea, "ParcelType": ParcelType, "LandType": LandType, "Unit": Unit, "UnitRegistrationNumber": UnitRegistrationNumber}) # Načíst seznam registračních kategorií def RegistrationCategoryAll(self, ID_Login, ID_UnitRegistration, ID_RegistrationCategoryParent, ShowParentUnit, ShowUsable, IsAfterDeadline, DisplayName=None, ID_MembershipType=None): return self._client.service.RegistrationCategoryAll({"ID_Login": ID_Login, "ID_UnitRegistration": ID_UnitRegistration, "ID_RegistrationCategoryParent": ID_RegistrationCategoryParent, "ShowParentUnit": ShowParentUnit, "ShowUsable": ShowUsable, "IsAfterDeadline": IsAfterDeadline, "DisplayName": DisplayName, "ID_MembershipType": ID_MembershipType}) # Smazat registrační kategorii def RegistrationCategoryDelete(self, ID_Login, ID): return self._client.service.RegistrationCategoryDelete({"ID_Login": ID_Login, "ID": ID}) # Založit registrační kategorii def RegistrationCategoryInsert(self, ID_Login, ID_UnitRegistration, ID_RegistrationCategoryParent, Amount, IsAfterDeadline, IsJournal, DisplayName=None, ID_MembershipType=None, Note=None): return self._client.service.RegistrationCategoryInsert({"ID_Login": ID_Login, "ID_UnitRegistration": ID_UnitRegistration, "ID_RegistrationCategoryParent": ID_RegistrationCategoryParent, "Amount": Amount, "IsAfterDeadline": IsAfterDeadline, "IsJournal": IsJournal, "DisplayName": DisplayName, "ID_MembershipType": ID_MembershipType, "Note": Note}) # Načíst seznam pohlaví def SexAll(self, ID_Login, ID_Application, DisplayName=None): return self._client.service.SexAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "DisplayName": DisplayName}) # Načíst seznam hospodářských výkazů def StatementAll(self, ID_Login, ID_Unit, Year, ID_StatementType=None): return self._client.service.StatementAll({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "Year": Year, "ID_StatementType": ID_StatementType}) # Smazat hospodářský výkaz def StatementDelete(self, ID_Login, ID): return self._client.service.StatementDelete({"ID_Login": ID_Login, "ID": ID}) # Načíst detail hospodářského výkazu def StatementDetail(self, ID_Login, ID): return self._client.service.StatementDetail({"ID_Login": ID_Login, "ID": ID}) # Načíst seznam položek hospodářského výkazu def StatementEntryAll(self, ID_Login, ID_Statement, ID_StatementEntryType, IsMoney): return self._client.service.StatementEntryAll({"ID_Login": ID_Login, "ID_Statement": ID_Statement, "ID_StatementEntryType": ID_StatementEntryType, "IsMoney": IsMoney}) # Načíst seznam závěrkových položky def StatementEntryTypeAll(self, ID_Login, DisplayName=None, ID_StatementType=None): return self._client.service.StatementEntryTypeAll({"ID_Login": ID_Login, "DisplayName": DisplayName, "ID_StatementType": ID_StatementType}) # Upravit položku hospodářského výkazu def StatementEntryUpdate(self, ID_Login, ID, ID_Statement, ID_StatementEntryType, Amount, AmountLastYear, AmountMain, AmountEconomic): return self._client.service.StatementEntryUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Statement": ID_Statement, "ID_StatementEntryType": ID_StatementEntryType, "Amount": Amount, "AmountLastYear": AmountLastYear, "AmountMain": AmountMain, "AmountEconomic": AmountEconomic}) # Založit hospodářský výkaz def StatementInsert(self, ID_Login, ID, ID_Unit, Year, IsError, IsDelivered, DateDelivered, DateCreated, IsThousands, IsConsultant, ID_Document, ID_DocumentTempFile, DateSent, ID_PersonSent, DateConfirmed, ID_PersonConfirmed, ID_Registry, ShowOverview, Unit=None, RegistrationNumber=None, ID_StatementType=None, StatementType=None, ID_StatementState=None, StatementState=None, PersonSent=None, PersonConfirmed=None): return self._client.service.StatementInsert({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Year": Year, "IsError": IsError, "IsDelivered": IsDelivered, "DateDelivered": DateDelivered, "DateCreated": DateCreated, "IsThousands": IsThousands, "IsConsultant": IsConsultant, "ID_Document": ID_Document, "ID_DocumentTempFile": ID_DocumentTempFile, "DateSent": DateSent, "ID_PersonSent": ID_PersonSent, "DateConfirmed": DateConfirmed, "ID_PersonConfirmed": ID_PersonConfirmed, "ID_Registry": ID_Registry, "ShowOverview": ShowOverview, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "ID_StatementType": ID_StatementType, "StatementType": StatementType, "ID_StatementState": ID_StatementState, "StatementState": StatementState, "PersonSent": PersonSent, "PersonConfirmed": PersonConfirmed}) # Načíst seznam typů hospodářského výkazu def StatementTypeAll(self, ID_Login, DisplayName=None): return self._client.service.StatementTypeAll({"ID_Login": ID_Login, "DisplayName": DisplayName}) # Načíst seznam evidencí provedených kontrol def UnitAuditRegisterAll(self, ID_Login, ID, ID_Unit): return self._client.service.UnitAuditRegisterAll({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit}) # Načíst detail evidence provedené kontroly def UnitAuditRegisterDetail(self, ID_Login, ID): return self._client.service.UnitAuditRegisterDetail({"ID_Login": ID_Login, "ID": ID}) # Založit evidenci provedené kontroly def UnitAuditRegisterInsert(self, ID_Login, ID, ID_Unit, Year, ID_DocumentReport, ID_PersonReport, ReportDone, ID_DocumentAudit, ID_PersonAudit, AuditDone, ID_TempFileReport, ID_TempFileAudit, Unit=None, RegistrationNumber=None, PersonReport=None, ReportText=None, PersonAudit=None, AuditText=None): return self._client.service.UnitAuditRegisterInsert({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Year": Year, "ID_DocumentReport": ID_DocumentReport, "ID_PersonReport": ID_PersonReport, "ReportDone": ReportDone, "ID_DocumentAudit": ID_DocumentAudit, "ID_PersonAudit": ID_PersonAudit, "AuditDone": AuditDone, "ID_TempFileReport": ID_TempFileReport, "ID_TempFileAudit": ID_TempFileAudit, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "PersonReport": PersonReport, "ReportText": ReportText, "PersonAudit": PersonAudit, "AuditText": AuditText}) # Zadat soubory def UnitAuditRegisterUpdate(self, ID_Login, ID, ID_Unit, Year, ID_DocumentReport, ID_PersonReport, ReportDone, ID_DocumentAudit, ID_PersonAudit, AuditDone, ID_TempFileReport, ID_TempFileAudit, Unit=None, RegistrationNumber=None, PersonReport=None, ReportText=None, PersonAudit=None, AuditText=None): return self._client.service.UnitAuditRegisterUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Year": Year, "ID_DocumentReport": ID_DocumentReport, "ID_PersonReport": ID_PersonReport, "ReportDone": ReportDone, "ID_DocumentAudit": ID_DocumentAudit, "ID_PersonAudit": ID_PersonAudit, "AuditDone": AuditDone, "ID_TempFileReport": ID_TempFileReport, "ID_TempFileAudit": ID_TempFileAudit, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "PersonReport": PersonReport, "ReportText": ReportText, "PersonAudit": PersonAudit, "AuditText": AuditText}) # Načtení informací o slevovém kódu jednotky def UnitDetailShopDiscount(self, ID_Login, ID, ID_Person): return self._client.service.UnitDetailShopDiscount({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person}) # Načíst seznam důvodů založení jednotky def UnitFoundReasonAll(self, ID_Login, ID=None, DisplayName=None): return self._client.service.UnitFoundReasonAll({"ID_Login": ID_Login, "ID": ID, "DisplayName": DisplayName}) # Načíst seznam adres def UnitJournalDeliveryAll(self, ID_Login, ID, ID_Unit): return self._client.service.UnitJournalDeliveryAll({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit}) # Načíst detail adresy def UnitJournalDeliveryDetail(self, ID_Login, ID, ID_Unit, ID_Person, Unit=None, RegistrationNumber=None, Street=None, Ciry=None, PostCode=None, FirstLine=None, State=None, ID_JournalDeliveryType=None): return self._client.service.UnitJournalDeliveryDetail({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Person": ID_Person, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "Street": Street, "Ciry": Ciry, "PostCode": PostCode, "FirstLine": FirstLine, "State": State, "ID_JournalDeliveryType": ID_JournalDeliveryType}) # Založit adresu def UnitJournalDeliveryInsert(self, ID_Login, ID, ID_Unit, ID_Person, Unit=None, RegistrationNumber=None, Street=None, Ciry=None, PostCode=None, FirstLine=None, State=None, ID_JournalDeliveryType=None): return self._client.service.UnitJournalDeliveryInsert({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Person": ID_Person, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "Street": Street, "Ciry": Ciry, "PostCode": PostCode, "FirstLine": FirstLine, "State": State, "ID_JournalDeliveryType": ID_JournalDeliveryType}) # Upravit adresu def UnitJournalDeliveryUpdate(self, ID_Login, ID, ID_Unit, ID_Person, Unit=None, RegistrationNumber=None, Street=None, Ciry=None, PostCode=None, FirstLine=None, State=None, ID_JournalDeliveryType=None): return self._client.service.UnitJournalDeliveryUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Person": ID_Person, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "Street": Street, "Ciry": Ciry, "PostCode": PostCode, "FirstLine": FirstLine, "State": State, "ID_JournalDeliveryType": ID_JournalDeliveryType}) # Načíst seznam razítek jednotky def UnitStampAll(self, ID_Login, ID_Unit, ID, ID_StampType=None): return self._client.service.UnitStampAll({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "ID": ID, "ID_StampType": ID_StampType}) # Smazat razítko jednotky def UnitStampDelete(self, ID_Login, ID): return self._client.service.UnitStampDelete({"ID_Login": ID_Login, "ID": ID}) # Načíst detail razítka jednotky def UnitStampDetail(self, ID_Login, ID): return self._client.service.UnitStampDetail({"ID_Login": ID_Login, "ID": ID}) # Založit razítko jednotky def UnitStampInsert(self, ID_Login, ID, ID_Unit, Count, Unit=None, RegistrationNumber=None, ID_StampType=None, StampType=None, Email=None, Web=None): return self._client.service.UnitStampInsert({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Count": Count, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "ID_StampType": ID_StampType, "StampType": StampType, "Email": Email, "Web": Web}) # Upravit razítko jednotky def UnitStampUpdate(self, ID_Login, ID, ID_Unit, Count, Unit=None, RegistrationNumber=None, ID_StampType=None, StampType=None, Email=None, Web=None): return self._client.service.UnitStampUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Count": Count, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "ID_StampType": ID_StampType, "StampType": StampType, "Email": Email, "Web": Web}) # Nastavit typ rozesílky balíčků pro nováčky def UnitUpdateJournalDeliveryType(self, ID_Login, ID, ID_JournalDeliveryType=None): return self._client.service.UnitUpdateJournalDeliveryType({"ID_Login": ID_Login, "ID": ID, "ID_JournalDeliveryType": ID_JournalDeliveryType}) # Nastavit způsob odběru balíčků pro nováčky def UnitUpdateChangeJournalNovice(self, ID_Login, ID, ID_JournalNovice=None): return self._client.service.UnitUpdateChangeJournalNovice({"ID_Login": ID_Login, "ID": ID, "ID_JournalNovice": ID_JournalNovice}) # Upravit jméno jednotky def UnitUpdateName(self, ID_Login, ID, ID_Group, ID_Unit, ContainsMembers, CommissionDeadline, IsVatPayer, ID_TroopArt, CanUpdateRegistrationNumber, IsUnitCancel, JournalParent, ChangeFreeJournal, ID_UnitParent, OnlyValidate, IsPostalAuthenticated, IsAddressAuthenticated, ID_PersonChangeName, DateChangeName, IsPropertyOwner, ID_TempFilePropertyAgreement, ID_DocumentDecision, ID_DocumentPropertyAgreement, ID_TempFileSeatChange, ID_UnitType=None, UnitType=None, DisplayName=None, SortName=None, RegistrationNumber=None, ShortRegistrationNumber=None, Location=None, IC=None, DIC=None, FileReference=None, Street=None, City=None, Postcode=None, State=None, PostalFirstLine=None, PostalStreet=None, PostalCity=None, PostalPostcode=None, PostalState=None, Note=None, TroopArt=None, LogoContent=None, LogoExtension=None, AddressDistrict=None, PostalDistrict=None, NewDisplayName=None, CompleteDisplayName=None, PersonChangeName=None, PropertyAgreementExtension=None, PropertyAgreementContent=None, TroopArtKey=None, ID_JournalNovice=None, ID_JournalDeliveryType=None, FullDisplayName=None, DecisionSeatChangeExtension=None, ShopDiscountBarcode=None, ID_UnitFoundReason=None, UnitFoundReason=None, UnitFoundDescription=None): return self._client.service.UnitUpdateName({"ID_Login": ID_Login, "ID": ID, "ID_Group": ID_Group, "ID_Unit": ID_Unit, "ContainsMembers": ContainsMembers, "CommissionDeadline": CommissionDeadline, "IsVatPayer": IsVatPayer, "ID_TroopArt": ID_TroopArt, "CanUpdateRegistrationNumber": CanUpdateRegistrationNumber, "IsUnitCancel": IsUnitCancel, "JournalParent": JournalParent, "ChangeFreeJournal": ChangeFreeJournal, "ID_UnitParent": ID_UnitParent, "OnlyValidate": OnlyValidate, "IsPostalAuthenticated": IsPostalAuthenticated, "IsAddressAuthenticated": IsAddressAuthenticated, "ID_PersonChangeName": ID_PersonChangeName, "DateChangeName": DateChangeName, "IsPropertyOwner": IsPropertyOwner, "ID_TempFilePropertyAgreement": ID_TempFilePropertyAgreement, "ID_DocumentDecision": ID_DocumentDecision, "ID_DocumentPropertyAgreement": ID_DocumentPropertyAgreement, "ID_TempFileSeatChange": ID_TempFileSeatChange, "ID_UnitType": ID_UnitType, "UnitType": UnitType, "DisplayName": DisplayName, "SortName": SortName, "RegistrationNumber": RegistrationNumber, "ShortRegistrationNumber": ShortRegistrationNumber, "Location": Location, "IC": IC, "DIC": DIC, "FileReference": FileReference, "Street": Street, "City": City, "Postcode": Postcode, "State": State, "PostalFirstLine": PostalFirstLine, "PostalStreet": PostalStreet, "PostalCity": PostalCity, "PostalPostcode": PostalPostcode, "PostalState": PostalState, "Note": Note, "TroopArt": TroopArt, "LogoContent": LogoContent, "LogoExtension": LogoExtension, "AddressDistrict": AddressDistrict, "PostalDistrict": PostalDistrict, "NewDisplayName": NewDisplayName, "CompleteDisplayName": CompleteDisplayName, "PersonChangeName": PersonChangeName, "PropertyAgreementExtension": PropertyAgreementExtension, "PropertyAgreementContent": PropertyAgreementContent, "TroopArtKey": TroopArtKey, "ID_JournalNovice": ID_JournalNovice, "ID_JournalDeliveryType": ID_JournalDeliveryType, "FullDisplayName": FullDisplayName, "DecisionSeatChangeExtension": DecisionSeatChangeExtension, "ShopDiscountBarcode": ShopDiscountBarcode, "ID_UnitFoundReason": ID_UnitFoundReason, "UnitFoundReason": UnitFoundReason, "UnitFoundDescription": UnitFoundDescription}) # Ukončit platnost účtu def AccountUpdateCancel(self, ID_Login, ID, ID_Unit, ValidTo, ID_Bank, IsMain, DisplayName=None, Unit=None, Bank=None, AccountPrefix=None, AccountNumber=None, Street=None, City=None, Postcode=None, Note=None): return self._client.service.AccountUpdateCancel({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ValidTo": ValidTo, "ID_Bank": ID_Bank, "IsMain": IsMain, "DisplayName": DisplayName, "Unit": Unit, "Bank": Bank, "AccountPrefix": AccountPrefix, "AccountNumber": AccountNumber, "Street": Street, "City": City, "Postcode": Postcode, "Note": Note}) # Načíst seznam věkových kategorií def AgeCategoryAll(self, ID_Login, IsMore): return self._client.service.AgeCategoryAll({"ID_Login": ID_Login, "IsMore": IsMore}) # Načíst seznam ústředních orgánů def AgencyAll(self, ID_Login, ID, DisplayName=None): return self._client.service.AgencyAll({"ID_Login": ID_Login, "ID": ID, "DisplayName": DisplayName}) # Načíst seznam členských karet def MemberCardAll(self, ID_Login, ID_Person, ID, ID_PersonSchool, ID_MemberCardState=None, DisplayName=None, ID_MemberCardType=None): return self._client.service.MemberCardAll({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID": ID, "ID_PersonSchool": ID_PersonSchool, "ID_MemberCardState": ID_MemberCardState, "DisplayName": DisplayName, "ID_MemberCardType": ID_MemberCardType}) # Smazat členskou kartu def MemberCardDelete(self, ID_Login, ID): return self._client.service.MemberCardDelete({"ID_Login": ID_Login, "ID": ID}) # Načíst detail členské karty def MemberCardDetail(self, ID_Login, ID, DisplayName=None): return self._client.service.MemberCardDetail({"ID_Login": ID_Login, "ID": ID, "DisplayName": DisplayName}) # Založit členskou kartu def MemberCardInsert(self, ID_Login, ID, ID_Person, Birthday, Year, DateCreate, Price, IsAuthorized, IsPaid, ValidFrom, ValidTo, ID_PersonSchool, ID_PersonRegistration, ID_DocumentMediumPhoto, ID_MemberCardState=None, MemberCardState=None, DisplayName=None, Person=None, ID_MemberCardType=None, MemberCardType=None, PersonSchool=None, PersonSchoolCity=None, UnitStredisko=None, LeaderContact=None, StorageMediumPhoto=None): return self._client.service.MemberCardInsert({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "Birthday": Birthday, "Year": Year, "DateCreate": DateCreate, "Price": Price, "IsAuthorized": IsAuthorized, "IsPaid": IsPaid, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_PersonSchool": ID_PersonSchool, "ID_PersonRegistration": ID_PersonRegistration, "ID_DocumentMediumPhoto": ID_DocumentMediumPhoto, "ID_MemberCardState": ID_MemberCardState, "MemberCardState": MemberCardState, "DisplayName": DisplayName, "Person": Person, "ID_MemberCardType": ID_MemberCardType, "MemberCardType": MemberCardType, "PersonSchool": PersonSchool, "PersonSchoolCity": PersonSchoolCity, "UnitStredisko": UnitStredisko, "LeaderContact": LeaderContact, "StorageMediumPhoto": StorageMediumPhoto}) # Upravit členskou kartu def MemberCardUpdate(self, ID_Login, ID, ID_Person, Birthday, Year, DateCreate, Price, IsAuthorized, IsPaid, ValidFrom, ValidTo, ID_PersonSchool, ID_PersonRegistration, ID_DocumentMediumPhoto, ID_MemberCardState=None, MemberCardState=None, DisplayName=None, Person=None, ID_MemberCardType=None, MemberCardType=None, PersonSchool=None, PersonSchoolCity=None, UnitStredisko=None, LeaderContact=None, StorageMediumPhoto=None): return self._client.service.MemberCardUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "Birthday": Birthday, "Year": Year, "DateCreate": DateCreate, "Price": Price, "IsAuthorized": IsAuthorized, "IsPaid": IsPaid, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_PersonSchool": ID_PersonSchool, "ID_PersonRegistration": ID_PersonRegistration, "ID_DocumentMediumPhoto": ID_DocumentMediumPhoto, "ID_MemberCardState": ID_MemberCardState, "MemberCardState": MemberCardState, "DisplayName": DisplayName, "Person": Person, "ID_MemberCardType": ID_MemberCardType, "MemberCardType": MemberCardType, "PersonSchool": PersonSchool, "PersonSchoolCity": PersonSchoolCity, "UnitStredisko": UnitStredisko, "LeaderContact": LeaderContact, "StorageMediumPhoto": StorageMediumPhoto}) # Objednat ztracenou kartu def MemberCardUpdateRerequest(self, ID_Login, ID, ID_Person, Birthday, Year, DateCreate, Price, IsAuthorized, IsPaid, ValidFrom, ValidTo, ID_PersonSchool, ID_PersonRegistration, ID_DocumentMediumPhoto, ID_MemberCardState=None, MemberCardState=None, DisplayName=None, Person=None, ID_MemberCardType=None, MemberCardType=None, PersonSchool=None, PersonSchoolCity=None, UnitStredisko=None, LeaderContact=None, StorageMediumPhoto=None): return self._client.service.MemberCardUpdateRerequest({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "Birthday": Birthday, "Year": Year, "DateCreate": DateCreate, "Price": Price, "IsAuthorized": IsAuthorized, "IsPaid": IsPaid, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_PersonSchool": ID_PersonSchool, "ID_PersonRegistration": ID_PersonRegistration, "ID_DocumentMediumPhoto": ID_DocumentMediumPhoto, "ID_MemberCardState": ID_MemberCardState, "MemberCardState": MemberCardState, "DisplayName": DisplayName, "Person": Person, "ID_MemberCardType": ID_MemberCardType, "MemberCardType": MemberCardType, "PersonSchool": PersonSchool, "PersonSchoolCity": PersonSchoolCity, "UnitStredisko": UnitStredisko, "LeaderContact": LeaderContact, "StorageMediumPhoto": StorageMediumPhoto}) # Načíst kartu, na kterou má osoba právo def PersonDetailMemberCard(self, ID_Login, ID): return self._client.service.PersonDetailMemberCard({"ID_Login": ID_Login, "ID": ID}) # Načíst aktuální potvrzení o studiu def PersonDetailSchool(self, ID_Login, ID): return self._client.service.PersonDetailSchool({"ID_Login": ID_Login, "ID": ID}) # Smazat potvrzení o studiu def PersonSchoolDelete(self, ID_Login, ID): return self._client.service.PersonSchoolDelete({"ID_Login": ID_Login, "ID": ID}) # Založit potvrzení o studiu def PersonSchoolInsert(self, ID_Login, ID, ID_Person, DateCreate, ID_TempFile, ID_PersonSchoolTempFile, ID_DocumentPhoto, ID_DocumentScan, Person=None, DisplayName=None, City=None, Extension=None, Scan=None, PhotoExtension=None, Photo=None): return self._client.service.PersonSchoolInsert({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "DateCreate": DateCreate, "ID_TempFile": ID_TempFile, "ID_PersonSchoolTempFile": ID_PersonSchoolTempFile, "ID_DocumentPhoto": ID_DocumentPhoto, "ID_DocumentScan": ID_DocumentScan, "Person": Person, "DisplayName": DisplayName, "City": City, "Extension": Extension, "Scan": Scan, "PhotoExtension": PhotoExtension, "Photo": Photo}) # Načíst detail registrační vady osoby def PersonMistakeReportDetail(self, ID_Login, ID): return self._client.service.PersonMistakeReportDetail({"ID_Login": ID_Login, "ID": ID}) # Upravit registrační vadu osoby def PersonMistakeReportUpdate(self, ID_Login, ID, ID_Person, ID_Unit, ID_UnitRegistration, ID_Mistake, Person=None, UnitRegistrationNumber=None, Unit=None, Mistake=None, DisplayName=None, ParentComment=None): return self._client.service.PersonMistakeReportUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "ID_Unit": ID_Unit, "ID_UnitRegistration": ID_UnitRegistration, "ID_Mistake": ID_Mistake, "Person": Person, "UnitRegistrationNumber": UnitRegistrationNumber, "Unit": Unit, "Mistake": Mistake, "DisplayName": DisplayName, "ParentComment": ParentComment}) # Načíst celkový počet odvodů za doplňkové služby pro nadřízenou jednotku def PersonRegistrationServiceAllSummary(self, ID_Login, ID_UnitRegistration): return self._client.service.PersonRegistrationServiceAllSummary({"ID_Login": ID_Login, "ID_UnitRegistration": ID_UnitRegistration}) # Načíst detail registrační vady jednotky def UnitMistakeReportDetail(self, ID_Login, ID): return self._client.service.UnitMistakeReportDetail({"ID_Login": ID_Login, "ID": ID}) # Upravit registrační vadu jednotky def UnitMistakeReportUpdate(self, ID_Login, ID, ID_Unit, ID_Mistake, Unit=None, RegistrationNumber=None, Mistake=None, DisplayName=None, ParentComment=None): return self._client.service.UnitMistakeReportUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Mistake": ID_Mistake, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "Mistake": Mistake, "DisplayName": DisplayName, "ParentComment": ParentComment}) # Načíst věkovou kategorii oddílu def UnitAgeCategoryDetail(self, ID_Login, ID_Unit): return self._client.service.UnitAgeCategoryDetail({"ID_Login": ID_Login, "ID_Unit": ID_Unit}) # Nastaví věkovou kategorii oddílu def UnitAgeCategoryUpdate(self, ID_Login, ID, ID_AgeCategory): return self._client.service.UnitAgeCategoryUpdate({"ID_Login": ID_Login, "ID": ID, "ID_AgeCategory": ID_AgeCategory}) # Načte seznam handicapů a počty lidí s handicapem pro oddíl def UnitHandicapAllUnit(self, ID_Login, ID_Unit): return self._client.service.UnitHandicapAllUnit({"ID_Login": ID_Login, "ID_Unit": ID_Unit}) # Načte datum poslení editace handicapů jednotky def UnitHandicapLastUpdated(self, ID_Login, ID_Unit): return self._client.service.UnitHandicapLastUpdated({"ID_Login": ID_Login, "ID_Unit": ID_Unit}) # Nastaví pro jednotku počet lidí s příslušným handicapem def UnitHandicapUpdate(self, ID_Login, ID_Unit, ID_HandicapType, Value): return self._client.service.UnitHandicapUpdate({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "ID_HandicapType": ID_HandicapType, "Value": Value}) # Nastavit zda se provede automatická změna časopisů zdarma def UnitUpdateChangeFreeJournal(self, ID_Login, ID, ChangeFreeJournal, IncludeChild=None): return self._client.service.UnitUpdateChangeFreeJournal({"ID_Login": ID_Login, "ID": ID, "ChangeFreeJournal": ChangeFreeJournal, "IncludeChild": IncludeChild}) # Načíst seznam požadavků na změnu v registru OJ def RegistryAll(self, ID_Login, ID_Unit, DateCreateFrom, DateCreateTo, DateCreateMonth, DateCreateYear, DisplayName=None, ID_RegistryObject=None, ID_RegistryType=None, ID_RegistryState=None): return self._client.service.RegistryAll({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "DateCreateFrom": DateCreateFrom, "DateCreateTo": DateCreateTo, "DateCreateMonth": DateCreateMonth, "DateCreateYear": DateCreateYear, "DisplayName": DisplayName, "ID_RegistryObject": ID_RegistryObject, "ID_RegistryType": ID_RegistryType, "ID_RegistryState": ID_RegistryState}) # Načíst seznam požadavků pro odeslání zpráv def RegistryAllMessage(self, ID_Login): return self._client.service.RegistryAllMessage({"ID_Login": ID_Login}) # Načíst seznam požadavků na změnu pro MV ČR def RegistryAllMinistry(self, ID_Login): return self._client.service.RegistryAllMinistry({"ID_Login": ID_Login}) # Načíst detail požadavku na změnu v registru OJ def RegistryDetail(self, ID_Login, ID): return self._client.service.RegistryDetail({"ID_Login": ID_Login, "ID": ID}) # Odeslat zprávu o změně statutára střediska nadřízené jednotce def RegistrySendFunctionParentMessage(self, ID_Login, ID, Sequence, ID_Unit, IsPropertyOwner, IsPropertyOwnerOld, OldHistoryObjectId, NewHistoryObjectId, ID_PersonCreate, DateCreate, ID_PersonUpdate, DateUpdate, ID_PersonSent, DateSent, ID_PersonClosed, DateClosed, ID_PersonCancel, DateCancel, ID_Function, ID_FunctionType, NewAccount, ID_PersonFunction, ID_PersonFunctionOld, ID_PersonSolving, DateSolving, ID_Document, ID_Statement, StatementYear, ID_DocumentStatement, ID_DocumentDecision, ID_DocumentPropertyAgreement, DisplayName=None, Unit=None, RegistrationNumber=None, IC=None, Street=None, City=None, Postcode=None, PropertyAgreementExtension=None, UnitOld=None, StreetOld=None, CityOld=None, PostcodeOld=None, ID_RegistryObject=None, RegistryObject=None, ID_RegistryType=None, RegistryType=None, ID_RegistryState=None, RegistryState=None, PersonCreate=None, PersonUpdate=None, PersonSent=None, PersonClosed=None, PersonCancel=None, CancelDecision=None, FunctionType=None, PersonFunction=None, PersonFunctionOld=None, Account=None, Note=None, PersonSolving=None, DecisionSeatChangeExtension=None): return self._client.service.RegistrySendFunctionParentMessage({"ID_Login": ID_Login, "ID": ID, "Sequence": Sequence, "ID_Unit": ID_Unit, "IsPropertyOwner": IsPropertyOwner, "IsPropertyOwnerOld": IsPropertyOwnerOld, "OldHistoryObjectId": OldHistoryObjectId, "NewHistoryObjectId": NewHistoryObjectId, "ID_PersonCreate": ID_PersonCreate, "DateCreate": DateCreate, "ID_PersonUpdate": ID_PersonUpdate, "DateUpdate": DateUpdate, "ID_PersonSent": ID_PersonSent, "DateSent": DateSent, "ID_PersonClosed": ID_PersonClosed, "DateClosed": DateClosed, "ID_PersonCancel": ID_PersonCancel, "DateCancel": DateCancel, "ID_Function": ID_Function, "ID_FunctionType": ID_FunctionType, "NewAccount": NewAccount, "ID_PersonFunction": ID_PersonFunction, "ID_PersonFunctionOld": ID_PersonFunctionOld, "ID_PersonSolving": ID_PersonSolving, "DateSolving": DateSolving, "ID_Document": ID_Document, "ID_Statement": ID_Statement, "StatementYear": StatementYear, "ID_DocumentStatement": ID_DocumentStatement, "ID_DocumentDecision": ID_DocumentDecision, "ID_DocumentPropertyAgreement": ID_DocumentPropertyAgreement, "DisplayName": DisplayName, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "IC": IC, "Street": Street, "City": City, "Postcode": Postcode, "PropertyAgreementExtension": PropertyAgreementExtension, "UnitOld": UnitOld, "StreetOld": StreetOld, "CityOld": CityOld, "PostcodeOld": PostcodeOld, "ID_RegistryObject": ID_RegistryObject, "RegistryObject": RegistryObject, "ID_RegistryType": ID_RegistryType, "RegistryType": RegistryType, "ID_RegistryState": ID_RegistryState, "RegistryState": RegistryState, "PersonCreate": PersonCreate, "PersonUpdate": PersonUpdate, "PersonSent": PersonSent, "PersonClosed": PersonClosed, "PersonCancel": PersonCancel, "CancelDecision": CancelDecision, "FunctionType": FunctionType, "PersonFunction": PersonFunction, "PersonFunctionOld": PersonFunctionOld, "Account": Account, "Note": Note, "PersonSolving": PersonSolving, "DecisionSeatChangeExtension": DecisionSeatChangeExtension}) # Načíst seznam stavů požadavku registru OJ def RegistryStateAll(self, ID_Login, DisplayName=None): return self._client.service.RegistryStateAll({"ID_Login": ID_Login, "DisplayName": DisplayName}) # Načíst seznam typů požadavku registru OJ def RegistryTypeAll(self, ID_Login, DisplayName=None, ID_RegistryObject=None): return self._client.service.RegistryTypeAll({"ID_Login": ID_Login, "DisplayName": DisplayName, "ID_RegistryObject": ID_RegistryObject}) # Zrušit požadavek na změnu v registru OJ def RegistryUpdateCancel(self, ID_Login, ID, Sequence, ID_Unit, IsPropertyOwner, IsPropertyOwnerOld, OldHistoryObjectId, NewHistoryObjectId, ID_PersonCreate, DateCreate, ID_PersonUpdate, DateUpdate, ID_PersonSent, DateSent, ID_PersonClosed, DateClosed, ID_PersonCancel, DateCancel, ID_Function, ID_FunctionType, NewAccount, ID_PersonFunction, ID_PersonFunctionOld, ID_PersonSolving, DateSolving, ID_Document, ID_Statement, StatementYear, ID_DocumentStatement, ID_DocumentDecision, ID_DocumentPropertyAgreement, DisplayName=None, Unit=None, RegistrationNumber=None, IC=None, Street=None, City=None, Postcode=None, PropertyAgreementExtension=None, UnitOld=None, StreetOld=None, CityOld=None, PostcodeOld=None, ID_RegistryObject=None, RegistryObject=None, ID_RegistryType=None, RegistryType=None, ID_RegistryState=None, RegistryState=None, PersonCreate=None, PersonUpdate=None, PersonSent=None, PersonClosed=None, PersonCancel=None, CancelDecision=None, FunctionType=None, PersonFunction=None, PersonFunctionOld=None, Account=None, Note=None, PersonSolving=None, DecisionSeatChangeExtension=None): return self._client.service.RegistryUpdateCancel({"ID_Login": ID_Login, "ID": ID, "Sequence": Sequence, "ID_Unit": ID_Unit, "IsPropertyOwner": IsPropertyOwner, "IsPropertyOwnerOld": IsPropertyOwnerOld, "OldHistoryObjectId": OldHistoryObjectId, "NewHistoryObjectId": NewHistoryObjectId, "ID_PersonCreate": ID_PersonCreate, "DateCreate": DateCreate, "ID_PersonUpdate": ID_PersonUpdate, "DateUpdate": DateUpdate, "ID_PersonSent": ID_PersonSent, "DateSent": DateSent, "ID_PersonClosed": ID_PersonClosed, "DateClosed": DateClosed, "ID_PersonCancel": ID_PersonCancel, "DateCancel": DateCancel, "ID_Function": ID_Function, "ID_FunctionType": ID_FunctionType, "NewAccount": NewAccount, "ID_PersonFunction": ID_PersonFunction, "ID_PersonFunctionOld": ID_PersonFunctionOld, "ID_PersonSolving": ID_PersonSolving, "DateSolving": DateSolving, "ID_Document": ID_Document, "ID_Statement": ID_Statement, "StatementYear": StatementYear, "ID_DocumentStatement": ID_DocumentStatement, "ID_DocumentDecision": ID_DocumentDecision, "ID_DocumentPropertyAgreement": ID_DocumentPropertyAgreement, "DisplayName": DisplayName, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "IC": IC, "Street": Street, "City": City, "Postcode": Postcode, "PropertyAgreementExtension": PropertyAgreementExtension, "UnitOld": UnitOld, "StreetOld": StreetOld, "CityOld": CityOld, "PostcodeOld": PostcodeOld, "ID_RegistryObject": ID_RegistryObject, "RegistryObject": RegistryObject, "ID_RegistryType": ID_RegistryType, "RegistryType": RegistryType, "ID_RegistryState": ID_RegistryState, "RegistryState": RegistryState, "PersonCreate": PersonCreate, "PersonUpdate": PersonUpdate, "PersonSent": PersonSent, "PersonClosed": PersonClosed, "PersonCancel": PersonCancel, "CancelDecision": CancelDecision, "FunctionType": FunctionType, "PersonFunction": PersonFunction, "PersonFunctionOld": PersonFunctionOld, "Account": Account, "Note": Note, "PersonSolving": PersonSolving, "DecisionSeatChangeExtension": DecisionSeatChangeExtension}) # Uzavřít požadavek na změnu v registru OJ def RegistryUpdateClose(self, ID_Login, ID, Sequence, ID_Unit, IsPropertyOwner, IsPropertyOwnerOld, OldHistoryObjectId, NewHistoryObjectId, ID_PersonCreate, DateCreate, ID_PersonUpdate, DateUpdate, ID_PersonSent, DateSent, ID_PersonClosed, DateClosed, ID_PersonCancel, DateCancel, ID_Function, ID_FunctionType, NewAccount, ID_PersonFunction, ID_PersonFunctionOld, ID_PersonSolving, DateSolving, ID_Document, ID_Statement, StatementYear, ID_DocumentStatement, ID_DocumentDecision, ID_DocumentPropertyAgreement, DisplayName=None, Unit=None, RegistrationNumber=None, IC=None, Street=None, City=None, Postcode=None, PropertyAgreementExtension=None, UnitOld=None, StreetOld=None, CityOld=None, PostcodeOld=None, ID_RegistryObject=None, RegistryObject=None, ID_RegistryType=None, RegistryType=None, ID_RegistryState=None, RegistryState=None, PersonCreate=None, PersonUpdate=None, PersonSent=None, PersonClosed=None, PersonCancel=None, CancelDecision=None, FunctionType=None, PersonFunction=None, PersonFunctionOld=None, Account=None, Note=None, PersonSolving=None, DecisionSeatChangeExtension=None): return self._client.service.RegistryUpdateClose({"ID_Login": ID_Login, "ID": ID, "Sequence": Sequence, "ID_Unit": ID_Unit, "IsPropertyOwner": IsPropertyOwner, "IsPropertyOwnerOld": IsPropertyOwnerOld, "OldHistoryObjectId": OldHistoryObjectId, "NewHistoryObjectId": NewHistoryObjectId, "ID_PersonCreate": ID_PersonCreate, "DateCreate": DateCreate, "ID_PersonUpdate": ID_PersonUpdate, "DateUpdate": DateUpdate, "ID_PersonSent": ID_PersonSent, "DateSent": DateSent, "ID_PersonClosed": ID_PersonClosed, "DateClosed": DateClosed, "ID_PersonCancel": ID_PersonCancel, "DateCancel": DateCancel, "ID_Function": ID_Function, "ID_FunctionType": ID_FunctionType, "NewAccount": NewAccount, "ID_PersonFunction": ID_PersonFunction, "ID_PersonFunctionOld": ID_PersonFunctionOld, "ID_PersonSolving": ID_PersonSolving, "DateSolving": DateSolving, "ID_Document": ID_Document, "ID_Statement": ID_Statement, "StatementYear": StatementYear, "ID_DocumentStatement": ID_DocumentStatement, "ID_DocumentDecision": ID_DocumentDecision, "ID_DocumentPropertyAgreement": ID_DocumentPropertyAgreement, "DisplayName": DisplayName, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "IC": IC, "Street": Street, "City": City, "Postcode": Postcode, "PropertyAgreementExtension": PropertyAgreementExtension, "UnitOld": UnitOld, "StreetOld": StreetOld, "CityOld": CityOld, "PostcodeOld": PostcodeOld, "ID_RegistryObject": ID_RegistryObject, "RegistryObject": RegistryObject, "ID_RegistryType": ID_RegistryType, "RegistryType": RegistryType, "ID_RegistryState": ID_RegistryState, "RegistryState": RegistryState, "PersonCreate": PersonCreate, "PersonUpdate": PersonUpdate, "PersonSent": PersonSent, "PersonClosed": PersonClosed, "PersonCancel": PersonCancel, "CancelDecision": CancelDecision, "FunctionType": FunctionType, "PersonFunction": PersonFunction, "PersonFunctionOld": PersonFunctionOld, "Account": Account, "Note": Note, "PersonSolving": PersonSolving, "DecisionSeatChangeExtension": DecisionSeatChangeExtension}) # Odeslat požadavek na změnu v registru OJ na MV ČR def RegistryUpdateSend(self, ID_Login, ID, Sequence, ID_Unit, IsPropertyOwner, IsPropertyOwnerOld, OldHistoryObjectId, NewHistoryObjectId, ID_PersonCreate, DateCreate, ID_PersonUpdate, DateUpdate, ID_PersonSent, DateSent, ID_PersonClosed, DateClosed, ID_PersonCancel, DateCancel, ID_Function, ID_FunctionType, NewAccount, ID_PersonFunction, ID_PersonFunctionOld, ID_PersonSolving, DateSolving, ID_Document, ID_Statement, StatementYear, ID_DocumentStatement, ID_DocumentDecision, ID_DocumentPropertyAgreement, DisplayName=None, Unit=None, RegistrationNumber=None, IC=None, Street=None, City=None, Postcode=None, PropertyAgreementExtension=None, UnitOld=None, StreetOld=None, CityOld=None, PostcodeOld=None, ID_RegistryObject=None, RegistryObject=None, ID_RegistryType=None, RegistryType=None, ID_RegistryState=None, RegistryState=None, PersonCreate=None, PersonUpdate=None, PersonSent=None, PersonClosed=None, PersonCancel=None, CancelDecision=None, FunctionType=None, PersonFunction=None, PersonFunctionOld=None, Account=None, Note=None, PersonSolving=None, DecisionSeatChangeExtension=None): return self._client.service.RegistryUpdateSend({"ID_Login": ID_Login, "ID": ID, "Sequence": Sequence, "ID_Unit": ID_Unit, "IsPropertyOwner": IsPropertyOwner, "IsPropertyOwnerOld": IsPropertyOwnerOld, "OldHistoryObjectId": OldHistoryObjectId, "NewHistoryObjectId": NewHistoryObjectId, "ID_PersonCreate": ID_PersonCreate, "DateCreate": DateCreate, "ID_PersonUpdate": ID_PersonUpdate, "DateUpdate": DateUpdate, "ID_PersonSent": ID_PersonSent, "DateSent": DateSent, "ID_PersonClosed": ID_PersonClosed, "DateClosed": DateClosed, "ID_PersonCancel": ID_PersonCancel, "DateCancel": DateCancel, "ID_Function": ID_Function, "ID_FunctionType": ID_FunctionType, "NewAccount": NewAccount, "ID_PersonFunction": ID_PersonFunction, "ID_PersonFunctionOld": ID_PersonFunctionOld, "ID_PersonSolving": ID_PersonSolving, "DateSolving": DateSolving, "ID_Document": ID_Document, "ID_Statement": ID_Statement, "StatementYear": StatementYear, "ID_DocumentStatement": ID_DocumentStatement, "ID_DocumentDecision": ID_DocumentDecision, "ID_DocumentPropertyAgreement": ID_DocumentPropertyAgreement, "DisplayName": DisplayName, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "IC": IC, "Street": Street, "City": City, "Postcode": Postcode, "PropertyAgreementExtension": PropertyAgreementExtension, "UnitOld": UnitOld, "StreetOld": StreetOld, "CityOld": CityOld, "PostcodeOld": PostcodeOld, "ID_RegistryObject": ID_RegistryObject, "RegistryObject": RegistryObject, "ID_RegistryType": ID_RegistryType, "RegistryType": RegistryType, "ID_RegistryState": ID_RegistryState, "RegistryState": RegistryState, "PersonCreate": PersonCreate, "PersonUpdate": PersonUpdate, "PersonSent": PersonSent, "PersonClosed": PersonClosed, "PersonCancel": PersonCancel, "CancelDecision": CancelDecision, "FunctionType": FunctionType, "PersonFunction": PersonFunction, "PersonFunctionOld": PersonFunctionOld, "Account": Account, "Note": Note, "PersonSolving": PersonSolving, "DecisionSeatChangeExtension": DecisionSeatChangeExtension}) # Odeslat zprávy požadavků na změnu registru OJ def RegistryUpdateSendMessage(self, ID_Login, ID, Sequence, ID_Unit, IsPropertyOwner, IsPropertyOwnerOld, OldHistoryObjectId, NewHistoryObjectId, ID_PersonCreate, DateCreate, ID_PersonUpdate, DateUpdate, ID_PersonSent, DateSent, ID_PersonClosed, DateClosed, ID_PersonCancel, DateCancel, ID_Function, ID_FunctionType, NewAccount, ID_PersonFunction, ID_PersonFunctionOld, ID_PersonSolving, DateSolving, ID_Document, ID_Statement, StatementYear, ID_DocumentStatement, ID_DocumentDecision, ID_DocumentPropertyAgreement, DisplayName=None, Unit=None, RegistrationNumber=None, IC=None, Street=None, City=None, Postcode=None, PropertyAgreementExtension=None, UnitOld=None, StreetOld=None, CityOld=None, PostcodeOld=None, ID_RegistryObject=None, RegistryObject=None, ID_RegistryType=None, RegistryType=None, ID_RegistryState=None, RegistryState=None, PersonCreate=None, PersonUpdate=None, PersonSent=None, PersonClosed=None, PersonCancel=None, CancelDecision=None, FunctionType=None, PersonFunction=None, PersonFunctionOld=None, Account=None, Note=None, PersonSolving=None, DecisionSeatChangeExtension=None): return self._client.service.RegistryUpdateSendMessage({"ID_Login": ID_Login, "ID": ID, "Sequence": Sequence, "ID_Unit": ID_Unit, "IsPropertyOwner": IsPropertyOwner, "IsPropertyOwnerOld": IsPropertyOwnerOld, "OldHistoryObjectId": OldHistoryObjectId, "NewHistoryObjectId": NewHistoryObjectId, "ID_PersonCreate": ID_PersonCreate, "DateCreate": DateCreate, "ID_PersonUpdate": ID_PersonUpdate, "DateUpdate": DateUpdate, "ID_PersonSent": ID_PersonSent, "DateSent": DateSent, "ID_PersonClosed": ID_PersonClosed, "DateClosed": DateClosed, "ID_PersonCancel": ID_PersonCancel, "DateCancel": DateCancel, "ID_Function": ID_Function, "ID_FunctionType": ID_FunctionType, "NewAccount": NewAccount, "ID_PersonFunction": ID_PersonFunction, "ID_PersonFunctionOld": ID_PersonFunctionOld, "ID_PersonSolving": ID_PersonSolving, "DateSolving": DateSolving, "ID_Document": ID_Document, "ID_Statement": ID_Statement, "StatementYear": StatementYear, "ID_DocumentStatement": ID_DocumentStatement, "ID_DocumentDecision": ID_DocumentDecision, "ID_DocumentPropertyAgreement": ID_DocumentPropertyAgreement, "DisplayName": DisplayName, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "IC": IC, "Street": Street, "City": City, "Postcode": Postcode, "PropertyAgreementExtension": PropertyAgreementExtension, "UnitOld": UnitOld, "StreetOld": StreetOld, "CityOld": CityOld, "PostcodeOld": PostcodeOld, "ID_RegistryObject": ID_RegistryObject, "RegistryObject": RegistryObject, "ID_RegistryType": ID_RegistryType, "RegistryType": RegistryType, "ID_RegistryState": ID_RegistryState, "RegistryState": RegistryState, "PersonCreate": PersonCreate, "PersonUpdate": PersonUpdate, "PersonSent": PersonSent, "PersonClosed": PersonClosed, "PersonCancel": PersonCancel, "CancelDecision": CancelDecision, "FunctionType": FunctionType, "PersonFunction": PersonFunction, "PersonFunctionOld": PersonFunctionOld, "Account": Account, "Note": Note, "PersonSolving": PersonSolving, "DecisionSeatChangeExtension": DecisionSeatChangeExtension}) # Zrušit odevzdání hospodářského výkazu jednotky def StatementUpdateOpen(self, ID_Login, ID, ID_Unit, Year, IsError, IsDelivered, DateDelivered, DateCreated, IsThousands, IsConsultant, ID_Document, ID_DocumentTempFile, DateSent, ID_PersonSent, DateConfirmed, ID_PersonConfirmed, ID_Registry, ShowOverview, Unit=None, RegistrationNumber=None, ID_StatementType=None, StatementType=None, ID_StatementState=None, StatementState=None, PersonSent=None, PersonConfirmed=None): return self._client.service.StatementUpdateOpen({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Year": Year, "IsError": IsError, "IsDelivered": IsDelivered, "DateDelivered": DateDelivered, "DateCreated": DateCreated, "IsThousands": IsThousands, "IsConsultant": IsConsultant, "ID_Document": ID_Document, "ID_DocumentTempFile": ID_DocumentTempFile, "DateSent": DateSent, "ID_PersonSent": ID_PersonSent, "DateConfirmed": DateConfirmed, "ID_PersonConfirmed": ID_PersonConfirmed, "ID_Registry": ID_Registry, "ShowOverview": ShowOverview, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "ID_StatementType": ID_StatementType, "StatementType": StatementType, "ID_StatementState": ID_StatementState, "StatementState": StatementState, "PersonSent": PersonSent, "PersonConfirmed": PersonConfirmed}) # Stáhnout soubor se scanem návrhu def PersonHonourDownloadScan(self, ID_Login, ID): return self._client.service.PersonHonourDownloadScan({"ID_Login": ID_Login, "ID": ID}) # Načíst seznam vyznamenání, které osoba může udělit def HonourAllGrant(self, ID_Login, ID, DisplayName=None): return self._client.service.HonourAllGrant({"ID_Login": ID_Login, "ID": ID, "DisplayName": DisplayName}) # Načíst seznam vyznamenání def HonourAll(self, ID_Login, ID, IsActive, DisplayName=None): return self._client.service.HonourAll({"ID_Login": ID_Login, "ID": ID, "IsActive": IsActive, "DisplayName": DisplayName}) # Načíst detail vyznamenání def HonourDetail(self, ID_Login, ID): return self._client.service.HonourDetail({"ID_Login": ID_Login, "ID": ID}) # Načíst obrázek vyznamenání def HonourImage(self, ID_Login, ID): return self._client.service.HonourImage({"ID_Login": ID_Login, "ID": ID}) # Založit vyznamenání def HonourInsert(self, ID_Login, ID, IsActive, MaxCount, DisplayName=None, Description=None, FileName=None, ImageContent=None, StateUrl=None, DescriptionUrl=None): return self._client.service.HonourInsert({"ID_Login": ID_Login, "ID": ID, "IsActive": IsActive, "MaxCount": MaxCount, "DisplayName": DisplayName, "Description": Description, "FileName": FileName, "ImageContent": ImageContent, "StateUrl": StateUrl, "DescriptionUrl": DescriptionUrl}) # Načíst seznam jednotek vyznamenání def HonourUnitAll(self, ID_Login, ID_Honour, ID_Unit): return self._client.service.HonourUnitAll({"ID_Login": ID_Login, "ID_Honour": ID_Honour, "ID_Unit": ID_Unit}) # Smazat jednotku, ve které se vyznamenání uděluje def HonourUnitDelete(self, ID_Login, ID): return self._client.service.HonourUnitDelete({"ID_Login": ID_Login, "ID": ID}) # Založit jednotku, ve které se vyznamenání uděluje def HonourUnitInsert(self, ID_Login, ID_Honour, ID_Unit): return self._client.service.HonourUnitInsert({"ID_Login": ID_Login, "ID_Honour": ID_Honour, "ID_Unit": ID_Unit}) # Upravit vyznamenání def HonourUpdate(self, ID_Login, ID, IsActive, MaxCount, DisplayName=None, Description=None, FileName=None, ImageContent=None, StateUrl=None, DescriptionUrl=None): return self._client.service.HonourUpdate({"ID_Login": ID_Login, "ID": ID, "IsActive": IsActive, "MaxCount": MaxCount, "DisplayName": DisplayName, "Description": Description, "FileName": FileName, "ImageContent": ImageContent, "StateUrl": StateUrl, "DescriptionUrl": DescriptionUrl}) # Hledání dospělých osob def PersonAllJobs(self, ID_Login, ID, FirstName=None, LastName=None, NickName=None): return self._client.service.PersonAllJobs({"ID_Login": ID_Login, "ID": ID, "FirstName": FirstName, "LastName": LastName, "NickName": NickName}) # Načíst seznam jubilantů def PersonAllJubilant(self, ID_Login, Settings=None): return self._client.service.PersonAllJubilant({"ID_Login": ID_Login, "Settings": Settings}) # Načíst seznam vyznamenání osoby def PersonHonourAll(self, IsValid, ID_Login, ID_Person, ID_Honour, YearValidFrom, PersonDisplayName=None, LetterNumber=None, Suggester=None): return self._client.service.PersonHonourAll({"IsValid": IsValid, "ID_Login": ID_Login, "ID_Person": ID_Person, "ID_Honour": ID_Honour, "YearValidFrom": YearValidFrom, "PersonDisplayName": PersonDisplayName, "LetterNumber": LetterNumber, "Suggester": Suggester}) # Načíst seznam vyznamenání osoby def PersonHonourAllLogin(self, IsValid, ID_Login, ID_Person, ID_Honour, YearValidFrom, PersonDisplayName=None, LetterNumber=None, Suggester=None): return self._client.service.PersonHonourAllLogin({"IsValid": IsValid, "ID_Login": ID_Login, "ID_Person": ID_Person, "ID_Honour": ID_Honour, "YearValidFrom": YearValidFrom, "PersonDisplayName": PersonDisplayName, "LetterNumber": LetterNumber, "Suggester": Suggester}) # Načíst seznam vyznamenání osoby def PersonHonourAllPerson(self, ShowHistory, ID_Login, ID_Person, ID_Honour, IsValid): return self._client.service.PersonHonourAllPerson({"ShowHistory": ShowHistory, "ID_Login": ID_Login, "ID_Person": ID_Person, "ID_Honour": ID_Honour, "IsValid": IsValid}) # Smazat vyznamenání osoby def PersonHonourDelete(self, ID_Login, ID): return self._client.service.PersonHonourDelete({"ID_Login": ID_Login, "ID": ID}) # Načíst detail vyznamenání osoby def PersonHonourDetail(self, ID_Login, ID): return self._client.service.PersonHonourDetail({"ID_Login": ID_Login, "ID": ID}) # Založit vyznamenání osoby def PersonHonourInsert(self, ID_Login, ID_Person, ID_Honour, ValidFrom, ValidTo, ID_PersonSuggester, ID_UnitSuggester, InMemorian, Suggester=None, LetterNumber=None, Reason=None, FileName=None, FileContent=None, Person=None): return self._client.service.PersonHonourInsert({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID_Honour": ID_Honour, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_PersonSuggester": ID_PersonSuggester, "ID_UnitSuggester": ID_UnitSuggester, "InMemorian": InMemorian, "Suggester": Suggester, "LetterNumber": LetterNumber, "Reason": Reason, "FileName": FileName, "FileContent": FileContent, "Person": Person}) # Upravit vyznamenání osoby def PersonHonourUpdate(self, ID_Login, ID, ID_Person, ID_Honour, ValidFrom, ValidTo, ID_PersonSuggester, ID_UnitSuggester, InMemorian, Person=None, Honour=None, Suggester=None, SuggesterDisplayName=None, LetterNumber=None, Reason=None, FileName=None, FileContent=None, IdentificationCode=None, IdentificationCodeSuggester=None): return self._client.service.PersonHonourUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "ID_Honour": ID_Honour, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_PersonSuggester": ID_PersonSuggester, "ID_UnitSuggester": ID_UnitSuggester, "InMemorian": InMemorian, "Person": Person, "Honour": Honour, "Suggester": Suggester, "SuggesterDisplayName": SuggesterDisplayName, "LetterNumber": LetterNumber, "Reason": Reason, "FileName": FileName, "FileContent": FileContent, "IdentificationCode": IdentificationCode, "IdentificationCodeSuggester": IdentificationCodeSuggester}) # Editace typu osoby def PersonUpdatePersonType(self, ID_Login, ID, ID_PersonType=None): return self._client.service.PersonUpdatePersonType({"ID_Login": ID_Login, "ID": ID, "ID_PersonType": ID_PersonType}) # Načíst seznam služeb registrace def RegistrationServiceAll(self, ID_Login, ID_UnitRegistration, ID_RegistrationServiceType=None): return self._client.service.RegistrationServiceAll({"ID_Login": ID_Login, "ID_UnitRegistration": ID_UnitRegistration, "ID_RegistrationServiceType": ID_RegistrationServiceType}) # Založit službu registrace def RegistrationServiceInsert(self, ID_Login, ID_UnitRegistration, Ammount, ID_VatRate, ID_RegistrationServiceType=None): return self._client.service.RegistrationServiceInsert({"ID_Login": ID_Login, "ID_UnitRegistration": ID_UnitRegistration, "Ammount": Ammount, "ID_VatRate": ID_VatRate, "ID_RegistrationServiceType": ID_RegistrationServiceType}) # Načíst seznam typů služeb registrace def RegistrationServiceTypeAll(self, ID_Login, DisplayName=None): return self._client.service.RegistrationServiceTypeAll({"ID_Login": ID_Login, "DisplayName": DisplayName}) # Načíst seznam registrací nadřízené jednotky def UnitRegistrationAllParent(self, ID_Login, ID_Unit): return self._client.service.UnitRegistrationAllParent({"ID_Login": ID_Login, "ID_Unit": ID_Unit}) # Nastavit zasílání časopisu pro rodiče členům jednotky def UnitUpdateJournalParent(self, ID_Login, ID, ID_Group, ID_Unit, ContainsMembers, CommissionDeadline, IsVatPayer, ID_TroopArt, CanUpdateRegistrationNumber, IsUnitCancel, JournalParent, ChangeFreeJournal, ID_UnitParent, OnlyValidate, IsPostalAuthenticated, IsAddressAuthenticated, ID_PersonChangeName, DateChangeName, IsPropertyOwner, ID_TempFilePropertyAgreement, ID_DocumentDecision, ID_DocumentPropertyAgreement, ID_TempFileSeatChange, ID_UnitType=None, UnitType=None, DisplayName=None, SortName=None, RegistrationNumber=None, ShortRegistrationNumber=None, Location=None, IC=None, DIC=None, FileReference=None, Street=None, City=None, Postcode=None, State=None, PostalFirstLine=None, PostalStreet=None, PostalCity=None, PostalPostcode=None, PostalState=None, Note=None, TroopArt=None, LogoContent=None, LogoExtension=None, AddressDistrict=None, PostalDistrict=None, NewDisplayName=None, CompleteDisplayName=None, PersonChangeName=None, PropertyAgreementExtension=None, PropertyAgreementContent=None, TroopArtKey=None, ID_JournalNovice=None, ID_JournalDeliveryType=None, FullDisplayName=None, DecisionSeatChangeExtension=None, ShopDiscountBarcode=None, ID_UnitFoundReason=None, UnitFoundReason=None, UnitFoundDescription=None): return self._client.service.UnitUpdateJournalParent({"ID_Login": ID_Login, "ID": ID, "ID_Group": ID_Group, "ID_Unit": ID_Unit, "ContainsMembers": ContainsMembers, "CommissionDeadline": CommissionDeadline, "IsVatPayer": IsVatPayer, "ID_TroopArt": ID_TroopArt, "CanUpdateRegistrationNumber": CanUpdateRegistrationNumber, "IsUnitCancel": IsUnitCancel, "JournalParent": JournalParent, "ChangeFreeJournal": ChangeFreeJournal, "ID_UnitParent": ID_UnitParent, "OnlyValidate": OnlyValidate, "IsPostalAuthenticated": IsPostalAuthenticated, "IsAddressAuthenticated": IsAddressAuthenticated, "ID_PersonChangeName": ID_PersonChangeName, "DateChangeName": DateChangeName, "IsPropertyOwner": IsPropertyOwner, "ID_TempFilePropertyAgreement": ID_TempFilePropertyAgreement, "ID_DocumentDecision": ID_DocumentDecision, "ID_DocumentPropertyAgreement": ID_DocumentPropertyAgreement, "ID_TempFileSeatChange": ID_TempFileSeatChange, "ID_UnitType": ID_UnitType, "UnitType": UnitType, "DisplayName": DisplayName, "SortName": SortName, "RegistrationNumber": RegistrationNumber, "ShortRegistrationNumber": ShortRegistrationNumber, "Location": Location, "IC": IC, "DIC": DIC, "FileReference": FileReference, "Street": Street, "City": City, "Postcode": Postcode, "State": State, "PostalFirstLine": PostalFirstLine, "PostalStreet": PostalStreet, "PostalCity": PostalCity, "PostalPostcode": PostalPostcode, "PostalState": PostalState, "Note": Note, "TroopArt": TroopArt, "LogoContent": LogoContent, "LogoExtension": LogoExtension, "AddressDistrict": AddressDistrict, "PostalDistrict": PostalDistrict, "NewDisplayName": NewDisplayName, "CompleteDisplayName": CompleteDisplayName, "PersonChangeName": PersonChangeName, "PropertyAgreementExtension": PropertyAgreementExtension, "PropertyAgreementContent": PropertyAgreementContent, "TroopArtKey": TroopArtKey, "ID_JournalNovice": ID_JournalNovice, "ID_JournalDeliveryType": ID_JournalDeliveryType, "FullDisplayName": FullDisplayName, "DecisionSeatChangeExtension": DecisionSeatChangeExtension, "ShopDiscountBarcode": ShopDiscountBarcode, "ID_UnitFoundReason": ID_UnitFoundReason, "UnitFoundReason": UnitFoundReason, "UnitFoundDescription": UnitFoundDescription}) # Načíst seznam činovníků bez vyplněného kontaktu def PersonAllUnitRegistrationMistake(self, ID_Login, ID_Unit, ID_ContactType=None): return self._client.service.PersonAllUnitRegistrationMistake({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "ID_ContactType": ID_ContactType}) # Načíst souhrné informace o skautském adresáři def PersonCatalogSummary(self, ID_Login): return self._client.service.PersonCatalogSummary({"ID_Login": ID_Login}) # Načíst seznam osob pro skautský adresář def PersonAllCatalog(self, ID_Login, RegistrationNumberStartWith, ID_OfferType, Name=None, City=None, RegistrationNumber=None, Unit=None, Phone=None, Email=None): return self._client.service.PersonAllCatalog({"ID_Login": ID_Login, "RegistrationNumberStartWith": RegistrationNumberStartWith, "ID_OfferType": ID_OfferType, "Name": Name, "City": City, "RegistrationNumber": RegistrationNumber, "Unit": Unit, "Phone": Phone, "Email": Email}) # Načtení limitů sts čísel pro osobu def PersonDetailTelephonyLimit(self, ID_Login, ID): return self._client.service.PersonDetailTelephonyLimit({"ID_Login": ID_Login, "ID": ID}) # Editace limitů STS čísel osoby def PersonUpdateTelephonyLimit(self, ID_Login, ID, TelephonyLimit, DataLimit): return self._client.service.PersonUpdateTelephonyLimit({"ID_Login": ID_Login, "ID": ID, "TelephonyLimit": TelephonyLimit, "DataLimit": DataLimit}) # Zobrazit detail limitů STS čísel jednotky def UnitDetailTelephonyLimit(self, ID_Login, ID): return self._client.service.UnitDetailTelephonyLimit({"ID_Login": ID_Login, "ID": ID}) # Načíst seznam typů jednotek s limity čísel def UnitTypeAllLimit(self, ID_Login, DisplayName=None): return self._client.service.UnitTypeAllLimit({"ID_Login": ID_Login, "DisplayName": DisplayName}) # Upravit typ jednotky def UnitTypeUpdate(self, ID_Login, Level, ContainsMembers, FreeAttachments, CommissionCount, CommissionDeadline, CallLimit, DataLimit, ID=None, DisplayName=None, Note=None, Birdos=None, ID_Instance=None): return self._client.service.UnitTypeUpdate({"ID_Login": ID_Login, "Level": Level, "ContainsMembers": ContainsMembers, "FreeAttachments": FreeAttachments, "CommissionCount": CommissionCount, "CommissionDeadline": CommissionDeadline, "CallLimit": CallLimit, "DataLimit": DataLimit, "ID": ID, "DisplayName": DisplayName, "Note": Note, "Birdos": Birdos, "ID_Instance": ID_Instance}) # Upravit limit STS čísel jednotky def UnitUpdateTelephonyLimit(self, ID_Login, ID, TelephonyLimit, DataLimit, DefaultCallLimit, DefaultDataLimit): return self._client.service.UnitUpdateTelephonyLimit({"ID_Login": ID_Login, "ID": ID, "TelephonyLimit": TelephonyLimit, "DataLimit": DataLimit, "DefaultCallLimit": DefaultCallLimit, "DefaultDataLimit": DefaultDataLimit}) # Načíst seznam osob def PersonAllIdentificationCode(self, ID_Login, IdentificationCode=None, IdentificationCodeStartsWith=None): return self._client.service.PersonAllIdentificationCode({"ID_Login": ID_Login, "IdentificationCode": IdentificationCode, "IdentificationCodeStartsWith": IdentificationCodeStartsWith}) # Hledání v registru OJ def UnitAllRegistryBasic(self, ID_Login, ID_Application, IsValid, Search=None): return self._client.service.UnitAllRegistryBasic({"ID_Login": ID_Login, "ID_Application": ID_Application, "IsValid": IsValid, "Search": Search}) # Editace základních údajů osoby def PersonUpdateAddress(self, ID_Login, ID, Street=None, City=None, Postcode=None, State=None, PostalFirstLine=None, PostalStreet=None, PostalCity=None, PostalPostcode=None, PostalState=None): return self._client.service.PersonUpdateAddress({"ID_Login": ID_Login, "ID": ID, "Street": Street, "City": City, "Postcode": Postcode, "State": State, "PostalFirstLine": PostalFirstLine, "PostalStreet": PostalStreet, "PostalCity": PostalCity, "PostalPostcode": PostalPostcode, "PostalState": PostalState}) # Editace základních údajů osoby def PersonUpdateBasic(self, ID_Login, ID, Birthday, YearFrom, ID_Sex=None, FirstName=None, LastName=None, NickName=None, MaidenName=None, Street=None, City=None, Postcode=None, State=None): return self._client.service.PersonUpdateBasic({"ID_Login": ID_Login, "ID": ID, "Birthday": Birthday, "YearFrom": YearFrom, "ID_Sex": ID_Sex, "FirstName": FirstName, "LastName": LastName, "NickName": NickName, "MaidenName": MaidenName, "Street": Street, "City": City, "Postcode": Postcode, "State": State}) # Hledání osob pro účastníky tábora def PersonAllEventCamp(self, ID_Login, ID_EventCamp, ID, DisplayName=None, IdentificationCode=None, IdentificationCodeStartsWith=None): return self._client.service.PersonAllEventCamp({"ID_Login": ID_Login, "ID_EventCamp": ID_EventCamp, "ID": ID, "DisplayName": DisplayName, "IdentificationCode": IdentificationCode, "IdentificationCodeStartsWith": IdentificationCodeStartsWith}) # Hledání osob pro hromadné přidání účastníků tábora def PersonAllEventCampMulti(self, ID_Login, ID_EventCamp): return self._client.service.PersonAllEventCampMulti({"ID_Login": ID_Login, "ID_EventCamp": ID_EventCamp}) # Načíst seznam středisek, pro založení tábora def UnitAllCamp(self, ID_Login): return self._client.service.UnitAllCamp({"ID_Login": ID_Login}) # Hledání osob pro účast na sněmu def PersonAllUstredi(self, ID_Login, ID_EventCongress, ID, DisplayName=None): return self._client.service.PersonAllUstredi({"ID_Login": ID_Login, "ID_EventCongress": ID_EventCongress, "ID": ID, "DisplayName": DisplayName}) # Hledání dospělých osob def PersonAllPublic(self, ID_Login, ID, FirstName=None, LastName=None, NickName=None): return self._client.service.PersonAllPublic({"ID_Login": ID_Login, "ID": ID, "FirstName": FirstName, "LastName": LastName, "NickName": NickName}) # Načíst seznam účtů def AccountAll(self, ID_Login, ID_Application, ID_Unit, ID_Bank, ShowHistory, IsValid): return self._client.service.AccountAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_Unit": ID_Unit, "ID_Bank": ID_Bank, "ShowHistory": ShowHistory, "IsValid": IsValid}) # Smazat účet def AccountDelete(self, ID_Login, ID): return self._client.service.AccountDelete({"ID_Login": ID_Login, "ID": ID}) # Načíst detail účtu def AccountDetail(self, ID_Login, ID): return self._client.service.AccountDetail({"ID_Login": ID_Login, "ID": ID}) # Založit účet def AccountInsert(self, ID_Login, ID, ID_Unit, ValidTo, ID_Bank, IsMain, DisplayName=None, Unit=None, Bank=None, AccountPrefix=None, AccountNumber=None, Street=None, City=None, Postcode=None, Note=None): return self._client.service.AccountInsert({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ValidTo": ValidTo, "ID_Bank": ID_Bank, "IsMain": IsMain, "DisplayName": DisplayName, "Unit": Unit, "Bank": Bank, "AccountPrefix": AccountPrefix, "AccountNumber": AccountNumber, "Street": Street, "City": City, "Postcode": Postcode, "Note": Note}) # Upravit účet def AccountUpdate(self, ID_Login, ID, ID_Unit, ValidTo, ID_Bank, IsMain, DisplayName=None, Unit=None, Bank=None, AccountPrefix=None, AccountNumber=None, Street=None, City=None, Postcode=None, Note=None): return self._client.service.AccountUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ValidTo": ValidTo, "ID_Bank": ID_Bank, "IsMain": IsMain, "DisplayName": DisplayName, "Unit": Unit, "Bank": Bank, "AccountPrefix": AccountPrefix, "AccountNumber": AccountNumber, "Street": Street, "City": City, "Postcode": Postcode, "Note": Note}) # Načíst seznam náborových kategorií def AdvertisingCategoryAll(self, ID_Login, ID_Application, ID_Unit, ID_MeetingDate, ID_Sex=None): return self._client.service.AdvertisingCategoryAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_Unit": ID_Unit, "ID_MeetingDate": ID_MeetingDate, "ID_Sex": ID_Sex}) # Smazat náborovou kategorii def AdvertisingCategoryDelete(self, ID_Login, ID): return self._client.service.AdvertisingCategoryDelete({"ID_Login": ID_Login, "ID": ID}) # Načíst detail náborové kategorie def AdvertisingCategoryDetail(self, ID_Login, ID): return self._client.service.AdvertisingCategoryDetail({"ID_Login": ID_Login, "ID": ID}) # Založit náborovou kategorii def AdvertisingCategoryInsert(self, ID_Login, ID, ID_Unit, AgeFrom, AgeTo, ID_MeetingDate, Unit=None, ID_Sex=None, Sex=None, MeetingDate=None, Note=None): return self._client.service.AdvertisingCategoryInsert({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "AgeFrom": AgeFrom, "AgeTo": AgeTo, "ID_MeetingDate": ID_MeetingDate, "Unit": Unit, "ID_Sex": ID_Sex, "Sex": Sex, "MeetingDate": MeetingDate, "Note": Note}) # Upravit náborovou kategorii def AdvertisingCategoryUpdate(self, ID_Login, ID, ID_Unit, AgeFrom, AgeTo, ID_MeetingDate, Unit=None, ID_Sex=None, Sex=None, MeetingDate=None, Note=None): return self._client.service.AdvertisingCategoryUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "AgeFrom": AgeFrom, "AgeTo": AgeTo, "ID_MeetingDate": ID_MeetingDate, "Unit": Unit, "ID_Sex": ID_Sex, "Sex": Sex, "MeetingDate": MeetingDate, "Note": Note}) # Načíst náborové informace def AdvertisingDetail(self, ID_Login, ID_Application, ID_Unit): return self._client.service.AdvertisingDetail({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_Unit": ID_Unit}) # Velká přehledová tabulka náborových údajů def AdvertisingSummary(self, ID_Login, ID_Application, ID_Unit, IncludeChildUnits, ID_Realty, Distance, GpsLatitude, GpsLongitude): return self._client.service.AdvertisingSummary({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_Unit": ID_Unit, "IncludeChildUnits": IncludeChildUnits, "ID_Realty": ID_Realty, "Distance": Distance, "GpsLatitude": GpsLatitude, "GpsLongitude": GpsLongitude}) # Upravit náborové informace def AdvertisingUpdate(self, ID_Login, ID, ID_Unit, IsWater, Unit=None, RegistrationNumber=None, ID_UnitType=None, UnitType=None, Note=None): return self._client.service.AdvertisingUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "IsWater": IsWater, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "ID_UnitType": ID_UnitType, "UnitType": UnitType, "Note": Note}) # Načíst seznam zaměření def AlignmentAll(self, ID_Login, ID_Application, ID_Unit, ID_AlignmentType, ShowHistory, IsValid): return self._client.service.AlignmentAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_Unit": ID_Unit, "ID_AlignmentType": ID_AlignmentType, "ShowHistory": ShowHistory, "IsValid": IsValid}) # Načíst detail zaměření def AlignmentDetail(self, ID_Login, ID): return self._client.service.AlignmentDetail({"ID_Login": ID_Login, "ID": ID}) # Založit zaměření def AlignmentInsert(self, ID_Login, ID, ID_Unit, ValidFrom, ValidTo, ID_AlignmentType, Unit=None, AlignmentType=None, ColorMargin=None, ColorCenter=None): return self._client.service.AlignmentInsert({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_AlignmentType": ID_AlignmentType, "Unit": Unit, "AlignmentType": AlignmentType, "ColorMargin": ColorMargin, "ColorCenter": ColorCenter}) # Načíst seznam zaměření def AlignmentTypeAll(self, ID_Login, DisplayName=None): return self._client.service.AlignmentTypeAll({"ID_Login": ID_Login, "DisplayName": DisplayName}) # Upravit zaměření def AlignmentUpdate(self, ID_Login, ID, ID_Unit, ValidFrom, ValidTo, ID_AlignmentType, Unit=None, AlignmentType=None, ColorMargin=None, ColorCenter=None): return self._client.service.AlignmentUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_AlignmentType": ID_AlignmentType, "Unit": Unit, "AlignmentType": AlignmentType, "ColorMargin": ColorMargin, "ColorCenter": ColorCenter}) # Načíst seznam zdravotních pojišťoven def AssuranceAll(self, ID_Login, ID_Application, DisplayName=None): return self._client.service.AssuranceAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "DisplayName": DisplayName}) # Načíst seznam bank def BankAll(self, ID_Login, DisplayName=None, Code=None): return self._client.service.BankAll({"ID_Login": ID_Login, "DisplayName": DisplayName, "Code": Code}) # Načíst detail banky def BankDetail(self, ID_Login, ID): return self._client.service.BankDetail({"ID_Login": ID_Login, "ID": ID}) # Načíst seznam typů kontaktů def ContactTypeAll(self, ID_Login, IsForPerson, IsForUnit, DisplayName=None, ID=None): return self._client.service.ContactTypeAll({"ID_Login": ID_Login, "IsForPerson": IsForPerson, "IsForUnit": IsForUnit, "DisplayName": DisplayName, "ID": ID}) # Načíst seznam vzdělávacích akcí def EducatationSeminaryAll(self, ID_Login, ID_Person, DisplayName=None): return self._client.service.EducatationSeminaryAll({"ID_Login": ID_Login, "ID_Person": ID_Person, "DisplayName": DisplayName}) # Smazat vzdělávací akci def EducatationSeminaryDelete(self, ID_Login, ID): return self._client.service.EducatationSeminaryDelete({"ID_Login": ID_Login, "ID": ID}) # Založit vzdělávací akci def EducatationSeminaryInsert(self, ID_Login, ID_Person, ID, YearFrom, DisplayName=None, Note=None): return self._client.service.EducatationSeminaryInsert({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID": ID, "YearFrom": YearFrom, "DisplayName": DisplayName, "Note": Note}) # Upravit vzdělávací akci def EducatationSeminaryUpdate(self, ID_Login, ID_Person, ID, YearFrom, DisplayName=None, Note=None): return self._client.service.EducatationSeminaryUpdate({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID": ID, "YearFrom": YearFrom, "DisplayName": DisplayName, "Note": Note}) # Načíst seznam osob členem kandidátní komise def PersonAllEventCongressFunction(self, ID_Login, ID, ID_EventCongressFunction, DisplayName=None): return self._client.service.PersonAllEventCongressFunction({"ID_Login": ID_Login, "ID": ID, "ID_EventCongressFunction": ID_EventCongressFunction, "DisplayName": DisplayName}) # Načíst detail dalších údajů osoby def PersonOtherDetail(self, ID_Login, ID): return self._client.service.PersonOtherDetail({"ID_Login": ID_Login, "ID": ID}) # Upravit další údaje osoby def PersonOtherUpdate(self, ID_Login, ID, ID_Person, ID_DistrictBirth, ID_Assurance, AllowDataStorage, AllowAudiovisual, AllowSocialNetwork, AllowMarketing, DateChangeSocialNetwork, DateChangeMarketing, DateChangeDataStorage, DateChangeAudiovisual, IsRPS, IsEPS, IsEduParticipantExt, OnlyValidate, ID_EventCongress, ID_TempFileHealth, ID_DocumentHealth, IdCardValidTo, IsAdult, BirthCity=None, ID_Citizenship=None, Citizenship=None, CitizenshipCustom=None, Person=None, MaidenName=None, DistrictBirth=None, Assurance=None, InsuranceNumber=None, Allergy=None, Drugs=None, HealthLimitation=None, BodySkills=None, School=None, Note=None, ParentNote=None, IdCardNumber=None): return self._client.service.PersonOtherUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "ID_DistrictBirth": ID_DistrictBirth, "ID_Assurance": ID_Assurance, "AllowDataStorage": AllowDataStorage, "AllowAudiovisual": AllowAudiovisual, "AllowSocialNetwork": AllowSocialNetwork, "AllowMarketing": AllowMarketing, "DateChangeSocialNetwork": DateChangeSocialNetwork, "DateChangeMarketing": DateChangeMarketing, "DateChangeDataStorage": DateChangeDataStorage, "DateChangeAudiovisual": DateChangeAudiovisual, "IsRPS": IsRPS, "IsEPS": IsEPS, "IsEduParticipantExt": IsEduParticipantExt, "OnlyValidate": OnlyValidate, "ID_EventCongress": ID_EventCongress, "ID_TempFileHealth": ID_TempFileHealth, "ID_DocumentHealth": ID_DocumentHealth, "IdCardValidTo": IdCardValidTo, "IsAdult": IsAdult, "BirthCity": BirthCity, "ID_Citizenship": ID_Citizenship, "Citizenship": Citizenship, "CitizenshipCustom": CitizenshipCustom, "Person": Person, "MaidenName": MaidenName, "DistrictBirth": DistrictBirth, "Assurance": Assurance, "InsuranceNumber": InsuranceNumber, "Allergy": Allergy, "Drugs": Drugs, "HealthLimitation": HealthLimitation, "BodySkills": BodySkills, "School": School, "Note": Note, "ParentNote": ParentNote, "IdCardNumber": IdCardNumber}) # Načíst detail potvrzení o studiu pro osobu def PersonSchoolDetailPerson(self, ID_Login, ID_Person): return self._client.service.PersonSchoolDetailPerson({"ID_Login": ID_Login, "ID_Person": ID_Person}) # Upravit údaje k potvrzení o studiu def PersonSchoolUpdateSchool(self, ID_Login, ID, ID_Person, DateCreate, ID_TempFile, ID_PersonSchoolTempFile, ID_DocumentPhoto, ID_DocumentScan, Person=None, DisplayName=None, City=None, Extension=None, Scan=None, PhotoExtension=None, Photo=None): return self._client.service.PersonSchoolUpdateSchool({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "DateCreate": DateCreate, "ID_TempFile": ID_TempFile, "ID_PersonSchoolTempFile": ID_PersonSchoolTempFile, "ID_DocumentPhoto": ID_DocumentPhoto, "ID_DocumentScan": ID_DocumentScan, "Person": Person, "DisplayName": DisplayName, "City": City, "Extension": Extension, "Scan": Scan, "PhotoExtension": PhotoExtension, "Photo": Photo}) # Editace osoby def PersonDeletePhoto(self, ID_Login, ID): return self._client.service.PersonDeletePhoto({"ID_Login": ID_Login, "ID": ID}) # Změna údajů osoby def PersonUpdatePersonChange(self, ID_Login, ID_Application, Code, Birthday, BirthdayYear, IsForeign, YearFrom, ID_User, OnlyValidate, IsPostalAuthenticated, IsAddressAuthenticated, RejectDataStorage, IdentificationCodeForce, GenerateSecurityCode, ID_TempFile, ID_PersonPhotoBig, ID_PersonPhotoMedium, ID_PersonPhotoNormal, ID_PersonPhotoSmall, IdentificationCode=None, FirstName=None, LastName=None, NickName=None, Address=None, Street=None, City=None, Postcode=None, State=None, PostalFirstLine=None, PostalAddress=None, PostalStreet=None, PostalCity=None, PostalPostcode=None, PostalState=None, Note=None, ID_Sex=None, RegistrationNumber=None, PhotoExtension=None, PhotoContent=None, MaidenName=None, AddressDistrict=None, PostalDistrict=None, UnitEnrollExtension=None, UnitEnroll=None): return self._client.service.PersonUpdatePersonChange({"ID_Login": ID_Login, "ID_Application": ID_Application, "Code": Code, "Birthday": Birthday, "BirthdayYear": BirthdayYear, "IsForeign": IsForeign, "YearFrom": YearFrom, "ID_User": ID_User, "OnlyValidate": OnlyValidate, "IsPostalAuthenticated": IsPostalAuthenticated, "IsAddressAuthenticated": IsAddressAuthenticated, "RejectDataStorage": RejectDataStorage, "IdentificationCodeForce": IdentificationCodeForce, "GenerateSecurityCode": GenerateSecurityCode, "ID_TempFile": ID_TempFile, "ID_PersonPhotoBig": ID_PersonPhotoBig, "ID_PersonPhotoMedium": ID_PersonPhotoMedium, "ID_PersonPhotoNormal": ID_PersonPhotoNormal, "ID_PersonPhotoSmall": ID_PersonPhotoSmall, "IdentificationCode": IdentificationCode, "FirstName": FirstName, "LastName": LastName, "NickName": NickName, "Address": Address, "Street": Street, "City": City, "Postcode": Postcode, "State": State, "PostalFirstLine": PostalFirstLine, "PostalAddress": PostalAddress, "PostalStreet": PostalStreet, "PostalCity": PostalCity, "PostalPostcode": PostalPostcode, "PostalState": PostalState, "Note": Note, "ID_Sex": ID_Sex, "RegistrationNumber": RegistrationNumber, "PhotoExtension": PhotoExtension, "PhotoContent": PhotoContent, "MaidenName": MaidenName, "AddressDistrict": AddressDistrict, "PostalDistrict": PostalDistrict, "UnitEnrollExtension": UnitEnrollExtension, "UnitEnroll": UnitEnroll}) # Načíst seznam nových kvalifikací v daném období def QualificationAllNew(self, ID_Login, From, To, ID_QualificationTypeList=None): return self._client.service.QualificationAllNew({"ID_Login": ID_Login, "From": From, "To": To, "ID_QualificationTypeList": ID_QualificationTypeList}) # Načíst názvy typů kvalifikace ze zadaného seznamu def QualificationTypeAllList(self, ID_Login, ID_QualificationTypeList=None): return self._client.service.QualificationTypeAllList({"ID_Login": ID_Login, "ID_QualificationTypeList": ID_QualificationTypeList}) # Načíst seznam nemovitostí pro soubor nemovitostí def RealtyAllRealtyTypeCountPublic(self, ID_Login, ID_Application): return self._client.service.RealtyAllRealtyTypeCountPublic({"ID_Login": ID_Login, "ID_Application": ID_Application}) # Přepočet blízkých bodů def RealtyCollectionGroupByPosition(self, ID_Login): return self._client.service.RealtyCollectionGroupByPosition({"ID_Login": ID_Login}) # Načíst seznam půjčitelných nemovitostí/souboru nemovitostí def RealtyCollectionAllBorrowable(self, ID_Application, ID_Login, GpsLatitude, GpsLongitude, Distance, Price, Date, Capacity, BorrowableForeign, DisplayName=None, RegionList=None, DistrictList=None, City=None, Unit=None, OwnerTypeList=None, RealtyTypeList=None, OccupationEquipmentList=None, RealtyCollectionLocationList=None, PriceType=None, OccupationLanguageList=None, OccupationTagList=None): return self._client.service.RealtyCollectionAllBorrowable({"ID_Application": ID_Application, "ID_Login": ID_Login, "GpsLatitude": GpsLatitude, "GpsLongitude": GpsLongitude, "Distance": Distance, "Price": Price, "Date": Date, "Capacity": Capacity, "BorrowableForeign": BorrowableForeign, "DisplayName": DisplayName, "RegionList": RegionList, "DistrictList": DistrictList, "City": City, "Unit": Unit, "OwnerTypeList": OwnerTypeList, "RealtyTypeList": RealtyTypeList, "OccupationEquipmentList": OccupationEquipmentList, "RealtyCollectionLocationList": RealtyCollectionLocationList, "PriceType": PriceType, "OccupationLanguageList": OccupationLanguageList, "OccupationTagList": OccupationTagList}) # Načíst seznam souborů nemovitostí def RealtyCollectionAll(self, ID_Login, ID_Unit, ID, ID_User, DisplayName=None): return self._client.service.RealtyCollectionAll({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "ID": ID, "ID_User": ID_User, "DisplayName": DisplayName}) # Načíst detail půjčitelné nemovitosti/souboru nemovitostí def RealtyCollectionDetailBorrowable(self, ID_Application, ID, ID_Login): return self._client.service.RealtyCollectionDetailBorrowable({"ID_Application": ID_Application, "ID": ID, "ID_Login": ID_Login}) # Načíst detail souboru nemovitostí def RealtyCollectionDetailPhoto(self, ID_TempFilePhoto, ID_Login, ID, ID_Unit, ID_User, IsActive, GpsLatitude, GpsLongitude, HasAddress, ID_Region, ID_Document, PhotoExtension=None, PhotoFileContent=None, FotogalleryUrl=None, Unit=None, UnitRegistrationNumber=None, Owner=None, DisplayName=None, Description=None, Web=None, Street=None, City=None, Postcode=None, District=None, TransportationMethods=None, TransportationMethodsText=None, TransportDescription=None, Locations=None, LocationsText=None, PointsOfInterest=None, Note=None, Region=None, Storage=None): return self._client.service.RealtyCollectionDetailPhoto({"ID_TempFilePhoto": ID_TempFilePhoto, "ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_User": ID_User, "IsActive": IsActive, "GpsLatitude": GpsLatitude, "GpsLongitude": GpsLongitude, "HasAddress": HasAddress, "ID_Region": ID_Region, "ID_Document": ID_Document, "PhotoExtension": PhotoExtension, "PhotoFileContent": PhotoFileContent, "FotogalleryUrl": FotogalleryUrl, "Unit": Unit, "UnitRegistrationNumber": UnitRegistrationNumber, "Owner": Owner, "DisplayName": DisplayName, "Description": Description, "Web": Web, "Street": Street, "City": City, "Postcode": Postcode, "District": District, "TransportationMethods": TransportationMethods, "TransportationMethodsText": TransportationMethodsText, "TransportDescription": TransportDescription, "Locations": Locations, "LocationsText": LocationsText, "PointsOfInterest": PointsOfInterest, "Note": Note, "Region": Region, "Storage": Storage}) # Založit soubor nemovitostí def RealtyCollectionInsert(self, ID_TempFilePhoto, RealtyIsPower, ID_RealtyTempFilePhoto, ID_Login, ID_Unit, ID_User, HasAddress, GpsLatitude, GpsLongitude, LVNumber, Acreage, FotogalleryUrl=None, RealtyDisplayName=None, RealtyDescription=None, RealtyFotogalleryUrl=None, ID_RealtyOwnerType=None, RealtyOwnerTypeNote=None, RealtyNote=None, ID_RealtyRegisterType=None, DisplayName=None, Description=None, Web=None, Street=None, City=None, Postcode=None, District=None, TransportationMethods=None, TransportDescription=None, PointsOfInterest=None, Locations=None, Note=None, ParcelNumber=None, RegisterCity=None, CadastralArea=None, ParcelType=None, LandType=None): return self._client.service.RealtyCollectionInsert({"ID_TempFilePhoto": ID_TempFilePhoto, "RealtyIsPower": RealtyIsPower, "ID_RealtyTempFilePhoto": ID_RealtyTempFilePhoto, "ID_Login": ID_Login, "ID_Unit": ID_Unit, "ID_User": ID_User, "HasAddress": HasAddress, "GpsLatitude": GpsLatitude, "GpsLongitude": GpsLongitude, "LVNumber": LVNumber, "Acreage": Acreage, "FotogalleryUrl": FotogalleryUrl, "RealtyDisplayName": RealtyDisplayName, "RealtyDescription": RealtyDescription, "RealtyFotogalleryUrl": RealtyFotogalleryUrl, "ID_RealtyOwnerType": ID_RealtyOwnerType, "RealtyOwnerTypeNote": RealtyOwnerTypeNote, "RealtyNote": RealtyNote, "ID_RealtyRegisterType": ID_RealtyRegisterType, "DisplayName": DisplayName, "Description": Description, "Web": Web, "Street": Street, "City": City, "Postcode": Postcode, "District": District, "TransportationMethods": TransportationMethods, "TransportDescription": TransportDescription, "PointsOfInterest": PointsOfInterest, "Locations": Locations, "Note": Note, "ParcelNumber": ParcelNumber, "RegisterCity": RegisterCity, "CadastralArea": CadastralArea, "ParcelType": ParcelType, "LandType": LandType}) # Načíst detail nemovitosti def RealtyDetailPhoto(self, ID_Login, ID, ID_RealtyType, GpsLatitude, GpsLongitude, ID_RealtyCollection, IsPower, ValidTo, IsActive, ID_TempFilePhoto, IsAddressAuthenticated, ID_Document, LVNumber, Acreage, RealtyGpsLatitude, RealtyGpsLongitude, CoordinateX, CoordinateY, DisplayName=None, RealtyType=None, Street=None, City=None, Postcode=None, Description=None, Note=None, RealtyCollection=None, ID_OwnerType=None, OwnerType=None, OwnerTypeNote=None, PhotoExtension=None, PhotoFileContent=None, FotogalleryUrl=None, District=None, Storage=None, ParcelNumber=None, RegisterCity=None, CadastralArea=None, ParcelType=None, LandType=None, Unit=None, UnitRegistrationNumber=None): return self._client.service.RealtyDetailPhoto({"ID_Login": ID_Login, "ID": ID, "ID_RealtyType": ID_RealtyType, "GpsLatitude": GpsLatitude, "GpsLongitude": GpsLongitude, "ID_RealtyCollection": ID_RealtyCollection, "IsPower": IsPower, "ValidTo": ValidTo, "IsActive": IsActive, "ID_TempFilePhoto": ID_TempFilePhoto, "IsAddressAuthenticated": IsAddressAuthenticated, "ID_Document": ID_Document, "LVNumber": LVNumber, "Acreage": Acreage, "RealtyGpsLatitude": RealtyGpsLatitude, "RealtyGpsLongitude": RealtyGpsLongitude, "CoordinateX": CoordinateX, "CoordinateY": CoordinateY, "DisplayName": DisplayName, "RealtyType": RealtyType, "Street": Street, "City": City, "Postcode": Postcode, "Description": Description, "Note": Note, "RealtyCollection": RealtyCollection, "ID_OwnerType": ID_OwnerType, "OwnerType": OwnerType, "OwnerTypeNote": OwnerTypeNote, "PhotoExtension": PhotoExtension, "PhotoFileContent": PhotoFileContent, "FotogalleryUrl": FotogalleryUrl, "District": District, "Storage": Storage, "ParcelNumber": ParcelNumber, "RegisterCity": RegisterCity, "CadastralArea": CadastralArea, "ParcelType": ParcelType, "LandType": LandType, "Unit": Unit, "UnitRegistrationNumber": UnitRegistrationNumber}) # Smazat dokument def RealtyDocumentDelete(self, ID_Login, ID): return self._client.service.RealtyDocumentDelete({"ID_Login": ID_Login, "ID": ID}) # No documentation def RealtyDocumentDetail(self, ID_Login, ID): return self._client.service.RealtyDocumentDetail({"ID_Login": ID_Login, "ID": ID}) # Stáhnout dokument def RealtyDocumentDownload(self, ID_Login, ID): return self._client.service.RealtyDocumentDownload({"ID_Login": ID_Login, "ID": ID}) # Načíst seznam členských karet def MemberCardAllMemberCardInvoice(self, ID_Login, ID_MemberCardInvoice): return self._client.service.MemberCardAllMemberCardInvoice({"ID_Login": ID_Login, "ID_MemberCardInvoice": ID_MemberCardInvoice}) # Načíst seznam členských karet pro jednotku def MemberCardAllUnit(self, ID_Login, ID_Unit, ID, IncludeChild, DisplayName=None, ID_MemberCardType=None, OnlyValid=None, PersonWithoutMeberCard=None, ValidTo=None, OnlyInvalid=None): return self._client.service.MemberCardAllUnit({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "ID": ID, "IncludeChild": IncludeChild, "DisplayName": DisplayName, "ID_MemberCardType": ID_MemberCardType, "OnlyValid": OnlyValid, "PersonWithoutMeberCard": PersonWithoutMeberCard, "ValidTo": ValidTo, "OnlyInvalid": OnlyInvalid}) # Načíst všechny faktury za členské karty def MemberCardInvoiceAll(self, ID_Login, ID_Unit, ID, ID_MemberCardInvoiceGenerate, DateGeneratingFrom, DateGeneratingTo, DisplayName=None, ID_MemberCardInvoiceState=None): return self._client.service.MemberCardInvoiceAll({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "ID": ID, "ID_MemberCardInvoiceGenerate": ID_MemberCardInvoiceGenerate, "DateGeneratingFrom": DateGeneratingFrom, "DateGeneratingTo": DateGeneratingTo, "DisplayName": DisplayName, "ID_MemberCardInvoiceState": ID_MemberCardInvoiceState}) # Načíst detail faktury za členské karty def MemberCardInvoiceDetail(self, ID_Login, ID): return self._client.service.MemberCardInvoiceDetail({"ID_Login": ID_Login, "ID": ID}) # Načíst seznam generování faktur za členské karty def MemberCardInvoiceGenerateAll(self, ID_Login, ID, ID_Person, ID_Error, ID_MemberCardInvoiceGenerateState=None): return self._client.service.MemberCardInvoiceGenerateAll({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "ID_Error": ID_Error, "ID_MemberCardInvoiceGenerateState": ID_MemberCardInvoiceGenerateState}) # Založit generování faktur za členské karty def MemberCardInvoiceGenerateInsert(self, ID_Login, ID, DateGenerating, ID_Person, ID_Error, Person=None, ID_MemberCardInvoiceGenerateState=None, MemberCardInvoiceGenerateState=None, Error=None): return self._client.service.MemberCardInvoiceGenerateInsert({"ID_Login": ID_Login, "ID": ID, "DateGenerating": DateGenerating, "ID_Person": ID_Person, "ID_Error": ID_Error, "Person": Person, "ID_MemberCardInvoiceGenerateState": ID_MemberCardInvoiceGenerateState, "MemberCardInvoiceGenerateState": MemberCardInvoiceGenerateState, "Error": Error}) # Upravit generování faktur za členské karty def MemberCardInvoiceGenerateUpdate(self, ID_Login, ID, DateGenerating, ID_Person, ID_Error, Person=None, ID_MemberCardInvoiceGenerateState=None, MemberCardInvoiceGenerateState=None, Error=None): return self._client.service.MemberCardInvoiceGenerateUpdate({"ID_Login": ID_Login, "ID": ID, "DateGenerating": DateGenerating, "ID_Person": ID_Person, "ID_Error": ID_Error, "Person": Person, "ID_MemberCardInvoiceGenerateState": ID_MemberCardInvoiceGenerateState, "MemberCardInvoiceGenerateState": MemberCardInvoiceGenerateState, "Error": Error}) # Vygenerovat faktury def MemberCardInvoiceGenerateUpdateGenerate(self, ID_Login, ID, DateGenerating, ID_Person, ID_Error, Person=None, ID_MemberCardInvoiceGenerateState=None, MemberCardInvoiceGenerateState=None, Error=None): return self._client.service.MemberCardInvoiceGenerateUpdateGenerate({"ID_Login": ID_Login, "ID": ID, "DateGenerating": DateGenerating, "ID_Person": ID_Person, "ID_Error": ID_Error, "Person": Person, "ID_MemberCardInvoiceGenerateState": ID_MemberCardInvoiceGenerateState, "MemberCardInvoiceGenerateState": MemberCardInvoiceGenerateState, "Error": Error}) # Načíst seznam stavů faktury za členské karty def MemberCardInvoiceStateAll(self, ID_Login, ID=None, DisplayName=None): return self._client.service.MemberCardInvoiceStateAll({"ID_Login": ID_Login, "ID": ID, "DisplayName": DisplayName}) # Aktivuje karty podkladů pro tisk karet def MemberCardPrintActivate(self, ID_Login, ID, ValidFrom): return self._client.service.MemberCardPrintActivate({"ID_Login": ID_Login, "ID": ID, "ValidFrom": ValidFrom}) # Přidá karty do podkladu pro tisk karet def MemberCardPrintAddCards(self, ID_Login, ID): return self._client.service.MemberCardPrintAddCards({"ID_Login": ID_Login, "ID": ID}) # Načíst detail podkladu pro tisk karty def MemberCardPrintDetail(self, ID_Login, ID): return self._client.service.MemberCardPrintDetail({"ID_Login": ID_Login, "ID": ID}) # Generování souboru s podklady pro tisk karet def MemberCardPrintUpdateGenerating(self, ID_Login, ID): return self._client.service.MemberCardPrintUpdateGenerating({"ID_Login": ID_Login, "ID": ID}) # Ukončit platnost prošlých karet def MemberCardUpdateExpired(self, ID_Login): return self._client.service.MemberCardUpdateExpired({"ID_Login": ID_Login}) # Načíst seznam členství osob v jednotce pro zařazení do google skupiny def MembershipAllGoogleGroup(self, ID_Login, ID_GoogleGroup, OnlyDirectMember, Person=None): return self._client.service.MembershipAllGoogleGroup({"ID_Login": ID_Login, "ID_GoogleGroup": ID_GoogleGroup, "OnlyDirectMember": OnlyDirectMember, "Person": Person}) # Načíst seznam užívání nemovitosti def OccupationAllRealtyCollection(self, ID_Login, ID_RealtyCollection, IsActive, IsBorrowable, ID_Application): return self._client.service.OccupationAllRealtyCollection({"ID_Login": ID_Login, "ID_RealtyCollection": ID_RealtyCollection, "IsActive": IsActive, "IsBorrowable": IsBorrowable, "ID_Application": ID_Application}) # Načíst seznam majetkových vztahů def OwnerTypeAll(self, ID_Login, ID_Application, ID=None, DisplayName=None): return self._client.service.OwnerTypeAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID, "DisplayName": DisplayName}) # Načíst osoby podle mailů členů google skupiny def PersonAllGoogleGroup(self, ID_Login, ID_GoogleGroup): return self._client.service.PersonAllGoogleGroup({"ID_Login": ID_Login, "ID_GoogleGroup": ID_GoogleGroup}) # Vrátí def PersonAllJournalRover(self, ID_Login, Unit_ID): return self._client.service.PersonAllJournalRover({"ID_Login": ID_Login, "Unit_ID": Unit_ID}) # Načíst počet vydaných karet za jednotlivé roky def MemberCardAllSummary(self, ID_Login): return self._client.service.MemberCardAllSummary({"ID_Login": ID_Login}) # Zneplatnit email osoby nebo jednotky def ContactUpdateInvalid(self, ID_Login, Mail=None): return self._client.service.ContactUpdateInvalid({"ID_Login": ID_Login, "Mail": Mail}) # Načíst seznam podkladů pro tisk karet def MemberCardPrintAll(self, ID_Login, ID, ID_MemberCardPrintState=None): return self._client.service.MemberCardPrintAll({"ID_Login": ID_Login, "ID": ID, "ID_MemberCardPrintState": ID_MemberCardPrintState}) # Stáhnout soubor s podklady pro tisk karet def MemberCardPrintDetailDownload(self, ID_Login, ID): return self._client.service.MemberCardPrintDetailDownload({"ID_Login": ID_Login, "ID": ID}) # Založit podklad pro tisk karet def MemberCardPrintInsert(self, ID_Login, ID, DateCreate, DateGenerated, Count, ID_MemberCardPrintState=None, MemberCardPrintState=None, Error=None): return self._client.service.MemberCardPrintInsert({"ID_Login": ID_Login, "ID": ID, "DateCreate": DateCreate, "DateGenerated": DateGenerated, "Count": Count, "ID_MemberCardPrintState": ID_MemberCardPrintState, "MemberCardPrintState": MemberCardPrintState, "Error": Error}) # Pozadavek na opetovne vygenerovani souboru s podklady pro tisk def MemberCardPrintUpdateGenerate(self, ID_Login, ID, ValidFrom, ValidTo): return self._client.service.MemberCardPrintUpdateGenerate({"ID_Login": ID_Login, "ID": ID, "ValidFrom": ValidFrom, "ValidTo": ValidTo}) # Definitivni smazani docasne oznacenych osob def PersonDeleteInactive(self, ID_Login): return self._client.service.PersonDeleteInactive({"ID_Login": ID_Login}) # Načtení informací o osobě def PersonDetailHomepage(self, ID_Login, ID): return self._client.service.PersonDetailHomepage({"ID_Login": ID_Login, "ID": ID}) # Načíst detail přihlášku osoby def PersonOtherDetailUnitEnroll(self, ID_Login, ID, LoadUnitEnroll): return self._client.service.PersonOtherDetailUnitEnroll({"ID_Login": ID_Login, "ID": ID, "LoadUnitEnroll": LoadUnitEnroll}) # Smazat citlivé údaje def PersonOtherUpdateClear(self, ID_Login): return self._client.service.PersonOtherUpdateClear({"ID_Login": ID_Login}) # Upravit odvolání souhlasů z přihlášky osoby def PersonOtherUpdateReject(self, ID_Login, ID, ID_Person, ID_DistrictBirth, ID_Assurance, AllowDataStorage, AllowAudiovisual, AllowSocialNetwork, AllowMarketing, DateChangeSocialNetwork, DateChangeMarketing, DateChangeDataStorage, DateChangeAudiovisual, IsRPS, IsEPS, IsEduParticipantExt, OnlyValidate, ID_EventCongress, ID_TempFileHealth, ID_DocumentHealth, IdCardValidTo, IsAdult, BirthCity=None, ID_Citizenship=None, Citizenship=None, CitizenshipCustom=None, Person=None, MaidenName=None, DistrictBirth=None, Assurance=None, InsuranceNumber=None, Allergy=None, Drugs=None, HealthLimitation=None, BodySkills=None, School=None, Note=None, ParentNote=None, IdCardNumber=None): return self._client.service.PersonOtherUpdateReject({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "ID_DistrictBirth": ID_DistrictBirth, "ID_Assurance": ID_Assurance, "AllowDataStorage": AllowDataStorage, "AllowAudiovisual": AllowAudiovisual, "AllowSocialNetwork": AllowSocialNetwork, "AllowMarketing": AllowMarketing, "DateChangeSocialNetwork": DateChangeSocialNetwork, "DateChangeMarketing": DateChangeMarketing, "DateChangeDataStorage": DateChangeDataStorage, "DateChangeAudiovisual": DateChangeAudiovisual, "IsRPS": IsRPS, "IsEPS": IsEPS, "IsEduParticipantExt": IsEduParticipantExt, "OnlyValidate": OnlyValidate, "ID_EventCongress": ID_EventCongress, "ID_TempFileHealth": ID_TempFileHealth, "ID_DocumentHealth": ID_DocumentHealth, "IdCardValidTo": IdCardValidTo, "IsAdult": IsAdult, "BirthCity": BirthCity, "ID_Citizenship": ID_Citizenship, "Citizenship": Citizenship, "CitizenshipCustom": CitizenshipCustom, "Person": Person, "MaidenName": MaidenName, "DistrictBirth": DistrictBirth, "Assurance": Assurance, "InsuranceNumber": InsuranceNumber, "Allergy": Allergy, "Drugs": Drugs, "HealthLimitation": HealthLimitation, "BodySkills": BodySkills, "School": School, "Note": Note, "ParentNote": ParentNote, "IdCardNumber": IdCardNumber}) # Upravit přihlášku osoby def PersonOtherUpdateUnitEnroll(self, ID_Login, ID, ID_UnitEnrollTempFile, UnitEnrollExtension=None): return self._client.service.PersonOtherUpdateUnitEnroll({"ID_Login": ID_Login, "ID": ID, "ID_UnitEnrollTempFile": ID_UnitEnrollTempFile, "UnitEnrollExtension": UnitEnrollExtension}) # Potvrdit přihlášku osoby def PersonOtherUpdateUnitEnrollCondition(self, ID_Login, ID, ID_Person, ID_DistrictBirth, ID_Assurance, AllowDataStorage, AllowAudiovisual, AllowSocialNetwork, AllowMarketing, DateChangeSocialNetwork, DateChangeMarketing, DateChangeDataStorage, DateChangeAudiovisual, IsRPS, IsEPS, IsEduParticipantExt, OnlyValidate, ID_EventCongress, ID_TempFileHealth, ID_DocumentHealth, IdCardValidTo, IsAdult, BirthCity=None, ID_Citizenship=None, Citizenship=None, CitizenshipCustom=None, Person=None, MaidenName=None, DistrictBirth=None, Assurance=None, InsuranceNumber=None, Allergy=None, Drugs=None, HealthLimitation=None, BodySkills=None, School=None, Note=None, ParentNote=None, IdCardNumber=None): return self._client.service.PersonOtherUpdateUnitEnrollCondition({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "ID_DistrictBirth": ID_DistrictBirth, "ID_Assurance": ID_Assurance, "AllowDataStorage": AllowDataStorage, "AllowAudiovisual": AllowAudiovisual, "AllowSocialNetwork": AllowSocialNetwork, "AllowMarketing": AllowMarketing, "DateChangeSocialNetwork": DateChangeSocialNetwork, "DateChangeMarketing": DateChangeMarketing, "DateChangeDataStorage": DateChangeDataStorage, "DateChangeAudiovisual": DateChangeAudiovisual, "IsRPS": IsRPS, "IsEPS": IsEPS, "IsEduParticipantExt": IsEduParticipantExt, "OnlyValidate": OnlyValidate, "ID_EventCongress": ID_EventCongress, "ID_TempFileHealth": ID_TempFileHealth, "ID_DocumentHealth": ID_DocumentHealth, "IdCardValidTo": IdCardValidTo, "IsAdult": IsAdult, "BirthCity": BirthCity, "ID_Citizenship": ID_Citizenship, "Citizenship": Citizenship, "CitizenshipCustom": CitizenshipCustom, "Person": Person, "MaidenName": MaidenName, "DistrictBirth": DistrictBirth, "Assurance": Assurance, "InsuranceNumber": InsuranceNumber, "Allergy": Allergy, "Drugs": Drugs, "HealthLimitation": HealthLimitation, "BodySkills": BodySkills, "School": School, "Note": Note, "ParentNote": ParentNote, "IdCardNumber": IdCardNumber}) # Stáhnout dekret kvalifikace def PersonQualificationLetterDownload(self, ID_Login, ID_Qualification): return self._client.service.PersonQualificationLetterDownload({"ID_Login": ID_Login, "ID_Qualification": ID_Qualification}) # Editace výřezu fotografie osoby def PersonUpdatePhotoSize(self, ID_Login, ID, PhotoX, PhotoY, PhotoSize): return self._client.service.PersonUpdatePhotoSize({"ID_Login": ID_Login, "ID": ID, "PhotoX": PhotoX, "PhotoY": PhotoY, "PhotoSize": PhotoSize}) # Načíst seznam členských karet def MemberCardAllRequestCount(self, ID_Login): return self._client.service.MemberCardAllRequestCount({"ID_Login": ID_Login}) # Načíst seznam členských karet připravených k vydání def MemberCardAllRequest(self, ID_Login, ID_MemberCardPrint): return self._client.service.MemberCardAllRequest({"ID_Login": ID_Login, "ID_MemberCardPrint": ID_MemberCardPrint}) # Načíst platnost členské karty dle jejího čísla def MemberCardDetailValid(self, ID_Login, ID_Application, BitOutput, DisplayName=None): return self._client.service.MemberCardDetailValid({"ID_Login": ID_Login, "ID_Application": ID_Application, "BitOutput": BitOutput, "DisplayName": DisplayName}) # Zneplatnit kartu def MemberCardUpdateInvalid(self, ID_Login, ID, ID_Person, Birthday, Year, DateCreate, Price, IsAuthorized, IsPaid, ValidFrom, ValidTo, ID_PersonSchool, ID_PersonRegistration, ID_DocumentMediumPhoto, ID_MemberCardState=None, MemberCardState=None, DisplayName=None, Person=None, ID_MemberCardType=None, MemberCardType=None, PersonSchool=None, PersonSchoolCity=None, UnitStredisko=None, LeaderContact=None, StorageMediumPhoto=None): return self._client.service.MemberCardUpdateInvalid({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "Birthday": Birthday, "Year": Year, "DateCreate": DateCreate, "Price": Price, "IsAuthorized": IsAuthorized, "IsPaid": IsPaid, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_PersonSchool": ID_PersonSchool, "ID_PersonRegistration": ID_PersonRegistration, "ID_DocumentMediumPhoto": ID_DocumentMediumPhoto, "ID_MemberCardState": ID_MemberCardState, "MemberCardState": MemberCardState, "DisplayName": DisplayName, "Person": Person, "ID_MemberCardType": ID_MemberCardType, "MemberCardType": MemberCardType, "PersonSchool": PersonSchool, "PersonSchoolCity": PersonSchoolCity, "UnitStredisko": UnitStredisko, "LeaderContact": LeaderContact, "StorageMediumPhoto": StorageMediumPhoto}) # Stáhnout dekret kvalifikace def QualificationDownload(self, ID_Login, ID): return self._client.service.QualificationDownload({"ID_Login": ID_Login, "ID": ID}) # Založit chybu kvalifikace def QualificationMistakeInsert(self, ID_Login, ID, ID_Qualification, ID_PersonCreated, DateCreated, PersonCreated=None, Description=None): return self._client.service.QualificationMistakeInsert({"ID_Login": ID_Login, "ID": ID, "ID_Qualification": ID_Qualification, "ID_PersonCreated": ID_PersonCreated, "DateCreated": DateCreated, "PersonCreated": PersonCreated, "Description": Description}) # Načíst seznam žádostí o kvalifikaci def QualificationRequestAll(self, ID_Login, ID_Person, ID, ID_QualificationType, ID_QualificationRequestState=None): return self._client.service.QualificationRequestAll({"ID_Login": ID_Login, "ID_Person": ID_Person, "ID": ID, "ID_QualificationType": ID_QualificationType, "ID_QualificationRequestState": ID_QualificationRequestState}) # Načíst detail žádosti o kvalifikaci def QualificationRequestDetail(self, ID_Login, ID): return self._client.service.QualificationRequestDetail({"ID_Login": ID_Login, "ID": ID}) # Stáhnout sken s dekretem def QualificationRequestDetailDownloadLetter(self, ID_Login, ID): return self._client.service.QualificationRequestDetailDownloadLetter({"ID_Login": ID_Login, "ID": ID}) # Založit žádost o kvalifikaci def QualificationRequestInsert(self, ID_Login, ID, ID_Person, ID_PersonCreated, ID_QualificationType, ValidFrom, ValidTo, DateCreate, ID_PersonDecision, ID_TempFileScan, ID_Document, Person=None, PersonCreated=None, QualificationType=None, LetterNumber=None, LetterExtension=None, ID_QualificationRequestState=None, QualificationRequestState=None, Course=None, Decision=None, PersonDecision=None): return self._client.service.QualificationRequestInsert({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "ID_PersonCreated": ID_PersonCreated, "ID_QualificationType": ID_QualificationType, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "DateCreate": DateCreate, "ID_PersonDecision": ID_PersonDecision, "ID_TempFileScan": ID_TempFileScan, "ID_Document": ID_Document, "Person": Person, "PersonCreated": PersonCreated, "QualificationType": QualificationType, "LetterNumber": LetterNumber, "LetterExtension": LetterExtension, "ID_QualificationRequestState": ID_QualificationRequestState, "QualificationRequestState": QualificationRequestState, "Course": Course, "Decision": Decision, "PersonDecision": PersonDecision}) # Načíst seznam stavů žádosti o kvalifikace def QualificationRequestStateAll(self, ID_Login, ID=None, DisplayName=None): return self._client.service.QualificationRequestStateAll({"ID_Login": ID_Login, "ID": ID, "DisplayName": DisplayName}) # Upravit žádost o kvalifikaci def QualificationRequestUpdate(self, ID_Login, ID, ID_Person, ID_PersonCreated, ID_QualificationType, ValidFrom, ValidTo, DateCreate, ID_PersonDecision, ID_TempFileScan, ID_Document, Person=None, PersonCreated=None, QualificationType=None, LetterNumber=None, LetterExtension=None, ID_QualificationRequestState=None, QualificationRequestState=None, Course=None, Decision=None, PersonDecision=None): return self._client.service.QualificationRequestUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "ID_PersonCreated": ID_PersonCreated, "ID_QualificationType": ID_QualificationType, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "DateCreate": DateCreate, "ID_PersonDecision": ID_PersonDecision, "ID_TempFileScan": ID_TempFileScan, "ID_Document": ID_Document, "Person": Person, "PersonCreated": PersonCreated, "QualificationType": QualificationType, "LetterNumber": LetterNumber, "LetterExtension": LetterExtension, "ID_QualificationRequestState": ID_QualificationRequestState, "QualificationRequestState": QualificationRequestState, "Course": Course, "Decision": Decision, "PersonDecision": PersonDecision}) # Načíst detail typu kvalfikace def QualificationTypeDetail(self, ID_Login, ID): return self._client.service.QualificationTypeDetail({"ID_Login": ID_Login, "ID": ID}) # Rozeslat varování o konci platnosti a možnosti prodloužení def QualificationUpdateSendWarning(self, ID_Login): return self._client.service.QualificationUpdateSendWarning({"ID_Login": ID_Login}) # Upravit kvalifikaci def QualificationUpload(self, ID_Login, ID, ID_TempFile, LetterExtension=None): return self._client.service.QualificationUpload({"ID_Login": ID_Login, "ID": ID, "ID_TempFile": ID_TempFile, "LetterExtension": LetterExtension}) # Načíst seznam nemovitostí pro soubor nemovitostí def RealtyAllRealtyCollection(self, ID_Login, ID_RealtyCollection, IsActive): return self._client.service.RealtyAllRealtyCollection({"ID_Login": ID_Login, "ID_RealtyCollection": ID_RealtyCollection, "IsActive": IsActive}) # Načíst seznam správců souboru nemovitostí def RealtyCollectionAdminAll(self, ID_Login, ID_RealtyCollection, ID, ID_Person): return self._client.service.RealtyCollectionAdminAll({"ID_Login": ID_Login, "ID_RealtyCollection": ID_RealtyCollection, "ID": ID, "ID_Person": ID_Person}) # Smazat def RealtyCollectionAdminDelete(self, ID_Login, ID): return self._client.service.RealtyCollectionAdminDelete({"ID_Login": ID_Login, "ID": ID}) # Založit def RealtyCollectionAdminInsert(self, ID_Login, ID, ID_RealtyCollection, ID_Person, RealtyCollection=None, Person=None): return self._client.service.RealtyCollectionAdminInsert({"ID_Login": ID_Login, "ID": ID, "ID_RealtyCollection": ID_RealtyCollection, "ID_Person": ID_Person, "RealtyCollection": RealtyCollection, "Person": Person}) # Smazat soubor nemovitostí def RealtyCollectionDelete(self, ID_Login, ID, Note=None): return self._client.service.RealtyCollectionDelete({"ID_Login": ID_Login, "ID": ID, "Note": Note}) # Načíst detail souboru nemovitostí def RealtyCollectionDetail(self, ID_Login, ID, IsActive): return self._client.service.RealtyCollectionDetail({"ID_Login": ID_Login, "ID": ID, "IsActive": IsActive}) # Načíst seznam umístění souboru nemovitostí def RealtyCollectionLocationAll(self, ID_Login, ID_RealtyCollection, ID, ID_RealtyLocation=None): return self._client.service.RealtyCollectionLocationAll({"ID_Login": ID_Login, "ID_RealtyCollection": ID_RealtyCollection, "ID": ID, "ID_RealtyLocation": ID_RealtyLocation}) # Smazat umístění souboru nemovitostí def RealtyCollectionLocationDeleteRealtyCollection(self, ID_Login, ID_RealtyCollection): return self._client.service.RealtyCollectionLocationDeleteRealtyCollection({"ID_Login": ID_Login, "ID_RealtyCollection": ID_RealtyCollection}) # Založit umístění souboru nemovitostí def RealtyCollectionLocationInsert(self, ID_Login, ID, ID_RealtyCollection, RealtyCollection=None, ID_RealtyLocation=None, RealtyLocation=None): return self._client.service.RealtyCollectionLocationInsert({"ID_Login": ID_Login, "ID": ID, "ID_RealtyCollection": ID_RealtyCollection, "RealtyCollection": RealtyCollection, "ID_RealtyLocation": ID_RealtyLocation, "RealtyLocation": RealtyLocation}) # Načíst seznam způsobů dopravy k souboru nemovitostí def RealtyCollectionTransportAll(self, ID_Login, ID_RealtyCollection, ID, ID_RealtyTransport=None): return self._client.service.RealtyCollectionTransportAll({"ID_Login": ID_Login, "ID_RealtyCollection": ID_RealtyCollection, "ID": ID, "ID_RealtyTransport": ID_RealtyTransport}) # Smazat způsoby dopravy k souboru nemovitostí def RealtyCollectionTransportDeleteRealtyCollection(self, ID_Login, ID_RealtyCollection): return self._client.service.RealtyCollectionTransportDeleteRealtyCollection({"ID_Login": ID_Login, "ID_RealtyCollection": ID_RealtyCollection}) # Založit způsoby dopravy k souboru nemovitostí def RealtyCollectionTransportInsert(self, ID_Login, ID, ID_RealtyCollection, RealtyCollection=None, ID_RealtyTransport=None, RealtyTransport=None): return self._client.service.RealtyCollectionTransportInsert({"ID_Login": ID_Login, "ID": ID, "ID_RealtyCollection": ID_RealtyCollection, "RealtyCollection": RealtyCollection, "ID_RealtyTransport": ID_RealtyTransport, "RealtyTransport": RealtyTransport}) # Upravit soubor nemovitostí def RealtyCollectionUpdate(self, ID_TempFilePhoto, ID_Login, ID, ID_Unit, ID_User, IsActive, GpsLatitude, GpsLongitude, HasAddress, ID_Region, ID_Document, PhotoExtension=None, PhotoFileContent=None, FotogalleryUrl=None, Unit=None, UnitRegistrationNumber=None, Owner=None, DisplayName=None, Description=None, Web=None, Street=None, City=None, Postcode=None, District=None, TransportationMethods=None, TransportationMethodsText=None, TransportDescription=None, Locations=None, LocationsText=None, PointsOfInterest=None, Note=None, Region=None, Storage=None): return self._client.service.RealtyCollectionUpdate({"ID_TempFilePhoto": ID_TempFilePhoto, "ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_User": ID_User, "IsActive": IsActive, "GpsLatitude": GpsLatitude, "GpsLongitude": GpsLongitude, "HasAddress": HasAddress, "ID_Region": ID_Region, "ID_Document": ID_Document, "PhotoExtension": PhotoExtension, "PhotoFileContent": PhotoFileContent, "FotogalleryUrl": FotogalleryUrl, "Unit": Unit, "UnitRegistrationNumber": UnitRegistrationNumber, "Owner": Owner, "DisplayName": DisplayName, "Description": Description, "Web": Web, "Street": Street, "City": City, "Postcode": Postcode, "District": District, "TransportationMethods": TransportationMethods, "TransportationMethodsText": TransportationMethodsText, "TransportDescription": TransportDescription, "Locations": Locations, "LocationsText": LocationsText, "PointsOfInterest": PointsOfInterest, "Note": Note, "Region": Region, "Storage": Storage}) # Smazat nemovitost def RealtyDelete(self, ID_Login, ID, Note=None): return self._client.service.RealtyDelete({"ID_Login": ID_Login, "ID": ID, "Note": Note}) # Načíst seznam dokumentů def RealtyDocumentAllOccupation(self, ID_Login, ID, ID_User, ID_Occupation, Location=None): return self._client.service.RealtyDocumentAllOccupation({"ID_Login": ID_Login, "ID": ID, "ID_User": ID_User, "ID_Occupation": ID_Occupation, "Location": Location}) # Načíst seznam dokumentů def RealtyDocumentAllRealty(self, ID_Login, ID_Realty, ID, ID_User, Location=None): return self._client.service.RealtyDocumentAllRealty({"ID_Login": ID_Login, "ID_Realty": ID_Realty, "ID": ID, "ID_User": ID_User, "Location": Location}) # Založit dokument def RealtyDocumentInsert(self, ID_Login, ID, ID_User, Saved, IsPublic, Size, ID_Realty, ID_Occupation, ID_TempFileDocument, ID_Document, DisplayName=None, Location=None, Origin=None, DownloadName=None, Note=None, Hash=None, Realty=None, Extension=None): return self._client.service.RealtyDocumentInsert({"ID_Login": ID_Login, "ID": ID, "ID_User": ID_User, "Saved": Saved, "IsPublic": IsPublic, "Size": Size, "ID_Realty": ID_Realty, "ID_Occupation": ID_Occupation, "ID_TempFileDocument": ID_TempFileDocument, "ID_Document": ID_Document, "DisplayName": DisplayName, "Location": Location, "Origin": Origin, "DownloadName": DownloadName, "Note": Note, "Hash": Hash, "Realty": Realty, "Extension": Extension}) # Úprava vazeb dokumentu na ostatní tabulky def RealtyDocumentUpdateBinding(self, ID_Login, ID, ID_User, Saved, IsPublic, Size, ID_Realty, ID_Occupation, ID_TempFileDocument, ID_Document, DisplayName=None, Location=None, Origin=None, DownloadName=None, Note=None, Hash=None, Realty=None, Extension=None): return self._client.service.RealtyDocumentUpdateBinding({"ID_Login": ID_Login, "ID": ID, "ID_User": ID_User, "Saved": Saved, "IsPublic": IsPublic, "Size": Size, "ID_Realty": ID_Realty, "ID_Occupation": ID_Occupation, "ID_TempFileDocument": ID_TempFileDocument, "ID_Document": ID_Document, "DisplayName": DisplayName, "Location": Location, "Origin": Origin, "DownloadName": DownloadName, "Note": Note, "Hash": Hash, "Realty": Realty, "Extension": Extension}) # Založit nemovitost do souboru nemovitostí def RealtyInsertRealtyCollection(self, ID_Login, ID_RealtyCollection, IsPower, ID_TempFilePhoto, LVNumber, Acreage, GpsLatitude, GpsLongitude, RealtyGpsLatitude, RealtyGpsLongitude, DisplayName=None, ID_OwnerType=None, OwnerTypeNote=None, Description=None, Note=None, ID_RegisterType=None, RegisterCode=None, FotogalleryUrl=None, ParcelNumber=None, RegisterCity=None, CadastralArea=None, ParcelType=None, LandType=None): return self._client.service.RealtyInsertRealtyCollection({"ID_Login": ID_Login, "ID_RealtyCollection": ID_RealtyCollection, "IsPower": IsPower, "ID_TempFilePhoto": ID_TempFilePhoto, "LVNumber": LVNumber, "Acreage": Acreage, "GpsLatitude": GpsLatitude, "GpsLongitude": GpsLongitude, "RealtyGpsLatitude": RealtyGpsLatitude, "RealtyGpsLongitude": RealtyGpsLongitude, "DisplayName": DisplayName, "ID_OwnerType": ID_OwnerType, "OwnerTypeNote": OwnerTypeNote, "Description": Description, "Note": Note, "ID_RegisterType": ID_RegisterType, "RegisterCode": RegisterCode, "FotogalleryUrl": FotogalleryUrl, "ParcelNumber": ParcelNumber, "RegisterCity": RegisterCity, "CadastralArea": CadastralArea, "ParcelType": ParcelType, "LandType": LandType}) # Načíst seznam umístění def RealtyLocationAll(self, ID_Login, ID_Application, ID=None, DisplayName=None): return self._client.service.RealtyLocationAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID, "DisplayName": DisplayName}) # Načíst seznam typů dopravy def RealtyTransportAll(self, ID_Login, ID=None, DisplayName=None): return self._client.service.RealtyTransportAll({"ID_Login": ID_Login, "ID": ID, "DisplayName": DisplayName}) # Načíst detail typu nemovitosti def RealtyTypeDetail(self, ID_Login, ID): return self._client.service.RealtyTypeDetail({"ID_Login": ID_Login, "ID": ID}) # Nastavit přiřazení nemovitosti do skautské energie def RealtyUpdateIsPower(self, ID_Login, ID, ID_RealtyType, GpsLatitude, GpsLongitude, ID_RealtyCollection, IsPower, ValidTo, IsActive, ID_TempFilePhoto, IsAddressAuthenticated, ID_Document, LVNumber, Acreage, RealtyGpsLatitude, RealtyGpsLongitude, CoordinateX, CoordinateY, DisplayName=None, RealtyType=None, Street=None, City=None, Postcode=None, Description=None, Note=None, RealtyCollection=None, ID_OwnerType=None, OwnerType=None, OwnerTypeNote=None, PhotoExtension=None, PhotoFileContent=None, FotogalleryUrl=None, District=None, Storage=None, ParcelNumber=None, RegisterCity=None, CadastralArea=None, ParcelType=None, LandType=None, Unit=None, UnitRegistrationNumber=None): return self._client.service.RealtyUpdateIsPower({"ID_Login": ID_Login, "ID": ID, "ID_RealtyType": ID_RealtyType, "GpsLatitude": GpsLatitude, "GpsLongitude": GpsLongitude, "ID_RealtyCollection": ID_RealtyCollection, "IsPower": IsPower, "ValidTo": ValidTo, "IsActive": IsActive, "ID_TempFilePhoto": ID_TempFilePhoto, "IsAddressAuthenticated": IsAddressAuthenticated, "ID_Document": ID_Document, "LVNumber": LVNumber, "Acreage": Acreage, "RealtyGpsLatitude": RealtyGpsLatitude, "RealtyGpsLongitude": RealtyGpsLongitude, "CoordinateX": CoordinateX, "CoordinateY": CoordinateY, "DisplayName": DisplayName, "RealtyType": RealtyType, "Street": Street, "City": City, "Postcode": Postcode, "Description": Description, "Note": Note, "RealtyCollection": RealtyCollection, "ID_OwnerType": ID_OwnerType, "OwnerType": OwnerType, "OwnerTypeNote": OwnerTypeNote, "PhotoExtension": PhotoExtension, "PhotoFileContent": PhotoFileContent, "FotogalleryUrl": FotogalleryUrl, "District": District, "Storage": Storage, "ParcelNumber": ParcelNumber, "RegisterCity": RegisterCity, "CadastralArea": CadastralArea, "ParcelType": ParcelType, "LandType": LandType, "Unit": Unit, "UnitRegistrationNumber": UnitRegistrationNumber}) # Upravit nemovitost def RealtyUpdateRemoveFromCollection(self, ID_Login, ID, ID_RealtyType, GpsLatitude, GpsLongitude, ID_RealtyCollection, IsPower, ValidTo, IsActive, ID_TempFilePhoto, IsAddressAuthenticated, ID_Document, LVNumber, Acreage, RealtyGpsLatitude, RealtyGpsLongitude, CoordinateX, CoordinateY, DisplayName=None, RealtyType=None, Street=None, City=None, Postcode=None, Description=None, Note=None, RealtyCollection=None, ID_OwnerType=None, OwnerType=None, OwnerTypeNote=None, PhotoExtension=None, PhotoFileContent=None, FotogalleryUrl=None, District=None, Storage=None, ParcelNumber=None, RegisterCity=None, CadastralArea=None, ParcelType=None, LandType=None, Unit=None, UnitRegistrationNumber=None): return self._client.service.RealtyUpdateRemoveFromCollection({"ID_Login": ID_Login, "ID": ID, "ID_RealtyType": ID_RealtyType, "GpsLatitude": GpsLatitude, "GpsLongitude": GpsLongitude, "ID_RealtyCollection": ID_RealtyCollection, "IsPower": IsPower, "ValidTo": ValidTo, "IsActive": IsActive, "ID_TempFilePhoto": ID_TempFilePhoto, "IsAddressAuthenticated": IsAddressAuthenticated, "ID_Document": ID_Document, "LVNumber": LVNumber, "Acreage": Acreage, "RealtyGpsLatitude": RealtyGpsLatitude, "RealtyGpsLongitude": RealtyGpsLongitude, "CoordinateX": CoordinateX, "CoordinateY": CoordinateY, "DisplayName": DisplayName, "RealtyType": RealtyType, "Street": Street, "City": City, "Postcode": Postcode, "Description": Description, "Note": Note, "RealtyCollection": RealtyCollection, "ID_OwnerType": ID_OwnerType, "OwnerType": OwnerType, "OwnerTypeNote": OwnerTypeNote, "PhotoExtension": PhotoExtension, "PhotoFileContent": PhotoFileContent, "FotogalleryUrl": FotogalleryUrl, "District": District, "Storage": Storage, "ParcelNumber": ParcelNumber, "RegisterCity": RegisterCity, "CadastralArea": CadastralArea, "ParcelType": ParcelType, "LandType": LandType, "Unit": Unit, "UnitRegistrationNumber": UnitRegistrationNumber}) # Načíst seznam typů záznamu v katastru def RegisterTypeAll(self, ID_Login, ID=None, DisplayName=None): return self._client.service.RegisterTypeAll({"ID_Login": ID_Login, "ID": ID, "DisplayName": DisplayName}) # Upravit komentář registrační vady osoby def PersonMistakeReportUpdatePerson(self, ID_Login, ID, ID_Person, ID_Unit, ID_UnitRegistration, ID_Mistake, Person=None, UnitRegistrationNumber=None, Unit=None, Mistake=None, DisplayName=None, ParentComment=None): return self._client.service.PersonMistakeReportUpdatePerson({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "ID_Unit": ID_Unit, "ID_UnitRegistration": ID_UnitRegistration, "ID_Mistake": ID_Mistake, "Person": Person, "UnitRegistrationNumber": UnitRegistrationNumber, "Unit": Unit, "Mistake": Mistake, "DisplayName": DisplayName, "ParentComment": ParentComment}) # Upravit komentář registrační vady jednotky def UnitMistakeReportUpdateUnit(self, ID_Login, ID, ID_Unit, ID_Mistake, Unit=None, RegistrationNumber=None, Mistake=None, DisplayName=None, ParentComment=None): return self._client.service.UnitMistakeReportUpdateUnit({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Mistake": ID_Mistake, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "Mistake": Mistake, "DisplayName": DisplayName, "ParentComment": ParentComment}) # Načtení statistiky dle věku registrací podřízených jednotek (datatable) def UnitRegistrationAllSubStatsAgeTable(self, ID_Login, ID_Unit, IsExpanded, LastNYears): return self._client.service.UnitRegistrationAllSubStatsAgeTable({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "IsExpanded": IsExpanded, "LastNYears": LastNYears}) # Načtení statistiky dle typu jednotky registrací podřízených jednotek (datatable) def UnitRegistrationAllSubStatsTypeTable(self, ID_Login, ID_Unit, IsExpanded, LastNYears): return self._client.service.UnitRegistrationAllSubStatsTypeTable({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "IsExpanded": IsExpanded, "LastNYears": LastNYears}) # Načtení statistiky dle typu oddílu registrací podřízených oddílů (datatable) def UnitRegistrationAllSubStatsTroopTable(self, ID_Login, ID_Unit, IsExpanded, LastNYears): return self._client.service.UnitRegistrationAllSubStatsTroopTable({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "IsExpanded": IsExpanded, "LastNYears": LastNYears}) # Načtení statistiky dle typu oddílu registrací podřízených oddílů def UnitRegistrationAllSubStatsTroop(self, ID_Login, ID_Unit, IsExpanded, LastNYears): return self._client.service.UnitRegistrationAllSubStatsTroop({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "IsExpanded": IsExpanded, "LastNYears": LastNYears}) # Načtení statistiky dle typu jednotky registrací podřízených jednotek def UnitRegistrationAllSubStatsType(self, ID_Login, ID_Unit, IsExpanded, LastNYears): return self._client.service.UnitRegistrationAllSubStatsType({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "IsExpanded": IsExpanded, "LastNYears": LastNYears}) # Načtení statistiky dle věku registrací podřízených jednotek def UnitRegistrationAllSubStatsAge(self, ID_Login, ID_Unit, IsExpanded, LastNYears): return self._client.service.UnitRegistrationAllSubStatsAge({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "IsExpanded": IsExpanded, "LastNYears": LastNYears}) # Načtení statistiky dle věku registrací zadané jednotky (datatable) def UnitRegistrationAllStatsAgeTable(self, ID_Login, ID_Unit, IsExpanded, LastNYears): return self._client.service.UnitRegistrationAllStatsAgeTable({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "IsExpanded": IsExpanded, "LastNYears": LastNYears}) # Načtení statistiky dle věku registrací zadané jednotky def UnitRegistrationAllStatsAge(self, ID_Login, ID_Unit, IsExpanded, LastNYears, PrepareInvertedDatatable): return self._client.service.UnitRegistrationAllStatsAge({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "IsExpanded": IsExpanded, "LastNYears": LastNYears, "PrepareInvertedDatatable": PrepareInvertedDatatable}) # Načtení statistiky dle kategorie registrací zadané jednotky (datatable) def UnitRegistrationAllStatsCategoryTable(self, ID_Login, ID_Unit, LastNYears, IsExpanded): return self._client.service.UnitRegistrationAllStatsCategoryTable({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "LastNYears": LastNYears, "IsExpanded": IsExpanded}) # Načtení statistiky dle kategorie registrací zadané jednotky def UnitRegistrationAllStatsCategory(self, ID_Login, ID_Unit, LastNYears, IsExpanded): return self._client.service.UnitRegistrationAllStatsCategory({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "LastNYears": LastNYears, "IsExpanded": IsExpanded}) # Načíst statistiku registrací jednotky def UnitRegistrationAllStats(self, ID_Login, ID_Unit): return self._client.service.UnitRegistrationAllStats({"ID_Login": ID_Login, "ID_Unit": ID_Unit}) # Upravit pokyny k registraci def UnitRegistrationUpdateInstructions(self, ID_Login, ID, ID_Unit, Year, DateChecked, DateConfirmed, IsDelivered, IsAccepted, ID_UnitRegistrationParent, ParentIsDelivered, ParentIsAccepted, ParentHasCreated, Unit=None, RegistrationNumber=None, DisplayName=None, ID_UnitType=None, Instructions=None, UnitRegistrationParent=None, InstructionsParent=None): return self._client.service.UnitRegistrationUpdateInstructions({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Year": Year, "DateChecked": DateChecked, "DateConfirmed": DateConfirmed, "IsDelivered": IsDelivered, "IsAccepted": IsAccepted, "ID_UnitRegistrationParent": ID_UnitRegistrationParent, "ParentIsDelivered": ParentIsDelivered, "ParentIsAccepted": ParentIsAccepted, "ParentHasCreated": ParentHasCreated, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "DisplayName": DisplayName, "ID_UnitType": ID_UnitType, "Instructions": Instructions, "UnitRegistrationParent": UnitRegistrationParent, "InstructionsParent": InstructionsParent}) # Přepočítání statistiky členů a jednotek v registraci def UnitRegistrationRebuildMembers(self, ID_Login, ID, Year): return self._client.service.UnitRegistrationRebuildMembers({"ID_Login": ID_Login, "ID": ID, "Year": Year}) # Přehled registračních komentářů podřízených jednotek def UnitRegistrationReportChild(self, ID_Login, ID, ShowChildUnit, UnitType=None, RegistrationNumber=None): return self._client.service.UnitRegistrationReportChild({"ID_Login": ID_Login, "ID": ID, "ShowChildUnit": ShowChildUnit, "UnitType": UnitType, "RegistrationNumber": RegistrationNumber}) # Načtení seznamu roku registraci ustredi def UnitRegistrationAllYearUstredi(self, ID_Login, ExportFilter): return self._client.service.UnitRegistrationAllYearUstredi({"ID_Login": ID_Login, "ExportFilter": ExportFilter}) # Načíst detail požadavku pro průvodní dopis def RegistryDetailExport(self, ID_Login, ID): return self._client.service.RegistryDetailExport({"ID_Login": ID_Login, "ID": ID}) # upravit poznámku registru OJ def RegistryUpdateNote(self, ID_Login, ID, Sequence, ID_Unit, IsPropertyOwner, IsPropertyOwnerOld, OldHistoryObjectId, NewHistoryObjectId, ID_PersonCreate, DateCreate, ID_PersonUpdate, DateUpdate, ID_PersonSent, DateSent, ID_PersonClosed, DateClosed, ID_PersonCancel, DateCancel, ID_Function, ID_FunctionType, NewAccount, ID_PersonFunction, ID_PersonFunctionOld, ID_PersonSolving, DateSolving, ID_Document, ID_Statement, StatementYear, ID_DocumentStatement, ID_DocumentDecision, ID_DocumentPropertyAgreement, DisplayName=None, Unit=None, RegistrationNumber=None, IC=None, Street=None, City=None, Postcode=None, PropertyAgreementExtension=None, UnitOld=None, StreetOld=None, CityOld=None, PostcodeOld=None, ID_RegistryObject=None, RegistryObject=None, ID_RegistryType=None, RegistryType=None, ID_RegistryState=None, RegistryState=None, PersonCreate=None, PersonUpdate=None, PersonSent=None, PersonClosed=None, PersonCancel=None, CancelDecision=None, FunctionType=None, PersonFunction=None, PersonFunctionOld=None, Account=None, Note=None, PersonSolving=None, DecisionSeatChangeExtension=None): return self._client.service.RegistryUpdateNote({"ID_Login": ID_Login, "ID": ID, "Sequence": Sequence, "ID_Unit": ID_Unit, "IsPropertyOwner": IsPropertyOwner, "IsPropertyOwnerOld": IsPropertyOwnerOld, "OldHistoryObjectId": OldHistoryObjectId, "NewHistoryObjectId": NewHistoryObjectId, "ID_PersonCreate": ID_PersonCreate, "DateCreate": DateCreate, "ID_PersonUpdate": ID_PersonUpdate, "DateUpdate": DateUpdate, "ID_PersonSent": ID_PersonSent, "DateSent": DateSent, "ID_PersonClosed": ID_PersonClosed, "DateClosed": DateClosed, "ID_PersonCancel": ID_PersonCancel, "DateCancel": DateCancel, "ID_Function": ID_Function, "ID_FunctionType": ID_FunctionType, "NewAccount": NewAccount, "ID_PersonFunction": ID_PersonFunction, "ID_PersonFunctionOld": ID_PersonFunctionOld, "ID_PersonSolving": ID_PersonSolving, "DateSolving": DateSolving, "ID_Document": ID_Document, "ID_Statement": ID_Statement, "StatementYear": StatementYear, "ID_DocumentStatement": ID_DocumentStatement, "ID_DocumentDecision": ID_DocumentDecision, "ID_DocumentPropertyAgreement": ID_DocumentPropertyAgreement, "DisplayName": DisplayName, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "IC": IC, "Street": Street, "City": City, "Postcode": Postcode, "PropertyAgreementExtension": PropertyAgreementExtension, "UnitOld": UnitOld, "StreetOld": StreetOld, "CityOld": CityOld, "PostcodeOld": PostcodeOld, "ID_RegistryObject": ID_RegistryObject, "RegistryObject": RegistryObject, "ID_RegistryType": ID_RegistryType, "RegistryType": RegistryType, "ID_RegistryState": ID_RegistryState, "RegistryState": RegistryState, "PersonCreate": PersonCreate, "PersonUpdate": PersonUpdate, "PersonSent": PersonSent, "PersonClosed": PersonClosed, "PersonCancel": PersonCancel, "CancelDecision": CancelDecision, "FunctionType": FunctionType, "PersonFunction": PersonFunction, "PersonFunctionOld": PersonFunctionOld, "Account": Account, "Note": Note, "PersonSolving": PersonSolving, "DecisionSeatChangeExtension": DecisionSeatChangeExtension}) # Načíst seznam typů razítka def StampTypeAll(self, ID_Login, ID=None, DisplayName=None): return self._client.service.StampTypeAll({"ID_Login": ID_Login, "ID": ID, "DisplayName": DisplayName}) # Načíst detail hospodářského výkazu pro sestavu def StatementDetailReport(self, ID_Login, ID): return self._client.service.StatementDetailReport({"ID_Login": ID_Login, "ID": ID}) # Načíst seznam stavů hospodářského výkazu def StatementStateAll(self, ID_Login, ID=None, DisplayName=None): return self._client.service.StatementStateAll({"ID_Login": ID_Login, "ID": ID, "DisplayName": DisplayName}) # Upravit stav hospodářského výkazu def StatementUpdateState(self, ID_Login, ID, ID_Unit, Year, IsError, IsDelivered, DateDelivered, DateCreated, IsThousands, IsConsultant, ID_Document, ID_DocumentTempFile, DateSent, ID_PersonSent, DateConfirmed, ID_PersonConfirmed, ID_Registry, ShowOverview, Unit=None, RegistrationNumber=None, ID_StatementType=None, StatementType=None, ID_StatementState=None, StatementState=None, PersonSent=None, PersonConfirmed=None): return self._client.service.StatementUpdateState({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Year": Year, "IsError": IsError, "IsDelivered": IsDelivered, "DateDelivered": DateDelivered, "DateCreated": DateCreated, "IsThousands": IsThousands, "IsConsultant": IsConsultant, "ID_Document": ID_Document, "ID_DocumentTempFile": ID_DocumentTempFile, "DateSent": DateSent, "ID_PersonSent": ID_PersonSent, "DateConfirmed": DateConfirmed, "ID_PersonConfirmed": ID_PersonConfirmed, "ID_Registry": ID_Registry, "ShowOverview": ShowOverview, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "ID_StatementType": ID_StatementType, "StatementType": StatementType, "ID_StatementState": ID_StatementState, "StatementState": StatementState, "PersonSent": PersonSent, "PersonConfirmed": PersonConfirmed}) # Načíst seznam jednotek pro Google synchronizaci def UnitAllGoogleGroupSync(self, ID_Login, ID_GoogleGroup): return self._client.service.UnitAllGoogleGroupSync({"ID_Login": ID_Login, "ID_GoogleGroup": ID_GoogleGroup}) # Načíst seznam jednotek v STS def UnitAllTelephony(self, ID_Login, ID_Application, ID, ID_Group, RegistrationNumberStartWith, ID_UnitType=None, RegistrationNumber=None, DisplayName=None, Location=None, AccountNumber=None, IC=None): return self._client.service.UnitAllTelephony({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID, "ID_Group": ID_Group, "RegistrationNumberStartWith": RegistrationNumberStartWith, "ID_UnitType": ID_UnitType, "RegistrationNumber": RegistrationNumber, "DisplayName": DisplayName, "Location": Location, "AccountNumber": AccountNumber, "IC": IC}) # Načíst seznam jednotek pro menu def UnitAllMenu(self, ID_Login, ID_Application, ID, ID_UnitParent, ID_UnitChild): return self._client.service.UnitAllMenu({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID, "ID_UnitParent": ID_UnitParent, "ID_UnitChild": ID_UnitChild}) # Načíst seznam evidencí provedených kontrol def UnitAuditRegisterAllUnit(self, ID_Login, ID_Unit): return self._client.service.UnitAuditRegisterAllUnit({"ID_Login": ID_Login, "ID_Unit": ID_Unit}) # Naèíst detail zobrazení osoby v adresáři def CatalogDisplayDetail(self, ID_Login, ID_Person): return self._client.service.CatalogDisplayDetail({"ID_Login": ID_Login, "ID_Person": ID_Person}) # Upravit zobrazení osoby v adresáři def CatalogDisplayUpdate(self, ID_Login, ID, ID_Person, Birthday, YearFrom, Adress, PostalAdress, School, Function, Qualification, EducationSeminary, Offer, Education, Membership, Person=None): return self._client.service.CatalogDisplayUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "Birthday": Birthday, "YearFrom": YearFrom, "Adress": Adress, "PostalAdress": PostalAdress, "School": School, "Function": Function, "Qualification": Qualification, "EducationSeminary": EducationSeminary, "Offer": Offer, "Education": Education, "Membership": Membership, "Person": Person}) # Načíst detail limitu pro vyhledávání osob v adresáři def CatalogLimitDetail(self, ID_Login, ID_Person): return self._client.service.CatalogLimitDetail({"ID_Login": ID_Login, "ID_Person": ID_Person}) # Upravit limit pro vyhledávání osob v adresáři def CatalogLimitUpdate(self, ID_Login, ID_Person, OnlyWeek): return self._client.service.CatalogLimitUpdate({"ID_Login": ID_Login, "ID_Person": ID_Person, "OnlyWeek": OnlyWeek}) # Načíst seznam fakturačních jednotek def InvoiceGroupAll(self, ID_Login, ID, ID_TelephonyUnit, DisplayName=None): return self._client.service.InvoiceGroupAll({"ID_Login": ID_Login, "ID": ID, "ID_TelephonyUnit": ID_TelephonyUnit, "DisplayName": DisplayName}) # Načíst výchozí fakturační jednotku def InvoiceGroupDetailDefault(self, ID_Login): return self._client.service.InvoiceGroupDetailDefault({"ID_Login": ID_Login}) # Načíst seznam dokumentů užití nemovitosti def OccupationPhotoAll(self, ID_Login, ID_Occupation, ID, ID_Document): return self._client.service.OccupationPhotoAll({"ID_Login": ID_Login, "ID_Occupation": ID_Occupation, "ID": ID, "ID_Document": ID_Document}) # Smazat dokument užití nemovitosti def OccupationPhotoDelete(self, ID_Login, ID): return self._client.service.OccupationPhotoDelete({"ID_Login": ID_Login, "ID": ID}) # Založit dokument užití nemovitosti def OccupationPhotoInsert(self, ID_Login, ID, ID_Occupation, ID_Document, ID_TempFile, Description=None): return self._client.service.OccupationPhotoInsert({"ID_Login": ID_Login, "ID": ID, "ID_Occupation": ID_Occupation, "ID_Document": ID_Document, "ID_TempFile": ID_TempFile, "Description": Description}) # Načíst detail půjčitelné nemovitosti pro kalendář def OccupationRentDetailCalendar(self, ID_Login, ID_Application, ID): return self._client.service.OccupationRentDetailCalendar({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID}) # Načíst seznam půjčitelných nemovitostí pro kalendář def OccupationRentAllCalendarAll(self, ID_Login, ID_Application, IsInstant): return self._client.service.OccupationRentAllCalendarAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "IsInstant": IsInstant}) # Načíst seznam půjčitelných jednotek pro API def OccupationRentAllPublicApi(self, ID_Login, ID_Application): return self._client.service.OccupationRentAllPublicApi({"ID_Login": ID_Login, "ID_Application": ID_Application}) # Načíst seznam půjčitelných jednotek s detailnímí informacemi pro API def OccupationRentAllPublicApiDetail(self, ID_Login, ID_Application, ID_RealtyType, Capacity, ID_Items=None, ID_OccupationEquipment=None, ID_RealtyLocations=None): return self._client.service.OccupationRentAllPublicApiDetail({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_RealtyType": ID_RealtyType, "Capacity": Capacity, "ID_Items": ID_Items, "ID_OccupationEquipment": ID_OccupationEquipment, "ID_RealtyLocations": ID_RealtyLocations}) # Načíst detail půjčitelné jednotky pro API def OccupationRentDetailPublicApi(self, ID_Login, ID_Application, ID): return self._client.service.OccupationRentDetailPublicApi({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID}) # Načíst seznam cen za pronájem def OccupationRentPriceAllOccupationRent(self, ID_Login, ID_Application, ID_OccupationRent): return self._client.service.OccupationRentPriceAllOccupationRent({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_OccupationRent": ID_OccupationRent}) # Změnit data kalendářů půjčitelné jednotky def OccupationRentUpdateCalendarFile(self, ID_Login, ID_Application, ID, ID_TempFile, ID_TempFileAdmin): return self._client.service.OccupationRentUpdateCalendarFile({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID, "ID_TempFile": ID_TempFile, "ID_TempFileAdmin": ID_TempFileAdmin}) # Nastavit datum generování kalendáře def OccupationRentUpdateRegenerateCalendar(self, ID_Login, ID_Application, ID, Reset): return self._client.service.OccupationRentUpdateRegenerateCalendar({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID, "Reset": Reset}) # Načíst seznam osob týmu vzdělávací akce def PersonAllEventEducationTeam(self, ID_Login, ID_EventEducation, DisplayName=None): return self._client.service.PersonAllEventEducationTeam({"ID_Login": ID_Login, "ID_EventEducation": ID_EventEducation, "DisplayName": DisplayName}) # Založit změnu u osoby zákonným zástupcem def PersonChangeInsertPersonParent(self, ID_Login, ID_Person): return self._client.service.PersonChangeInsertPersonParent({"ID_Login": ID_Login, "ID_Person": ID_Person}) # Načtení informací o dětech osoby def PersonDetailChildren(self, ID_Login, ID): return self._client.service.PersonDetailChildren({"ID_Login": ID_Login, "ID": ID}) # Načíst seznam potomků osoby def PersonParentAllPersonChildren(self, ID_Login, ID_Application, ID_Person, ID, ID_PersonParent, ID_ParentType=None): return self._client.service.PersonParentAllPersonChildren({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_Person": ID_Person, "ID": ID, "ID_PersonParent": ID_PersonParent, "ID_ParentType": ID_ParentType}) # Načíst seznam náborových kategorií def AdvertisingCategoryAllOccupation(self, ID_Login, ID_Application, ID_Occupation, ID_MeetingDate, ID_Sex=None): return self._client.service.AdvertisingCategoryAllOccupation({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_Occupation": ID_Occupation, "ID_MeetingDate": ID_MeetingDate, "ID_Sex": ID_Sex}) # Načíst seznam položek kontroly def AuditRegisterItemAll(self, ID_Login, ID_UnitAuditRegister, ID, ID_Person, ID_AuditRegisterItemType=None): return self._client.service.AuditRegisterItemAll({"ID_Login": ID_Login, "ID_UnitAuditRegister": ID_UnitAuditRegister, "ID": ID, "ID_Person": ID_Person, "ID_AuditRegisterItemType": ID_AuditRegisterItemType}) # Smazat položku kontroly def AuditRegisterItemDelete(self, ID_Login, ID, ID_UnitAuditRegister, Done, ID_Person, IsDone, ID_AuditRegisterItemType=None, AuditRegisterItemType=None, AuditRegisterItemTypeHelp=None, AuditRegisterItemTypeCustom=None, Person=None, Comment=None, HelpCustom=None, DoneText=None): return self._client.service.AuditRegisterItemDelete({"ID_Login": ID_Login, "ID": ID, "ID_UnitAuditRegister": ID_UnitAuditRegister, "Done": Done, "ID_Person": ID_Person, "IsDone": IsDone, "ID_AuditRegisterItemType": ID_AuditRegisterItemType, "AuditRegisterItemType": AuditRegisterItemType, "AuditRegisterItemTypeHelp": AuditRegisterItemTypeHelp, "AuditRegisterItemTypeCustom": AuditRegisterItemTypeCustom, "Person": Person, "Comment": Comment, "HelpCustom": HelpCustom, "DoneText": DoneText}) # Založit položku kontroly def AuditRegisterItemInsert(self, ID_Login, ID, ID_UnitAuditRegister, Done, ID_Person, IsDone, ID_AuditRegisterItemType=None, AuditRegisterItemType=None, AuditRegisterItemTypeHelp=None, AuditRegisterItemTypeCustom=None, Person=None, Comment=None, HelpCustom=None, DoneText=None): return self._client.service.AuditRegisterItemInsert({"ID_Login": ID_Login, "ID": ID, "ID_UnitAuditRegister": ID_UnitAuditRegister, "Done": Done, "ID_Person": ID_Person, "IsDone": IsDone, "ID_AuditRegisterItemType": ID_AuditRegisterItemType, "AuditRegisterItemType": AuditRegisterItemType, "AuditRegisterItemTypeHelp": AuditRegisterItemTypeHelp, "AuditRegisterItemTypeCustom": AuditRegisterItemTypeCustom, "Person": Person, "Comment": Comment, "HelpCustom": HelpCustom, "DoneText": DoneText}) # Upravit položku kontroly def AuditRegisterItemUpdate(self, ID_Login, ID, ID_UnitAuditRegister, Done, ID_Person, IsDone, ID_AuditRegisterItemType=None, AuditRegisterItemType=None, AuditRegisterItemTypeHelp=None, AuditRegisterItemTypeCustom=None, Person=None, Comment=None, HelpCustom=None, DoneText=None): return self._client.service.AuditRegisterItemUpdate({"ID_Login": ID_Login, "ID": ID, "ID_UnitAuditRegister": ID_UnitAuditRegister, "Done": Done, "ID_Person": ID_Person, "IsDone": IsDone, "ID_AuditRegisterItemType": ID_AuditRegisterItemType, "AuditRegisterItemType": AuditRegisterItemType, "AuditRegisterItemTypeHelp": AuditRegisterItemTypeHelp, "AuditRegisterItemTypeCustom": AuditRegisterItemTypeCustom, "Person": Person, "Comment": Comment, "HelpCustom": HelpCustom, "DoneText": DoneText}) # Načíst seznam státních občanství def CitizenshipAll(self, ID_Login, ID_Application, ID=None, DisplayName=None): return self._client.service.CitizenshipAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID, "DisplayName": DisplayName}) # Načíst seznam typů změny kontaktu def ContactRequestTypeAll(self, ID_Login, ID=None, DisplayName=None): return self._client.service.ContactRequestTypeAll({"ID_Login": ID_Login, "ID": ID, "DisplayName": DisplayName}) # Založit semináře účastníkům vzdělavací akci def EducatationSeminaryInsertEventEducation(self, ID_Login, ID_EventEducation): return self._client.service.EducatationSeminaryInsertEventEducation({"ID_Login": ID_Login, "ID_EventEducation": ID_EventEducation}) # Načíst detail souhlasu se zápisem do spolkového rejstříku def FunctionDetailAgreementDownload(self, ID_Login, ID): return self._client.service.FunctionDetailAgreementDownload({"ID_Login": ID_Login, "ID": ID}) # Načtení informací o osobě pro souhlas se zápisem do spolkového rejstříku def FunctionDetailAgreementTemplate(self, ID_Login, ID, ID_FunctionType, CityText=None): return self._client.service.FunctionDetailAgreementTemplate({"ID_Login": ID_Login, "ID": ID, "ID_FunctionType": ID_FunctionType, "CityText": CityText}) # Načíst seznam typů funkcí pro Google synchronizaci def FunctionTypeAllGoogleGroupSync(self, ID_Login, ID_GoogleGroup, IsDirect): return self._client.service.FunctionTypeAllGoogleGroupSync({"ID_Login": ID_Login, "ID_GoogleGroup": ID_GoogleGroup, "IsDirect": IsDirect}) # Potvrzení souhlasu se zápisem do spolkového rejstříku def FunctionUpdateAgreementConfirm(self, ID_Login, ID, ValidFrom, ValidTo, ID_Person, ID_Unit, ID_FunctionType, ID_Role, IsDeleteRole, AgreementConfirmed, ID_TempFile, AgreementNeeded, AgreementCanUpload, AgreementCanConfirm, AgreementCanView, ID_FunctionReason=None, Specification=None, AgreementExtension=None, Code=None, Number=None): return self._client.service.FunctionUpdateAgreementConfirm({"ID_Login": ID_Login, "ID": ID, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_Person": ID_Person, "ID_Unit": ID_Unit, "ID_FunctionType": ID_FunctionType, "ID_Role": ID_Role, "IsDeleteRole": IsDeleteRole, "AgreementConfirmed": AgreementConfirmed, "ID_TempFile": ID_TempFile, "AgreementNeeded": AgreementNeeded, "AgreementCanUpload": AgreementCanUpload, "AgreementCanConfirm": AgreementCanConfirm, "AgreementCanView": AgreementCanView, "ID_FunctionReason": ID_FunctionReason, "Specification": Specification, "AgreementExtension": AgreementExtension, "Code": Code, "Number": Number}) # Nahrát souhlas se zápisem do spolkového rejstříku def FunctionUpdateAgreement(self, ID_Login, ID, ValidFrom, ValidTo, ID_Person, ID_Unit, ID_FunctionType, ID_Role, IsDeleteRole, AgreementConfirmed, ID_TempFile, AgreementNeeded, AgreementCanUpload, AgreementCanConfirm, AgreementCanView, ID_FunctionReason=None, Specification=None, AgreementExtension=None, Code=None, Number=None): return self._client.service.FunctionUpdateAgreement({"ID_Login": ID_Login, "ID": ID, "ValidFrom": ValidFrom, "ValidTo": ValidTo, "ID_Person": ID_Person, "ID_Unit": ID_Unit, "ID_FunctionType": ID_FunctionType, "ID_Role": ID_Role, "IsDeleteRole": IsDeleteRole, "AgreementConfirmed": AgreementConfirmed, "ID_TempFile": ID_TempFile, "AgreementNeeded": AgreementNeeded, "AgreementCanUpload": AgreementCanUpload, "AgreementCanConfirm": AgreementCanConfirm, "AgreementCanView": AgreementCanView, "ID_FunctionReason": ID_FunctionReason, "Specification": Specification, "AgreementExtension": AgreementExtension, "Code": Code, "Number": Number}) # Načíst seznam fakturovaných časopisů def MemberCardAllMemberCardInvoiceSummaryVat(self, ID_Login, ID_MemberCardInvoice): return self._client.service.MemberCardAllMemberCardInvoiceSummaryVat({"ID_Login": ID_Login, "ID_MemberCardInvoice": ID_MemberCardInvoice}) # Načíst faktury za členské karty jednoty def MemberCardInvoiceAllUnit(self, ID_Login, ID_Unit, ID, DateGeneratingFrom, DateGeneratingTo, DisplayName=None, ID_MemberCardInvoiceState=None): return self._client.service.MemberCardInvoiceAllUnit({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "ID": ID, "DateGeneratingFrom": DateGeneratingFrom, "DateGeneratingTo": DateGeneratingTo, "DisplayName": DisplayName, "ID_MemberCardInvoiceState": ID_MemberCardInvoiceState}) # Načíst seznam faktur za členské karty v xml def MemberCardInvoiceAllXml(self, ID_Login, ID_Unit, ID, ID_MemberCardInvoiceGenerate, DateGeneratingFrom, DateGeneratingTo, DisplayName=None, ID_MemberCardInvoiceState=None): return self._client.service.MemberCardInvoiceAllXml({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "ID": ID, "ID_MemberCardInvoiceGenerate": ID_MemberCardInvoiceGenerate, "DateGeneratingFrom": DateGeneratingFrom, "DateGeneratingTo": DateGeneratingTo, "DisplayName": DisplayName, "ID_MemberCardInvoiceState": ID_MemberCardInvoiceState}) # Načíst detail faktury za členské karty def MemberCardInvoiceDetailDownloadPdf(self, ID_Login, ID): return self._client.service.MemberCardInvoiceDetailDownloadPdf({"ID_Login": ID_Login, "ID": ID}) # Upravit fakturu za členské karty def MemberCardInvoiceUpdate(self, ID_Login, ID, ID_Unit, Sequence, Maturity, DateGenerating, TotalPrice, TotalPriceWithVat, Price, PriceBase, PriceFirst, PriceSecond, VatBase, VatFirst, VatSecond, ID_MemberCardInvoiceGenerate, ID_InvoiceGroup, DateTaxableSupply, Unit=None, RegistrationNumber=None, Street=None, City=None, Postcode=None, State=None, StateCode=None, IC=None, DIC=None, DisplayName=None, ID_MemberCardInvoiceState=None, MemberCardInvoiceState=None, InvoiceGroupContractorIC=None, InvoiceGroupContractorDIC=None, InvoiceGroupContractorPhone=None, InvoiceGroupContractorEmail=None, InvoiceGroupWeb=None, InvoiceGroupFileReference=None, InvoiceGroupBankAccount=None, InvoiceGroupBankCode=None, InvoiceGroupBank=None, PaymentType=None, QRCodeString=None, InvoiceGroupContractor=None, InvoiceGroupContractorAddress=None, InvoiceBankAccount=None): return self._client.service.MemberCardInvoiceUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Sequence": Sequence, "Maturity": Maturity, "DateGenerating": DateGenerating, "TotalPrice": TotalPrice, "TotalPriceWithVat": TotalPriceWithVat, "Price": Price, "PriceBase": PriceBase, "PriceFirst": PriceFirst, "PriceSecond": PriceSecond, "VatBase": VatBase, "VatFirst": VatFirst, "VatSecond": VatSecond, "ID_MemberCardInvoiceGenerate": ID_MemberCardInvoiceGenerate, "ID_InvoiceGroup": ID_InvoiceGroup, "DateTaxableSupply": DateTaxableSupply, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "Street": Street, "City": City, "Postcode": Postcode, "State": State, "StateCode": StateCode, "IC": IC, "DIC": DIC, "DisplayName": DisplayName, "ID_MemberCardInvoiceState": ID_MemberCardInvoiceState, "MemberCardInvoiceState": MemberCardInvoiceState, "InvoiceGroupContractorIC": InvoiceGroupContractorIC, "InvoiceGroupContractorDIC": InvoiceGroupContractorDIC, "InvoiceGroupContractorPhone": InvoiceGroupContractorPhone, "InvoiceGroupContractorEmail": InvoiceGroupContractorEmail, "InvoiceGroupWeb": InvoiceGroupWeb, "InvoiceGroupFileReference": InvoiceGroupFileReference, "InvoiceGroupBankAccount": InvoiceGroupBankAccount, "InvoiceGroupBankCode": InvoiceGroupBankCode, "InvoiceGroupBank": InvoiceGroupBank, "PaymentType": PaymentType, "QRCodeString": QRCodeString, "InvoiceGroupContractor": InvoiceGroupContractor, "InvoiceGroupContractorAddress": InvoiceGroupContractorAddress, "InvoiceBankAccount": InvoiceBankAccount}) # Odeslat fakturu za členské karty def MemberCardInvoiceUpdateSend(self, ID_Login, ID, ID_Unit, Sequence, Maturity, DateGenerating, TotalPrice, TotalPriceWithVat, Price, PriceBase, PriceFirst, PriceSecond, VatBase, VatFirst, VatSecond, ID_MemberCardInvoiceGenerate, ID_InvoiceGroup, DateTaxableSupply, Unit=None, RegistrationNumber=None, Street=None, City=None, Postcode=None, State=None, StateCode=None, IC=None, DIC=None, DisplayName=None, ID_MemberCardInvoiceState=None, MemberCardInvoiceState=None, InvoiceGroupContractorIC=None, InvoiceGroupContractorDIC=None, InvoiceGroupContractorPhone=None, InvoiceGroupContractorEmail=None, InvoiceGroupWeb=None, InvoiceGroupFileReference=None, InvoiceGroupBankAccount=None, InvoiceGroupBankCode=None, InvoiceGroupBank=None, PaymentType=None, QRCodeString=None, InvoiceGroupContractor=None, InvoiceGroupContractorAddress=None, InvoiceBankAccount=None): return self._client.service.MemberCardInvoiceUpdateSend({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Sequence": Sequence, "Maturity": Maturity, "DateGenerating": DateGenerating, "TotalPrice": TotalPrice, "TotalPriceWithVat": TotalPriceWithVat, "Price": Price, "PriceBase": PriceBase, "PriceFirst": PriceFirst, "PriceSecond": PriceSecond, "VatBase": VatBase, "VatFirst": VatFirst, "VatSecond": VatSecond, "ID_MemberCardInvoiceGenerate": ID_MemberCardInvoiceGenerate, "ID_InvoiceGroup": ID_InvoiceGroup, "DateTaxableSupply": DateTaxableSupply, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "Street": Street, "City": City, "Postcode": Postcode, "State": State, "StateCode": StateCode, "IC": IC, "DIC": DIC, "DisplayName": DisplayName, "ID_MemberCardInvoiceState": ID_MemberCardInvoiceState, "MemberCardInvoiceState": MemberCardInvoiceState, "InvoiceGroupContractorIC": InvoiceGroupContractorIC, "InvoiceGroupContractorDIC": InvoiceGroupContractorDIC, "InvoiceGroupContractorPhone": InvoiceGroupContractorPhone, "InvoiceGroupContractorEmail": InvoiceGroupContractorEmail, "InvoiceGroupWeb": InvoiceGroupWeb, "InvoiceGroupFileReference": InvoiceGroupFileReference, "InvoiceGroupBankAccount": InvoiceGroupBankAccount, "InvoiceGroupBankCode": InvoiceGroupBankCode, "InvoiceGroupBank": InvoiceGroupBank, "PaymentType": PaymentType, "QRCodeString": QRCodeString, "InvoiceGroupContractor": InvoiceGroupContractor, "InvoiceGroupContractorAddress": InvoiceGroupContractorAddress, "InvoiceBankAccount": InvoiceBankAccount}) # Načíst seznam typů členské karty def MemberCardTypeAll(self, ID_Login, ID_Person, FilterByAge, ID=None, DisplayName=None): return self._client.service.MemberCardTypeAll({"ID_Login": ID_Login, "ID_Person": ID_Person, "FilterByAge": FilterByAge, "ID": ID, "DisplayName": DisplayName}) # Načíst seznam členství osob v jednotce def MembershipAll(self, ID_Login, ID_Unit, ID_Person, OnlyDirectMember, IsSts, ShowHistory, IsValid, ID_MembershipType=None, ID_MembershipCategory=None, LastName=None, IdentificationCode=None, ShowLowerUnits=None): return self._client.service.MembershipAll({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "ID_Person": ID_Person, "OnlyDirectMember": OnlyDirectMember, "IsSts": IsSts, "ShowHistory": ShowHistory, "IsValid": IsValid, "ID_MembershipType": ID_MembershipType, "ID_MembershipCategory": ID_MembershipCategory, "LastName": LastName, "IdentificationCode": IdentificationCode, "ShowLowerUnits": ShowLowerUnits}) # Načíst seznam členství osob v jednotce def MembershipDetailPersonData(self, ID_Login, ID_Person): return self._client.service.MembershipDetailPersonData({"ID_Login": ID_Login, "ID_Person": ID_Person}) # Načíst zjednodušený seznam členství osoby def MembershipAllPersonList(self, ID_Login, ID_Person): return self._client.service.MembershipAllPersonList({"ID_Login": ID_Login, "ID_Person": ID_Person}) # Načíst seznam přihlášek bez souboru přihlášky def MembershipApplicationAllEmptyEnroll(self, ID_Login): return self._client.service.MembershipApplicationAllEmptyEnroll({"ID_Login": ID_Login}) # Načíst seznam přihlášek def MembershipApplicationAll(self, ID_Login, ID, ID_Unit, ID_Person, ID_MembershipApplicationState=None, MembershipApplicationStates=None): return self._client.service.MembershipApplicationAll({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Person": ID_Person, "ID_MembershipApplicationState": ID_MembershipApplicationState, "MembershipApplicationStates": MembershipApplicationStates}) # Načíst detail přihlášky pro sestavu def MembershipApplicationDetailReport(self, ID_Login, ID): return self._client.service.MembershipApplicationDetailReport({"ID_Login": ID_Login, "ID": ID}) # Načíst detail přihlášky def MembershipApplicationDetailAccessKey(self, ID_Login, ID_Application, AccessKey): return self._client.service.MembershipApplicationDetailAccessKey({"ID_Login": ID_Login, "ID_Application": ID_Application, "AccessKey": AccessKey}) # Načíst detail přihlášky def MembershipApplicationDetail(self, ID_Login, ID): return self._client.service.MembershipApplicationDetail({"ID_Login": ID_Login, "ID": ID}) # Založit přihlášku def MembershipApplicationInsert(self, ID_Login, ID, ID_Unit, ID_Person, ValidTo, AccessKey, IsValid, DateCreate, LastOpened, IsAdult, DateFilled, DateFinished, Birthday, DateState, IsForeign, ID_DistrictBirth, AllowDataStorage, AllowAudiovisual, AllowSocialNetwork, AllowMarketing, ID_Assurance, Unit=None, UnitTitle=None, LogoExtension=None, RegistrationNumber=None, ID_MembershipApplicationState=None, MembershipApplicationState=None, FirstName=None, LastName=None, FirstNameParent=None, LastNameParent=None, NoteParent=None, ParentNote=None, ParentType=None, ParentTypeCustom=None, FirstNameParent2=None, LastNameParent2=None, NoteParent2=None, Parent2Note=None, ParentType2=None, ParentTypeCustom2=None, Person=None, IdentificationCode=None, PhoneMainHelp=None, PhoneMainPlaceholder=None, EmailMainHelp=None, EmailMainPlaceholder=None, Reason=None, ID_Sex=None, Sex=None, MaidenName=None, ID_Citizenship=None, Citizenship=None, CitizenshipCustom=None, BirthCity=None, DistrictBirth=None, Degrees=None, ID_DegreeType1=None, ID_DegreeType2=None, ID_DegreeType3=None, Street=None, City=None, PostalFirstLine=None, State=None, Postcode=None, PostalStreet=None, PostalState=None, PostalPostcode=None, PostalCity=None, PhoneParent=None, EmailParent=None, PhoneParent2=None, EmailParent2=None, Phone=None, Email=None, InsuranceNumber=None, Allergy=None, Drugs=None, HealthLimitation=None, BodySkills=None, School=None, Assurance=None): return self._client.service.MembershipApplicationInsert({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Person": ID_Person, "ValidTo": ValidTo, "AccessKey": AccessKey, "IsValid": IsValid, "DateCreate": DateCreate, "LastOpened": LastOpened, "IsAdult": IsAdult, "DateFilled": DateFilled, "DateFinished": DateFinished, "Birthday": Birthday, "DateState": DateState, "IsForeign": IsForeign, "ID_DistrictBirth": ID_DistrictBirth, "AllowDataStorage": AllowDataStorage, "AllowAudiovisual": AllowAudiovisual, "AllowSocialNetwork": AllowSocialNetwork, "AllowMarketing": AllowMarketing, "ID_Assurance": ID_Assurance, "Unit": Unit, "UnitTitle": UnitTitle, "LogoExtension": LogoExtension, "RegistrationNumber": RegistrationNumber, "ID_MembershipApplicationState": ID_MembershipApplicationState, "MembershipApplicationState": MembershipApplicationState, "FirstName": FirstName, "LastName": LastName, "FirstNameParent": FirstNameParent, "LastNameParent": LastNameParent, "NoteParent": NoteParent, "ParentNote": ParentNote, "ParentType": ParentType, "ParentTypeCustom": ParentTypeCustom, "FirstNameParent2": FirstNameParent2, "LastNameParent2": LastNameParent2, "NoteParent2": NoteParent2, "Parent2Note": Parent2Note, "ParentType2": ParentType2, "ParentTypeCustom2": ParentTypeCustom2, "Person": Person, "IdentificationCode": IdentificationCode, "PhoneMainHelp": PhoneMainHelp, "PhoneMainPlaceholder": PhoneMainPlaceholder, "EmailMainHelp": EmailMainHelp, "EmailMainPlaceholder": EmailMainPlaceholder, "Reason": Reason, "ID_Sex": ID_Sex, "Sex": Sex, "MaidenName": MaidenName, "ID_Citizenship": ID_Citizenship, "Citizenship": Citizenship, "CitizenshipCustom": CitizenshipCustom, "BirthCity": BirthCity, "DistrictBirth": DistrictBirth, "Degrees": Degrees, "ID_DegreeType1": ID_DegreeType1, "ID_DegreeType2": ID_DegreeType2, "ID_DegreeType3": ID_DegreeType3, "Street": Street, "City": City, "PostalFirstLine": PostalFirstLine, "State": State, "Postcode": Postcode, "PostalStreet": PostalStreet, "PostalState": PostalState, "PostalPostcode": PostalPostcode, "PostalCity": PostalCity, "PhoneParent": PhoneParent, "EmailParent": EmailParent, "PhoneParent2": PhoneParent2, "EmailParent2": EmailParent2, "Phone": Phone, "Email": Email, "InsuranceNumber": InsuranceNumber, "Allergy": Allergy, "Drugs": Drugs, "HealthLimitation": HealthLimitation, "BodySkills": BodySkills, "School": School, "Assurance": Assurance}) # Načíst seznam stavů přihlášky def MembershipApplicationStateAll(self, ID_Login, ID=None, DisplayName=None): return self._client.service.MembershipApplicationStateAll({"ID_Login": ID_Login, "ID": ID, "DisplayName": DisplayName}) # Generovat PDF e-přihlášky def MembershipApplicationOtherGenerateEnroll(self, ID_Login, ID=None): return self._client.service.MembershipApplicationOtherGenerateEnroll({"ID_Login": ID_Login, "ID": ID}) # Upravit přihlášku def MembershipApplicationUpdateAccessKey(self, ID_Login, ID_Application, AccessKey, OnlyValidate, Birthday, IsForeign, ID_DegreeType1, ID_DegreeType2, ID_DegreeType3, ID_DistrictBirth, ID_PersonPersonParent, ID_PersonPersonParent2, ID_Assurance, CheckInfo, CheckAllowDataStorage, CheckAllowAudiovisual, CheckAllowSocialNetwork, CheckAllowMarketing, CheckCorrect, IsPostalSame, FirstName=None, LastName=None, ID_Sex=None, IdentificationCode=None, Address=None, Street=None, City=None, Postcode=None, State=None, PostalFirstLine=None, PostalAddress=None, PostalStreet=None, PostalCity=None, PostalPostcode=None, PostalState=None, Phone=None, Email=None, Note=None, MaidenName=None, ID_Citizenship=None, CitizenshipCustom=None, BirthCity=None, ID_ParentType=None, ParentTypeCustom=None, FirstNameParent=None, LastNameParent=None, EmailParent=None, PhoneParent=None, NoteParent=None, ID_ParentType2=None, ParentTypeCustom2=None, FirstNameParent2=None, LastNameParent2=None, EmailParent2=None, PhoneParent2=None, NoteParent2=None, InsuranceNumber=None, Allergy=None, Drugs=None, HealthLimitation=None, BodySkills=None, School=None, ParentNote=None): return self._client.service.MembershipApplicationUpdateAccessKey({"ID_Login": ID_Login, "ID_Application": ID_Application, "AccessKey": AccessKey, "OnlyValidate": OnlyValidate, "Birthday": Birthday, "IsForeign": IsForeign, "ID_DegreeType1": ID_DegreeType1, "ID_DegreeType2": ID_DegreeType2, "ID_DegreeType3": ID_DegreeType3, "ID_DistrictBirth": ID_DistrictBirth, "ID_PersonPersonParent": ID_PersonPersonParent, "ID_PersonPersonParent2": ID_PersonPersonParent2, "ID_Assurance": ID_Assurance, "CheckInfo": CheckInfo, "CheckAllowDataStorage": CheckAllowDataStorage, "CheckAllowAudiovisual": CheckAllowAudiovisual, "CheckAllowSocialNetwork": CheckAllowSocialNetwork, "CheckAllowMarketing": CheckAllowMarketing, "CheckCorrect": CheckCorrect, "IsPostalSame": IsPostalSame, "FirstName": FirstName, "LastName": LastName, "ID_Sex": ID_Sex, "IdentificationCode": IdentificationCode, "Address": Address, "Street": Street, "City": City, "Postcode": Postcode, "State": State, "PostalFirstLine": PostalFirstLine, "PostalAddress": PostalAddress, "PostalStreet": PostalStreet, "PostalCity": PostalCity, "PostalPostcode": PostalPostcode, "PostalState": PostalState, "Phone": Phone, "Email": Email, "Note": Note, "MaidenName": MaidenName, "ID_Citizenship": ID_Citizenship, "CitizenshipCustom": CitizenshipCustom, "BirthCity": BirthCity, "ID_ParentType": ID_ParentType, "ParentTypeCustom": ParentTypeCustom, "FirstNameParent": FirstNameParent, "LastNameParent": LastNameParent, "EmailParent": EmailParent, "PhoneParent": PhoneParent, "NoteParent": NoteParent, "ID_ParentType2": ID_ParentType2, "ParentTypeCustom2": ParentTypeCustom2, "FirstNameParent2": FirstNameParent2, "LastNameParent2": LastNameParent2, "EmailParent2": EmailParent2, "PhoneParent2": PhoneParent2, "NoteParent2": NoteParent2, "InsuranceNumber": InsuranceNumber, "Allergy": Allergy, "Drugs": Drugs, "HealthLimitation": HealthLimitation, "BodySkills": BodySkills, "School": School, "ParentNote": ParentNote}) # Dokončit přihlášku def MembershipApplicationUpdateFinish(self, ID_Login, ID, ID_Unit, ID_Person, ValidTo, AccessKey, IsValid, DateCreate, LastOpened, IsAdult, DateFilled, DateFinished, Birthday, DateState, IsForeign, ID_DistrictBirth, AllowDataStorage, AllowAudiovisual, AllowSocialNetwork, AllowMarketing, ID_Assurance, Unit=None, UnitTitle=None, LogoExtension=None, RegistrationNumber=None, ID_MembershipApplicationState=None, MembershipApplicationState=None, FirstName=None, LastName=None, FirstNameParent=None, LastNameParent=None, NoteParent=None, ParentNote=None, ParentType=None, ParentTypeCustom=None, FirstNameParent2=None, LastNameParent2=None, NoteParent2=None, Parent2Note=None, ParentType2=None, ParentTypeCustom2=None, Person=None, IdentificationCode=None, PhoneMainHelp=None, PhoneMainPlaceholder=None, EmailMainHelp=None, EmailMainPlaceholder=None, Reason=None, ID_Sex=None, Sex=None, MaidenName=None, ID_Citizenship=None, Citizenship=None, CitizenshipCustom=None, BirthCity=None, DistrictBirth=None, Degrees=None, ID_DegreeType1=None, ID_DegreeType2=None, ID_DegreeType3=None, Street=None, City=None, PostalFirstLine=None, State=None, Postcode=None, PostalStreet=None, PostalState=None, PostalPostcode=None, PostalCity=None, PhoneParent=None, EmailParent=None, PhoneParent2=None, EmailParent2=None, Phone=None, Email=None, InsuranceNumber=None, Allergy=None, Drugs=None, HealthLimitation=None, BodySkills=None, School=None, Assurance=None): return self._client.service.MembershipApplicationUpdateFinish({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Person": ID_Person, "ValidTo": ValidTo, "AccessKey": AccessKey, "IsValid": IsValid, "DateCreate": DateCreate, "LastOpened": LastOpened, "IsAdult": IsAdult, "DateFilled": DateFilled, "DateFinished": DateFinished, "Birthday": Birthday, "DateState": DateState, "IsForeign": IsForeign, "ID_DistrictBirth": ID_DistrictBirth, "AllowDataStorage": AllowDataStorage, "AllowAudiovisual": AllowAudiovisual, "AllowSocialNetwork": AllowSocialNetwork, "AllowMarketing": AllowMarketing, "ID_Assurance": ID_Assurance, "Unit": Unit, "UnitTitle": UnitTitle, "LogoExtension": LogoExtension, "RegistrationNumber": RegistrationNumber, "ID_MembershipApplicationState": ID_MembershipApplicationState, "MembershipApplicationState": MembershipApplicationState, "FirstName": FirstName, "LastName": LastName, "FirstNameParent": FirstNameParent, "LastNameParent": LastNameParent, "NoteParent": NoteParent, "ParentNote": ParentNote, "ParentType": ParentType, "ParentTypeCustom": ParentTypeCustom, "FirstNameParent2": FirstNameParent2, "LastNameParent2": LastNameParent2, "NoteParent2": NoteParent2, "Parent2Note": Parent2Note, "ParentType2": ParentType2, "ParentTypeCustom2": ParentTypeCustom2, "Person": Person, "IdentificationCode": IdentificationCode, "PhoneMainHelp": PhoneMainHelp, "PhoneMainPlaceholder": PhoneMainPlaceholder, "EmailMainHelp": EmailMainHelp, "EmailMainPlaceholder": EmailMainPlaceholder, "Reason": Reason, "ID_Sex": ID_Sex, "Sex": Sex, "MaidenName": MaidenName, "ID_Citizenship": ID_Citizenship, "Citizenship": Citizenship, "CitizenshipCustom": CitizenshipCustom, "BirthCity": BirthCity, "DistrictBirth": DistrictBirth, "Degrees": Degrees, "ID_DegreeType1": ID_DegreeType1, "ID_DegreeType2": ID_DegreeType2, "ID_DegreeType3": ID_DegreeType3, "Street": Street, "City": City, "PostalFirstLine": PostalFirstLine, "State": State, "Postcode": Postcode, "PostalStreet": PostalStreet, "PostalState": PostalState, "PostalPostcode": PostalPostcode, "PostalCity": PostalCity, "PhoneParent": PhoneParent, "EmailParent": EmailParent, "PhoneParent2": PhoneParent2, "EmailParent2": EmailParent2, "Phone": Phone, "Email": Email, "InsuranceNumber": InsuranceNumber, "Allergy": Allergy, "Drugs": Drugs, "HealthLimitation": HealthLimitation, "BodySkills": BodySkills, "School": School, "Assurance": Assurance}) # Odmítnout přihlášku def MembershipApplicationUpdateDeny(self, ID_Login, ID, ID_Unit, ID_Person, ValidTo, AccessKey, IsValid, DateCreate, LastOpened, IsAdult, DateFilled, DateFinished, Birthday, DateState, IsForeign, ID_DistrictBirth, AllowDataStorage, AllowAudiovisual, AllowSocialNetwork, AllowMarketing, ID_Assurance, Unit=None, UnitTitle=None, LogoExtension=None, RegistrationNumber=None, ID_MembershipApplicationState=None, MembershipApplicationState=None, FirstName=None, LastName=None, FirstNameParent=None, LastNameParent=None, NoteParent=None, ParentNote=None, ParentType=None, ParentTypeCustom=None, FirstNameParent2=None, LastNameParent2=None, NoteParent2=None, Parent2Note=None, ParentType2=None, ParentTypeCustom2=None, Person=None, IdentificationCode=None, PhoneMainHelp=None, PhoneMainPlaceholder=None, EmailMainHelp=None, EmailMainPlaceholder=None, Reason=None, ID_Sex=None, Sex=None, MaidenName=None, ID_Citizenship=None, Citizenship=None, CitizenshipCustom=None, BirthCity=None, DistrictBirth=None, Degrees=None, ID_DegreeType1=None, ID_DegreeType2=None, ID_DegreeType3=None, Street=None, City=None, PostalFirstLine=None, State=None, Postcode=None, PostalStreet=None, PostalState=None, PostalPostcode=None, PostalCity=None, PhoneParent=None, EmailParent=None, PhoneParent2=None, EmailParent2=None, Phone=None, Email=None, InsuranceNumber=None, Allergy=None, Drugs=None, HealthLimitation=None, BodySkills=None, School=None, Assurance=None): return self._client.service.MembershipApplicationUpdateDeny({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Person": ID_Person, "ValidTo": ValidTo, "AccessKey": AccessKey, "IsValid": IsValid, "DateCreate": DateCreate, "LastOpened": LastOpened, "IsAdult": IsAdult, "DateFilled": DateFilled, "DateFinished": DateFinished, "Birthday": Birthday, "DateState": DateState, "IsForeign": IsForeign, "ID_DistrictBirth": ID_DistrictBirth, "AllowDataStorage": AllowDataStorage, "AllowAudiovisual": AllowAudiovisual, "AllowSocialNetwork": AllowSocialNetwork, "AllowMarketing": AllowMarketing, "ID_Assurance": ID_Assurance, "Unit": Unit, "UnitTitle": UnitTitle, "LogoExtension": LogoExtension, "RegistrationNumber": RegistrationNumber, "ID_MembershipApplicationState": ID_MembershipApplicationState, "MembershipApplicationState": MembershipApplicationState, "FirstName": FirstName, "LastName": LastName, "FirstNameParent": FirstNameParent, "LastNameParent": LastNameParent, "NoteParent": NoteParent, "ParentNote": ParentNote, "ParentType": ParentType, "ParentTypeCustom": ParentTypeCustom, "FirstNameParent2": FirstNameParent2, "LastNameParent2": LastNameParent2, "NoteParent2": NoteParent2, "Parent2Note": Parent2Note, "ParentType2": ParentType2, "ParentTypeCustom2": ParentTypeCustom2, "Person": Person, "IdentificationCode": IdentificationCode, "PhoneMainHelp": PhoneMainHelp, "PhoneMainPlaceholder": PhoneMainPlaceholder, "EmailMainHelp": EmailMainHelp, "EmailMainPlaceholder": EmailMainPlaceholder, "Reason": Reason, "ID_Sex": ID_Sex, "Sex": Sex, "MaidenName": MaidenName, "ID_Citizenship": ID_Citizenship, "Citizenship": Citizenship, "CitizenshipCustom": CitizenshipCustom, "BirthCity": BirthCity, "DistrictBirth": DistrictBirth, "Degrees": Degrees, "ID_DegreeType1": ID_DegreeType1, "ID_DegreeType2": ID_DegreeType2, "ID_DegreeType3": ID_DegreeType3, "Street": Street, "City": City, "PostalFirstLine": PostalFirstLine, "State": State, "Postcode": Postcode, "PostalStreet": PostalStreet, "PostalState": PostalState, "PostalPostcode": PostalPostcode, "PostalCity": PostalCity, "PhoneParent": PhoneParent, "EmailParent": EmailParent, "PhoneParent2": PhoneParent2, "EmailParent2": EmailParent2, "Phone": Phone, "Email": Email, "InsuranceNumber": InsuranceNumber, "Allergy": Allergy, "Drugs": Drugs, "HealthLimitation": HealthLimitation, "BodySkills": BodySkills, "School": School, "Assurance": Assurance}) # Upravit přihlášku def MembershipApplicationUpdate(self, ID_Login, ID, ID_Unit, ID_Person, ValidTo, AccessKey, IsValid, DateCreate, LastOpened, IsAdult, DateFilled, DateFinished, Birthday, DateState, IsForeign, ID_DistrictBirth, AllowDataStorage, AllowAudiovisual, AllowSocialNetwork, AllowMarketing, ID_Assurance, Unit=None, UnitTitle=None, LogoExtension=None, RegistrationNumber=None, ID_MembershipApplicationState=None, MembershipApplicationState=None, FirstName=None, LastName=None, FirstNameParent=None, LastNameParent=None, NoteParent=None, ParentNote=None, ParentType=None, ParentTypeCustom=None, FirstNameParent2=None, LastNameParent2=None, NoteParent2=None, Parent2Note=None, ParentType2=None, ParentTypeCustom2=None, Person=None, IdentificationCode=None, PhoneMainHelp=None, PhoneMainPlaceholder=None, EmailMainHelp=None, EmailMainPlaceholder=None, Reason=None, ID_Sex=None, Sex=None, MaidenName=None, ID_Citizenship=None, Citizenship=None, CitizenshipCustom=None, BirthCity=None, DistrictBirth=None, Degrees=None, ID_DegreeType1=None, ID_DegreeType2=None, ID_DegreeType3=None, Street=None, City=None, PostalFirstLine=None, State=None, Postcode=None, PostalStreet=None, PostalState=None, PostalPostcode=None, PostalCity=None, PhoneParent=None, EmailParent=None, PhoneParent2=None, EmailParent2=None, Phone=None, Email=None, InsuranceNumber=None, Allergy=None, Drugs=None, HealthLimitation=None, BodySkills=None, School=None, Assurance=None): return self._client.service.MembershipApplicationUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Person": ID_Person, "ValidTo": ValidTo, "AccessKey": AccessKey, "IsValid": IsValid, "DateCreate": DateCreate, "LastOpened": LastOpened, "IsAdult": IsAdult, "DateFilled": DateFilled, "DateFinished": DateFinished, "Birthday": Birthday, "DateState": DateState, "IsForeign": IsForeign, "ID_DistrictBirth": ID_DistrictBirth, "AllowDataStorage": AllowDataStorage, "AllowAudiovisual": AllowAudiovisual, "AllowSocialNetwork": AllowSocialNetwork, "AllowMarketing": AllowMarketing, "ID_Assurance": ID_Assurance, "Unit": Unit, "UnitTitle": UnitTitle, "LogoExtension": LogoExtension, "RegistrationNumber": RegistrationNumber, "ID_MembershipApplicationState": ID_MembershipApplicationState, "MembershipApplicationState": MembershipApplicationState, "FirstName": FirstName, "LastName": LastName, "FirstNameParent": FirstNameParent, "LastNameParent": LastNameParent, "NoteParent": NoteParent, "ParentNote": ParentNote, "ParentType": ParentType, "ParentTypeCustom": ParentTypeCustom, "FirstNameParent2": FirstNameParent2, "LastNameParent2": LastNameParent2, "NoteParent2": NoteParent2, "Parent2Note": Parent2Note, "ParentType2": ParentType2, "ParentTypeCustom2": ParentTypeCustom2, "Person": Person, "IdentificationCode": IdentificationCode, "PhoneMainHelp": PhoneMainHelp, "PhoneMainPlaceholder": PhoneMainPlaceholder, "EmailMainHelp": EmailMainHelp, "EmailMainPlaceholder": EmailMainPlaceholder, "Reason": Reason, "ID_Sex": ID_Sex, "Sex": Sex, "MaidenName": MaidenName, "ID_Citizenship": ID_Citizenship, "Citizenship": Citizenship, "CitizenshipCustom": CitizenshipCustom, "BirthCity": BirthCity, "DistrictBirth": DistrictBirth, "Degrees": Degrees, "ID_DegreeType1": ID_DegreeType1, "ID_DegreeType2": ID_DegreeType2, "ID_DegreeType3": ID_DegreeType3, "Street": Street, "City": City, "PostalFirstLine": PostalFirstLine, "State": State, "Postcode": Postcode, "PostalStreet": PostalStreet, "PostalState": PostalState, "PostalPostcode": PostalPostcode, "PostalCity": PostalCity, "PhoneParent": PhoneParent, "EmailParent": EmailParent, "PhoneParent2": PhoneParent2, "EmailParent2": EmailParent2, "Phone": Phone, "Email": Email, "InsuranceNumber": InsuranceNumber, "Allergy": Allergy, "Drugs": Drugs, "HealthLimitation": HealthLimitation, "BodySkills": BodySkills, "School": School, "Assurance": Assurance}) # Načíst pozice užívání nemovistostí v dane oblasti def OccupationAllPositions(self, ID_Login, ID_Application, GpsLatitudeStart, GpsLongitudeStart, GpsLatitudeEnd, GpsLongitudeEnd, ID_Unit, IncludeChildUnits, Publish, ID_RealtyType, GpsLatitude, GpsLongitude, Distance, AdvertisingCategories=None): return self._client.service.OccupationAllPositions({"ID_Login": ID_Login, "ID_Application": ID_Application, "GpsLatitudeStart": GpsLatitudeStart, "GpsLongitudeStart": GpsLongitudeStart, "GpsLatitudeEnd": GpsLatitudeEnd, "GpsLongitudeEnd": GpsLongitudeEnd, "ID_Unit": ID_Unit, "IncludeChildUnits": IncludeChildUnits, "Publish": Publish, "ID_RealtyType": ID_RealtyType, "GpsLatitude": GpsLatitude, "GpsLongitude": GpsLongitude, "Distance": Distance, "AdvertisingCategories": AdvertisingCategories}) # Načíst seznam užívání nemovitosti def OccupationAllUnit(self, ID_Login, ID_Unit, IsActive): return self._client.service.OccupationAllUnit({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "IsActive": IsActive}) # Smazat užívání nemovitosti def OccupationDeleteRealty(self, ID_Login, ID): return self._client.service.OccupationDeleteRealty({"ID_Login": ID_Login, "ID": ID}) # Načíst užívání nemovistostí ze sloučené oblasti def OccupationAllGrouped(self, ID, ID_Unit, IncludeChildUnits, Publish, ID_RealtyType, GpsLatitude, GpsLongitude, Distance, ID_Login, ID_Application, AdvertisingCategories=None): return self._client.service.OccupationAllGrouped({"ID": ID, "ID_Unit": ID_Unit, "IncludeChildUnits": IncludeChildUnits, "Publish": Publish, "ID_RealtyType": ID_RealtyType, "GpsLatitude": GpsLatitude, "GpsLongitude": GpsLongitude, "Distance": Distance, "ID_Login": ID_Login, "ID_Application": ID_Application, "AdvertisingCategories": AdvertisingCategories}) # Načíst detail užívání nemovitosti def OccupationDetailRealtyDownload(self, ID_Login, ID, ID_Unit, ID_Realty, Publish, ID_RealtyType, Note=None, RealtyType=None): return self._client.service.OccupationDetailRealtyDownload({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "ID_Realty": ID_Realty, "Publish": Publish, "ID_RealtyType": ID_RealtyType, "Note": Note, "RealtyType": RealtyType}) # Načíst detail užívání nemovitosti def OccupationDetailRealty(self, ID_Login, ID, ID_Application): return self._client.service.OccupationDetailRealty({"ID_Login": ID_Login, "ID": ID, "ID_Application": ID_Application}) # Načíst seznam vybavení def OccupationEquipmentAll(self, ID_Login, ID_Application, ID, ID_RealtyType, DisplayName=None): return self._client.service.OccupationEquipmentAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID, "ID_RealtyType": ID_RealtyType, "DisplayName": DisplayName}) # Načíst seznam uživatelem spravovaných půjčitelných jednotek def OccupationRentAllBorrowable(self, ID_Login): return self._client.service.OccupationRentAllBorrowable({"ID_Login": ID_Login}) # Načíst seznam půjčitelných jednotek def OccupationRentAllPublic(self, ID_Application, ID_Login, BasePrice, ScoutPrice, ChildPrice, ID_Occupation, OccupationLanguageList=None, PriceTypeList=None): return self._client.service.OccupationRentAllPublic({"ID_Application": ID_Application, "ID_Login": ID_Login, "BasePrice": BasePrice, "ScoutPrice": ScoutPrice, "ChildPrice": ChildPrice, "ID_Occupation": ID_Occupation, "OccupationLanguageList": OccupationLanguageList, "PriceTypeList": PriceTypeList}) # Načíst detail půjčitelné jednotky def OccupationRentDetailPublic(self, ID_Application, ID, ID_Login): return self._client.service.OccupationRentDetailPublic({"ID_Application": ID_Application, "ID": ID, "ID_Login": ID_Login}) # Načíst seznam rezervací půjčitelné jednotky pro kalendář def OccupationRentReservationAllCalendar(self, ID_Login, ID_Application, ID, ShowAdminView, CalendarName=None, CalendarDescription=None): return self._client.service.OccupationRentReservationAllCalendar({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID, "ShowAdminView": ShowAdminView, "CalendarName": CalendarName, "CalendarDescription": CalendarDescription}) # Načíst seznam rezervací def OccupationRentReservationAllOverview(self, ID_Login, ID_OccupationRent, ID, ID_User, ID_OccupationRentReservationState=None): return self._client.service.OccupationRentReservationAllOverview({"ID_Login": ID_Login, "ID_OccupationRent": ID_OccupationRent, "ID": ID, "ID_User": ID_User, "ID_OccupationRentReservationState": ID_OccupationRentReservationState}) # Načíst seznam rezervací půjčitelné jednotky def OccupationRentReservationAll(self, ID_Login, ID_OccupationRent, ID, ID_User, ID_OccupationRentReservationState=None): return self._client.service.OccupationRentReservationAll({"ID_Login": ID_Login, "ID_OccupationRent": ID_OccupationRent, "ID": ID, "ID_User": ID_User, "ID_OccupationRentReservationState": ID_OccupationRentReservationState}) # Smazat rezervaci půjčitelné jednotky def OccupationRentReservationDelete(self, ID_Login, ID): return self._client.service.OccupationRentReservationDelete({"ID_Login": ID_Login, "ID": ID}) # Načíst detail rezervace půjčitelné jednotky def OccupationRentReservationDetail(self, ID_Application, ID_Login, ID): return self._client.service.OccupationRentReservationDetail({"ID_Application": ID_Application, "ID_Login": ID_Login, "ID": ID}) # Založit rezervaci půjčitelné jednotky def OccupationRentReservationInsert(self, ID_Login, ID, ID_User, ID_Occupation, ID_OccupationRent, ID_Unit, EstimatedStart, EstimatedEnd, RealStart, RealEnd, EstimatedPersonCount, LastUpdate, Created, ID_OccupationRentReservationState=None, OccupationRentReservationState=None, OccupationRent=None, Unit=None, RegistrationNumber=None, ContactPerson=None, ContactPhone=None, ContactMail=None, RejectionReason=None, Note=None): return self._client.service.OccupationRentReservationInsert({"ID_Login": ID_Login, "ID": ID, "ID_User": ID_User, "ID_Occupation": ID_Occupation, "ID_OccupationRent": ID_OccupationRent, "ID_Unit": ID_Unit, "EstimatedStart": EstimatedStart, "EstimatedEnd": EstimatedEnd, "RealStart": RealStart, "RealEnd": RealEnd, "EstimatedPersonCount": EstimatedPersonCount, "LastUpdate": LastUpdate, "Created": Created, "ID_OccupationRentReservationState": ID_OccupationRentReservationState, "OccupationRentReservationState": OccupationRentReservationState, "OccupationRent": OccupationRent, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "ContactPerson": ContactPerson, "ContactPhone": ContactPhone, "ContactMail": ContactMail, "RejectionReason": RejectionReason, "Note": Note}) # Upravit rezervaci půjčitelné jednotky def OccupationRentReservationUpdate(self, ID_Login, ID, ID_User, ID_Occupation, ID_OccupationRent, ID_Unit, EstimatedStart, EstimatedEnd, RealStart, RealEnd, EstimatedPersonCount, LastUpdate, Created, ID_OccupationRentReservationState=None, OccupationRentReservationState=None, OccupationRent=None, Unit=None, RegistrationNumber=None, ContactPerson=None, ContactPhone=None, ContactMail=None, RejectionReason=None, Note=None): return self._client.service.OccupationRentReservationUpdate({"ID_Login": ID_Login, "ID": ID, "ID_User": ID_User, "ID_Occupation": ID_Occupation, "ID_OccupationRent": ID_OccupationRent, "ID_Unit": ID_Unit, "EstimatedStart": EstimatedStart, "EstimatedEnd": EstimatedEnd, "RealStart": RealStart, "RealEnd": RealEnd, "EstimatedPersonCount": EstimatedPersonCount, "LastUpdate": LastUpdate, "Created": Created, "ID_OccupationRentReservationState": ID_OccupationRentReservationState, "OccupationRentReservationState": OccupationRentReservationState, "OccupationRent": OccupationRent, "Unit": Unit, "RegistrationNumber": RegistrationNumber, "ContactPerson": ContactPerson, "ContactPhone": ContactPhone, "ContactMail": ContactMail, "RejectionReason": RejectionReason, "Note": Note}) # Potvrdit rezervaci půjčitelné jednotky def OccupationRentReservationUpdateConfirm(self, ID_Login, ID): return self._client.service.OccupationRentReservationUpdateConfirm({"ID_Login": ID_Login, "ID": ID}) # Zrušit rezervaci půjčitelné jednotky def OccupationRentReservationUpdateReject(self, ID_Login, ID, RejectionReason=None): return self._client.service.OccupationRentReservationUpdateReject({"ID_Login": ID_Login, "ID": ID, "RejectionReason": RejectionReason}) # Upravit užívání nemovitosti def OccupationUpdateRealty(self, ID, ID_Login, Publish, IsBorrowable, Capacity, BorrowableForeign, IsBookable, ID_TempFilePhotoExtension, ID_TempFileRequirementExtension, Note=None, DisplayName=None, Person=None, Email=None, Phone=None, Web=None, Fotogallery=None, ContactNote=None, Requirements=None, CapacityNote=None, AccommodationNote=None, BookUrl=None, Tags=None, Equipment=None, Languages=None): return self._client.service.OccupationUpdateRealty({"ID": ID, "ID_Login": ID_Login, "Publish": Publish, "IsBorrowable": IsBorrowable, "Capacity": Capacity, "BorrowableForeign": BorrowableForeign, "IsBookable": IsBookable, "ID_TempFilePhotoExtension": ID_TempFilePhotoExtension, "ID_TempFileRequirementExtension": ID_TempFileRequirementExtension, "Note": Note, "DisplayName": DisplayName, "Person": Person, "Email": Email, "Phone": Phone, "Web": Web, "Fotogallery": Fotogallery, "ContactNote": ContactNote, "Requirements": Requirements, "CapacityNote": CapacityNote, "AccommodationNote": AccommodationNote, "BookUrl": BookUrl, "Tags": Tags, "Equipment": Equipment, "Languages": Languages}) # Založit užívání nemovitosti def OccupationInsertRealty(self, ID_Login, ID_Unit, ID_Realty, ID_RealtyType, Publish, IsBorrowable, Capacity, BorrowableForeign, IsBookable, ID_TempFilePhotoExtension, ID_TempFileRequirementExtension, BasePrice, ScoutPrice, ChildPrice, Note=None, DisplayName=None, Person=None, Email=None, Phone=None, Web=None, Fotogallery=None, ContactNote=None, Requirements=None, CapacityNote=None, AccommodationNote=None, Tags=None, Equipment=None, Languages=None, ID_OccupationRentPriceType=None, PriceNote=None): return self._client.service.OccupationInsertRealty({"ID_Login": ID_Login, "ID_Unit": ID_Unit, "ID_Realty": ID_Realty, "ID_RealtyType": ID_RealtyType, "Publish": Publish, "IsBorrowable": IsBorrowable, "Capacity": Capacity, "BorrowableForeign": BorrowableForeign, "IsBookable": IsBookable, "ID_TempFilePhotoExtension": ID_TempFilePhotoExtension, "ID_TempFileRequirementExtension": ID_TempFileRequirementExtension, "BasePrice": BasePrice, "ScoutPrice": ScoutPrice, "ChildPrice": ChildPrice, "Note": Note, "DisplayName": DisplayName, "Person": Person, "Email": Email, "Phone": Phone, "Web": Web, "Fotogallery": Fotogallery, "ContactNote": ContactNote, "Requirements": Requirements, "CapacityNote": CapacityNote, "AccommodationNote": AccommodationNote, "Tags": Tags, "Equipment": Equipment, "Languages": Languages, "ID_OccupationRentPriceType": ID_OccupationRentPriceType, "PriceNote": PriceNote}) # Načíst seznam jazyků def OccupationLanguageAll(self, ID_Login, ID_Application, ID=None, DisplayName=None): return self._client.service.OccupationLanguageAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID, "DisplayName": DisplayName}) # Načíst seznam půjčitelných jednotek def OccupationRentAll(self, ID_Login, ID_Application, ID_Occupation, ID, DisplayName=None): return self._client.service.OccupationRentAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_Occupation": ID_Occupation, "ID": ID, "DisplayName": DisplayName}) # Načíst detail půjčitelné jednotky def OccupationRentDetail(self, ID_Login, ID): return self._client.service.OccupationRentDetail({"ID_Login": ID_Login, "ID": ID}) # Načíst seznam vybavení def OccupationRentEquipmentAll(self, ID_Login, ID_Application, ID_Occupation, ID, ID_OccupationEquipment): return self._client.service.OccupationRentEquipmentAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_Occupation": ID_Occupation, "ID": ID, "ID_OccupationEquipment": ID_OccupationEquipment}) # Založit půjčitelnou jednotku def OccupationRentInsert(self, ID_Login, ID, ID_Occupation, IsActive, ID_TempFilePhotoExtension, ID_TempFileRequirementExtension, Capacity, BorrowableForeign, IsBookable, LastUpdate, ID_DocumentRequirement, ID_DocumentPhoto, DisplayName=None, Email=None, Phone=None, Web=None, PhotoExtension=None, Fotogallery=None, ContactNote=None, RequirementExtension=None, Requirements=None, CapacityNote=None, AccommodationNote=None, Person=None, Equipment=None, Tags=None, Languages=None): return self._client.service.OccupationRentInsert({"ID_Login": ID_Login, "ID": ID, "ID_Occupation": ID_Occupation, "IsActive": IsActive, "ID_TempFilePhotoExtension": ID_TempFilePhotoExtension, "ID_TempFileRequirementExtension": ID_TempFileRequirementExtension, "Capacity": Capacity, "BorrowableForeign": BorrowableForeign, "IsBookable": IsBookable, "LastUpdate": LastUpdate, "ID_DocumentRequirement": ID_DocumentRequirement, "ID_DocumentPhoto": ID_DocumentPhoto, "DisplayName": DisplayName, "Email": Email, "Phone": Phone, "Web": Web, "PhotoExtension": PhotoExtension, "Fotogallery": Fotogallery, "ContactNote": ContactNote, "RequirementExtension": RequirementExtension, "Requirements": Requirements, "CapacityNote": CapacityNote, "AccommodationNote": AccommodationNote, "Person": Person, "Equipment": Equipment, "Tags": Tags, "Languages": Languages}) # Načíst seznam jazyků def OccupationRentLanguageAll(self, ID_Login, ID_Application, ID_Occupation, ID, ID_OccupationLanguage=None): return self._client.service.OccupationRentLanguageAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_Occupation": ID_Occupation, "ID": ID, "ID_OccupationLanguage": ID_OccupationLanguage}) # Načíst seznam cen za pronájem def OccupationRentPriceAll(self, ID_Login, ID_Occupation, ID, ID_OccupationRentPriceType=None): return self._client.service.OccupationRentPriceAll({"ID_Login": ID_Login, "ID_Occupation": ID_Occupation, "ID": ID, "ID_OccupationRentPriceType": ID_OccupationRentPriceType}) # Smazat cenu za pronájem def OccupationRentPriceDelete(self, ID_Login, ID): return self._client.service.OccupationRentPriceDelete({"ID_Login": ID_Login, "ID": ID}) # Načíst detail ceny za pronájem def OccupationRentPriceDetail(self, ID_Login, ID): return self._client.service.OccupationRentPriceDetail({"ID_Login": ID_Login, "ID": ID}) # Založit cenu za pronájem def OccupationRentPriceInsert(self, ID_Login, ID, ID_Occupation, ID_OccupationRent, BasePrice, ScoutPrice, ChildPrice, OccupationRent=None, ID_OccupationRentPriceType=None, OccupationRentPriceType=None, PriceNote=None): return self._client.service.OccupationRentPriceInsert({"ID_Login": ID_Login, "ID": ID, "ID_Occupation": ID_Occupation, "ID_OccupationRent": ID_OccupationRent, "BasePrice": BasePrice, "ScoutPrice": ScoutPrice, "ChildPrice": ChildPrice, "OccupationRent": OccupationRent, "ID_OccupationRentPriceType": ID_OccupationRentPriceType, "OccupationRentPriceType": OccupationRentPriceType, "PriceNote": PriceNote}) # Načíst seznam typů ceny def OccupationRentPriceTypeAll(self, ID_Login, ID_Application, ID=None, DisplayName=None): return self._client.service.OccupationRentPriceTypeAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID, "DisplayName": DisplayName}) # Upravit cenu za pronájem def OccupationRentPriceUpdate(self, ID_Login, ID, ID_Occupation, ID_OccupationRent, BasePrice, ScoutPrice, ChildPrice, OccupationRent=None, ID_OccupationRentPriceType=None, OccupationRentPriceType=None, PriceNote=None): return self._client.service.OccupationRentPriceUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Occupation": ID_Occupation, "ID_OccupationRent": ID_OccupationRent, "BasePrice": BasePrice, "ScoutPrice": ScoutPrice, "ChildPrice": ChildPrice, "OccupationRent": OccupationRent, "ID_OccupationRentPriceType": ID_OccupationRentPriceType, "OccupationRentPriceType": OccupationRentPriceType, "PriceNote": PriceNote}) # Načíst seznam tagů pronajímatelné jednotky def OccupationRentTagAll(self, ID_Login, ID_Occupation, ID, ID_OccupationTag): return self._client.service.OccupationRentTagAll({"ID_Login": ID_Login, "ID_Occupation": ID_Occupation, "ID": ID, "ID_OccupationTag": ID_OccupationTag}) # Upravit půjčitelnou jednotku def OccupationRentUpdate(self, ID_Login, ID, ID_Occupation, IsActive, ID_TempFilePhotoExtension, ID_TempFileRequirementExtension, Capacity, BorrowableForeign, IsBookable, LastUpdate, ID_DocumentRequirement, ID_DocumentPhoto, DisplayName=None, Email=None, Phone=None, Web=None, PhotoExtension=None, Fotogallery=None, ContactNote=None, RequirementExtension=None, Requirements=None, CapacityNote=None, AccommodationNote=None, Person=None, Equipment=None, Tags=None, Languages=None): return self._client.service.OccupationRentUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Occupation": ID_Occupation, "IsActive": IsActive, "ID_TempFilePhotoExtension": ID_TempFilePhotoExtension, "ID_TempFileRequirementExtension": ID_TempFileRequirementExtension, "Capacity": Capacity, "BorrowableForeign": BorrowableForeign, "IsBookable": IsBookable, "LastUpdate": LastUpdate, "ID_DocumentRequirement": ID_DocumentRequirement, "ID_DocumentPhoto": ID_DocumentPhoto, "DisplayName": DisplayName, "Email": Email, "Phone": Phone, "Web": Web, "PhotoExtension": PhotoExtension, "Fotogallery": Fotogallery, "ContactNote": ContactNote, "RequirementExtension": RequirementExtension, "Requirements": Requirements, "CapacityNote": CapacityNote, "AccommodationNote": AccommodationNote, "Person": Person, "Equipment": Equipment, "Tags": Tags, "Languages": Languages}) # Načíst seznam tagů def OccupationTagAll(self, ID_Login, ID, DisplayName=None): return self._client.service.OccupationTagAll({"ID_Login": ID_Login, "ID": ID, "DisplayName": DisplayName}) # Načíst seznam typůtypu zákonného zástupce def ParentTypeAll(self, ID_Login, ID_Application, ID=None, DisplayName=None): return self._client.service.ParentTypeAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID, "DisplayName": DisplayName}) # Načíst seznam osob vzdělávací akce def PersonAllEventEducationApi(self, ID_Login, ID_Application, ID_EventEducation): return self._client.service.PersonAllEventEducationApi({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_EventEducation": ID_EventEducation}) # Načíst seznam osob def PersonAllGlobalSearch(self, ID_Login, ID_Application, UseParentCode, IdentificationCode=None, FirstName=None, LastName=None, Name=None): return self._client.service.PersonAllGlobalSearch({"ID_Login": ID_Login, "ID_Application": ID_Application, "UseParentCode": UseParentCode, "IdentificationCode": IdentificationCode, "FirstName": FirstName, "LastName": LastName, "Name": Name}) # Načíst seznam osob podle jména def PersonAllExternal(self, ID_Login, ID_Application, ID, ID_User, Top, DisplayName=None): return self._client.service.PersonAllExternal({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID": ID, "ID_User": ID_User, "Top": Top, "DisplayName": DisplayName}) # Načíst osoby k synchronizace google skupiny def PersonAllGoogleGroupSync(self, ID_Login, ID_GoogleGroup): return self._client.service.PersonAllGoogleGroupSync({"ID_Login": ID_Login, "ID_GoogleGroup": ID_GoogleGroup}) # Načíst seznam osob def PersonAllMemberCardPrint(self, ID_Login, ID_MemberCardPrint): return self._client.service.PersonAllMemberCardPrint({"ID_Login": ID_Login, "ID_MemberCardPrint": ID_MemberCardPrint}) # Načíst osoby ke změně def PersonChangeAllPersonChangeRequest(self, ID_Login, ID_PersonChangeRequest): return self._client.service.PersonChangeAllPersonChangeRequest({"ID_Login": ID_Login, "ID_PersonChangeRequest": ID_PersonChangeRequest}) # Načíst detail nových dat u změny u osoby def PersonChangeDetailChanges(self, ID_Login, ID_Application, AccessKey, ID): return self._client.service.PersonChangeDetailChanges({"ID_Login": ID_Login, "ID_Application": ID_Application, "AccessKey": AccessKey, "ID": ID}) # Načíst detail změny u osoby def PersonChangeDetail(self, ID_Login, ID_Application, AccessKey, ID): return self._client.service.PersonChangeDetail({"ID_Login": ID_Login, "ID_Application": ID_Application, "AccessKey": AccessKey, "ID": ID}) # Založit změnu u osoby podle žádosti o změnu def PersonChangeInsertPersonChangeRequestPerson(self, ID_Login, ID_PersonChangeRequestPerson, SendMessage): return self._client.service.PersonChangeInsertPersonChangeRequestPerson({"ID_Login": ID_Login, "ID_PersonChangeRequestPerson": ID_PersonChangeRequestPerson, "SendMessage": SendMessage}) # Ověření kódu pro změnu údajů osoby def PersonChangeOtherVerify(self, ID_Login, ID_Application, AccessKey, BirthDate, IsForeign, LastName=None, IdentificationCodeEnd=None, BirthCity=None): return self._client.service.PersonChangeOtherVerify({"ID_Login": ID_Login, "ID_Application": ID_Application, "AccessKey": AccessKey, "BirthDate": BirthDate, "IsForeign": IsForeign, "LastName": LastName, "IdentificationCodeEnd": IdentificationCodeEnd, "BirthCity": BirthCity}) # Načíst detail žádosti změn u osoby def PersonChangeRequestDetail(self, ID_Login, ID): return self._client.service.PersonChangeRequestDetail({"ID_Login": ID_Login, "ID": ID}) # Založit žádost změn u osoby def PersonChangeRequestInsert(self, ID_Login, ID, ID_Unit, Created, Sent, Text=None, Persons=None): return self._client.service.PersonChangeRequestInsert({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Created": Created, "Sent": Sent, "Text": Text, "Persons": Persons}) # Odeslat žádosti změn u osoby def PersonChangeRequestUpdate(self, ID_Login, ID, ID_Unit, Created, Sent, Text=None, Persons=None): return self._client.service.PersonChangeRequestUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Unit": ID_Unit, "Created": Created, "Sent": Sent, "Text": Text, "Persons": Persons}) # Dokončit změny u osoby def PersonChangeUpdateFinish(self, ID_Login, ID): return self._client.service.PersonChangeUpdateFinish({"ID_Login": ID_Login, "ID": ID}) # Změnit stav u změny u osoby def PersonChangeUpdateState(self, ID_Login, ID, ID_PersonChangeState=None): return self._client.service.PersonChangeUpdateState({"ID_Login": ID_Login, "ID": ID, "ID_PersonChangeState": ID_PersonChangeState}) # Upravit změnu u osoby def PersonChangeUpdate(self, ID_Login, ID_Application, AccessKey, OnlyValidate, Birthday, IsForeign, ID_DistrictBirth, ID_PersonParentPerson, ID_PersonParent, DeleteParent, ID_PersonParentPerson2, ID_PersonParent2, DeleteParent2, ID_Assurance, CheckCorrect, IsPostalSame, FirstName=None, LastName=None, ID_Sex=None, IdentificationCode=None, Address=None, Street=None, City=None, Postcode=None, State=None, PostalFirstLine=None, PostalAddress=None, PostalStreet=None, PostalCity=None, PostalPostcode=None, PostalState=None, Phone=None, Email=None, Note=None, MaidenName=None, ID_Citizenship=None, CitizenshipCustom=None, BirthCity=None, ID_ParentType=None, ParentTypeCustom=None, FirstNameParent=None, LastNameParent=None, EmailParent=None, PhoneParent=None, NoteParent=None, ParentNote=None, ID_ParentType2=None, ParentTypeCustom2=None, FirstNameParent2=None, LastNameParent2=None, EmailParent2=None, PhoneParent2=None, NoteParent2=None, Parent2Note=None, InsuranceNumber=None, Allergy=None, Drugs=None, HealthLimitation=None, BodySkills=None, School=None): return self._client.service.PersonChangeUpdate({"ID_Login": ID_Login, "ID_Application": ID_Application, "AccessKey": AccessKey, "OnlyValidate": OnlyValidate, "Birthday": Birthday, "IsForeign": IsForeign, "ID_DistrictBirth": ID_DistrictBirth, "ID_PersonParentPerson": ID_PersonParentPerson, "ID_PersonParent": ID_PersonParent, "DeleteParent": DeleteParent, "ID_PersonParentPerson2": ID_PersonParentPerson2, "ID_PersonParent2": ID_PersonParent2, "DeleteParent2": DeleteParent2, "ID_Assurance": ID_Assurance, "CheckCorrect": CheckCorrect, "IsPostalSame": IsPostalSame, "FirstName": FirstName, "LastName": LastName, "ID_Sex": ID_Sex, "IdentificationCode": IdentificationCode, "Address": Address, "Street": Street, "City": City, "Postcode": Postcode, "State": State, "PostalFirstLine": PostalFirstLine, "PostalAddress": PostalAddress, "PostalStreet": PostalStreet, "PostalCity": PostalCity, "PostalPostcode": PostalPostcode, "PostalState": PostalState, "Phone": Phone, "Email": Email, "Note": Note, "MaidenName": MaidenName, "ID_Citizenship": ID_Citizenship, "CitizenshipCustom": CitizenshipCustom, "BirthCity": BirthCity, "ID_ParentType": ID_ParentType, "ParentTypeCustom": ParentTypeCustom, "FirstNameParent": FirstNameParent, "LastNameParent": LastNameParent, "EmailParent": EmailParent, "PhoneParent": PhoneParent, "NoteParent": NoteParent, "ParentNote": ParentNote, "ID_ParentType2": ID_ParentType2, "ParentTypeCustom2": ParentTypeCustom2, "FirstNameParent2": FirstNameParent2, "LastNameParent2": LastNameParent2, "EmailParent2": EmailParent2, "PhoneParent2": PhoneParent2, "NoteParent2": NoteParent2, "Parent2Note": Parent2Note, "InsuranceNumber": InsuranceNumber, "Allergy": Allergy, "Drugs": Drugs, "HealthLimitation": HealthLimitation, "BodySkills": BodySkills, "School": School}) # Načíst seznam kontaktů rodičů osoby def PersonContactAllParent(self, ID_Login, ID_Person): return self._client.service.PersonContactAllParent({"ID_Login": ID_Login, "ID_Person": ID_Person}) # Detail změny kontaktu def PersonContactRequestDetail(self, ID_Login, ID): return self._client.service.PersonContactRequestDetail({"ID_Login": ID_Login, "ID": ID}) # Detail změnu kontaktu podle kódu def PersonContactRequestDetailCode(self, ID_Login, Code): return self._client.service.PersonContactRequestDetailCode({"ID_Login": ID_Login, "Code": Code}) # Upravit změnu kontaktu def PersonContactRequestUpdate(self, ID_Login, ID, ID_PersonContact, ValidTo, Created, ID_User, Completed, Code, ID_Person, IsCatalog, IsGa, ID_ContactRequestType=None, ContactRequestType=None, Person=None, ID_ContactType=None, ContactType=None, Value=None, Note=None): return self._client.service.PersonContactRequestUpdate({"ID_Login": ID_Login, "ID": ID, "ID_PersonContact": ID_PersonContact, "ValidTo": ValidTo, "Created": Created, "ID_User": ID_User, "Completed": Completed, "Code": Code, "ID_Person": ID_Person, "IsCatalog": IsCatalog, "IsGa": IsGa, "ID_ContactRequestType": ID_ContactRequestType, "ContactRequestType": ContactRequestType, "Person": Person, "ID_ContactType": ID_ContactType, "ContactType": ContactType, "Value": Value, "Note": Note}) # Nastavit viditelnost kontaktu def PersonContactUpdateHide(self, ID_Login, ID, IsHidden): return self._client.service.PersonContactUpdateHide({"ID_Login": ID_Login, "ID": ID, "IsHidden": IsHidden}) # Načtení informací o datech pro změnu def PersonDetailPersonChange(self, ID_Login, ID_Application, Code): return self._client.service.PersonDetailPersonChange({"ID_Login": ID_Login, "ID_Application": ID_Application, "Code": Code}) # Ověření, zda má osoba nárok na časopis zdarma def PersonDetailCanHaveFreeJournal(self, ID_Login, ID): return self._client.service.PersonDetailCanHaveFreeJournal({"ID_Login": ID_Login, "ID": ID}) # Načíst informace pro dashboard def PersonDetailDashboard(self, ID_Login): return self._client.service.PersonDetailDashboard({"ID_Login": ID_Login}) # Načtení počtu přijatých a nepřečtených zpráv osoby def PersonDetailMessageCount(self, ID_Login): return self._client.service.PersonDetailMessageCount({"ID_Login": ID_Login}) # Ověření, zda je osoba členem organizace def PersonDetailMembership(self, ID_Login, ID_Application, IdentificationCode=None): return self._client.service.PersonDetailMembership({"ID_Login": ID_Login, "ID_Application": ID_Application, "IdentificationCode": IdentificationCode}) # Načíst seznam zákonných zástupce osoby def PersonParentAll(self, ID_Login, ID_Application, ID_Person, ID, ID_PersonParent, ID_ParentType=None): return self._client.service.PersonParentAll({"ID_Login": ID_Login, "ID_Application": ID_Application, "ID_Person": ID_Person, "ID": ID, "ID_PersonParent": ID_PersonParent, "ID_ParentType": ID_ParentType}) # Smazat zákonného zástupce osoby def PersonParentDelete(self, ID_Login, ID): return self._client.service.PersonParentDelete({"ID_Login": ID_Login, "ID": ID}) # Načíst detail zákonného zástupce osoby def PersonParentDetail(self, ID_Login, ID): return self._client.service.PersonParentDetail({"ID_Login": ID_Login, "ID": ID}) # Založit zákonného zástupce osoby def PersonParentInsert(self, ID_Login, ID, ID_Person, ID_PersonParent, ParentHasAccount, Person=None, Parent=None, ID_ParentType=None, ParentType=None, FirstName=None, LastName=None, Phone=None, Email=None, Note=None, ParentNote=None, ParentCode=None): return self._client.service.PersonParentInsert({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "ID_PersonParent": ID_PersonParent, "ParentHasAccount": ParentHasAccount, "Person": Person, "Parent": Parent, "ID_ParentType": ID_ParentType, "ParentType": ParentType, "FirstName": FirstName, "LastName": LastName, "Phone": Phone, "Email": Email, "Note": Note, "ParentNote": ParentNote, "ParentCode": ParentCode}) # Upravit zákonného zástupce osoby def PersonParentUpdate(self, ID_Login, ID, ID_Person, ID_PersonParent, ParentHasAccount, Person=None, Parent=None, ID_ParentType=None, ParentType=None, FirstName=None, LastName=None, Phone=None, Email=None, Note=None, ParentNote=None, ParentCode=None): return self._client.service.PersonParentUpdate({"ID_Login": ID_Login, "ID": ID, "ID_Person": ID_Person, "ID_PersonParent": ID_PersonParent, "ParentHasAccount": ParentHasAccount, "Person": Person, "Parent": Parent, "ID_ParentType": ID_ParentType, "ParentType": ParentType, "FirstName": FirstName, "LastName": LastName, "Phone": Phone, "Email": Email, "Note": Note, "ParentNote": ParentNote, "ParentCode": ParentCode})
130.194755
2,413
0.785911
27,103
268,071
7.578755
0.061359
0.052243
0.062262
0.057218
0.762545
0.732512
0.703983
0.67839
0.638201
0.614838
0
0.000826
0.100843
268,071
2,058
2,414
130.258017
0.851351
0.065151
0
0
0
0
0.200007
0.026007
0
0
0
0
0
1
0.497087
false
0
0.000971
0.496117
0.996117
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
8
106689b6403eca6babb91b8e6e68e6e725c23984
11,039
py
Python
lib/pymedphys/tests/coordinates/test_transformations.py
ethanio12345/pymedphys
cb34c992de8d442eced3385018a194364060092d
[ "Apache-2.0" ]
207
2019-01-29T09:53:04.000Z
2022-03-26T10:34:03.000Z
lib/pymedphys/tests/coordinates/test_transformations.py
ethanio12345/pymedphys
cb34c992de8d442eced3385018a194364060092d
[ "Apache-2.0" ]
1,209
2019-01-29T07:52:27.000Z
2022-03-31T20:11:24.000Z
lib/pymedphys/tests/coordinates/test_transformations.py
ethanio12345/pymedphys
cb34c992de8d442eced3385018a194364060092d
[ "Apache-2.0" ]
58
2019-03-29T09:06:18.000Z
2022-03-24T07:44:22.000Z
# Copyright (C) 2019 Matthew Jennings # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from pymedphys._imports import numpy as np from pymedphys._utilities.transforms.affine import ( rotate_about_vector, rotate_about_x, rotate_about_y, rotate_about_z, translate, ) def get_single_and_multi_test_coords(): x_single = 1 y_single = 2 z_single = 3 test_coords_single = np.array((x_single, y_single, z_single)) number_of_coordinates = 11 x_multi = np.array(range(-1, number_of_coordinates - 1, 1)) y_multi = np.array(range(-2, 2 * (number_of_coordinates - 1), 2)) z_multi = np.array(range(-3, 3 * (number_of_coordinates - 1), 3)) test_coords_multi = np.array((x_multi, y_multi, z_multi)) return test_coords_single, test_coords_multi def test_rotate_about_vector(): test_coords_single, test_coords_multi = get_single_and_multi_test_coords() rotation_vector = np.array((2, 2, 2)) # Rotation of coords about own axis yields no change assert np.allclose( rotate_about_vector(np.array((1, 1, 1)), rotation_vector, 52), np.array((1, 1, 1)), ) assert np.allclose( rotate_about_vector(np.array((1, 1, 1)), rotation_vector, 52, active=True), np.array((1, 1, 1)), ) # Rotation of coords about each cardinal axis yields same result as axis rotation functions # Singles assert np.allclose( rotate_about_vector(test_coords_single, np.array((1, 0, 0)), 27), rotate_about_x(test_coords_single, 27), ) assert np.allclose( rotate_about_vector(test_coords_single, np.array((1, 0, 0)), 27, active=True), rotate_about_x(test_coords_single, 27, active=True), ) assert np.allclose( rotate_about_vector(test_coords_single, np.array((0, 1, 0)), 256), rotate_about_y(test_coords_single, 256), ) assert np.allclose( rotate_about_vector(test_coords_single, np.array((0, 1, 0)), 256, active=True), rotate_about_y(test_coords_single, 256, active=True), ) assert np.allclose( rotate_about_vector(test_coords_single, np.array((0, 0, 1)), 182), rotate_about_z(test_coords_single, 182), ) assert np.allclose( rotate_about_vector(test_coords_single, np.array((0, 0, 1)), 182, active=True), rotate_about_z(test_coords_single, 182, active=True), ) # Multis assert np.allclose( rotate_about_vector(test_coords_multi, np.array((1, 0, 0)), 27), rotate_about_x(test_coords_multi, 27), ) assert np.allclose( rotate_about_vector(test_coords_multi, np.array((1, 0, 0)), 27, active=True), rotate_about_x(test_coords_multi, 27, active=True), ) assert np.allclose( rotate_about_vector(test_coords_multi, np.array((0, 1, 0)), 256), rotate_about_y(test_coords_multi, 256), ) assert np.allclose( rotate_about_vector(test_coords_multi, np.array((0, 1, 0)), 256, active=True), rotate_about_y(test_coords_multi, 256, active=True), ) assert np.allclose( rotate_about_vector(test_coords_multi, np.array((0, 0, 1)), 182), rotate_about_z(test_coords_multi, 182), ) assert np.allclose( rotate_about_vector(test_coords_multi, np.array((0, 0, 1)), 182, active=True), rotate_about_z(test_coords_multi, 182, active=True), ) # Random test case verified against: http://www.nh.cas.cz/people/lazar/celler/online_tools.php assert np.allclose( rotate_about_vector(np.array((13, 29, -17)), np.array((41, -97, 61)), 197), np.array((-30.683355, 18.344803, -4.582567)), ) assert np.allclose( rotate_about_vector( np.array((13, 29, -17)), np.array((41, -97, 61)), 197, active=True ), np.array((-30.106782, 11.185686, -16.354268)), ) def test_rotate_about_x(): test_coords_single, test_coords_multi = get_single_and_multi_test_coords() x_s = test_coords_single[0] y_s = test_coords_single[1] z_s = test_coords_single[2] x_m = test_coords_multi[0] y_m = test_coords_multi[1] z_m = test_coords_multi[2] # Passive rotations assert np.allclose( rotate_about_x(test_coords_single, 90), np.array((x_s, z_s, np.negative(y_s))) ) assert np.allclose( rotate_about_x(test_coords_single, 180), np.array((x_s, np.negative(y_s), np.negative(z_s))), ) assert np.allclose( rotate_about_x(test_coords_single, 270), np.array((x_s, np.negative(z_s), y_s)) ) assert np.allclose( rotate_about_x(test_coords_multi, 90), np.array((x_m, z_m, np.negative(y_m))) ) assert np.allclose( rotate_about_x(test_coords_multi, 180), np.array((x_m, np.negative(y_m), np.negative(z_m))), ) assert np.allclose( rotate_about_x(test_coords_multi, 270), np.array((x_m, np.negative(z_m), y_m)) ) # Active rotations assert np.allclose( rotate_about_x(test_coords_single, 90, active=True), np.array((x_s, np.negative(z_s), y_s)), ) assert np.allclose( rotate_about_x(test_coords_single, 180, active=True), np.array((x_s, np.negative(y_s), np.negative(z_s))), ) assert np.allclose( rotate_about_x(test_coords_single, 270, active=True), np.array((x_s, z_s, np.negative(y_s))), ) assert np.allclose( rotate_about_x(test_coords_multi, 90, active=True), np.array((x_m, np.negative(z_m), y_m)), ) assert np.allclose( rotate_about_x(test_coords_multi, 180, active=True), np.array((x_m, np.negative(y_m), np.negative(z_m))), ) assert np.allclose( rotate_about_x(test_coords_multi, 270, active=True), np.array((x_m, z_m, np.negative(y_m))), ) def test_rotate_about_y(): test_coords_single, test_coords_multi = get_single_and_multi_test_coords() x_s = test_coords_single[0] y_s = test_coords_single[1] z_s = test_coords_single[2] x_m = test_coords_multi[0] y_m = test_coords_multi[1] z_m = test_coords_multi[2] # Passive assert np.allclose( rotate_about_y(test_coords_single, 90), np.array((np.negative(z_s), y_s, x_s)) ) assert np.allclose( rotate_about_y(test_coords_single, 180), np.array((np.negative(x_s), y_s, np.negative(z_s))), ) assert np.allclose( rotate_about_y(test_coords_single, 270), np.array((z_s, y_s, np.negative(x_s))) ) assert np.allclose( rotate_about_y(test_coords_multi, 90), np.array((np.negative(z_m), y_m, x_m)) ) assert np.allclose( rotate_about_y(test_coords_multi, 180), np.array((np.negative(x_m), y_m, np.negative(z_m))), ) assert np.allclose( rotate_about_y(test_coords_multi, 270), np.array((z_m, y_m, np.negative(x_m))) ) # Active assert np.allclose( rotate_about_y(test_coords_single, 90, active=True), np.array((z_s, y_s, np.negative(x_s))), ) assert np.allclose( rotate_about_y(test_coords_single, 180, active=True), np.array((np.negative(x_s), y_s, np.negative(z_s))), ) assert np.allclose( rotate_about_y(test_coords_single, 270, active=True), np.array((np.negative(z_s), y_s, x_s)), ) assert np.allclose( rotate_about_y(test_coords_multi, 90, active=True), np.array((z_m, y_m, np.negative(x_m))), ) assert np.allclose( rotate_about_y(test_coords_multi, 180, active=True), np.array((np.negative(x_m), y_m, np.negative(z_m))), ) assert np.allclose( rotate_about_y(test_coords_multi, 270, active=True), np.array((np.negative(z_m), y_m, x_m)), ) def test_rotate_about_z(): test_coords_single, test_coords_multi = get_single_and_multi_test_coords() x_s = test_coords_single[0] y_s = test_coords_single[1] z_s = test_coords_single[2] x_m = test_coords_multi[0] y_m = test_coords_multi[1] z_m = test_coords_multi[2] # Passive assert np.allclose( rotate_about_z(test_coords_single, 90), np.array((y_s, np.negative(x_s), z_s)) ) assert np.allclose( rotate_about_z(test_coords_single, 180), np.array((np.negative(x_s), np.negative(y_s), z_s)), ) assert np.allclose( rotate_about_z(test_coords_single, 270), np.array((np.negative(y_s), x_s, z_s)) ) assert np.allclose( rotate_about_z(test_coords_multi, 90), np.array((y_m, np.negative(x_m), z_m)) ) assert np.allclose( rotate_about_z(test_coords_multi, 180), np.array((np.negative(x_m), np.negative(y_m), z_m)), ) assert np.allclose( rotate_about_z(test_coords_multi, 270), np.array((np.negative(y_m), x_m, z_m)) ) # Active assert np.allclose( rotate_about_z(test_coords_single, 90, active=True), np.array((np.negative(y_s), x_s, z_s)), ) assert np.allclose( rotate_about_z(test_coords_single, 180, active=True), np.array((np.negative(x_s), np.negative(y_s), z_s)), ) assert np.allclose( rotate_about_z(test_coords_single, 270, active=True), np.array((y_s, np.negative(x_s), z_s)), ) assert np.allclose( rotate_about_z(test_coords_multi, 90, active=True), np.array((np.negative(y_m), x_m, z_m)), ) assert np.allclose( rotate_about_z(test_coords_multi, 180, active=True), np.array((np.negative(x_m), np.negative(y_m), z_m)), ) assert np.allclose( rotate_about_z(test_coords_multi, 270, active=True), np.array((y_m, np.negative(x_m), z_m)), ) def test_translate(): test_coords_single, test_coords_multi = get_single_and_multi_test_coords() assert np.allclose( translate(test_coords_single, np.array((10, 20, 30))), np.array((-9, -18, -27)) ) assert np.allclose( translate(test_coords_single, test_coords_single), np.array((0, 0, 0)) ) assert np.allclose( translate(test_coords_multi, np.array((1, 1, 1))), test_coords_multi - 1 ) assert np.allclose( translate(test_coords_single, np.array((10, 20, 30)), active=True), np.array((11, 22, 33)), ) assert np.allclose( translate(test_coords_single, np.array((-1, -2, -3)), active=True), np.array((0, 0, 0)), ) assert np.allclose( translate(test_coords_multi, np.array((1, 1, 1)), active=True), test_coords_multi + 1, )
33.15015
98
0.653592
1,712
11,039
3.903037
0.09229
0.160132
0.138881
0.171206
0.814726
0.8044
0.787638
0.762347
0.741395
0.731817
0
0.043247
0.216596
11,039
332
99
33.25
0.729417
0.078902
0
0.355805
0
0
0
0
0
0
0
0
0.217228
1
0.022472
false
0
0.007491
0
0.033708
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
10702f1be27fff046dc982e248036e17ad3004ee
86
py
Python
BC0_example/scripts/modules3/func3.py
AmelieLangenstein/business-cases-21-22
46a65c280a42ceb32d50ed91edc9e76ff2bbaf22
[ "MIT" ]
1
2022-02-20T09:35:45.000Z
2022-02-20T09:35:45.000Z
BC0_example/scripts/modules3/func3.py
AmelieLangenstein/business-cases-21-22
46a65c280a42ceb32d50ed91edc9e76ff2bbaf22
[ "MIT" ]
null
null
null
BC0_example/scripts/modules3/func3.py
AmelieLangenstein/business-cases-21-22
46a65c280a42ceb32d50ed91edc9e76ff2bbaf22
[ "MIT" ]
37
2022-02-16T14:02:08.000Z
2022-03-30T13:19:56.000Z
import inspect def my_location(): return inspect.getsourcefile(my_location)
14.333333
45
0.744186
10
86
6.2
0.7
0.322581
0
0
0
0
0
0
0
0
0
0
0.186047
86
6
46
14.333333
0.885714
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0.333333
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
1
1
0
0
8
107296b810c0a5963f16df1bc5554b2904f8709b
311
py
Python
cumulusci/tasks/robotframework/__init__.py
davisagli/CumulusCI
fd74c324ad3ff662484b159395c639879011e711
[ "BSD-3-Clause" ]
163
2018-09-13T18:49:34.000Z
2022-03-25T08:37:15.000Z
cumulusci/tasks/robotframework/__init__.py
davisagli/CumulusCI
fd74c324ad3ff662484b159395c639879011e711
[ "BSD-3-Clause" ]
1,280
2018-09-11T20:09:37.000Z
2022-03-31T18:40:21.000Z
cumulusci/tasks/robotframework/__init__.py
davisagli/CumulusCI
fd74c324ad3ff662484b159395c639879011e711
[ "BSD-3-Clause" ]
125
2015-01-17T16:05:39.000Z
2018-09-06T19:05:00.000Z
from cumulusci.tasks.robotframework.robotframework import Robot # noqa: F401 from cumulusci.tasks.robotframework.robotframework import RobotTestDoc # noqa: F401 from cumulusci.tasks.robotframework.libdoc import RobotLibDoc # noqa: F401 from cumulusci.tasks.robotframework.lint import RobotLint # noqa: F401
62.2
84
0.832797
36
311
7.194444
0.361111
0.200772
0.277992
0.494208
0.741313
0.741313
0
0
0
0
0
0.043011
0.102894
311
4
85
77.75
0.885305
0.138264
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
7
52d59ae73df90d33e54b87a03e2b421350801640
1,052
py
Python
config/config_ar.py
jxhe/cross-lingual-struct-flow
8fb90fef4f6fcd79c42fc6aefec5418ca5e54833
[ "MIT" ]
25
2019-06-07T13:47:43.000Z
2020-09-26T08:23:35.000Z
config/config_ar.py
jxhe/cross-lingual-struct-flow
8fb90fef4f6fcd79c42fc6aefec5418ca5e54833
[ "MIT" ]
1
2019-11-27T08:05:29.000Z
2020-11-29T02:10:37.000Z
config/config_ar.py
jxhe/cross-lingual-struct-flow
8fb90fef4f6fcd79c42fc6aefec5418ca5e54833
[ "MIT" ]
3
2019-07-21T09:48:27.000Z
2021-02-28T13:56:47.000Z
params_markov={ "couple_layers": 8, "cell_layers": 1, "lstm_layers": 2, "valid_nepoch": 1, "epochs": 10, "batch_size": 16, "emb_dir": "fastText_data", "train_file": "ud-treebanks-v2.2/UD_Arabic-PADT/ar_padt-ud-train.conllu", "val_file": "ud-treebanks-v2.2/UD_Arabic-PADT/ar_padt-ud-dev.conllu", "test_file": "ud-treebanks-v2.2/UD_Arabic-PADT/ar_padt-ud-test.conllu", "vec_file": "fastText_data/wiki.ar.padt.vec.new", "align_file": "multilingual_trans/alignment_matrices/ar.txt" } params_dmv={ "couple_layers": 8, "cell_layers": 1, "valid_nepoch": 1, "lstm_layers": 2, "epochs": 5, "batch_size": 16, "emb_dir": "fastText_data", "train_file": "ud-treebanks-v2.2/UD_Arabic-PADT/ar_padt-ud-train.conllu", "val_file": "ud-treebanks-v2.2/UD_Arabic-PADT/ar_padt-ud-dev.conllu", "test_file": "ud-treebanks-v2.2/UD_Arabic-PADT/ar_padt-ud-test.conllu", "vec_file": "fastText_data/wiki.ar.padt.vec.new", "align_file": "multilingual_trans/alignment_matrices/ar.txt" }
36.275862
77
0.674905
164
1,052
4.060976
0.262195
0.072072
0.135135
0.153153
0.876877
0.876877
0.804805
0.804805
0.804805
0.804805
0
0.029867
0.140684
1,052
29
78
36.275862
0.706858
0
0
0.785714
0
0
0.704653
0.461538
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
f492db211b24a07041be6d92c83d994861cedb1a
37,649
py
Python
configurations.py
abhishekmaha23/synthetic_data_generation_attempt
99ee858cdf405641fd0e2797bfc14c1a736547eb
[ "Unlicense" ]
null
null
null
configurations.py
abhishekmaha23/synthetic_data_generation_attempt
99ee858cdf405641fd0e2797bfc14c1a736547eb
[ "Unlicense" ]
null
null
null
configurations.py
abhishekmaha23/synthetic_data_generation_attempt
99ee858cdf405641fd0e2797bfc14c1a736547eb
[ "Unlicense" ]
null
null
null
import torch import os import numpy as np import random from env_config import * class BasicConfig(object): def __init__(self, run_id, env_name, params): print('Starting run - ', run_id) self.env_name = env_name print('Environment', env_name) print('Method', params['method']) print('Algorithm', params['algorithm'], ' - Family', params['family']) print('Memory Type', params['memory_type']) if params['algorithm'] is None: log_folder = params['method'] else: log_folder = params['method'] + '-' + params['algorithm'] log_folder = os.path.join(log_folder, env_name) # General self.run_id = run_id self.method = params['method'] self.algorithm = params['algorithm'] self.memory_type = params['memory_type'] self.family = params['family'] self.comment = 'Integrating phenomenal changes. Crowd going wild. Chants going around - ...Abhishek, Abhishek, Abhishek...' self.log_path = os.path.join(os.getcwd(), 'logs', log_folder, str(run_id)) self.plot_save_iterations = 50 # Only used for intervals of testing agent performance, rest Gaussian smoothed self.plot_smoothing_sigma = 2 self.dev = "cpu" # self.dev = "cuda:0" self.multiprocessing_cpu_cores = 5 # Unsolved issues with torch.multiprocessing self.multi = False # Reproducibility efforts # self.seed = 1234 # torch.manual_seed(self.seed) # torch.cuda.manual_seed_all(self.seed) # np.random.seed(self.seed) # torch.backends.cudnn.deterministic = True # torch.backends.cudnn.benchmark = False # random.seed(self.seed) class SupervisedConfig(BasicConfig): def __init__(self, run_id, env_name, params): super(SupervisedConfig, self).__init__(run_id, env_name, params) self.current_episode = 0 class GeneticConfig(BasicConfig): def __init__(self, run_id, env_name, params): super(GeneticConfig, self).__init__(run_id, env_name, params) self.population_size = 200 self.num_of_generations = 200 self.plot_save_iterations = 50 # Only used for intervals of testing agent performance, rest Gaussian smoothed self.plot_smoothing_sigma = 2 self.population_save_iterations = 1 self.elite_per_gen = 15 self.truncate_fraction = 0.5 self.current_generation = 0 self.ending_generation = 0 class CartpoleGeneticConfig(GeneticConfig): def __init__(self, run_id, env_name, params): super(CartpoleGeneticConfig, self).__init__(run_id, env_name, params) self.actor_type = 'random' # 'random' or 'standard' self.actor_batch_norm = True self.actor_random_layer_range = (1, 2) # used for random self.actor_random_dim_range = (30, 80) # used for random self.actor_standard_dim_num = 64 # used for standard self.actor_standard_layer_num = 1 # used for standard self.actor_init_learning_rate = 0.01 self.generator_noise_vector_size = 16 # Per action sample comes with a vector of length 8 atm self.generator_action_vector_size = 16 self.generator_input_size = self.generator_noise_vector_size + self.generator_action_vector_size self.generator_input_sample_length = 64 self.generator_batch_norm = True self.generator_type = 'simple' # simple, complex, complexer (unused) self.generator_learning_rate = 1e-1 self.generator_min_lr_scaler = 1e-1 self.inner_loop_iterations = 1 # Actor training steps self.ended_early = False self.generator_testing_loops = 4 # Number of random agents tested self.actor_testing_loops = 4 # Number of tests per agent (reduced due to multiprocessing hiccups) self.retest_generator_testing_loops = 10 self.retest_actor_testing_loops = 10 self.mutation_power = 0.5 # For generator to mutate into other possibilities self.normalize_states = False self.scale_states = False if env_name == 'CartPole-v0': self.env_config = CartPolev0Config if env_name == 'CartPole-v1': self.env_config = CartPolev1Config self.state_dim = 4 self.action_dim = 2 self.env_max_timesteps = None class CartpoleSupervisedConfig(SupervisedConfig): def __init__(self, run_id, env_name, params): super(CartpoleSupervisedConfig, self).__init__(run_id, env_name, params) self.plot_save_iterations = 10 # Resetting some specific Cartpole plots self.plot_smoothing_sigma = 2 self.actor_type = 'random' # 'random' or 'standard' self.actor_batch_norm = True self.actor_random_layer_range = (1, 3) # used for random self.actor_random_dim_range = (30, 200) # used for random self.actor_standard_dim_num = 64 # used for standard self.actor_standard_layer_num = 1 # used for standard self.actor_init_learning_rate = 0.01 self.actor_rl_learning_rate = 0.01 self.generator_noise_vector_size = 16 # Per action sample comes with a vector of length 8 atm self.generator_action_vector_size = 16 self.generator_input_size = self.generator_noise_vector_size + self.generator_action_vector_size self.generator_input_sample_length = 25 self.generator_batch_norm = True self.generator_type = 'simple' # simple, complex, complexer (unused) self.generator_learning_rate = 1e-1 self.generator_min_lr_scaler = 1e-1 self.critic_batch_norm = False self.critic_type = 'simple' # simple, complex, complexer (unused) self.reward_size = 1 self.critic_learning_rate = 0.01 self.clip_grad_norm = True # Attempting a clipping of the gradients for general purposes. self.max_grad_norm = 0.5 self.outer_loop_iterations = 1000 # Generator training steps self.inner_loop_iterations = 1 # Actor training steps self.generator_testing_loops = 10 # Number of random agents tested self.actor_testing_loops = 10 # Number of tests per agent (reduced due to multiprocessing hiccups) self.retest_generator_testing_loops = 10 # If initial check worked out, then do multiple more times. self.retest_actor_testing_loops = 10 self.discount_factor = 0.99 self.normalize_states = False self.scale_states = True self.normalize_rewards_and_advantages = True # In calculation of the # Algorithm specific # A2C and PPO # On policy self.rollout_update_type = 'trajectory' # Either 'trajectory' or 'batch' self.onpol_batch_size = 200 self.include_entropy_in_ppo = False self.entropy_coefficient = 0.01 self.num_ppo_steps = 5 self.ppo_clip = 0.2 # Off policy # TD3 and SAC (experimental) self.offpol_batch_size = 500 # Setting this value even if it won't be used. if env_name == 'CartPole-v0': self.env_config = CartPolev0Config if env_name == 'CartPole-v1': self.env_config = CartPolev1Config self.state_dim = 4 self.action_dim = 2 self.env_max_timesteps = 200 self.ended_early = False class MountainCarSupervisedConfig(SupervisedConfig): def __init__(self, run_id, env_name, method='supervised', algorithm='PPO', memory_type='onpolicy'): super(MountainCarSupervisedConfig, self).__init__(run_id, env_name, method, algorithm, memory_type=memory_type) self.plot_save_iterations = 30 # Resetting some specific Cartpole plots self.plot_smoothing_sigma = 2 self.actor_type = 'random' # 'random' or 'standard' self.actor_batch_norm = True self.actor_random_layer_range = (1, 2) # used for random self.actor_random_dim_range = (30, 200) # used for random self.actor_standard_dim_num = 64 # used for standard self.actor_standard_layer_num = 1 # used for standard self.actor_learning_rate = 0.01 self.generator_noise_vector_size = 16 # Per action sample comes with a vector of length 8 atm self.generator_action_vector_size = 16 self.generator_input_size = self.generator_noise_vector_size + self.generator_action_vector_size self.generator_input_sample_length = 512 self.generator_batch_norm = True self.generator_type = 'simple' # simple, complex, complexer (unused) self.generator_learning_rate = 2e-1 self.generator_min_lr_scaler = 1e-1 self.critic_batch_norm = False self.critic_type = 'simple' # simple, complex, complexer (unused) self.reward_size = 1 self.critic_learning_rate = 0.01 self.clip_grad_norm = True # Attempting a clipping of the gradients for general purposes. self.max_grad_norm = 0.5 self.outer_loop_iterations = 3 # Generator training steps self.inner_loop_iterations = 1 # Actor training steps self.generator_testing_loops = 10 # Number of random agents tested self.actor_testing_loops = 10 # Number of tests per agent (reduced due to multiprocessing hiccups) self.retest_generator_testing_loops = 10 # If initial check worked out, then do multiple more times. self.retest_actor_testing_loops = 10 self.discount_factor = 0.99 self.normalize_states = False self.scale_states = True self.normalize_rewards_and_advantages = True # In calculation of the # Algorithm specific # A2C and PPO # On policy self.rollout_update_type = 'trajectory' # Either 'trajectory' or 'batch' self.onpol_batch_size = 200 self.include_entropy_in_ppo = True self.entropy_coefficient = 0.1 self.num_ppo_steps = 4 self.ppo_clip = 0.2 # Off policy # TD3 and SAC (experimental) (Won't work for discrete spaces) self.offpol_batch_size = 500 if env_name == 'MountainCar-v0': self.env_config = MountainCarDiscretev0Config self.state_dim = 2 self.action_dim = 3 self.env_max_timesteps = 250 self.ended_early = False class AcrobotSupervisedConfig(SupervisedConfig): def __init__(self, run_id, env_name, method='supervised', algorithm='PPO', memory_type='onpolicy'): super(AcrobotSupervisedConfig, self).__init__(run_id, env_name, method, algorithm, memory_type=memory_type) self.plot_save_iterations = 20 # Resetting some specific Cartpole plots self.plot_smoothing_sigma = 2 self.actor_type = 'random' # 'random' or 'standard' self.actor_batch_norm = True self.actor_random_layer_range = (1, 2) # used for random self.actor_random_dim_range = (30, 80) # used for random self.actor_standard_dim_num = 64 # used for standard self.actor_standard_layer_num = 1 # used for standard self.actor_init_learning_rate = 0.01 self.actor_rl_learning_rate = 0.01 self.generator_noise_vector_size = 16 # Per action sample comes with a vector of length 8 atm self.generator_action_vector_size = 16 self.generator_input_size = self.generator_noise_vector_size + self.generator_action_vector_size self.generator_input_sample_length = 100 self.generator_batch_norm = True self.generator_type = 'simple' # simple, complex, complexer (unused) self.generator_learning_rate = 1e-1 self.generator_min_lr_scaler = 1e-1 self.critic_batch_norm = False self.critic_type = 'simple' # simple, complex, complexer (unused) self.reward_size = 1 self.critic_learning_rate = 0.01 self.clip_grad_norm = True # Attempting a clipping of the gradients for general purposes. self.max_grad_norm = 0.5 self.outer_loop_iterations = 10000 # Generator training steps self.inner_loop_iterations = 1 # Actor training steps self.generator_testing_loops = 10 # Number of random agents tested self.actor_testing_loops = 10 # Number of tests per agent (reduced due to multiprocessing hiccups) self.retest_generator_testing_loops = 10 # If initial check worked out, then do multiple more times. self.retest_actor_testing_loops = 10 self.discount_factor = 0.99 self.normalize_states = False self.scale_states = True self.normalize_rewards_and_advantages = True # In calculation of the # Algorithm specific # A2C and PPO # On policy self.rollout_update_type = 'trajectory' # Either 'trajectory' or 'batch' self.onpol_batch_size = 200 self.include_entropy_in_ppo = False self.entropy_coefficient = 0.01 self.num_ppo_steps = 5 self.ppo_clip = 0.2 # Off policy # TD3 and SAC (experimental) self.offpol_batch_size = 500 # Setting this value even if it won't be used. if env_name == 'Acrobot-v1': self.env_config = Acrobotv1Config self.state_dim = 6 self.action_dim = 3 self.env_max_timesteps = 300 self.ended_early = False class LunarLanderGeneticConfig(GeneticConfig): def __init__(self, run_id, env_name, params=None): super(LunarLanderGeneticConfig, self).__init__(run_id, env_name, params) self.actor_type = 'random' # 'random' or 'standard' self.actor_batch_norm = True self.actor_random_layer_range = (1, 2) # used for random self.actor_random_dim_range = (30, 80) # used for random self.actor_standard_dim_num = 64 # used for standard self.actor_standard_layer_num = 1 # used for standard self.actor_init_learning_rate = 0.1 self.generator_noise_vector_size = 16 # Per action sample comes with a vector of length 8 atm self.generator_action_vector_size = 16 self.generator_input_size = self.generator_noise_vector_size + self.generator_action_vector_size self.generator_input_sample_length = 200 self.generator_batch_norm = True self.generator_type = 'simple' # simple, complex, complexer (unused) self.generator_learning_rate = 1e-1 self.generator_min_lr_scaler = 1e-1 self.inner_loop_iterations = 1 # Actor training steps self.ended_early = False self.generator_testing_loops = 5 # Number of random agents tested self.actor_testing_loops = 2 # Number of tests per agent (reduced due to multiprocessing hiccups) self.retest_generator_testing_loops = 10 self.retest_actor_testing_loops = 10 self.mutation_power = 0.5 # For generator to mutate into other possibilities self.normalize_states = False self.scale_states = False if env_name == 'LunarLander-v2': self.env_config = LunarLanderv2Config self.state_dim = 8 self.action_dim = 4 self.env_max_timesteps = 300 class LunarLanderSupervisedConfig(SupervisedConfig): def __init__(self, run_id, env_name, params): super(LunarLanderSupervisedConfig, self).__init__(run_id, env_name, params) self.actor_type = 'random' # 'random' or 'standard' self.actor_batch_norm = True self.actor_random_layer_range = (1, 2) # used for random self.actor_random_dim_range = (30, 80) # used for random self.actor_standard_dim_num = 64 # used for standard self.actor_standard_layer_num = 1 # used for standard self.actor_init_learning_rate = 0.1 self.generator_noise_vector_size = 16 # Per action sample comes with a vector of length 8 atm self.generator_action_vector_size = 16 self.generator_input_size = self.generator_noise_vector_size + self.generator_action_vector_size self.generator_input_sample_length = 200 self.generator_batch_norm = True self.generator_type = 'simple' # simple, complex, complexer (unused) self.generator_learning_rate = 2e-1 self.generator_min_lr_scaler = 1e-1 self.clip_grad_norm = True # Attempting a clipping of the gradients for general purposes. self.max_grad_norm = 0.5 self.critic_batch_norm = False self.critic_type = 'simple' # simple, complex, complexer (unused) self.reward_size = 1 self.critic_learning_rate = 0.1 self.outer_loop_iterations = 1000 # Generator training steps self.inner_loop_iterations = 2 # Actor training steps self.generator_testing_loops = 10 # Number of random agents tested self.actor_testing_loops = 10 # Number of tests per agent (reduced due to multiprocessing hiccups) self.retest_generator_testing_loops = 10 # If initial check worked out, then do multiple more times. self.retest_actor_testing_loops = 10 self.discount_factor = 0.99 self.normalize_states = False self.scale_states = True self.normalize_rewards_and_advantages = True # In calculation of the # Algorithm specific # A2C and PPO # On policy self.rollout_update_type = 'trajectory' # Either 'trajectory' or 'batch' self.onpol_batch_size = 500 self.include_entropy_in_ppo = False self.entropy_coefficient = 0.1 self.num_ppo_steps = 4 self.ppo_clip = 0.2 # Off policy # TD3 and SAC (experimental) (Won't work for discrete spaces) self.offpol_batch_size = 500 if env_name == 'LunarLander-v2': self.env_config = LunarLanderv2Config self.state_dim = 8 self.action_dim = 4 self.env_max_timesteps = 300 self.ended_early = False class PendulumSupervisedConfig(SupervisedConfig): def __init__(self, run_id, env_name, params): super(PendulumSupervisedConfig, self).__init__(run_id, env_name, params) self.plot_save_iterations = 40 # Resetting some specific Cartpole plots self.plot_smoothing_sigma = 2 self.actor_type = 'random' # 'random' or 'standard' self.actor_batch_norm = True self.actor_random_layer_range = (1, 2) # used for random self.actor_random_dim_range = (30, 200) # used for random self.actor_standard_dim_num = 64 # used for standard self.actor_standard_layer_num = 1 # used for standard self.actor_init_learning_rate = 0.1 self.actor_rl_learning_rate = 0.01 self.generator_action_vector_size = 1 self.generator_input_size = self.generator_action_vector_size self.generator_input_sample_length = 50 self.generator_batch_norm = True self.generator_type = 'simple' # simple, complex, complexer (unused) self.generator_learning_rate = 2e-1 self.generator_min_lr_scaler = 1e-1 self.critic_batch_norm = False self.critic_type = 'simple' # simple, complex, complexer (unused) self.reward_size = 1 self.critic_learning_rate = 0.01 self.clip_grad_norm = True # Attempting a clipping of the gradients for stability purposes. self.max_grad_norm = 0.5 self.outer_loop_iterations = 1000 # Generator training steps self.inner_loop_iterations = 1 # Actor training steps self.generator_testing_loops = 3 # Number of random agents tested self.actor_testing_loops = 3 # Number of tests per agent (reduced due to multiprocessing hiccups) self.retest_generator_testing_loops = 10 # If initial check worked out, then do multiple more times. self.retest_actor_testing_loops = 10 self.discount_factor = 0.99 self.normalize_states = False self.scale_states = True self.normalize_rewards_and_advantages = True # In calculation of the # Algorithm specific # A2C and PPO # On policy self.rollout_update_type = 'trajectory' # Either 'trajectory' or 'batch' self.onpol_batch_size = 200 self.include_entropy_in_ppo = True self.entropy_coefficient = 0.01 self.num_ppo_steps = 5 self.ppo_clip = 0.2 # Off policy # TD3 and SAC (experimental) (Won't work for discrete spaces) self.offpol_batch_size = 1000 self.offpol_start_episodes = 75 # Initial steps are kept random in order to fill memory with random values. self.offpol_target_update_rate = 0.1 self.offpol_num_iterations_update = 4 self.offpol_expl_noise = 0.01 # std for gaussian noise in exploration of actions in actor. if env_name == 'Pendulum-v0': self.env_config = Pendulumv0Config self.state_dim = 3 self.action_dim = 1 self.env_max_timesteps = 500 # Setting none, causes it to use the original instead. self.ended_early = False class HalfCheetahSupervisedConfig(SupervisedConfig): def __init__(self, run_id, env_name, params): super(HalfCheetahSupervisedConfig, self).__init__(run_id, env_name, params) self.plot_save_iterations = 40 # Resetting some specific Cartpole plots self.plot_smoothing_sigma = 2 self.actor_type = 'random' # 'random' or 'standard' self.actor_batch_norm = True self.actor_random_layer_range = (1, 2) # used for random self.actor_random_dim_range = (30, 200) # used for random self.actor_standard_dim_num = 64 # used for standard self.actor_standard_layer_num = 1 # used for standard self.actor_init_learning_rate = 0.1 self.actor_rl_learning_rate = 0.1 self.generator_action_vector_size = 6 self.generator_input_size = self.generator_action_vector_size self.generator_input_sample_length = 1000 self.generator_batch_norm = True self.generator_type = 'simple' # simple, complex, complexer (unused) self.generator_learning_rate = 2e-1 self.generator_min_lr_scaler = 1e-1 self.critic_batch_norm = False self.critic_type = 'simple' # simple, complex, complexer (unused) self.reward_size = 1 self.critic_learning_rate = 0.01 self.clip_grad_norm = True # Attempting a clipping of the gradients for general purposes. self.max_grad_norm = 0.5 self.outer_loop_iterations = 1000 # Generator training steps self.inner_loop_iterations = 1 # Actor training steps self.generator_testing_loops = 3 # Number of random agents tested self.actor_testing_loops = 3 # Number of tests per agent (reduced due to multiprocessing hiccups) self.retest_generator_testing_loops = 3 # If initial check worked out, then do multiple more times. self.retest_actor_testing_loops = 3 self.discount_factor = 0.99 self.normalize_states = False self.scale_states = True self.normalize_rewards_and_advantages = True # In calculation of the # Algorithm specific # A2C and PPO # On policy self.rollout_update_type = 'trajectory' # Either 'trajectory' or 'batch' self.onpol_batch_size = 1000 self.include_entropy_in_ppo = True self.entropy_coefficient = 0.01 self.num_ppo_steps = 5 self.ppo_clip = 0.2 # Off policy # TD3 and SAC (experimental) (Won't work for discrete spaces) self.offpol_batch_size = 500 self.offpol_start_episodes = 50 # Initial steps are kept random in order to fill memory with random values. self.offpol_target_update_rate = 0.1 self.offpol_num_iterations_update = 5 self.offpol_expl_noise = 0.1 # std for gaussian noise in exploration of actions in actor. if env_name == 'HalfCheetah-v2': self.env_config = HalfCheetahConfig self.state_dim = 17 self.action_dim = 6 self.env_max_timesteps = None # Setting none, causes it to use the original instead. self.ended_early = False class LunarLanderContinuousSupervisedConfig(SupervisedConfig): def __init__(self, run_id, env_name, params): super(LunarLanderContinuousSupervisedConfig, self).__init__(run_id, env_name, params) self.plot_save_iterations = 40 # Resetting some specific Cartpole plots self.plot_smoothing_sigma = 2 self.actor_type = 'random' # 'random' or 'standard' self.actor_batch_norm = True self.actor_random_layer_range = (1, 2) # used for random self.actor_random_dim_range = (30, 200) # used for random self.actor_standard_dim_num = 64 # used for standard self.actor_standard_layer_num = 1 # used for standard self.actor_init_learning_rate = 0.1 self.actor_rl_learning_rate = 0.01 self.generator_action_vector_size = 2 self.generator_input_size = self.generator_action_vector_size self.generator_input_sample_length = 100 self.generator_batch_norm = True self.generator_type = 'simple' # simple, complex, complexer (unused) self.generator_learning_rate = 1e-1 self.generator_min_lr_scaler = 1e-1 self.critic_batch_norm = False self.critic_type = 'simple' # simple, complex, complexer (unused) self.reward_size = 1 self.critic_learning_rate = 0.01 self.clip_grad_norm = True # Attempting a clipping of the gradients for general purposes. self.max_grad_norm = 0.5 self.outer_loop_iterations = 1000 # Generator training steps self.inner_loop_iterations = 1 # Actor training steps self.generator_testing_loops = 5 # Number of random agents tested self.actor_testing_loops = 5 # Number of tests per agent (reduced due to multiprocessing hiccups) self.retest_generator_testing_loops = 5 # If initial check worked out, then do multiple more times. self.retest_actor_testing_loops = 5 self.discount_factor = 0.99 self.normalize_states = False self.scale_states = True self.normalize_rewards_and_advantages = True # In calculation of the # Algorithm specific # A2C and PPO # On policy self.rollout_update_type = 'trajectory' # Either 'trajectory' or 'batch' self.onpol_batch_size = 1000 self.include_entropy_in_ppo = True self.entropy_coefficient = 0.01 self.num_ppo_steps = 5 self.ppo_clip = 0.2 # Off policy # TD3 and SAC (experimental) (Won't work for discrete spaces) self.offpol_batch_size = 500 self.offpol_start_episodes = 150 # Initial steps are kept random in order to fill memory with random values. self.offpol_target_update_rate = 0.01 self.offpol_num_iterations_update = 5 self.offpol_expl_noise = 0.1 # std for gaussian noise in exploration of actions in actor. if env_name == 'LunarLanderContinuous-v2': self.env_config = LunarLanderSupervisedv2Config self.state_dim = 8 self.action_dim = 2 self.env_max_timesteps = None # Setting none, causes it to use the original instead. self.ended_early = False class PendulumGeneticConfig(GeneticConfig): def __init__(self, run_id, env_name, params=None): super(PendulumGeneticConfig, self).__init__(run_id, env_name, params) self.actor_type = 'random' # 'random' or 'standard' self.actor_batch_norm = True self.actor_random_layer_range = (1, 2) # used for random self.actor_random_dim_range = (30, 80) # used for random self.actor_standard_dim_num = 64 # used for standard self.actor_standard_layer_num = 1 # used for standard self.actor_init_learning_rate = 0.1 self.generator_action_vector_size = 1 self.generator_input_size = self.generator_action_vector_size self.generator_input_sample_length = 200 self.generator_batch_norm = True self.generator_type = 'simple' # simple, complex, complexer (unused) self.generator_learning_rate = 1e-1 self.generator_min_lr_scaler = 1e-1 self.inner_loop_iterations = 1 # Actor training steps self.ended_early = False self.generator_testing_loops = 3 # Number of random agents tested self.actor_testing_loops = 3 # Number of tests per agent (reduced due to multiprocessing hiccups) self.retest_generator_testing_loops = 5 self.retest_actor_testing_loops = 5 self.mutation_power = 0.5 # For generator to mutate into other possibilities self.normalize_states = False self.scale_states = False if env_name == 'Pendulum-v0': self.env_config = Pendulumv0Config self.state_dim = 3 self.action_dim = 1 self.env_max_timesteps = None # Setting none, causes it to use the original instead. self.ended_early = False class LunarLanderContinuousGeneticConfig(GeneticConfig): def __init__(self, run_id, env_name, params=None): super(LunarLanderContinuousGeneticConfig, self).__init__(run_id, env_name, params) self.actor_type = 'random' # 'random' or 'standard' self.actor_batch_norm = True self.actor_random_layer_range = (1, 2) # used for random self.actor_random_dim_range = (30, 80) # used for random self.actor_standard_dim_num = 64 # used for standard self.actor_standard_layer_num = 1 # used for standard self.actor_init_learning_rate = 0.1 self.generator_action_vector_size = 2 self.generator_input_size = self.generator_action_vector_size self.generator_input_sample_length = 200 self.generator_batch_norm = True self.generator_type = 'simple' # simple, complex, complexer (unused) self.generator_learning_rate = 1e-1 self.generator_min_lr_scaler = 1e-1 self.inner_loop_iterations = 1 # Actor training steps self.ended_early = False self.generator_testing_loops = 3 # Number of random agents tested self.actor_testing_loops = 3 # Number of tests per agent (reduced due to multiprocessing hiccups) self.retest_generator_testing_loops = 5 self.retest_actor_testing_loops = 5 self.mutation_power = 0.5 # For generator to mutate into other possibilities self.normalize_states = False self.scale_states = False if env_name == 'LunarLanderContinuous-v2': self.env_config = LunarLanderSupervisedv2Config self.state_dim = 8 self.action_dim = 2 self.env_max_timesteps = None # Setting none, causes it to use the original instead. self.ended_early = False class HalfCheetahGeneticConfig(GeneticConfig): def __init__(self, run_id, env_name, params=None): super(HalfCheetahGeneticConfig, self).__init__(run_id, env_name, params) self.actor_type = 'random' # 'random' or 'standard' self.actor_batch_norm = True self.actor_random_layer_range = (1, 2) # used for random self.actor_random_dim_range = (30, 80) # used for random self.actor_standard_dim_num = 64 # used for standard self.actor_standard_layer_num = 1 # used for standard self.actor_init_learning_rate = 0.1 self.generator_action_vector_size = 6 self.generator_input_size = self.generator_action_vector_size self.generator_input_sample_length = 200 self.generator_batch_norm = True self.generator_type = 'simple' # simple, complex, complexer (unused) self.generator_learning_rate = 1e-1 self.generator_min_lr_scaler = 1e-1 self.inner_loop_iterations = 1 # Actor training steps self.ended_early = False self.generator_testing_loops = 3 # Number of random agents tested self.actor_testing_loops = 3 # Number of tests per agent (reduced due to multiprocessing hiccups) self.retest_generator_testing_loops = 10 self.retest_actor_testing_loops = 10 self.mutation_power = 0.5 # For generator to mutate into other possibilities self.normalize_states = False self.scale_states = False if env_name == 'HalfCheetah-v2': self.env_config = HalfCheetahConfig self.state_dim = 17 self.action_dim = 6 self.env_max_timesteps = None # Setting none, causes it to use the original instead. self.ended_early = False class AcrobotGeneticConfig(GeneticConfig): def __init__(self, run_id, env_name, params=None): super(AcrobotGeneticConfig, self).__init__(run_id, env_name, params) self.actor_type = 'random' # 'random' or 'standard' self.actor_batch_norm = True self.actor_random_layer_range = (1, 2) # used for random self.actor_random_dim_range = (30, 80) # used for random self.actor_standard_dim_num = 64 # used for standard self.actor_standard_layer_num = 1 # used for standard self.actor_init_learning_rate = 0.1 self.generator_noise_vector_size = 16 # Per action sample comes with a vector of length 8 atm self.generator_action_vector_size = 16 self.generator_input_size = self.generator_noise_vector_size + self.generator_action_vector_size self.generator_input_sample_length = 100 self.generator_batch_norm = True self.generator_type = 'simple' # simple, complex, complexer (unused) self.generator_learning_rate = 1e-1 self.generator_min_lr_scaler = 1e-1 self.inner_loop_iterations = 1 # Actor training steps self.ended_early = False self.generator_testing_loops = 3 # Number of random agents tested self.actor_testing_loops = 3 # Number of tests per agent (reduced due to multiprocessing hiccups) self.retest_generator_testing_loops = 10 self.retest_actor_testing_loops = 10 self.mutation_power = 0.5 # For generator to mutate into other possibilities self.normalize_states = False self.scale_states = False if env_name == 'Acrobot-v1': self.env_config = Acrobotv1Config self.state_dim = 6 self.action_dim = 3 self.env_max_timesteps = None # Setting none, causes it to use the original instead. self.ended_early = False class HopperSupervisedConfig(SupervisedConfig): def __init__(self, run_id, env_name, params): super(HopperSupervisedConfig, self).__init__(run_id, env_name, params) self.plot_save_iterations = 30 # Resetting some specific Cartpole plots self.plot_smoothing_sigma = 2 self.actor_type = 'random' # 'random' or 'standard' self.actor_batch_norm = True self.actor_random_layer_range = (1, 2) # used for random self.actor_random_dim_range = (30, 200) # used for random self.actor_standard_dim_num = 64 # used for standard self.actor_standard_layer_num = 1 # used for standard self.actor_learning_rate = 0.01 self.generator_action_vector_size = 3 self.generator_input_size = self.generator_action_vector_size self.generator_input_sample_length = 500 self.generator_batch_norm = True self.generator_type = 'simple' # simple, complex, complexer (unused) self.generator_learning_rate = 1e-1 self.generator_min_lr_scaler = 1e-1 self.critic_batch_norm = False self.critic_type = 'simple' # simple, complex, complexer (unused) self.reward_size = 1 self.critic_learning_rate = 0.01 self.clip_grad_norm = True # Attempting a clipping of the gradients for general purposes. self.max_grad_norm = 0.5 self.outer_loop_iterations = 20000 # Generator training steps self.inner_loop_iterations = 1 # Actor training steps self.generator_testing_loops = 5 # Number of random agents tested self.actor_testing_loops = 5 # Number of tests per agent (reduced due to multiprocessing hiccups) self.retest_generator_testing_loops = 5 # If initial check worked out, then do multiple more times. self.retest_actor_testing_loops = 5 self.discount_factor = 0.99 self.normalize_states = False self.scale_states = True self.normalize_rewards_and_advantages = True # In calculation of the # Algorithm specific # A2C and PPO # On policy self.rollout_update_type = 'trajectory' # Either 'trajectory' or 'batch' self.onpol_batch_size = 200 self.include_entropy_in_ppo = True self.entropy_coefficient = 0.01 self.num_ppo_steps = 5 self.ppo_clip = 0.2 # Off policy # TD3 and SAC (experimental) (Won't work for discrete spaces) self.offpol_batch_size = 5000 self.offpol_start_episodes = 100 # Initial steps are kept random in order to fill memory with random values. self.offpol_target_update_rate = 0.1 self.offpol_num_iterations_update = 10 self.offpol_expl_noise = 0.01 # std for gaussian noise in exploration of actions in actor. if env_name == 'Hopper-v3': self.env_config = HopperConfig self.state_dim = 11 self.action_dim = 3 self.env_max_timesteps = None # Setting none, causes it to use the original instead. self.ended_early = False
41.785794
131
0.682541
4,922
37,649
4.930922
0.062373
0.07499
0.029419
0.016316
0.914751
0.910507
0.910507
0.910507
0.90548
0.900783
0
0.028307
0.249329
37,649
900
132
41.832222
0.830444
0.22909
0
0.835385
0
0
0.028514
0.001669
0
0
0
0
0
1
0.026154
false
0
0.007692
0
0.06
0.007692
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
f4a3b6e043def3f4e247e9b64fa1a5e5b0f06f0b
143
py
Python
prometeo/linalg/__init__.py
kokizzu/prometeo
ce8aa66a21bec51581cad0a7a0998b0a86581734
[ "BSD-2-Clause" ]
509
2019-11-06T22:08:49.000Z
2022-03-30T01:06:52.000Z
prometeo/linalg/__init__.py
kokizzu/prometeo
ce8aa66a21bec51581cad0a7a0998b0a86581734
[ "BSD-2-Clause" ]
14
2018-10-23T10:08:24.000Z
2022-01-14T02:02:17.000Z
prometeo/linalg/__init__.py
kokizzu/prometeo
ce8aa66a21bec51581cad0a7a0998b0a86581734
[ "BSD-2-Clause" ]
22
2019-06-12T10:01:13.000Z
2022-02-27T06:38:21.000Z
from .pmat_blasfeo_wrapper import * from .pvec_blasfeo_wrapper import * from .pmat import * from .pvec import * from .blasfeo_wrapper import *
23.833333
35
0.79021
20
143
5.4
0.3
0.37037
0.555556
0.444444
0
0
0
0
0
0
0
0
0.13986
143
5
36
28.6
0.878049
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
7
f4dcd5be46d82c279f05a74ac265d59f5b4bfc0f
13,309
py
Python
tests/composition/test_learning.py
bdsinger/PsyNeuLink
71d8a0bb1691ff85061d4ad3de866d9930a69a73
[ "Apache-2.0" ]
null
null
null
tests/composition/test_learning.py
bdsinger/PsyNeuLink
71d8a0bb1691ff85061d4ad3de866d9930a69a73
[ "Apache-2.0" ]
null
null
null
tests/composition/test_learning.py
bdsinger/PsyNeuLink
71d8a0bb1691ff85061d4ad3de866d9930a69a73
[ "Apache-2.0" ]
null
null
null
import psyneulink as pnl import numpy as np class TestHebbian: def test_simple_hebbian(self): Hebb_C = pnl.Composition() size = 9 Hebb2 = pnl.RecurrentTransferMechanism( size=size, function=pnl.Linear, enable_learning=True, hetero=0., auto=0., name='Hebb2', ) Hebb_C.add_node(Hebb2) src = [1, 0, 0, 1, 0, 0, 1, 0, 0] inputs_dict = {Hebb2: np.array(src)} Hebb_C.run(num_trials=5, inputs=inputs_dict) activity = Hebb2.value assert np.allclose(activity, [[1.86643089, 0., 0., 1.86643089, 0., 0., 1.86643089, 0., 0.]]) class TestReinforcement: def test_rl(self): input_layer = pnl.TransferMechanism(size=2, name='Input Layer') input_layer.log.set_log_conditions(items=pnl.VALUE) action_selection = pnl.DDM(input_format=pnl.ARRAY, function=pnl.DriftDiffusionAnalytical(), output_states=[pnl.SELECTED_INPUT_ARRAY], name='DDM') action_selection.log.set_log_conditions(items=pnl.SELECTED_INPUT_ARRAY) comp = pnl.Composition(name='comp') learning_components = comp.add_reinforcement_learning_pathway(pathway=[input_layer, action_selection], learning_rate=0.05) learned_projection = learning_components[pnl.LEARNED_PROJECTION] learning_mechanism = learning_components[pnl.LEARNING_MECHANISM] target_mechanism = learning_components[pnl.TARGET_MECHANISM] comparator_mechanism = learning_components[pnl.COMPARATOR_MECHANISM] learned_projection.log.set_log_conditions(items=["matrix", "mod_matrix"]) inputs_dict = {input_layer: [[1., 1.], [1., 1.]], target_mechanism: [[10.], [10.]] } learning_mechanism.log.set_log_conditions(items=[pnl.VALUE]) comparator_mechanism.log.set_log_conditions(items=[pnl.VALUE]) target_mechanism.log.set_log_conditions(items=pnl.VALUE) comp.run(inputs=inputs_dict) assert np.allclose(learning_mechanism.value, [np.array([0.4275, 0.]), np.array([0.4275, 0.])]) assert np.allclose(action_selection.value, [[1.], [2.30401336], [0.97340301], [0.02659699], [2.30401336], \ [2.08614798], [1.85006765], [2.30401336], [2.08614798], [1.85006765]]) def test_td_montague_et_al_figure_a(self): # create processing mechanisms sample_mechanism = pnl.TransferMechanism(default_variable=np.zeros(60), name=pnl.SAMPLE) action_selection = pnl.TransferMechanism(default_variable=np.zeros(60), function=pnl.Linear(slope=1.0, intercept=0.01), name='Action Selection') sample_to_action_selection = pnl.MappingProjection(sender=sample_mechanism, receiver=action_selection, matrix=np.zeros((60, 60))) comp = pnl.Composition(name='TD_Learning') pathway = [sample_mechanism, sample_to_action_selection, action_selection] learning_related_components = comp.add_td_learning_pathway(pathway, learning_rate=0.3) comparator_mechanism = learning_related_components[pnl.COMPARATOR_MECHANISM] comparator_mechanism.log.set_log_conditions(pnl.VALUE) target_mechanism = learning_related_components[pnl.TARGET_MECHANISM] # comp.show_graph() stimulus_onset = 41 reward_delivery = 54 # build input dictionary samples = [] targets = [] for trial in range(50): target = [0.]*60 target[reward_delivery] = 1. # {14, 29, 44, 59, 74, 89} if trial in {14, 29, 44}: target[reward_delivery] = 0. targets.append(target) sample = [0.]*60 for i in range(stimulus_onset, 60): sample[i] =1. samples.append(sample) inputs = {sample_mechanism: samples, target_mechanism: targets} comp.run(inputs=inputs) delta_vals = comparator_mechanism.log.nparray_dictionary()['TD_Learning'][pnl.VALUE] trial_1_expected = [0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.003, 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., -0.003, 0.] trial_30_expected = [0.]*40 trial_30_expected +=[.0682143186, .0640966042, .0994344173, .133236921, .152270799, .145592903, .113949692, .0734420009, .0450652924, .0357386468, .0330810871, .0238007805, .0102892090, -.998098988, -.0000773996815, -.0000277845011, -.00000720338916, -.00000120056486, -.0000000965971727, 0.] trial_50_expected = [0.]*40 trial_50_expected += [.717416347, .0816522429, .0595516548, .0379308899, .0193587853, .00686581694, .00351883747, .00902310583, .0149133617, .000263272179, -.0407611997, -.0360124387, .0539085146, .0723714910, -.000000550934336, -.000000111783778, -.0000000166486478, -.00000000161861854, -.0000000000770770722, 0.] assert np.allclose(trial_1_expected, delta_vals[0][0]) assert np.allclose(trial_30_expected, delta_vals[29][0]) assert np.allclose(trial_50_expected, delta_vals[49][0]) def test_rl_learning_enabled_false(self): input_layer = pnl.TransferMechanism(size=2, name='Input Layer') input_layer.log.set_log_conditions(items=pnl.VALUE) action_selection = pnl.DDM(input_format=pnl.ARRAY, function=pnl.DriftDiffusionAnalytical(), output_states=[pnl.SELECTED_INPUT_ARRAY], name='DDM') action_selection.log.set_log_conditions(items=pnl.SELECTED_INPUT_ARRAY) comp = pnl.Composition(name='comp') learning_components = comp.add_reinforcement_learning_pathway(pathway=[input_layer, action_selection], learning_rate=0.05) learned_projection = learning_components[pnl.LEARNED_PROJECTION] learning_mechanism = learning_components[pnl.LEARNING_MECHANISM] target_mechanism = learning_components[pnl.TARGET_MECHANISM] comparator_mechanism = learning_components[pnl.COMPARATOR_MECHANISM] learned_projection.log.set_log_conditions(items=["matrix", "mod_matrix"]) inputs_dict = {input_layer: [[1., 1.], [1., 1.]], target_mechanism: [[10.], [10.]] } learning_mechanism.log.set_log_conditions(items=[pnl.VALUE]) comparator_mechanism.log.set_log_conditions(items=[pnl.VALUE]) target_mechanism.log.set_log_conditions(items=pnl.VALUE) comp.run(inputs=inputs_dict) assert np.allclose(learning_mechanism.value, [np.array([0.4275, 0.]), np.array([0.4275, 0.])]) assert np.allclose(action_selection.value, [[1.], [2.30401336], [0.97340301], [0.02659699], [2.30401336], \ [2.08614798], [1.85006765], [2.30401336], [2.08614798], [1.85006765]]) # Pause learning -- values are the same as the previous trial (because we pass in the same inputs) comp.learning_enabled = False inputs_dict = {input_layer: [[1., 1.], [1., 1.]]} comp.run(inputs=inputs_dict) assert np.allclose(learning_mechanism.value, [np.array([0.4275, 0.]), np.array([0.4275, 0.])]) assert np.allclose(action_selection.value, [[1.], [2.30401336], [0.97340301], [0.02659699], [2.30401336], \ [2.08614798], [1.85006765], [2.30401336], [2.08614798], [1.85006765]]) # Resume learning comp.learning_enabled = True inputs_dict = {input_layer: [[1., 1.], [1., 1.]], target_mechanism: [[10.], [10.]]} comp.run(inputs=inputs_dict) assert np.allclose(learning_mechanism.value, [np.array([0.38581875, 0.]), np.array([0.38581875, 0.])]) assert np.allclose(action_selection.value, [[1.], [0.978989672], [0.99996], [0.0000346908466], [0.978989672], \ [0.118109771], [1.32123733], [0.978989672], [0.118109771], [1.32123733]]) def test_td_learning_enabled_false(self): # create processing mechanisms sample_mechanism = pnl.TransferMechanism(default_variable=np.zeros(60), name=pnl.SAMPLE) action_selection = pnl.TransferMechanism(default_variable=np.zeros(60), function=pnl.Linear(slope=1.0, intercept=0.01), name='Action Selection') sample_to_action_selection = pnl.MappingProjection(sender=sample_mechanism, receiver=action_selection, matrix=np.zeros((60, 60))) comp = pnl.Composition(name='TD_Learning') pathway = [sample_mechanism, sample_to_action_selection, action_selection] learning_related_components = comp.add_td_learning_pathway(pathway, learning_rate=0.3) comparator_mechanism = learning_related_components[pnl.COMPARATOR_MECHANISM] comparator_mechanism.log.set_log_conditions(pnl.VALUE) target_mechanism = learning_related_components[pnl.TARGET_MECHANISM] # comp.show_graph() stimulus_onset = 41 reward_delivery = 54 # build input dictionary samples = [] targets = [] for trial in range(50): target = [0.]*60 target[reward_delivery] = 1. # {14, 29, 44, 59, 74, 89} if trial in {14, 29, 44}: target[reward_delivery] = 0. targets.append(target) sample = [0.]*60 for i in range(stimulus_onset, 60): sample[i] =1. samples.append(sample) inputs1 = {sample_mechanism: samples[0:30], target_mechanism: targets[0:30]} inputs2 = {sample_mechanism: samples[30:50], target_mechanism: targets[30:50]} comp.run(inputs=inputs1) delta_vals = comparator_mechanism.log.nparray_dictionary()['TD_Learning'][pnl.VALUE] trial_1_expected = [0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.003, 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., -0.003, 0.] trial_30_expected = [0.]*40 trial_30_expected +=[.0682143186, .0640966042, .0994344173, .133236921, .152270799, .145592903, .113949692, .0734420009, .0450652924, .0357386468, .0330810871, .0238007805, .0102892090, -.998098988, -.0000773996815, -.0000277845011, -.00000720338916, -.00000120056486, -.0000000965971727, 0.] assert np.allclose(trial_1_expected, delta_vals[0][0]) assert np.allclose(trial_30_expected, delta_vals[29][0]) # Pause Learning comp.learning_enabled = False comp.run(inputs={sample_mechanism: samples[0:3]}) # Resume Learning comp.learning_enabled = True comp.run(inputs=inputs2) delta_vals = comparator_mechanism.log.nparray_dictionary()['TD_Learning'][pnl.VALUE] trial_50_expected = [0.] * 40 trial_50_expected += [.717416347, .0816522429, .0595516548, .0379308899, .0193587853, .00686581694, .00351883747, .00902310583, .0149133617, .000263272179, -.0407611997, -.0360124387, .0539085146, .0723714910, -.000000550934336, -.000000111783778, -.0000000166486478, -.00000000161861854, -.0000000000770770722, 0.] assert np.allclose(trial_50_expected, delta_vals[49][0])
48.572993
123
0.546623
1,367
13,309
5.119239
0.144843
0.033724
0.044584
0.056016
0.876536
0.872964
0.852815
0.852815
0.83924
0.83924
0
0.185806
0.331956
13,309
273
124
48.750916
0.601282
0.025021
0
0.77551
0
0
0.012344
0
0
0
0
0
0.076531
1
0.02551
false
0
0.010204
0
0.045918
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7