Skip to content

Commit

Permalink
chore: Fix API key docs for help pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jskeet committed Feb 9, 2024
1 parent 0e3c5e2 commit 95befd6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/Google.Cloud.Docs.Snippets/ConfigurationSnippets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 95befd6

Please sign in to comment.