-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
RedisPatch.cs
82 lines (76 loc) · 6.57 KB
/
RedisPatch.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.Redis.Models
{
/// <summary> Parameters supplied to the Update Redis operation. </summary>
public partial class RedisPatch
{
/// <summary> Initializes a new instance of <see cref="RedisPatch"/>. </summary>
public RedisPatch()
{
Tags = new ChangeTrackingDictionary<string, string>();
TenantSettings = new ChangeTrackingDictionary<string, string>();
}
/// <summary> Initializes a new instance of <see cref="RedisPatch"/>. </summary>
/// <param name="tags"> Resource tags. </param>
/// <param name="identity"> The identity of the resource. </param>
/// <param name="redisConfiguration"> All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc. </param>
/// <param name="redisVersion"> Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'. </param>
/// <param name="enableNonSslPort"> Specifies whether the non-ssl Redis server port (6379) is enabled. </param>
/// <param name="replicasPerMaster"> The number of replicas to be created per primary. </param>
/// <param name="replicasPerPrimary"> The number of replicas to be created per primary. </param>
/// <param name="tenantSettings"> A dictionary of tenant settings. </param>
/// <param name="shardCount"> The number of shards to be created on a Premium Cluster Cache. </param>
/// <param name="minimumTlsVersion"> Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). </param>
/// <param name="publicNetworkAccess"> Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'. </param>
/// <param name="updateChannel"> Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'. </param>
/// <param name="sku"> The SKU of the Redis cache to deploy. </param>
internal RedisPatch(IDictionary<string, string> tags, ManagedServiceIdentity identity, RedisCommonConfiguration redisConfiguration, string redisVersion, bool? enableNonSslPort, int? replicasPerMaster, int? replicasPerPrimary, IDictionary<string, string> tenantSettings, int? shardCount, RedisTlsVersion? minimumTlsVersion, RedisPublicNetworkAccess? publicNetworkAccess, UpdateChannel? updateChannel, RedisSku sku)
{
Tags = tags;
Identity = identity;
RedisConfiguration = redisConfiguration;
RedisVersion = redisVersion;
EnableNonSslPort = enableNonSslPort;
ReplicasPerMaster = replicasPerMaster;
ReplicasPerPrimary = replicasPerPrimary;
TenantSettings = tenantSettings;
ShardCount = shardCount;
MinimumTlsVersion = minimumTlsVersion;
PublicNetworkAccess = publicNetworkAccess;
UpdateChannel = updateChannel;
Sku = sku;
}
/// <summary> Resource tags. </summary>
public IDictionary<string, string> Tags { get; }
/// <summary> The identity of the resource. </summary>
public ManagedServiceIdentity Identity { get; set; }
/// <summary> All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc. </summary>
public RedisCommonConfiguration RedisConfiguration { get; set; }
/// <summary> Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'. </summary>
public string RedisVersion { get; set; }
/// <summary> Specifies whether the non-ssl Redis server port (6379) is enabled. </summary>
public bool? EnableNonSslPort { get; set; }
/// <summary> The number of replicas to be created per primary. </summary>
public int? ReplicasPerMaster { get; set; }
/// <summary> The number of replicas to be created per primary. </summary>
public int? ReplicasPerPrimary { get; set; }
/// <summary> A dictionary of tenant settings. </summary>
public IDictionary<string, string> TenantSettings { get; }
/// <summary> The number of shards to be created on a Premium Cluster Cache. </summary>
public int? ShardCount { get; set; }
/// <summary> Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). </summary>
public RedisTlsVersion? MinimumTlsVersion { get; set; }
/// <summary> Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'. </summary>
public RedisPublicNetworkAccess? PublicNetworkAccess { get; set; }
/// <summary> Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'. </summary>
public UpdateChannel? UpdateChannel { get; set; }
/// <summary> The SKU of the Redis cache to deploy. </summary>
public RedisSku Sku { get; set; }
}
}