| | 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> Virtual Network rule. </summary> |
| | 13 | | public partial class VirtualNetworkRule |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of VirtualNetworkRule. </summary> |
| | 16 | | /// <param name="virtualNetworkResourceId"> Resource ID of a subnet, for example: /subscriptions/{subscriptionId |
| 0 | 17 | | public VirtualNetworkRule(string virtualNetworkResourceId) |
| | 18 | | { |
| 0 | 19 | | if (virtualNetworkResourceId == null) |
| | 20 | | { |
| 0 | 21 | | throw new ArgumentNullException(nameof(virtualNetworkResourceId)); |
| | 22 | | } |
| | 23 | |
|
| 0 | 24 | | VirtualNetworkResourceId = virtualNetworkResourceId; |
| 0 | 25 | | Action = "Allow"; |
| 0 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> Initializes a new instance of VirtualNetworkRule. </summary> |
| | 29 | | /// <param name="virtualNetworkResourceId"> Resource ID of a subnet, for example: /subscriptions/{subscriptionId |
| | 30 | | /// <param name="action"> The action of virtual network rule. </param> |
| | 31 | | /// <param name="state"> Gets the state of virtual network rule. </param> |
| 16 | 32 | | internal VirtualNetworkRule(string virtualNetworkResourceId, string action, State? state) |
| | 33 | | { |
| 16 | 34 | | VirtualNetworkResourceId = virtualNetworkResourceId; |
| 16 | 35 | | Action = action; |
| 16 | 36 | | State = state; |
| 16 | 37 | | } |
| | 38 | |
|
| | 39 | | /// <summary> Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/p |
| 0 | 40 | | public string VirtualNetworkResourceId { get; set; } |
| | 41 | | /// <summary> The action of virtual network rule. </summary> |
| 0 | 42 | | public string Action { get; set; } |
| | 43 | | /// <summary> Gets the state of virtual network rule. </summary> |
| 0 | 44 | | public State? State { get; set; } |
| | 45 | | } |
| | 46 | | } |