// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ========================================================================== using System.ComponentModel.DataAnnotations; using Squidex.Domain.Apps.Core.HandleRules; using Squidex.Domain.Apps.Core.Rules; namespace Squidex.Extensions.Actions.Fastly { [RuleAction( IconImage = "", IconColor = "#e23335", Display = "Purge fastly cache", Description = "Remove entries from the fastly CDN cache.", ReadMore = "https://www.fastly.com/")] public sealed class FastlyAction : RuleAction { [Required] [Display(Name = "Api Key", Description = "The API key to grant access to Squidex.")] [DataType(DataType.Text)] public string ApiKey { get; set; } [Required] [Display(Name = "Service Id", Description = "The ID of the fastly service.")] [DataType(DataType.Text)] public string ServiceId { get; set; } } }