Ejemplo n.º 1
0
    def __init__(self, connection, tag="vm"):
        SCObject.__init__(self, connection, tag)
        # ----------------------------------------------------------------------
        # Attributes
        # ----------------------------------------------------------------------
        self.SecurityGroupGUID = None
        self.autoProvision = None
        self.detectedKeyCount = None
        self.encryptableDeviceCount = None
        self.encryptedDeviceCount = None
        self.encryptingDeviceCount = None
        self.href = None
        self.hostname = None
        self.imageGUID = None
        self.imageID = None
        self.imageName = None
        self.instanceGUID = None
        self.instanceID = None
        self.lastModified = None
        self.nonEncryptedDeviceCount = None
        self.pendingDeviceCount = None
        # ----------------------------------------------------------------------
        # elements
        # ----------------------------------------------------------------------
        self.imageDescription = None
        # ----------------------------------------------------------------------
        # Inner objects
        # ----------------------------------------------------------------------
        self.provider = None
        self.platform = None
        self.securecloudAgent = None
        # Device list
        self.devices = ResultSet([("device", Device)], "devices")

        pass
Ejemplo n.º 2
0
    def __init__(self, connection):
        SCObject.__init__(self, connection)

        # member initialization
        self.id = None
        self.name = None
        self.isDeleteble = None
        self.isNameEditable = None
        self.href = None
        self.lastModified = None
        self.ruleCount = None
        self.EnableIC = None
        self.ICAction = None
        self.PostponeEnable = None
        self.RevokeIntervalType = None
        self.RevokeIntervalNumber = None
        self.description = None
        self.imageCount = None
        # rules
        self.securityRuleList = ResultSet(
            [('securityRule', SecurityRule)], 'securityRuleList')
        # action
        self.successAction = None
        self.failedAction = None
        self.integrityAction = None
        # vm
        self.__vmList = ResultSet([('vm', VirtualMachine)], 'vmList')
Ejemplo n.º 3
0
 def __init__(self, connection):
     SCObject.__init__(self, connection)
     self.id = None
     self.token = None
     self.expires = None
     self.data = None
     self.accountId = None
Ejemplo n.º 4
0
    def __init__(self, connection, actionName, action=None, autoDelay='-1'):
        SCObject.__init__(self, connection)

        # member initialization
        self.name = actionName
        self.action = action
        self.autoDelay = autoDelay
    def __init__(self, connection):
        SCObject.__init__(self, connection)

        # attributes
        self.baseUtcOffset = None
        self.timezonEn = None
        self.timezoneId = None
Ejemplo n.º 6
0
    def __init__(self, connection):
        SCObject.__init__(self, connection)

        # attributes
        self.baseUtcOffset = None
        self.timezonEn = None
        self.timezoneId = None
Ejemplo n.º 7
0
 def __init__(self, connection, tag='authentication'):
     SCObject.__init__(self, connection, tag)
     self.id = None
     self.token = None
     self.expires = None
     self.data = None
     self.accountId = None
Ejemplo n.º 8
0
 def __init__(self, connection, tag='authentication'):
     SCObject.__init__(self, connection, tag)
     self.id = None
     self.token = None
     self.expires = None
     self.data = None
     self.accountId = None
Ejemplo n.º 9
0
 def __init__(self, connection):
     SCObject.__init__(self, connection)
     self.id = None
     self.token = None
     self.expires = None
     self.data = None
     self.accountId = None
Ejemplo n.º 10
0
    def __init__(self, connection, tag='vm'):
        SCObject.__init__(self, connection, tag)
        #----------------------------------------------------------------------
        # Attributes
        #----------------------------------------------------------------------
        self.SecurityGroupGUID = None
        self.autoProvision = None
        self.detectedKeyCount = None
        self.encryptableDeviceCount = None
        self.encryptedDeviceCount = None
        self.encryptingDeviceCount = None
        self.href = None
        self.hostname = None
        self.imageGUID = None
        self.imageID = None
        self.imageName = None
        self.instanceGUID = None
        self.instanceID = None
        self.lastModified = None
        self.nonEncryptedDeviceCount = None
        self.pendingDeviceCount = None
        #----------------------------------------------------------------------
        # elements
        #----------------------------------------------------------------------
        self.imageDescription = None
        #----------------------------------------------------------------------
        # Inner objects
        #----------------------------------------------------------------------
        self.provider = None
        self.platform = None
        self.securecloudAgent = None
        # Device list
        self.devices = ResultSet([('device', Device)], 'devices')

        pass
