Skip to content

Commit f1a7d2d

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 183645
1 parent 115ca1e commit f1a7d2d

File tree

2,117 files changed

+41302
-41806
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,117 files changed

+41302
-41806
lines changed

src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostResponse.cs

Lines changed: 0 additions & 71 deletions
This file was deleted.

src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba
3737
/// Archive a list of serviceUpdateMessages for the signed in user.
3838
/// Find more info here <see href="https://learn.microsoft.com/graph/api/serviceupdatemessage-archive?view=graph-rest-1.0" />
3939
/// </summary>
40-
/// <returns>A <see cref="global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostResponse"/></returns>
40+
/// <returns>A <see cref="global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivepostResponse"/></returns>
4141
/// <param name="body">The request body</param>
4242
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
4343
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
4444
/// <exception cref="global::Microsoft.Graph.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
4545
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
4646
#nullable enable
47-
public async Task<global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostResponse?> PostAsArchivePostResponseAsync(global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
47+
public async Task<global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivepostResponse?> PostAsArchivepostResponseAsync(global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
4848
{
4949
#nullable restore
5050
#else
51-
public async Task<global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostResponse> PostAsArchivePostResponseAsync(global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
51+
public async Task<global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivepostResponse> PostAsArchivepostResponseAsync(global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
5252
{
5353
#endif
5454
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -57,7 +57,7 @@ public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba
5757
{
5858
{ "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
5959
};
60-
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostResponse>(requestInfo, global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
60+
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivepostResponse>(requestInfo, global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivepostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
6161
}
6262
/// <summary>
6363
/// Archive a list of serviceUpdateMessages for the signed in user.
@@ -68,7 +68,7 @@ public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba
6868
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
6969
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
7070
/// <exception cref="global::Microsoft.Graph.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
71-
[Obsolete("This method is obsolete. Use PostAsArchivePostResponseAsync instead.")]
71+
[Obsolete("This method is obsolete. Use PostAsArchivepostResponseAsync instead.")]
7272
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
7373
#nullable enable
7474
public async Task<global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchiveResponse?> PostAsync(global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)

src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
using System;
88
namespace Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive
99
{
10-
[Obsolete("This class is obsolete. Use ArchivePostResponse instead.")]
10+
[Obsolete("This class is obsolete. Use ArchivepostResponse instead.")]
1111
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
1212
#pragma warning disable CS1591
13-
public partial class ArchiveResponse : global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostResponse, IParsable
13+
public partial class ArchiveResponse : global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivepostResponse, IParsable
1414
#pragma warning restore CS1591
1515
{
1616
/// <summary>
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Kiota.Abstractions.Extensions;
4+
using Microsoft.Kiota.Abstractions.Serialization;
5+
using Microsoft.Kiota.Abstractions.Store;
6+
using System.Collections.Generic;
7+
using System.IO;
8+
using System;
9+
namespace Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive
10+
{
11+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
12+
#pragma warning disable CS1591
13+
public partial class ArchivepostResponse : IAdditionalDataHolder, IBackedModel, IParsable
14+
#pragma warning restore CS1591
15+
{
16+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
17+
public IDictionary<string, object> AdditionalData
18+
{
19+
get { return BackingStore.Get<IDictionary<string, object>>("AdditionalData") ?? new Dictionary<string, object>(); }
20+
set { BackingStore.Set("AdditionalData", value); }
21+
}
22+
/// <summary>Stores model information.</summary>
23+
public IBackingStore BackingStore { get; private set; }
24+
/// <summary>The value property</summary>
25+
public bool? Value
26+
{
27+
get { return BackingStore?.Get<bool?>("value"); }
28+
set { BackingStore?.Set("value", value); }
29+
}
30+
/// <summary>
31+
/// Instantiates a new <see cref="global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivepostResponse"/> and sets the default values.
32+
/// </summary>
33+
public ArchivepostResponse()
34+
{
35+
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
36+
AdditionalData = new Dictionary<string, object>();
37+
}
38+
/// <summary>
39+
/// Creates a new instance of the appropriate class based on discriminator value
40+
/// </summary>
41+
/// <returns>A <see cref="global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivepostResponse"/></returns>
42+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
43+
public static global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivepostResponse CreateFromDiscriminatorValue(IParseNode parseNode)
44+
{
45+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
46+
return new global::Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive.ArchivepostResponse();
47+
}
48+
/// <summary>
49+
/// The deserialization information for the current model
50+
/// </summary>
51+
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
52+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
53+
{
54+
return new Dictionary<string, Action<IParseNode>>
55+
{
56+
{ "value", n => { Value = n.GetBoolValue(); } },
57+
};
58+
}
59+
/// <summary>
60+
/// Serializes information the current object
61+
/// </summary>
62+
/// <param name="writer">Serialization writer to use to serialize this model</param>
63+
public virtual void Serialize(ISerializationWriter writer)
64+
{
65+
_ = writer ?? throw new ArgumentNullException(nameof(writer));
66+
writer.WriteBoolValue("value", Value);
67+
writer.WriteAdditionalData(AdditionalData);
68+
}
69+
}
70+
}
71+
#pragma warning restore CS0618

src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostResponse.cs

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)