-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
KeyVaultPrivateEndpointConnectionData.cs
69 lines (62 loc) · 3.47 KB
/
KeyVaultPrivateEndpointConnectionData.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
62
63
64
65
66
67
68
69
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure;
using Azure.Core;
using Azure.ResourceManager.KeyVault.Models;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources.Models;
namespace Azure.ResourceManager.KeyVault
{
/// <summary>
/// A class representing the KeyVaultPrivateEndpointConnection data model.
/// Private endpoint connection resource.
/// </summary>
public partial class KeyVaultPrivateEndpointConnectionData : ResourceData
{
/// <summary> Initializes a new instance of KeyVaultPrivateEndpointConnectionData. </summary>
public KeyVaultPrivateEndpointConnectionData()
{
Tags = new ChangeTrackingDictionary<string, string>();
}
/// <summary> Initializes a new instance of KeyVaultPrivateEndpointConnectionData. </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="etag"> Modified whenever there is a change in the state of private endpoint connection. </param>
/// <param name="privateEndpoint"> Properties of the private endpoint object. </param>
/// <param name="connectionState"> Approval state of the private link connection. </param>
/// <param name="provisioningState"> Provisioning state of the private endpoint connection. </param>
/// <param name="location"> Azure location of the key vault resource. </param>
/// <param name="tags"> Tags assigned to the key vault resource. </param>
internal KeyVaultPrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ETag? etag, SubResource privateEndpoint, KeyVaultPrivateLinkServiceConnectionState connectionState, KeyVaultPrivateEndpointConnectionProvisioningState? provisioningState, AzureLocation? location, IReadOnlyDictionary<string, string> tags) : base(id, name, resourceType, systemData)
{
ETag = etag;
PrivateEndpoint = privateEndpoint;
ConnectionState = connectionState;
ProvisioningState = provisioningState;
Location = location;
Tags = tags;
}
/// <summary> Modified whenever there is a change in the state of private endpoint connection. </summary>
public ETag? ETag { get; set; }
/// <summary> Properties of the private endpoint object. </summary>
internal SubResource PrivateEndpoint { get; set; }
/// <summary> Gets Id. </summary>
public ResourceIdentifier PrivateEndpointId
{
get => PrivateEndpoint is null ? default : PrivateEndpoint.Id;
}
/// <summary> Approval state of the private link connection. </summary>
public KeyVaultPrivateLinkServiceConnectionState ConnectionState { get; set; }
/// <summary> Provisioning state of the private endpoint connection. </summary>
public KeyVaultPrivateEndpointConnectionProvisioningState? ProvisioningState { get; }
/// <summary> Azure location of the key vault resource. </summary>
public AzureLocation? Location { get; }
/// <summary> Tags assigned to the key vault resource. </summary>
public IReadOnlyDictionary<string, string> Tags { get; }
}
}