/
SchemaProperties.cs
39 lines (34 loc) · 1.07 KB
/
SchemaProperties.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
namespace Azure.Data.SchemaRegistry
{
/// <summary>
/// Properties for a SchemaRegistry schema.
/// </summary>
public class SchemaProperties
{
internal SchemaProperties(string location, SchemaFormat format, string schemaId, int? schemaVersion)
{
Id = schemaId;
Location = location;
Format = format;
Version = schemaVersion ?? 0;
}
/// <summary>
/// The schema ID that uniquely identifies a schema in the registry namespace.
/// </summary>
public string Id { get; }
/// <summary>
/// The location of the schema.
/// </summary>
internal string Location { get; }
/// <summary>
/// Serialization type for the schema being stored.
/// </summary>
public SchemaFormat Format { get; }
/// <summary>
/// Version of the schema.
/// </summary>
internal int Version { get; }
}
}