-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
DeviceUpdatePrivateEndpointConnectionData.cs
66 lines (58 loc) · 3.44 KB
/
DeviceUpdatePrivateEndpointConnectionData.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.DeviceUpdate.Models;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources.Models;
namespace Azure.ResourceManager.DeviceUpdate
{
/// <summary>
/// A class representing the DeviceUpdatePrivateEndpointConnection data model.
/// The Private Endpoint Connection resource.
/// </summary>
public partial class DeviceUpdatePrivateEndpointConnectionData : ResourceData
{
/// <summary> Initializes a new instance of DeviceUpdatePrivateEndpointConnectionData. </summary>
/// <param name="connectionState"> A collection of information about the state of the connection between service consumer and provider. </param>
/// <exception cref="ArgumentNullException"> <paramref name="connectionState"/> is null. </exception>
public DeviceUpdatePrivateEndpointConnectionData(DeviceUpdatePrivateLinkServiceConnectionState connectionState)
{
Argument.AssertNotNull(connectionState, nameof(connectionState));
ConnectionState = connectionState;
GroupIds = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of DeviceUpdatePrivateEndpointConnectionData. </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="privateEndpoint"> The resource of private end point. </param>
/// <param name="connectionState"> A collection of information about the state of the connection between service consumer and provider. </param>
/// <param name="groupIds"> Array of group IDs. </param>
/// <param name="provisioningState"> The provisioning state of the private endpoint connection resource. </param>
internal DeviceUpdatePrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SubResource privateEndpoint, DeviceUpdatePrivateLinkServiceConnectionState connectionState, IList<string> groupIds, DeviceUpdatePrivateEndpointConnectionProvisioningState? provisioningState) : base(id, name, resourceType, systemData)
{
PrivateEndpoint = privateEndpoint;
ConnectionState = connectionState;
GroupIds = groupIds;
ProvisioningState = provisioningState;
}
/// <summary> The resource of private end point. </summary>
internal SubResource PrivateEndpoint { get; set; }
/// <summary> Gets Id. </summary>
public ResourceIdentifier PrivateEndpointId
{
get => PrivateEndpoint is null ? default : PrivateEndpoint.Id;
}
/// <summary> A collection of information about the state of the connection between service consumer and provider. </summary>
public DeviceUpdatePrivateLinkServiceConnectionState ConnectionState { get; set; }
/// <summary> Array of group IDs. </summary>
public IList<string> GroupIds { get; }
/// <summary> The provisioning state of the private endpoint connection resource. </summary>
public DeviceUpdatePrivateEndpointConnectionProvisioningState? ProvisioningState { get; }
}
}