Skip to content

Commit 336b9c8

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 178974
1 parent 7678bb9 commit 336b9c8

File tree

127 files changed

+3757
-316
lines changed

Some content is hidden

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

127 files changed

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

0 commit comments

Comments
 (0)