Exemplo n.º 1
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'securityGroup':
            for key, value in attrs.items():
                if key in self.ValidAttributes:
                    setattr(self, key, value)
            return self
        elif name == 'securityRuleList':
            if not self.securityRuleList:
                self.securityRuleList = ResultSet(
                    [('securityRule', SecurityRule)], name)
            return self.securityRuleList
        elif name == 'vmList':
            self.__vmList = ResultSet([('vm', VirtualMachine)], name)
            return self.vmList
        elif name == 'successAction':
            self.successAction = SecurityGroupAction(connection, name)
            return self.successAction.startElement(name, attrs, connection)
        elif name == 'failedAction':
            self.failedAction = SecurityGroupAction(connection, name)
            return self.failedAction.startElement(name, attrs, connection)
        else:
            return None
Exemplo n.º 2
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'device':
            for key, value in attrs.items():
                setattr(self, key, value)

        elif name == 'volume':
            self.volume = Volume(connection)
            self.volume.startElement(name, attrs, connection)
            return self.volume
        elif name == 'provider':
            self.provider = Provider(connection)
            self.provider.startElement(name, attrs, connection)
            return self.provider
        elif name == 'partitionList':
            partitionList = ResultSet([('partition', Partition)], name)
            return self.partitionList
        elif name == 'subDevices':
            self.__subDevices = ResultSet([('subDevices', Device)], name)
            return self.subDevices
        else:
            return None
Exemplo n.º 3
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'device':
            for key, value in attrs.items():
                setattr(self, key, value)

        elif name == 'volume':
            self.volume = Volume(connection)
            self.volume.startElement(name, attrs, connection)
            return self.volume
        elif name == 'provider':
            self.provider = Provider(connection)
            self.provider.startElement(name, attrs, connection)
            return self.provider
        elif name == 'partitionList':
            partitionList = ResultSet([('partition', Partition)], name)
            return self.partitionList
        elif name == 'subDevices':
            self.__subDevices = ResultSet([('subDevices', Device)], name)
            return self.subDevices
        else:
            return None
Exemplo n.º 4
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'volume':
            self.size = attrs['size']
        else:
            return None
Exemplo n.º 5
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'right':
            pass
        else:
            return None
Exemplo n.º 6
0
 def startElement(self, name, attrs, connection):
     ret = SCObject.startElement(self, name, attrs, connection)
     if ret is not None:
         return ret
     
     if name == 'right':
         pass
     else:
         return None
Exemplo n.º 7
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'volume':
            self.size = attrs['size']
        else:
            return None
Exemplo n.º 8
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'partition':
            self.PartitionNumber = attrs['PartitionNumber']
            self.size = attrs['size']
        else:
            return None
Exemplo n.º 9
0
 def startElement(self, name, attrs, connection):
     ret = SCObject.startElement(self, name, attrs, connection)
     if ret is not None:
         return ret
     
     if name == 'role':
         self.name = attrs['name']
         self.MFAStatus = attrs['MFAStatus']
     else:
         return None
Exemplo n.º 10
0
 def startElement(self, name, attrs, connection):
     ret = SCObject.startElement(self, name, attrs, connection)
     if ret is not None:
         return ret
     
     if name == 'certificate':
         self.id = attrs['level']
         self.encoding = attrs['encoding']
     else:
         return None
Exemplo n.º 11
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'role':
            self.name = attrs['name']
            self.MFAStatus = attrs['MFAStatus']
        else:
            return None
Exemplo n.º 12
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'devicekeyrequest':
            for key, value in attrs.items():
                setattr(self, key, value)
        else:
            return None
Exemplo n.º 13
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'certificate':
            self.id = attrs['level']
            self.encoding = attrs['encoding']
        else:
            return None
Exemplo n.º 14
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'partition':
            self.PartitionNumber = attrs['PartitionNumber']
            self.size = attrs['size']
        else:
            return None
Exemplo n.º 15
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'provider':
            for key, value in attrs.items():
                setattr(self, key, value)
        else:
            return None
Exemplo n.º 16
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'DSMConnSettings':
            for key, value in attrs.items():
                if key in self.ValidAttributes:
                    setattr(self, key, value)
        else:
            return None
