Exemplo n.º 1
0
 def __init__(self, osInfo, localPath, remoteUrl=None):
     """ Initialize repo. """
     TortugaObject.__init__(self, {
         'osInfo': osInfo,
         'localPath': localPath,
         'remoteUrl': remoteUrl,
     }, [], 'repo')
Exemplo n.º 2
0
 def __init__(self, name='', xPath=''):
     TortugaObject.__init__(self, {
         'name': name,
         'xPath': xPath,
     }, ['xPath', 'name', 'id'], XPathVariable.ROOT_TAG, {
         'xPath': 'str',
     })
Exemplo n.º 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)
Exemplo n.º 4
0
Arquivo: kit.py Projeto: 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)
Exemplo n.º 5
0
    def __init__(self):

        TortugaObject.__init__(
            self, {
                'nodes': TortugaObjectList(),
                'strings': TortugaObjectList(),
                'running': False
            }, [], AddHostStatus.ROOT_TAG)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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',
         })
Exemplo n.º 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',
                            })
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 13
0
 def __init__(self, name=None):
     TortugaObject.__init__(
         self, {
             'name': name
         }, ['name', 'id'], Module.ROOT_TAG)
Exemplo n.º 14
0
 def __init__(self, address=None):
     TortugaObject.__init__(self, {'address': address}, ['address', 'id'],
                            Network.ROOT_TAG)
Exemplo n.º 15
0
 def __init__(self, name=None):
     TortugaObject.__init__(self, {
         'name': name,
     }, ['name', 'softwareProfileId', 'id'], Package.ROOT_TAG)
Exemplo n.º 16
0
 def __init__(self, url=None, description=None):
     TortugaObject.__init__(self, {
         'url': url,
         'description': description,
     }, ['name', 'description', 'id'], KitSource.ROOT_TAG)
Exemplo n.º 17
0
 def __init__(self, name=None):
     TortugaObject.__init__(self, {'name': name}, ['name'],
                            NetworkDevice.ROOT_TAG)
Exemplo n.º 18
0
 def __init__(self, name=None, device=None):
     TortugaObject.__init__(self, {
         'name': name,
         'device': device
     }, ['name', 'device', 'id'], Partition.ROOT_TAG)
Exemplo n.º 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)
Exemplo n.º 20
0
 def __init__(self, name=None, kitId=None):
     TortugaObject.__init__(self, {
         'name': name,
         'kitId': kitId
     }, ['id', 'name'], ResourceAdapter.ROOT_TAG)
Exemplo n.º 21
0
 def __init__(self, osInfo=None):
     TortugaObject.__init__(self, {
         'osInfo': osInfo,
         'requires': TortugaObjectList(),
     }, [], OsComponent.ROOT_TAG)
Exemplo n.º 22
0
 def __init__(self, mac=None, ip=None):
     TortugaObject.__init__(self, {
         'mac': mac,
         'ip': ip
     }, ['mac', 'ip', 'id'], Nic.ROOT_TAG)
Exemplo n.º 23
0
 def __init__(self, path):
     TortugaObject.__init__(self, {'path': path}, ['path'])
Exemplo n.º 24
0
 def __init__(self):
     TortugaObject.__init__(self, {}, [], ProvisioningInfo.ROOT_TAG)