mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.1 KiB
28 lines
1.1 KiB
// ==========================================================================
|
|
// 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
|
|
{
|
|
[RuleActionHandler(typeof(FastlyActionHandler))]
|
|
[RuleAction(Link = "https://www.fastly.com/",
|
|
Display = "Purge fastly cache",
|
|
Description = "Remove entries from the fastly CDN cache.")]
|
|
public sealed class FastlyAction : RuleAction
|
|
{
|
|
[Required]
|
|
[Display(Name = "Api Key", Description = "The API key to grant access to Squidex.")]
|
|
public string ApiKey { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "Service Id", Description = "The ID of the fastly service.")]
|
|
public string ServiceId { get; set; }
|
|
}
|
|
}
|
|
|