/// <summary>Snippet for GetPolicy</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetPolicyResourceNames()
 {
     // Create client
     BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
     // Initialize request argument(s)
     PolicyName name = PolicyName.FromProject("[PROJECT]");
     // Make the request
     Policy response = binauthzManagementServiceV1Beta1Client.GetPolicy(name);
 }
Esempio n. 2
0
 /// <summary>Snippet for GetPolicy</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetPolicy()
 {
     // Create client
     BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/policy";
     // Make the request
     Policy response = binauthzManagementServiceV1Beta1Client.GetPolicy(name);
 }
 /// <summary>Snippet for GetPolicy</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetPolicyRequestObject()
 {
     // Create client
     BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
     // Initialize request argument(s)
     GetPolicyRequest request = new GetPolicyRequest
     {
         PolicyName = PolicyName.FromProject("[PROJECT]"),
     };
     // Make the request
     Policy response = binauthzManagementServiceV1Beta1Client.GetPolicy(request);
 }