Skip to content

Commit 51d21b9

Browse files
authored
Merge pull request #1020 from microsoftgraph/kiota/beta/pipelinebuild/191244
Generated beta models and request builders
2 parents 2a8418f + aa9715d commit 51d21b9

File tree

182 files changed

+9946
-314
lines changed

Some content is hidden

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

182 files changed

+9946
-314
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// <auto-generated/>
22
#pragma warning disable CS0618
33
using Microsoft.Graph.Beta.Admin.AppsAndServices;
4+
using Microsoft.Graph.Beta.Admin.ConfigurationManagement;
45
using Microsoft.Graph.Beta.Admin.Dynamics;
56
using Microsoft.Graph.Beta.Admin.Edge;
67
using Microsoft.Graph.Beta.Admin.Entra;
@@ -37,6 +38,11 @@ public partial class AdminRequestBuilder : BaseRequestBuilder
3738
{
3839
get => new global::Microsoft.Graph.Beta.Admin.AppsAndServices.AppsAndServicesRequestBuilder(PathParameters, RequestAdapter);
3940
}
41+
/// <summary>Provides operations to manage the configurationManagement property of the microsoft.graph.admin entity.</summary>
42+
public global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationManagementRequestBuilder ConfigurationManagement
43+
{
44+
get => new global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationManagementRequestBuilder(PathParameters, RequestAdapter);
45+
}
4046
/// <summary>Provides operations to manage the dynamics property of the microsoft.graph.admin entity.</summary>
4147
public global::Microsoft.Graph.Beta.Admin.Dynamics.DynamicsRequestBuilder Dynamics
4248
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,238 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.Count;
4+
using Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.Item;
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.ConfigurationManagement.ConfigurationApplications
16+
{
17+
/// <summary>
18+
/// Provides operations to manage the configurationApplications property of the microsoft.graph.configurationManagement entity.
19+
/// </summary>
20+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
21+
public partial class ConfigurationApplicationsRequestBuilder : BaseRequestBuilder
22+
{
23+
/// <summary>Provides operations to count the resources in the collection.</summary>
24+
public global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.Count.CountRequestBuilder Count
25+
{
26+
get => new global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.Count.CountRequestBuilder(PathParameters, RequestAdapter);
27+
}
28+
/// <summary>Provides operations to manage the configurationApplications property of the microsoft.graph.configurationManagement entity.</summary>
29+
/// <param name="position">The unique identifier of configurationApplication</param>
30+
/// <returns>A <see cref="global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.Item.ConfigurationApplicationItemRequestBuilder"/></returns>
31+
public global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.Item.ConfigurationApplicationItemRequestBuilder this[string position]
32+
{
33+
get
34+
{
35+
var urlTplParams = new Dictionary<string, object>(PathParameters);
36+
urlTplParams.Add("configurationApplication%2Did", position);
37+
return new global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.Item.ConfigurationApplicationItemRequestBuilder(urlTplParams, RequestAdapter);
38+
}
39+
}
40+
/// <summary>
41+
/// Instantiates a new <see cref="global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.ConfigurationApplicationsRequestBuilder"/> and sets the default values.
42+
/// </summary>
43+
/// <param name="pathParameters">Path parameters for the request</param>
44+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
45+
public ConfigurationApplicationsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationApplications{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
46+
{
47+
}
48+
/// <summary>
49+
/// Instantiates a new <see cref="global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.ConfigurationApplicationsRequestBuilder"/> and sets the default values.
50+
/// </summary>
51+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
52+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
53+
public ConfigurationApplicationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationApplications{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
54+
{
55+
}
56+
/// <summary>
57+
/// Get configurationApplications from admin
58+
/// </summary>
59+
/// <returns>A <see cref="global::Microsoft.Graph.Beta.Models.ConfigurationApplicationCollectionResponse"/></returns>
60+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
61+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
62+
/// <exception cref="global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
63+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
64+
#nullable enable
65+
public async Task<global::Microsoft.Graph.Beta.Models.ConfigurationApplicationCollectionResponse?> GetAsync(Action<RequestConfiguration<global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.ConfigurationApplicationsRequestBuilder.ConfigurationApplicationsRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
66+
{
67+
#nullable restore
68+
#else
69+
public async Task<global::Microsoft.Graph.Beta.Models.ConfigurationApplicationCollectionResponse> GetAsync(Action<RequestConfiguration<global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.ConfigurationApplicationsRequestBuilder.ConfigurationApplicationsRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
70+
{
71+
#endif
72+
var requestInfo = ToGetRequestInformation(requestConfiguration);
73+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
74+
{
75+
{ "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
76+
};
77+
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Beta.Models.ConfigurationApplicationCollectionResponse>(requestInfo, global::Microsoft.Graph.Beta.Models.ConfigurationApplicationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
78+
}
79+
/// <summary>
80+
/// Create new navigation property to configurationApplications for admin
81+
/// </summary>
82+
/// <returns>A <see cref="global::Microsoft.Graph.Beta.Models.ConfigurationApplication"/></returns>
83+
/// <param name="body">The request body</param>
84+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
85+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
86+
/// <exception cref="global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
87+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
88+
#nullable enable
89+
public async Task<global::Microsoft.Graph.Beta.Models.ConfigurationApplication?> PostAsync(global::Microsoft.Graph.Beta.Models.ConfigurationApplication body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
90+
{
91+
#nullable restore
92+
#else
93+
public async Task<global::Microsoft.Graph.Beta.Models.ConfigurationApplication> PostAsync(global::Microsoft.Graph.Beta.Models.ConfigurationApplication body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
94+
{
95+
#endif
96+
_ = body ?? throw new ArgumentNullException(nameof(body));
97+
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
98+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
99+
{
100+
{ "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
101+
};
102+
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Beta.Models.ConfigurationApplication>(requestInfo, global::Microsoft.Graph.Beta.Models.ConfigurationApplication.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
103+
}
104+
/// <summary>
105+
/// Get configurationApplications from admin
106+
/// </summary>
107+
/// <returns>A <see cref="RequestInformation"/></returns>
108+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
109+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
110+
#nullable enable
111+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.ConfigurationApplicationsRequestBuilder.ConfigurationApplicationsRequestBuilderGetQueryParameters>>? requestConfiguration = default)
112+
{
113+
#nullable restore
114+
#else
115+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.ConfigurationApplicationsRequestBuilder.ConfigurationApplicationsRequestBuilderGetQueryParameters>> requestConfiguration = default)
116+
{
117+
#endif
118+
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
119+
requestInfo.Configure(requestConfiguration);
120+
requestInfo.Headers.TryAdd("Accept", "application/json");
121+
return requestInfo;
122+
}
123+
/// <summary>
124+
/// Create new navigation property to configurationApplications for admin
125+
/// </summary>
126+
/// <returns>A <see cref="RequestInformation"/></returns>
127+
/// <param name="body">The request body</param>
128+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
129+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
130+
#nullable enable
131+
public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.Models.ConfigurationApplication body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
132+
{
133+
#nullable restore
134+
#else
135+
public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.Models.ConfigurationApplication body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
136+
{
137+
#endif
138+
_ = body ?? throw new ArgumentNullException(nameof(body));
139+
var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
140+
requestInfo.Configure(requestConfiguration);
141+
requestInfo.Headers.TryAdd("Accept", "application/json");
142+
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
143+
return requestInfo;
144+
}
145+
/// <summary>
146+
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
147+
/// </summary>
148+
/// <returns>A <see cref="global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.ConfigurationApplicationsRequestBuilder"/></returns>
149+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
150+
public global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.ConfigurationApplicationsRequestBuilder WithUrl(string rawUrl)
151+
{
152+
return new global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.ConfigurationApplicationsRequestBuilder(rawUrl, RequestAdapter);
153+
}
154+
/// <summary>
155+
/// Get configurationApplications from admin
156+
/// </summary>
157+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
158+
public partial class ConfigurationApplicationsRequestBuilderGetQueryParameters
159+
{
160+
/// <summary>Include count of items</summary>
161+
[QueryParameter("%24count")]
162+
public bool? Count { get; set; }
163+
/// <summary>Expand related entities</summary>
164+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
165+
#nullable enable
166+
[QueryParameter("%24expand")]
167+
public string[]? Expand { get; set; }
168+
#nullable restore
169+
#else
170+
[QueryParameter("%24expand")]
171+
public string[] Expand { get; set; }
172+
#endif
173+
/// <summary>Filter items by property values</summary>
174+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
175+
#nullable enable
176+
[QueryParameter("%24filter")]
177+
public string? Filter { get; set; }
178+
#nullable restore
179+
#else
180+
[QueryParameter("%24filter")]
181+
public string Filter { get; set; }
182+
#endif
183+
/// <summary>Order items by property values</summary>
184+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
185+
#nullable enable
186+
[QueryParameter("%24orderby")]
187+
public string[]? Orderby { get; set; }
188+
#nullable restore
189+
#else
190+
[QueryParameter("%24orderby")]
191+
public string[] Orderby { get; set; }
192+
#endif
193+
/// <summary>Search items by search phrases</summary>
194+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
195+
#nullable enable
196+
[QueryParameter("%24search")]
197+
public string? Search { get; set; }
198+
#nullable restore
199+
#else
200+
[QueryParameter("%24search")]
201+
public string Search { get; set; }
202+
#endif
203+
/// <summary>Select properties to be returned</summary>
204+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
205+
#nullable enable
206+
[QueryParameter("%24select")]
207+
public string[]? Select { get; set; }
208+
#nullable restore
209+
#else
210+
[QueryParameter("%24select")]
211+
public string[] Select { get; set; }
212+
#endif
213+
/// <summary>Skip the first n items</summary>
214+
[QueryParameter("%24skip")]
215+
public int? Skip { get; set; }
216+
/// <summary>Show only the first n items</summary>
217+
[QueryParameter("%24top")]
218+
public int? Top { get; set; }
219+
}
220+
/// <summary>
221+
/// Configuration for the request such as headers, query parameters, and middleware options.
222+
/// </summary>
223+
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
224+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
225+
public partial class ConfigurationApplicationsRequestBuilderGetRequestConfiguration : RequestConfiguration<global::Microsoft.Graph.Beta.Admin.ConfigurationManagement.ConfigurationApplications.ConfigurationApplicationsRequestBuilder.ConfigurationApplicationsRequestBuilderGetQueryParameters>
226+
{
227+
}
228+
/// <summary>
229+
/// Configuration for the request such as headers, query parameters, and middleware options.
230+
/// </summary>
231+
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
232+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
233+
public partial class ConfigurationApplicationsRequestBuilderPostRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
234+
{
235+
}
236+
}
237+
}
238+
#pragma warning restore CS0618

0 commit comments

Comments
 (0)