Table of Contents

Class CreateVersionRequestPayload

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

Request payload for creating a generic xRegistry Version entity. The parent Resource is implicitly created if it doesn't already exist. Create is strictly idempotent: if every field matches the latest Version of the parent Resource (including labels), the latest Version is returned; otherwise a new Version is created.

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

Properties

GroupId

Group identifier. Uses the default if not specified.

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

Property Value

string

ResourceLabels

Queryable Key Value pairs to be added to the parent Resource. The parent Resource is implicitly created if it doesn't already exist.

[JsonPropertyName("resourceLabels")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonRequired]
public List<Label> ResourceLabels { get; set; }

Property Value

List<Label>

Version

The attributes of the Version to create.

[JsonPropertyName("version")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonRequired]
public VersionAttributes Version { get; set; }

Property Value

VersionAttributes

VersionId

Version identifier of the Version to create. If omitted, the server determines the versionId.

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

Property Value

string