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