-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathEndpointTemplateId.cs
More file actions
45 lines (43 loc) · 1.66 KB
/
Copy pathEndpointTemplateId.cs
File metadata and controls
45 lines (43 loc) · 1.66 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
namespace net.openstack.Core.Domain
{
using System;
using net.openstack.Core;
using Newtonsoft.Json;
/// <summary>
/// Represents the unique identifier of an <see cref="EndpointTemplate"/>.
/// </summary>
/// <remarks>
/// <para>This object is part of the <c>OS-KSCATALOG</c> extension to the OpenStack Identity Service V2.</para>
/// </remarks>
/// <seealso cref="EndpointTemplate.Id"/>
/// <threadsafety static="true" instance="false"/>
/// <preliminary/>
[JsonConverter(typeof(EndpointTemplateId.Converter))]
public sealed class EndpointTemplateId : ResourceIdentifier<EndpointTemplateId>
{
/// <summary>
/// Initializes a new instance of the <see cref="EndpointTemplateId"/> class
/// with the specified identifier value.
/// </summary>
/// <param name="id">The identifier value.</param>
/// <exception cref="ArgumentNullException">If <paramref name="id"/> is <see langword="null"/>.</exception>
/// <exception cref="ArgumentException">If <paramref name="id"/> is empty.</exception>
public EndpointTemplateId(string id)
: base(id)
{
}
/// <summary>
/// Provides support for serializing and deserializing <see cref="EndpointTemplateId"/>
/// objects to JSON string values.
/// </summary>
/// <threadsafety static="true" instance="false"/>
private sealed class Converter : ConverterBase
{
/// <inheritdoc/>
protected override EndpointTemplateId FromValue(string id)
{
return new EndpointTemplateId(id);
}
}
}
}