Skip to content

Commit

Permalink
feat: update protos to include InvalidateApprovalRequest and GetAcces…
Browse files Browse the repository at this point in the history
…sApprovalServiceAccount APIs

PiperOrigin-RevId: 449820922

Source-Link: googleapis/googleapis@9682584

Source-Link: googleapis/googleapis-gen@09360c9
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQWNjZXNzQXBwcm92YWwuVjEvLk93bEJvdC55YW1sIiwiaCI6IjA5MzYwYzk1Y2ExMmFmZjAwYmNkMmNmYTJmNzYxNGJiYjNlMjliZjMifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed May 20, 2022
1 parent 80b4859 commit 35064fa
Show file tree
Hide file tree
Showing 14 changed files with 3,275 additions and 591 deletions.
@@ -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]
}
@@ -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]
}
@@ -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]
}
@@ -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]
}
@@ -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]
}
@@ -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]
}

0 comments on commit 35064fa

Please sign in to comment.