Skip to content

Commit e4dcf38

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 199349
1 parent 2f39d41 commit e4dcf38

File tree

59 files changed

+358
-244
lines changed

Some content is hidden

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

59 files changed

+358
-244
lines changed

src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b
8484
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.ChatMessageCollectionResponse>(requestInfo, global::Microsoft.Graph.Models.ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
8585
}
8686
/// <summary>
87-
/// Send a new chatMessage in the specified channel or a chat.
88-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0" />
87+
/// Send a new chatMessage in the specified chat. This API can&apos;t create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
88+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0" />
8989
/// </summary>
9090
/// <returns>A <see cref="global::Microsoft.Graph.Models.ChatMessage"/></returns>
9191
/// <param name="body">The request body</param>
@@ -129,7 +129,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<gl
129129
return requestInfo;
130130
}
131131
/// <summary>
132-
/// Send a new chatMessage in the specified channel or a chat.
132+
/// Send a new chatMessage in the specified chat. This API can&apos;t create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
133133
/// </summary>
134134
/// <returns>A <see cref="RequestInformation"/></returns>
135135
/// <param name="body">The request body</param>

src/Microsoft.Graph/Generated/Contacts/ContactsRequestBuilder.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ public partial class ContactsRequestBuilder : BaseRequestBuilder
6666
/// </summary>
6767
/// <param name="pathParameters">Path parameters for the request</param>
6868
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
69-
public ContactsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24top}", pathParameters)
69+
public ContactsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
7070
{
7171
}
7272
/// <summary>
7373
/// Instantiates a new <see cref="global::Microsoft.Graph.Contacts.ContactsRequestBuilder"/> and sets the default values.
7474
/// </summary>
7575
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
7676
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
77-
public ContactsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24top}", rawUrl)
77+
public ContactsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
7878
{
7979
}
8080
/// <summary>
@@ -188,6 +188,9 @@ public partial class ContactsRequestBuilderGetQueryParameters
188188
[QueryParameter("%24select")]
189189
public string[] Select { get; set; }
190190
#endif
191+
/// <summary>Skip the first n items</summary>
192+
[QueryParameter("%24skip")]
193+
public int? Skip { get; set; }
191194
/// <summary>Show only the first n items</summary>
192195
[QueryParameter("%24top")]
193196
public int? Top { get; set; }

