Пример #1
0
        /// <summary>Snippet for DeleteExperimentAsync</summary>
        public async Task DeleteExperimentResourceNamesAsync()
        {
            // Snippet: DeleteExperimentAsync(ExperimentName, CallSettings)
            // Additional: DeleteExperimentAsync(ExperimentName, CancellationToken)
            // Create client
            ExperimentsClient experimentsClient = await ExperimentsClient.CreateAsync();

            // Initialize request argument(s)
            ExperimentName name = ExperimentName.FromProjectLocationAgentEnvironmentExperiment("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]");
            // Make the request
            await experimentsClient.DeleteExperimentAsync(name);

            // End snippet
        }
Пример #2
0
        /// <summary>Snippet for DeleteExperimentAsync</summary>
        public async Task DeleteExperimentAsync()
        {
            // Snippet: DeleteExperimentAsync(string, CallSettings)
            // Additional: DeleteExperimentAsync(string, CancellationToken)
            // Create client
            ExperimentsClient experimentsClient = await ExperimentsClient.CreateAsync();

            // Initialize request argument(s)
            string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/environments/[ENVIRONMENT]/experiments/[EXPERIMENT]";
            // Make the request
            await experimentsClient.DeleteExperimentAsync(name);

            // End snippet
        }