Skip to content

Commit fbf02b6

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 180153
1 parent d5ad0db commit fbf02b6

File tree

616 files changed

+68329
-5547
lines changed

Some content is hidden

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

616 files changed

+68329
-5547
lines changed

src/Microsoft.Graph/Generated/Admin/AdminRequestBuilder.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using Microsoft.Graph.Beta.Admin.Dynamics;
55
using Microsoft.Graph.Beta.Admin.Edge;
66
using Microsoft.Graph.Beta.Admin.Entra;
7+
using Microsoft.Graph.Beta.Admin.Exchange;
78
using Microsoft.Graph.Beta.Admin.Forms;
89
using Microsoft.Graph.Beta.Admin.Microsoft365Apps;
910
using Microsoft.Graph.Beta.Admin.People;
@@ -50,6 +51,11 @@ public partial class AdminRequestBuilder : BaseRequestBuilder
5051
{
5152
get => new global::Microsoft.Graph.Beta.Admin.Entra.EntraRequestBuilder(PathParameters, RequestAdapter);
5253
}
54+
/// <summary>Provides operations to manage the exchange property of the microsoft.graph.admin entity.</summary>
55+
public global::Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder Exchange
56+
{
57+
get => new global::Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder(PathParameters, RequestAdapter);
58+
}
5359
/// <summary>Provides operations to manage the forms property of the microsoft.graph.admin entity.</summary>
5460
public global::Microsoft.Graph.Beta.Admin.Forms.FormsRequestBuilder Forms
5561
{
Lines changed: 250 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,250 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Graph.Beta.Admin.Exchange.Mailboxes;
4+
using Microsoft.Graph.Beta.Admin.Exchange.MessageTraces;
5+
using Microsoft.Graph.Beta.Models.ODataErrors;
6+
using Microsoft.Graph.Beta.Models;
7+
using Microsoft.Kiota.Abstractions.Extensions;
8+
using Microsoft.Kiota.Abstractions.Serialization;
9+
using Microsoft.Kiota.Abstractions;
10+
using System.Collections.Generic;
11+
using System.IO;
12+
using System.Threading.Tasks;
13+
using System.Threading;
14+
using System;
15+
namespace Microsoft.Graph.Beta.Admin.Exchange
16+
{
17+
/// <summary>
18+
/// Provides operations to manage the exchange property of the microsoft.graph.admin entity.
19+
/// </summary>
20+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
21+
public partial class ExchangeRequestBuilder : BaseRequestBuilder
22+
{
23+
/// <summary>Provides operations to manage the mailboxes property of the microsoft.graph.exchangeAdmin entity.</summary>
24+
[Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
25+
public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.MailboxesRequestBuilder Mailboxes
26+
{
27+
get => new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.MailboxesRequestBuilder(PathParameters, RequestAdapter);
28+
}
29+
/// <summary>Provides operations to manage the messageTraces property of the microsoft.graph.exchangeAdmin entity.</summary>
30+
[Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
31+
public global::Microsoft.Graph.Beta.Admin.Exchange.MessageTraces.MessageTracesRequestBuilder MessageTraces
32+
{
33+
get => new global::Microsoft.Graph.Beta.Admin.Exchange.MessageTraces.MessageTracesRequestBuilder(PathParameters, RequestAdapter);
34+
}
35+
/// <summary>
36+
/// Instantiates a new <see cref="global::Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder"/> and sets the default values.
37+
/// </summary>
38+
/// <param name="pathParameters">Path parameters for the request</param>
39+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
40+
public ExchangeRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange{?%24expand,%24select}", pathParameters)
41+
{
42+
}
43+
/// <summary>
44+
/// Instantiates a new <see cref="global::Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder"/> and sets the default values.
45+
/// </summary>
46+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
47+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
48+
public ExchangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange{?%24expand,%24select}", rawUrl)
49+
{
50+
}
51+
/// <summary>
52+
/// Delete navigation property exchange for admin
53+
/// </summary>
54+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
55+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
56+
/// <exception cref="global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
57+
[Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
58+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
59+
#nullable enable
60+
public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
61+
{
62+
#nullable restore
63+
#else
64+
public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
65+
{
66+
#endif
67+
var requestInfo = ToDeleteRequestInformation(requestConfiguration);
68+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
69+
{
70+
{ "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
71+
};
72+
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
73+
}
74+
/// <summary>
75+
/// A container for the Exchange admin functionality. Read-only.
76+
/// </summary>
77+
/// <returns>A <see cref="global::Microsoft.Graph.Beta.Models.ExchangeAdmin"/></returns>
78+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
79+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
80+
/// <exception cref="global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
81+
[Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
82+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
83+
#nullable enable
84+
public async Task<global::Microsoft.Graph.Beta.Models.ExchangeAdmin?> GetAsync(Action<RequestConfiguration<global::Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder.ExchangeRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
85+
{
86+
#nullable restore
87+
#else
88+
public async Task<global::Microsoft.Graph.Beta.Models.ExchangeAdmin> GetAsync(Action<RequestConfiguration<global::Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder.ExchangeRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
89+
{
90+
#endif
91+
var requestInfo = ToGetRequestInformation(requestConfiguration);
92+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
93+
{
94+
{ "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
95+
};
96+
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Beta.Models.ExchangeAdmin>(requestInfo, global::Microsoft.Graph.Beta.Models.ExchangeAdmin.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
97+
}
98+
/// <summary>
99+
/// Update the navigation property exchange in admin
100+
/// </summary>
101+
/// <returns>A <see cref="global::Microsoft.Graph.Beta.Models.ExchangeAdmin"/></returns>
102+
/// <param name="body">The request body</param>
103+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
104+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
105+
/// <exception cref="global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
106+
[Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
107+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
108+
#nullable enable
109+
public async Task<global::Microsoft.Graph.Beta.Models.ExchangeAdmin?> PatchAsync(global::Microsoft.Graph.Beta.Models.ExchangeAdmin body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
110+
{
111+
#nullable restore
112+
#else
113+
public async Task<global::Microsoft.Graph.Beta.Models.ExchangeAdmin> PatchAsync(global::Microsoft.Graph.Beta.Models.ExchangeAdmin body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
114+
{
115+
#endif
116+
_ = body ?? throw new ArgumentNullException(nameof(body));
117+
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
118+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
119+
{
120+
{ "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
121+
};
122+
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Beta.Models.ExchangeAdmin>(requestInfo, global::Microsoft.Graph.Beta.Models.ExchangeAdmin.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
123+
}
124+
/// <summary>
125+
/// Delete navigation property exchange for admin
126+
/// </summary>
127+
/// <returns>A <see cref="RequestInformation"/></returns>
128+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
129+
[Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
130+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
131+
#nullable enable
132+
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
133+
{
134+
#nullable restore
135+
#else
136+
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
137+
{
138+
#endif
139+
var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters);
140+
requestInfo.Configure(requestConfiguration);
141+
requestInfo.Headers.TryAdd("Accept", "application/json");
142+
return requestInfo;
143+
}
144+
/// <summary>
145+
/// A container for the Exchange admin functionality. Read-only.
146+
/// </summary>
147+
/// <returns>A <see cref="RequestInformation"/></returns>
148+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
149+
[Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
150+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
151+
#nullable enable
152+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder.ExchangeRequestBuilderGetQueryParameters>>? requestConfiguration = default)
153+
{
154+
#nullable restore
155+
#else
156+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder.ExchangeRequestBuilderGetQueryParameters>> requestConfiguration = default)
157+
{
158+
#endif
159+
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
160+
requestInfo.Configure(requestConfiguration);
161+
requestInfo.Headers.TryAdd("Accept", "application/json");
162+
return requestInfo;
163+
}
164+
/// <summary>
165+
/// Update the navigation property exchange in admin
166+
/// </summary>
167+
/// <returns>A <see cref="RequestInformation"/></returns>
168+
/// <param name="body">The request body</param>
169+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
170+
[Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
171+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
172+
#nullable enable
173+
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Beta.Models.ExchangeAdmin body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
174+
{
175+
#nullable restore
176+
#else
177+
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Beta.Models.ExchangeAdmin body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
178+
{
179+
#endif
180+
_ = body ?? throw new ArgumentNullException(nameof(body));
181+
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
182+
requestInfo.Configure(requestConfiguration);
183+
requestInfo.Headers.TryAdd("Accept", "application/json");
184+
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
185+
return requestInfo;
186+
}
187+
/// <summary>
188+
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
189+
/// </summary>
190+
/// <returns>A <see cref="global::Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder"/></returns>
191+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
192+
[Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
193+
public global::Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder WithUrl(string rawUrl)
194+
{
195+
return new global::Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder(rawUrl, RequestAdapter);
196+
}
197+
/// <summary>
198+
/// Configuration for the request such as headers, query parameters, and middleware options.
199+
/// </summary>
200+
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
201+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
202+
public partial class ExchangeRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
203+
{
204+
}
205+
/// <summary>
206+
/// A container for the Exchange admin functionality. Read-only.
207+
/// </summary>
208+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
209+
public partial class ExchangeRequestBuilderGetQueryParameters
210+
{
211+
/// <summary>Expand related entities</summary>
212+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
213+
#nullable enable
214+
[QueryParameter("%24expand")]
215+
public string[]? Expand { get; set; }
216+
#nullable restore
217+
#else
218+
[QueryParameter("%24expand")]
219+
public string[] Expand { get; set; }
220+
#endif
221+
/// <summary>Select properties to be returned</summary>
222+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
223+
#nullable enable
224+
[QueryParameter("%24select")]
225+
public string[]? Select { get; set; }
226+
#nullable restore
227+
#else
228+
[QueryParameter("%24select")]
229+
public string[] Select { get; set; }
230+
#endif
231+
}
232+
/// <summary>
233+
/// Configuration for the request such as headers, query parameters, and middleware options.
234+
/// </summary>
235+
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
236+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
237+
public partial class ExchangeRequestBuilderGetRequestConfiguration : RequestConfiguration<global::Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder.ExchangeRequestBuilderGetQueryParameters>
238+
{
239+
}
240+
/// <summary>
241+
/// Configuration for the request such as headers, query parameters, and middleware options.
242+
/// </summary>
243+
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
244+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
245+
public partial class ExchangeRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
246+
{
247+
}
248+
}
249+
}
250+
#pragma warning restore CS0618

0 commit comments

Comments
 (0)