/// <summary>Snippet for DeleteExperiment</summary> public void DeleteExperiment() { // Snippet: DeleteExperiment(string, CallSettings) // Create client ExperimentsClient experimentsClient = ExperimentsClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/environments/[ENVIRONMENT]/experiments/[EXPERIMENT]"; // Make the request experimentsClient.DeleteExperiment(name); // End snippet }
/// <summary>Snippet for DeleteExperiment</summary> public void DeleteExperimentResourceNames() { // Snippet: DeleteExperiment(ExperimentName, CallSettings) // Create client ExperimentsClient experimentsClient = ExperimentsClient.Create(); // Initialize request argument(s) ExperimentName name = ExperimentName.FromProjectLocationAgentEnvironmentExperiment("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]"); // Make the request experimentsClient.DeleteExperiment(name); // End snippet }
/// <summary>Snippet for DeleteExperiment</summary> public void DeleteExperimentRequestObject() { // Snippet: DeleteExperiment(DeleteExperimentRequest, CallSettings) // Create client ExperimentsClient experimentsClient = ExperimentsClient.Create(); // Initialize request argument(s) DeleteExperimentRequest request = new DeleteExperimentRequest { ExperimentName = ExperimentName.FromProjectLocationAgentEnvironmentExperiment("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]"), }; // Make the request experimentsClient.DeleteExperiment(request); // End snippet }