Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: replace java_outer_classname option with use_java_stubby_libra…
…ry, add DisableServiceAccountKey and EnableServiceAccountKey, and update comments PiperOrigin-RevId: 474647927 Source-Link: googleapis/googleapis@a0a740c Source-Link: googleapis/googleapis-gen@5849ad1 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuSWFtLkFkbWluLlYxLy5Pd2xCb3QueWFtbCIsImgiOiI1ODQ5YWQxMTBmMjVlZWYxZTA4ZGFmMjliZDVhODFmMTFmYjY1NDI0In0=
- Loading branch information
1 parent
3595646
commit b0321c8
Showing
20 changed files
with
2,762 additions
and
454 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
....Cloud.Iam.Admin.V1.GeneratedSnippets/IAMClient.DisableServiceAccountKeyAsyncSnippet.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,41 @@ | ||
// Copyright 2022 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.Iam.Admin.V1.Snippets | ||
{ | ||
// [START iam_v1_generated_IAM_DisableServiceAccountKey_async_flattened] | ||
using Google.Cloud.Iam.Admin.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedIAMClientSnippets | ||
{ | ||
/// <summary>Snippet for DisableServiceAccountKeyAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public async Task DisableServiceAccountKeyAsync() | ||
{ | ||
// Create client | ||
IAMClient iAMClient = await IAMClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string name = "projects/[PROJECT]/serviceAccounts/[SERVICE_ACCOUNT]/keys/[KEY]"; | ||
// Make the request | ||
await iAMClient.DisableServiceAccountKeyAsync(name); | ||
} | ||
} | ||
// [END iam_v1_generated_IAM_DisableServiceAccountKey_async_flattened] | ||
} |
44 changes: 44 additions & 0 deletions
44
...min.V1.GeneratedSnippets/IAMClient.DisableServiceAccountKeyRequestObjectAsyncSnippet.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 2022 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.Iam.Admin.V1.Snippets | ||
{ | ||
// [START iam_v1_generated_IAM_DisableServiceAccountKey_async] | ||
using Google.Cloud.Iam.Admin.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedIAMClientSnippets | ||
{ | ||
/// <summary>Snippet for DisableServiceAccountKeyAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public async Task DisableServiceAccountKeyRequestObjectAsync() | ||
{ | ||
// Create client | ||
IAMClient iAMClient = await IAMClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
DisableServiceAccountKeyRequest request = new DisableServiceAccountKeyRequest | ||
{ | ||
KeyName = KeyName.FromProjectServiceAccountKey("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"), | ||
}; | ||
// Make the request | ||
await iAMClient.DisableServiceAccountKeyAsync(request); | ||
} | ||
} | ||
// [END iam_v1_generated_IAM_DisableServiceAccountKey_async] | ||
} |
43 changes: 43 additions & 0 deletions
43
...am.Admin.V1.GeneratedSnippets/IAMClient.DisableServiceAccountKeyRequestObjectSnippet.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 2022 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.Iam.Admin.V1.Snippets | ||
{ | ||
// [START iam_v1_generated_IAM_DisableServiceAccountKey_sync] | ||
using Google.Cloud.Iam.Admin.V1; | ||
|
||
public sealed partial class GeneratedIAMClientSnippets | ||
{ | ||
/// <summary>Snippet for DisableServiceAccountKey</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public void DisableServiceAccountKeyRequestObject() | ||
{ | ||
// Create client | ||
IAMClient iAMClient = IAMClient.Create(); | ||
// Initialize request argument(s) | ||
DisableServiceAccountKeyRequest request = new DisableServiceAccountKeyRequest | ||
{ | ||
KeyName = KeyName.FromProjectServiceAccountKey("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"), | ||
}; | ||
// Make the request | ||
iAMClient.DisableServiceAccountKey(request); | ||
} | ||
} | ||
// [END iam_v1_generated_IAM_DisableServiceAccountKey_sync] | ||
} |
41 changes: 41 additions & 0 deletions
41
...min.V1.GeneratedSnippets/IAMClient.DisableServiceAccountKeyResourceNamesAsyncSnippet.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,41 @@ | ||
// Copyright 2022 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.Iam.Admin.V1.Snippets | ||
{ | ||
// [START iam_v1_generated_IAM_DisableServiceAccountKey_async_flattened_resourceNames] | ||
using Google.Cloud.Iam.Admin.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedIAMClientSnippets | ||
{ | ||
/// <summary>Snippet for DisableServiceAccountKeyAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public async Task DisableServiceAccountKeyResourceNamesAsync() | ||
{ | ||
// Create client | ||
IAMClient iAMClient = await IAMClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
KeyName name = KeyName.FromProjectServiceAccountKey("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"); | ||
// Make the request | ||
await iAMClient.DisableServiceAccountKeyAsync(name); | ||
} | ||
} | ||
// [END iam_v1_generated_IAM_DisableServiceAccountKey_async_flattened_resourceNames] | ||
} |
40 changes: 40 additions & 0 deletions
40
...am.Admin.V1.GeneratedSnippets/IAMClient.DisableServiceAccountKeyResourceNamesSnippet.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,40 @@ | ||
// Copyright 2022 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.Iam.Admin.V1.Snippets | ||
{ | ||
// [START iam_v1_generated_IAM_DisableServiceAccountKey_sync_flattened_resourceNames] | ||
using Google.Cloud.Iam.Admin.V1; | ||
|
||
public sealed partial class GeneratedIAMClientSnippets | ||
{ | ||
/// <summary>Snippet for DisableServiceAccountKey</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public void DisableServiceAccountKeyResourceNames() | ||
{ | ||
// Create client | ||
IAMClient iAMClient = IAMClient.Create(); | ||
// Initialize request argument(s) | ||
KeyName name = KeyName.FromProjectServiceAccountKey("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"); | ||
// Make the request | ||
iAMClient.DisableServiceAccountKey(name); | ||
} | ||
} | ||
// [END iam_v1_generated_IAM_DisableServiceAccountKey_sync_flattened_resourceNames] | ||
} |
40 changes: 40 additions & 0 deletions
40
...oogle.Cloud.Iam.Admin.V1.GeneratedSnippets/IAMClient.DisableServiceAccountKeySnippet.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,40 @@ | ||
// Copyright 2022 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.Iam.Admin.V1.Snippets | ||
{ | ||
// [START iam_v1_generated_IAM_DisableServiceAccountKey_sync_flattened] | ||
using Google.Cloud.Iam.Admin.V1; | ||
|
||
public sealed partial class GeneratedIAMClientSnippets | ||
{ | ||
/// <summary>Snippet for DisableServiceAccountKey</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public void DisableServiceAccountKey() | ||
{ | ||
// Create client | ||
IAMClient iAMClient = IAMClient.Create(); | ||
// Initialize request argument(s) | ||
string name = "projects/[PROJECT]/serviceAccounts/[SERVICE_ACCOUNT]/keys/[KEY]"; | ||
// Make the request | ||
iAMClient.DisableServiceAccountKey(name); | ||
} | ||
} | ||
// [END iam_v1_generated_IAM_DisableServiceAccountKey_sync_flattened] | ||
} |
41 changes: 41 additions & 0 deletions
41
...e.Cloud.Iam.Admin.V1.GeneratedSnippets/IAMClient.EnableServiceAccountKeyAsyncSnippet.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,41 @@ | ||
// Copyright 2022 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.Iam.Admin.V1.Snippets | ||
{ | ||
// [START iam_v1_generated_IAM_EnableServiceAccountKey_async_flattened] | ||
using Google.Cloud.Iam.Admin.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedIAMClientSnippets | ||
{ | ||
/// <summary>Snippet for EnableServiceAccountKeyAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public async Task EnableServiceAccountKeyAsync() | ||
{ | ||
// Create client | ||
IAMClient iAMClient = await IAMClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string name = "projects/[PROJECT]/serviceAccounts/[SERVICE_ACCOUNT]/keys/[KEY]"; | ||
// Make the request | ||
await iAMClient.EnableServiceAccountKeyAsync(name); | ||
} | ||
} | ||
// [END iam_v1_generated_IAM_EnableServiceAccountKey_async_flattened] | ||
} |
44 changes: 44 additions & 0 deletions
44
...dmin.V1.GeneratedSnippets/IAMClient.EnableServiceAccountKeyRequestObjectAsyncSnippet.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 2022 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.Iam.Admin.V1.Snippets | ||
{ | ||
// [START iam_v1_generated_IAM_EnableServiceAccountKey_async] | ||
using Google.Cloud.Iam.Admin.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedIAMClientSnippets | ||
{ | ||
/// <summary>Snippet for EnableServiceAccountKeyAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public async Task EnableServiceAccountKeyRequestObjectAsync() | ||
{ | ||
// Create client | ||
IAMClient iAMClient = await IAMClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
EnableServiceAccountKeyRequest request = new EnableServiceAccountKeyRequest | ||
{ | ||
KeyName = KeyName.FromProjectServiceAccountKey("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"), | ||
}; | ||
// Make the request | ||
await iAMClient.EnableServiceAccountKeyAsync(request); | ||
} | ||
} | ||
// [END iam_v1_generated_IAM_EnableServiceAccountKey_async] | ||
} |
43 changes: 43 additions & 0 deletions
43
...Iam.Admin.V1.GeneratedSnippets/IAMClient.EnableServiceAccountKeyRequestObjectSnippet.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 2022 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.Iam.Admin.V1.Snippets | ||
{ | ||
// [START iam_v1_generated_IAM_EnableServiceAccountKey_sync] | ||
using Google.Cloud.Iam.Admin.V1; | ||
|
||
public sealed partial class GeneratedIAMClientSnippets | ||
{ | ||
/// <summary>Snippet for EnableServiceAccountKey</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public void EnableServiceAccountKeyRequestObject() | ||
{ | ||
// Create client | ||
IAMClient iAMClient = IAMClient.Create(); | ||
// Initialize request argument(s) | ||
EnableServiceAccountKeyRequest request = new EnableServiceAccountKeyRequest | ||
{ | ||
KeyName = KeyName.FromProjectServiceAccountKey("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"), | ||
}; | ||
// Make the request | ||
iAMClient.EnableServiceAccountKey(request); | ||
} | ||
} | ||
// [END iam_v1_generated_IAM_EnableServiceAccountKey_sync] | ||
} |
Oops, something went wrong.