code: def query(cls, automation=None, package=None, status=None, name=None,
                created_by=None, created_from=None, created_to=None,
                order_by=None, order=None, offset=None, limit=None, api=None):
          
          if automation:
              automation = Transform.to_automation(automation)
  
          if package:
              package = Transform.to_automation_package(package)
  
          api = api or cls._API
          return super(AutomationRun, cls)._query(
              url=cls._URL['query'],
              name=name,
              automation=automation,
              package=package,
              status=status,
              created_by=created_by,
              created_from=created_from,
              created_to=created_to,
              order_by=order_by,
              order=order,
              offset=offset,
              limit=limit,
              api=api,
          )
docs: Query (List) automation runs.
          :param name: Automation run name
          :param automation: Automation template
          :param package: Package
          :param status: Run status
          :param created_by: Username of user that created the run
          :param order_by: Property by which to order results
          :param order: Ascending or descending ("asc" or "desc")
          :param created_from: Date the run is created after
          :param created_to: Date the run is created before
          :param offset: Pagination offset.
          :param limit: Pagination limit.
          :param api: Api instance.
          :return: collection object