Table of Contents

Class CreateSchemaVersionAttributes

Namespace
Azure.Iot.Operations.Services.EdgeRegistry.Generated
Assembly
Azure.Iot.Operations.Services.dll

Request payload for creating a Schema version.

public class CreateSchemaVersionAttributes : IJsonOnDeserialized, IJsonOnSerializing
Inheritance
CreateSchemaVersionAttributes
Implements
Inherited Members

Properties

Ancestor

The versionId of this version's ancestor if it has an ancestor.

[JsonPropertyName("ancestor")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ulong? Ancestor { get; set; }

Property Value

ulong?

ContentType

Content type of the schema version.

[JsonPropertyName("contentType")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? ContentType { get; set; }

Property Value

string

Description

[JsonPropertyName("description")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Description { get; set; }

Property Value

string

Documentation

[JsonPropertyName("documentation")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Documentation { get; set; }

Property Value

string

Format

Schema format identifier, e.g. JsonSchema/draft-07, Protobuf/3.

[JsonPropertyName("format")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Format { get; set; }

Property Value

string

GroupId

[JsonPropertyName("groupId")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonRequired]
public string GroupId { get; set; }

Property Value

string

Labels

[JsonPropertyName("labels")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonRequired]
public Dictionary<string, string> Labels { get; set; }

Property Value

Dictionary<string, string>

Name

[JsonPropertyName("name")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Name { get; set; }

Property Value

string

SchemaDocument

Base64-encoded schema document content.

[JsonPropertyName("schemaDocument")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonRequired]
public byte[] SchemaDocument { get; set; }

Property Value

byte[]

SchemaId

[JsonPropertyName("schemaId")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonRequired]
public string SchemaId { get; set; }

Property Value

string