-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for Coordinated External Keys
PiperOrigin-RevId: 514450927 Source-Link: googleapis/googleapis@de50ec6 Source-Link: googleapis/googleapis-gen@8a0f354 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuS21zLlYxLy5Pd2xCb3QueWFtbCIsImgiOiI4YTBmMzU0ZDQ3NzNlMzY5MDI4YzgxMDlhMDUzM2ZjMzAzODY4NDRiIn0=
- Loading branch information
1 parent
cbb4dd8
commit 08d67d7
Showing
18 changed files
with
2,829 additions
and
56 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...s.V1/Google.Cloud.Kms.V1.GeneratedSnippets/EkmServiceClient.GetEkmConfigAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.Kms.V1.Snippets | ||
{ | ||
// [START cloudkms_v1_generated_EkmService_GetEkmConfig_async_flattened] | ||
using Google.Cloud.Kms.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedEkmServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for GetEkmConfigAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task GetEkmConfigAsync() | ||
{ | ||
// Create client | ||
EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string name = "projects/[PROJECT]/locations/[LOCATION]/ekmConfig"; | ||
// Make the request | ||
EkmConfig response = await ekmServiceClient.GetEkmConfigAsync(name); | ||
} | ||
} | ||
// [END cloudkms_v1_generated_EkmService_GetEkmConfig_async_flattened] | ||
} |
47 changes: 47 additions & 0 deletions
47
...loud.Kms.V1.GeneratedSnippets/EkmServiceClient.GetEkmConfigRequestObjectAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.Kms.V1.Snippets | ||
{ | ||
// [START cloudkms_v1_generated_EkmService_GetEkmConfig_async] | ||
using Google.Cloud.Kms.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedEkmServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for GetEkmConfigAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task GetEkmConfigRequestObjectAsync() | ||
{ | ||
// Create client | ||
EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
GetEkmConfigRequest request = new GetEkmConfigRequest | ||
{ | ||
EkmConfigName = EkmConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"), | ||
}; | ||
// Make the request | ||
EkmConfig response = await ekmServiceClient.GetEkmConfigAsync(request); | ||
} | ||
} | ||
// [END cloudkms_v1_generated_EkmService_GetEkmConfig_async] | ||
} |
46 changes: 46 additions & 0 deletions
46
...gle.Cloud.Kms.V1.GeneratedSnippets/EkmServiceClient.GetEkmConfigRequestObjectSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.Kms.V1.Snippets | ||
{ | ||
// [START cloudkms_v1_generated_EkmService_GetEkmConfig_sync] | ||
using Google.Cloud.Kms.V1; | ||
|
||
public sealed partial class GeneratedEkmServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for GetEkmConfig</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void GetEkmConfigRequestObject() | ||
{ | ||
// Create client | ||
EkmServiceClient ekmServiceClient = EkmServiceClient.Create(); | ||
// Initialize request argument(s) | ||
GetEkmConfigRequest request = new GetEkmConfigRequest | ||
{ | ||
EkmConfigName = EkmConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"), | ||
}; | ||
// Make the request | ||
EkmConfig response = ekmServiceClient.GetEkmConfig(request); | ||
} | ||
} | ||
// [END cloudkms_v1_generated_EkmService_GetEkmConfig_sync] | ||
} |
44 changes: 44 additions & 0 deletions
44
...loud.Kms.V1.GeneratedSnippets/EkmServiceClient.GetEkmConfigResourceNamesAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.Kms.V1.Snippets | ||
{ | ||
// [START cloudkms_v1_generated_EkmService_GetEkmConfig_async_flattened_resourceNames] | ||
using Google.Cloud.Kms.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedEkmServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for GetEkmConfigAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task GetEkmConfigResourceNamesAsync() | ||
{ | ||
// Create client | ||
EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
EkmConfigName name = EkmConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"); | ||
// Make the request | ||
EkmConfig response = await ekmServiceClient.GetEkmConfigAsync(name); | ||
} | ||
} | ||
// [END cloudkms_v1_generated_EkmService_GetEkmConfig_async_flattened_resourceNames] | ||
} |
43 changes: 43 additions & 0 deletions
43
...gle.Cloud.Kms.V1.GeneratedSnippets/EkmServiceClient.GetEkmConfigResourceNamesSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.Kms.V1.Snippets | ||
{ | ||
// [START cloudkms_v1_generated_EkmService_GetEkmConfig_sync_flattened_resourceNames] | ||
using Google.Cloud.Kms.V1; | ||
|
||
public sealed partial class GeneratedEkmServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for GetEkmConfig</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void GetEkmConfigResourceNames() | ||
{ | ||
// Create client | ||
EkmServiceClient ekmServiceClient = EkmServiceClient.Create(); | ||
// Initialize request argument(s) | ||
EkmConfigName name = EkmConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"); | ||
// Make the request | ||
EkmConfig response = ekmServiceClient.GetEkmConfig(name); | ||
} | ||
} | ||
// [END cloudkms_v1_generated_EkmService_GetEkmConfig_sync_flattened_resourceNames] | ||
} |
43 changes: 43 additions & 0 deletions
43
...ud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/EkmServiceClient.GetEkmConfigSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.Kms.V1.Snippets | ||
{ | ||
// [START cloudkms_v1_generated_EkmService_GetEkmConfig_sync_flattened] | ||
using Google.Cloud.Kms.V1; | ||
|
||
public sealed partial class GeneratedEkmServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for GetEkmConfig</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void GetEkmConfig() | ||
{ | ||
// Create client | ||
EkmServiceClient ekmServiceClient = EkmServiceClient.Create(); | ||
// Initialize request argument(s) | ||
string name = "projects/[PROJECT]/locations/[LOCATION]/ekmConfig"; | ||
// Make the request | ||
EkmConfig response = ekmServiceClient.GetEkmConfig(name); | ||
} | ||
} | ||
// [END cloudkms_v1_generated_EkmService_GetEkmConfig_sync_flattened] | ||
} |
46 changes: 46 additions & 0 deletions
46
...1/Google.Cloud.Kms.V1.GeneratedSnippets/EkmServiceClient.UpdateEkmConfigAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.Kms.V1.Snippets | ||
{ | ||
// [START cloudkms_v1_generated_EkmService_UpdateEkmConfig_async_flattened] | ||
using Google.Cloud.Kms.V1; | ||
using Google.Protobuf.WellKnownTypes; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedEkmServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for UpdateEkmConfigAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task UpdateEkmConfigAsync() | ||
{ | ||
// Create client | ||
EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
EkmConfig ekmConfig = new EkmConfig(); | ||
FieldMask updateMask = new FieldMask(); | ||
// Make the request | ||
EkmConfig response = await ekmServiceClient.UpdateEkmConfigAsync(ekmConfig, updateMask); | ||
} | ||
} | ||
// [END cloudkms_v1_generated_EkmService_UpdateEkmConfig_async_flattened] | ||
} |
49 changes: 49 additions & 0 deletions
49
...d.Kms.V1.GeneratedSnippets/EkmServiceClient.UpdateEkmConfigRequestObjectAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.Kms.V1.Snippets | ||
{ | ||
// [START cloudkms_v1_generated_EkmService_UpdateEkmConfig_async] | ||
using Google.Cloud.Kms.V1; | ||
using Google.Protobuf.WellKnownTypes; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedEkmServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for UpdateEkmConfigAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task UpdateEkmConfigRequestObjectAsync() | ||
{ | ||
// Create client | ||
EkmServiceClient ekmServiceClient = await EkmServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
UpdateEkmConfigRequest request = new UpdateEkmConfigRequest | ||
{ | ||
EkmConfig = new EkmConfig(), | ||
UpdateMask = new FieldMask(), | ||
}; | ||
// Make the request | ||
EkmConfig response = await ekmServiceClient.UpdateEkmConfigAsync(request); | ||
} | ||
} | ||
// [END cloudkms_v1_generated_EkmService_UpdateEkmConfig_async] | ||
} |
Oops, something went wrong.