-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
AppServiceHostName.cs
52 lines (46 loc) · 2.85 KB
/
AppServiceHostName.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
// 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.AppService.Models
{
/// <summary> Details of a hostname derived from a domain. </summary>
public partial class AppServiceHostName
{
/// <summary> Initializes a new instance of AppServiceHostName. </summary>
internal AppServiceHostName()
{
SiteNames = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of AppServiceHostName. </summary>
/// <param name="name"> Name of the hostname. </param>
/// <param name="siteNames"> List of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager. </param>
/// <param name="azureResourceName"> Name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name. </param>
/// <param name="azureResourceType"> Type of the Azure resource the hostname is assigned to. </param>
/// <param name="customHostNameDnsRecordType"> Type of the DNS record. </param>
/// <param name="hostNameType"> Type of the hostname. </param>
internal AppServiceHostName(string name, IReadOnlyList<string> siteNames, string azureResourceName, AppServiceResourceType? azureResourceType, CustomHostNameDnsRecordType? customHostNameDnsRecordType, AppServiceHostNameType? hostNameType)
{
Name = name;
SiteNames = siteNames;
AzureResourceName = azureResourceName;
AzureResourceType = azureResourceType;
CustomHostNameDnsRecordType = customHostNameDnsRecordType;
HostNameType = hostNameType;
}
/// <summary> Name of the hostname. </summary>
public string Name { get; }
/// <summary> List of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager. </summary>
public IReadOnlyList<string> SiteNames { get; }
/// <summary> Name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name. </summary>
public string AzureResourceName { get; }
/// <summary> Type of the Azure resource the hostname is assigned to. </summary>
public AppServiceResourceType? AzureResourceType { get; }
/// <summary> Type of the DNS record. </summary>
public CustomHostNameDnsRecordType? CustomHostNameDnsRecordType { get; }
/// <summary> Type of the hostname. </summary>
public AppServiceHostNameType? HostNameType { get; }
}
}