-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
CacheExpirationActionProperties.cs
48 lines (42 loc) · 2.29 KB
/
CacheExpirationActionProperties.cs
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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
namespace Azure.ResourceManager.Cdn.Models
{
/// <summary> Defines the parameters for the cache expiration action. </summary>
public partial class CacheExpirationActionProperties
{
/// <summary> Initializes a new instance of CacheExpirationActionProperties. </summary>
/// <param name="actionType"></param>
/// <param name="cacheBehavior"> Caching behavior for the requests. </param>
/// <param name="cacheType"> The level at which the content needs to be cached. </param>
public CacheExpirationActionProperties(CacheExpirationActionType actionType, CacheBehaviorSetting cacheBehavior, CdnCacheLevel cacheType)
{
ActionType = actionType;
CacheBehavior = cacheBehavior;
CacheType = cacheType;
}
/// <summary> Initializes a new instance of CacheExpirationActionProperties. </summary>
/// <param name="actionType"></param>
/// <param name="cacheBehavior"> Caching behavior for the requests. </param>
/// <param name="cacheType"> The level at which the content needs to be cached. </param>
/// <param name="cacheDuration"> The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss. </param>
internal CacheExpirationActionProperties(CacheExpirationActionType actionType, CacheBehaviorSetting cacheBehavior, CdnCacheLevel cacheType, TimeSpan? cacheDuration)
{
ActionType = actionType;
CacheBehavior = cacheBehavior;
CacheType = cacheType;
CacheDuration = cacheDuration;
}
/// <summary> Gets or sets the action type. </summary>
public CacheExpirationActionType ActionType { get; set; }
/// <summary> Caching behavior for the requests. </summary>
public CacheBehaviorSetting CacheBehavior { get; set; }
/// <summary> The level at which the content needs to be cached. </summary>
public CdnCacheLevel CacheType { get; set; }
/// <summary> The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss. </summary>
public TimeSpan? CacheDuration { get; set; }
}
}