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