Example #1
0
    def delete_all_pipelines(self, force=None):
        """
        Deletes all pipelines.

        Params:
        * force: Whether to force delete.
        """

        req = proto.DeletePipelineRequest(all=True, force=force)
        self.stub.DeletePipeline(req, metadata=self.metadata)
Example #2
0
    def delete_pipeline(self, pipeline_name, force=None):
        """
        Deletes a pipeline.

        Params:
        * pipeline_name: A string representing the pipeline name.
        * force: Whether to force delete.
        """

        req = proto.DeletePipelineRequest(pipeline=proto.Pipeline(name=pipeline_name), force=force)
        self.stub.DeletePipeline(req, metadata=self.metadata)
Example #3
0
 def delete_pipeline(self, pipeline_name, all=False):
     req = proto.DeletePipelineRequest(
         pipeline=proto.Pipeline(name=pipeline_name), all=all)
     self.stub.DeletePipeline(req, metadata=self.metadata)