def get_nfc_ticket_by_ds_name(self, datastore): """ :param datastore: str, datastore name :rtype: vim.HostServiceTicket """ ds = self._find_by_inventory_path(DATASTORE_FOLDER_NAME, datastore) if not ds: raise DatastoreNotFound('Datastore %s not found' % datastore) nfc_service = vim.NfcService('ha-nfc-service', self._si._stub) return nfc_service.FileManagement(ds)
def nfc_service(self): return vim.NfcService('ha-nfc-service', self._si._stub)