| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.ResourceManager.Storage.Models |
| | 11 | | { |
| | 12 | | /// <summary> IP rule with specific IP or IP range in CIDR format. </summary> |
| | 13 | | public partial class IPRule |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of IPRule. </summary> |
| | 16 | | /// <param name="iPAddressOrRange"> Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. < |
| 12 | 17 | | public IPRule(string iPAddressOrRange) |
| | 18 | | { |
| 12 | 19 | | if (iPAddressOrRange == null) |
| | 20 | | { |
| 0 | 21 | | throw new ArgumentNullException(nameof(iPAddressOrRange)); |
| | 22 | | } |
| | 23 | |
|
| 12 | 24 | | IPAddressOrRange = iPAddressOrRange; |
| 12 | 25 | | Action = "Allow"; |
| 12 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> Initializes a new instance of IPRule. </summary> |
| | 29 | | /// <param name="iPAddressOrRange"> Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. < |
| | 30 | | /// <param name="action"> The action of IP ACL rule. </param> |
| 96 | 31 | | internal IPRule(string iPAddressOrRange, string action) |
| | 32 | | { |
| 96 | 33 | | IPAddressOrRange = iPAddressOrRange; |
| 96 | 34 | | Action = action; |
| 96 | 35 | | } |
| | 36 | |
|
| | 37 | | /// <summary> Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. </summary> |
| 136 | 38 | | public string IPAddressOrRange { get; set; } |
| | 39 | | /// <summary> The action of IP ACL rule. </summary> |
| 156 | 40 | | public string Action { get; set; } |
| | 41 | | } |
| | 42 | | } |