-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathVirtualInterfaceAddress.cs
More file actions
48 lines (45 loc) · 2.26 KB
/
Copy pathVirtualInterfaceAddress.cs
File metadata and controls
48 lines (45 loc) · 2.26 KB
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
namespace net.openstack.Core.Domain
{
using System.Net;
using net.openstack.Core.Domain.Converters;
using Newtonsoft.Json;
/// <summary>
/// Represents the IP address of a virtual interface on a specific network.
/// </summary>
/// <remarks>
/// <note>
/// Virtual network interfaces are a Rackspace-specific extension to the OpenStack Networking Service.
/// </note>
/// </remarks>
/// <seealso href="http://docs.rackspace.com/networks/api/v2/cn-devguide/content/list_virt_interfaces.html">List Virtual Interfaces (Rackspace Cloud Networks Developer Guide - OpenStack Networking API v2)</seealso>
/// <threadsafety static="true" instance="false"/>
[JsonObject(MemberSerialization.OptIn)]
public class VirtualInterfaceAddress : ExtensibleJsonObject
{
/// <summary>
/// Gets the IP address of the virtual interface.
/// </summary>
/// <seealso href="http://docs.rackspace.com/networks/api/v2/cn-devguide/content/list_virt_interfaces.html">List Virtual Interfaces (Rackspace Cloud Networks Developer Guide - OpenStack Networking API v2)</seealso>
[JsonProperty("address")]
[JsonConverter(typeof(IPAddressSimpleConverter))]
public IPAddress Address
{
get;
private set;
}
/// <summary>
/// Gets the ID of the network this virtual interface is connected to.
/// </summary>
/// <seealso cref="CloudNetwork.Id"/>
/// <seealso href="http://docs.rackspace.com/networks/api/v2/cn-devguide/content/list_virt_interfaces.html">List Virtual Interfaces (Rackspace Cloud Networks Developer Guide - OpenStack Networking API v2)</seealso>
[JsonProperty("network_id")]
public string NetworkId { get; private set; }
/// <summary>
/// Gets the label of the network this virtual interface is connected to.
/// </summary>
/// <seealso cref="CloudNetwork.Label"/>
/// <seealso href="http://docs.rackspace.com/networks/api/v2/cn-devguide/content/list_virt_interfaces.html">List Virtual Interfaces (Rackspace Cloud Networks Developer Guide - OpenStack Networking API v2)</seealso>
[JsonProperty("network_label")]
public string NetworkLabel { get; private set; }
}
}