Example #1
0
 def __init__(self, osInfo, localPath, remoteUrl=None):
     """ Initialize repo. """
     TortugaObject.__init__(self, {
         'osInfo': osInfo,
         'localPath': localPath,
         'remoteUrl': remoteUrl,
     }, [], 'repo')
Example #2
0
 def __init__(self, name='', xPath=''):
     TortugaObject.__init__(self, {
         'name': name,
         'xPath': xPath,
     }, ['xPath', 'name', 'id'], XPathVariable.ROOT_TAG, {
         'xPath': 'str',
     })
Example #3
0
 def __init__(self, name=None, value=None, description=None):
     TortugaObject.__init__(
         self, {
             'name': name,
             'value': value,
             'description': description
         }, ['name', 'value', 'description', 'id'], Parameter.ROOT_TAG)
Example #4
0
File: kit.py Project: ilumb/tortuga
 def __init__(self, name=None, version=None, iteration=None):
     TortugaObject.__init__(self, {
         'name': name,
         'version': version,
         'iteration': iteration,
         'componentList': TortugaObjectList(),
         'sources': TortugaObjectList(),
     }, ['name', 'version', 'iteration', 'id'], Kit.ROOT_TAG)
Example #5
0
    def __init__(self):

        TortugaObject.__init__(
            self, {
                'nodes': TortugaObjectList(),
                'strings': TortugaObjectList(),
                'running': False
            }, [], AddHostStatus.ROOT_TAG)
Example #6
0
 def __init__(self, name=None):
     TortugaObject.__init__(self, {
         'name': name,
         'networks': TortugaObjectList(),
         'admins': TortugaObjectList(),
         'nodes': TortugaObjectList(),
         'nics': TortugaObjectList(),
     }, ['name', 'id'], HardwareProfile.ROOT_TAG)
Example #7
0
 def __init__(self, applicationName='', name='', description=''):
     TortugaObject.__init__(self, {
         'applicationName': applicationName,
         'name': name,
         'description': description,
         'status': Rule.ENABLED_STATUS,
         'conditions': TortugaObjectList(),
         'xPathVariables': TortugaObjectList(),
     }, ['applicationName', 'name', 'id'], Rule.ROOT_TAG)
Example #8
0
 def __init__(self, name=None, version=None):
     TortugaObject.__init__(
         self, {
             'name': name,
             'version': version,
             'packageList': TortugaObjectList(),
             'osComponentList': TortugaObjectList(),
             'osFamilyComponentList': TortugaObjectList()
         }, ['name', 'version', 'id'], Component.ROOT_TAG)
Example #9
0
 def __init__(self, metricXPath='', evaluationOperator='', triggerValue=''):
     TortugaObject.__init__(
         self, {
             'metricXPath': metricXPath,
             'evaluationOperator': evaluationOperator,
             'triggerValue': triggerValue,
         }, ['metricXPath', 'evaluationOperator', 'triggerValue', 'id'],
         RuleCondition.ROOT_TAG, {
             'evaluationOperator': 'str',
         })
Example #10
0
 def __init__(self, type_='', description='', pollPeriod=None):
     TortugaObject.__init__(self, {
         'type': type_,
         'description': description,
         'pollPeriod': pollPeriod,
     }, ['type', 'id', 'pollPeriod', 'maxActionInvocations'],
                            ApplicationMonitor.ROOT_TAG, {
                                'queryCommand': 'str',
                                'actionCommand': 'str',
                            })
Example #11
0
 def __init__(self, name=None):
     TortugaObject.__init__(
         self, {
             'name': name,
             'admins': TortugaObjectList(),
             'partitions': TortugaObjectList(),
             'components': TortugaObjectList(),
             'nodes': TortugaObjectList(),
             'kitsources': TortugaObjectList(),
         }, ['name', 'id'], SoftwareProfile.ROOT_TAG)
Example #12
0
 def __init__(self,
              volume_id=None,
              size=None,
              storageAdapter=None,
              adapterVolume=None,
              persistent=False,
              shared=False):
     TortugaObject.__init__(
         self, {
             'id': volume_id,
             'size': size,
             'storageadapter': storageAdapter,
             'persistent': persistent,
             'adaptervolume': adapterVolume,
             'shared': shared
         }, ['id', 'storageadapter'], Volume.ROOT_TAG)
Example #13
0
 def __init__(self, name=None):
     TortugaObject.__init__(
         self, {
             'name': name
         }, ['name', 'id'], Module.ROOT_TAG)
Example #14
0
 def __init__(self, address=None):
     TortugaObject.__init__(self, {'address': address}, ['address', 'id'],
                            Network.ROOT_TAG)
Example #15
0
 def __init__(self, name=None):
     TortugaObject.__init__(self, {
         'name': name,
     }, ['name', 'softwareProfileId', 'id'], Package.ROOT_TAG)
Example #16
0
 def __init__(self, url=None, description=None):
     TortugaObject.__init__(self, {
         'url': url,
         'description': description,
     }, ['name', 'description', 'id'], KitSource.ROOT_TAG)
Example #17
0
 def __init__(self, name=None):
     TortugaObject.__init__(self, {'name': name}, ['name'],
                            NetworkDevice.ROOT_TAG)
Example #18
0
 def __init__(self, name=None, device=None):
     TortugaObject.__init__(self, {
         'name': name,
         'device': device
     }, ['name', 'device', 'id'], Partition.ROOT_TAG)
Example #19
0
 def __init__(self, name=None, version=None, arch=None):
     TortugaObject.__init__(self, {
         'name': name,
         'version': version,
         'arch': arch
     }, ['name', 'version', 'arch', 'id'], OsInfo.ROOT_TAG)
Example #20
0
 def __init__(self, name=None, kitId=None):
     TortugaObject.__init__(self, {
         'name': name,
         'kitId': kitId
     }, ['id', 'name'], ResourceAdapter.ROOT_TAG)
Example #21
0
 def __init__(self, osInfo=None):
     TortugaObject.__init__(self, {
         'osInfo': osInfo,
         'requires': TortugaObjectList(),
     }, [], OsComponent.ROOT_TAG)
Example #22
0
 def __init__(self, mac=None, ip=None):
     TortugaObject.__init__(self, {
         'mac': mac,
         'ip': ip
     }, ['mac', 'ip', 'id'], Nic.ROOT_TAG)
Example #23
0
 def __init__(self, path):
     TortugaObject.__init__(self, {'path': path}, ['path'])
Example #24
0
 def __init__(self):
     TortugaObject.__init__(self, {}, [], ProvisioningInfo.ROOT_TAG)