Ejemplo n.º 11
0
 def __init__(self, connection):
     SCObject.__init__(self, connection)
     self.name = None
     self.id = None
     self.dateFormat = None
     self.passphrase = None
     self.sessionTimeout = None
     self.timezoneID = None
Ejemplo n.º 12
0
 def __init__(self, connection):
     SCObject.__init__(self, connection)
     self.name = None
     self.id = None
     self.dataFormat = None
     self.passphrase = None
     self.sessionTimeout = None
     self.timezoneID = None
Ejemplo n.º 13
0
 def __init__(self, connection):
     SCObject.__init__(self, connection)
     self.Enabled = None
     self.ServerAddress = None
     self.Port = None
     self.Tenant = None
     self.Username = None
     self.Password = None
Ejemplo n.º 14
0
 def __init__(self, connection):
     SCObject.__init__(self, connection)
     self.Enabled = None
     self.ServerAddress = None
     self.Port = None
     self.Tenant = None
     self.Username = None
     self.Password = None
Ejemplo n.º 15
0
 def __init__(self, connection):
     SCObject.__init__(self, connection)
     self.ScheduleType = None
     self.ScheduleIntervalTime = None
     self.ScheduleIntervalPeriod = None
     self.ScheduleIntervalDay = None
     self.ReAttemptInterval = None
     self.ReAttemptIntervalType = None
     self.ReAttemptICRepeat = None
Ejemplo n.º 16
0
    def __init__(self, connection):
        SCObject.__init__(self, connection)

        # member initialization
        self.id = None
        self.name = None
        self.evaluator = None
        self.context = None
        self.dataType = None
        self.description = None
Ejemplo n.º 17
0
    def __init__(self, connection):
        SCObject.__init__(self, connection)

        # member initialization
        self.id = None
        self.description = None
        self.matchType = None
        self.dataMissing = None
        # inner objects
        self.securityRuleType = None
        self.deviceList = None
        self.securityRuleConditionList = ResultSet([('securityRuleCondition', SecurityRuleCondition)], "securityRuleConditionList")
Ejemplo n.º 18
0
    def __init__(self, connection, tag='Device'):
        SCObject.__init__(self, connection, tag)

        #----------------------------------------------------------------------
        # Attributes
        #----------------------------------------------------------------------
        self.id = None
        self.msUID = None
        self.name = None
        self.href = None

        self.deviceType = None
        self.cspDeviceType = None
        self.deviceState = None
        self.deviceStatus = None

        self.info = None
        self.detachable = None
        self.lastModified = None
        self.writeAccess = None

        self.EncryptedName = None
        self.preserveData = None
        self.partitionType = None
        self.provisionProgress = None
        self.provisionState = None
        self.raidLevel = None
        #----------------------------------------------------------------------
        # Elements
        #----------------------------------------------------------------------
        self.description = None
        self.fileSystem = None
        #----------------------------------------------------------------------
        # subDevices List
        #----------------------------------------------------------------------
        self.__subDevices = ResultSet([('subDevices', Device)], 'subDevices')
        #----------------------------------------------------------------------
        # volume object
        #----------------------------------------------------------------------
        self.volume = None
        #----------------------------------------------------------------------
        # Provider object
        #----------------------------------------------------------------------
        self.provider = None
        #----------------------------------------------------------------------
        # partition list
        #----------------------------------------------------------------------
        self.partitionList = None
Ejemplo n.º 19
0
    def __init__(self, connection, tag='Device'):
        SCObject.__init__(self, connection, tag)

        #----------------------------------------------------------------------
        # Attributes
        #----------------------------------------------------------------------
        self.id = None
        self.msUID = None
        self.name = None
        self.href = None

        self.deviceType = None
        self.cspDeviceType = None
        self.deviceState = None
        self.deviceStatus = None

        self.info = None
        self.detachable = None
        self.lastModified = None
        self.writeAccess = None

        self.EncryptedName = None
        self.preserveData = None
        self.partitionType = None
        self.provisionProgress = None
        self.provisionState = None
        self.raidLevel = None
        #----------------------------------------------------------------------
        # Elements
        #----------------------------------------------------------------------
        self.description = None
        self.fileSystem = None
        #----------------------------------------------------------------------
        # subDevices List
        #----------------------------------------------------------------------
        self.__subDevices = ResultSet([('subDevices', Device)], 'subDevices')
        #----------------------------------------------------------------------
        # volume object
        #----------------------------------------------------------------------
        self.volume = None
        #----------------------------------------------------------------------
        # Provider object
        #----------------------------------------------------------------------
        self.provider = None
        #----------------------------------------------------------------------
        # partition list
        #----------------------------------------------------------------------
        self.partitionList = None
