-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
FrontDoorCustomDomainHttpsContent.cs
51 lines (45 loc) · 2.24 KB
/
FrontDoorCustomDomainHttpsContent.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using Azure.Core;
namespace Azure.ResourceManager.Cdn.Models
{
/// <summary> The JSON object that contains the properties to secure a domain. </summary>
public partial class FrontDoorCustomDomainHttpsContent
{
/// <summary> Initializes a new instance of FrontDoorCustomDomainHttpsContent. </summary>
/// <param name="certificateType"> Defines the source of the SSL certificate. </param>
public FrontDoorCustomDomainHttpsContent(FrontDoorCertificateType certificateType)
{
CertificateType = certificateType;
}
/// <summary> Initializes a new instance of FrontDoorCustomDomainHttpsContent. </summary>
/// <param name="certificateType"> Defines the source of the SSL certificate. </param>
/// <param name="minimumTlsVersion"> TLS protocol version that will be used for Https. </param>
/// <param name="secret"> Resource reference to the secret. ie. subs/rg/profile/secret. </param>
internal FrontDoorCustomDomainHttpsContent(FrontDoorCertificateType certificateType, FrontDoorMinimumTlsVersion? minimumTlsVersion, FrontDoorCustomDomainHttpsContentSecret secret)
{
CertificateType = certificateType;
MinimumTlsVersion = minimumTlsVersion;
Secret = secret;
}
/// <summary> Defines the source of the SSL certificate. </summary>
public FrontDoorCertificateType CertificateType { get; set; }
/// <summary> TLS protocol version that will be used for Https. </summary>
public FrontDoorMinimumTlsVersion? MinimumTlsVersion { get; set; }
/// <summary> Resource reference to the secret. ie. subs/rg/profile/secret. </summary>
internal FrontDoorCustomDomainHttpsContentSecret Secret { get; set; }
/// <summary> Resource ID. </summary>
public ResourceIdentifier SecretId
{
get => Secret is null ? default : Secret.Id;
set
{
if (Secret is null)
Secret = new FrontDoorCustomDomainHttpsContentSecret();
Secret.Id = value;
}
}
}
}