/// <summary>Snippet for GetTrainingPipelineAsync</summary> public async Task GetTrainingPipelineResourceNamesAsync() { // Snippet: GetTrainingPipelineAsync(TrainingPipelineName, CallSettings) // Additional: GetTrainingPipelineAsync(TrainingPipelineName, CancellationToken) // Create client PipelineServiceClient pipelineServiceClient = await PipelineServiceClient.CreateAsync(); // Initialize request argument(s) TrainingPipelineName name = TrainingPipelineName.FromProjectLocationTrainingPipeline("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]"); // Make the request TrainingPipeline response = await pipelineServiceClient.GetTrainingPipelineAsync(name); // End snippet }
/// <summary>Snippet for GetTrainingPipelineAsync</summary> public async Task GetTrainingPipelineAsync() { // Snippet: GetTrainingPipelineAsync(string, CallSettings) // Additional: GetTrainingPipelineAsync(string, CancellationToken) // Create client PipelineServiceClient pipelineServiceClient = await PipelineServiceClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/trainingPipelines/[TRAINING_PIPELINE]"; // Make the request TrainingPipeline response = await pipelineServiceClient.GetTrainingPipelineAsync(name); // End snippet }