-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
JitNetworkAccessRequestVirtualMachine.cs
45 lines (38 loc) · 1.91 KB
/
JitNetworkAccessRequestVirtualMachine.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 System;
using System.Collections.Generic;
using System.Linq;
using Azure.Core;
namespace Azure.ResourceManager.SecurityCenter.Models
{
/// <summary> The JitNetworkAccessRequestVirtualMachine. </summary>
public partial class JitNetworkAccessRequestVirtualMachine
{
/// <summary> Initializes a new instance of JitNetworkAccessRequestVirtualMachine. </summary>
/// <param name="id"> Resource ID of the virtual machine that is linked to this policy. </param>
/// <param name="ports"> The ports that were opened for the virtual machine. </param>
/// <exception cref="ArgumentNullException"> <paramref name="id"/> or <paramref name="ports"/> is null. </exception>
public JitNetworkAccessRequestVirtualMachine(ResourceIdentifier id, IEnumerable<JitNetworkAccessRequestPort> ports)
{
Argument.AssertNotNull(id, nameof(id));
Argument.AssertNotNull(ports, nameof(ports));
Id = id;
Ports = ports.ToList();
}
/// <summary> Initializes a new instance of JitNetworkAccessRequestVirtualMachine. </summary>
/// <param name="id"> Resource ID of the virtual machine that is linked to this policy. </param>
/// <param name="ports"> The ports that were opened for the virtual machine. </param>
internal JitNetworkAccessRequestVirtualMachine(ResourceIdentifier id, IList<JitNetworkAccessRequestPort> ports)
{
Id = id;
Ports = ports;
}
/// <summary> Resource ID of the virtual machine that is linked to this policy. </summary>
public ResourceIdentifier Id { get; set; }
/// <summary> The ports that were opened for the virtual machine. </summary>
public IList<JitNetworkAccessRequestPort> Ports { get; }
}
}