Beispiel #1
0
 /// <summary>Snippet for GetPolicy</summary>
 public void GetPolicy()
 {
     // Snippet: GetPolicy(string, CallSettings)
     // Create client
     BinauthzManagementServiceV1Client binauthzManagementServiceV1Client = BinauthzManagementServiceV1Client.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/policy";
     // Make the request
     Policy response = binauthzManagementServiceV1Client.GetPolicy(name);
     // End snippet
 }
Beispiel #2
0
 /// <summary>Snippet for GetPolicy</summary>
 public void GetPolicyResourceNames()
 {
     // Snippet: GetPolicy(PolicyName, CallSettings)
     // Create client
     BinauthzManagementServiceV1Client binauthzManagementServiceV1Client = BinauthzManagementServiceV1Client.Create();
     // Initialize request argument(s)
     PolicyName name = PolicyName.FromProject("[PROJECT]");
     // Make the request
     Policy response = binauthzManagementServiceV1Client.GetPolicy(name);
     // End snippet
 }
Beispiel #3
0
 /// <summary>Snippet for GetPolicy</summary>
 public void GetPolicyRequestObject()
 {
     // Snippet: GetPolicy(GetPolicyRequest, CallSettings)
     // Create client
     BinauthzManagementServiceV1Client binauthzManagementServiceV1Client = BinauthzManagementServiceV1Client.Create();
     // Initialize request argument(s)
     GetPolicyRequest request = new GetPolicyRequest
     {
         PolicyName = PolicyName.FromProject("[PROJECT]"),
     };
     // Make the request
     Policy response = binauthzManagementServiceV1Client.GetPolicy(request);
     // End snippet
 }