Exemple #1
0
 /// <summary>Snippet for GetSystemPolicy</summary>
 public void GetSystemPolicy()
 {
     // Snippet: GetSystemPolicy(string, CallSettings)
     // Create client
     SystemPolicyV1Client systemPolicyV1Client = SystemPolicyV1Client.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/policy";
     // Make the request
     Policy response = systemPolicyV1Client.GetSystemPolicy(name);
     // End snippet
 }
Exemple #2
0
 /// <summary>Snippet for GetSystemPolicy</summary>
 public void GetSystemPolicyResourceNames()
 {
     // Snippet: GetSystemPolicy(PolicyName, CallSettings)
     // Create client
     SystemPolicyV1Client systemPolicyV1Client = SystemPolicyV1Client.Create();
     // Initialize request argument(s)
     PolicyName name = PolicyName.FromProject("[PROJECT]");
     // Make the request
     Policy response = systemPolicyV1Client.GetSystemPolicy(name);
     // End snippet
 }
Exemple #3
0
 /// <summary>Snippet for GetSystemPolicy</summary>
 public void GetSystemPolicyRequestObject()
 {
     // Snippet: GetSystemPolicy(GetSystemPolicyRequest, CallSettings)
     // Create client
     SystemPolicyV1Client systemPolicyV1Client = SystemPolicyV1Client.Create();
     // Initialize request argument(s)
     GetSystemPolicyRequest request = new GetSystemPolicyRequest
     {
         PolicyName = PolicyName.FromProject("[PROJECT]"),
     };
     // Make the request
     Policy response = systemPolicyV1Client.GetSystemPolicy(request);
     // End snippet
 }