winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

TestSimpleItem.cs (1878B)


      1 // -----------------------------------------------------------------------------
      2 // <copyright file="TestSimpleItem.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.Schema_2024_04.Outputs
      8 {
      9     using System.Text.Json.Nodes;
     10     using System.Text.Json.Serialization;
     11 
     12     /// <summary>
     13     /// The simple form of the test output.
     14     /// DSC returns a simple test response when the instance isn't a group resource, adapter resource, or nested inside a group or adapter resource.
     15     /// </summary>
     16     internal class TestSimpleItem
     17     {
     18         /// <summary>
     19         /// Gets or sets the desired state of the resource properties.
     20         /// </summary>
     21         [JsonRequired]
     22         public JsonObject? DesiredState { get; set; }
     23 
     24         /// <summary>
     25         /// Gets or sets the actual state of the resource properties.
     26         /// </summary>
     27         [JsonRequired]
     28         public JsonObject? ActualState { get; set; }
     29 
     30         /// <summary>
     31         /// Gets or sets a value indicating whether the resource is in the desired state.
     32         /// </summary>
     33         [JsonRequired]
     34         public bool InDesiredState { get; set; }
     35 
     36         /// <summary>
     37         /// Gets or sets the list of properties that are not in the desired state.
     38         /// </summary>
     39         [JsonRequired]
     40         [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.SpacingRules", "SA1010:Opening square brackets should be spaced correctly", Justification = "https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3687 pending SC 1.2 release")]
     41         public string[] DifferingProperties { get; set; } = [];
     42     }
     43 }