-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
StorageAccountIPRule.cs
40 lines (33 loc) · 1.63 KB
/
StorageAccountIPRule.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.Storage.Models
{
/// <summary> IP rule with specific IP or IP range in CIDR format. </summary>
public partial class StorageAccountIPRule
{
/// <summary> Initializes a new instance of StorageAccountIPRule. </summary>
/// <param name="ipAddressOrRange"> Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. </param>
/// <exception cref="ArgumentNullException"> <paramref name="ipAddressOrRange"/> is null. </exception>
public StorageAccountIPRule(string ipAddressOrRange)
{
Argument.AssertNotNull(ipAddressOrRange, nameof(ipAddressOrRange));
IPAddressOrRange = ipAddressOrRange;
}
/// <summary> Initializes a new instance of StorageAccountIPRule. </summary>
/// <param name="ipAddressOrRange"> Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. </param>
/// <param name="action"> The action of IP ACL rule. </param>
internal StorageAccountIPRule(string ipAddressOrRange, StorageAccountNetworkRuleAction? action)
{
IPAddressOrRange = ipAddressOrRange;
Action = action;
}
/// <summary> Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. </summary>
public string IPAddressOrRange { get; set; }
/// <summary> The action of IP ACL rule. </summary>
public StorageAccountNetworkRuleAction? Action { get; set; }
}
}