/
AppServiceEnvironmentData.cs
115 lines (109 loc) · 7.36 KB
/
AppServiceEnvironmentData.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.AppService.Models;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.AppService
{
/// <summary>
/// A class representing the AppServiceEnvironment data model.
/// App Service Environment ARM resource.
/// </summary>
public partial class AppServiceEnvironmentData : TrackedResourceData
{
/// <summary> Initializes a new instance of AppServiceEnvironmentData. </summary>
/// <param name="location"> The location. </param>
public AppServiceEnvironmentData(AzureLocation location) : base(location)
{
ClusterSettings = new ChangeTrackingList<AppServiceNameValuePair>();
UserWhitelistedIPRanges = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of AppServiceEnvironmentData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="tags"> The tags. </param>
/// <param name="location"> The location. </param>
/// <param name="provisioningState"> Provisioning state of the App Service Environment. </param>
/// <param name="status"> Current status of the App Service Environment. </param>
/// <param name="virtualNetwork"> Description of the Virtual Network. </param>
/// <param name="internalLoadBalancingMode"> Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. </param>
/// <param name="multiSize"> Front-end VM size, e.g. "Medium", "Large". </param>
/// <param name="multiRoleCount"> Number of front-end instances. </param>
/// <param name="ipSslAddressCount"> Number of IP SSL addresses reserved for the App Service Environment. </param>
/// <param name="dnsSuffix"> DNS suffix of the App Service Environment. </param>
/// <param name="maximumNumberOfMachines"> Maximum number of VMs in the App Service Environment. </param>
/// <param name="frontEndScaleFactor"> Scale factor for front-ends. </param>
/// <param name="isSuspended">
/// <code>true</code> if the App Service Environment is suspended; otherwise, <code>false</code>. The environment can be suspended, e.g. when the management endpoint is no longer available
/// (most likely because NSG blocked the incoming traffic).
/// </param>
/// <param name="clusterSettings"> Custom settings for changing the behavior of the App Service Environment. </param>
/// <param name="userWhitelistedIPRanges"> User added ip ranges to whitelist on ASE db. </param>
/// <param name="hasLinuxWorkers"> Flag that displays whether an ASE has linux workers or not. </param>
/// <param name="dedicatedHostCount"> Dedicated Host Count. </param>
/// <param name="isZoneRedundant"> Whether or not this App Service Environment is zone-redundant. </param>
/// <param name="kind"> Kind of resource. </param>
internal AppServiceEnvironmentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary<string, string> tags, AzureLocation location, ProvisioningState? provisioningState, HostingEnvironmentStatus? status, AppServiceVirtualNetworkProfile virtualNetwork, LoadBalancingMode? internalLoadBalancingMode, string multiSize, int? multiRoleCount, int? ipSslAddressCount, string dnsSuffix, int? maximumNumberOfMachines, int? frontEndScaleFactor, bool? isSuspended, IList<AppServiceNameValuePair> clusterSettings, IList<string> userWhitelistedIPRanges, bool? hasLinuxWorkers, int? dedicatedHostCount, bool? isZoneRedundant, string kind) : base(id, name, resourceType, systemData, tags, location)
{
ProvisioningState = provisioningState;
Status = status;
VirtualNetwork = virtualNetwork;
InternalLoadBalancingMode = internalLoadBalancingMode;
MultiSize = multiSize;
MultiRoleCount = multiRoleCount;
IPSslAddressCount = ipSslAddressCount;
DnsSuffix = dnsSuffix;
MaximumNumberOfMachines = maximumNumberOfMachines;
FrontEndScaleFactor = frontEndScaleFactor;
IsSuspended = isSuspended;
ClusterSettings = clusterSettings;
UserWhitelistedIPRanges = userWhitelistedIPRanges;
HasLinuxWorkers = hasLinuxWorkers;
DedicatedHostCount = dedicatedHostCount;
IsZoneRedundant = isZoneRedundant;
Kind = kind;
}
/// <summary> Provisioning state of the App Service Environment. </summary>
public ProvisioningState? ProvisioningState { get; }
/// <summary> Current status of the App Service Environment. </summary>
public HostingEnvironmentStatus? Status { get; }
/// <summary> Description of the Virtual Network. </summary>
public AppServiceVirtualNetworkProfile VirtualNetwork { get; set; }
/// <summary> Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. </summary>
public LoadBalancingMode? InternalLoadBalancingMode { get; set; }
/// <summary> Front-end VM size, e.g. "Medium", "Large". </summary>
public string MultiSize { get; set; }
/// <summary> Number of front-end instances. </summary>
public int? MultiRoleCount { get; }
/// <summary> Number of IP SSL addresses reserved for the App Service Environment. </summary>
public int? IPSslAddressCount { get; set; }
/// <summary> DNS suffix of the App Service Environment. </summary>
public string DnsSuffix { get; set; }
/// <summary> Maximum number of VMs in the App Service Environment. </summary>
public int? MaximumNumberOfMachines { get; }
/// <summary> Scale factor for front-ends. </summary>
public int? FrontEndScaleFactor { get; set; }
/// <summary>
/// <code>true</code> if the App Service Environment is suspended; otherwise, <code>false</code>. The environment can be suspended, e.g. when the management endpoint is no longer available
/// (most likely because NSG blocked the incoming traffic).
/// </summary>
public bool? IsSuspended { get; }
/// <summary> Custom settings for changing the behavior of the App Service Environment. </summary>
public IList<AppServiceNameValuePair> ClusterSettings { get; }
/// <summary> User added ip ranges to whitelist on ASE db. </summary>
public IList<string> UserWhitelistedIPRanges { get; }
/// <summary> Flag that displays whether an ASE has linux workers or not. </summary>
public bool? HasLinuxWorkers { get; }
/// <summary> Dedicated Host Count. </summary>
public int? DedicatedHostCount { get; set; }
/// <summary> Whether or not this App Service Environment is zone-redundant. </summary>
public bool? IsZoneRedundant { get; set; }
/// <summary> Kind of resource. </summary>
public string Kind { get; set; }
}
}