예제 #1
0
class UUIDWithAttribute(ComplexModel):
    __type_name__ = 'ID'
    _type_info = [
        ('idType', XmlAttribute(Unicode)),
        ('idAuthority', XmlAttribute(Unicode)),
        ('kind', XmlAttribute(IDKindType)),
        ('objectType', XmlAttribute(Unicode)),
        ('value', XmlData(Uuid)),
    ]

    # def __init__(self):
    #     super().__init__()

    def __init__(self,
                 kind=None,
                 objectType=None,
                 value=None,
                 idType=None,
                 idAuthority=None,
                 **kwargs):
        super().__init__(kind=kind,
                         objectType=objectType,
                         value=value,
                         idType=idType,
                         idAuthority=idAuthority,
                         **kwargs)
        self.kind = kind
        self.objectType = objectType
        self.value = value
        self.idType = idType
        self.idAuthority = idAuthority
예제 #2
0
class TypeVal(ComplexModel):
    type = XmlAttribute(Unicode)
    value = XmlData(Unicode)
예제 #3
0
 class Category(ComplexModel):
     id = XmlData(Integer(min_occurs=1, max_occurs=1, nillable=False))
     children = Array(Unicode)
예제 #4
0
 class SomeObject(ComplexModel):
     d = XmlData(Unicode)
예제 #5
0
class Param(ComplexModel):

    value = XmlData(Unicode)
    key = XmlAttribute(Unicode, use="required")
    valueType = XmlAttribute(Unicode, use="required")
class feature(ComplexModel):
    __namespace__ = SOAP_DATAROBOT
    name = XmlAttribute(Unicode)
    value = XmlData(Unicode)