WebHook.cs
1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace Contentful.Core.Models.Management
{
/// <summary>
/// Represents an webhook configuration in a <see cref="Space"/>.
/// </summary>
public class Webhook : IContentfulResource
{
/// <summary>
/// Common system managed metadata properties.
/// </summary>
[JsonProperty("sys", NullValueHandling = NullValueHandling.Ignore)]
public SystemProperties SystemProperties { get; set; }
/// <summary>
/// The url to call for this webhook.
/// Bear in mind that **Private IPs**, **Localhost**, **hostnames without top-level domain** and **URLs that resolve to redirects or localhost** are not allowed.
/// </summary>
public string Url { get; set; }
/// <summary>
/// The basic authentication username to pass with the webhook.
/// </summary>
public string HttpBasicUsername { get; set; }
/// <summary>
/// The basic authentication password to pass with the webhook.
/// </summary>
public string HttpBasicPassword { get; set; }
/// <summary>
/// The name of the web hook.
/// </summary>
public string Name { get; set; }
/// <summary>
/// The custom http headers to pass with the webhook.
/// </summary>
public List<KeyValuePair<string,string>> Headers { get; set; }
/// <summary>
/// The topics that trigger this webhook.
/// </summary>
public List<string> Topics { get; set; }
}
}