Ejemplo 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 == '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
Ejemplo 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 == '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
Ejemplo 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 == '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
Ejemplo 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 == 'volume':
            self.size = attrs['size']
        else:
            return None
Ejemplo 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 == 'right':
            pass
        else:
            return None
Ejemplo 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 == 'right':
         pass
     else:
         return None
Ejemplo 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 == 'volume':
            self.size = attrs['size']
        else:
            return None
Ejemplo n.º 27
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
Ejemplo n.º 28
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
Ejemplo n.º 29
0
    def __init__(self, connection):
        SCObject.__init__(self, connection)

        # attributes
        self.ac = None
        self.account = None
        self.activationDate = None
        self.expirationDate = None
        self.expireNotificationDate = None
        self.gracePeriod = None
        self.id = None
        self.inUse = None
        self.isPRLicense = None
        self.isTrial = None
        self.lastUpdate = None
        self.seats = None
        self.updateInterval = None
        self.verifyStatus = None
        self.LicenseProfile = None
Ejemplo n.º 30
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
Ejemplo n.º 31
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
Ejemplo n.º 32
0
    def __init__(self, connection):
        SCObject.__init__(self, connection)

        # attributes
        self.ac = None
        self.account = None
        self.activationDate = None
        self.expirationDate = None
        self.expireNotificationDate = None
        self.gracePeriod = None
        self.id = None
        self.inUse = None
        self.isPRLicense = None
        self.isTrial = None
        self.lastUpdate = None
        self.seats = None
        self.updateInterval = None
        self.verifyStatus = None
        self.LicenseProfile = None
Ejemplo n.º 33
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
Ejemplo n.º 34
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
Ejemplo n.º 35
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
Ejemplo n.º 36
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
Ejemplo n.º 37
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
Ejemplo n.º 38
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
Ejemplo n.º 39
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
Ejemplo n.º 40
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
Ejemplo n.º 41
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
Ejemplo n.º 42
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
Ejemplo n.º 43
0
    def __init__(self, connection):
        SCObject.__init__(self, connection)

        # attributes
        self.accountDBID = None
        self.active = None
        self.canModify = None
        self.clientCertPassword = None
        self.doTestConnection = None
        self.enabled = None
        self.hostname = None
        self.id = None
        self.port = None

        # elements
        self.clientCertificateFileName = None
        self.clientCertificate = None
        self.clientPrivateKeyFileName = None
        self.clientPrivateKey = None
        self.serverCertificateFileName = None
        self.serverCertificate = None
Ejemplo n.º 44
0
    def __init__(self, connection):
        SCObject.__init__(self, connection)

        # attributes
        self.accountDBID = None
        self.active = None
        self.canModify = None
        self.clientCertPassword = None
        self.doTestConnection = None
        self.enabled = None
        self.hostname = None
        self.id = None
        self.port = None

        # elements
        self.clientCertificateFileName = None
        self.clientCertificate = None
        self.clientPrivateKeyFileName = None
        self.clientPrivateKey = None
        self.serverCertificateFileName = None
        self.serverCertificate = None
Ejemplo n.º 45
0
 def __init__(self, connection):
     SCObject.__init__(self, connection)
     # user information
     self.id = None
     self.loginname = None
     self.logintext = None
     self.lastlogintext = None
     self.usertype = None
     self.email = None
     self.href = None
     self.isPending = None
     self.isCurrent = None
     self.authType = None
     self.ssoIdPName = None
     self.isLicensedUser = None
     self.MFAStatus = None
     # contact information
     self.firstName = None
     self.lastName = None
     self.email = None
     # account information
     self.account = None
     self.role = None
Ejemplo n.º 46
0
 def __init__(self, connection):
     SCObject.__init__(self, connection)
     #user information
     self.id = None
     self.loginname = None
     self.logintext = None
     self.lastlogintext = None
     self.usertype = None
     self.email = None
     self.href = None
     self.isPending = None
     self.isCurrent = None
     self.authType = None
     self.ssoIdPName = None
     self.isLicensedUser = None
     self.MFAStatus = None
     #contact information
     self.firstName = None
     self.lastName = None
     self.email = None
     #account information
     self.account = None
     self.role = None
Ejemplo n.º 47
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
Ejemplo n.º 48
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
Ejemplo n.º 49
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
Ejemplo n.º 50
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
Ejemplo n.º 51
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
Ejemplo n.º 52
0
 def __init__(self, connection):
     SCObject.__init__(self, connection)
     self.id = None
     self.href = None
Ejemplo n.º 53
0
 def __init__(self, connection):
     SCObject.__init__(self, connection)
     self.name = None
     self.href = None
     self.providerLocation = None