コード例 #1
0
class ProjectConfig(TlvModel):
    project_id = BytesField(0x80)
    description = BytesField(0x90)
    inherit_from = BytesField(0x91)
    sync_interval = UintField(0x92)
    ref_configs = RepeatedField(ModelField(0x93, RefConfig))
    labels = RepeatedField(ModelField(0x94, LabelConfig))
コード例 #2
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))
コード例 #3
0
ファイル: repo_commands.py プロジェクト: zjkmxy/NDN-Repo
class PrefixesInStorage(TlvModel):
    prefixes = RepeatedField(NameField())
コード例 #4
0
class RepeatedNames(TlvModel):
    names = RepeatedField(NameField())
コード例 #5
0
class DeviceList(TlvModel):
    device = RepeatedField(ModelField(1, DeviceItem))
コード例 #6
0
class SharedSecrets(TlvModel):
    shared_secrets = RepeatedField(ModelField(1, SharedSecretsItem))
コード例 #7
0
class AccessList(TlvModel):
    access = RepeatedField(ModelField(1, AccessItem))
コード例 #8
0
class ServiceList(TlvModel):
    service = RepeatedField(ModelField(1, ServiceItem))
コード例 #9
0
class ServiceList(TlvModel):
    services = RepeatedField(ModelField(1, ServiceItem))
    service_meta_items = RepeatedField(ModelField(2, ServiceMetaItem))
コード例 #10
0
class Catalog(TlvModel):
    entries = RepeatedField(BytesField(0xaf))
コード例 #11
0
class GroupConfig(TlvModel):
    group_id = BytesField(0x82)
    full_name = BytesField(0xa2)
    owner = BytesField(0xa3)
    members = RepeatedField(BytesField(0xa4))
コード例 #12
0
class LabelConfig(TlvModel):
    label = BytesField(0x98)
    function = UintField(0x99)
    default_value = UintField(0x9a)
    values = RepeatedField(ModelField(0x9b, LabelValue))
コード例 #13
0
class RefConfig(TlvModel):
    ref_name = BytesField(0x95)
    operation_rules = RepeatedField(ModelField(0x96, OperationRule))
    label_rules = RepeatedField(ModelField(0x97, LabelRule))
コード例 #14
0
 class WordArray(TlvModel):
     words = RepeatedField(UintField(0x01, fixed_len=2))
コード例 #15
0
class SqlsTlvModel(TlvModel):
    sqls = RepeatedField(
        BytesField(0x02))  # multiple SQL statements, each is a byte array
コード例 #16
0
class CatalogDataListParameter(TlvModel):
    name = NameField()
    insert_data_names = RepeatedField(NameField())
    delete_data_names = RepeatedField(NameField())