class_docstr: A client that is scoped to a specific job.
  
  .. versionadded:: 1.11.0
docstr: Triggers a savepoint for the associated job. The savepoint will be written to the given
  savepoint directory.
  
  :param savepoint_directory: Directory the savepoint should be written to.
  :return: A CompletableFuture containing the path where the savepoint is located.
  
  .. versionadded:: 1.11.0
docstr_tok: ["Triggers","a","savepoint","for","the","associated","job",".","The","savepoint","will","be","written","to","the","given","savepoint","directory",".",":","param","savepoint_directory",":","Directory","the","savepoint","should","be","written","to",".",":","return",":","A","CompletableFuture","containing","the","path","where","the","savepoint","is","located",".","..","versionadded",":",":","1.11.0"]
code: def trigger_savepoint(
      self, savepoint_directory: str = None
  ) -> CompletableFuture:
      """
      Triggers a savepoint for the associated job. The savepoint will be written to the given
      savepoint directory.
  
      :param savepoint_directory: Directory the savepoint should be written to.
      :return: A CompletableFuture containing the path where the savepoint is located.
  
      .. versionadded:: 1.11.0
      """
      return CompletableFuture(
          self._j_job_client.triggerSavepoint(savepoint_directory), str
      )
  
file_path: flink/flink-python/pyflink/common/job_client.py
imports: from pyflink.common.completable_future import CompletableFuture
  from pyflink.common.job_execution_result import JobExecutionResult
  from pyflink.common.job_id import JobID
  from pyflink.common.job_status import JobStatus
label_desc: Use image node_id 6 for calling the JobClient obj's underlying member method code with example usage: obj.trigger_savepoint(savepoint_directory) and returns: CompletableFuture