Skip to content

Commit

Permalink
chore: Regenerate Grafeas.V1
Browse files Browse the repository at this point in the history
  • Loading branch information
jskeet committed Jan 17, 2025
1 parent a1f9a26 commit 7a1f5a3
Show file tree
Hide file tree
Showing 86 changed files with 177 additions and 337 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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<string, Note> notes = new Dictionary<string, Note> { { "", new Note() }, };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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<string, Note> notes = new Dictionary<string, Note> { { "", new Note() }, };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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<string, Note> notes = new Dictionary<string, Note> { { "", new Note() }, };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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<string, Note> notes = new Dictionary<string, Note> { { "", new Note() }, };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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<Occurrence> occurrences = new Occurrence[] { new Occurrence(), };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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<Occurrence> occurrences = new Occurrence[] { new Occurrence(), };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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<Occurrence> occurrences = new Occurrence[] { new Occurrence(), };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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<Occurrence> occurrences = new Occurrence[] { new Occurrence(), };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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 = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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 = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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 = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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 = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public sealed partial class GeneratedGrafeasClientSnippets
/// </remarks>
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
Expand Down
Loading

0 comments on commit 7a1f5a3

Please sign in to comment.