-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
RemotePrivateEndpointConnection.cs
61 lines (54 loc) · 2.87 KB
/
RemotePrivateEndpointConnection.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using System.Net;
using Azure.Core;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources.Models;
namespace Azure.ResourceManager.AppService.Models
{
/// <summary> A remote private endpoint connection. </summary>
public partial class RemotePrivateEndpointConnection : ResourceData
{
/// <summary> Initializes a new instance of RemotePrivateEndpointConnection. </summary>
public RemotePrivateEndpointConnection()
{
IPAddresses = new ChangeTrackingList<IPAddress>();
}
/// <summary> Initializes a new instance of RemotePrivateEndpointConnection. </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="provisioningState"></param>
/// <param name="privateEndpoint"> PrivateEndpoint of a remote private endpoint connection. </param>
/// <param name="privateLinkServiceConnectionState"> The state of a private link connection. </param>
/// <param name="ipAddresses"> Private IPAddresses mapped to the remote private endpoint. </param>
/// <param name="kind"> Kind of resource. </param>
internal RemotePrivateEndpointConnection(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string provisioningState, SubResource privateEndpoint, PrivateLinkConnectionState privateLinkServiceConnectionState, IList<IPAddress> ipAddresses, string kind) : base(id, name, resourceType, systemData)
{
ProvisioningState = provisioningState;
PrivateEndpoint = privateEndpoint;
PrivateLinkServiceConnectionState = privateLinkServiceConnectionState;
IPAddresses = ipAddresses;
Kind = kind;
}
/// <summary> Gets the provisioning state. </summary>
public string ProvisioningState { get; }
/// <summary> PrivateEndpoint of a remote private endpoint connection. </summary>
internal SubResource PrivateEndpoint { get; set; }
/// <summary> Gets Id. </summary>
public ResourceIdentifier PrivateEndpointId
{
get => PrivateEndpoint is null ? default : PrivateEndpoint.Id;
}
/// <summary> The state of a private link connection. </summary>
public PrivateLinkConnectionState PrivateLinkServiceConnectionState { get; set; }
/// <summary> Private IPAddresses mapped to the remote private endpoint. </summary>
public IList<IPAddress> IPAddresses { get; }
/// <summary> Kind of resource. </summary>
public string Kind { get; set; }
}
}