/// <summary>Snippet for SetSecurityPolicy</summary> public void SetSecurityPolicy() { // Snippet: SetSecurityPolicy(string, string, SecurityPolicyReference, CallSettings) // Create client BackendServicesClient backendServicesClient = BackendServicesClient.Create(); // Initialize request argument(s) string project = ""; string backendService = ""; SecurityPolicyReference securityPolicyReferenceResource = new SecurityPolicyReference(); // Make the request Operation response = backendServicesClient.SetSecurityPolicy(project, backendService, securityPolicyReferenceResource); // End snippet }
/// <summary>Snippet for SetSecurityPolicy</summary> public void SetSecurityPolicyRequestObject() { // Snippet: SetSecurityPolicy(SetSecurityPolicyBackendServiceRequest, CallSettings) // Create client BackendServicesClient backendServicesClient = BackendServicesClient.Create(); // Initialize request argument(s) SetSecurityPolicyBackendServiceRequest request = new SetSecurityPolicyBackendServiceRequest { RequestId = "", SecurityPolicyReferenceResource = new SecurityPolicyReference(), Project = "", BackendService = "", }; // Make the request Operation response = backendServicesClient.SetSecurityPolicy(request); // End snippet }