class NotifyAppParam(TlvModel):
     """
     Used to serialize application parameters for PubSub notify interest.
     """
     publisher_prefix = NameField()
     nonce = UintField(128)
     publisher_fwd_hint = NameField()
Esempio n. 2
0
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)
Esempio n. 3
0
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)
Esempio n. 4
0
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)
Esempio n. 5
0
 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))
Esempio n. 6
0
class DeviceItem(TlvModel):
    device_id = BytesField(1)
    device_info = BytesField(2)
    aes_key = BytesField(3)
    device_identity_name = NameField()
Esempio n. 7
0
class CheckPrefix(TlvModel):
    name = NameField()
Esempio n. 8
0
class RegisterPrefix(TlvModel):
    name = NameField()
Esempio n. 9
0
class ForwardingHint(TlvModel):
    name = NameField()
Esempio n. 10
0
class CatalogResponseParameter(TlvModel):
    data_name = NameField()
    repo_name = NameField()
    status = 200
Esempio n. 11
0
class CatalogCommandParameter(TlvModel):
    data_name = NameField()
    repo_name = NameField()
Esempio n. 12
0
class CatalogDataListParameter(TlvModel):
    name = NameField()
    insert_data_names = RepeatedField(NameField())
    delete_data_names = RepeatedField(NameField())
Esempio n. 13
0
class CatalogCommandParameter(TlvModel):
    name = NameField()
Esempio n. 14
0
class RepeatedNames(TlvModel):
    names = RepeatedField(NameField())
Esempio n. 15
0
class ServiceItem(TlvModel):
    service_id = UintField(1)
    exp_time = UintField(2)
    service_name = NameField()
Esempio n. 16
0
class CatalogResponseParameter(TlvModel):
    data_name = NameField()
    name = NameField()
Esempio n. 17
0
 class Model(TlvModel):
     name = NameField()
     int_val = UintField(0x03)
     str_val = BytesField(0x02)
     bool_val = BoolField(0x01)
Esempio n. 18
0
 class Model(TlvModel):
     name = NameField()
     int_val = UintField(0x03)
     str_val = BytesField(0x02)
     bool_val = BoolField(0x01)
     array = ModelField(0x05, WordArray)
Esempio n. 19
0
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)
Esempio n. 20
0
class AccessItem(TlvModel):
    prefix = NameField()
    type = UintField(2)
    encryption_key = BytesField(3)
    decryption_key = BytesField(4)
Esempio n. 21
0
class PrefixesInStorage(TlvModel):
    prefixes = RepeatedField(NameField())
Esempio n. 22
0
class CatalogRequestParameter(TlvModel):
    data_name = NameField()