diff --git a/.github/renovate.json b/.github/renovate.json
index b0802843fd0a..aa94b4e720e1 100644
--- a/.github/renovate.json
+++ b/.github/renovate.json
@@ -305,6 +305,7 @@
"apis/Google.Cloud.Workflows.V1Beta/Google.Cloud.Workflows.V1Beta/**",
"apis/Google.Cloud.WorkloadManager.V1/Google.Cloud.WorkloadManager.V1/**",
"apis/Google.Cloud.Workstations.V1/Google.Cloud.Workstations.V1/**",
+ "apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/**",
"apis/Google.Geo.Type/Google.Geo.Type/**",
"apis/Google.Identity.AccessContextManager.Type/Google.Identity.AccessContextManager.Type/**",
"apis/Google.Identity.AccessContextManager.V1/Google.Identity.AccessContextManager.V1/**",
@@ -315,6 +316,7 @@
"apis/Google.Maps.FleetEngine.Delivery.V1/Google.Maps.FleetEngine.Delivery.V1/**",
"apis/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/**",
"apis/Google.Maps.Geocode.V4/Google.Maps.Geocode.V4/**",
+ "apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/**",
"apis/Google.Maps.MapsPlatformDatasets.V1/Google.Maps.MapsPlatformDatasets.V1/**",
"apis/Google.Maps.Places.V1/Google.Maps.Places.V1/**",
"apis/Google.Maps.RouteOptimization.V1/Google.Maps.RouteOptimization.V1/**",
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyAsyncSnippet.g.cs
new file mode 100644
index 000000000000..68e5757c8dd7
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyAsyncSnippet.g.cs
@@ -0,0 +1,63 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened]
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for CreateAccessPolicyAsync
+ ///
+ /// 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.
+ ///
+ public async Task CreateAccessPolicyAsync()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
+ AccessPolicy accessPolicy = new AccessPolicy();
+ string accessPolicyId = "";
+ // Make the request
+ Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyRequestObjectAsyncSnippet.g.cs
new file mode 100644
index 000000000000..502ab2d18c6f
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,67 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async]
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for CreateAccessPolicyAsync
+ ///
+ /// 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.
+ ///
+ public async Task CreateAccessPolicyRequestObjectAsync()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ CreateAccessPolicyRequest request = new CreateAccessPolicyRequest
+ {
+ ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
+ AccessPolicyId = "",
+ AccessPolicy = new AccessPolicy(),
+ ValidateOnly = false,
+ };
+ // Make the request
+ Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyRequestObjectSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyRequestObjectSnippet.g.cs
new file mode 100644
index 000000000000..07155e3ac0bb
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyRequestObjectSnippet.g.cs
@@ -0,0 +1,66 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync]
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for CreateAccessPolicy
+ ///
+ /// 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.
+ ///
+ public void CreateAccessPolicyRequestObject()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ CreateAccessPolicyRequest request = new CreateAccessPolicyRequest
+ {
+ ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
+ AccessPolicyId = "",
+ AccessPolicy = new AccessPolicy(),
+ ValidateOnly = false,
+ };
+ // Make the request
+ Operation response = accessPoliciesClient.CreateAccessPolicy(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames1AsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames1AsyncSnippet.g.cs
new file mode 100644
index 000000000000..8513a1d57001
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames1AsyncSnippet.g.cs
@@ -0,0 +1,63 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames1]
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for CreateAccessPolicyAsync
+ ///
+ /// 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.
+ ///
+ public async Task CreateAccessPolicyResourceNames1Async()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
+ AccessPolicy accessPolicy = new AccessPolicy();
+ string accessPolicyId = "";
+ // Make the request
+ Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames1]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames1Snippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames1Snippet.g.cs
new file mode 100644
index 000000000000..9cf2b0d95733
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames1Snippet.g.cs
@@ -0,0 +1,62 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames1]
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for CreateAccessPolicy
+ ///
+ /// 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.
+ ///
+ public void CreateAccessPolicyResourceNames1()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
+ AccessPolicy accessPolicy = new AccessPolicy();
+ string accessPolicyId = "";
+ // Make the request
+ Operation response = accessPoliciesClient.CreateAccessPolicy(parent, accessPolicy, accessPolicyId);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames1]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames2AsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames2AsyncSnippet.g.cs
new file mode 100644
index 000000000000..f4fcee62f4cd
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames2AsyncSnippet.g.cs
@@ -0,0 +1,63 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames2]
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for CreateAccessPolicyAsync
+ ///
+ /// 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.
+ ///
+ public async Task CreateAccessPolicyResourceNames2Async()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
+ AccessPolicy accessPolicy = new AccessPolicy();
+ string accessPolicyId = "";
+ // Make the request
+ Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames2]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames2Snippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames2Snippet.g.cs
new file mode 100644
index 000000000000..27cabe02969e
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames2Snippet.g.cs
@@ -0,0 +1,62 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames2]
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for CreateAccessPolicy
+ ///
+ /// 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.
+ ///
+ public void CreateAccessPolicyResourceNames2()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
+ AccessPolicy accessPolicy = new AccessPolicy();
+ string accessPolicyId = "";
+ // Make the request
+ Operation response = accessPoliciesClient.CreateAccessPolicy(parent, accessPolicy, accessPolicyId);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames2]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames3AsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames3AsyncSnippet.g.cs
new file mode 100644
index 000000000000..45e6d9834375
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames3AsyncSnippet.g.cs
@@ -0,0 +1,64 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames3]
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for CreateAccessPolicyAsync
+ ///
+ /// 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.
+ ///
+ public async Task CreateAccessPolicyResourceNames3Async()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ AccessPolicy accessPolicy = new AccessPolicy();
+ string accessPolicyId = "";
+ // Make the request
+ Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames3]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames3Snippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames3Snippet.g.cs
new file mode 100644
index 000000000000..9e6df3cafe7d
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames3Snippet.g.cs
@@ -0,0 +1,63 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames3]
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for CreateAccessPolicy
+ ///
+ /// 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.
+ ///
+ public void CreateAccessPolicyResourceNames3()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ AccessPolicy accessPolicy = new AccessPolicy();
+ string accessPolicyId = "";
+ // Make the request
+ Operation response = accessPoliciesClient.CreateAccessPolicy(parent, accessPolicy, accessPolicyId);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames3]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicySnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicySnippet.g.cs
new file mode 100644
index 000000000000..b83c53dc3e71
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicySnippet.g.cs
@@ -0,0 +1,62 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened]
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for CreateAccessPolicy
+ ///
+ /// 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.
+ ///
+ public void CreateAccessPolicy()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
+ AccessPolicy accessPolicy = new AccessPolicy();
+ string accessPolicyId = "";
+ // Make the request
+ Operation response = accessPoliciesClient.CreateAccessPolicy(parent, accessPolicy, accessPolicyId);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyAsyncSnippet.g.cs
new file mode 100644
index 000000000000..258873a44edc
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyAsyncSnippet.g.cs
@@ -0,0 +1,62 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async_flattened]
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for DeleteAccessPolicyAsync
+ ///
+ /// 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.
+ ///
+ public async Task DeleteAccessPolicyAsync()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]";
+ // Make the request
+ Operation response = await accessPoliciesClient.DeleteAccessPolicyAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ Empty result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceDeleteAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async_flattened]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyRequestObjectAsyncSnippet.g.cs
new file mode 100644
index 000000000000..d76e7e9555af
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,68 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async]
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for DeleteAccessPolicyAsync
+ ///
+ /// 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.
+ ///
+ public async Task DeleteAccessPolicyRequestObjectAsync()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ DeleteAccessPolicyRequest request = new DeleteAccessPolicyRequest
+ {
+ AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"),
+ Etag = "",
+ ValidateOnly = false,
+ Force = false,
+ };
+ // Make the request
+ Operation response = await accessPoliciesClient.DeleteAccessPolicyAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ Empty result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceDeleteAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyRequestObjectSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyRequestObjectSnippet.g.cs
new file mode 100644
index 000000000000..04710a189de9
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyRequestObjectSnippet.g.cs
@@ -0,0 +1,67 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync]
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for DeleteAccessPolicy
+ ///
+ /// 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.
+ ///
+ public void DeleteAccessPolicyRequestObject()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ DeleteAccessPolicyRequest request = new DeleteAccessPolicyRequest
+ {
+ AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"),
+ Etag = "",
+ ValidateOnly = false,
+ Force = false,
+ };
+ // Make the request
+ Operation response = accessPoliciesClient.DeleteAccessPolicy(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ Empty result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceDeleteAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyResourceNamesAsyncSnippet.g.cs
new file mode 100644
index 000000000000..0f4104fe7be4
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,62 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async_flattened_resourceNames]
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for DeleteAccessPolicyAsync
+ ///
+ /// 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.
+ ///
+ public async Task DeleteAccessPolicyResourceNamesAsync()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]");
+ // Make the request
+ Operation response = await accessPoliciesClient.DeleteAccessPolicyAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ Empty result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceDeleteAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyResourceNamesSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyResourceNamesSnippet.g.cs
new file mode 100644
index 000000000000..1ec8fd993003
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyResourceNamesSnippet.g.cs
@@ -0,0 +1,61 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync_flattened_resourceNames]
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for DeleteAccessPolicy
+ ///
+ /// 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.
+ ///
+ public void DeleteAccessPolicyResourceNames()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]");
+ // Make the request
+ Operation response = accessPoliciesClient.DeleteAccessPolicy(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ Empty result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceDeleteAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicySnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicySnippet.g.cs
new file mode 100644
index 000000000000..76fe957e09f0
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicySnippet.g.cs
@@ -0,0 +1,61 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync_flattened]
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for DeleteAccessPolicy
+ ///
+ /// 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.
+ ///
+ public void DeleteAccessPolicy()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]";
+ // Make the request
+ Operation response = accessPoliciesClient.DeleteAccessPolicy(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ Empty result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceDeleteAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync_flattened]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyAsyncSnippet.g.cs
new file mode 100644
index 000000000000..742ca21a0ad5
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyAsyncSnippet.g.cs
@@ -0,0 +1,44 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async_flattened]
+ using Google.Cloud.Iam.V3Beta;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for GetAccessPolicyAsync
+ ///
+ /// 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.
+ ///
+ public async Task GetAccessPolicyAsync()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]";
+ // Make the request
+ AccessPolicy response = await accessPoliciesClient.GetAccessPolicyAsync(name);
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async_flattened]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyRequestObjectAsyncSnippet.g.cs
new file mode 100644
index 000000000000..8e0c4850a5e1
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,47 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async]
+ using Google.Cloud.Iam.V3Beta;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for GetAccessPolicyAsync
+ ///
+ /// 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.
+ ///
+ public async Task GetAccessPolicyRequestObjectAsync()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ GetAccessPolicyRequest request = new GetAccessPolicyRequest
+ {
+ AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"),
+ };
+ // Make the request
+ AccessPolicy response = await accessPoliciesClient.GetAccessPolicyAsync(request);
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyRequestObjectSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyRequestObjectSnippet.g.cs
new file mode 100644
index 000000000000..6a545726e612
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyRequestObjectSnippet.g.cs
@@ -0,0 +1,46 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync]
+ using Google.Cloud.Iam.V3Beta;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for GetAccessPolicy
+ ///
+ /// 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.
+ ///
+ public void GetAccessPolicyRequestObject()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ GetAccessPolicyRequest request = new GetAccessPolicyRequest
+ {
+ AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"),
+ };
+ // Make the request
+ AccessPolicy response = accessPoliciesClient.GetAccessPolicy(request);
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyResourceNamesAsyncSnippet.g.cs
new file mode 100644
index 000000000000..24cdcee3b256
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,44 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async_flattened_resourceNames]
+ using Google.Cloud.Iam.V3Beta;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for GetAccessPolicyAsync
+ ///
+ /// 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.
+ ///
+ public async Task GetAccessPolicyResourceNamesAsync()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]");
+ // Make the request
+ AccessPolicy response = await accessPoliciesClient.GetAccessPolicyAsync(name);
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyResourceNamesSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyResourceNamesSnippet.g.cs
new file mode 100644
index 000000000000..ad834993b37f
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyResourceNamesSnippet.g.cs
@@ -0,0 +1,43 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync_flattened_resourceNames]
+ using Google.Cloud.Iam.V3Beta;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for GetAccessPolicy
+ ///
+ /// 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.
+ ///
+ public void GetAccessPolicyResourceNames()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]");
+ // Make the request
+ AccessPolicy response = accessPoliciesClient.GetAccessPolicy(name);
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicySnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicySnippet.g.cs
new file mode 100644
index 000000000000..a2e0e7ba0fba
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicySnippet.g.cs
@@ -0,0 +1,43 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync_flattened]
+ using Google.Cloud.Iam.V3Beta;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for GetAccessPolicy
+ ///
+ /// 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.
+ ///
+ public void GetAccessPolicy()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]";
+ // Make the request
+ AccessPolicy response = accessPoliciesClient.GetAccessPolicy(name);
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync_flattened]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesAsyncSnippet.g.cs
new file mode 100644
index 000000000000..c2100182d6d5
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesAsyncSnippet.g.cs
@@ -0,0 +1,78 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened]
+ using Google.Api.Gax;
+ using Google.Cloud.Iam.V3Beta;
+ using System;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for ListAccessPoliciesAsync
+ ///
+ /// 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.
+ ///
+ public async Task ListAccessPoliciesAsync()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
+ // Make the request
+ PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (AccessPolicy item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesRequestObjectAsyncSnippet.g.cs
new file mode 100644
index 000000000000..6db7657cb016
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,81 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async]
+ using Google.Api.Gax;
+ using Google.Cloud.Iam.V3Beta;
+ using System;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for ListAccessPoliciesAsync
+ ///
+ /// 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.
+ ///
+ public async Task ListAccessPoliciesRequestObjectAsync()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ ListAccessPoliciesRequest request = new ListAccessPoliciesRequest
+ {
+ ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
+ };
+ // Make the request
+ PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (AccessPolicy item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesRequestObjectSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesRequestObjectSnippet.g.cs
new file mode 100644
index 000000000000..92c7b1166450
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesRequestObjectSnippet.g.cs
@@ -0,0 +1,80 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync]
+ using Google.Api.Gax;
+ using Google.Cloud.Iam.V3Beta;
+ using System;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for ListAccessPolicies
+ ///
+ /// 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.
+ ///
+ public void ListAccessPoliciesRequestObject()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ ListAccessPoliciesRequest request = new ListAccessPoliciesRequest
+ {
+ ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
+ };
+ // Make the request
+ PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames1AsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames1AsyncSnippet.g.cs
new file mode 100644
index 000000000000..d2c4f42c6489
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames1AsyncSnippet.g.cs
@@ -0,0 +1,78 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames1]
+ using Google.Api.Gax;
+ using Google.Cloud.Iam.V3Beta;
+ using System;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for ListAccessPoliciesAsync
+ ///
+ /// 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.
+ ///
+ public async Task ListAccessPoliciesResourceNames1Async()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
+ // Make the request
+ PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (AccessPolicy item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames1]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames1Snippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames1Snippet.g.cs
new file mode 100644
index 000000000000..1c0b1bd7dbfd
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames1Snippet.g.cs
@@ -0,0 +1,77 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames1]
+ using Google.Api.Gax;
+ using Google.Cloud.Iam.V3Beta;
+ using System;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for ListAccessPolicies
+ ///
+ /// 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.
+ ///
+ public void ListAccessPoliciesResourceNames1()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
+ // Make the request
+ PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames1]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames2AsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames2AsyncSnippet.g.cs
new file mode 100644
index 000000000000..db25a0158bda
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames2AsyncSnippet.g.cs
@@ -0,0 +1,78 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames2]
+ using Google.Api.Gax;
+ using Google.Cloud.Iam.V3Beta;
+ using System;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for ListAccessPoliciesAsync
+ ///
+ /// 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.
+ ///
+ public async Task ListAccessPoliciesResourceNames2Async()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
+ // Make the request
+ PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (AccessPolicy item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames2]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames2Snippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames2Snippet.g.cs
new file mode 100644
index 000000000000..b72d083f83f7
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames2Snippet.g.cs
@@ -0,0 +1,77 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames2]
+ using Google.Api.Gax;
+ using Google.Cloud.Iam.V3Beta;
+ using System;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for ListAccessPolicies
+ ///
+ /// 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.
+ ///
+ public void ListAccessPoliciesResourceNames2()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
+ // Make the request
+ PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames2]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames3AsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames3AsyncSnippet.g.cs
new file mode 100644
index 000000000000..a2aa20c1b9ab
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames3AsyncSnippet.g.cs
@@ -0,0 +1,79 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames3]
+ using Google.Api.Gax;
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.Iam.V3Beta;
+ using System;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for ListAccessPoliciesAsync
+ ///
+ /// 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.
+ ///
+ public async Task ListAccessPoliciesResourceNames3Async()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ // Make the request
+ PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (AccessPolicy item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames3]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames3Snippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames3Snippet.g.cs
new file mode 100644
index 000000000000..8f2bcc85bc2e
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames3Snippet.g.cs
@@ -0,0 +1,78 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames3]
+ using Google.Api.Gax;
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.Iam.V3Beta;
+ using System;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for ListAccessPolicies
+ ///
+ /// 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.
+ ///
+ public void ListAccessPoliciesResourceNames3()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ // Make the request
+ PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames3]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesSnippet.g.cs
new file mode 100644
index 000000000000..a949c4d47af7
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesSnippet.g.cs
@@ -0,0 +1,77 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened]
+ using Google.Api.Gax;
+ using Google.Cloud.Iam.V3Beta;
+ using System;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for ListAccessPolicies
+ ///
+ /// 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.
+ ///
+ public void ListAccessPolicies()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
+ // Make the request
+ PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsAsyncSnippet.g.cs
new file mode 100644
index 000000000000..94ae8a7d88c8
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsAsyncSnippet.g.cs
@@ -0,0 +1,78 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async_flattened]
+ using Google.Api.Gax;
+ using Google.Cloud.Iam.V3Beta;
+ using System;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for SearchAccessPolicyBindingsAsync
+ ///
+ /// 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.
+ ///
+ public async Task SearchAccessPolicyBindingsAsync()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]";
+ // Make the request
+ PagedAsyncEnumerable response = accessPoliciesClient.SearchAccessPolicyBindingsAsync(name);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (PolicyBinding item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (SearchAccessPolicyBindingsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (PolicyBinding 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 (PolicyBinding 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 iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async_flattened]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectAsyncSnippet.g.cs
new file mode 100644
index 000000000000..8d4349da1ee7
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,81 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async]
+ using Google.Api.Gax;
+ using Google.Cloud.Iam.V3Beta;
+ using System;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for SearchAccessPolicyBindingsAsync
+ ///
+ /// 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.
+ ///
+ public async Task SearchAccessPolicyBindingsRequestObjectAsync()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ SearchAccessPolicyBindingsRequest request = new SearchAccessPolicyBindingsRequest
+ {
+ AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"),
+ };
+ // Make the request
+ PagedAsyncEnumerable response = accessPoliciesClient.SearchAccessPolicyBindingsAsync(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (PolicyBinding item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (SearchAccessPolicyBindingsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (PolicyBinding 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 (PolicyBinding 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 iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectSnippet.g.cs
new file mode 100644
index 000000000000..9f82779eb41d
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectSnippet.g.cs
@@ -0,0 +1,80 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync]
+ using Google.Api.Gax;
+ using Google.Cloud.Iam.V3Beta;
+ using System;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for SearchAccessPolicyBindings
+ ///
+ /// 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.
+ ///
+ public void SearchAccessPolicyBindingsRequestObject()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ SearchAccessPolicyBindingsRequest request = new SearchAccessPolicyBindingsRequest
+ {
+ AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"),
+ };
+ // Make the request
+ PagedEnumerable response = accessPoliciesClient.SearchAccessPolicyBindings(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (PolicyBinding 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 (SearchAccessPolicyBindingsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (PolicyBinding 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 (PolicyBinding 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 iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesAsyncSnippet.g.cs
new file mode 100644
index 000000000000..a860c9ac3548
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,78 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async_flattened_resourceNames]
+ using Google.Api.Gax;
+ using Google.Cloud.Iam.V3Beta;
+ using System;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for SearchAccessPolicyBindingsAsync
+ ///
+ /// 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.
+ ///
+ public async Task SearchAccessPolicyBindingsResourceNamesAsync()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]");
+ // Make the request
+ PagedAsyncEnumerable response = accessPoliciesClient.SearchAccessPolicyBindingsAsync(name);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (PolicyBinding item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (SearchAccessPolicyBindingsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (PolicyBinding 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 (PolicyBinding 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 iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesSnippet.g.cs
new file mode 100644
index 000000000000..ada8429c0f84
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesSnippet.g.cs
@@ -0,0 +1,77 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync_flattened_resourceNames]
+ using Google.Api.Gax;
+ using Google.Cloud.Iam.V3Beta;
+ using System;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for SearchAccessPolicyBindings
+ ///
+ /// 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.
+ ///
+ public void SearchAccessPolicyBindingsResourceNames()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]");
+ // Make the request
+ PagedEnumerable response = accessPoliciesClient.SearchAccessPolicyBindings(name);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (PolicyBinding 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 (SearchAccessPolicyBindingsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (PolicyBinding 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 (PolicyBinding 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 iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsSnippet.g.cs
new file mode 100644
index 000000000000..e940c070f39d
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsSnippet.g.cs
@@ -0,0 +1,77 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync_flattened]
+ using Google.Api.Gax;
+ using Google.Cloud.Iam.V3Beta;
+ using System;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for SearchAccessPolicyBindings
+ ///
+ /// 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.
+ ///
+ public void SearchAccessPolicyBindings()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]";
+ // Make the request
+ PagedEnumerable response = accessPoliciesClient.SearchAccessPolicyBindings(name);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (PolicyBinding 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 (SearchAccessPolicyBindingsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (PolicyBinding 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 (PolicyBinding 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 iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync_flattened]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.UpdateAccessPolicyRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.UpdateAccessPolicyRequestObjectAsyncSnippet.g.cs
new file mode 100644
index 000000000000..b874b3018723
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.UpdateAccessPolicyRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,65 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_UpdateAccessPolicy_async]
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for UpdateAccessPolicyAsync
+ ///
+ /// 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.
+ ///
+ public async Task UpdateAccessPolicyRequestObjectAsync()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ UpdateAccessPolicyRequest request = new UpdateAccessPolicyRequest
+ {
+ AccessPolicy = new AccessPolicy(),
+ ValidateOnly = false,
+ };
+ // Make the request
+ Operation response = await accessPoliciesClient.UpdateAccessPolicyAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceUpdateAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_UpdateAccessPolicy_async]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.UpdateAccessPolicyRequestObjectSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.UpdateAccessPolicyRequestObjectSnippet.g.cs
new file mode 100644
index 000000000000..fa46c07c4524
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.UpdateAccessPolicyRequestObjectSnippet.g.cs
@@ -0,0 +1,64 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ // [START iam_v3beta_generated_AccessPolicies_UpdateAccessPolicy_sync]
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for UpdateAccessPolicy
+ ///
+ /// 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.
+ ///
+ public void UpdateAccessPolicyRequestObject()
+ {
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ UpdateAccessPolicyRequest request = new UpdateAccessPolicyRequest
+ {
+ AccessPolicy = new AccessPolicy(),
+ ValidateOnly = false,
+ };
+ // Make the request
+ Operation response = accessPoliciesClient.UpdateAccessPolicy(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceUpdateAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END iam_v3beta_generated_AccessPolicies_UpdateAccessPolicy_sync]
+}
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/PolicyBindingsClient.SearchTargetPolicyBindingsRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/PolicyBindingsClient.SearchTargetPolicyBindingsRequestObjectAsyncSnippet.g.cs
index 2d671f47073e..61a4f6f0071c 100644
--- a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/PolicyBindingsClient.SearchTargetPolicyBindingsRequestObjectAsyncSnippet.g.cs
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/PolicyBindingsClient.SearchTargetPolicyBindingsRequestObjectAsyncSnippet.g.cs
@@ -41,6 +41,7 @@ public async Task SearchTargetPolicyBindingsRequestObjectAsync()
{
Target = "",
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
+ Filter = "",
};
// Make the request
PagedAsyncEnumerable response = policyBindingsClient.SearchTargetPolicyBindingsAsync(request);
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/PolicyBindingsClient.SearchTargetPolicyBindingsRequestObjectSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/PolicyBindingsClient.SearchTargetPolicyBindingsRequestObjectSnippet.g.cs
index a3defaeef00e..0b1937f0ab4f 100644
--- a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/PolicyBindingsClient.SearchTargetPolicyBindingsRequestObjectSnippet.g.cs
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/PolicyBindingsClient.SearchTargetPolicyBindingsRequestObjectSnippet.g.cs
@@ -40,6 +40,7 @@ public void SearchTargetPolicyBindingsRequestObject()
{
Target = "",
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
+ Filter = "",
};
// Make the request
PagedEnumerable response = policyBindingsClient.SearchTargetPolicyBindings(request);
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/snippet_metadata_google.iam.v3beta.json b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/snippet_metadata_google.iam.v3beta.json
index 8a83ba44d6c8..994222788cea 100644
--- a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/snippet_metadata_google.iam.v3beta.json
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/snippet_metadata_google.iam.v3beta.json
@@ -10,6 +10,2078 @@
]
},
"snippets": [
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync",
+ "title": "CreateAccessPolicyRequestObject",
+ "description": "Snippet for CreateAccessPolicy",
+ "file": "AccessPoliciesClient.CreateAccessPolicyRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateAccessPolicy",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicy",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.CreateAccessPolicyRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "CreateAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 64,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 62,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async",
+ "title": "CreateAccessPolicyRequestObjectAsync",
+ "description": "Snippet for CreateAccessPolicyAsync",
+ "file": "AccessPoliciesClient.CreateAccessPolicyRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateAccessPolicyAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicyAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.CreateAccessPolicyRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "CreateAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 65,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 63,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened",
+ "title": "CreateAccessPolicy",
+ "description": "Snippet for CreateAccessPolicy",
+ "file": "AccessPoliciesClient.CreateAccessPolicySnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateAccessPolicy",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicy",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.Iam.V3Beta.AccessPolicy",
+ "name": "accessPolicy"
+ },
+ {
+ "type": "System.String",
+ "name": "accessPolicyId"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "CreateAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 60,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 58,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened",
+ "title": "CreateAccessPolicyAsync",
+ "description": "Snippet for CreateAccessPolicyAsync",
+ "file": "AccessPoliciesClient.CreateAccessPolicyAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateAccessPolicyAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicyAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.Iam.V3Beta.AccessPolicy",
+ "name": "accessPolicy"
+ },
+ {
+ "type": "System.String",
+ "name": "accessPolicyId"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "CreateAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 61,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 59,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames1",
+ "title": "CreateAccessPolicyResourceNames1",
+ "description": "Snippet for CreateAccessPolicy",
+ "file": "AccessPoliciesClient.CreateAccessPolicyResourceNames1Snippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateAccessPolicy",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicy",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.OrganizationLocationName",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.Iam.V3Beta.AccessPolicy",
+ "name": "accessPolicy"
+ },
+ {
+ "type": "System.String",
+ "name": "accessPolicyId"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "CreateAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 60,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 58,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames1",
+ "title": "CreateAccessPolicyResourceNames1Async",
+ "description": "Snippet for CreateAccessPolicyAsync",
+ "file": "AccessPoliciesClient.CreateAccessPolicyResourceNames1AsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateAccessPolicyAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicyAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.OrganizationLocationName",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.Iam.V3Beta.AccessPolicy",
+ "name": "accessPolicy"
+ },
+ {
+ "type": "System.String",
+ "name": "accessPolicyId"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "CreateAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 61,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 59,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames2",
+ "title": "CreateAccessPolicyResourceNames2",
+ "description": "Snippet for CreateAccessPolicy",
+ "file": "AccessPoliciesClient.CreateAccessPolicyResourceNames2Snippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateAccessPolicy",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicy",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.FolderLocationName",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.Iam.V3Beta.AccessPolicy",
+ "name": "accessPolicy"
+ },
+ {
+ "type": "System.String",
+ "name": "accessPolicyId"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "CreateAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 60,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 58,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames2",
+ "title": "CreateAccessPolicyResourceNames2Async",
+ "description": "Snippet for CreateAccessPolicyAsync",
+ "file": "AccessPoliciesClient.CreateAccessPolicyResourceNames2AsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateAccessPolicyAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicyAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.FolderLocationName",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.Iam.V3Beta.AccessPolicy",
+ "name": "accessPolicy"
+ },
+ {
+ "type": "System.String",
+ "name": "accessPolicyId"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "CreateAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 61,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 59,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames3",
+ "title": "CreateAccessPolicyResourceNames3",
+ "description": "Snippet for CreateAccessPolicy",
+ "file": "AccessPoliciesClient.CreateAccessPolicyResourceNames3Snippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateAccessPolicy",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicy",
+ "parameters": [
+ {
+ "type": "Google.Api.Gax.ResourceNames.LocationName",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.Iam.V3Beta.AccessPolicy",
+ "name": "accessPolicy"
+ },
+ {
+ "type": "System.String",
+ "name": "accessPolicyId"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "CreateAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 61,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 59,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames3",
+ "title": "CreateAccessPolicyResourceNames3Async",
+ "description": "Snippet for CreateAccessPolicyAsync",
+ "file": "AccessPoliciesClient.CreateAccessPolicyResourceNames3AsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateAccessPolicyAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicyAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Api.Gax.ResourceNames.LocationName",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.Iam.V3Beta.AccessPolicy",
+ "name": "accessPolicy"
+ },
+ {
+ "type": "System.String",
+ "name": "accessPolicyId"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "CreateAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 62,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 60,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync",
+ "title": "GetAccessPolicyRequestObject",
+ "description": "Snippet for GetAccessPolicy",
+ "file": "AccessPoliciesClient.GetAccessPolicyRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetAccessPolicy",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.GetAccessPolicy",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.GetAccessPolicyRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Iam.V3Beta.AccessPolicy",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "GetAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.GetAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 44,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 42,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async",
+ "title": "GetAccessPolicyRequestObjectAsync",
+ "description": "Snippet for GetAccessPolicyAsync",
+ "file": "AccessPoliciesClient.GetAccessPolicyRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetAccessPolicyAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.GetAccessPolicyAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.GetAccessPolicyRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "GetAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.GetAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 45,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 43,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync_flattened",
+ "title": "GetAccessPolicy",
+ "description": "Snippet for GetAccessPolicy",
+ "file": "AccessPoliciesClient.GetAccessPolicySnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetAccessPolicy",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.GetAccessPolicy",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Iam.V3Beta.AccessPolicy",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "GetAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.GetAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 41,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 39,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async_flattened",
+ "title": "GetAccessPolicyAsync",
+ "description": "Snippet for GetAccessPolicyAsync",
+ "file": "AccessPoliciesClient.GetAccessPolicyAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetAccessPolicyAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.GetAccessPolicyAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "GetAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.GetAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 42,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 40,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync_flattened_resourceNames",
+ "title": "GetAccessPolicyResourceNames",
+ "description": "Snippet for GetAccessPolicy",
+ "file": "AccessPoliciesClient.GetAccessPolicyResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetAccessPolicy",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.GetAccessPolicy",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.AccessPolicyName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Iam.V3Beta.AccessPolicy",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "GetAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.GetAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 41,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 39,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async_flattened_resourceNames",
+ "title": "GetAccessPolicyResourceNamesAsync",
+ "description": "Snippet for GetAccessPolicyAsync",
+ "file": "AccessPoliciesClient.GetAccessPolicyResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetAccessPolicyAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.GetAccessPolicyAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.AccessPolicyName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "GetAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.GetAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 42,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 40,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_UpdateAccessPolicy_sync",
+ "title": "UpdateAccessPolicyRequestObject",
+ "description": "Snippet for UpdateAccessPolicy",
+ "file": "AccessPoliciesClient.UpdateAccessPolicyRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "UpdateAccessPolicy",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.UpdateAccessPolicy",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.UpdateAccessPolicyRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "UpdateAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.UpdateAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 62,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 60,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_UpdateAccessPolicy_async",
+ "title": "UpdateAccessPolicyRequestObjectAsync",
+ "description": "Snippet for UpdateAccessPolicyAsync",
+ "file": "AccessPoliciesClient.UpdateAccessPolicyRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "UpdateAccessPolicyAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.UpdateAccessPolicyAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.UpdateAccessPolicyRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "UpdateAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.UpdateAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 63,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 61,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync",
+ "title": "DeleteAccessPolicyRequestObject",
+ "description": "Snippet for DeleteAccessPolicy",
+ "file": "AccessPoliciesClient.DeleteAccessPolicyRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteAccessPolicy",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.DeleteAccessPolicy",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.DeleteAccessPolicyRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "DeleteAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.DeleteAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 65,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 63,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async",
+ "title": "DeleteAccessPolicyRequestObjectAsync",
+ "description": "Snippet for DeleteAccessPolicyAsync",
+ "file": "AccessPoliciesClient.DeleteAccessPolicyRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteAccessPolicyAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.DeleteAccessPolicyAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.DeleteAccessPolicyRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "DeleteAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.DeleteAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 66,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 64,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync_flattened",
+ "title": "DeleteAccessPolicy",
+ "description": "Snippet for DeleteAccessPolicy",
+ "file": "AccessPoliciesClient.DeleteAccessPolicySnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteAccessPolicy",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.DeleteAccessPolicy",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "DeleteAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.DeleteAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 59,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 57,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async_flattened",
+ "title": "DeleteAccessPolicyAsync",
+ "description": "Snippet for DeleteAccessPolicyAsync",
+ "file": "AccessPoliciesClient.DeleteAccessPolicyAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteAccessPolicyAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.DeleteAccessPolicyAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "DeleteAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.DeleteAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 60,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 58,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync_flattened_resourceNames",
+ "title": "DeleteAccessPolicyResourceNames",
+ "description": "Snippet for DeleteAccessPolicy",
+ "file": "AccessPoliciesClient.DeleteAccessPolicyResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteAccessPolicy",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.DeleteAccessPolicy",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.AccessPolicyName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "DeleteAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.DeleteAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 59,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 57,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async_flattened_resourceNames",
+ "title": "DeleteAccessPolicyResourceNamesAsync",
+ "description": "Snippet for DeleteAccessPolicyAsync",
+ "file": "AccessPoliciesClient.DeleteAccessPolicyResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteAccessPolicyAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.DeleteAccessPolicyAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.AccessPolicyName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "DeleteAccessPolicy",
+ "fullName": "google.iam.v3beta.AccessPolicies.DeleteAccessPolicy",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 60,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 58,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync",
+ "title": "ListAccessPoliciesRequestObject",
+ "description": "Snippet for ListAccessPolicies",
+ "file": "AccessPoliciesClient.ListAccessPoliciesRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListAccessPolicies",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPolicies",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.ListAccessPoliciesRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedEnumerable",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "ListAccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 78,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 76,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async",
+ "title": "ListAccessPoliciesRequestObjectAsync",
+ "description": "Snippet for ListAccessPoliciesAsync",
+ "file": "AccessPoliciesClient.ListAccessPoliciesRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListAccessPoliciesAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPoliciesAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.ListAccessPoliciesRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedAsyncEnumerable",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "ListAccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 79,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 77,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened",
+ "title": "ListAccessPolicies",
+ "description": "Snippet for ListAccessPolicies",
+ "file": "AccessPoliciesClient.ListAccessPoliciesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListAccessPolicies",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPolicies",
+ "parameters": [
+ {
+ "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.Api.Gax.PagedEnumerable",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "ListAccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 75,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 73,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened",
+ "title": "ListAccessPoliciesAsync",
+ "description": "Snippet for ListAccessPoliciesAsync",
+ "file": "AccessPoliciesClient.ListAccessPoliciesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListAccessPoliciesAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPoliciesAsync",
+ "async": true,
+ "parameters": [
+ {
+ "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.Api.Gax.PagedAsyncEnumerable",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "ListAccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 76,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 74,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames1",
+ "title": "ListAccessPoliciesResourceNames1",
+ "description": "Snippet for ListAccessPolicies",
+ "file": "AccessPoliciesClient.ListAccessPoliciesResourceNames1Snippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListAccessPolicies",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPolicies",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.OrganizationLocationName",
+ "name": "parent"
+ },
+ {
+ "type": "System.String",
+ "name": "pageToken"
+ },
+ {
+ "type": "System.Nullable[System.Int32]",
+ "name": "pageSize"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedEnumerable",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "ListAccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 75,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 73,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames1",
+ "title": "ListAccessPoliciesResourceNames1Async",
+ "description": "Snippet for ListAccessPoliciesAsync",
+ "file": "AccessPoliciesClient.ListAccessPoliciesResourceNames1AsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListAccessPoliciesAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPoliciesAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.OrganizationLocationName",
+ "name": "parent"
+ },
+ {
+ "type": "System.String",
+ "name": "pageToken"
+ },
+ {
+ "type": "System.Nullable[System.Int32]",
+ "name": "pageSize"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedAsyncEnumerable",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "ListAccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 76,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 74,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames2",
+ "title": "ListAccessPoliciesResourceNames2",
+ "description": "Snippet for ListAccessPolicies",
+ "file": "AccessPoliciesClient.ListAccessPoliciesResourceNames2Snippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListAccessPolicies",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPolicies",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.FolderLocationName",
+ "name": "parent"
+ },
+ {
+ "type": "System.String",
+ "name": "pageToken"
+ },
+ {
+ "type": "System.Nullable[System.Int32]",
+ "name": "pageSize"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedEnumerable",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "ListAccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 75,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 73,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames2",
+ "title": "ListAccessPoliciesResourceNames2Async",
+ "description": "Snippet for ListAccessPoliciesAsync",
+ "file": "AccessPoliciesClient.ListAccessPoliciesResourceNames2AsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListAccessPoliciesAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPoliciesAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.FolderLocationName",
+ "name": "parent"
+ },
+ {
+ "type": "System.String",
+ "name": "pageToken"
+ },
+ {
+ "type": "System.Nullable[System.Int32]",
+ "name": "pageSize"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedAsyncEnumerable",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "ListAccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 76,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 74,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames3",
+ "title": "ListAccessPoliciesResourceNames3",
+ "description": "Snippet for ListAccessPolicies",
+ "file": "AccessPoliciesClient.ListAccessPoliciesResourceNames3Snippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListAccessPolicies",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPolicies",
+ "parameters": [
+ {
+ "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.Api.Gax.PagedEnumerable",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "ListAccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 76,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 74,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames3",
+ "title": "ListAccessPoliciesResourceNames3Async",
+ "description": "Snippet for ListAccessPoliciesAsync",
+ "file": "AccessPoliciesClient.ListAccessPoliciesResourceNames3AsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListAccessPoliciesAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPoliciesAsync",
+ "async": true,
+ "parameters": [
+ {
+ "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.Api.Gax.PagedAsyncEnumerable",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "ListAccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 77,
+ "type": "FULL"
+ },
+ {
+ "start": 38,
+ "end": 75,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync",
+ "title": "SearchAccessPolicyBindingsRequestObject",
+ "description": "Snippet for SearchAccessPolicyBindings",
+ "file": "AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "SearchAccessPolicyBindings",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.SearchAccessPolicyBindings",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedEnumerable",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "SearchAccessPolicyBindings",
+ "fullName": "google.iam.v3beta.AccessPolicies.SearchAccessPolicyBindings",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 78,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 76,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async",
+ "title": "SearchAccessPolicyBindingsRequestObjectAsync",
+ "description": "Snippet for SearchAccessPolicyBindingsAsync",
+ "file": "AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "SearchAccessPolicyBindingsAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.SearchAccessPolicyBindingsAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedAsyncEnumerable",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "SearchAccessPolicyBindings",
+ "fullName": "google.iam.v3beta.AccessPolicies.SearchAccessPolicyBindings",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 79,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 77,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync_flattened",
+ "title": "SearchAccessPolicyBindings",
+ "description": "Snippet for SearchAccessPolicyBindings",
+ "file": "AccessPoliciesClient.SearchAccessPolicyBindingsSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "SearchAccessPolicyBindings",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.SearchAccessPolicyBindings",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "System.String",
+ "name": "pageToken"
+ },
+ {
+ "type": "System.Nullable[System.Int32]",
+ "name": "pageSize"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedEnumerable",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "SearchAccessPolicyBindings",
+ "fullName": "google.iam.v3beta.AccessPolicies.SearchAccessPolicyBindings",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 75,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 73,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async_flattened",
+ "title": "SearchAccessPolicyBindingsAsync",
+ "description": "Snippet for SearchAccessPolicyBindingsAsync",
+ "file": "AccessPoliciesClient.SearchAccessPolicyBindingsAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "SearchAccessPolicyBindingsAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.SearchAccessPolicyBindingsAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "System.String",
+ "name": "pageToken"
+ },
+ {
+ "type": "System.Nullable[System.Int32]",
+ "name": "pageSize"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedAsyncEnumerable",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "SearchAccessPolicyBindings",
+ "fullName": "google.iam.v3beta.AccessPolicies.SearchAccessPolicyBindings",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 76,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 74,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync_flattened_resourceNames",
+ "title": "SearchAccessPolicyBindingsResourceNames",
+ "description": "Snippet for SearchAccessPolicyBindings",
+ "file": "AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "SearchAccessPolicyBindings",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.SearchAccessPolicyBindings",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.AccessPolicyName",
+ "name": "name"
+ },
+ {
+ "type": "System.String",
+ "name": "pageToken"
+ },
+ {
+ "type": "System.Nullable[System.Int32]",
+ "name": "pageSize"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedEnumerable",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "SearchAccessPolicyBindings",
+ "fullName": "google.iam.v3beta.AccessPolicies.SearchAccessPolicyBindings",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 75,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 73,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async_flattened_resourceNames",
+ "title": "SearchAccessPolicyBindingsResourceNamesAsync",
+ "description": "Snippet for SearchAccessPolicyBindingsAsync",
+ "file": "AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "SearchAccessPolicyBindingsAsync",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.SearchAccessPolicyBindingsAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Iam.V3Beta.AccessPolicyName",
+ "name": "name"
+ },
+ {
+ "type": "System.String",
+ "name": "pageToken"
+ },
+ {
+ "type": "System.Nullable[System.Int32]",
+ "name": "pageSize"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedAsyncEnumerable",
+ "client": {
+ "shortName": "AccessPoliciesClient",
+ "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient"
+ },
+ "method": {
+ "shortName": "SearchAccessPolicyBindings",
+ "fullName": "google.iam.v3beta.AccessPolicies.SearchAccessPolicyBindings",
+ "service": {
+ "shortName": "AccessPolicies",
+ "fullName": "google.iam.v3beta.AccessPolicies"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 76,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 74,
+ "type": "SHORT"
+ }
+ ]
+ },
{
"regionTag": "iam_v3beta_generated_PolicyBindings_CreatePolicyBinding_sync",
"title": "CreatePolicyBindingRequestObject",
@@ -1904,12 +3976,12 @@
"segments": [
{
"start": 20,
- "end": 79,
+ "end": 80,
"type": "FULL"
},
{
"start": 36,
- "end": 77,
+ "end": 78,
"type": "SHORT"
}
]
@@ -1953,12 +4025,12 @@
"segments": [
{
"start": 20,
- "end": 80,
+ "end": 81,
"type": "FULL"
},
{
"start": 37,
- "end": 78,
+ "end": 79,
"type": "SHORT"
}
]
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.Snippets/AccessPoliciesClientSnippets.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.Snippets/AccessPoliciesClientSnippets.g.cs
new file mode 100644
index 000000000000..8ad428692a02
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.Snippets/AccessPoliciesClientSnippets.g.cs
@@ -0,0 +1,1428 @@
+// Copyright 2026 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 GoogleCSharpSnippets
+{
+ using Google.Api.Gax;
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.Iam.V3Beta;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+ using System;
+ using System.Threading.Tasks;
+
+ /// Generated snippets.
+ public sealed class AllGeneratedAccessPoliciesClientSnippets
+ {
+ /// Snippet for CreateAccessPolicy
+ public void CreateAccessPolicyRequestObject()
+ {
+ // Snippet: CreateAccessPolicy(CreateAccessPolicyRequest, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ CreateAccessPolicyRequest request = new CreateAccessPolicyRequest
+ {
+ ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
+ AccessPolicyId = "",
+ AccessPolicy = new AccessPolicy(),
+ ValidateOnly = false,
+ };
+ // Make the request
+ Operation response = accessPoliciesClient.CreateAccessPolicy(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateAccessPolicyAsync
+ public async Task CreateAccessPolicyRequestObjectAsync()
+ {
+ // Snippet: CreateAccessPolicyAsync(CreateAccessPolicyRequest, CallSettings)
+ // Additional: CreateAccessPolicyAsync(CreateAccessPolicyRequest, CancellationToken)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ CreateAccessPolicyRequest request = new CreateAccessPolicyRequest
+ {
+ ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
+ AccessPolicyId = "",
+ AccessPolicy = new AccessPolicy(),
+ ValidateOnly = false,
+ };
+ // Make the request
+ Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateAccessPolicy
+ public void CreateAccessPolicy()
+ {
+ // Snippet: CreateAccessPolicy(string, AccessPolicy, string, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
+ AccessPolicy accessPolicy = new AccessPolicy();
+ string accessPolicyId = "";
+ // Make the request
+ Operation response = accessPoliciesClient.CreateAccessPolicy(parent, accessPolicy, accessPolicyId);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateAccessPolicyAsync
+ public async Task CreateAccessPolicyAsync()
+ {
+ // Snippet: CreateAccessPolicyAsync(string, AccessPolicy, string, CallSettings)
+ // Additional: CreateAccessPolicyAsync(string, AccessPolicy, string, CancellationToken)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
+ AccessPolicy accessPolicy = new AccessPolicy();
+ string accessPolicyId = "";
+ // Make the request
+ Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateAccessPolicy
+ public void CreateAccessPolicyResourceNames1()
+ {
+ // Snippet: CreateAccessPolicy(OrganizationLocationName, AccessPolicy, string, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
+ AccessPolicy accessPolicy = new AccessPolicy();
+ string accessPolicyId = "";
+ // Make the request
+ Operation response = accessPoliciesClient.CreateAccessPolicy(parent, accessPolicy, accessPolicyId);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateAccessPolicyAsync
+ public async Task CreateAccessPolicyResourceNames1Async()
+ {
+ // Snippet: CreateAccessPolicyAsync(OrganizationLocationName, AccessPolicy, string, CallSettings)
+ // Additional: CreateAccessPolicyAsync(OrganizationLocationName, AccessPolicy, string, CancellationToken)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
+ AccessPolicy accessPolicy = new AccessPolicy();
+ string accessPolicyId = "";
+ // Make the request
+ Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateAccessPolicy
+ public void CreateAccessPolicyResourceNames2()
+ {
+ // Snippet: CreateAccessPolicy(FolderLocationName, AccessPolicy, string, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
+ AccessPolicy accessPolicy = new AccessPolicy();
+ string accessPolicyId = "";
+ // Make the request
+ Operation response = accessPoliciesClient.CreateAccessPolicy(parent, accessPolicy, accessPolicyId);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateAccessPolicyAsync
+ public async Task CreateAccessPolicyResourceNames2Async()
+ {
+ // Snippet: CreateAccessPolicyAsync(FolderLocationName, AccessPolicy, string, CallSettings)
+ // Additional: CreateAccessPolicyAsync(FolderLocationName, AccessPolicy, string, CancellationToken)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
+ AccessPolicy accessPolicy = new AccessPolicy();
+ string accessPolicyId = "";
+ // Make the request
+ Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateAccessPolicy
+ public void CreateAccessPolicyResourceNames3()
+ {
+ // Snippet: CreateAccessPolicy(LocationName, AccessPolicy, string, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ AccessPolicy accessPolicy = new AccessPolicy();
+ string accessPolicyId = "";
+ // Make the request
+ Operation response = accessPoliciesClient.CreateAccessPolicy(parent, accessPolicy, accessPolicyId);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateAccessPolicyAsync
+ public async Task CreateAccessPolicyResourceNames3Async()
+ {
+ // Snippet: CreateAccessPolicyAsync(LocationName, AccessPolicy, string, CallSettings)
+ // Additional: CreateAccessPolicyAsync(LocationName, AccessPolicy, string, CancellationToken)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ AccessPolicy accessPolicy = new AccessPolicy();
+ string accessPolicyId = "";
+ // Make the request
+ Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for GetAccessPolicy
+ public void GetAccessPolicyRequestObject()
+ {
+ // Snippet: GetAccessPolicy(GetAccessPolicyRequest, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ GetAccessPolicyRequest request = new GetAccessPolicyRequest
+ {
+ AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"),
+ };
+ // Make the request
+ AccessPolicy response = accessPoliciesClient.GetAccessPolicy(request);
+ // End snippet
+ }
+
+ /// Snippet for GetAccessPolicyAsync
+ public async Task GetAccessPolicyRequestObjectAsync()
+ {
+ // Snippet: GetAccessPolicyAsync(GetAccessPolicyRequest, CallSettings)
+ // Additional: GetAccessPolicyAsync(GetAccessPolicyRequest, CancellationToken)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ GetAccessPolicyRequest request = new GetAccessPolicyRequest
+ {
+ AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"),
+ };
+ // Make the request
+ AccessPolicy response = await accessPoliciesClient.GetAccessPolicyAsync(request);
+ // End snippet
+ }
+
+ /// Snippet for GetAccessPolicy
+ public void GetAccessPolicy()
+ {
+ // Snippet: GetAccessPolicy(string, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]";
+ // Make the request
+ AccessPolicy response = accessPoliciesClient.GetAccessPolicy(name);
+ // End snippet
+ }
+
+ /// Snippet for GetAccessPolicyAsync
+ public async Task GetAccessPolicyAsync()
+ {
+ // Snippet: GetAccessPolicyAsync(string, CallSettings)
+ // Additional: GetAccessPolicyAsync(string, CancellationToken)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]";
+ // Make the request
+ AccessPolicy response = await accessPoliciesClient.GetAccessPolicyAsync(name);
+ // End snippet
+ }
+
+ /// Snippet for GetAccessPolicy
+ public void GetAccessPolicyResourceNames()
+ {
+ // Snippet: GetAccessPolicy(AccessPolicyName, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]");
+ // Make the request
+ AccessPolicy response = accessPoliciesClient.GetAccessPolicy(name);
+ // End snippet
+ }
+
+ /// Snippet for GetAccessPolicyAsync
+ public async Task GetAccessPolicyResourceNamesAsync()
+ {
+ // Snippet: GetAccessPolicyAsync(AccessPolicyName, CallSettings)
+ // Additional: GetAccessPolicyAsync(AccessPolicyName, CancellationToken)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]");
+ // Make the request
+ AccessPolicy response = await accessPoliciesClient.GetAccessPolicyAsync(name);
+ // End snippet
+ }
+
+ /// Snippet for UpdateAccessPolicy
+ public void UpdateAccessPolicyRequestObject()
+ {
+ // Snippet: UpdateAccessPolicy(UpdateAccessPolicyRequest, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ UpdateAccessPolicyRequest request = new UpdateAccessPolicyRequest
+ {
+ AccessPolicy = new AccessPolicy(),
+ ValidateOnly = false,
+ };
+ // Make the request
+ Operation response = accessPoliciesClient.UpdateAccessPolicy(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceUpdateAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for UpdateAccessPolicyAsync
+ public async Task UpdateAccessPolicyRequestObjectAsync()
+ {
+ // Snippet: UpdateAccessPolicyAsync(UpdateAccessPolicyRequest, CallSettings)
+ // Additional: UpdateAccessPolicyAsync(UpdateAccessPolicyRequest, CancellationToken)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ UpdateAccessPolicyRequest request = new UpdateAccessPolicyRequest
+ {
+ AccessPolicy = new AccessPolicy(),
+ ValidateOnly = false,
+ };
+ // Make the request
+ Operation response = await accessPoliciesClient.UpdateAccessPolicyAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ AccessPolicy result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceUpdateAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ AccessPolicy retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for DeleteAccessPolicy
+ public void DeleteAccessPolicyRequestObject()
+ {
+ // Snippet: DeleteAccessPolicy(DeleteAccessPolicyRequest, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ DeleteAccessPolicyRequest request = new DeleteAccessPolicyRequest
+ {
+ AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"),
+ Etag = "",
+ ValidateOnly = false,
+ Force = false,
+ };
+ // Make the request
+ Operation response = accessPoliciesClient.DeleteAccessPolicy(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ Empty result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceDeleteAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for DeleteAccessPolicyAsync
+ public async Task DeleteAccessPolicyRequestObjectAsync()
+ {
+ // Snippet: DeleteAccessPolicyAsync(DeleteAccessPolicyRequest, CallSettings)
+ // Additional: DeleteAccessPolicyAsync(DeleteAccessPolicyRequest, CancellationToken)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ DeleteAccessPolicyRequest request = new DeleteAccessPolicyRequest
+ {
+ AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"),
+ Etag = "",
+ ValidateOnly = false,
+ Force = false,
+ };
+ // Make the request
+ Operation response = await accessPoliciesClient.DeleteAccessPolicyAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ Empty result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceDeleteAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for DeleteAccessPolicy
+ public void DeleteAccessPolicy()
+ {
+ // Snippet: DeleteAccessPolicy(string, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]";
+ // Make the request
+ Operation response = accessPoliciesClient.DeleteAccessPolicy(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ Empty result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceDeleteAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for DeleteAccessPolicyAsync
+ public async Task DeleteAccessPolicyAsync()
+ {
+ // Snippet: DeleteAccessPolicyAsync(string, CallSettings)
+ // Additional: DeleteAccessPolicyAsync(string, CancellationToken)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]";
+ // Make the request
+ Operation response = await accessPoliciesClient.DeleteAccessPolicyAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ Empty result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceDeleteAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for DeleteAccessPolicy
+ public void DeleteAccessPolicyResourceNames()
+ {
+ // Snippet: DeleteAccessPolicy(AccessPolicyName, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]");
+ // Make the request
+ Operation response = accessPoliciesClient.DeleteAccessPolicy(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ Empty result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = accessPoliciesClient.PollOnceDeleteAccessPolicy(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for DeleteAccessPolicyAsync
+ public async Task DeleteAccessPolicyResourceNamesAsync()
+ {
+ // Snippet: DeleteAccessPolicyAsync(AccessPolicyName, CallSettings)
+ // Additional: DeleteAccessPolicyAsync(AccessPolicyName, CancellationToken)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]");
+ // Make the request
+ Operation response = await accessPoliciesClient.DeleteAccessPolicyAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ Empty result = completedResponse.Result;
+
+ // Or get the name of the operation
+ string operationName = response.Name;
+ // This name can be stored, then the long-running operation retrieved later by name
+ Operation retrievedResponse = await accessPoliciesClient.PollOnceDeleteAccessPolicyAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for ListAccessPolicies
+ public void ListAccessPoliciesRequestObject()
+ {
+ // Snippet: ListAccessPolicies(ListAccessPoliciesRequest, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ ListAccessPoliciesRequest request = new ListAccessPoliciesRequest
+ {
+ ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
+ };
+ // Make the request
+ PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPoliciesAsync
+ public async Task ListAccessPoliciesRequestObjectAsync()
+ {
+ // Snippet: ListAccessPoliciesAsync(ListAccessPoliciesRequest, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ ListAccessPoliciesRequest request = new ListAccessPoliciesRequest
+ {
+ ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
+ };
+ // Make the request
+ PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (AccessPolicy item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPolicies
+ public void ListAccessPolicies()
+ {
+ // Snippet: ListAccessPolicies(string, string, int?, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
+ // Make the request
+ PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPoliciesAsync
+ public async Task ListAccessPoliciesAsync()
+ {
+ // Snippet: ListAccessPoliciesAsync(string, string, int?, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
+ // Make the request
+ PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (AccessPolicy item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPolicies
+ public void ListAccessPoliciesResourceNames1()
+ {
+ // Snippet: ListAccessPolicies(OrganizationLocationName, string, int?, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
+ // Make the request
+ PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPoliciesAsync
+ public async Task ListAccessPoliciesResourceNames1Async()
+ {
+ // Snippet: ListAccessPoliciesAsync(OrganizationLocationName, string, int?, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
+ // Make the request
+ PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (AccessPolicy item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPolicies
+ public void ListAccessPoliciesResourceNames2()
+ {
+ // Snippet: ListAccessPolicies(FolderLocationName, string, int?, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
+ // Make the request
+ PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPoliciesAsync
+ public async Task ListAccessPoliciesResourceNames2Async()
+ {
+ // Snippet: ListAccessPoliciesAsync(FolderLocationName, string, int?, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
+ // Make the request
+ PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (AccessPolicy item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPolicies
+ public void ListAccessPoliciesResourceNames3()
+ {
+ // Snippet: ListAccessPolicies(LocationName, string, int?, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ // Make the request
+ PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPoliciesAsync
+ public async Task ListAccessPoliciesResourceNames3Async()
+ {
+ // Snippet: ListAccessPoliciesAsync(LocationName, string, int?, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ // Make the request
+ PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (AccessPolicy item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (ListAccessPoliciesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (AccessPolicy 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 (AccessPolicy 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 SearchAccessPolicyBindings
+ public void SearchAccessPolicyBindingsRequestObject()
+ {
+ // Snippet: SearchAccessPolicyBindings(SearchAccessPolicyBindingsRequest, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ SearchAccessPolicyBindingsRequest request = new SearchAccessPolicyBindingsRequest
+ {
+ AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"),
+ };
+ // Make the request
+ PagedEnumerable response = accessPoliciesClient.SearchAccessPolicyBindings(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (PolicyBinding 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 (SearchAccessPolicyBindingsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (PolicyBinding 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 (PolicyBinding 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 SearchAccessPolicyBindingsAsync
+ public async Task SearchAccessPolicyBindingsRequestObjectAsync()
+ {
+ // Snippet: SearchAccessPolicyBindingsAsync(SearchAccessPolicyBindingsRequest, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ SearchAccessPolicyBindingsRequest request = new SearchAccessPolicyBindingsRequest
+ {
+ AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"),
+ };
+ // Make the request
+ PagedAsyncEnumerable response = accessPoliciesClient.SearchAccessPolicyBindingsAsync(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (PolicyBinding item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (SearchAccessPolicyBindingsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (PolicyBinding 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 (PolicyBinding 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 SearchAccessPolicyBindings
+ public void SearchAccessPolicyBindings()
+ {
+ // Snippet: SearchAccessPolicyBindings(string, string, int?, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]";
+ // Make the request
+ PagedEnumerable response = accessPoliciesClient.SearchAccessPolicyBindings(name);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (PolicyBinding 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 (SearchAccessPolicyBindingsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (PolicyBinding 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 (PolicyBinding 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 SearchAccessPolicyBindingsAsync
+ public async Task SearchAccessPolicyBindingsAsync()
+ {
+ // Snippet: SearchAccessPolicyBindingsAsync(string, string, int?, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]";
+ // Make the request
+ PagedAsyncEnumerable response = accessPoliciesClient.SearchAccessPolicyBindingsAsync(name);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (PolicyBinding item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (SearchAccessPolicyBindingsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (PolicyBinding 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 (PolicyBinding 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 SearchAccessPolicyBindings
+ public void SearchAccessPolicyBindingsResourceNames()
+ {
+ // Snippet: SearchAccessPolicyBindings(AccessPolicyName, string, int?, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create();
+ // Initialize request argument(s)
+ AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]");
+ // Make the request
+ PagedEnumerable response = accessPoliciesClient.SearchAccessPolicyBindings(name);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (PolicyBinding 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 (SearchAccessPolicyBindingsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (PolicyBinding 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 (PolicyBinding 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 SearchAccessPolicyBindingsAsync
+ public async Task SearchAccessPolicyBindingsResourceNamesAsync()
+ {
+ // Snippet: SearchAccessPolicyBindingsAsync(AccessPolicyName, string, int?, CallSettings)
+ // Create client
+ AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync();
+ // Initialize request argument(s)
+ AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]");
+ // Make the request
+ PagedAsyncEnumerable response = accessPoliciesClient.SearchAccessPolicyBindingsAsync(name);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (PolicyBinding item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (SearchAccessPolicyBindingsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (PolicyBinding 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 (PolicyBinding 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.Iam.V3Beta/Google.Cloud.Iam.V3Beta.Snippets/PolicyBindingsClientSnippets.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.Snippets/PolicyBindingsClientSnippets.g.cs
index 938254e7d3bb..8475ba5ac22c 100644
--- a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.Snippets/PolicyBindingsClientSnippets.g.cs
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.Snippets/PolicyBindingsClientSnippets.g.cs
@@ -1223,6 +1223,7 @@ public void SearchTargetPolicyBindingsRequestObject()
{
Target = "",
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
+ Filter = "",
};
// Make the request
PagedEnumerable response = policyBindingsClient.SearchTargetPolicyBindings(request);
@@ -1272,6 +1273,7 @@ public async Task SearchTargetPolicyBindingsRequestObjectAsync()
{
Target = "",
ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
+ Filter = "",
};
// Make the request
PagedAsyncEnumerable response = policyBindingsClient.SearchTargetPolicyBindingsAsync(request);
diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesClient.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesClient.g.cs
new file mode 100644
index 000000000000..786cddee41b6
--- /dev/null
+++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesClient.g.cs
@@ -0,0 +1,2006 @@
+// Copyright 2026 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!
+
+#pragma warning disable CS8981
+using gagr = Google.Api.Gax.ResourceNames;
+using gax = Google.Api.Gax;
+using gaxgrpc = Google.Api.Gax.Grpc;
+using gcl = Google.Cloud.Location;
+using grpccore = Grpc.Core;
+using grpcinter = Grpc.Core.Interceptors;
+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;
+using stt = System.Threading.Tasks;
+using sys = System;
+using wkt = Google.Protobuf.WellKnownTypes;
+
+namespace Google.Cloud.Iam.V3Beta
+{
+ /// Settings for instances.
+ public sealed partial class AccessPoliciesSettings : gaxgrpc::ServiceSettingsBase
+ {
+ /// Get a new instance of the default .
+ /// A new instance of the default .
+ public static AccessPoliciesSettings GetDefault() => new AccessPoliciesSettings();
+
+ /// Constructs a new object with default settings.
+ public AccessPoliciesSettings()
+ {
+ }
+
+ private AccessPoliciesSettings(AccessPoliciesSettings existing) : base(existing)
+ {
+ gax::GaxPreconditions.CheckNotNull(existing, nameof(existing));
+ CreateAccessPolicySettings = existing.CreateAccessPolicySettings;
+ CreateAccessPolicyOperationsSettings = existing.CreateAccessPolicyOperationsSettings.Clone();
+ GetAccessPolicySettings = existing.GetAccessPolicySettings;
+ UpdateAccessPolicySettings = existing.UpdateAccessPolicySettings;
+ UpdateAccessPolicyOperationsSettings = existing.UpdateAccessPolicyOperationsSettings.Clone();
+ DeleteAccessPolicySettings = existing.DeleteAccessPolicySettings;
+ DeleteAccessPolicyOperationsSettings = existing.DeleteAccessPolicyOperationsSettings.Clone();
+ ListAccessPoliciesSettings = existing.ListAccessPoliciesSettings;
+ SearchAccessPolicyBindingsSettings = existing.SearchAccessPolicyBindingsSettings;
+ LocationsSettings = existing.LocationsSettings;
+ OnCopy(existing);
+ }
+
+ partial void OnCopy(AccessPoliciesSettings existing);
+
+ ///
+ /// for synchronous and asynchronous calls to
+ /// AccessPoliciesClient.CreateAccessPolicy and AccessPoliciesClient.CreateAccessPolicyAsync.
+ ///
+ ///
+ ///
+ /// - This call will not be retried.
+ /// - Timeout: 30 seconds.
+ ///
+ ///
+ public gaxgrpc::CallSettings CreateAccessPolicySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(30000)));
+
+ ///
+ /// Long Running Operation settings for calls to AccessPoliciesClient.CreateAccessPolicy and
+ /// AccessPoliciesClient.CreateAccessPolicyAsync.
+ ///
+ ///
+ /// Uses default of:
+ ///
+ /// - Initial delay: 20 seconds.
+ /// - Delay multiplier: 1.5
+ /// - Maximum delay: 45 seconds.
+ /// - Total timeout: 24 hours.
+ ///
+ ///
+ public lro::OperationsSettings CreateAccessPolicyOperationsSettings { get; set; } = new lro::OperationsSettings
+ {
+ DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)),
+ };
+
+ ///
+ /// for synchronous and asynchronous calls to
+ /// AccessPoliciesClient.GetAccessPolicy and AccessPoliciesClient.GetAccessPolicyAsync.
+ ///
+ ///
+ ///
+ /// - Initial retry delay: 1000 milliseconds.
+ /// - Retry delay multiplier: 1.3
+ /// - Retry maximum delay: 10000 milliseconds.
+ /// - Maximum attempts: 5
+ /// -
+ /// Retriable status codes: .
+ ///
+ /// - Timeout: 60 seconds.
+ ///
+ ///
+ public gaxgrpc::CallSettings GetAccessPolicySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable)));
+
+ ///
+ /// for synchronous and asynchronous calls to
+ /// AccessPoliciesClient.UpdateAccessPolicy and AccessPoliciesClient.UpdateAccessPolicyAsync.
+ ///
+ ///
+ ///
+ /// - This call will not be retried.
+ /// - Timeout: 30 seconds.
+ ///
+ ///
+ public gaxgrpc::CallSettings UpdateAccessPolicySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(30000)));
+
+ ///
+ /// Long Running Operation settings for calls to AccessPoliciesClient.UpdateAccessPolicy and
+ /// AccessPoliciesClient.UpdateAccessPolicyAsync.
+ ///
+ ///
+ /// Uses default of:
+ ///
+ /// - Initial delay: 20 seconds.
+ /// - Delay multiplier: 1.5
+ /// - Maximum delay: 45 seconds.
+ /// - Total timeout: 24 hours.
+ ///
+ ///
+ public lro::OperationsSettings UpdateAccessPolicyOperationsSettings { get; set; } = new lro::OperationsSettings
+ {
+ DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)),
+ };
+
+ ///
+ /// for synchronous and asynchronous calls to
+ /// AccessPoliciesClient.DeleteAccessPolicy and AccessPoliciesClient.DeleteAccessPolicyAsync.
+ ///
+ ///
+ ///
+ /// - This call will not be retried.
+ /// - Timeout: 30 seconds.
+ ///
+ ///
+ public gaxgrpc::CallSettings DeleteAccessPolicySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(30000)));
+
+ ///
+ /// Long Running Operation settings for calls to AccessPoliciesClient.DeleteAccessPolicy and
+ /// AccessPoliciesClient.DeleteAccessPolicyAsync.
+ ///
+ ///
+ /// Uses default of:
+ ///
+ /// - Initial delay: 20 seconds.
+ /// - Delay multiplier: 1.5
+ /// - Maximum delay: 45 seconds.
+ /// - Total timeout: 24 hours.
+ ///
+ ///
+ public lro::OperationsSettings DeleteAccessPolicyOperationsSettings { get; set; } = new lro::OperationsSettings
+ {
+ DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)),
+ };
+
+ ///
+ /// for synchronous and asynchronous calls to
+ /// AccessPoliciesClient.ListAccessPolicies and AccessPoliciesClient.ListAccessPoliciesAsync.
+ ///
+ ///
+ ///
+ /// - Initial retry delay: 1000 milliseconds.
+ /// - Retry delay multiplier: 1.3
+ /// - Retry maximum delay: 10000 milliseconds.
+ /// - Maximum attempts: 5
+ /// -
+ /// Retriable status codes: .
+ ///
+ /// - Timeout: 60 seconds.
+ ///
+ ///
+ public gaxgrpc::CallSettings ListAccessPoliciesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable)));
+
+ ///
+ /// for synchronous and asynchronous calls to
+ /// AccessPoliciesClient.SearchAccessPolicyBindings and
+ /// AccessPoliciesClient.SearchAccessPolicyBindingsAsync.
+ ///
+ ///
+ ///
+ /// - Initial retry delay: 1000 milliseconds.
+ /// - Retry delay multiplier: 1.3
+ /// - Retry maximum delay: 10000 milliseconds.
+ /// - Maximum attempts: 5
+ /// -
+ /// Retriable status codes: .
+ ///
+ /// - Timeout: 60 seconds.
+ ///
+ ///
+ public gaxgrpc::CallSettings SearchAccessPolicyBindingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable)));
+
+ ///
+ /// The settings to use for the associated with the client.
+ ///
+ public gcl::LocationsSettings LocationsSettings { get; set; } = gcl::LocationsSettings.GetDefault();
+
+ /// Creates a deep clone of this object, with all the same property values.
+ /// A deep clone of this object.
+ public AccessPoliciesSettings Clone() => new AccessPoliciesSettings(this);
+ }
+
+ ///
+ /// Builder class for to provide simple configuration of credentials, endpoint
+ /// etc.
+ ///
+ public sealed partial class AccessPoliciesClientBuilder : gaxgrpc::ClientBuilderBase
+ {
+ /// The settings to use for RPCs, or null for the default settings.
+ public AccessPoliciesSettings Settings { get; set; }
+
+ /// Creates a new builder with default settings.
+ public AccessPoliciesClientBuilder() : base(AccessPoliciesClient.ServiceMetadata)
+ {
+ }
+
+ partial void InterceptBuild(ref AccessPoliciesClient client);
+
+ partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task);
+
+ /// Builds the resulting client.
+ public override AccessPoliciesClient Build()
+ {
+ AccessPoliciesClient client = null;
+ InterceptBuild(ref client);
+ return client ?? BuildImpl();
+ }
+
+ /// Builds the resulting client asynchronously.
+ public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default)
+ {
+ stt::Task task = null;
+ InterceptBuildAsync(cancellationToken, ref task);
+ return task ?? BuildAsyncImpl(cancellationToken);
+ }
+
+ private AccessPoliciesClient BuildImpl()
+ {
+ Validate();
+ grpccore::CallInvoker callInvoker = CreateCallInvoker();
+ return AccessPoliciesClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger);
+ }
+
+ private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken)
+ {
+ Validate();
+ grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false);
+ return AccessPoliciesClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger);
+ }
+
+ /// Returns the channel pool to use when no other options are specified.
+ protected override gaxgrpc::ChannelPool GetChannelPool() => AccessPoliciesClient.ChannelPool;
+ }
+
+ /// AccessPolicies client wrapper, for convenient use.
+ ///
+ /// Manages Identity and Access Management (IAM) access policies.
+ ///
+ public abstract partial class AccessPoliciesClient
+ {
+ ///
+ /// The default endpoint for the AccessPolicies service, which is a host of "iam.googleapis.com" and a port of
+ /// 443.
+ ///
+ public static string DefaultEndpoint { get; } = "iam.googleapis.com:443";
+
+ /// The default AccessPolicies scopes.
+ ///
+ /// The default AccessPolicies scopes are:
+ ///
+ /// - https://www.googleapis.com/auth/cloud-platform
+ ///
+ ///
+ public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[]
+ {
+ "https://www.googleapis.com/auth/cloud-platform",
+ });
+
+ /// The service metadata associated with this client type.
+ public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AccessPolicies.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc | gax::ApiTransports.Rest, PackageApiMetadata.ApiMetadata);
+
+ internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata);
+
+ ///
+ /// Asynchronously creates a using the default credentials, endpoint and
+ /// settings. To specify custom credentials or other settings, use .
+ ///
+ ///
+ /// The to use while creating the client.
+ ///
+ /// The task representing the created .
+ public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) =>
+ new AccessPoliciesClientBuilder().BuildAsync(cancellationToken);
+
+ ///
+ /// Synchronously creates a using the default credentials, endpoint and
+ /// settings. To specify custom credentials or other settings, use .
+ ///
+ /// The created .
+ public static AccessPoliciesClient Create() => new AccessPoliciesClientBuilder().Build();
+
+ ///
+ /// Creates a which uses the specified call invoker for remote operations.
+ ///
+ ///
+ /// The for remote operations. Must not be null.
+ ///
+ /// Optional .
+ /// Optional .
+ /// The created .
+ internal static AccessPoliciesClient Create(grpccore::CallInvoker callInvoker, AccessPoliciesSettings settings = null, mel::ILogger logger = null)
+ {
+ gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
+ grpcinter::Interceptor interceptor = settings?.Interceptor;
+ if (interceptor != null)
+ {
+ callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
+ }
+ AccessPolicies.AccessPoliciesClient grpcClient = new AccessPolicies.AccessPoliciesClient(callInvoker);
+ return new AccessPoliciesClientImpl(grpcClient, settings, logger);
+ }
+
+ ///
+ /// Shuts down any channels automatically created by and
+ /// . Channels which weren't automatically created are not
+ /// affected.
+ ///
+ ///
+ /// After calling this method, further calls to and
+ /// will create new channels, which could in turn be shut down
+ /// by another call to this method.
+ ///
+ /// A task representing the asynchronous shutdown operation.
+ public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync();
+
+ /// The underlying gRPC AccessPolicies client
+ public virtual AccessPolicies.AccessPoliciesClient GrpcClient => throw new sys::NotImplementedException();
+
+ /// The associated with this client.
+ public virtual gcl::LocationsClient LocationsClient => throw new sys::NotImplementedException();
+
+ ///
+ /// Creates an access policy, and returns a long running operation.
+ ///
+ /// 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 lro::Operation CreateAccessPolicy(CreateAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) =>
+ throw new sys::NotImplementedException();
+
+ ///
+ /// Creates an access policy, and returns a long running operation.
+ ///
+ /// 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> CreateAccessPolicyAsync(CreateAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) =>
+ throw new sys::NotImplementedException();
+
+ ///
+ /// Creates an access policy, and returns a long running operation.
+ ///
+ /// 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> CreateAccessPolicyAsync(CreateAccessPolicyRequest request, st::CancellationToken cancellationToken) =>
+ CreateAccessPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+
+ /// The long-running operations client for CreateAccessPolicy.
+ public virtual lro::OperationsClient CreateAccessPolicyOperationsClient => throw new sys::NotImplementedException();
+
+ ///
+ /// Poll an operation once, using an operationName from a previous invocation of CreateAccessPolicy
+ /// .
+ ///
+ ///
+ /// The name of a previously invoked operation. Must not be null or empty.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// The result of polling the operation.
+ public virtual lro::Operation PollOnceCreateAccessPolicy(string operationName, gaxgrpc::CallSettings callSettings = null) =>
+ lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateAccessPolicyOperationsClient, callSettings);
+
+ ///
+ /// Asynchronously poll an operation once, using an operationName from a previous invocation of
+ /// CreateAccessPolicy.
+ ///
+ ///
+ /// The name of a previously invoked operation. Must not be null or empty.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A task representing the result of polling the operation.
+ public virtual stt::Task> PollOnceCreateAccessPolicyAsync(string operationName, gaxgrpc::CallSettings callSettings = null) =>
+ lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateAccessPolicyOperationsClient, callSettings);
+
+ ///
+ /// Creates an access policy, and returns a long running operation.
+ ///
+ ///
+ /// Required. The parent resource where this access policy will be created.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}`
+ /// `projects/{project_number}/locations/{location}`
+ /// `folders/{folder_id}/locations/{location}`
+ /// `organizations/{organization_id}/locations/{location}`
+ ///
+ ///
+ /// Required. The access policy to create.
+ ///
+ ///
+ /// Required. The ID to use for the access policy, which
+ /// will become the final component of the access policy's
+ /// resource name.
+ ///
+ /// This value must start with a lowercase letter followed by up to 62
+ /// lowercase letters, numbers, hyphens, or dots. Pattern,
+ /// /[a-z][a-z0-9-\.]{2,62}/.
+ ///
+ /// This value must be unique among all access policies with the same parent.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// The RPC response.
+ public virtual lro::Operation CreateAccessPolicy(string parent, AccessPolicy accessPolicy, string accessPolicyId, gaxgrpc::CallSettings callSettings = null) =>
+ CreateAccessPolicy(new CreateAccessPolicyRequest
+ {
+ Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)),
+ AccessPolicyId = gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId)),
+ AccessPolicy = gax::GaxPreconditions.CheckNotNull(accessPolicy, nameof(accessPolicy)),
+ }, callSettings);
+
+ ///
+ /// Creates an access policy, and returns a long running operation.
+ ///
+ ///
+ /// Required. The parent resource where this access policy will be created.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}`
+ /// `projects/{project_number}/locations/{location}`
+ /// `folders/{folder_id}/locations/{location}`
+ /// `organizations/{organization_id}/locations/{location}`
+ ///
+ ///
+ /// Required. The access policy to create.
+ ///
+ ///
+ /// Required. The ID to use for the access policy, which
+ /// will become the final component of the access policy's
+ /// resource name.
+ ///
+ /// This value must start with a lowercase letter followed by up to 62
+ /// lowercase letters, numbers, hyphens, or dots. Pattern,
+ /// /[a-z][a-z0-9-\.]{2,62}/.
+ ///
+ /// This value must be unique among all access policies with the same parent.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A Task containing the RPC response.
+ public virtual stt::Task> CreateAccessPolicyAsync(string parent, AccessPolicy accessPolicy, string accessPolicyId, gaxgrpc::CallSettings callSettings = null) =>
+ CreateAccessPolicyAsync(new CreateAccessPolicyRequest
+ {
+ Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)),
+ AccessPolicyId = gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId)),
+ AccessPolicy = gax::GaxPreconditions.CheckNotNull(accessPolicy, nameof(accessPolicy)),
+ }, callSettings);
+
+ ///
+ /// Creates an access policy, and returns a long running operation.
+ ///
+ ///
+ /// Required. The parent resource where this access policy will be created.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}`
+ /// `projects/{project_number}/locations/{location}`
+ /// `folders/{folder_id}/locations/{location}`
+ /// `organizations/{organization_id}/locations/{location}`
+ ///
+ ///
+ /// Required. The access policy to create.
+ ///
+ ///
+ /// Required. The ID to use for the access policy, which
+ /// will become the final component of the access policy's
+ /// resource name.
+ ///
+ /// This value must start with a lowercase letter followed by up to 62
+ /// lowercase letters, numbers, hyphens, or dots. Pattern,
+ /// /[a-z][a-z0-9-\.]{2,62}/.
+ ///
+ /// This value must be unique among all access policies with the same parent.
+ ///
+ /// A to use for this RPC.
+ /// A Task containing the RPC response.
+ public virtual stt::Task> CreateAccessPolicyAsync(string parent, AccessPolicy accessPolicy, string accessPolicyId, st::CancellationToken cancellationToken) =>
+ CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+
+ ///
+ /// Creates an access policy, and returns a long running operation.
+ ///
+ ///
+ /// Required. The parent resource where this access policy will be created.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}`
+ /// `projects/{project_number}/locations/{location}`
+ /// `folders/{folder_id}/locations/{location}`
+ /// `organizations/{organization_id}/locations/{location}`
+ ///
+ ///
+ /// Required. The access policy to create.
+ ///
+ ///
+ /// Required. The ID to use for the access policy, which
+ /// will become the final component of the access policy's
+ /// resource name.
+ ///
+ /// This value must start with a lowercase letter followed by up to 62
+ /// lowercase letters, numbers, hyphens, or dots. Pattern,
+ /// /[a-z][a-z0-9-\.]{2,62}/.
+ ///
+ /// This value must be unique among all access policies with the same parent.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// The RPC response.
+ public virtual lro::Operation CreateAccessPolicy(OrganizationLocationName parent, AccessPolicy accessPolicy, string accessPolicyId, gaxgrpc::CallSettings callSettings = null) =>
+ CreateAccessPolicy(new CreateAccessPolicyRequest
+ {
+ ParentAsOrganizationLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)),
+ AccessPolicyId = gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId)),
+ AccessPolicy = gax::GaxPreconditions.CheckNotNull(accessPolicy, nameof(accessPolicy)),
+ }, callSettings);
+
+ ///
+ /// Creates an access policy, and returns a long running operation.
+ ///
+ ///
+ /// Required. The parent resource where this access policy will be created.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}`
+ /// `projects/{project_number}/locations/{location}`
+ /// `folders/{folder_id}/locations/{location}`
+ /// `organizations/{organization_id}/locations/{location}`
+ ///
+ ///
+ /// Required. The access policy to create.
+ ///
+ ///
+ /// Required. The ID to use for the access policy, which
+ /// will become the final component of the access policy's
+ /// resource name.
+ ///
+ /// This value must start with a lowercase letter followed by up to 62
+ /// lowercase letters, numbers, hyphens, or dots. Pattern,
+ /// /[a-z][a-z0-9-\.]{2,62}/.
+ ///
+ /// This value must be unique among all access policies with the same parent.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A Task containing the RPC response.
+ public virtual stt::Task> CreateAccessPolicyAsync(OrganizationLocationName parent, AccessPolicy accessPolicy, string accessPolicyId, gaxgrpc::CallSettings callSettings = null) =>
+ CreateAccessPolicyAsync(new CreateAccessPolicyRequest
+ {
+ ParentAsOrganizationLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)),
+ AccessPolicyId = gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId)),
+ AccessPolicy = gax::GaxPreconditions.CheckNotNull(accessPolicy, nameof(accessPolicy)),
+ }, callSettings);
+
+ ///
+ /// Creates an access policy, and returns a long running operation.
+ ///
+ ///
+ /// Required. The parent resource where this access policy will be created.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}`
+ /// `projects/{project_number}/locations/{location}`
+ /// `folders/{folder_id}/locations/{location}`
+ /// `organizations/{organization_id}/locations/{location}`
+ ///
+ ///
+ /// Required. The access policy to create.
+ ///
+ ///
+ /// Required. The ID to use for the access policy, which
+ /// will become the final component of the access policy's
+ /// resource name.
+ ///
+ /// This value must start with a lowercase letter followed by up to 62
+ /// lowercase letters, numbers, hyphens, or dots. Pattern,
+ /// /[a-z][a-z0-9-\.]{2,62}/.
+ ///
+ /// This value must be unique among all access policies with the same parent.
+ ///
+ /// A to use for this RPC.
+ /// A Task containing the RPC response.
+ public virtual stt::Task> CreateAccessPolicyAsync(OrganizationLocationName parent, AccessPolicy accessPolicy, string accessPolicyId, st::CancellationToken cancellationToken) =>
+ CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+
+ ///
+ /// Creates an access policy, and returns a long running operation.
+ ///
+ ///
+ /// Required. The parent resource where this access policy will be created.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}`
+ /// `projects/{project_number}/locations/{location}`
+ /// `folders/{folder_id}/locations/{location}`
+ /// `organizations/{organization_id}/locations/{location}`
+ ///
+ ///
+ /// Required. The access policy to create.
+ ///
+ ///
+ /// Required. The ID to use for the access policy, which
+ /// will become the final component of the access policy's
+ /// resource name.
+ ///
+ /// This value must start with a lowercase letter followed by up to 62
+ /// lowercase letters, numbers, hyphens, or dots. Pattern,
+ /// /[a-z][a-z0-9-\.]{2,62}/.
+ ///
+ /// This value must be unique among all access policies with the same parent.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// The RPC response.
+ public virtual lro::Operation CreateAccessPolicy(FolderLocationName parent, AccessPolicy accessPolicy, string accessPolicyId, gaxgrpc::CallSettings callSettings = null) =>
+ CreateAccessPolicy(new CreateAccessPolicyRequest
+ {
+ ParentAsFolderLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)),
+ AccessPolicyId = gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId)),
+ AccessPolicy = gax::GaxPreconditions.CheckNotNull(accessPolicy, nameof(accessPolicy)),
+ }, callSettings);
+
+ ///
+ /// Creates an access policy, and returns a long running operation.
+ ///
+ ///
+ /// Required. The parent resource where this access policy will be created.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}`
+ /// `projects/{project_number}/locations/{location}`
+ /// `folders/{folder_id}/locations/{location}`
+ /// `organizations/{organization_id}/locations/{location}`
+ ///
+ ///
+ /// Required. The access policy to create.
+ ///
+ ///
+ /// Required. The ID to use for the access policy, which
+ /// will become the final component of the access policy's
+ /// resource name.
+ ///
+ /// This value must start with a lowercase letter followed by up to 62
+ /// lowercase letters, numbers, hyphens, or dots. Pattern,
+ /// /[a-z][a-z0-9-\.]{2,62}/.
+ ///
+ /// This value must be unique among all access policies with the same parent.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A Task containing the RPC response.
+ public virtual stt::Task> CreateAccessPolicyAsync(FolderLocationName parent, AccessPolicy accessPolicy, string accessPolicyId, gaxgrpc::CallSettings callSettings = null) =>
+ CreateAccessPolicyAsync(new CreateAccessPolicyRequest
+ {
+ ParentAsFolderLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)),
+ AccessPolicyId = gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId)),
+ AccessPolicy = gax::GaxPreconditions.CheckNotNull(accessPolicy, nameof(accessPolicy)),
+ }, callSettings);
+
+ ///
+ /// Creates an access policy, and returns a long running operation.
+ ///
+ ///
+ /// Required. The parent resource where this access policy will be created.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}`
+ /// `projects/{project_number}/locations/{location}`
+ /// `folders/{folder_id}/locations/{location}`
+ /// `organizations/{organization_id}/locations/{location}`
+ ///
+ ///
+ /// Required. The access policy to create.
+ ///
+ ///
+ /// Required. The ID to use for the access policy, which
+ /// will become the final component of the access policy's
+ /// resource name.
+ ///
+ /// This value must start with a lowercase letter followed by up to 62
+ /// lowercase letters, numbers, hyphens, or dots. Pattern,
+ /// /[a-z][a-z0-9-\.]{2,62}/.
+ ///
+ /// This value must be unique among all access policies with the same parent.
+ ///
+ /// A to use for this RPC.
+ /// A Task containing the RPC response.
+ public virtual stt::Task> CreateAccessPolicyAsync(FolderLocationName parent, AccessPolicy accessPolicy, string accessPolicyId, st::CancellationToken cancellationToken) =>
+ CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+
+ ///
+ /// Creates an access policy, and returns a long running operation.
+ ///
+ ///
+ /// Required. The parent resource where this access policy will be created.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}`
+ /// `projects/{project_number}/locations/{location}`
+ /// `folders/{folder_id}/locations/{location}`
+ /// `organizations/{organization_id}/locations/{location}`
+ ///
+ ///
+ /// Required. The access policy to create.
+ ///
+ ///
+ /// Required. The ID to use for the access policy, which
+ /// will become the final component of the access policy's
+ /// resource name.
+ ///
+ /// This value must start with a lowercase letter followed by up to 62
+ /// lowercase letters, numbers, hyphens, or dots. Pattern,
+ /// /[a-z][a-z0-9-\.]{2,62}/.
+ ///
+ /// This value must be unique among all access policies with the same parent.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// The RPC response.
+ public virtual lro::Operation CreateAccessPolicy(gagr::LocationName parent, AccessPolicy accessPolicy, string accessPolicyId, gaxgrpc::CallSettings callSettings = null) =>
+ CreateAccessPolicy(new CreateAccessPolicyRequest
+ {
+ ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)),
+ AccessPolicyId = gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId)),
+ AccessPolicy = gax::GaxPreconditions.CheckNotNull(accessPolicy, nameof(accessPolicy)),
+ }, callSettings);
+
+ ///
+ /// Creates an access policy, and returns a long running operation.
+ ///
+ ///
+ /// Required. The parent resource where this access policy will be created.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}`
+ /// `projects/{project_number}/locations/{location}`
+ /// `folders/{folder_id}/locations/{location}`
+ /// `organizations/{organization_id}/locations/{location}`
+ ///
+ ///
+ /// Required. The access policy to create.
+ ///
+ ///
+ /// Required. The ID to use for the access policy, which
+ /// will become the final component of the access policy's
+ /// resource name.
+ ///
+ /// This value must start with a lowercase letter followed by up to 62
+ /// lowercase letters, numbers, hyphens, or dots. Pattern,
+ /// /[a-z][a-z0-9-\.]{2,62}/.
+ ///
+ /// This value must be unique among all access policies with the same parent.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A Task containing the RPC response.
+ public virtual stt::Task> CreateAccessPolicyAsync(gagr::LocationName parent, AccessPolicy accessPolicy, string accessPolicyId, gaxgrpc::CallSettings callSettings = null) =>
+ CreateAccessPolicyAsync(new CreateAccessPolicyRequest
+ {
+ ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)),
+ AccessPolicyId = gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId)),
+ AccessPolicy = gax::GaxPreconditions.CheckNotNull(accessPolicy, nameof(accessPolicy)),
+ }, callSettings);
+
+ ///
+ /// Creates an access policy, and returns a long running operation.
+ ///
+ ///
+ /// Required. The parent resource where this access policy will be created.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}`
+ /// `projects/{project_number}/locations/{location}`
+ /// `folders/{folder_id}/locations/{location}`
+ /// `organizations/{organization_id}/locations/{location}`
+ ///
+ ///
+ /// Required. The access policy to create.
+ ///
+ ///
+ /// Required. The ID to use for the access policy, which
+ /// will become the final component of the access policy's
+ /// resource name.
+ ///
+ /// This value must start with a lowercase letter followed by up to 62
+ /// lowercase letters, numbers, hyphens, or dots. Pattern,
+ /// /[a-z][a-z0-9-\.]{2,62}/.
+ ///
+ /// This value must be unique among all access policies with the same parent.
+ ///
+ /// A to use for this RPC.
+ /// A Task containing the RPC response.
+ public virtual stt::Task> CreateAccessPolicyAsync(gagr::LocationName parent, AccessPolicy accessPolicy, string accessPolicyId, st::CancellationToken cancellationToken) =>
+ CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+
+ ///
+ /// Gets an access policy.
+ ///
+ /// 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 AccessPolicy GetAccessPolicy(GetAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) =>
+ throw new sys::NotImplementedException();
+
+ ///
+ /// Gets an access policy.
+ ///
+ /// 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 GetAccessPolicyAsync(GetAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) =>
+ throw new sys::NotImplementedException();
+
+ ///
+ /// Gets an access policy.
+ ///
+ /// 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 GetAccessPolicyAsync(GetAccessPolicyRequest request, st::CancellationToken cancellationToken) =>
+ GetAccessPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+
+ ///
+ /// Gets an access policy.
+ ///
+ ///
+ /// Required. The name of the access policy to retrieve.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// The RPC response.
+ public virtual AccessPolicy GetAccessPolicy(string name, gaxgrpc::CallSettings callSettings = null) =>
+ GetAccessPolicy(new GetAccessPolicyRequest
+ {
+ Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)),
+ }, callSettings);
+
+ ///
+ /// Gets an access policy.
+ ///
+ ///
+ /// Required. The name of the access policy to retrieve.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A Task containing the RPC response.
+ public virtual stt::Task GetAccessPolicyAsync(string name, gaxgrpc::CallSettings callSettings = null) =>
+ GetAccessPolicyAsync(new GetAccessPolicyRequest
+ {
+ Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)),
+ }, callSettings);
+
+ ///
+ /// Gets an access policy.
+ ///
+ ///
+ /// Required. The name of the access policy to retrieve.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ ///
+ /// A to use for this RPC.
+ /// A Task containing the RPC response.
+ public virtual stt::Task GetAccessPolicyAsync(string name, st::CancellationToken cancellationToken) =>
+ GetAccessPolicyAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+
+ ///
+ /// Gets an access policy.
+ ///
+ ///
+ /// Required. The name of the access policy to retrieve.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// The RPC response.
+ public virtual AccessPolicy GetAccessPolicy(AccessPolicyName name, gaxgrpc::CallSettings callSettings = null) =>
+ GetAccessPolicy(new GetAccessPolicyRequest
+ {
+ AccessPolicyName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)),
+ }, callSettings);
+
+ ///
+ /// Gets an access policy.
+ ///
+ ///
+ /// Required. The name of the access policy to retrieve.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A Task containing the RPC response.
+ public virtual stt::Task GetAccessPolicyAsync(AccessPolicyName name, gaxgrpc::CallSettings callSettings = null) =>
+ GetAccessPolicyAsync(new GetAccessPolicyRequest
+ {
+ AccessPolicyName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)),
+ }, callSettings);
+
+ ///
+ /// Gets an access policy.
+ ///
+ ///
+ /// Required. The name of the access policy to retrieve.
+ ///
+ /// Format:
+ /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
+ ///
+ /// A to use for this RPC.
+ /// A Task containing the RPC response.
+ public virtual stt::Task GetAccessPolicyAsync(AccessPolicyName name, st::CancellationToken cancellationToken) =>
+ GetAccessPolicyAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+
+ ///
+ /// Updates an access policy.
+ ///
+ /// 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 lro::Operation UpdateAccessPolicy(UpdateAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) =>
+ throw new sys::NotImplementedException();
+
+ ///
+ /// Updates an access policy.
+ ///
+ /// 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> UpdateAccessPolicyAsync(UpdateAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) =>
+ throw new sys::NotImplementedException();
+
+ ///
+ /// Updates an access policy.
+ ///
+ /// 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> UpdateAccessPolicyAsync(UpdateAccessPolicyRequest request, st::CancellationToken cancellationToken) =>
+ UpdateAccessPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+
+ /// The long-running operations client for UpdateAccessPolicy.
+ public virtual lro::OperationsClient UpdateAccessPolicyOperationsClient => throw new sys::NotImplementedException();
+
+ ///
+ /// Poll an operation once, using an operationName from a previous invocation of UpdateAccessPolicy
+ /// .
+ ///
+ ///
+ /// The name of a previously invoked operation. Must not be null or empty.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// The result of polling the operation.
+ public virtual lro::Operation PollOnceUpdateAccessPolicy(string operationName, gaxgrpc::CallSettings callSettings = null) =>
+ lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateAccessPolicyOperationsClient, callSettings);
+
+ ///
+ /// Asynchronously poll an operation once, using an operationName from a previous invocation of
+ /// UpdateAccessPolicy.
+ ///
+ ///
+ /// The name of a previously invoked operation. Must not be null or empty.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A task representing the result of polling the operation.
+ public virtual stt::Task> PollOnceUpdateAccessPolicyAsync(string operationName, gaxgrpc::CallSettings callSettings = null) =>
+ lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateAccessPolicyOperationsClient, callSettings);
+
+ ///
+ /// Deletes an access policy.
+ ///
+ /// 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 lro::Operation DeleteAccessPolicy(DeleteAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) =>
+ throw new sys::NotImplementedException();
+
+ ///