-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update generated files with build 119223
- Loading branch information
Microsoft Graph DevX Tooling
authored and
Microsoft Graph DevX Tooling
committed
Jul 4, 2023
1 parent
3c034ae
commit c6714f5
Showing
539 changed files
with
52,707 additions
and
421 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
...Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.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,64 @@ | ||
using Microsoft.Graph.Models; | ||
using Microsoft.Kiota.Abstractions.Serialization; | ||
using Microsoft.Kiota.Abstractions.Store; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System; | ||
namespace Microsoft.Graph.Chats.Item.InstalledApps.Item.Upgrade { | ||
public class UpgradePostRequestBody : IAdditionalDataHolder, IBackedModel, 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 { return BackingStore?.Get<IDictionary<string, object>>("additionalData"); } | ||
set { BackingStore?.Set("additionalData", value); } | ||
} | ||
/// <summary>Stores model information.</summary> | ||
public IBackingStore BackingStore { get; private set; } | ||
/// <summary>The consentedPermissionSet property</summary> | ||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER | ||
#nullable enable | ||
public TeamsAppPermissionSet? ConsentedPermissionSet { | ||
get { return BackingStore?.Get<TeamsAppPermissionSet?>("consentedPermissionSet"); } | ||
set { BackingStore?.Set("consentedPermissionSet", value); } | ||
} | ||
#nullable restore | ||
#else | ||
public TeamsAppPermissionSet ConsentedPermissionSet { | ||
get { return BackingStore?.Get<TeamsAppPermissionSet>("consentedPermissionSet"); } | ||
set { BackingStore?.Set("consentedPermissionSet", value); } | ||
} | ||
#endif | ||
/// <summary> | ||
/// Instantiates a new upgradePostRequestBody and sets the default values. | ||
/// </summary> | ||
public UpgradePostRequestBody() { | ||
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); | ||
AdditionalData = new Dictionary<string, object>(); | ||
} | ||
/// <summary> | ||
/// Creates a new instance of the appropriate class based on discriminator value | ||
/// </summary> | ||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param> | ||
public static UpgradePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { | ||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); | ||
return new UpgradePostRequestBody(); | ||
} | ||
/// <summary> | ||
/// The deserialization information for the current model | ||
/// </summary> | ||
public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() { | ||
return new Dictionary<string, Action<IParseNode>> { | ||
{"consentedPermissionSet", n => { ConsentedPermissionSet = n.GetObjectValue<TeamsAppPermissionSet>(TeamsAppPermissionSet.CreateFromDiscriminatorValue); } }, | ||
}; | ||
} | ||
/// <summary> | ||
/// Serializes information the current object | ||
/// </summary> | ||
/// <param name="writer">Serialization writer to use to serialize this model</param> | ||
public void Serialize(ISerializationWriter writer) { | ||
_ = writer ?? throw new ArgumentNullException(nameof(writer)); | ||
writer.WriteObjectValue<TeamsAppPermissionSet>("consentedPermissionSet", ConsentedPermissionSet); | ||
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
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
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
Oops, something went wrong.