Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT: Added/Updated [PrivateVulnerabilityReportingGetResponse, Reques…
…tInformation] | Updated Kiota version Co-authored-by: Octokit Bot <octokitbot@martynus.net>
- Loading branch information
1 parent
16cbc59
commit 3f76e47
Showing
3 changed files
with
87 additions
and
2 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
...Repos/Item/Item/PrivateVulnerabilityReporting/PrivateVulnerabilityReportingGetResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// <auto-generated/> | ||
using Microsoft.Kiota.Abstractions.Serialization; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System; | ||
namespace GitHub.Repos.Item.Item.PrivateVulnerabilityReporting { | ||
public class PrivateVulnerabilityReportingGetResponse : IAdditionalDataHolder, IParsable { | ||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary> | ||
public IDictionary<string, object> AdditionalData { get; set; } | ||
/// <summary>Whether or not private vulnerability reporting is enabled for the repository.</summary> | ||
public bool? Enabled { get; set; } | ||
/// <summary> | ||
/// Instantiates a new <see cref="PrivateVulnerabilityReportingGetResponse"/> and sets the default values. | ||
/// </summary> | ||
public PrivateVulnerabilityReportingGetResponse() { | ||
AdditionalData = new Dictionary<string, object>(); | ||
} | ||
/// <summary> | ||
/// Creates a new instance of the appropriate class based on discriminator value | ||
/// </summary> | ||
/// <returns>A <see cref="PrivateVulnerabilityReportingGetResponse"/></returns> | ||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param> | ||
public static PrivateVulnerabilityReportingGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { | ||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); | ||
return new PrivateVulnerabilityReportingGetResponse(); | ||
} | ||
/// <summary> | ||
/// The deserialization information for the current model | ||
/// </summary> | ||
/// <returns>A IDictionary<string, Action<IParseNode>></returns> | ||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers() { | ||
return new Dictionary<string, Action<IParseNode>> { | ||
{"enabled", n => { Enabled = n.GetBoolValue(); } }, | ||
}; | ||
} | ||
/// <summary> | ||
/// Serializes information the current object | ||
/// </summary> | ||
/// <param name="writer">Serialization writer to use to serialize this model</param> | ||
public virtual void Serialize(ISerializationWriter writer) { | ||
_ = writer ?? throw new ArgumentNullException(nameof(writer)); | ||
writer.WriteBoolValue("enabled", Enabled); | ||
writer.WriteAdditionalData(AdditionalData); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters