/
PrivateLinkConnectionApprovalRequest.cs
46 lines (40 loc) · 1.88 KB
/
PrivateLinkConnectionApprovalRequest.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using Azure.Core;
using Azure.ResourceManager.Resources.Models;
namespace Azure.ResourceManager.DataFactory.Models
{
/// <summary> A request to approve or reject a private endpoint connection. </summary>
public partial class PrivateLinkConnectionApprovalRequest
{
/// <summary> Initializes a new instance of <see cref="PrivateLinkConnectionApprovalRequest"/>. </summary>
public PrivateLinkConnectionApprovalRequest()
{
}
/// <summary> Initializes a new instance of <see cref="PrivateLinkConnectionApprovalRequest"/>. </summary>
/// <param name="privateLinkServiceConnectionState"> The state of a private link connection. </param>
/// <param name="privateEndpoint"> The resource of private endpoint. </param>
internal PrivateLinkConnectionApprovalRequest(PrivateLinkConnectionState privateLinkServiceConnectionState, WritableSubResource privateEndpoint)
{
PrivateLinkServiceConnectionState = privateLinkServiceConnectionState;
PrivateEndpoint = privateEndpoint;
}
/// <summary> The state of a private link connection. </summary>
public PrivateLinkConnectionState PrivateLinkServiceConnectionState { get; set; }
/// <summary> The resource of private endpoint. </summary>
internal WritableSubResource PrivateEndpoint { get; set; }
/// <summary> Gets or sets Id. </summary>
public ResourceIdentifier PrivateEndpointId
{
get => PrivateEndpoint is null ? default : PrivateEndpoint.Id;
set
{
if (PrivateEndpoint is null)
PrivateEndpoint = new WritableSubResource();
PrivateEndpoint.Id = value;
}
}
}
}