From 95befd6bf81534bbce9206a4d4b227f43085f20f Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Fri, 9 Feb 2024 13:36:02 +0000 Subject: [PATCH] chore: Fix API key docs for help pages --- tools/Google.Cloud.Docs.Snippets/ConfigurationSnippets.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/Google.Cloud.Docs.Snippets/ConfigurationSnippets.cs b/tools/Google.Cloud.Docs.Snippets/ConfigurationSnippets.cs index 6f53d4ba931c..542545aee3f5 100644 --- a/tools/Google.Cloud.Docs.Snippets/ConfigurationSnippets.cs +++ b/tools/Google.Cloud.Docs.Snippets/ConfigurationSnippets.cs @@ -24,11 +24,11 @@ public class ConfigurationSnippets // Note: If you change this sample, please also change the sample // in Google.Cloud.Language.V1.Snippets. [Fact] - public void LanguageApiKey_Simple() + public void ApiKey_Simple() { string apiKey = "some-api-key"; - // Sample: ApiKey + // Sample: ApiKey_Simple // Create a LanguageServiceClient which uses the given API key // instead of regular credentials. LanguageServiceClient client = new LanguageServiceClientBuilder @@ -41,11 +41,11 @@ public void LanguageApiKey_Simple() } [Fact] - public void LanguageApiKey_Manual() + public void ApiKey_Manual() { string apiKey = "some-api-key"; - // Sample: ApiKey + // Sample: ApiKey_Manual // Create a LanguageServiceSettings that applies the X-Goog-Api-Key // header on every request LanguageServiceSettings settings = new LanguageServiceSettings