From d036220251afc1d36c2ee530197ad37a404c54f7 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 19 Sep 2024 04:47:54 +0000 Subject: [PATCH] fix!: Pagination feature is introduced for method `ListKeyHandles` in service `Autokey` feat: Adding a state field for AutokeyConfig docs: Field service_resolvers in message .google.cloud.kms.v1.EkmConnection is Explicitly is marked as to have field behavior of Optional docs: A comment for field `destroy_scheduled_duration` in message `.google.cloud.kms.v1.CryptoKey` is updated for the default duration PiperOrigin-RevId: 676068244 Source-Link: https://github.com/googleapis/googleapis/commit/42492c963aaac713339511a145fbefcd78f95880 Source-Link: https://github.com/googleapis/googleapis-gen/commit/47432180bdfba879fc7f82c4c451181702f25009 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuS21zLlYxLy5Pd2xCb3QueWFtbCIsImgiOiI0NzQzMjE4MGJkZmJhODc5ZmM3ZjgyYzRjNDUxMTgxNzAyZjI1MDA5In0= --- ...okeyClient.ListKeyHandlesAsyncSnippet.g.cs | 37 ++- ...stKeyHandlesRequestObjectAsyncSnippet.g.cs | 37 ++- ...nt.ListKeyHandlesRequestObjectSnippet.g.cs | 36 ++- ...stKeyHandlesResourceNamesAsyncSnippet.g.cs | 37 ++- ...nt.ListKeyHandlesResourceNamesSnippet.g.cs | 36 ++- .../AutokeyClient.ListKeyHandlesSnippet.g.cs | 36 ++- .../snippet_metadata_google.cloud.kms.v1.json | 80 +++++-- .../AutokeyClientSnippets.g.cs | 218 ++++++++++++++++-- .../Google.Cloud.Kms.V1/Autokey.g.cs | 181 +++++++++++++-- .../Google.Cloud.Kms.V1/AutokeyAdmin.g.cs | 129 ++++++++--- .../AutokeyAdminClient.g.cs | 6 +- .../Google.Cloud.Kms.V1/AutokeyAdminGrpc.g.cs | 3 +- .../Google.Cloud.Kms.V1/AutokeyClient.g.cs | 180 ++++++++++----- .../Google.Cloud.Kms.V1/AutokeyGrpc.g.cs | 3 +- .../Google.Cloud.Kms.V1/EkmService.g.cs | 126 +++++----- .../Google.Cloud.Kms.V1/Resources.g.cs | 2 +- 16 files changed, 922 insertions(+), 225 deletions(-) diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesAsyncSnippet.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesAsyncSnippet.g.cs index dee75240c936..4904d1b23a9e 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesAsyncSnippet.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesAsyncSnippet.g.cs @@ -17,7 +17,10 @@ namespace GoogleCSharpSnippets { // [START cloudkms_v1_generated_Autokey_ListKeyHandles_async_flattened] + using Google.Api.Gax; using Google.Cloud.Kms.V1; + using System; + using System.Linq; using System.Threading.Tasks; public sealed partial class GeneratedAutokeyClientSnippets @@ -37,7 +40,39 @@ public async Task ListKeyHandlesAsync() // Initialize request argument(s) string parent = "projects/[PROJECT]/locations/[LOCATION]"; // Make the request - ListKeyHandlesResponse response = await autokeyClient.ListKeyHandlesAsync(parent); + PagedAsyncEnumerable response = autokeyClient.ListKeyHandlesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((KeyHandle item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListKeyHandlesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (KeyHandle item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (KeyHandle item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; } } // [END cloudkms_v1_generated_Autokey_ListKeyHandles_async_flattened] diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesRequestObjectAsyncSnippet.g.cs index 2daf6926e4d5..2dc78e53cc38 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesRequestObjectAsyncSnippet.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesRequestObjectAsyncSnippet.g.cs @@ -17,8 +17,11 @@ namespace GoogleCSharpSnippets { // [START cloudkms_v1_generated_Autokey_ListKeyHandles_async] + using Google.Api.Gax; using Google.Api.Gax.ResourceNames; using Google.Cloud.Kms.V1; + using System; + using System.Linq; using System.Threading.Tasks; public sealed partial class GeneratedAutokeyClientSnippets @@ -42,7 +45,39 @@ public async Task ListKeyHandlesRequestObjectAsync() Filter = "", }; // Make the request - ListKeyHandlesResponse response = await autokeyClient.ListKeyHandlesAsync(request); + PagedAsyncEnumerable response = autokeyClient.ListKeyHandlesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((KeyHandle item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListKeyHandlesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (KeyHandle item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (KeyHandle item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; } } // [END cloudkms_v1_generated_Autokey_ListKeyHandles_async] diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesRequestObjectSnippet.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesRequestObjectSnippet.g.cs index dd51b6dc9f93..300f456d8c88 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesRequestObjectSnippet.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesRequestObjectSnippet.g.cs @@ -17,8 +17,10 @@ namespace GoogleCSharpSnippets { // [START cloudkms_v1_generated_Autokey_ListKeyHandles_sync] + using Google.Api.Gax; using Google.Api.Gax.ResourceNames; using Google.Cloud.Kms.V1; + using System; public sealed partial class GeneratedAutokeyClientSnippets { @@ -41,7 +43,39 @@ public void ListKeyHandlesRequestObject() Filter = "", }; // Make the request - ListKeyHandlesResponse response = autokeyClient.ListKeyHandles(request); + PagedEnumerable response = autokeyClient.ListKeyHandles(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (KeyHandle item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListKeyHandlesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (KeyHandle item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (KeyHandle item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; } } // [END cloudkms_v1_generated_Autokey_ListKeyHandles_sync] diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesResourceNamesAsyncSnippet.g.cs index 5c4b77f496e7..2b7479572b7b 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesResourceNamesAsyncSnippet.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesResourceNamesAsyncSnippet.g.cs @@ -17,8 +17,11 @@ namespace GoogleCSharpSnippets { // [START cloudkms_v1_generated_Autokey_ListKeyHandles_async_flattened_resourceNames] + using Google.Api.Gax; using Google.Api.Gax.ResourceNames; using Google.Cloud.Kms.V1; + using System; + using System.Linq; using System.Threading.Tasks; public sealed partial class GeneratedAutokeyClientSnippets @@ -38,7 +41,39 @@ public async Task ListKeyHandlesResourceNamesAsync() // Initialize request argument(s) LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); // Make the request - ListKeyHandlesResponse response = await autokeyClient.ListKeyHandlesAsync(parent); + PagedAsyncEnumerable response = autokeyClient.ListKeyHandlesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((KeyHandle item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListKeyHandlesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (KeyHandle item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (KeyHandle item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; } } // [END cloudkms_v1_generated_Autokey_ListKeyHandles_async_flattened_resourceNames] diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesResourceNamesSnippet.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesResourceNamesSnippet.g.cs index 0394a7be2f2c..fbdae504621b 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesResourceNamesSnippet.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesResourceNamesSnippet.g.cs @@ -17,8 +17,10 @@ namespace GoogleCSharpSnippets { // [START cloudkms_v1_generated_Autokey_ListKeyHandles_sync_flattened_resourceNames] + using Google.Api.Gax; using Google.Api.Gax.ResourceNames; using Google.Cloud.Kms.V1; + using System; public sealed partial class GeneratedAutokeyClientSnippets { @@ -37,7 +39,39 @@ public void ListKeyHandlesResourceNames() // Initialize request argument(s) LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); // Make the request - ListKeyHandlesResponse response = autokeyClient.ListKeyHandles(parent); + PagedEnumerable response = autokeyClient.ListKeyHandles(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (KeyHandle item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListKeyHandlesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (KeyHandle item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (KeyHandle item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; } } // [END cloudkms_v1_generated_Autokey_ListKeyHandles_sync_flattened_resourceNames] diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesSnippet.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesSnippet.g.cs index 07947f3f59c6..73062a5c713a 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesSnippet.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/AutokeyClient.ListKeyHandlesSnippet.g.cs @@ -17,7 +17,9 @@ namespace GoogleCSharpSnippets { // [START cloudkms_v1_generated_Autokey_ListKeyHandles_sync_flattened] + using Google.Api.Gax; using Google.Cloud.Kms.V1; + using System; public sealed partial class GeneratedAutokeyClientSnippets { @@ -36,7 +38,39 @@ public void ListKeyHandles() // Initialize request argument(s) string parent = "projects/[PROJECT]/locations/[LOCATION]"; // Make the request - ListKeyHandlesResponse response = autokeyClient.ListKeyHandles(parent); + PagedEnumerable response = autokeyClient.ListKeyHandles(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (KeyHandle item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListKeyHandlesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (KeyHandle item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (KeyHandle item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; } } // [END cloudkms_v1_generated_Autokey_ListKeyHandles_sync_flattened] diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/snippet_metadata_google.cloud.kms.v1.json b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/snippet_metadata_google.cloud.kms.v1.json index 9832d1d678e1..46b6825c41a0 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/snippet_metadata_google.cloud.kms.v1.json +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/snippet_metadata_google.cloud.kms.v1.json @@ -635,7 +635,7 @@ "name": "callSettings" } ], - "resultType": "Google.Cloud.Kms.V1.ListKeyHandlesResponse", + "resultType": "Google.Api.Gax.PagedEnumerable", "client": { "shortName": "AutokeyClient", "fullName": "Google.Cloud.Kms.V1.AutokeyClient" @@ -654,12 +654,12 @@ "segments": [ { "start": 20, - "end": 46, + "end": 80, "type": "FULL" }, { - "start": 35, - "end": 44, + "start": 37, + "end": 78, "type": "SHORT" } ] @@ -684,7 +684,7 @@ "name": "callSettings" } ], - "resultType": "System.Threading.Tasks.Task", + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", "client": { "shortName": "AutokeyClient", "fullName": "Google.Cloud.Kms.V1.AutokeyClient" @@ -703,12 +703,12 @@ "segments": [ { "start": 20, - "end": 47, + "end": 82, "type": "FULL" }, { - "start": 36, - "end": 45, + "start": 39, + "end": 80, "type": "SHORT" } ] @@ -727,12 +727,20 @@ "type": "System.String", "name": "parent" }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, { "type": "Google.Api.Gax.Grpc.CallSettings", "name": "callSettings" } ], - "resultType": "Google.Cloud.Kms.V1.ListKeyHandlesResponse", + "resultType": "Google.Api.Gax.PagedEnumerable", "client": { "shortName": "AutokeyClient", "fullName": "Google.Cloud.Kms.V1.AutokeyClient" @@ -750,12 +758,12 @@ "segments": [ { "start": 20, - "end": 41, + "end": 75, "type": "FULL" }, { - "start": 34, - "end": 39, + "start": 36, + "end": 73, "type": "SHORT" } ] @@ -775,12 +783,20 @@ "type": "System.String", "name": "parent" }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, { "type": "Google.Api.Gax.Grpc.CallSettings", "name": "callSettings" } ], - "resultType": "System.Threading.Tasks.Task", + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", "client": { "shortName": "AutokeyClient", "fullName": "Google.Cloud.Kms.V1.AutokeyClient" @@ -798,12 +814,12 @@ "segments": [ { "start": 20, - "end": 42, + "end": 77, "type": "FULL" }, { - "start": 35, - "end": 40, + "start": 38, + "end": 75, "type": "SHORT" } ] @@ -822,12 +838,20 @@ "type": "Google.Api.Gax.ResourceNames.LocationName", "name": "parent" }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, { "type": "Google.Api.Gax.Grpc.CallSettings", "name": "callSettings" } ], - "resultType": "Google.Cloud.Kms.V1.ListKeyHandlesResponse", + "resultType": "Google.Api.Gax.PagedEnumerable", "client": { "shortName": "AutokeyClient", "fullName": "Google.Cloud.Kms.V1.AutokeyClient" @@ -845,12 +869,12 @@ "segments": [ { "start": 20, - "end": 42, + "end": 76, "type": "FULL" }, { - "start": 35, - "end": 40, + "start": 37, + "end": 74, "type": "SHORT" } ] @@ -870,12 +894,20 @@ "type": "Google.Api.Gax.ResourceNames.LocationName", "name": "parent" }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, { "type": "Google.Api.Gax.Grpc.CallSettings", "name": "callSettings" } ], - "resultType": "System.Threading.Tasks.Task", + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", "client": { "shortName": "AutokeyClient", "fullName": "Google.Cloud.Kms.V1.AutokeyClient" @@ -893,12 +925,12 @@ "segments": [ { "start": 20, - "end": 43, + "end": 78, "type": "FULL" }, { - "start": 36, - "end": 41, + "start": 39, + "end": 76, "type": "SHORT" } ] diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.Snippets/AutokeyClientSnippets.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.Snippets/AutokeyClientSnippets.g.cs index 738b11c263b5..69ec1ac5d3b3 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.Snippets/AutokeyClientSnippets.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.Snippets/AutokeyClientSnippets.g.cs @@ -16,9 +16,12 @@ namespace GoogleCSharpSnippets { + using Google.Api.Gax; using Google.Api.Gax.ResourceNames; using Google.Cloud.Kms.V1; using Google.LongRunning; + using System; + using System.Linq; using System.Threading.Tasks; /// Generated snippets. @@ -319,7 +322,39 @@ public void ListKeyHandlesRequestObject() Filter = "", }; // Make the request - ListKeyHandlesResponse response = autokeyClient.ListKeyHandles(request); + PagedEnumerable response = autokeyClient.ListKeyHandles(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (KeyHandle item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListKeyHandlesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (KeyHandle item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (KeyHandle item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; // End snippet } @@ -327,7 +362,6 @@ public void ListKeyHandlesRequestObject() public async Task ListKeyHandlesRequestObjectAsync() { // Snippet: ListKeyHandlesAsync(ListKeyHandlesRequest, CallSettings) - // Additional: ListKeyHandlesAsync(ListKeyHandlesRequest, CancellationToken) // Create client AutokeyClient autokeyClient = await AutokeyClient.CreateAsync(); // Initialize request argument(s) @@ -337,61 +371,219 @@ public async Task ListKeyHandlesRequestObjectAsync() Filter = "", }; // Make the request - ListKeyHandlesResponse response = await autokeyClient.ListKeyHandlesAsync(request); + PagedAsyncEnumerable response = autokeyClient.ListKeyHandlesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((KeyHandle item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListKeyHandlesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (KeyHandle item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (KeyHandle item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; // End snippet } /// Snippet for ListKeyHandles public void ListKeyHandles() { - // Snippet: ListKeyHandles(string, CallSettings) + // Snippet: ListKeyHandles(string, string, int?, CallSettings) // Create client AutokeyClient autokeyClient = AutokeyClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]/locations/[LOCATION]"; // Make the request - ListKeyHandlesResponse response = autokeyClient.ListKeyHandles(parent); + PagedEnumerable response = autokeyClient.ListKeyHandles(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (KeyHandle item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListKeyHandlesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (KeyHandle item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (KeyHandle item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; // End snippet } /// Snippet for ListKeyHandlesAsync public async Task ListKeyHandlesAsync() { - // Snippet: ListKeyHandlesAsync(string, CallSettings) - // Additional: ListKeyHandlesAsync(string, CancellationToken) + // Snippet: ListKeyHandlesAsync(string, string, int?, CallSettings) // Create client AutokeyClient autokeyClient = await AutokeyClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]/locations/[LOCATION]"; // Make the request - ListKeyHandlesResponse response = await autokeyClient.ListKeyHandlesAsync(parent); + PagedAsyncEnumerable response = autokeyClient.ListKeyHandlesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((KeyHandle item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListKeyHandlesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (KeyHandle item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (KeyHandle item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; // End snippet } /// Snippet for ListKeyHandles public void ListKeyHandlesResourceNames() { - // Snippet: ListKeyHandles(LocationName, CallSettings) + // Snippet: ListKeyHandles(LocationName, string, int?, CallSettings) // Create client AutokeyClient autokeyClient = AutokeyClient.Create(); // Initialize request argument(s) LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); // Make the request - ListKeyHandlesResponse response = autokeyClient.ListKeyHandles(parent); + PagedEnumerable response = autokeyClient.ListKeyHandles(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (KeyHandle item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListKeyHandlesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (KeyHandle item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (KeyHandle item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; // End snippet } /// Snippet for ListKeyHandlesAsync public async Task ListKeyHandlesResourceNamesAsync() { - // Snippet: ListKeyHandlesAsync(LocationName, CallSettings) - // Additional: ListKeyHandlesAsync(LocationName, CancellationToken) + // Snippet: ListKeyHandlesAsync(LocationName, string, int?, CallSettings) // Create client AutokeyClient autokeyClient = await AutokeyClient.CreateAsync(); // Initialize request argument(s) LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); // Make the request - ListKeyHandlesResponse response = await autokeyClient.ListKeyHandlesAsync(parent); + PagedAsyncEnumerable response = autokeyClient.ListKeyHandlesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((KeyHandle item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListKeyHandlesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (KeyHandle item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (KeyHandle item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; // End snippet } } diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/Autokey.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/Autokey.g.cs index f4a6ca6b24d9..e0fd5c77aecc 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/Autokey.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/Autokey.g.cs @@ -40,29 +40,30 @@ static AutokeyReflection() { "A+BBAjp+6kF7CiFjbG91ZGttcy5nb29nbGVhcGlzLmNvbS9LZXlIYW5kbGUS", "P3Byb2plY3RzL3twcm9qZWN0fS9sb2NhdGlvbnMve2xvY2F0aW9ufS9rZXlI", "YW5kbGVzL3trZXlfaGFuZGxlfSoKa2V5SGFuZGxlczIJa2V5SGFuZGxlIhkK", - "F0NyZWF0ZUtleUhhbmRsZU1ldGFkYXRhImcKFUxpc3RLZXlIYW5kbGVzUmVx", - "dWVzdBI5CgZwYXJlbnQYASABKAlCKeBBAvpBIwohbG9jYXRpb25zLmdvb2ds", - "ZWFwaXMuY29tL0xvY2F0aW9uEhMKBmZpbHRlchgEIAEoCUID4EEBIk0KFkxp", - "c3RLZXlIYW5kbGVzUmVzcG9uc2USMwoLa2V5X2hhbmRsZXMYASADKAsyHi5n", - "b29nbG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5SGFuZGxlcxIqLmdvb2dsZS5jbG91", + "ZC5rbXMudjEuTGlzdEtleUhhbmRsZXNSZXF1ZXN0GisuZ29vZ2xlLmNsb3Vk", + "Lmttcy52MS5MaXN0S2V5SGFuZGxlc1Jlc3BvbnNlIj/aQQZwYXJlbnSC0+ST", + "AjASLi92MS97cGFyZW50PXByb2plY3RzLyovbG9jYXRpb25zLyp9L2tleUhh", + "bmRsZXMadMpBF2Nsb3Vka21zLmdvb2dsZWFwaXMuY29t0kFXaHR0cHM6Ly93", + "d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9jbG91ZC1wbGF0Zm9ybSxodHRwczov", + "L3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Nsb3Vka21zQlQKF2NvbS5nb29n", + "bGUuY2xvdWQua21zLnYxQgxBdXRva2V5UHJvdG9QAVopY2xvdWQuZ29vZ2xl", + "LmNvbS9nby9rbXMvYXBpdjEva21zcGI7a21zcGJiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -70,8 +71,8 @@ static AutokeyReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Kms.V1.GetKeyHandleRequest), global::Google.Cloud.Kms.V1.GetKeyHandleRequest.Parser, new[]{ "Name" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Kms.V1.KeyHandle), global::Google.Cloud.Kms.V1.KeyHandle.Parser, new[]{ "Name", "KmsKey", "ResourceTypeSelector" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Kms.V1.CreateKeyHandleMetadata), global::Google.Cloud.Kms.V1.CreateKeyHandleMetadata.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Kms.V1.ListKeyHandlesRequest), global::Google.Cloud.Kms.V1.ListKeyHandlesRequest.Parser, new[]{ "Parent", "Filter" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Kms.V1.ListKeyHandlesResponse), global::Google.Cloud.Kms.V1.ListKeyHandlesResponse.Parser, new[]{ "KeyHandles" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Kms.V1.ListKeyHandlesRequest), global::Google.Cloud.Kms.V1.ListKeyHandlesRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Kms.V1.ListKeyHandlesResponse), global::Google.Cloud.Kms.V1.ListKeyHandlesResponse.Parser, new[]{ "KeyHandles", "NextPageToken" }, null, null, null, null) })); } #endregion @@ -1056,6 +1057,8 @@ public ListKeyHandlesRequest() { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ListKeyHandlesRequest(ListKeyHandlesRequest other) : this() { parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; filter_ = other.filter_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1083,6 +1086,44 @@ public string Parent { } } + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + /// + /// Optional. Optional limit on the number of + /// [KeyHandles][google.cloud.kms.v1.KeyHandle] to include in the response. The + /// service may return fewer than this value. Further + /// [KeyHandles][google.cloud.kms.v1.KeyHandle] can subsequently be obtained by + /// including the + /// [ListKeyHandlesResponse.next_page_token][google.cloud.kms.v1.ListKeyHandlesResponse.next_page_token] + /// in a subsequent request. If unspecified, at most + /// 100 [KeyHandles][google.cloud.kms.v1.KeyHandle] will be returned. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 3; + private string pageToken_ = ""; + /// + /// Optional. Optional pagination token, returned earlier via + /// [ListKeyHandlesResponse.next_page_token][google.cloud.kms.v1.ListKeyHandlesResponse.next_page_token]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Field number for the "filter" field. public const int FilterFieldNumber = 4; private string filter_ = ""; @@ -1116,6 +1157,8 @@ public bool Equals(ListKeyHandlesRequest other) { return true; } if (Parent != other.Parent) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; if (Filter != other.Filter) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1125,6 +1168,8 @@ public bool Equals(ListKeyHandlesRequest other) { public override int GetHashCode() { int hash = 1; if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); if (Filter.Length != 0) hash ^= Filter.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -1148,6 +1193,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Parent); } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } if (Filter.Length != 0) { output.WriteRawTag(34); output.WriteString(Filter); @@ -1166,6 +1219,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Parent); } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } if (Filter.Length != 0) { output.WriteRawTag(34); output.WriteString(Filter); @@ -1183,6 +1244,12 @@ public int CalculateSize() { if (Parent.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } if (Filter.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Filter); } @@ -1201,6 +1268,12 @@ public void MergeFrom(ListKeyHandlesRequest other) { if (other.Parent.Length != 0) { Parent = other.Parent; } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } if (other.Filter.Length != 0) { Filter = other.Filter; } @@ -1223,6 +1296,14 @@ public void MergeFrom(pb::CodedInputStream input) { Parent = input.ReadString(); break; } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } case 34: { Filter = input.ReadString(); break; @@ -1246,6 +1327,14 @@ public void MergeFrom(pb::CodedInputStream input) { Parent = input.ReadString(); break; } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } case 34: { Filter = input.ReadString(); break; @@ -1297,6 +1386,7 @@ public ListKeyHandlesResponse() { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ListKeyHandlesResponse(ListKeyHandlesResponse other) : this() { keyHandles_ = other.keyHandles_.Clone(); + nextPageToken_ = other.nextPageToken_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1320,6 +1410,23 @@ public ListKeyHandlesResponse Clone() { get { return keyHandles_; } } + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token to retrieve next page of results. Pass this value in + /// [ListKeyHandlesRequest.page_token][google.cloud.kms.v1.ListKeyHandlesRequest.page_token] + /// to retrieve the next page of results. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -1336,6 +1443,7 @@ public bool Equals(ListKeyHandlesResponse other) { return true; } if(!keyHandles_.Equals(other.keyHandles_)) return false; + if (NextPageToken != other.NextPageToken) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1344,6 +1452,7 @@ public bool Equals(ListKeyHandlesResponse other) { public override int GetHashCode() { int hash = 1; hash ^= keyHandles_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1363,6 +1472,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawMessage(this); #else keyHandles_.WriteTo(output, _repeated_keyHandles_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1374,6 +1487,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { keyHandles_.WriteTo(ref output, _repeated_keyHandles_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1385,6 +1502,9 @@ public void WriteTo(pb::CodedOutputStream output) { public int CalculateSize() { int size = 0; size += keyHandles_.CalculateSize(_repeated_keyHandles_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1398,6 +1518,9 @@ public void MergeFrom(ListKeyHandlesResponse other) { return; } keyHandles_.Add(other.keyHandles_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1417,6 +1540,10 @@ public void MergeFrom(pb::CodedInputStream input) { keyHandles_.AddEntriesFrom(input, _repeated_keyHandles_codec); break; } + case 18: { + NextPageToken = input.ReadString(); + break; + } } } #endif @@ -1436,6 +1563,10 @@ public void MergeFrom(pb::CodedInputStream input) { keyHandles_.AddEntriesFrom(ref input, _repeated_keyHandles_codec); break; } + case 18: { + NextPageToken = input.ReadString(); + break; + } } } } diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyAdmin.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyAdmin.g.cs index f31ae86b398b..cd1091899828 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyAdmin.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyAdmin.g.cs @@ -34,38 +34,41 @@ static AutokeyAdminReflection() { "dGVfbWFzaxgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tCA+BB", "AiJWChdHZXRBdXRva2V5Q29uZmlnUmVxdWVzdBI7CgRuYW1lGAEgASgJQi3g", "QQL6QScKJWNsb3Vka21zLmdvb2dsZWFwaXMuY29tL0F1dG9rZXlDb25maWci", - "pwEKDUF1dG9rZXlDb25maWcSEQoEbmFtZRgBIAEoCUID4EEIEhgKC2tleV9w", - "cm9qZWN0GAIgASgJQgPgQQE6aepBZgolY2xvdWRrbXMuZ29vZ2xlYXBpcy5j", - "b20vQXV0b2tleUNvbmZpZxIeZm9sZGVycy97Zm9sZGVyfS9hdXRva2V5Q29u", - "ZmlnKg5hdXRva2V5Q29uZmlnczINYXV0b2tleUNvbmZpZyJoCiFTaG93RWZm", - "ZWN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V5Q29uZmlnUmVxdWVzdBoiLmdvb2dsZS5j", + "bG91ZC5rbXMudjEuQXV0b2tleUNvbmZpZyJm2kEaYXV0b2tleV9jb25maWcs", + "dXBkYXRlX21hc2uC0+STAkMyMS92MS97YXV0b2tleV9jb25maWcubmFtZT1m", + "b2xkZXJzLyovYXV0b2tleUNvbmZpZ306DmF1dG9rZXlfY29uZmlnEpcBChBH", + "ZXRBdXRva2V5Q29uZmlnEiwuZ29vZ2xlLmNsb3VkLmttcy52MS5HZXRBdXRv", + "a2V5Q29uZmlnUmVxdWVzdBoiLmdvb2dsZS5jbG91ZC5rbXMudjEuQXV0b2tl", + "eUNvbmZpZyIx2kEEbmFtZYLT5JMCJBIiL3YxL3tuYW1lPWZvbGRlcnMvKi9h", + "dXRva2V5Q29uZmlnfRLSAQoaU2hvd0VmZmVjdGl2ZUF1dG9rZXlDb25maWcS", + "Ni5nb29nbGUuY2xvdWQua21zLnYxLlNob3dFZmZlY3RpdmVBdXRva2V5Q29u", + "ZmlnUmVxdWVzdBo3Lmdvb2dsZS5jbG91ZC5rbXMudjEuU2hvd0VmZmVjdGl2", + "ZUF1dG9rZXlDb25maWdSZXNwb25zZSJD2kEGcGFyZW50gtPkkwI0EjIvdjEv", + "e3BhcmVudD1wcm9qZWN0cy8qfTpzaG93RWZmZWN0aXZlQXV0b2tleUNvbmZp", + "Zxp0ykEXY2xvdWRrbXMuZ29vZ2xlYXBpcy5jb23SQVdodHRwczovL3d3dy5n", + "b29nbGVhcGlzLmNvbS9hdXRoL2Nsb3VkLXBsYXRmb3JtLGh0dHBzOi8vd3d3", + "Lmdvb2dsZWFwaXMuY29tL2F1dGgvY2xvdWRrbXNCWQoXY29tLmdvb2dsZS5j", + "bG91ZC5rbXMudjFCEUF1dG9rZXlBZG1pblByb3RvUAFaKWNsb3VkLmdvb2ds", + "ZS5jb20vZ28va21zL2FwaXYxL2ttc3BiO2ttc3BiYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Kms.V1.UpdateAutokeyConfigRequest), global::Google.Cloud.Kms.V1.UpdateAutokeyConfigRequest.Parser, new[]{ "AutokeyConfig", "UpdateMask" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Kms.V1.GetAutokeyConfigRequest), global::Google.Cloud.Kms.V1.GetAutokeyConfigRequest.Parser, new[]{ "Name" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Kms.V1.AutokeyConfig), global::Google.Cloud.Kms.V1.AutokeyConfig.Parser, new[]{ "Name", "KeyProject" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Kms.V1.AutokeyConfig), global::Google.Cloud.Kms.V1.AutokeyConfig.Parser, new[]{ "Name", "KeyProject", "State" }, null, new[]{ typeof(global::Google.Cloud.Kms.V1.AutokeyConfig.Types.State) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Kms.V1.ShowEffectiveAutokeyConfigRequest), global::Google.Cloud.Kms.V1.ShowEffectiveAutokeyConfigRequest.Parser, new[]{ "Parent" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Kms.V1.ShowEffectiveAutokeyConfigResponse), global::Google.Cloud.Kms.V1.ShowEffectiveAutokeyConfigResponse.Parser, new[]{ "KeyProject" }, null, null, null, null) })); @@ -570,6 +573,7 @@ public AutokeyConfig() { public AutokeyConfig(AutokeyConfig other) : this() { name_ = other.name_; keyProject_ = other.keyProject_; + state_ = other.state_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -620,6 +624,21 @@ public string KeyProject { } } + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private global::Google.Cloud.Kms.V1.AutokeyConfig.Types.State state_ = global::Google.Cloud.Kms.V1.AutokeyConfig.Types.State.Unspecified; + /// + /// Output only. The state for the AutokeyConfig. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Kms.V1.AutokeyConfig.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -637,6 +656,7 @@ public bool Equals(AutokeyConfig other) { } if (Name != other.Name) return false; if (KeyProject != other.KeyProject) return false; + if (State != other.State) return false; return Equals(_unknownFields, other._unknownFields); } @@ -646,6 +666,7 @@ public override int GetHashCode() { int hash = 1; if (Name.Length != 0) hash ^= Name.GetHashCode(); if (KeyProject.Length != 0) hash ^= KeyProject.GetHashCode(); + if (State != global::Google.Cloud.Kms.V1.AutokeyConfig.Types.State.Unspecified) hash ^= State.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -672,6 +693,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(KeyProject); } + if (State != global::Google.Cloud.Kms.V1.AutokeyConfig.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -690,6 +715,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(KeyProject); } + if (State != global::Google.Cloud.Kms.V1.AutokeyConfig.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -706,6 +735,9 @@ public int CalculateSize() { if (KeyProject.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyProject); } + if (State != global::Google.Cloud.Kms.V1.AutokeyConfig.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -724,6 +756,9 @@ public void MergeFrom(AutokeyConfig other) { if (other.KeyProject.Length != 0) { KeyProject = other.KeyProject; } + if (other.State != global::Google.Cloud.Kms.V1.AutokeyConfig.Types.State.Unspecified) { + State = other.State; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -747,6 +782,10 @@ public void MergeFrom(pb::CodedInputStream input) { KeyProject = input.ReadString(); break; } + case 32: { + State = (global::Google.Cloud.Kms.V1.AutokeyConfig.Types.State) input.ReadEnum(); + break; + } } } #endif @@ -770,11 +809,47 @@ public void MergeFrom(pb::CodedInputStream input) { KeyProject = input.ReadString(); break; } + case 32: { + State = (global::Google.Cloud.Kms.V1.AutokeyConfig.Types.State) input.ReadEnum(); + break; + } } } } #endif + #region Nested types + /// Container for nested types declared in the AutokeyConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The states AutokeyConfig can be in. + /// + public enum State { + /// + /// The state of the AutokeyConfig is unspecified. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The AutokeyConfig is currently active. + /// + [pbr::OriginalName("ACTIVE")] Active = 1, + /// + /// A previously configured key project has been deleted and the current + /// AutokeyConfig is unusable. + /// + [pbr::OriginalName("KEY_PROJECT_DELETED")] KeyProjectDeleted = 2, + /// + /// The AutokeyConfig is not yet initialized or has been reset to its default + /// uninitialized state. + /// + [pbr::OriginalName("UNINITIALIZED")] Uninitialized = 3, + } + + } + #endregion + } /// diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyAdminClient.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyAdminClient.g.cs index dfb42fe5d379..a82e5cbadc83 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyAdminClient.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyAdminClient.g.cs @@ -190,7 +190,8 @@ private AutokeyAdminClient BuildImpl() /// AutokeyAdmin client wrapper, for convenient use. /// - /// Provides interfaces for managing Cloud KMS Autokey folder-level + /// Provides interfaces for managing [Cloud KMS + /// Autokey](https://cloud.google.com/kms/help/autokey) folder-level /// configurations. A configuration is inherited by all descendent projects. A /// configuration at one folder overrides any other configurations in its /// ancestry. Setting a configuration on a folder is a prerequisite for Cloud KMS @@ -648,7 +649,8 @@ public virtual ShowEffectiveAutokeyConfigResponse ShowEffectiveAutokeyConfig(gag /// AutokeyAdmin client wrapper implementation, for convenient use. /// - /// Provides interfaces for managing Cloud KMS Autokey folder-level + /// Provides interfaces for managing [Cloud KMS + /// Autokey](https://cloud.google.com/kms/help/autokey) folder-level /// configurations. A configuration is inherited by all descendent projects. A /// configuration at one folder overrides any other configurations in its /// ancestry. Setting a configuration on a folder is a prerequisite for Cloud KMS diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyAdminGrpc.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyAdminGrpc.g.cs index 1c82f357f58c..f9029aa583ad 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyAdminGrpc.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyAdminGrpc.g.cs @@ -24,7 +24,8 @@ namespace Google.Cloud.Kms.V1 { /// - /// Provides interfaces for managing Cloud KMS Autokey folder-level + /// Provides interfaces for managing [Cloud KMS + /// Autokey](https://cloud.google.com/kms/help/autokey) folder-level /// configurations. A configuration is inherited by all descendent projects. A /// configuration at one folder overrides any other configurations in its /// ancestry. Setting a configuration on a folder is a prerequisite for Cloud KMS diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyClient.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyClient.g.cs index 559fe58ca993..9dbbe1fd7434 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyClient.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyClient.g.cs @@ -25,6 +25,7 @@ using lro = Google.LongRunning; using mel = Microsoft.Extensions.Logging; using proto = Google.Protobuf; +using sc = System.Collections; using scg = System.Collections.Generic; using sco = System.Collections.ObjectModel; using st = System.Threading; @@ -199,7 +200,8 @@ private AutokeyClient BuildImpl() /// Autokey client wrapper, for convenient use. /// - /// Provides interfaces for using Cloud KMS Autokey to provision new + /// Provides interfaces for using [Cloud KMS + /// Autokey](https://cloud.google.com/kms/help/autokey) to provision new /// [CryptoKeys][google.cloud.kms.v1.CryptoKey], ready for Customer Managed /// Encryption Key (CMEK) use, on-demand. To support certain client tooling, this /// feature is modeled around a [KeyHandle][google.cloud.kms.v1.KeyHandle] @@ -680,8 +682,8 @@ public virtual KeyHandle GetKeyHandle(KeyHandleName name, gaxgrpc::CallSettings /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual ListKeyHandlesResponse ListKeyHandles(ListKeyHandlesRequest request, gaxgrpc::CallSettings callSettings = null) => + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListKeyHandles(ListKeyHandlesRequest request, gaxgrpc::CallSettings callSettings = null) => throw new sys::NotImplementedException(); /// @@ -689,19 +691,10 @@ public virtual ListKeyHandlesResponse ListKeyHandles(ListKeyHandlesRequest reque /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task ListKeyHandlesAsync(ListKeyHandlesRequest request, gaxgrpc::CallSettings callSettings = null) => + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListKeyHandlesAsync(ListKeyHandlesRequest request, gaxgrpc::CallSettings callSettings = null) => throw new sys::NotImplementedException(); - /// - /// Lists [KeyHandles][google.cloud.kms.v1.KeyHandle]. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task ListKeyHandlesAsync(ListKeyHandlesRequest request, st::CancellationToken cancellationToken) => - ListKeyHandlesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - /// /// Lists [KeyHandles][google.cloud.kms.v1.KeyHandle]. /// @@ -710,13 +703,32 @@ public virtual ListKeyHandlesResponse ListKeyHandles(ListKeyHandlesRequest reque /// [KeyHandles][google.cloud.kms.v1.KeyHandle], e.g. /// `projects/{PROJECT_ID}/locations/{LOCATION}`. /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual ListKeyHandlesResponse ListKeyHandles(string parent, gaxgrpc::CallSettings callSettings = null) => - ListKeyHandles(new ListKeyHandlesRequest + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListKeyHandles(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListKeyHandlesRequest request = new ListKeyHandlesRequest { Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), - }, callSettings); + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListKeyHandles(request, callSettings); + } /// /// Lists [KeyHandles][google.cloud.kms.v1.KeyHandle]. @@ -726,13 +738,32 @@ public virtual ListKeyHandlesResponse ListKeyHandles(string parent, gaxgrpc::Cal /// [KeyHandles][google.cloud.kms.v1.KeyHandle], e.g. /// `projects/{PROJECT_ID}/locations/{LOCATION}`. /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task ListKeyHandlesAsync(string parent, gaxgrpc::CallSettings callSettings = null) => - ListKeyHandlesAsync(new ListKeyHandlesRequest + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListKeyHandlesAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListKeyHandlesRequest request = new ListKeyHandlesRequest { Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), - }, callSettings); + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListKeyHandlesAsync(request, callSettings); + } /// /// Lists [KeyHandles][google.cloud.kms.v1.KeyHandle]. @@ -742,26 +773,32 @@ public virtual ListKeyHandlesResponse ListKeyHandles(string parent, gaxgrpc::Cal /// [KeyHandles][google.cloud.kms.v1.KeyHandle], e.g. /// `projects/{PROJECT_ID}/locations/{LOCATION}`. /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task ListKeyHandlesAsync(string parent, st::CancellationToken cancellationToken) => - ListKeyHandlesAsync(parent, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Lists [KeyHandles][google.cloud.kms.v1.KeyHandle]. - /// - /// - /// Required. Name of the resource project and location from which to list - /// [KeyHandles][google.cloud.kms.v1.KeyHandle], e.g. - /// `projects/{PROJECT_ID}/locations/{LOCATION}`. + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. /// /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual ListKeyHandlesResponse ListKeyHandles(gagr::LocationName parent, gaxgrpc::CallSettings callSettings = null) => - ListKeyHandles(new ListKeyHandlesRequest + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListKeyHandles(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListKeyHandlesRequest request = new ListKeyHandlesRequest { ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), - }, callSettings); + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListKeyHandles(request, callSettings); + } /// /// Lists [KeyHandles][google.cloud.kms.v1.KeyHandle]. @@ -771,31 +808,38 @@ public virtual ListKeyHandlesResponse ListKeyHandles(gagr::LocationName parent, /// [KeyHandles][google.cloud.kms.v1.KeyHandle], e.g. /// `projects/{PROJECT_ID}/locations/{LOCATION}`. /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task ListKeyHandlesAsync(gagr::LocationName parent, gaxgrpc::CallSettings callSettings = null) => - ListKeyHandlesAsync(new ListKeyHandlesRequest + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListKeyHandlesAsync(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListKeyHandlesRequest request = new ListKeyHandlesRequest { ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), - }, callSettings); - - /// - /// Lists [KeyHandles][google.cloud.kms.v1.KeyHandle]. - /// - /// - /// Required. Name of the resource project and location from which to list - /// [KeyHandles][google.cloud.kms.v1.KeyHandle], e.g. - /// `projects/{PROJECT_ID}/locations/{LOCATION}`. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task ListKeyHandlesAsync(gagr::LocationName parent, st::CancellationToken cancellationToken) => - ListKeyHandlesAsync(parent, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListKeyHandlesAsync(request, callSettings); + } } /// Autokey client wrapper implementation, for convenient use. /// - /// Provides interfaces for using Cloud KMS Autokey to provision new + /// Provides interfaces for using [Cloud KMS + /// Autokey](https://cloud.google.com/kms/help/autokey) to provision new /// [CryptoKeys][google.cloud.kms.v1.CryptoKey], ready for Customer Managed /// Encryption Key (CMEK) use, on-demand. To support certain client tooling, this /// feature is modeled around a [KeyHandle][google.cloud.kms.v1.KeyHandle] @@ -944,11 +988,11 @@ public override KeyHandle GetKeyHandle(GetKeyHandleRequest request, gaxgrpc::Cal /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override ListKeyHandlesResponse ListKeyHandles(ListKeyHandlesRequest request, gaxgrpc::CallSettings callSettings = null) + /// A pageable sequence of resources. + public override gax::PagedEnumerable ListKeyHandles(ListKeyHandlesRequest request, gaxgrpc::CallSettings callSettings = null) { Modify_ListKeyHandlesRequest(ref request, ref callSettings); - return _callListKeyHandles.Sync(request, callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListKeyHandles, request, callSettings); } /// @@ -956,14 +1000,26 @@ public override ListKeyHandlesResponse ListKeyHandles(ListKeyHandlesRequest requ /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task ListKeyHandlesAsync(ListKeyHandlesRequest request, gaxgrpc::CallSettings callSettings = null) + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable ListKeyHandlesAsync(ListKeyHandlesRequest request, gaxgrpc::CallSettings callSettings = null) { Modify_ListKeyHandlesRequest(ref request, ref callSettings); - return _callListKeyHandles.Async(request, callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListKeyHandles, request, callSettings); } } + public partial class ListKeyHandlesRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListKeyHandlesResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => KeyHandles.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + public static partial class Autokey { public partial class AutokeyClient diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyGrpc.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyGrpc.g.cs index 982773a57e1b..518fa1a92095 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyGrpc.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/AutokeyGrpc.g.cs @@ -24,7 +24,8 @@ namespace Google.Cloud.Kms.V1 { /// - /// Provides interfaces for using Cloud KMS Autokey to provision new + /// Provides interfaces for using [Cloud KMS + /// Autokey](https://cloud.google.com/kms/help/autokey) to provision new /// [CryptoKeys][google.cloud.kms.v1.CryptoKey], ready for Customer Managed /// Encryption Key (CMEK) use, on-demand. To support certain client tooling, this /// feature is modeled around a [KeyHandle][google.cloud.kms.v1.KeyHandle] diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/EkmService.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/EkmService.g.cs index e50e25858c64..30ff6e3156e7 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/EkmService.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/EkmService.g.cs @@ -57,70 +57,70 @@ static EkmServiceReflection() { "EjgKD25vdF9iZWZvcmVfdGltZRgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", "aW1lc3RhbXBCA+BBAxI3Cg5ub3RfYWZ0ZXJfdGltZRgHIAEoCzIaLmdvb2ds", "ZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BB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WChNrZXlfbWFuYWdlbWVudF9tb2RlGAYgASgOMjQuZ29v", + "Z2xlLmNsb3VkLmttcy52MS5Fa21Db25uZWN0aW9uLktleU1hbmFnZW1lbnRN", + "b2RlQgPgQQESHgoRY3J5cHRvX3NwYWNlX3BhdGgYByABKAlCA+BBARreAQoP", + "U2VydmljZVJlc29sdmVyElIKGXNlcnZpY2VfZGlyZWN0b3J5X3NlcnZpY2UY", + "ASABKAlCL+BBAvpBKQonc2VydmljZWRpcmVjdG9yeS5nb29nbGVhcGlzLmNv", + "bS9TZXJ2aWNlEhwKD2VuZHBvaW50X2ZpbHRlchgCIAEoCUID4EEBEhUKCGhv", + "c3RuYW1lGAMgASgJQgPgQQISQgoTc2VydmVyX2NlcnRpZmljYXRlcxgEIAMo", + "CzIgLmdvb2dsZS5jbG91ZC5rbXMudjEuQ2VydGlmaWNhdGVCA+BBAiJTChFL", + "ZXlNYW5hZ2VtZW50TW9kZRIjCh9LRVlfTUFOQUdFTUVOVF9NT0RFX1VOU1BF", + "Q0lGSUVEEAASCgoGTUFOVUFMEAESDQoJQ0xPVURfS01TEAI6c+pBcAolY2xv", + "dWRrbXMuZ29vZ2xlYXBpcy5jb20vRWttQ29ubmVjdGlvbhJHcHJvamVjdHMv", + "e3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259L2VrbUNvbm5lY3Rpb25z", + "L3tla21fY29ubmVjdGlvbn0iyAEKCUVrbUNvbmZpZxIRCgRuYW1lGAEgASgJ", + "QgPgQQMSTQoWZGVmYXVsdF9la21fY29ubmVjdGlvbhgCIAEoCUIt4EEB+kEn", + "CiVjbG91ZGttcy5nb29nbGVhcGlzLmNvbS9Fa21Db25uZWN0aW9uOlnqQVYK", + "IWNsb3Vka21zLmdvb2dsZWFwaXMuY29tL0VrbUNvbmZpZxIxcHJvamVjdHMv", + "e3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259L2VrbUNvbmZpZyJYChlW", + "ZXJpZnlDb25uZWN0aXZpd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b25SZXF1ZXN0GiIuZ29vZ2xlLmNsb3VkLmttcy52", + "MS5Fa21Db25uZWN0aW9uInbaQRpla21fY29ubmVjdGlvbix1cGRhdGVfbWFz", + "a4LT5JMCUzJBL3YxL3tla21fY29ubmVjdGlvbi5uYW1lPXByb2plY3RzLyov", + "bG9jYXRpb25zLyovZWttQ29ubmVjdGlvbnMvKn06DmVrbV9jb25uZWN0aW9u", + "EpQBCgxHZXRFa21Db25maWcSKC5nb29nbGUuY2xvdWQua21zLnYxLkdldEVr", + "bUNvbmZpZ1JlcXVlc3QaHi5nb29nbGUuY2xvdWQua21zLnYxLkVrbUNvbmZp", + "ZyI62kEEbmFtZYLT5JMCLRIrL3YxL3tuYW1lPXByb2plY3RzLyovbG9jYXRp", + "b25zLyovZWttQ29uZmlnfRLDAQoPVXBkYXRlRWttQ29uZmlnEisuZ29vZ2xl", + "LmNsb3VkLmttcy52MS5VcGRhdGVFa21Db25maWdSZXF1ZXN0Gh4uZ29vZ2xl", + "LmNsb3VkLmttcy52MS5Fa21Db25maWciY9pBFmVrbV9jb25maWcsdXBkYXRl", + "X21hc2uC0+STAkQyNi92MS97ZWttX2NvbmZpZy5uYW1lPXByb2plY3RzLyov", + "bG9jYXRpb25zLyovZWttQ29uZmlnfToKZWttX2NvbmZpZxLLAQoSVmVyaWZ5", + "Q29ubmVjdGl2aXR5Ei4uZ29vZ2xlLmNsb3VkLmttcy52MS5WZXJpZnlDb25u", + "ZWN0aXZpdHlSZXF1ZXN0Gi8uZ29vZ2xlLmNsb3VkLmttcy52MS5WZXJpZnlD", + "b25uZWN0aXZpdHlSZXNwb25zZSJU2kEEbmFtZYLT5JMCRxJFL3YxL3tuYW1l", + "PXByb2plY3RzLyovbG9jYXRpb25zLyovZWttQ29ubmVjdGlvbnMvKn06dmVy", + "aWZ5Q29ubmVjdGl2aXR5GnTKQRdjbG91ZGttcy5nb29nbGVhcGlzLmNvbdJB", + "V2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvY2xvdWQtcGxhdGZv", + "cm0saHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9jbG91ZGttc0KF", + "AgoXY29tLmdvb2dsZS5jbG91ZC5rbXMudjFCD0VrbVNlcnZpY2VQcm90b1AB", + "WiljbG91ZC5nb29nbGUuY29tL2dvL2ttcy9hcGl2MS9rbXNwYjtrbXNwYvgB", + "AaoCE0dvb2dsZS5DbG91ZC5LbXMuVjHKAhNHb29nbGVcQ2xvdWRcS21zXFYx", + "6kF8CidzZXJ2aWNlZGlyZWN0b3J5Lmdvb2dsZWFwaXMuY29tL1NlcnZpY2US", + "UXByb2plY3RzL3twcm9qZWN0fS9sb2NhdGlvbnMve2xvY2F0aW9ufS9uYW1l", + "c3BhY2VzL3tuYW1lc3BhY2V9L3NlcnZpY2VzL3tzZXJ2aWNlfWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -2610,7 +2610,7 @@ public string Name { = pb::FieldCodec.ForMessage(26, global::Google.Cloud.Kms.V1.EkmConnection.Types.ServiceResolver.Parser); private readonly pbc::RepeatedField serviceResolvers_ = new pbc::RepeatedField(); /// - /// A list of + /// Optional. A list of /// [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where /// the EKM can be reached. There should be one ServiceResolver per EKM /// replica. Currently, only a single diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/Resources.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/Resources.g.cs index de03c16a332e..90afa17af90f 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/Resources.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/Resources.g.cs @@ -817,7 +817,7 @@ public bool ImportOnly { /// [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED] /// state before transitioning to /// [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED]. - /// If not specified at creation time, the default duration is 24 hours. + /// If not specified at creation time, the default duration is 30 days. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]