Exemplo n.º 17
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'authenticationResult':
            self.id = attrs['id']
            self.token = attrs['token']
            self.expires = attrs['expires']
        else:
            return None
Exemplo n.º 18
0
 def startElement(self, name, attrs, connection):
     ret = SCObject.startElement(self, name, attrs, connection)
     if ret is not None:
         return ret
     
     if name == 'securecloudAgent':
         for key, value in attrs.items():
             setattr(self, key, value)
         return self
     else:
         return None
Exemplo n.º 19
0
 def startElement(self, name, attrs, connection):
     ret = SCObject.startElement(self, name, attrs, connection)
     if ret is not None:
         return ret
     
     if name == 'authenticationResult':
         self.id = attrs['id']
         self.token = attrs['token']
         self.expires = attrs['expires']
     else:
         return None
Exemplo n.º 20
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'securecloudAgent':
            for key, value in attrs.items():
                setattr(self, key, value)
            return self
        else:
            return None
Exemplo n.º 21
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == "DSMConnSettings":
            for key, value in attrs.items():
                if key in self.ValidAttributes:
                    setattr(self, key, value)
        else:
            return None
Exemplo n.º 22
0
 def startElement(self, name, attrs, connection):
     ret = SCObject.startElement(self, name, attrs, connection)
     if ret is not None:
         return ret
     
     if name == 'user':
         for key, value in attrs.items():
             setattr(self, key, value)
         return self
     elif name == 'account':
         self.account = Account(connection)
         self.account.startElement(name, attrs, connection)
         return self.account
     elif name == 'role':
         self.role = UserRole(connection)
         self.role.startElement(name, attrs, connection)
         return self.role
     else:
         return None
Exemplo n.º 23
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'user':
            for key, value in attrs.items():
                setattr(self, key, value)
            return self
        elif name == 'account':
            self.account = Account(connection)
            self.account.startElement(name, attrs, connection)
            return self.account
        elif name == 'role':
            self.role = UserRole(connection)
            self.role.startElement(name, attrs, connection)
            return self.role
        else:
            return None
Exemplo n.º 24
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'securityRule':
            for key, value in attrs.items():
                setattr(self, key, value)
        elif name == 'securityRuleType':
            self.securityRuleType = SecurityRuleType(connection)
            self.securityRuleType.startElement(name, attrs, connection)
            return self.securityRuleType
        elif name == 'deviceList':
            self.deviceList = ResultSet([('device', Device)], name)
            return self.deviceList
        elif name == 'securityRuleConditionList':
            self.securityRuleConditionList = ResultSet(
                [('securityRuleCondition', SecurityRuleCondition)], name)
            return self.securityRuleConditionList
        else:
            return None
Exemplo n.º 25
0
    def startElement(self, name, attrs, connection):
        ret = SCObject.startElement(self, name, attrs, connection)
        if ret is not None:
            return ret

        if name == 'vm':
            # keep all attributes
            for key, value in attrs.items():
                setattr(self, key, value)
        elif name == 'provider':
            self.provider = Provider(connection)
            self.provider.startElement(name, attrs, connection)
            return self.provider
        elif name == 'securecloudAgent':
            self.securecloudAgent = SCAgent(connection)
            self.securecloudAgent.startElement(name, attrs, connection)
            return self.securecloudAgent
        elif name == 'devices':
            self.devices = ResultSet([('device', Device)], name)
            return self.devices
        else:
            return None
Exemplo n.º 26
0
 def startElement(self, name, attrs, connection):
     ret = SCObject.startElement(self, name, attrs, connection)
     if ret is not None:
         return ret
     
     if name == 'vm':
         # keep all attributes
         for key, value in attrs.items():
             setattr(self, key, value)
     elif name == 'provider':
         self.provider = Provider(connection)
         self.provider.startElement(name, attrs, connection)
         return self.provider
     elif name == 'securecloudAgent':
         self.securecloudAgent = SCAgent(connection)
         self.securecloudAgent.startElement(name, attrs, connection)
         return self.securecloudAgent
     elif name == 'devices':
         self.devices = ResultSet([('device', Device)], name)
         return self.devices
     else:
         return None