From 7a1f5a32db9a8292c98a5f4fa509637533540772 Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Fri, 17 Jan 2025 07:56:10 +0000 Subject: [PATCH] chore: Regenerate Grafeas.V1 --- ...asClient.BatchCreateNotesAsyncSnippet.g.cs | 3 +- ...hCreateNotesRequestObjectAsyncSnippet.g.cs | 3 +- ....BatchCreateNotesRequestObjectSnippet.g.cs | 3 +- ...hCreateNotesResourceNamesAsyncSnippet.g.cs | 3 +- ....BatchCreateNotesResourceNamesSnippet.g.cs | 3 +- ...GrafeasClient.BatchCreateNotesSnippet.g.cs | 3 +- ...nt.BatchCreateOccurrencesAsyncSnippet.g.cs | 3 +- ...eOccurrencesRequestObjectAsyncSnippet.g.cs | 3 +- ...CreateOccurrencesRequestObjectSnippet.g.cs | 3 +- ...eOccurrencesResourceNamesAsyncSnippet.g.cs | 3 +- ...CreateOccurrencesResourceNamesSnippet.g.cs | 3 +- ...sClient.BatchCreateOccurrencesSnippet.g.cs | 3 +- .../GrafeasClient.CreateNoteAsyncSnippet.g.cs | 3 +- ...t.CreateNoteRequestObjectAsyncSnippet.g.cs | 3 +- ...Client.CreateNoteRequestObjectSnippet.g.cs | 3 +- ...t.CreateNoteResourceNamesAsyncSnippet.g.cs | 3 +- ...Client.CreateNoteResourceNamesSnippet.g.cs | 3 +- .../GrafeasClient.CreateNoteSnippet.g.cs | 3 +- ...asClient.CreateOccurrenceAsyncSnippet.g.cs | 3 +- ...teOccurrenceRequestObjectAsyncSnippet.g.cs | 3 +- ....CreateOccurrenceRequestObjectSnippet.g.cs | 3 +- ...teOccurrenceResourceNamesAsyncSnippet.g.cs | 3 +- ....CreateOccurrenceResourceNamesSnippet.g.cs | 3 +- ...GrafeasClient.CreateOccurrenceSnippet.g.cs | 3 +- .../GrafeasClient.DeleteNoteAsyncSnippet.g.cs | 3 +- ...t.DeleteNoteRequestObjectAsyncSnippet.g.cs | 3 +- ...Client.DeleteNoteRequestObjectSnippet.g.cs | 3 +- ...t.DeleteNoteResourceNamesAsyncSnippet.g.cs | 3 +- ...Client.DeleteNoteResourceNamesSnippet.g.cs | 3 +- .../GrafeasClient.DeleteNoteSnippet.g.cs | 3 +- ...asClient.DeleteOccurrenceAsyncSnippet.g.cs | 3 +- ...teOccurrenceRequestObjectAsyncSnippet.g.cs | 3 +- ....DeleteOccurrenceRequestObjectSnippet.g.cs | 3 +- ...teOccurrenceResourceNamesAsyncSnippet.g.cs | 3 +- ....DeleteOccurrenceResourceNamesSnippet.g.cs | 3 +- ...GrafeasClient.DeleteOccurrenceSnippet.g.cs | 3 +- .../GrafeasClient.GetNoteAsyncSnippet.g.cs | 3 +- ...ient.GetNoteRequestObjectAsyncSnippet.g.cs | 3 +- ...easClient.GetNoteRequestObjectSnippet.g.cs | 3 +- ...ient.GetNoteResourceNamesAsyncSnippet.g.cs | 3 +- ...easClient.GetNoteResourceNamesSnippet.g.cs | 3 +- .../GrafeasClient.GetNoteSnippet.g.cs | 3 +- ...afeasClient.GetOccurrenceAsyncSnippet.g.cs | 3 +- ...sClient.GetOccurrenceNoteAsyncSnippet.g.cs | 3 +- ...currenceNoteRequestObjectAsyncSnippet.g.cs | 3 +- ...GetOccurrenceNoteRequestObjectSnippet.g.cs | 3 +- ...currenceNoteResourceNamesAsyncSnippet.g.cs | 3 +- ...GetOccurrenceNoteResourceNamesSnippet.g.cs | 3 +- ...rafeasClient.GetOccurrenceNoteSnippet.g.cs | 3 +- ...etOccurrenceRequestObjectAsyncSnippet.g.cs | 3 +- ...ent.GetOccurrenceRequestObjectSnippet.g.cs | 3 +- ...etOccurrenceResourceNamesAsyncSnippet.g.cs | 3 +- ...ent.GetOccurrenceResourceNamesSnippet.g.cs | 3 +- .../GrafeasClient.GetOccurrenceSnippet.g.cs | 3 +- ...lient.ListNoteOccurrencesAsyncSnippet.g.cs | 3 +- ...eOccurrencesRequestObjectAsyncSnippet.g.cs | 3 +- ...stNoteOccurrencesRequestObjectSnippet.g.cs | 3 +- ...eOccurrencesResourceNamesAsyncSnippet.g.cs | 3 +- ...stNoteOccurrencesResourceNamesSnippet.g.cs | 3 +- ...feasClient.ListNoteOccurrencesSnippet.g.cs | 3 +- .../GrafeasClient.ListNotesAsyncSnippet.g.cs | 3 +- ...nt.ListNotesRequestObjectAsyncSnippet.g.cs | 3 +- ...sClient.ListNotesRequestObjectSnippet.g.cs | 3 +- ...nt.ListNotesResourceNamesAsyncSnippet.g.cs | 3 +- ...sClient.ListNotesResourceNamesSnippet.g.cs | 3 +- .../GrafeasClient.ListNotesSnippet.g.cs | 3 +- ...easClient.ListOccurrencesAsyncSnippet.g.cs | 3 +- ...tOccurrencesRequestObjectAsyncSnippet.g.cs | 3 +- ...t.ListOccurrencesRequestObjectSnippet.g.cs | 3 +- ...tOccurrencesResourceNamesAsyncSnippet.g.cs | 3 +- ...t.ListOccurrencesResourceNamesSnippet.g.cs | 3 +- .../GrafeasClient.ListOccurrencesSnippet.g.cs | 3 +- .../GrafeasClient.UpdateNoteAsyncSnippet.g.cs | 3 +- ...t.UpdateNoteRequestObjectAsyncSnippet.g.cs | 3 +- ...Client.UpdateNoteRequestObjectSnippet.g.cs | 3 +- ...t.UpdateNoteResourceNamesAsyncSnippet.g.cs | 3 +- ...Client.UpdateNoteResourceNamesSnippet.g.cs | 3 +- .../GrafeasClient.UpdateNoteSnippet.g.cs | 3 +- ...asClient.UpdateOccurrenceAsyncSnippet.g.cs | 3 +- ...teOccurrenceRequestObjectAsyncSnippet.g.cs | 3 +- ....UpdateOccurrenceRequestObjectSnippet.g.cs | 3 +- ...teOccurrenceResourceNamesAsyncSnippet.g.cs | 3 +- ....UpdateOccurrenceResourceNamesSnippet.g.cs | 3 +- ...GrafeasClient.UpdateOccurrenceSnippet.g.cs | 3 +- .../GrafeasClientSnippets.g.cs | 252 ++++++------------ apis/Grafeas.V1/Grafeas.V1/GrafeasClient.g.cs | 10 +- 86 files changed, 177 insertions(+), 337 deletions(-) diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesAsyncSnippet.g.cs index f33b5033a6bd..fb4d29b91da3 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesAsyncSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task BatchCreateNotesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; IDictionary notes = new Dictionary { { "", new Note() }, }; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesRequestObjectAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesRequestObjectAsyncSnippet.g.cs index 6b46afeb61fb..8341eae1fb13 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesRequestObjectAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesRequestObjectAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task BatchCreateNotesRequestObjectAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) BatchCreateNotesRequest request = new BatchCreateNotesRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesRequestObjectSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesRequestObjectSnippet.g.cs index 1c68ecb8fbd6..767bc574d9fa 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesRequestObjectSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesRequestObjectSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void BatchCreateNotesRequestObject() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) BatchCreateNotesRequest request = new BatchCreateNotesRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesResourceNamesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesResourceNamesAsyncSnippet.g.cs index efc20fe62bb3..647563952556 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesResourceNamesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesResourceNamesAsyncSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task BatchCreateNotesResourceNamesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); IDictionary notes = new Dictionary { { "", new Note() }, }; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesResourceNamesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesResourceNamesSnippet.g.cs index 8f5b2513fc40..38b128d60c1f 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesResourceNamesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesResourceNamesSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void BatchCreateNotesResourceNames() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); IDictionary notes = new Dictionary { { "", new Note() }, }; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesSnippet.g.cs index c5275d35478e..e0322dc637c2 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateNotesSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void BatchCreateNotes() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; IDictionary notes = new Dictionary { { "", new Note() }, }; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesAsyncSnippet.g.cs index 6224520e3f45..840d7b9f614c 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesAsyncSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task BatchCreateOccurrencesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; IEnumerable occurrences = new Occurrence[] { new Occurrence(), }; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesRequestObjectAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesRequestObjectAsyncSnippet.g.cs index 710497a3b8dd..a95044c9b4a3 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesRequestObjectAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesRequestObjectAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task BatchCreateOccurrencesRequestObjectAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) BatchCreateOccurrencesRequest request = new BatchCreateOccurrencesRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesRequestObjectSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesRequestObjectSnippet.g.cs index 78b7ad6b2243..102286e87593 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesRequestObjectSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesRequestObjectSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void BatchCreateOccurrencesRequestObject() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) BatchCreateOccurrencesRequest request = new BatchCreateOccurrencesRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesResourceNamesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesResourceNamesAsyncSnippet.g.cs index f6572d130406..bb337ef56a5b 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesResourceNamesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesResourceNamesAsyncSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task BatchCreateOccurrencesResourceNamesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); IEnumerable occurrences = new Occurrence[] { new Occurrence(), }; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesResourceNamesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesResourceNamesSnippet.g.cs index cae7a2f27524..fe46b3b619b6 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesResourceNamesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesResourceNamesSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void BatchCreateOccurrencesResourceNames() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); IEnumerable occurrences = new Occurrence[] { new Occurrence(), }; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesSnippet.g.cs index f99ef49b8415..27c70265a466 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.BatchCreateOccurrencesSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void BatchCreateOccurrences() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; IEnumerable occurrences = new Occurrence[] { new Occurrence(), }; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteAsyncSnippet.g.cs index e61b8919672a..bce0b924f58f 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task CreateNoteAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; string noteId = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteRequestObjectAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteRequestObjectAsyncSnippet.g.cs index ea370a00ec20..a9eeddc1b8a8 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteRequestObjectAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteRequestObjectAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task CreateNoteRequestObjectAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) CreateNoteRequest request = new CreateNoteRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteRequestObjectSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteRequestObjectSnippet.g.cs index 96990dfb77b6..415ffc57836d 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteRequestObjectSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteRequestObjectSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void CreateNoteRequestObject() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) CreateNoteRequest request = new CreateNoteRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteResourceNamesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteResourceNamesAsyncSnippet.g.cs index d7765ed25856..c2beba12a2e8 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteResourceNamesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteResourceNamesAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task CreateNoteResourceNamesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); string noteId = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteResourceNamesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteResourceNamesSnippet.g.cs index 9888b0877587..2458ead04ef8 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteResourceNamesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteResourceNamesSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void CreateNoteResourceNames() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); string noteId = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteSnippet.g.cs index afe45b05d496..60557b029014 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateNoteSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void CreateNote() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; string noteId = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceAsyncSnippet.g.cs index 7ffd53b6e951..7f616c77899e 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task CreateOccurrenceAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; Occurrence occurrence = new Occurrence(); diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceRequestObjectAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceRequestObjectAsyncSnippet.g.cs index f3393caf3a96..f9a09ec5eae0 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceRequestObjectAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceRequestObjectAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task CreateOccurrenceRequestObjectAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) CreateOccurrenceRequest request = new CreateOccurrenceRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceRequestObjectSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceRequestObjectSnippet.g.cs index 61394ab3323f..25eadf6d8cb0 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceRequestObjectSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceRequestObjectSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void CreateOccurrenceRequestObject() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) CreateOccurrenceRequest request = new CreateOccurrenceRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceResourceNamesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceResourceNamesAsyncSnippet.g.cs index d4c32e057d35..b339687de894 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceResourceNamesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceResourceNamesAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task CreateOccurrenceResourceNamesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); Occurrence occurrence = new Occurrence(); diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceResourceNamesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceResourceNamesSnippet.g.cs index 0472a49410c1..eebe0800a018 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceResourceNamesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceResourceNamesSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void CreateOccurrenceResourceNames() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); Occurrence occurrence = new Occurrence(); diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceSnippet.g.cs index 2a7a4287c2ec..bf7c6b558438 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.CreateOccurrenceSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void CreateOccurrence() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; Occurrence occurrence = new Occurrence(); diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteAsyncSnippet.g.cs index 16ca03071f23..998084f635a3 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task DeleteNoteAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/notes/[NOTE]"; // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteRequestObjectAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteRequestObjectAsyncSnippet.g.cs index 63c7f3a931b3..6d5fa0902ab2 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteRequestObjectAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteRequestObjectAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task DeleteNoteRequestObjectAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) DeleteNoteRequest request = new DeleteNoteRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteRequestObjectSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteRequestObjectSnippet.g.cs index d208644f115a..0743df98e051 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteRequestObjectSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteRequestObjectSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void DeleteNoteRequestObject() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) DeleteNoteRequest request = new DeleteNoteRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteResourceNamesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteResourceNamesAsyncSnippet.g.cs index 6d4fed093d05..491635362bc9 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteResourceNamesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteResourceNamesAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task DeleteNoteResourceNamesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"); // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteResourceNamesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteResourceNamesSnippet.g.cs index 3cf02a0e81b8..c1f68b42e75d 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteResourceNamesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteResourceNamesSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void DeleteNoteResourceNames() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"); // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteSnippet.g.cs index 7ca59e834bed..9af72cd42647 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteNoteSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void DeleteNote() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/notes/[NOTE]"; // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceAsyncSnippet.g.cs index 5732b531beb9..ae2bd44d1a25 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task DeleteOccurrenceAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]"; // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceRequestObjectAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceRequestObjectAsyncSnippet.g.cs index 09575cc5b4c5..82394069c564 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceRequestObjectAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceRequestObjectAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task DeleteOccurrenceRequestObjectAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) DeleteOccurrenceRequest request = new DeleteOccurrenceRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceRequestObjectSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceRequestObjectSnippet.g.cs index 39ec526a0870..94be0e605435 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceRequestObjectSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceRequestObjectSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void DeleteOccurrenceRequestObject() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) DeleteOccurrenceRequest request = new DeleteOccurrenceRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceResourceNamesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceResourceNamesAsyncSnippet.g.cs index f38316a3b8ec..9180b8aedba4 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceResourceNamesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceResourceNamesAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task DeleteOccurrenceResourceNamesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"); // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceResourceNamesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceResourceNamesSnippet.g.cs index 73d854b2ca2a..bc00fcc5c020 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceResourceNamesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceResourceNamesSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void DeleteOccurrenceResourceNames() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"); // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceSnippet.g.cs index e91b8d4396a8..b2cc278f3ae0 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.DeleteOccurrenceSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void DeleteOccurrence() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]"; // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteAsyncSnippet.g.cs index 848d909bfd42..7273de7a87fa 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task GetNoteAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/notes/[NOTE]"; // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteRequestObjectAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteRequestObjectAsyncSnippet.g.cs index e1e3cf0b4623..c17504d6db3e 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteRequestObjectAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteRequestObjectAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task GetNoteRequestObjectAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) GetNoteRequest request = new GetNoteRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteRequestObjectSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteRequestObjectSnippet.g.cs index f42fa2ce6935..795cae041948 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteRequestObjectSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteRequestObjectSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void GetNoteRequestObject() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) GetNoteRequest request = new GetNoteRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteResourceNamesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteResourceNamesAsyncSnippet.g.cs index 65b42f47d5a7..5da971005e1d 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteResourceNamesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteResourceNamesAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task GetNoteResourceNamesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"); // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteResourceNamesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteResourceNamesSnippet.g.cs index 5314d3892159..f82fd266492f 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteResourceNamesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteResourceNamesSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void GetNoteResourceNames() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"); // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteSnippet.g.cs index 58ce394214a8..01abcee31c74 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetNoteSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void GetNote() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/notes/[NOTE]"; // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceAsyncSnippet.g.cs index cdba4e9db125..430b6e48890c 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task GetOccurrenceAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]"; // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteAsyncSnippet.g.cs index 54798d245ea4..1545837ae811 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task GetOccurrenceNoteAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]"; // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteRequestObjectAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteRequestObjectAsyncSnippet.g.cs index 866a17d12e95..a2dfe8d1f2ff 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteRequestObjectAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteRequestObjectAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task GetOccurrenceNoteRequestObjectAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) GetOccurrenceNoteRequest request = new GetOccurrenceNoteRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteRequestObjectSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteRequestObjectSnippet.g.cs index bbdaa58e77ba..5be1a6cfa84f 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteRequestObjectSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteRequestObjectSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void GetOccurrenceNoteRequestObject() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) GetOccurrenceNoteRequest request = new GetOccurrenceNoteRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteResourceNamesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteResourceNamesAsyncSnippet.g.cs index 176a6d7bffa3..4026acf98b9b 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteResourceNamesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteResourceNamesAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task GetOccurrenceNoteResourceNamesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"); // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteResourceNamesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteResourceNamesSnippet.g.cs index fb7b2a1f31f7..061185bc51e7 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteResourceNamesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteResourceNamesSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void GetOccurrenceNoteResourceNames() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"); // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteSnippet.g.cs index eb760df950d3..65c53fb0f9f7 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceNoteSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void GetOccurrenceNote() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]"; // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceRequestObjectAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceRequestObjectAsyncSnippet.g.cs index 6bc009cff1d0..0719665c74ea 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceRequestObjectAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceRequestObjectAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task GetOccurrenceRequestObjectAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) GetOccurrenceRequest request = new GetOccurrenceRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceRequestObjectSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceRequestObjectSnippet.g.cs index f45ac2c382de..d4f8186be443 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceRequestObjectSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceRequestObjectSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void GetOccurrenceRequestObject() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) GetOccurrenceRequest request = new GetOccurrenceRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceResourceNamesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceResourceNamesAsyncSnippet.g.cs index df46036e3422..02a989a9bb6e 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceResourceNamesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceResourceNamesAsyncSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task GetOccurrenceResourceNamesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"); // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceResourceNamesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceResourceNamesSnippet.g.cs index 45b7409e8587..993e5028c129 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceResourceNamesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceResourceNamesSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void GetOccurrenceResourceNames() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"); // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceSnippet.g.cs index d7d7c6cef741..b22293a4bf3e 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.GetOccurrenceSnippet.g.cs @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void GetOccurrence() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]"; // Make the request diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesAsyncSnippet.g.cs index dda0d5ab8fcb..bbd834793153 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesAsyncSnippet.g.cs @@ -35,9 +35,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task ListNoteOccurrencesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/notes/[NOTE]"; string filter = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesRequestObjectAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesRequestObjectAsyncSnippet.g.cs index 7f5462d26230..09ed8178463c 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesRequestObjectAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesRequestObjectAsyncSnippet.g.cs @@ -35,9 +35,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task ListNoteOccurrencesRequestObjectAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ListNoteOccurrencesRequest request = new ListNoteOccurrencesRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesRequestObjectSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesRequestObjectSnippet.g.cs index bc7603ac953e..a5eec0c131b6 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesRequestObjectSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesRequestObjectSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void ListNoteOccurrencesRequestObject() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ListNoteOccurrencesRequest request = new ListNoteOccurrencesRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesResourceNamesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesResourceNamesAsyncSnippet.g.cs index ff39f8f71359..d6939d946efb 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesResourceNamesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesResourceNamesAsyncSnippet.g.cs @@ -35,9 +35,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task ListNoteOccurrencesResourceNamesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"); string filter = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesResourceNamesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesResourceNamesSnippet.g.cs index bec21b72be7c..da490d177f14 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesResourceNamesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesResourceNamesSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void ListNoteOccurrencesResourceNames() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"); string filter = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesSnippet.g.cs index 547146187936..6acb20393326 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNoteOccurrencesSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void ListNoteOccurrences() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/notes/[NOTE]"; string filter = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesAsyncSnippet.g.cs index 590719eb778f..28270fe1ce84 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesAsyncSnippet.g.cs @@ -35,9 +35,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task ListNotesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; string filter = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesRequestObjectAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesRequestObjectAsyncSnippet.g.cs index 197dcf6209a5..580498157815 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesRequestObjectAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesRequestObjectAsyncSnippet.g.cs @@ -35,9 +35,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task ListNotesRequestObjectAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ListNotesRequest request = new ListNotesRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesRequestObjectSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesRequestObjectSnippet.g.cs index ccb12a488d0b..2bcfb0a7afd7 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesRequestObjectSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesRequestObjectSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void ListNotesRequestObject() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ListNotesRequest request = new ListNotesRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesResourceNamesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesResourceNamesAsyncSnippet.g.cs index 36176150411f..eb923ccc9fa2 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesResourceNamesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesResourceNamesAsyncSnippet.g.cs @@ -35,9 +35,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task ListNotesResourceNamesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); string filter = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesResourceNamesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesResourceNamesSnippet.g.cs index 2a95d9672af3..326e9e06a006 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesResourceNamesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesResourceNamesSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void ListNotesResourceNames() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); string filter = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesSnippet.g.cs index d3fa13075355..c801368b97b9 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListNotesSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void ListNotes() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; string filter = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesAsyncSnippet.g.cs index 0edb5b1cc085..9020fa924adf 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesAsyncSnippet.g.cs @@ -35,9 +35,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task ListOccurrencesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; string filter = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesRequestObjectAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesRequestObjectAsyncSnippet.g.cs index a78306e8a63a..ed614d701c95 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesRequestObjectAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesRequestObjectAsyncSnippet.g.cs @@ -35,9 +35,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task ListOccurrencesRequestObjectAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ListOccurrencesRequest request = new ListOccurrencesRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesRequestObjectSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesRequestObjectSnippet.g.cs index 1df6a5a4fc9b..bccfa10d8ef1 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesRequestObjectSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesRequestObjectSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void ListOccurrencesRequestObject() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ListOccurrencesRequest request = new ListOccurrencesRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesResourceNamesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesResourceNamesAsyncSnippet.g.cs index 1b760cd0c296..5f8487fc9fe9 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesResourceNamesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesResourceNamesAsyncSnippet.g.cs @@ -35,9 +35,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task ListOccurrencesResourceNamesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); string filter = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesResourceNamesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesResourceNamesSnippet.g.cs index d7e78754943a..f179f3040cd6 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesResourceNamesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesResourceNamesSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void ListOccurrencesResourceNames() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); string filter = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesSnippet.g.cs index 6c068a0a2ee3..b2ad0b2c4ab0 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.ListOccurrencesSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void ListOccurrences() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; string filter = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteAsyncSnippet.g.cs index 77f95d89b61c..1ba06ce095d2 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteAsyncSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task UpdateNoteAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/notes/[NOTE]"; Note note = new Note(); diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteRequestObjectAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteRequestObjectAsyncSnippet.g.cs index 4c0b26ea8dbc..57f4b17c4bac 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteRequestObjectAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteRequestObjectAsyncSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task UpdateNoteRequestObjectAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) UpdateNoteRequest request = new UpdateNoteRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteRequestObjectSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteRequestObjectSnippet.g.cs index 97950d78983c..dd93cc8884eb 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteRequestObjectSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteRequestObjectSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void UpdateNoteRequestObject() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) UpdateNoteRequest request = new UpdateNoteRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteResourceNamesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteResourceNamesAsyncSnippet.g.cs index 944a905295c2..7cd0a18738d7 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteResourceNamesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteResourceNamesAsyncSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task UpdateNoteResourceNamesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"); Note note = new Note(); diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteResourceNamesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteResourceNamesSnippet.g.cs index 9168961bbe5a..ef347628cc50 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteResourceNamesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteResourceNamesSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void UpdateNoteResourceNames() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"); Note note = new Note(); diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteSnippet.g.cs index 72da58656bd9..e2bcba572264 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateNoteSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void UpdateNote() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/notes/[NOTE]"; Note note = new Note(); diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceAsyncSnippet.g.cs index 261436c8d9dd..c6a05636bbd5 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceAsyncSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task UpdateOccurrenceAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]"; Occurrence occurrence = new Occurrence(); diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceRequestObjectAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceRequestObjectAsyncSnippet.g.cs index 978b6f8def62..beb2bdaaad91 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceRequestObjectAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceRequestObjectAsyncSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task UpdateOccurrenceRequestObjectAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) UpdateOccurrenceRequest request = new UpdateOccurrenceRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceRequestObjectSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceRequestObjectSnippet.g.cs index 2ed593c08c6c..4ae0bad6e14a 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceRequestObjectSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceRequestObjectSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void UpdateOccurrenceRequestObject() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) UpdateOccurrenceRequest request = new UpdateOccurrenceRequest { diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceResourceNamesAsyncSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceResourceNamesAsyncSnippet.g.cs index 38fe9858921c..11cef26c5bd5 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceResourceNamesAsyncSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceResourceNamesAsyncSnippet.g.cs @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public async Task UpdateOccurrenceResourceNamesAsync() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"); Occurrence occurrence = new Occurrence(); diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceResourceNamesSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceResourceNamesSnippet.g.cs index c278f22728df..e6c070e08f56 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceResourceNamesSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceResourceNamesSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void UpdateOccurrenceResourceNames() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"); Occurrence occurrence = new Occurrence(); diff --git a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceSnippet.g.cs b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceSnippet.g.cs index 84ce66fd149e..2017b8658255 100644 --- a/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceSnippet.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.GeneratedSnippets/GrafeasClient.UpdateOccurrenceSnippet.g.cs @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets /// public void UpdateOccurrence() { - string endpoint = ""; // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]"; Occurrence occurrence = new Occurrence(); diff --git a/apis/Grafeas.V1/Grafeas.V1.Snippets/GrafeasClientSnippets.g.cs b/apis/Grafeas.V1/Grafeas.V1.Snippets/GrafeasClientSnippets.g.cs index 593ef59f50e6..469916069a17 100644 --- a/apis/Grafeas.V1/Grafeas.V1.Snippets/GrafeasClientSnippets.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1.Snippets/GrafeasClientSnippets.g.cs @@ -30,10 +30,9 @@ public sealed class AllGeneratedGrafeasClientSnippets /// Snippet for GetOccurrence public void GetOccurrenceRequestObject() { - string endpoint = ""; // Snippet: GetOccurrence(GetOccurrenceRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) GetOccurrenceRequest request = new GetOccurrenceRequest { @@ -47,11 +46,10 @@ public void GetOccurrenceRequestObject() /// Snippet for GetOccurrenceAsync public async Task GetOccurrenceRequestObjectAsync() { - string endpoint = ""; // Snippet: GetOccurrenceAsync(GetOccurrenceRequest, CallSettings) // Additional: GetOccurrenceAsync(GetOccurrenceRequest, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) GetOccurrenceRequest request = new GetOccurrenceRequest { @@ -65,10 +63,9 @@ public async Task GetOccurrenceRequestObjectAsync() /// Snippet for GetOccurrence public void GetOccurrence() { - string endpoint = ""; // Snippet: GetOccurrence(string, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]"; // Make the request @@ -79,11 +76,10 @@ public void GetOccurrence() /// Snippet for GetOccurrenceAsync public async Task GetOccurrenceAsync() { - string endpoint = ""; // Snippet: GetOccurrenceAsync(string, CallSettings) // Additional: GetOccurrenceAsync(string, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]"; // Make the request @@ -94,10 +90,9 @@ public async Task GetOccurrenceAsync() /// Snippet for GetOccurrence public void GetOccurrenceResourceNames() { - string endpoint = ""; // Snippet: GetOccurrence(OccurrenceName, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"); // Make the request @@ -108,11 +103,10 @@ public void GetOccurrenceResourceNames() /// Snippet for GetOccurrenceAsync public async Task GetOccurrenceResourceNamesAsync() { - string endpoint = ""; // Snippet: GetOccurrenceAsync(OccurrenceName, CallSettings) // Additional: GetOccurrenceAsync(OccurrenceName, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"); // Make the request @@ -123,10 +117,9 @@ public async Task GetOccurrenceResourceNamesAsync() /// Snippet for ListOccurrences public void ListOccurrencesRequestObject() { - string endpoint = ""; // Snippet: ListOccurrences(ListOccurrencesRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ListOccurrencesRequest request = new ListOccurrencesRequest { @@ -173,10 +166,9 @@ public void ListOccurrencesRequestObject() /// Snippet for ListOccurrencesAsync public async Task ListOccurrencesRequestObjectAsync() { - string endpoint = ""; // Snippet: ListOccurrencesAsync(ListOccurrencesRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ListOccurrencesRequest request = new ListOccurrencesRequest { @@ -223,10 +215,9 @@ await response.AsRawResponses().ForEachAsync((ListOccurrencesResponse page) => /// Snippet for ListOccurrences public void ListOccurrences() { - string endpoint = ""; // Snippet: ListOccurrences(string, string, string, int?, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; string filter = ""; @@ -270,10 +261,9 @@ public void ListOccurrences() /// Snippet for ListOccurrencesAsync public async Task ListOccurrencesAsync() { - string endpoint = ""; // Snippet: ListOccurrencesAsync(string, string, string, int?, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; string filter = ""; @@ -317,10 +307,9 @@ await response.AsRawResponses().ForEachAsync((ListOccurrencesResponse page) => /// Snippet for ListOccurrences public void ListOccurrencesResourceNames() { - string endpoint = ""; // Snippet: ListOccurrences(ProjectName, string, string, int?, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); string filter = ""; @@ -364,10 +353,9 @@ public void ListOccurrencesResourceNames() /// Snippet for ListOccurrencesAsync public async Task ListOccurrencesResourceNamesAsync() { - string endpoint = ""; // Snippet: ListOccurrencesAsync(ProjectName, string, string, int?, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); string filter = ""; @@ -411,10 +399,9 @@ await response.AsRawResponses().ForEachAsync((ListOccurrencesResponse page) => /// Snippet for DeleteOccurrence public void DeleteOccurrenceRequestObject() { - string endpoint = ""; // Snippet: DeleteOccurrence(DeleteOccurrenceRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) DeleteOccurrenceRequest request = new DeleteOccurrenceRequest { @@ -428,11 +415,10 @@ public void DeleteOccurrenceRequestObject() /// Snippet for DeleteOccurrenceAsync public async Task DeleteOccurrenceRequestObjectAsync() { - string endpoint = ""; // Snippet: DeleteOccurrenceAsync(DeleteOccurrenceRequest, CallSettings) // Additional: DeleteOccurrenceAsync(DeleteOccurrenceRequest, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) DeleteOccurrenceRequest request = new DeleteOccurrenceRequest { @@ -446,10 +432,9 @@ public async Task DeleteOccurrenceRequestObjectAsync() /// Snippet for DeleteOccurrence public void DeleteOccurrence() { - string endpoint = ""; // Snippet: DeleteOccurrence(string, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]"; // Make the request @@ -460,11 +445,10 @@ public void DeleteOccurrence() /// Snippet for DeleteOccurrenceAsync public async Task DeleteOccurrenceAsync() { - string endpoint = ""; // Snippet: DeleteOccurrenceAsync(string, CallSettings) // Additional: DeleteOccurrenceAsync(string, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]"; // Make the request @@ -475,10 +459,9 @@ public async Task DeleteOccurrenceAsync() /// Snippet for DeleteOccurrence public void DeleteOccurrenceResourceNames() { - string endpoint = ""; // Snippet: DeleteOccurrence(OccurrenceName, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"); // Make the request @@ -489,11 +472,10 @@ public void DeleteOccurrenceResourceNames() /// Snippet for DeleteOccurrenceAsync public async Task DeleteOccurrenceResourceNamesAsync() { - string endpoint = ""; // Snippet: DeleteOccurrenceAsync(OccurrenceName, CallSettings) // Additional: DeleteOccurrenceAsync(OccurrenceName, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"); // Make the request @@ -504,10 +486,9 @@ public async Task DeleteOccurrenceResourceNamesAsync() /// Snippet for CreateOccurrence public void CreateOccurrenceRequestObject() { - string endpoint = ""; // Snippet: CreateOccurrence(CreateOccurrenceRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) CreateOccurrenceRequest request = new CreateOccurrenceRequest { @@ -522,11 +503,10 @@ public void CreateOccurrenceRequestObject() /// Snippet for CreateOccurrenceAsync public async Task CreateOccurrenceRequestObjectAsync() { - string endpoint = ""; // Snippet: CreateOccurrenceAsync(CreateOccurrenceRequest, CallSettings) // Additional: CreateOccurrenceAsync(CreateOccurrenceRequest, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) CreateOccurrenceRequest request = new CreateOccurrenceRequest { @@ -541,10 +521,9 @@ public async Task CreateOccurrenceRequestObjectAsync() /// Snippet for CreateOccurrence public void CreateOccurrence() { - string endpoint = ""; // Snippet: CreateOccurrence(string, Occurrence, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; Occurrence occurrence = new Occurrence(); @@ -556,11 +535,10 @@ public void CreateOccurrence() /// Snippet for CreateOccurrenceAsync public async Task CreateOccurrenceAsync() { - string endpoint = ""; // Snippet: CreateOccurrenceAsync(string, Occurrence, CallSettings) // Additional: CreateOccurrenceAsync(string, Occurrence, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; Occurrence occurrence = new Occurrence(); @@ -572,10 +550,9 @@ public async Task CreateOccurrenceAsync() /// Snippet for CreateOccurrence public void CreateOccurrenceResourceNames() { - string endpoint = ""; // Snippet: CreateOccurrence(ProjectName, Occurrence, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); Occurrence occurrence = new Occurrence(); @@ -587,11 +564,10 @@ public void CreateOccurrenceResourceNames() /// Snippet for CreateOccurrenceAsync public async Task CreateOccurrenceResourceNamesAsync() { - string endpoint = ""; // Snippet: CreateOccurrenceAsync(ProjectName, Occurrence, CallSettings) // Additional: CreateOccurrenceAsync(ProjectName, Occurrence, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); Occurrence occurrence = new Occurrence(); @@ -603,10 +579,9 @@ public async Task CreateOccurrenceResourceNamesAsync() /// Snippet for BatchCreateOccurrences public void BatchCreateOccurrencesRequestObject() { - string endpoint = ""; // Snippet: BatchCreateOccurrences(BatchCreateOccurrencesRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) BatchCreateOccurrencesRequest request = new BatchCreateOccurrencesRequest { @@ -621,11 +596,10 @@ public void BatchCreateOccurrencesRequestObject() /// Snippet for BatchCreateOccurrencesAsync public async Task BatchCreateOccurrencesRequestObjectAsync() { - string endpoint = ""; // Snippet: BatchCreateOccurrencesAsync(BatchCreateOccurrencesRequest, CallSettings) // Additional: BatchCreateOccurrencesAsync(BatchCreateOccurrencesRequest, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) BatchCreateOccurrencesRequest request = new BatchCreateOccurrencesRequest { @@ -640,10 +614,9 @@ public async Task BatchCreateOccurrencesRequestObjectAsync() /// Snippet for BatchCreateOccurrences public void BatchCreateOccurrences() { - string endpoint = ""; // Snippet: BatchCreateOccurrences(string, IEnumerable, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; IEnumerable occurrences = new Occurrence[] { new Occurrence(), }; @@ -655,11 +628,10 @@ public void BatchCreateOccurrences() /// Snippet for BatchCreateOccurrencesAsync public async Task BatchCreateOccurrencesAsync() { - string endpoint = ""; // Snippet: BatchCreateOccurrencesAsync(string, IEnumerable, CallSettings) // Additional: BatchCreateOccurrencesAsync(string, IEnumerable, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; IEnumerable occurrences = new Occurrence[] { new Occurrence(), }; @@ -671,10 +643,9 @@ public async Task BatchCreateOccurrencesAsync() /// Snippet for BatchCreateOccurrences public void BatchCreateOccurrencesResourceNames() { - string endpoint = ""; // Snippet: BatchCreateOccurrences(ProjectName, IEnumerable, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); IEnumerable occurrences = new Occurrence[] { new Occurrence(), }; @@ -686,11 +657,10 @@ public void BatchCreateOccurrencesResourceNames() /// Snippet for BatchCreateOccurrencesAsync public async Task BatchCreateOccurrencesResourceNamesAsync() { - string endpoint = ""; // Snippet: BatchCreateOccurrencesAsync(ProjectName, IEnumerable, CallSettings) // Additional: BatchCreateOccurrencesAsync(ProjectName, IEnumerable, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); IEnumerable occurrences = new Occurrence[] { new Occurrence(), }; @@ -702,10 +672,9 @@ public async Task BatchCreateOccurrencesResourceNamesAsync() /// Snippet for UpdateOccurrence public void UpdateOccurrenceRequestObject() { - string endpoint = ""; // Snippet: UpdateOccurrence(UpdateOccurrenceRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) UpdateOccurrenceRequest request = new UpdateOccurrenceRequest { @@ -721,11 +690,10 @@ public void UpdateOccurrenceRequestObject() /// Snippet for UpdateOccurrenceAsync public async Task UpdateOccurrenceRequestObjectAsync() { - string endpoint = ""; // Snippet: UpdateOccurrenceAsync(UpdateOccurrenceRequest, CallSettings) // Additional: UpdateOccurrenceAsync(UpdateOccurrenceRequest, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) UpdateOccurrenceRequest request = new UpdateOccurrenceRequest { @@ -741,10 +709,9 @@ public async Task UpdateOccurrenceRequestObjectAsync() /// Snippet for UpdateOccurrence public void UpdateOccurrence() { - string endpoint = ""; // Snippet: UpdateOccurrence(string, Occurrence, FieldMask, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]"; Occurrence occurrence = new Occurrence(); @@ -757,11 +724,10 @@ public void UpdateOccurrence() /// Snippet for UpdateOccurrenceAsync public async Task UpdateOccurrenceAsync() { - string endpoint = ""; // Snippet: UpdateOccurrenceAsync(string, Occurrence, FieldMask, CallSettings) // Additional: UpdateOccurrenceAsync(string, Occurrence, FieldMask, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]"; Occurrence occurrence = new Occurrence(); @@ -774,10 +740,9 @@ public async Task UpdateOccurrenceAsync() /// Snippet for UpdateOccurrence public void UpdateOccurrenceResourceNames() { - string endpoint = ""; // Snippet: UpdateOccurrence(OccurrenceName, Occurrence, FieldMask, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"); Occurrence occurrence = new Occurrence(); @@ -790,11 +755,10 @@ public void UpdateOccurrenceResourceNames() /// Snippet for UpdateOccurrenceAsync public async Task UpdateOccurrenceResourceNamesAsync() { - string endpoint = ""; // Snippet: UpdateOccurrenceAsync(OccurrenceName, Occurrence, FieldMask, CallSettings) // Additional: UpdateOccurrenceAsync(OccurrenceName, Occurrence, FieldMask, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"); Occurrence occurrence = new Occurrence(); @@ -807,10 +771,9 @@ public async Task UpdateOccurrenceResourceNamesAsync() /// Snippet for GetOccurrenceNote public void GetOccurrenceNoteRequestObject() { - string endpoint = ""; // Snippet: GetOccurrenceNote(GetOccurrenceNoteRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) GetOccurrenceNoteRequest request = new GetOccurrenceNoteRequest { @@ -824,11 +787,10 @@ public void GetOccurrenceNoteRequestObject() /// Snippet for GetOccurrenceNoteAsync public async Task GetOccurrenceNoteRequestObjectAsync() { - string endpoint = ""; // Snippet: GetOccurrenceNoteAsync(GetOccurrenceNoteRequest, CallSettings) // Additional: GetOccurrenceNoteAsync(GetOccurrenceNoteRequest, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) GetOccurrenceNoteRequest request = new GetOccurrenceNoteRequest { @@ -842,10 +804,9 @@ public async Task GetOccurrenceNoteRequestObjectAsync() /// Snippet for GetOccurrenceNote public void GetOccurrenceNote() { - string endpoint = ""; // Snippet: GetOccurrenceNote(string, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]"; // Make the request @@ -856,11 +817,10 @@ public void GetOccurrenceNote() /// Snippet for GetOccurrenceNoteAsync public async Task GetOccurrenceNoteAsync() { - string endpoint = ""; // Snippet: GetOccurrenceNoteAsync(string, CallSettings) // Additional: GetOccurrenceNoteAsync(string, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]"; // Make the request @@ -871,10 +831,9 @@ public async Task GetOccurrenceNoteAsync() /// Snippet for GetOccurrenceNote public void GetOccurrenceNoteResourceNames() { - string endpoint = ""; // Snippet: GetOccurrenceNote(OccurrenceName, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"); // Make the request @@ -885,11 +844,10 @@ public void GetOccurrenceNoteResourceNames() /// Snippet for GetOccurrenceNoteAsync public async Task GetOccurrenceNoteResourceNamesAsync() { - string endpoint = ""; // Snippet: GetOccurrenceNoteAsync(OccurrenceName, CallSettings) // Additional: GetOccurrenceNoteAsync(OccurrenceName, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"); // Make the request @@ -900,10 +858,9 @@ public async Task GetOccurrenceNoteResourceNamesAsync() /// Snippet for GetNote public void GetNoteRequestObject() { - string endpoint = ""; // Snippet: GetNote(GetNoteRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) GetNoteRequest request = new GetNoteRequest { @@ -917,11 +874,10 @@ public void GetNoteRequestObject() /// Snippet for GetNoteAsync public async Task GetNoteRequestObjectAsync() { - string endpoint = ""; // Snippet: GetNoteAsync(GetNoteRequest, CallSettings) // Additional: GetNoteAsync(GetNoteRequest, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) GetNoteRequest request = new GetNoteRequest { @@ -935,10 +891,9 @@ public async Task GetNoteRequestObjectAsync() /// Snippet for GetNote public void GetNote() { - string endpoint = ""; // Snippet: GetNote(string, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/notes/[NOTE]"; // Make the request @@ -949,11 +904,10 @@ public void GetNote() /// Snippet for GetNoteAsync public async Task GetNoteAsync() { - string endpoint = ""; // Snippet: GetNoteAsync(string, CallSettings) // Additional: GetNoteAsync(string, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/notes/[NOTE]"; // Make the request @@ -964,10 +918,9 @@ public async Task GetNoteAsync() /// Snippet for GetNote public void GetNoteResourceNames() { - string endpoint = ""; // Snippet: GetNote(NoteName, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"); // Make the request @@ -978,11 +931,10 @@ public void GetNoteResourceNames() /// Snippet for GetNoteAsync public async Task GetNoteResourceNamesAsync() { - string endpoint = ""; // Snippet: GetNoteAsync(NoteName, CallSettings) // Additional: GetNoteAsync(NoteName, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"); // Make the request @@ -993,10 +945,9 @@ public async Task GetNoteResourceNamesAsync() /// Snippet for ListNotes public void ListNotesRequestObject() { - string endpoint = ""; // Snippet: ListNotes(ListNotesRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ListNotesRequest request = new ListNotesRequest { @@ -1043,10 +994,9 @@ public void ListNotesRequestObject() /// Snippet for ListNotesAsync public async Task ListNotesRequestObjectAsync() { - string endpoint = ""; // Snippet: ListNotesAsync(ListNotesRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ListNotesRequest request = new ListNotesRequest { @@ -1093,10 +1043,9 @@ await response.AsRawResponses().ForEachAsync((ListNotesResponse page) => /// Snippet for ListNotes public void ListNotes() { - string endpoint = ""; // Snippet: ListNotes(string, string, string, int?, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; string filter = ""; @@ -1140,10 +1089,9 @@ public void ListNotes() /// Snippet for ListNotesAsync public async Task ListNotesAsync() { - string endpoint = ""; // Snippet: ListNotesAsync(string, string, string, int?, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; string filter = ""; @@ -1187,10 +1135,9 @@ await response.AsRawResponses().ForEachAsync((ListNotesResponse page) => /// Snippet for ListNotes public void ListNotesResourceNames() { - string endpoint = ""; // Snippet: ListNotes(ProjectName, string, string, int?, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); string filter = ""; @@ -1234,10 +1181,9 @@ public void ListNotesResourceNames() /// Snippet for ListNotesAsync public async Task ListNotesResourceNamesAsync() { - string endpoint = ""; // Snippet: ListNotesAsync(ProjectName, string, string, int?, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); string filter = ""; @@ -1281,10 +1227,9 @@ await response.AsRawResponses().ForEachAsync((ListNotesResponse page) => /// Snippet for DeleteNote public void DeleteNoteRequestObject() { - string endpoint = ""; // Snippet: DeleteNote(DeleteNoteRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) DeleteNoteRequest request = new DeleteNoteRequest { @@ -1298,11 +1243,10 @@ public void DeleteNoteRequestObject() /// Snippet for DeleteNoteAsync public async Task DeleteNoteRequestObjectAsync() { - string endpoint = ""; // Snippet: DeleteNoteAsync(DeleteNoteRequest, CallSettings) // Additional: DeleteNoteAsync(DeleteNoteRequest, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) DeleteNoteRequest request = new DeleteNoteRequest { @@ -1316,10 +1260,9 @@ public async Task DeleteNoteRequestObjectAsync() /// Snippet for DeleteNote public void DeleteNote() { - string endpoint = ""; // Snippet: DeleteNote(string, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/notes/[NOTE]"; // Make the request @@ -1330,11 +1273,10 @@ public void DeleteNote() /// Snippet for DeleteNoteAsync public async Task DeleteNoteAsync() { - string endpoint = ""; // Snippet: DeleteNoteAsync(string, CallSettings) // Additional: DeleteNoteAsync(string, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/notes/[NOTE]"; // Make the request @@ -1345,10 +1287,9 @@ public async Task DeleteNoteAsync() /// Snippet for DeleteNote public void DeleteNoteResourceNames() { - string endpoint = ""; // Snippet: DeleteNote(NoteName, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"); // Make the request @@ -1359,11 +1300,10 @@ public void DeleteNoteResourceNames() /// Snippet for DeleteNoteAsync public async Task DeleteNoteResourceNamesAsync() { - string endpoint = ""; // Snippet: DeleteNoteAsync(NoteName, CallSettings) // Additional: DeleteNoteAsync(NoteName, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"); // Make the request @@ -1374,10 +1314,9 @@ public async Task DeleteNoteResourceNamesAsync() /// Snippet for CreateNote public void CreateNoteRequestObject() { - string endpoint = ""; // Snippet: CreateNote(CreateNoteRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) CreateNoteRequest request = new CreateNoteRequest { @@ -1393,11 +1332,10 @@ public void CreateNoteRequestObject() /// Snippet for CreateNoteAsync public async Task CreateNoteRequestObjectAsync() { - string endpoint = ""; // Snippet: CreateNoteAsync(CreateNoteRequest, CallSettings) // Additional: CreateNoteAsync(CreateNoteRequest, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) CreateNoteRequest request = new CreateNoteRequest { @@ -1413,10 +1351,9 @@ public async Task CreateNoteRequestObjectAsync() /// Snippet for CreateNote public void CreateNote() { - string endpoint = ""; // Snippet: CreateNote(string, string, Note, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; string noteId = ""; @@ -1429,11 +1366,10 @@ public void CreateNote() /// Snippet for CreateNoteAsync public async Task CreateNoteAsync() { - string endpoint = ""; // Snippet: CreateNoteAsync(string, string, Note, CallSettings) // Additional: CreateNoteAsync(string, string, Note, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; string noteId = ""; @@ -1446,10 +1382,9 @@ public async Task CreateNoteAsync() /// Snippet for CreateNote public void CreateNoteResourceNames() { - string endpoint = ""; // Snippet: CreateNote(ProjectName, string, Note, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); string noteId = ""; @@ -1462,11 +1397,10 @@ public void CreateNoteResourceNames() /// Snippet for CreateNoteAsync public async Task CreateNoteResourceNamesAsync() { - string endpoint = ""; // Snippet: CreateNoteAsync(ProjectName, string, Note, CallSettings) // Additional: CreateNoteAsync(ProjectName, string, Note, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); string noteId = ""; @@ -1479,10 +1413,9 @@ public async Task CreateNoteResourceNamesAsync() /// Snippet for BatchCreateNotes public void BatchCreateNotesRequestObject() { - string endpoint = ""; // Snippet: BatchCreateNotes(BatchCreateNotesRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) BatchCreateNotesRequest request = new BatchCreateNotesRequest { @@ -1497,11 +1430,10 @@ public void BatchCreateNotesRequestObject() /// Snippet for BatchCreateNotesAsync public async Task BatchCreateNotesRequestObjectAsync() { - string endpoint = ""; // Snippet: BatchCreateNotesAsync(BatchCreateNotesRequest, CallSettings) // Additional: BatchCreateNotesAsync(BatchCreateNotesRequest, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) BatchCreateNotesRequest request = new BatchCreateNotesRequest { @@ -1516,10 +1448,9 @@ public async Task BatchCreateNotesRequestObjectAsync() /// Snippet for BatchCreateNotes public void BatchCreateNotes() { - string endpoint = ""; // Snippet: BatchCreateNotes(string, IDictionary, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; IDictionary notes = new Dictionary { { "", new Note() }, }; @@ -1531,11 +1462,10 @@ public void BatchCreateNotes() /// Snippet for BatchCreateNotesAsync public async Task BatchCreateNotesAsync() { - string endpoint = ""; // Snippet: BatchCreateNotesAsync(string, IDictionary, CallSettings) // Additional: BatchCreateNotesAsync(string, IDictionary, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; IDictionary notes = new Dictionary { { "", new Note() }, }; @@ -1547,10 +1477,9 @@ public async Task BatchCreateNotesAsync() /// Snippet for BatchCreateNotes public void BatchCreateNotesResourceNames() { - string endpoint = ""; // Snippet: BatchCreateNotes(ProjectName, IDictionary, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); IDictionary notes = new Dictionary { { "", new Note() }, }; @@ -1562,11 +1491,10 @@ public void BatchCreateNotesResourceNames() /// Snippet for BatchCreateNotesAsync public async Task BatchCreateNotesResourceNamesAsync() { - string endpoint = ""; // Snippet: BatchCreateNotesAsync(ProjectName, IDictionary, CallSettings) // Additional: BatchCreateNotesAsync(ProjectName, IDictionary, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); IDictionary notes = new Dictionary { { "", new Note() }, }; @@ -1578,10 +1506,9 @@ public async Task BatchCreateNotesResourceNamesAsync() /// Snippet for UpdateNote public void UpdateNoteRequestObject() { - string endpoint = ""; // Snippet: UpdateNote(UpdateNoteRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) UpdateNoteRequest request = new UpdateNoteRequest { @@ -1597,11 +1524,10 @@ public void UpdateNoteRequestObject() /// Snippet for UpdateNoteAsync public async Task UpdateNoteRequestObjectAsync() { - string endpoint = ""; // Snippet: UpdateNoteAsync(UpdateNoteRequest, CallSettings) // Additional: UpdateNoteAsync(UpdateNoteRequest, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) UpdateNoteRequest request = new UpdateNoteRequest { @@ -1617,10 +1543,9 @@ public async Task UpdateNoteRequestObjectAsync() /// Snippet for UpdateNote public void UpdateNote() { - string endpoint = ""; // Snippet: UpdateNote(string, Note, FieldMask, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/notes/[NOTE]"; Note note = new Note(); @@ -1633,11 +1558,10 @@ public void UpdateNote() /// Snippet for UpdateNoteAsync public async Task UpdateNoteAsync() { - string endpoint = ""; // Snippet: UpdateNoteAsync(string, Note, FieldMask, CallSettings) // Additional: UpdateNoteAsync(string, Note, FieldMask, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/notes/[NOTE]"; Note note = new Note(); @@ -1650,10 +1574,9 @@ public async Task UpdateNoteAsync() /// Snippet for UpdateNote public void UpdateNoteResourceNames() { - string endpoint = ""; // Snippet: UpdateNote(NoteName, Note, FieldMask, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"); Note note = new Note(); @@ -1666,11 +1589,10 @@ public void UpdateNoteResourceNames() /// Snippet for UpdateNoteAsync public async Task UpdateNoteResourceNamesAsync() { - string endpoint = ""; // Snippet: UpdateNoteAsync(NoteName, Note, FieldMask, CallSettings) // Additional: UpdateNoteAsync(NoteName, Note, FieldMask, CancellationToken) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"); Note note = new Note(); @@ -1683,10 +1605,9 @@ public async Task UpdateNoteResourceNamesAsync() /// Snippet for ListNoteOccurrences public void ListNoteOccurrencesRequestObject() { - string endpoint = ""; // Snippet: ListNoteOccurrences(ListNoteOccurrencesRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) ListNoteOccurrencesRequest request = new ListNoteOccurrencesRequest { @@ -1733,10 +1654,9 @@ public void ListNoteOccurrencesRequestObject() /// Snippet for ListNoteOccurrencesAsync public async Task ListNoteOccurrencesRequestObjectAsync() { - string endpoint = ""; // Snippet: ListNoteOccurrencesAsync(ListNoteOccurrencesRequest, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) ListNoteOccurrencesRequest request = new ListNoteOccurrencesRequest { @@ -1783,10 +1703,9 @@ await response.AsRawResponses().ForEachAsync((ListNoteOccurrencesResponse page) /// Snippet for ListNoteOccurrences public void ListNoteOccurrences() { - string endpoint = ""; // Snippet: ListNoteOccurrences(string, string, string, int?, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/notes/[NOTE]"; string filter = ""; @@ -1830,10 +1749,9 @@ public void ListNoteOccurrences() /// Snippet for ListNoteOccurrencesAsync public async Task ListNoteOccurrencesAsync() { - string endpoint = ""; // Snippet: ListNoteOccurrencesAsync(string, string, string, int?, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/notes/[NOTE]"; string filter = ""; @@ -1877,10 +1795,9 @@ await response.AsRawResponses().ForEachAsync((ListNoteOccurrencesResponse page) /// Snippet for ListNoteOccurrences public void ListNoteOccurrencesResourceNames() { - string endpoint = ""; // Snippet: ListNoteOccurrences(NoteName, string, string, int?, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = GrafeasClient.Create(); // Initialize request argument(s) NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"); string filter = ""; @@ -1924,10 +1841,9 @@ public void ListNoteOccurrencesResourceNames() /// Snippet for ListNoteOccurrencesAsync public async Task ListNoteOccurrencesResourceNamesAsync() { - string endpoint = ""; // Snippet: ListNoteOccurrencesAsync(NoteName, string, string, int?, CallSettings) // Create client - GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build(); + GrafeasClient grafeasClient = await GrafeasClient.CreateAsync(); // Initialize request argument(s) NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"); string filter = ""; diff --git a/apis/Grafeas.V1/Grafeas.V1/GrafeasClient.g.cs b/apis/Grafeas.V1/Grafeas.V1/GrafeasClient.g.cs index 186c522962ab..5e9d16a8e875 100644 --- a/apis/Grafeas.V1/Grafeas.V1/GrafeasClient.g.cs +++ b/apis/Grafeas.V1/Grafeas.V1/GrafeasClient.g.cs @@ -356,6 +356,9 @@ private GrafeasClient BuildImpl() grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); return GrafeasClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); } + + /// Returns the channel pool to use when no other options are specified. + protected override gaxgrpc::ChannelPool GetChannelPool() => GrafeasClient.ChannelPool; } /// Grafeas client wrapper, for convenient use. @@ -377,13 +380,18 @@ private GrafeasClient BuildImpl() /// public abstract partial class GrafeasClient { + /// + /// The default endpoint for the Grafeas service, which is a host of "containeranalysis.googleapis.com" and a + /// port of 443. + /// + public static string DefaultEndpoint { get; } = "containeranalysis.googleapis.com:443"; /// The default Grafeas scopes. /// The default Grafeas scopes are: public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] { }); /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(Grafeas.Descriptor, null, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); + public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(Grafeas.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata);