code: def to_api_repr(self):
          
          configuration = self._configuration.to_api_repr()
  
          resource = {
              "jobReference": self._properties["jobReference"],
              "configuration": configuration,
          }
          configuration["query"]["query"] = self.query
  
          return resource
docs: Generate a resource for :meth:`_begin`.