/// <summary>Snippet for InvalidateCache</summary> public void InvalidateCache() { // Snippet: InvalidateCache(string, string, CacheInvalidationRule, CallSettings) // Create client UrlMapsClient urlMapsClient = UrlMapsClient.Create(); // Initialize request argument(s) string project = ""; string urlMap = ""; CacheInvalidationRule cacheInvalidationRuleResource = new CacheInvalidationRule(); // Make the request Operation response = urlMapsClient.InvalidateCache(project, urlMap, cacheInvalidationRuleResource); // End snippet }
/// <summary>Snippet for InvalidateCache</summary> public void InvalidateCacheRequestObject() { // Snippet: InvalidateCache(InvalidateCacheUrlMapRequest, CallSettings) // Create client UrlMapsClient urlMapsClient = UrlMapsClient.Create(); // Initialize request argument(s) InvalidateCacheUrlMapRequest request = new InvalidateCacheUrlMapRequest { RequestId = "", Project = "", CacheInvalidationRuleResource = new CacheInvalidationRule(), UrlMap = "", }; // Make the request Operation response = urlMapsClient.InvalidateCache(request); // End snippet }