def _args_from_dict(body): args = { '_backup_id': body['BackupConfigurationId'], '_restored': { 'files': int(body['NumFilesRestored']), 'bytes': body['NumBytesRestored'] }, '_destination': { 'id': body['RestoreDestinationMachineId'], 'path': body['RestoreDestination'] } } args.update(report._args_from_dict(body)) return args
def _args_from_dict(body): args = { '_agent_id': body['MachineAgentId'], '_machine_name': body['ComputerName'], '_restorable': body['CanRestore'], '_searched': { 'files': int(body['FilesSearched']), 'bytes': body['BytesSearched'] }, '_backup': { 'files': int(body['FilesBackedUp']), 'bytes': body['BytesBackedUp'] } } args.update(report._args_from_dict(body)) return args