-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
BackupPrivateEndpointConnectionProperties.cs
57 lines (50 loc) · 2.87 KB
/
BackupPrivateEndpointConnectionProperties.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
// 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.Resources.Models;
namespace Azure.ResourceManager.RecoveryServicesBackup.Models
{
/// <summary> Private Endpoint Connection Response Properties. </summary>
public partial class BackupPrivateEndpointConnectionProperties
{
/// <summary> Initializes a new instance of <see cref="BackupPrivateEndpointConnectionProperties"/>. </summary>
public BackupPrivateEndpointConnectionProperties()
{
GroupIds = new ChangeTrackingList<VaultSubResourceType>();
}
/// <summary> Initializes a new instance of <see cref="BackupPrivateEndpointConnectionProperties"/>. </summary>
/// <param name="provisioningState"> Gets or sets provisioning state of the private endpoint connection. </param>
/// <param name="privateEndpoint"> Gets or sets private endpoint associated with the private endpoint connection. </param>
/// <param name="groupIds"> Group Ids for the Private Endpoint. </param>
/// <param name="privateLinkServiceConnectionState"> Gets or sets private link service connection state. </param>
internal BackupPrivateEndpointConnectionProperties(BackupPrivateEndpointConnectionProvisioningState? provisioningState, WritableSubResource privateEndpoint, IList<VaultSubResourceType> groupIds, RecoveryServicesBackupPrivateLinkServiceConnectionState privateLinkServiceConnectionState)
{
ProvisioningState = provisioningState;
PrivateEndpoint = privateEndpoint;
GroupIds = groupIds;
PrivateLinkServiceConnectionState = privateLinkServiceConnectionState;
}
/// <summary> Gets or sets provisioning state of the private endpoint connection. </summary>
public BackupPrivateEndpointConnectionProvisioningState? ProvisioningState { get; set; }
/// <summary> Gets or sets private endpoint associated with the private endpoint connection. </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;
}
}
/// <summary> Group Ids for the Private Endpoint. </summary>
public IList<VaultSubResourceType> GroupIds { get; }
/// <summary> Gets or sets private link service connection state. </summary>
public RecoveryServicesBackupPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; }
}
}