IResourceListItem.cs (1668B)
1 // ----------------------------------------------------------------------------- 2 // <copyright file="IResourceListItem.cs" company="Microsoft Corporation"> 3 // Copyright (c) Microsoft Corporation. Licensed under the MIT License. 4 // </copyright> 5 // ----------------------------------------------------------------------------- 6 7 namespace Microsoft.Management.Configuration.Processor.DSCv3.Model 8 { 9 /// <summary> 10 /// The interface to a single JSON line output by the `resource list` command. 11 /// </summary> 12 internal interface IResourceListItem 13 { 14 /// <summary> 15 /// Gets the type of the resource. 16 /// Should match the regex "^\\w+(\\.\\w+){0,2}\\/\\w+$". 17 /// </summary> 18 public string Type { get; } 19 20 /// <summary> 21 /// Gets the kind of the resource. 22 /// </summary> 23 public ResourceKind Kind { get; } 24 25 /// <summary> 26 /// Gets the version of the resource. 27 /// This is a semver version. 28 /// </summary> 29 public string? Version { get; } 30 31 /// <summary> 32 /// Gets the description of the resource. 33 /// </summary> 34 public string? Description { get; } 35 36 /// <summary> 37 /// Gets the path to the directory containing the resource. 38 /// </summary> 39 public string? Directory { get; } 40 41 /// <summary> 42 /// Gets the author of the resource. 43 /// </summary> 44 public string? Author { get; } 45 46 /// <summary> 47 /// Gets the path of the resource. 48 /// </summary> 49 public string? Path { get; } 50 } 51 }