-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
Module.cs
46 lines (39 loc) · 1.88 KB
/
Module.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
namespace Azure.ResourceManager.RedisEnterpriseCache.Models
{
/// <summary> Specifies configuration of a redis module. </summary>
public partial class Module
{
/// <summary> Initializes a new instance of Module. </summary>
/// <param name="name"> The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'. </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception>
public Module(string name)
{
if (name == null)
{
throw new ArgumentNullException(nameof(name));
}
Name = name;
}
/// <summary> Initializes a new instance of Module. </summary>
/// <param name="name"> The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'. </param>
/// <param name="args"> Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'. </param>
/// <param name="version"> The version of the module, e.g. '1.0'. </param>
internal Module(string name, string args, string version)
{
Name = name;
Args = args;
Version = version;
}
/// <summary> The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'. </summary>
public string Name { get; set; }
/// <summary> Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'. </summary>
public string Args { get; set; }
/// <summary> The version of the module, e.g. '1.0'. </summary>
public string Version { get; }
}
}