| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.Management.Search.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Network specific rules that determine how the Azure Cognitive Search |
| | 20 | | /// service may be reached. |
| | 21 | | /// </summary> |
| | 22 | | public partial class NetworkRuleSet |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Initializes a new instance of the NetworkRuleSet class. |
| | 26 | | /// </summary> |
| 602 | 27 | | public NetworkRuleSet() |
| | 28 | | { |
| | 29 | | CustomInit(); |
| 602 | 30 | | } |
| | 31 | |
|
| | 32 | | /// <summary> |
| | 33 | | /// Initializes a new instance of the NetworkRuleSet class. |
| | 34 | | /// </summary> |
| | 35 | | /// <param name="ipRules">A list of IP restriction rules that defines |
| | 36 | | /// the inbound network(s) with allowing access to the search service |
| | 37 | | /// endpoint. At the meantime, all other public IP networks are blocked |
| | 38 | | /// by the firewall. These restriction rules are applied only when the |
| | 39 | | /// 'publicNetworkAccess' of the search service is 'enabled'; |
| | 40 | | /// otherwise, traffic over public interface is not allowed even with |
| | 41 | | /// any public IP rules, and private endpoint connections would be the |
| | 42 | | /// exclusive access method.</param> |
| 0 | 43 | | public NetworkRuleSet(IList<IpRule> ipRules = default(IList<IpRule>)) |
| | 44 | | { |
| 0 | 45 | | IpRules = ipRules; |
| | 46 | | CustomInit(); |
| 0 | 47 | | } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// An initialization method that performs custom operations like setting defaults |
| | 51 | | /// </summary> |
| | 52 | | partial void CustomInit(); |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// Gets or sets a list of IP restriction rules that defines the |
| | 56 | | /// inbound network(s) with allowing access to the search service |
| | 57 | | /// endpoint. At the meantime, all other public IP networks are blocked |
| | 58 | | /// by the firewall. These restriction rules are applied only when the |
| | 59 | | /// 'publicNetworkAccess' of the search service is 'enabled'; |
| | 60 | | /// otherwise, traffic over public interface is not allowed even with |
| | 61 | | /// any public IP rules, and private endpoint connections would be the |
| | 62 | | /// exclusive access method. |
| | 63 | | /// </summary> |
| | 64 | | [JsonProperty(PropertyName = "ipRules")] |
| 1204 | 65 | | public IList<IpRule> IpRules { get; set; } |
| | 66 | |
|
| | 67 | | } |
| | 68 | | } |