def setCrashDumpForHosts(self, pool_ids): ''' Set crash_dump_for_hosts relationship by Host id. Used by modeling. ''' updateToMany(relationship=self.crash_dump_for_hosts, root=self.device(), type_=CLASS_NAME['Host'], ids=pool_ids)
def setVMs(self, vm_ids): ''' Update VM relationship given ids. Used by modeling. ''' updateToMany(relationship=self.vms, root=self.device(), type_=CLASS_NAME['VM'], ids=vm_ids)
def setSuspendImageForHosts(self, pool_ids): ''' Set suspend_image_for_hosts relationship by Host id. Used by modeling. ''' updateToMany(relationship=self.suspend_image_for_hosts, root=self.device(), type_=CLASS_NAME['Host'], ids=pool_ids)
def setSuspendImageForPools(self, pool_ids): ''' Set suspend_image_for_pools relationship by Pool id. Used by modeling. ''' updateToMany(relationship=self.suspend_image_for_pools, root=self.device(), type_=CLASS_NAME['Pool'], ids=pool_ids)
def setCrashDumpForPools(self, pool_ids): ''' Set crash_dump_for_pools relationship by Pool id. Used by modeling. ''' updateToMany(relationship=self.crash_dump_for_pools, root=self.device(), type_=CLASS_NAME['Pool'], ids=pool_ids)
def setPBDs(self, pbd_ids): ''' Update PBD relationship given PBD ids. Used by modeling. ''' updateToMany(relationship=self.pbds, root=self.device(), type_=CLASS_NAME['PBD'], ids=pbd_ids)
def setDefaultForPools(self, pool_ids): ''' Set default_for_pools relationship by Pool id. Used by modeling. ''' updateToMany(relationship=self.default_for_pools, root=self.device(), type_=CLASS_NAME['Pool'], ids=pool_ids)
def setLocalCacheForHosts(self, pool_ids): ''' Set local_cache_for_hosts relationship by Host id. Used by modeling. ''' updateToMany(relationship=self.local_cache_for_hosts, root=self.device(), type_=CLASS_NAME['Host'], ids=pool_ids)
def setLocalCacheForHosts(self, pool_ids): ''' Set local_cache_for_hosts relationship by Host id. Used by modeling. ''' updateToMany( relationship=self.local_cache_for_hosts, root=self.device(), type_=CLASS_NAME['Host'], ids=pool_ids)
def setVIFs(self, vif_ids): ''' Update vifs relationship given ids. Used by modeling. ''' updateToMany( relationship=self.vifs, root=self.device(), type_=CLASS_NAME['VIF'], ids=vif_ids)
def setCrashDumpForHosts(self, pool_ids): ''' Set crash_dump_for_hosts relationship by Host id. Used by modeling. ''' updateToMany( relationship=self.crash_dump_for_hosts, root=self.device(), type_=CLASS_NAME['Host'], ids=pool_ids)
def setSuspendImageForHosts(self, pool_ids): ''' Set suspend_image_for_hosts relationship by Host id. Used by modeling. ''' updateToMany( relationship=self.suspend_image_for_hosts, root=self.device(), type_=CLASS_NAME['Host'], ids=pool_ids)
def setCrashDumpForPools(self, pool_ids): ''' Set crash_dump_for_pools relationship by Pool id. Used by modeling. ''' updateToMany( relationship=self.crash_dump_for_pools, root=self.device(), type_=CLASS_NAME['Pool'], ids=pool_ids)
def setSuspendImageForPools(self, pool_ids): ''' Set suspend_image_for_pools relationship by Pool id. Used by modeling. ''' updateToMany( relationship=self.suspend_image_for_pools, root=self.device(), type_=CLASS_NAME['Pool'], ids=pool_ids)
def setDefaultForPools(self, pool_ids): ''' Set default_for_pools relationship by Pool id. Used by modeling. ''' updateToMany( relationship=self.default_for_pools, root=self.device(), type_=CLASS_NAME['Pool'], ids=pool_ids)
def setPBDs(self, pbd_ids): ''' Update PBD relationship given PBD ids. Used by modeling. ''' updateToMany( relationship=self.pbds, root=self.device(), type_=CLASS_NAME['PBD'], ids=pbd_ids)
def setVMs(self, vm_ids): ''' Update VM relationship given ids. Used by modeling. ''' updateToMany( relationship=self.vms, root=self.device(), type_=CLASS_NAME['VM'], ids=vm_ids)
def setVBDs(self, vbd_ids): ''' Update vbds relationship given vbd_ids. Used by modeling. ''' updateToMany( relationship=self.vbds, root=self.device(), type_=CLASS_NAME['VBD'], ids=vbd_ids)