src/Microsoft.Graph/Generated/Contacts/Item/OrgContactItemRequestBuilder.cs

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,28 @@ public OrgContactItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte
101101
{
102102
}
103103
/// <summary>
104+
/// Delete entity from contacts
105+
/// </summary>
106+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
107+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
108+
/// <exception cref="global::Microsoft.Graph.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
109+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
110+
#nullable enable
111+
public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
112+
{
113+
#nullable restore
114+
#else
115+
public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
116+
{
117+
#endif
118+
var requestInfo = ToDeleteRequestInformation(requestConfiguration);
119+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
120+
{
121+
{ "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
122+
};
123+
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
124+
}
125+
/// <summary>
104126
/// Get the properties and relationships of an organizational contact.
105127
/// Find more info here <see href="https://learn.microsoft.com/graph/api/orgcontact-get?view=graph-rest-1.0" />
106128
/// </summary>
@@ -125,6 +147,50 @@ public OrgContactItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte
125147
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.OrgContact>(requestInfo, global::Microsoft.Graph.Models.OrgContact.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
126148
}
127149
/// <summary>
150+
/// Update entity in contacts
151+
/// </summary>
152+
/// <returns>A <see cref="global::Microsoft.Graph.Models.OrgContact"/></returns>
153+
/// <param name="body">The request body</param>
154+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
155+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
156+
/// <exception cref="global::Microsoft.Graph.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
157+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
158+
#nullable enable
159+
public async Task<global::Microsoft.Graph.Models.OrgContact?> PatchAsync(global::Microsoft.Graph.Models.OrgContact body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
160+
{
161+
#nullable restore
162+
#else
163+
public async Task<global::Microsoft.Graph.Models.OrgContact> PatchAsync(global::Microsoft.Graph.Models.OrgContact body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
164+
{
165+
#endif
166+
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
167+
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
168+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
169+
{
170+
{ "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
171+
};
172+
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.OrgContact>(requestInfo, global::Microsoft.Graph.Models.OrgContact.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
173+
}
174+
/// <summary>
175+
/// Delete entity from contacts
176+
/// </summary>
177+
/// <returns>A <see cref="RequestInformation"/></returns>
178+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
179+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
180+
#nullable enable
181+
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
182+
{
183+
#nullable restore
184+
#else
185+
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
186+
{
187+
#endif
188+
var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters);
189+
requestInfo.Configure(requestConfiguration);
190+
requestInfo.Headers.TryAdd("Accept", "application/json");
191+
return requestInfo;
192+
}
193+
/// <summary>
128194
/// Get the properties and relationships of an organizational contact.
129195
/// </summary>
130196
/// <returns>A <see cref="RequestInformation"/></returns>
@@ -144,6 +210,28 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<gl
144210
return requestInfo;
145211
}
146212
/// <summary>
213+
/// Update entity in contacts
214+
/// </summary>
215+
/// <returns>A <see cref="RequestInformation"/></returns>
216+
/// <param name="body">The request body</param>
217+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
218+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
219+
#nullable enable
220+
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.OrgContact body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
221+
{
222+
#nullable restore
223+
#else
224+
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.OrgContact body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
225+
{
226+
#endif
227+
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
228+
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
229+
requestInfo.Configure(requestConfiguration);
230+
requestInfo.Headers.TryAdd("Accept", "application/json");
231+
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
232+
return requestInfo;
233+
}
234+
/// <summary>
147235
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
148236
/// </summary>
149237
/// <returns>A <see cref="global::Microsoft.Graph.Contacts.Item.OrgContactItemRequestBuilder"/></returns>
@@ -153,6 +241,14 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<gl
153241
return new global::Microsoft.Graph.Contacts.Item.OrgContactItemRequestBuilder(rawUrl, RequestAdapter);
154242
}
155243
/// <summary>
244+
/// Configuration for the request such as headers, query parameters, and middleware options.
245+
/// </summary>
246+
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
247+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
248+
public partial class OrgContactItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
249+
{
250+
}
251+
/// <summary>
156252
/// Get the properties and relationships of an organizational contact.
157253
/// </summary>
158254
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
@@ -187,6 +283,14 @@ public partial class OrgContactItemRequestBuilderGetQueryParameters
187283
public partial class OrgContactItemRequestBuilderGetRequestConfiguration : RequestConfiguration<global::Microsoft.Graph.Contacts.Item.OrgContactItemRequestBuilder.OrgContactItemRequestBuilderGetQueryParameters>
188284
{
189285
}
286+
/// <summary>
287+
/// Configuration for the request such as headers, query parameters, and middleware options.
288+
/// </summary>
289+
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
290+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
291+
public partial class OrgContactItemRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
292+
{
293+
}
190294
}
191295
}
192296
#pragma warning restore CS0618

src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA
132132
}
133133
/// <summary>
134134
/// Read properties and relationships of the deviceAppManagement object.
135-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-policyset-deviceappmanagement-get?view=graph-rest-1.0" />
135+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-apps-deviceappmanagement-get?view=graph-rest-1.0" />
136136
/// </summary>
137137
/// <returns>A <see cref="global::Microsoft.Graph.Models.DeviceAppManagement"/></returns>
138138
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>

src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
6363
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
6464
}
6565
/// <summary>
66-
/// Read properties and relationships of the windowsInformationProtection object.
67-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-windowsinformationprotection-get?view=graph-rest-1.0" />
66+
/// Read properties and relationships of the managedAppConfiguration object.
67+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-get?view=graph-rest-1.0" />
6868
/// </summary>
6969
/// <returns>A <see cref="global::Microsoft.Graph.Models.ManagedAppPolicy"/></returns>
7070
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
@@ -131,7 +131,7 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
131131
return requestInfo;
132132
}
133133
/// <summary>
134-
/// Read properties and relationships of the windowsInformationProtection object.
134+
/// Read properties and relationships of the managedAppConfiguration object.
135135
/// </summary>
136136
/// <returns>A <see cref="RequestInformation"/></returns>
137137
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
@@ -189,7 +189,7 @@ public partial class ManagedAppPolicyItemRequestBuilderDeleteRequestConfiguratio
189189
{
190190
}
191191
/// <summary>
192-
/// Read properties and relationships of the windowsInformationProtection object.
192+
/// Read properties and relationships of the managedAppConfiguration object.
193193
/// </summary>
194194
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
195195
public partial class ManagedAppPolicyItemRequestBuilderGetQueryParameters

src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) :
3535
}
3636
/// <summary>
3737
/// Not yet documented
38-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-targetapps?view=graph-rest-1.0" />
38+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0" />
3939
/// </summary>
4040
/// <param name="body">The request body</param>
4141
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>

src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ public ManagedAppPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAd
5454
{
5555
}
5656
/// <summary>
57-
/// List properties and relationships of the managedAppProtection objects.
58-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-list?view=graph-rest-1.0" />
57+
/// List properties and relationships of the managedAppConfiguration objects.
58+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-list?view=graph-rest-1.0" />
5959
/// </summary>
6060
/// <returns>A <see cref="global::Microsoft.Graph.Models.ManagedAppPolicyCollectionResponse"/></returns>
6161
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
@@ -103,7 +103,7 @@ public ManagedAppPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAd
103103
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.ManagedAppPolicy>(requestInfo, global::Microsoft.Graph.Models.ManagedAppPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
104104
}
105105
/// <summary>
106-
/// List properties and relationships of the managedAppProtection objects.
106+
/// List properties and relationships of the managedAppConfiguration objects.
107107
/// </summary>
108108
/// <returns>A <see cref="RequestInformation"/></returns>
109109
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
@@ -153,7 +153,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Model
153153
return new global::Microsoft.Graph.DeviceAppManagement.ManagedAppPolicies.ManagedAppPoliciesRequestBuilder(rawUrl, RequestAdapter);
154154
}
155155
/// <summary>
156-
/// List properties and relationships of the managedAppProtection objects.
156+
/// List properties and relationships of the managedAppConfiguration objects.
157157
/// </summary>
158158
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
159159
public partial class ManagedAppPoliciesRequestBuilderGetQueryParameters

src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) :
3535
}
3636
/// <summary>
3737
/// Not yet documented
38-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-targetapps?view=graph-rest-1.0" />
38+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0" />
3939
/// </summary>
4040
/// <param name="body">The request body</param>
4141
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>

src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) :
3535
}
3636
/// <summary>
3737
/// Not yet documented
38-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-targetapps?view=graph-rest-1.0" />
38+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0" />
3939
/// </summary>
4040
/// <param name="body">The request body</param>
4141
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>

0 commit comments

Comments
 (0)