-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MySqlServerPrivateEndpointConnectionProperties.cs
45 lines (38 loc) · 2.1 KB
/
MySqlServerPrivateEndpointConnectionProperties.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
// 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.MySql.Models
{
/// <summary> Properties of a private endpoint connection. </summary>
public partial class MySqlServerPrivateEndpointConnectionProperties
{
/// <summary> Initializes a new instance of MySqlServerPrivateEndpointConnectionProperties. </summary>
internal MySqlServerPrivateEndpointConnectionProperties()
{
}
/// <summary> Initializes a new instance of MySqlServerPrivateEndpointConnectionProperties. </summary>
/// <param name="privateEndpoint"> Private endpoint which the connection belongs to. </param>
/// <param name="privateLinkServiceConnectionState"> Connection state of the private endpoint connection. </param>
/// <param name="provisioningState"> State of the private endpoint connection. </param>
internal MySqlServerPrivateEndpointConnectionProperties(WritableSubResource privateEndpoint, MySqlServerPrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState, MySqlPrivateEndpointProvisioningState? provisioningState)
{
PrivateEndpoint = privateEndpoint;
PrivateLinkServiceConnectionState = privateLinkServiceConnectionState;
ProvisioningState = provisioningState;
}
/// <summary> Private endpoint which the connection belongs to. </summary>
internal WritableSubResource PrivateEndpoint { get; }
/// <summary> Gets or sets Id. </summary>
public ResourceIdentifier PrivateEndpointId
{
get => PrivateEndpoint?.Id;
}
/// <summary> Connection state of the private endpoint connection. </summary>
public MySqlServerPrivateLinkServiceConnectionStateProperty PrivateLinkServiceConnectionState { get; }
/// <summary> State of the private endpoint connection. </summary>
public MySqlPrivateEndpointProvisioningState? ProvisioningState { get; }
}
}