/// <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 }
/// <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 }
/// <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 }