-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathEndpointTemplate.cs
More file actions
64 lines (59 loc) · 2.26 KB
/
Copy pathEndpointTemplate.cs
File metadata and controls
64 lines (59 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
namespace net.openstack.Core.Domain
{
using System;
using System.Diagnostics;
using Newtonsoft.Json;
/// <summary>
/// This class models the JSON representation of an endpoint template resource in the OpenStack Identity Service V2.
/// </summary>
/// <remarks>
/// <para>This object is part of the <c>OS-KSCATALOG</c> extension to the OpenStack Identity Service V2.</para>
/// </remarks>
/// <seealso href="http://developer.openstack.org/api-ref-identity-v2.html#os-kscatalog-ext">OS-KSCATALOG admin extension (Identity API v2.0 - OpenStack Complete API Reference)</seealso>
/// <threadsafety static="true" instance="false"/>
/// <preliminary/>
[JsonObject(MemberSerialization.OptIn)]
[DebuggerDisplay("{Id, nq}")]
public class EndpointTemplate : ExtensibleJsonObject
{
/// <summary>
/// This is the backing field for the <see cref="Id"/> property.
/// </summary>
[JsonProperty("id", DefaultValueHandling = DefaultValueHandling.Ignore)]
private EndpointTemplateId _id;
/// <summary>
/// Initializes a new instance of the <see cref="EndpointTemplate"/> class
/// during JSON deserialization.
/// </summary>
[JsonConstructor]
protected EndpointTemplate()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="EndpointTemplate"/> class with the specified endpoint template
/// identifier.
/// </summary>
/// <param name="id">The unique identifier of the endpoint template.</param>
/// <exception cref="ArgumentNullException">If <paramref name="id"/> is <see langword="null"/>.</exception>
public EndpointTemplate(EndpointTemplateId id)
{
if (id == null)
throw new ArgumentNullException("id");
_id = id;
}
/// <summary>
/// Gets the unique identifier for the endpoint template.
/// </summary>
/// <value>
/// <para>The unique identifier for the endpoint template.</para>
/// <token>NullIfNotIncluded</token>
/// </value>
public EndpointTemplateId Id
{
get
{
return _id;
}
}
}
}