/// <summary>Snippet for GetPolicyAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetPolicyAsync() { // Create client BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/policy"; // Make the request Policy response = await binauthzManagementServiceV1Beta1Client.GetPolicyAsync(name); }
/// <summary>Snippet for GetPolicyAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetPolicyResourceNamesAsync() { // Create client BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync(); // Initialize request argument(s) PolicyName name = PolicyName.FromProject("[PROJECT]"); // Make the request Policy response = await binauthzManagementServiceV1Beta1Client.GetPolicyAsync(name); }
/// <summary>Snippet for GetPolicyAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetPolicyRequestObjectAsync() { // Create client BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync(); // Initialize request argument(s) GetPolicyRequest request = new GetPolicyRequest { PolicyName = PolicyName.FromProject("[PROJECT]"), }; // Make the request Policy response = await binauthzManagementServiceV1Beta1Client.GetPolicyAsync(request); }
/// <summary>Snippet for GetPolicyAsync</summary> public async Task GetPolicyAsync() { // Snippet: GetPolicyAsync(string, CallSettings) // Additional: GetPolicyAsync(string, CancellationToken) // Create client BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/policy"; // Make the request Policy response = await binauthzManagementServiceV1Beta1Client.GetPolicyAsync(name); // End snippet }
/// <summary>Snippet for GetPolicyAsync</summary> public async Task GetPolicyResourceNamesAsync() { // Snippet: GetPolicyAsync(PolicyName, CallSettings) // Additional: GetPolicyAsync(PolicyName, CancellationToken) // Create client BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync(); // Initialize request argument(s) PolicyName name = PolicyName.FromProject("[PROJECT]"); // Make the request Policy response = await binauthzManagementServiceV1Beta1Client.GetPolicyAsync(name); // End snippet }