예제 #1
0
        /// <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
        }
예제 #2
0
        /// <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
        }
예제 #3
0
        /// <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
        }