Table of Contents

Class ListVersionsRequestPayload

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

Request payload for listing xRegistry Versions, optionally filtered by Group type, Group, Resource type, Resource, and/or label.

public class ListVersionsRequestPayload
Inheritance
ListVersionsRequestPayload
Inherited Members

Properties

AllGroups

If true, lists Versions across all Groups (groupId is ignored). If false, lists within the Group specified by groupId, or — only when groupType is specified — the default Group of that type if groupId is unspecified.

[JsonPropertyName("allGroups")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonRequired]
public bool AllGroups { get; set; }

Property Value

bool

GroupId

Group identifier. Ignored if allGroups is true. If not specified, the default Group of the specified groupType is used; this default is only valid when groupType is specified, so groupId must be provided when groupType is not.

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

Property Value

string

GroupType

Group type. If not specified, Versions are listed across all Group types; in that case groupId must be specified explicitly or allGroups must be true, because the default Group only exists within a specific Group type.

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

Property Value

string

Label

If specified, only Versions with this label are listed.

[JsonPropertyName("label")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Label? Label { get; set; }

Property Value

Label

ResourceId

Resource identifier. If specified, only Versions of the Resource with this identifier are listed; when resourceType is not specified, this identifier is matched across all Resource types. Lists Versions across all Resources if not specified.

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

Property Value

string

ResourceType

Resource type. If specified, only Versions of Resources of this type are listed; when listing across all Groups, Resources of this type are matched across all Groups. Lists Versions across all Resource types if not specified.

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

Property Value

string