-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated models and request builders #2671
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
71 changes: 71 additions & 0 deletions
71
src/Microsoft.Graph/Generated/Applications/Item/Restore/RestorePostRequestBody.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,71 @@ | ||
// <auto-generated/> | ||
#pragma warning disable CS0618 | ||
using Microsoft.Kiota.Abstractions.Extensions; | ||
using Microsoft.Kiota.Abstractions.Serialization; | ||
using Microsoft.Kiota.Abstractions.Store; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System; | ||
namespace Microsoft.Graph.Applications.Item.Restore | ||
{ | ||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] | ||
#pragma warning disable CS1591 | ||
public partial class RestorePostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable | ||
#pragma warning restore CS1591 | ||
{ | ||
/// <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 { return BackingStore.Get<IDictionary<string, object>>("AdditionalData") ?? new Dictionary<string, object>(); } | ||
set { BackingStore.Set("AdditionalData", value); } | ||
} | ||
/// <summary>The autoReconcileProxyConflict property</summary> | ||
public bool? AutoReconcileProxyConflict | ||
{ | ||
get { return BackingStore?.Get<bool?>("autoReconcileProxyConflict"); } | ||
set { BackingStore?.Set("autoReconcileProxyConflict", value); } | ||
} | ||
/// <summary>Stores model information.</summary> | ||
public IBackingStore BackingStore { get; private set; } | ||
/// <summary> | ||
/// Instantiates a new <see cref="global::Microsoft.Graph.Applications.Item.Restore.RestorePostRequestBody"/> and sets the default values. | ||
/// </summary> | ||
public RestorePostRequestBody() | ||
{ | ||
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); | ||
AdditionalData = new Dictionary<string, object>(); | ||
} | ||
/// <summary> | ||
/// Creates a new instance of the appropriate class based on discriminator value | ||
/// </summary> | ||
/// <returns>A <see cref="global::Microsoft.Graph.Applications.Item.Restore.RestorePostRequestBody"/></returns> | ||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param> | ||
public static global::Microsoft.Graph.Applications.Item.Restore.RestorePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) | ||
{ | ||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); | ||
return new global::Microsoft.Graph.Applications.Item.Restore.RestorePostRequestBody(); | ||
} | ||
/// <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>> | ||
{ | ||
{ "autoReconcileProxyConflict", n => { AutoReconcileProxyConflict = 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("autoReconcileProxyConflict", AutoReconcileProxyConflict); | ||
writer.WriteAdditionalData(AdditionalData); | ||
} | ||
} | ||
} | ||
#pragma warning restore CS0618 |
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
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
71 changes: 71 additions & 0 deletions
71
src/Microsoft.Graph/Generated/Contacts/Item/Restore/RestorePostRequestBody.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,71 @@ | ||
// <auto-generated/> | ||
#pragma warning disable CS0618 | ||
using Microsoft.Kiota.Abstractions.Extensions; | ||
using Microsoft.Kiota.Abstractions.Serialization; | ||
using Microsoft.Kiota.Abstractions.Store; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System; | ||
namespace Microsoft.Graph.Contacts.Item.Restore | ||
{ | ||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] | ||
#pragma warning disable CS1591 | ||
public partial class RestorePostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable | ||
#pragma warning restore CS1591 | ||
{ | ||
/// <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 { return BackingStore.Get<IDictionary<string, object>>("AdditionalData") ?? new Dictionary<string, object>(); } | ||
set { BackingStore.Set("AdditionalData", value); } | ||
} | ||
/// <summary>The autoReconcileProxyConflict property</summary> | ||
public bool? AutoReconcileProxyConflict | ||
{ | ||
get { return BackingStore?.Get<bool?>("autoReconcileProxyConflict"); } | ||
set { BackingStore?.Set("autoReconcileProxyConflict", value); } | ||
} | ||
/// <summary>Stores model information.</summary> | ||
public IBackingStore BackingStore { get; private set; } | ||
/// <summary> | ||
/// Instantiates a new <see cref="global::Microsoft.Graph.Contacts.Item.Restore.RestorePostRequestBody"/> and sets the default values. | ||
/// </summary> | ||
public RestorePostRequestBody() | ||
{ | ||
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); | ||
AdditionalData = new Dictionary<string, object>(); | ||
} | ||
/// <summary> | ||
/// Creates a new instance of the appropriate class based on discriminator value | ||
/// </summary> | ||
/// <returns>A <see cref="global::Microsoft.Graph.Contacts.Item.Restore.RestorePostRequestBody"/></returns> | ||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param> | ||
public static global::Microsoft.Graph.Contacts.Item.Restore.RestorePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) | ||
{ | ||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); | ||
return new global::Microsoft.Graph.Contacts.Item.Restore.RestorePostRequestBody(); | ||
} | ||
/// <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>> | ||
{ | ||
{ "autoReconcileProxyConflict", n => { AutoReconcileProxyConflict = 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("autoReconcileProxyConflict", AutoReconcileProxyConflict); | ||
writer.WriteAdditionalData(AdditionalData); | ||
} | ||
} | ||
} | ||
#pragma warning restore CS0618 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this does not look to be breaking from the API level (Function did not have any parameter so there was no body generated) it is source breaking and it would be possible to have this scenario exist in the future.
microsoftgraph/microsoft-graph-docs-contrib@1b1092a
Should we be looking into
Thoughts cc @baywet @shemogumbe @Ndiritu