winget-cli

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

SetSimpleItem.cs (1681B)


      1 // -----------------------------------------------------------------------------
      2 // <copyright file="SetSimpleItem.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 set output.
     14     /// DSC returns a simple set response when the instance isn't a group resource, adapter resource, or nested inside a group or adapter resource.
     15     /// </summary>
     16     internal class SetSimpleItem
     17     {
     18         /// <summary>
     19         /// Gets or sets the state of the resource properties before the attempt to set them.
     20         /// </summary>
     21         [JsonRequired]
     22         public JsonObject? BeforeState { get; set; }
     23 
     24         /// <summary>
     25         /// Gets or sets the state of the resource properties after the attempt to set them.
     26         /// </summary>
     27         [JsonRequired]
     28         public JsonObject? AfterState { get; set; }
     29 
     30         /// <summary>
     31         /// Gets or sets the list of properties that changed.
     32         /// </summary>
     33         [JsonRequired]
     34         [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")]
     35         public string[] ChangedProperties { get; set; } = [];
     36     }
     37 }