Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update protos to include InvalidateApprovalRequest and GetAcces…
…sApprovalServiceAccount APIs PiperOrigin-RevId: 449820922 Source-Link: googleapis/googleapis@9682584 Source-Link: googleapis/googleapis-gen@09360c9 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQWNjZXNzQXBwcm92YWwuVjEvLk93bEJvdC55YW1sIiwiaCI6IjA5MzYwYzk1Y2ExMmFmZjAwYmNkMmNmYTJmNzYxNGJiYjNlMjliZjMifQ==
- Loading branch information
1 parent
80b4859
commit 35064fa
Showing
14 changed files
with
3,275 additions
and
591 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
...atedSnippets/AccessApprovalServiceClient.GetAccessApprovalServiceAccountAsyncSnippet.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.AccessApproval.V1.Snippets | ||
{ | ||
// [START accessapproval_v1_generated_AccessApprovalService_GetAccessApprovalServiceAccount_async_flattened] | ||
using Google.Cloud.AccessApproval.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedAccessApprovalServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for GetAccessApprovalServiceAccountAsync</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 GetAccessApprovalServiceAccountAsync() | ||
{ | ||
// Create client | ||
AccessApprovalServiceClient accessApprovalServiceClient = await AccessApprovalServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string name = ""; | ||
// Make the request | ||
AccessApprovalServiceAccount response = await accessApprovalServiceClient.GetAccessApprovalServiceAccountAsync(name); | ||
} | ||
} | ||
// [END accessapproval_v1_generated_AccessApprovalService_GetAccessApprovalServiceAccount_async_flattened] | ||
} |
41 changes: 41 additions & 0 deletions
41
...AccessApprovalServiceClient.GetAccessApprovalServiceAccountRequestObjectAsyncSnippet.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.AccessApproval.V1.Snippets | ||
{ | ||
// [START accessapproval_v1_generated_AccessApprovalService_GetAccessApprovalServiceAccount_async] | ||
using Google.Cloud.AccessApproval.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedAccessApprovalServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for GetAccessApprovalServiceAccountAsync</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 GetAccessApprovalServiceAccountRequestObjectAsync() | ||
{ | ||
// Create client | ||
AccessApprovalServiceClient accessApprovalServiceClient = await AccessApprovalServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
GetAccessApprovalServiceAccountMessage request = new GetAccessApprovalServiceAccountMessage { Name = "", }; | ||
// Make the request | ||
AccessApprovalServiceAccount response = await accessApprovalServiceClient.GetAccessApprovalServiceAccountAsync(request); | ||
} | ||
} | ||
// [END accessapproval_v1_generated_AccessApprovalService_GetAccessApprovalServiceAccount_async] | ||
} |
40 changes: 40 additions & 0 deletions
40
...pets/AccessApprovalServiceClient.GetAccessApprovalServiceAccountRequestObjectSnippet.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.AccessApproval.V1.Snippets | ||
{ | ||
// [START accessapproval_v1_generated_AccessApprovalService_GetAccessApprovalServiceAccount_sync] | ||
using Google.Cloud.AccessApproval.V1; | ||
|
||
public sealed partial class GeneratedAccessApprovalServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for GetAccessApprovalServiceAccount</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public void GetAccessApprovalServiceAccountRequestObject() | ||
{ | ||
// Create client | ||
AccessApprovalServiceClient accessApprovalServiceClient = AccessApprovalServiceClient.Create(); | ||
// Initialize request argument(s) | ||
GetAccessApprovalServiceAccountMessage request = new GetAccessApprovalServiceAccountMessage { Name = "", }; | ||
// Make the request | ||
AccessApprovalServiceAccount response = accessApprovalServiceClient.GetAccessApprovalServiceAccount(request); | ||
} | ||
} | ||
// [END accessapproval_v1_generated_AccessApprovalService_GetAccessApprovalServiceAccount_sync] | ||
} |
40 changes: 40 additions & 0 deletions
40
...GeneratedSnippets/AccessApprovalServiceClient.GetAccessApprovalServiceAccountSnippet.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.AccessApproval.V1.Snippets | ||
{ | ||
// [START accessapproval_v1_generated_AccessApprovalService_GetAccessApprovalServiceAccount_sync_flattened] | ||
using Google.Cloud.AccessApproval.V1; | ||
|
||
public sealed partial class GeneratedAccessApprovalServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for GetAccessApprovalServiceAccount</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public void GetAccessApprovalServiceAccount() | ||
{ | ||
// Create client | ||
AccessApprovalServiceClient accessApprovalServiceClient = AccessApprovalServiceClient.Create(); | ||
// Initialize request argument(s) | ||
string name = ""; | ||
// Make the request | ||
AccessApprovalServiceAccount response = accessApprovalServiceClient.GetAccessApprovalServiceAccount(name); | ||
} | ||
} | ||
// [END accessapproval_v1_generated_AccessApprovalService_GetAccessApprovalServiceAccount_sync_flattened] | ||
} |
44 changes: 44 additions & 0 deletions
44
...ppets/AccessApprovalServiceClient.InvalidateApprovalRequestRequestObjectAsyncSnippet.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.AccessApproval.V1.Snippets | ||
{ | ||
// [START accessapproval_v1_generated_AccessApprovalService_InvalidateApprovalRequest_async] | ||
using Google.Cloud.AccessApproval.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedAccessApprovalServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for InvalidateApprovalRequestAsync</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 InvalidateApprovalRequestRequestObjectAsync() | ||
{ | ||
// Create client | ||
AccessApprovalServiceClient accessApprovalServiceClient = await AccessApprovalServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
InvalidateApprovalRequestMessage request = new InvalidateApprovalRequestMessage | ||
{ | ||
ApprovalRequestName = ApprovalRequestName.FromProjectApprovalRequest("[PROJECT]", "[APPROVAL_REQUEST]"), | ||
}; | ||
// Make the request | ||
ApprovalRequest response = await accessApprovalServiceClient.InvalidateApprovalRequestAsync(request); | ||
} | ||
} | ||
// [END accessapproval_v1_generated_AccessApprovalService_InvalidateApprovalRequest_async] | ||
} |
43 changes: 43 additions & 0 deletions
43
...edSnippets/AccessApprovalServiceClient.InvalidateApprovalRequestRequestObjectSnippet.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.AccessApproval.V1.Snippets | ||
{ | ||
// [START accessapproval_v1_generated_AccessApprovalService_InvalidateApprovalRequest_sync] | ||
using Google.Cloud.AccessApproval.V1; | ||
|
||
public sealed partial class GeneratedAccessApprovalServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for InvalidateApprovalRequest</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public void InvalidateApprovalRequestRequestObject() | ||
{ | ||
// Create client | ||
AccessApprovalServiceClient accessApprovalServiceClient = AccessApprovalServiceClient.Create(); | ||
// Initialize request argument(s) | ||
InvalidateApprovalRequestMessage request = new InvalidateApprovalRequestMessage | ||
{ | ||
ApprovalRequestName = ApprovalRequestName.FromProjectApprovalRequest("[PROJECT]", "[APPROVAL_REQUEST]"), | ||
}; | ||
// Make the request | ||
ApprovalRequest response = accessApprovalServiceClient.InvalidateApprovalRequest(request); | ||
} | ||
} | ||
// [END accessapproval_v1_generated_AccessApprovalService_InvalidateApprovalRequest_sync] | ||
} |
Oops, something went wrong.