def parse_structure(data): data = parse_dictionary(data, ["client_id", "received_count", "is_group"]) client_id = data.get("client_id") client_id = parse_structure_SignedIntegerType_64(client_id) received_count = data.get("received_count") received_count = parse_structure_SignedIntegerType_64(received_count) is_group = data.get("is_group") is_group = parse_structure_Bool(is_group) return GetChanges(client_id, received_count, is_group)
def parse_structure(data): data = parse_dictionary( data, ["client_id", "domain_id", "received_count", "actual_count"]) client_id = data.get("client_id") client_id = parse_structure_SignedIntegerType_64(client_id) domain_id = data.get("domain_id") domain_id = parse_structure_SignedIntegerType_64(domain_id) received_count = data.get("received_count") received_count = parse_structure_SignedIntegerType_64(received_count) actual_count = data.get("actual_count") actual_count = parse_structure_SignedIntegerType_64(actual_count) return GetDomainChanges(client_id, domain_id, received_count, actual_count)
def parse_structure(data): data = parse_dictionary(data, ["audit_trail_id", "tbl_name", "tbl_auto_id", "column_name", "value", "client_id", "action", "legal_entity_id"]) audit_trail_id = data.get("audit_trail_id") audit_trail_id = parse_structure_SignedIntegerType_64(audit_trail_id) tbl_name = data.get("tbl_name") tbl_name = parse_structure_Text(tbl_name) tbl_auto_id = data.get("tbl_auto_id") tbl_auto_id = parse_structure_SignedIntegerType_64(tbl_auto_id) column_name = data.get("column_name") column_name = parse_structure_Text(column_name) value = data.get("value") value = parse_structure_OptionalType_Text(value) client_id = data.get("client_id") client_id = parse_structure_SignedIntegerType_64(client_id) action = data.get("action") action = parse_structure_Text(action) legal_entity_id = data.get("legal_entity_id") legal_entity_id = parse_structure_SignedIntegerType_64(legal_entity_id) return Change(audit_trail_id, tbl_name, tbl_auto_id, column_name, value, client_id, action, legal_entity_id)
def parse_structure(data): data = parse_dictionary(data, [ "client_id", "is_new_data", "is_new_domain", "domain_id", "is_group", "group_id", "country_id" ]) client_id = data.get("client_id") client_id = parse_structure_SignedIntegerType_64(client_id) is_new_data = data.get("is_new_data") is_new_data = parse_structure_Bool(is_new_data) is_new_domain = data.get("is_new_domain") is_new_domain = parse_structure_Bool(is_new_domain) domain_id = data.get("domain_id") domain_id = parse_structure_OptionalType_Text(domain_id) is_group = data.get("is_group") is_group = parse_structure_Bool(is_group) group_id = data.get("group_id") country_id = data.get("country_id") return Client(client_id, is_new_data, is_new_domain, domain_id, is_group, group_id, country_id)