-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
CustomHostnameAnalysisResult.cs
87 lines (80 loc) · 5.56 KB
/
CustomHostnameAnalysisResult.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
// 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.Models;
namespace Azure.ResourceManager.Applications.Containers.Models
{
/// <summary> Custom domain analysis. </summary>
public partial class CustomHostnameAnalysisResult : ResourceData
{
/// <summary> Initializes a new instance of CustomHostnameAnalysisResult. </summary>
public CustomHostnameAnalysisResult()
{
CNameRecords = new ChangeTrackingList<string>();
TxtRecords = new ChangeTrackingList<string>();
ARecords = new ChangeTrackingList<string>();
AlternateCNameRecords = new ChangeTrackingList<string>();
AlternateTxtRecords = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of CustomHostnameAnalysisResult. </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="hostName"> Host name that was analyzed. </param>
/// <param name="isHostnameAlreadyVerified"> <code>true</code> if hostname is already verified; otherwise, <code>false</code>. </param>
/// <param name="customDomainVerificationTest"> DNS verification test result. </param>
/// <param name="customDomainVerificationFailureInfo"> Raw failure information if DNS verification fails. </param>
/// <param name="hasConflictOnManagedEnvironment"> <code>true</code> if there is a conflict on the Container App's managed environment; otherwise, <code>false</code>. </param>
/// <param name="conflictingContainerAppResourceId"> Name of the conflicting Container App on the Managed Environment if it's within the same subscription. </param>
/// <param name="cNameRecords"> CName records visible for this hostname. </param>
/// <param name="txtRecords"> TXT records visible for this hostname. </param>
/// <param name="aRecords"> A records visible for this hostname. </param>
/// <param name="alternateCNameRecords"> Alternate CName records visible for this hostname. </param>
/// <param name="alternateTxtRecords"> Alternate TXT records visible for this hostname. </param>
internal CustomHostnameAnalysisResult(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string hostName, bool? isHostnameAlreadyVerified, DnsVerificationTestResult? customDomainVerificationTest, DefaultErrorResponse customDomainVerificationFailureInfo, bool? hasConflictOnManagedEnvironment, string conflictingContainerAppResourceId, IList<string> cNameRecords, IList<string> txtRecords, IList<string> aRecords, IList<string> alternateCNameRecords, IList<string> alternateTxtRecords) : base(id, name, resourceType, systemData)
{
HostName = hostName;
IsHostnameAlreadyVerified = isHostnameAlreadyVerified;
CustomDomainVerificationTest = customDomainVerificationTest;
CustomDomainVerificationFailureInfo = customDomainVerificationFailureInfo;
HasConflictOnManagedEnvironment = hasConflictOnManagedEnvironment;
ConflictingContainerAppResourceId = conflictingContainerAppResourceId;
CNameRecords = cNameRecords;
TxtRecords = txtRecords;
ARecords = aRecords;
AlternateCNameRecords = alternateCNameRecords;
AlternateTxtRecords = alternateTxtRecords;
}
/// <summary> Host name that was analyzed. </summary>
public string HostName { get; }
/// <summary> <code>true</code> if hostname is already verified; otherwise, <code>false</code>. </summary>
public bool? IsHostnameAlreadyVerified { get; }
/// <summary> DNS verification test result. </summary>
public DnsVerificationTestResult? CustomDomainVerificationTest { get; }
/// <summary> Raw failure information if DNS verification fails. </summary>
internal DefaultErrorResponse CustomDomainVerificationFailureInfo { get; }
/// <summary> Error model. </summary>
public DefaultErrorResponseError CustomDomainVerificationFailureInfoError
{
get => CustomDomainVerificationFailureInfo?.Error;
}
/// <summary> <code>true</code> if there is a conflict on the Container App's managed environment; otherwise, <code>false</code>. </summary>
public bool? HasConflictOnManagedEnvironment { get; }
/// <summary> Name of the conflicting Container App on the Managed Environment if it's within the same subscription. </summary>
public string ConflictingContainerAppResourceId { get; }
/// <summary> CName records visible for this hostname. </summary>
public IList<string> CNameRecords { get; }
/// <summary> TXT records visible for this hostname. </summary>
public IList<string> TxtRecords { get; }
/// <summary> A records visible for this hostname. </summary>
public IList<string> ARecords { get; }
/// <summary> Alternate CName records visible for this hostname. </summary>
public IList<string> AlternateCNameRecords { get; }
/// <summary> Alternate TXT records visible for this hostname. </summary>
public IList<string> AlternateTxtRecords { get; }
}
}