Skip to content

Commit 3099dbf

Browse files
microsoft-graph-devx-bot[bot]Microsoft Graph DevX Tooling
andauthored
feat(generation): update request builders and models (#3038)
Update generated files with build 204842 Co-authored-by: Microsoft Graph DevX Tooling <[email protected]>
1 parent be086f6 commit 3099dbf

File tree

175 files changed

+19780
-73
lines changed

Some content is hidden

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

175 files changed

+19780
-73
lines changed

src/Microsoft.Graph/Generated/Chats/Item/ChatItemRequestBuilder.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using Microsoft.Graph.Chats.Item.Messages;
1010
using Microsoft.Graph.Chats.Item.PermissionGrants;
1111
using Microsoft.Graph.Chats.Item.PinnedMessages;
12+
using Microsoft.Graph.Chats.Item.RemoveAllAccessForUser;
1213
using Microsoft.Graph.Chats.Item.SendActivityNotification;
1314
using Microsoft.Graph.Chats.Item.Tabs;
1415
using Microsoft.Graph.Chats.Item.UnhideForUser;
@@ -75,6 +76,11 @@ public partial class ChatItemRequestBuilder : BaseRequestBuilder
7576
{
7677
get => new global::Microsoft.Graph.Chats.Item.PinnedMessages.PinnedMessagesRequestBuilder(PathParameters, RequestAdapter);
7778
}
79+
/// <summary>Provides operations to call the removeAllAccessForUser method.</summary>
80+
public global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder RemoveAllAccessForUser
81+
{
82+
get => new global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder(PathParameters, RequestAdapter);
83+
}
7884
/// <summary>Provides operations to call the sendActivityNotification method.</summary>
7985
public global::Microsoft.Graph.Chats.Item.SendActivityNotification.SendActivityNotificationRequestBuilder SendActivityNotification
8086
{
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Graph.Models;
4+
using Microsoft.Kiota.Abstractions.Extensions;
5+
using Microsoft.Kiota.Abstractions.Serialization;
6+
using Microsoft.Kiota.Abstractions.Store;
7+
using System.Collections.Generic;
8+
using System.IO;
9+
using System;
10+
namespace Microsoft.Graph.Chats.Item.RemoveAllAccessForUser
11+
{
12+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
13+
#pragma warning disable CS1591
14+
public partial class RemoveAllAccessForUserPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable
15+
#pragma warning restore CS1591
16+
{
17+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
18+
public IDictionary<string, object> AdditionalData
19+
{
20+
get { return BackingStore.Get<IDictionary<string, object>>("AdditionalData") ?? new Dictionary<string, object>(); }
21+
set { BackingStore.Set("AdditionalData", value); }
22+
}
23+
/// <summary>Stores model information.</summary>
24+
public IBackingStore BackingStore { get; private set; }
25+
/// <summary>The user property</summary>
26+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
27+
#nullable enable
28+
public global::Microsoft.Graph.Models.TeamworkUserIdentity? User
29+
{
30+
get { return BackingStore?.Get<global::Microsoft.Graph.Models.TeamworkUserIdentity?>("user"); }
31+
set { BackingStore?.Set("user", value); }
32+
}
33+
#nullable restore
34+
#else
35+
public global::Microsoft.Graph.Models.TeamworkUserIdentity User
36+
{
37+
get { return BackingStore?.Get<global::Microsoft.Graph.Models.TeamworkUserIdentity>("user"); }
38+
set { BackingStore?.Set("user", value); }
39+
}
40+
#endif
41+
/// <summary>
42+
/// Instantiates a new <see cref="global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody"/> and sets the default values.
43+
/// </summary>
44+
public RemoveAllAccessForUserPostRequestBody()
45+
{
46+
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
47+
AdditionalData = new Dictionary<string, object>();
48+
}
49+
/// <summary>
50+
/// Creates a new instance of the appropriate class based on discriminator value
51+
/// </summary>
52+
/// <returns>A <see cref="global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody"/></returns>
53+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
54+
public static global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
55+
{
56+
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
57+
return new global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody();
58+
}
59+
/// <summary>
60+
/// The deserialization information for the current model
61+
/// </summary>
62+
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
63+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
64+
{
65+
return new Dictionary<string, Action<IParseNode>>
66+
{
67+
{ "user", n => { User = n.GetObjectValue<global::Microsoft.Graph.Models.TeamworkUserIdentity>(global::Microsoft.Graph.Models.TeamworkUserIdentity.CreateFromDiscriminatorValue); } },
68+
};
69+
}
70+
/// <summary>
71+
/// Serializes information the current object
72+
/// </summary>
73+
/// <param name="writer">Serialization writer to use to serialize this model</param>
74+
public virtual void Serialize(ISerializationWriter writer)
75+
{
76+
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
77+
writer.WriteObjectValue<global::Microsoft.Graph.Models.TeamworkUserIdentity>("user", User);
78+
writer.WriteAdditionalData(AdditionalData);
79+
}
80+
}
81+
}
82+
#pragma warning restore CS0618
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Graph.Models.ODataErrors;
4+
using Microsoft.Kiota.Abstractions.Extensions;
5+
using Microsoft.Kiota.Abstractions.Serialization;
6+
using Microsoft.Kiota.Abstractions;
7+
using System.Collections.Generic;
8+
using System.IO;
9+
using System.Threading.Tasks;
10+
using System.Threading;
11+
using System;
12+
namespace Microsoft.Graph.Chats.Item.RemoveAllAccessForUser
13+
{
14+
/// <summary>
15+
/// Provides operations to call the removeAllAccessForUser method.
16+
/// </summary>
17+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
18+
public partial class RemoveAllAccessForUserRequestBuilder : BaseRequestBuilder
19+
{
20+
/// <summary>
21+
/// Instantiates a new <see cref="global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder"/> and sets the default values.
22+
/// </summary>
23+
/// <param name="pathParameters">Path parameters for the request</param>
24+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
25+
public RemoveAllAccessForUserRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/removeAllAccessForUser", pathParameters)
26+
{
27+
}
28+
/// <summary>
29+
/// Instantiates a new <see cref="global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder"/> and sets the default values.
30+
/// </summary>
31+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
32+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
33+
public RemoveAllAccessForUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/removeAllAccessForUser", rawUrl)
34+
{
35+
}
36+
/// <summary>
37+
/// Remove access to a chat for a user.
38+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chat-removeallaccessforuser?view=graph-rest-1.0" />
39+
/// </summary>
40+
/// <param name="body">The request body</param>
41+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
42+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
43+
/// <exception cref="global::Microsoft.Graph.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
44+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
45+
#nullable enable
46+
public async Task PostAsync(global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
47+
{
48+
#nullable restore
49+
#else
50+
public async Task PostAsync(global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
51+
{
52+
#endif
53+
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
54+
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
55+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
56+
{
57+
{ "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
58+
};
59+
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
60+
}
61+
/// <summary>
62+
/// Remove access to a chat for a user.
63+
/// </summary>
64+
/// <returns>A <see cref="RequestInformation"/></returns>
65+
/// <param name="body">The request body</param>
66+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
67+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
68+
#nullable enable
69+
public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
70+
{
71+
#nullable restore
72+
#else
73+
public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
74+
{
75+
#endif
76+
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
77+
var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
78+
requestInfo.Configure(requestConfiguration);
79+
requestInfo.Headers.TryAdd("Accept", "application/json");
80+
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
81+
return requestInfo;
82+
}
83+
/// <summary>
84+
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
85+
/// </summary>
86+
/// <returns>A <see cref="global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder"/></returns>
87+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
88+
public global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder WithUrl(string rawUrl)
89+
{
90+
return new global::Microsoft.Graph.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder(rawUrl, RequestAdapter);
91+
}
92+
/// <summary>
93+
/// Configuration for the request such as headers, query parameters, and middleware options.
94+
/// </summary>
95+
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
96+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
97+
public partial class RemoveAllAccessForUserRequestBuilderPostRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
98+
{
99+
}
100+
}
101+
}
102+
#pragma warning restore CS0618

src/Microsoft.Graph/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
5858
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
5959
}
6060
/// <summary>
61-
/// Information about retention label and settings enforced on the driveItem. Read-write.
61+
/// Get metadata information for a retention label applied on a driveItem. For information about retention labels from an administrator&apos;s perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint.
62+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/driveitem-getretentionlabel?view=graph-rest-1.0" />
6263
/// </summary>
6364
/// <returns>A <see cref="global::Microsoft.Graph.Models.ItemRetentionLabel"/></returns>
6465
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
@@ -126,7 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
126127
return requestInfo;
127128
}
128129
/// <summary>
129-
/// Information about retention label and settings enforced on the driveItem. Read-write.
130+
/// Get metadata information for a retention label applied on a driveItem. For information about retention labels from an administrator&apos;s perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint.
130131
/// </summary>
131132
/// <returns>A <see cref="RequestInformation"/></returns>
132133
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
@@ -184,7 +185,7 @@ public partial class RetentionLabelRequestBuilderDeleteRequestConfiguration : Re
184185
{
185186
}
186187
/// <summary>
187-
/// Information about retention label and settings enforced on the driveItem. Read-write.
188+
/// Get metadata information for a retention label applied on a driveItem. For information about retention labels from an administrator&apos;s perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint.
188189
/// </summary>
189190
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
190191
public partial class RetentionLabelRequestBuilderGetQueryParameters

src/Microsoft.Graph/Generated/Me/Chats/Item/ChatItemRequestBuilder.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using Microsoft.Graph.Me.Chats.Item.Messages;
1010
using Microsoft.Graph.Me.Chats.Item.PermissionGrants;
1111
using Microsoft.Graph.Me.Chats.Item.PinnedMessages;
12+
using Microsoft.Graph.Me.Chats.Item.RemoveAllAccessForUser;
1213
using Microsoft.Graph.Me.Chats.Item.SendActivityNotification;
1314
using Microsoft.Graph.Me.Chats.Item.Tabs;
1415
using Microsoft.Graph.Me.Chats.Item.UnhideForUser;
@@ -75,6 +76,11 @@ public partial class ChatItemRequestBuilder : BaseRequestBuilder
7576
{
7677
get => new global::Microsoft.Graph.Me.Chats.Item.PinnedMessages.PinnedMessagesRequestBuilder(PathParameters, RequestAdapter);
7778
}
79+
/// <summary>Provides operations to call the removeAllAccessForUser method.</summary>
80+
public global::Microsoft.Graph.Me.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder RemoveAllAccessForUser
81+
{
82+
get => new global::Microsoft.Graph.Me.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserRequestBuilder(PathParameters, RequestAdapter);
83+
}
7884
/// <summary>Provides operations to call the sendActivityNotification method.</summary>
7985
public global::Microsoft.Graph.Me.Chats.Item.SendActivityNotification.SendActivityNotificationRequestBuilder SendActivityNotification
8086
{
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Graph.Models;
4+
using Microsoft.Kiota.Abstractions.Extensions;
5+
using Microsoft.Kiota.Abstractions.Serialization;
6+
using Microsoft.Kiota.Abstractions.Store;
7+
using System.Collections.Generic;
8+
using System.IO;
9+
using System;
10+
namespace Microsoft.Graph.Me.Chats.Item.RemoveAllAccessForUser
11+
{
12+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
13+
#pragma warning disable CS1591
14+
public partial class RemoveAllAccessForUserPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable
15+
#pragma warning restore CS1591
16+
{
17+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
18+
public IDictionary<string, object> AdditionalData
19+
{
20+
get { return BackingStore.Get<IDictionary<string, object>>("AdditionalData") ?? new Dictionary<string, object>(); }
21+
set { BackingStore.Set("AdditionalData", value); }
22+
}
23+
/// <summary>Stores model information.</summary>
24+
public IBackingStore BackingStore { get; private set; }
25+
/// <summary>The user property</summary>
26+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
27+
#nullable enable
28+
public global::Microsoft.Graph.Models.TeamworkUserIdentity? User
29+
{
30+
get { return BackingStore?.Get<global::Microsoft.Graph.Models.TeamworkUserIdentity?>("user"); }
31+
set { BackingStore?.Set("user", value); }
32+
}
33+
#nullable restore
34+
#else
35+
public global::Microsoft.Graph.Models.TeamworkUserIdentity User
36+
{
37+
get { return BackingStore?.Get<global::Microsoft.Graph.Models.TeamworkUserIdentity>("user"); }
38+
set { BackingStore?.Set("user", value); }
39+
}
40+
#endif
41+
/// <summary>
42+
/// Instantiates a new <see cref="global::Microsoft.Graph.Me.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody"/> and sets the default values.
43+
/// </summary>
44+
public RemoveAllAccessForUserPostRequestBody()
45+
{
46+
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
47+
AdditionalData = new Dictionary<string, object>();
48+
}
49+
/// <summary>
50+
/// Creates a new instance of the appropriate class based on discriminator value
51+
/// </summary>
52+
/// <returns>A <see cref="global::Microsoft.Graph.Me.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody"/></returns>
53+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
54+
public static global::Microsoft.Graph.Me.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
55+
{
56+
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
57+
return new global::Microsoft.Graph.Me.Chats.Item.RemoveAllAccessForUser.RemoveAllAccessForUserPostRequestBody();
58+
}
59+
/// <summary>
60+
/// The deserialization information for the current model
61+
/// </summary>
62+
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
63+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
64+
{
65+
return new Dictionary<string, Action<IParseNode>>
66+
{
67+
{ "user", n => { User = n.GetObjectValue<global::Microsoft.Graph.Models.TeamworkUserIdentity>(global::Microsoft.Graph.Models.TeamworkUserIdentity.CreateFromDiscriminatorValue); } },
68+
};
69+
}
70+
/// <summary>
71+
/// Serializes information the current object
72+
/// </summary>
73+
/// <param name="writer">Serialization writer to use to serialize this model</param>
74+
public virtual void Serialize(ISerializationWriter writer)
75+
{
76+
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
77+
writer.WriteObjectValue<global::Microsoft.Graph.Models.TeamworkUserIdentity>("user", User);
78+
writer.WriteAdditionalData(AdditionalData);
79+
}
80+
}
81+
}
82+
#pragma warning restore CS0618

0 commit comments

Comments
 (0)