コード例 #1
0
 def __init__(self, model, id=None):
     super(Host, self).__init__(model, id)
     self.role_key = 'host'
     self.admin_methods = ['GET', 'POST']
     self.uri_fmt = '/host/%s'
     self.devices = Devices(self.model)
     self.cpuinfo = CPUInfo(self.model)
     self.partitions = Partitions(self.model)
コード例 #2
0
 def __init__(self, model, id=None):
     super(Host, self).__init__(model, id)
     self.role_key = 'host'
     self.admin_methods = ['GET', 'POST']
     self.uri_fmt = '/host/%s'
     self.reboot = self.generate_action_handler('reboot')
     self.shutdown = self.generate_action_handler('shutdown')
     self.stats = HostStats(self.model)
     self.partitions = Partitions(self.model)
     self.devices = Devices(self.model)
     self.packagesupdate = PackagesUpdate(self.model)
     self.repositories = Repositories(self.model)
     self.swupdate = self.generate_action_handler_task('swupdate')
     self.swupdateprogress = SoftwareUpdateProgress(self.model)
     self.cpuinfo = CPUInfo(self.model)