/// <summary>Snippet for CancelTrainingPipeline</summary> public void CancelTrainingPipeline() { // Snippet: CancelTrainingPipeline(string, CallSettings) // Create client PipelineServiceClient pipelineServiceClient = PipelineServiceClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/trainingPipelines/[TRAINING_PIPELINE]"; // Make the request pipelineServiceClient.CancelTrainingPipeline(name); // End snippet }
/// <summary>Snippet for CancelTrainingPipeline</summary> public void CancelTrainingPipelineResourceNames() { // Snippet: CancelTrainingPipeline(TrainingPipelineName, CallSettings) // Create client PipelineServiceClient pipelineServiceClient = PipelineServiceClient.Create(); // Initialize request argument(s) TrainingPipelineName name = TrainingPipelineName.FromProjectLocationTrainingPipeline("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]"); // Make the request pipelineServiceClient.CancelTrainingPipeline(name); // End snippet }
/// <summary>Snippet for CancelTrainingPipeline</summary> public void CancelTrainingPipelineRequestObject() { // Snippet: CancelTrainingPipeline(CancelTrainingPipelineRequest, CallSettings) // Create client PipelineServiceClient pipelineServiceClient = PipelineServiceClient.Create(); // Initialize request argument(s) CancelTrainingPipelineRequest request = new CancelTrainingPipelineRequest { TrainingPipelineName = TrainingPipelineName.FromProjectLocationTrainingPipeline("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]"), }; // Make the request pipelineServiceClient.CancelTrainingPipeline(request); // End snippet }