-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
BatchEndpointAccessProfile.cs
38 lines (32 loc) · 1.69 KB
/
BatchEndpointAccessProfile.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.Batch.Models
{
/// <summary> Network access profile for Batch endpoint. </summary>
public partial class BatchEndpointAccessProfile
{
/// <summary> Initializes a new instance of <see cref="BatchEndpointAccessProfile"/>. </summary>
/// <param name="defaultAction"> Default action for endpoint access. It is only applicable when publicNetworkAccess is enabled. </param>
public BatchEndpointAccessProfile(BatchEndpointAccessDefaultAction defaultAction)
{
DefaultAction = defaultAction;
IPRules = new ChangeTrackingList<BatchIPRule>();
}
/// <summary> Initializes a new instance of <see cref="BatchEndpointAccessProfile"/>. </summary>
/// <param name="defaultAction"> Default action for endpoint access. It is only applicable when publicNetworkAccess is enabled. </param>
/// <param name="ipRules"> Array of IP ranges to filter client IP address. </param>
internal BatchEndpointAccessProfile(BatchEndpointAccessDefaultAction defaultAction, IList<BatchIPRule> ipRules)
{
DefaultAction = defaultAction;
IPRules = ipRules;
}
/// <summary> Default action for endpoint access. It is only applicable when publicNetworkAccess is enabled. </summary>
public BatchEndpointAccessDefaultAction DefaultAction { get; set; }
/// <summary> Array of IP ranges to filter client IP address. </summary>
public IList<BatchIPRule> IPRules { get; }
}
}