class NotifyAppParam(TlvModel): """ Used to serialize application parameters for PubSub notify interest. """ publisher_prefix = NameField() nonce = UintField(128) publisher_fwd_hint = NameField()
class NotifyAppParam(TlvModel): """ Used to serialize application parameters for PubSub notify interest. """ publisher_prefix = NameField() notify_nonce = BytesField(128) publisher_fwd_hint = ModelField(211, ForwardingHint)
class RepoCommandResponse(TlvModel): name = NameField() start_block_id = UintField(RepoTypeNumber.START_BLOCK_ID) end_block_id = UintField(RepoTypeNumber.END_BLOCK_ID) process_id = UintField(RepoTypeNumber.PROCESS_ID) status_code = UintField(RepoTypeNumber.STATUS_CODE) insert_num = UintField(RepoTypeNumber.INSERT_NUM) delete_num = UintField(RepoTypeNumber.DELETE_NUM)
class RepoCommandParameter(TlvModel): name = NameField() forwarding_hint = ModelField(RepoTypeNumber.FORWARDING_HINT, ForwardingHint) start_block_id = UintField(RepoTypeNumber.START_BLOCK_ID) end_block_id = UintField(RepoTypeNumber.END_BLOCK_ID) process_id = BytesField(RepoTypeNumber.PROCESS_ID) register_prefix = ModelField(RepoTypeNumber.REGISTER_PREFIX, RegisterPrefix) check_prefix = ModelField(RepoTypeNumber.CHECK_PREFIX, CheckPrefix)
class Model(TlvModel): name = NameField() int_val = UintField(0x03) bytes_val = BytesField(0x02) bool_val = BoolField(0x01) array = ModelField(0x05, WordArray) flag_val = UintField(0x06, val_base_type=FlagVal) enum_arr = RepeatedField(UintField(0x07, val_base_type=EnumVal)) str_val = BytesField(0x08, is_string=True) str_arr = RepeatedField(BytesField(0x09, is_string=True))
class DeviceItem(TlvModel): device_id = BytesField(1) device_info = BytesField(2) aes_key = BytesField(3) device_identity_name = NameField()
class CheckPrefix(TlvModel): name = NameField()
class RegisterPrefix(TlvModel): name = NameField()
class ForwardingHint(TlvModel): name = NameField()
class CatalogResponseParameter(TlvModel): data_name = NameField() repo_name = NameField() status = 200
class CatalogCommandParameter(TlvModel): data_name = NameField() repo_name = NameField()
class CatalogDataListParameter(TlvModel): name = NameField() insert_data_names = RepeatedField(NameField()) delete_data_names = RepeatedField(NameField())
class CatalogCommandParameter(TlvModel): name = NameField()
class RepeatedNames(TlvModel): names = RepeatedField(NameField())
class ServiceItem(TlvModel): service_id = UintField(1) exp_time = UintField(2) service_name = NameField()
class CatalogResponseParameter(TlvModel): data_name = NameField() name = NameField()
class Model(TlvModel): name = NameField() int_val = UintField(0x03) str_val = BytesField(0x02) bool_val = BoolField(0x01)
class Model(TlvModel): name = NameField() int_val = UintField(0x03) str_val = BytesField(0x02) bool_val = BoolField(0x01) array = ModelField(0x05, WordArray)
class RepoCommandParameter(TlvModel): name = NameField() start_block_id = UintField(RepoTypeNumber.START_BLOCK_ID) end_block_id = UintField(RepoTypeNumber.END_BLOCK_ID) process_id = UintField(RepoTypeNumber.PROCESS_ID)
class AccessItem(TlvModel): prefix = NameField() type = UintField(2) encryption_key = BytesField(3) decryption_key = BytesField(4)
class PrefixesInStorage(TlvModel): prefixes = RepeatedField(NameField())
class CatalogRequestParameter(TlvModel): data_name = NameField()