Skip to content

Commit fed493f

Browse files
authored
Merge pull request #1034 from microsoftgraph/kiota/beta/pipelinebuild/194896
Generated beta models and request builders
2 parents db04059 + 2425016 commit fed493f

File tree

174 files changed

+7638
-282
lines changed

Some content is hidden

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

174 files changed

+7638
-282
lines changed

src/Microsoft.Graph/Generated/Admin/People/PeopleRequestBuilder.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#pragma warning disable CS0618
33
using Microsoft.Graph.Beta.Admin.People.ItemInsights;
44
using Microsoft.Graph.Beta.Admin.People.NamePronunciation;
5+
using Microsoft.Graph.Beta.Admin.People.PhotoUpdateSettings;
56
using Microsoft.Graph.Beta.Admin.People.ProfileCardProperties;
67
using Microsoft.Graph.Beta.Admin.People.ProfilePropertySettings;
78
using Microsoft.Graph.Beta.Admin.People.ProfileSources;
@@ -35,6 +36,11 @@ public partial class PeopleRequestBuilder : BaseRequestBuilder
3536
{
3637
get => new global::Microsoft.Graph.Beta.Admin.People.NamePronunciation.NamePronunciationRequestBuilder(PathParameters, RequestAdapter);
3738
}
39+
/// <summary>Provides operations to manage the photoUpdateSettings property of the microsoft.graph.peopleAdminSettings entity.</summary>
40+
public global::Microsoft.Graph.Beta.Admin.People.PhotoUpdateSettings.PhotoUpdateSettingsRequestBuilder PhotoUpdateSettings
41+
{
42+
get => new global::Microsoft.Graph.Beta.Admin.People.PhotoUpdateSettings.PhotoUpdateSettingsRequestBuilder(PathParameters, RequestAdapter);
43+
}
3844
/// <summary>Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.</summary>
3945
public global::Microsoft.Graph.Beta.Admin.People.ProfileCardProperties.ProfileCardPropertiesRequestBuilder ProfileCardProperties
4046
{
Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Graph.Beta.Models.ODataErrors;
4+
using Microsoft.Graph.Beta.Models;
5+
using Microsoft.Kiota.Abstractions.Extensions;
6+
using Microsoft.Kiota.Abstractions.Serialization;
7+
using Microsoft.Kiota.Abstractions;
8+
using System.Collections.Generic;
9+
using System.IO;
10+
using System.Threading.Tasks;
11+
using System.Threading;
12+
using System;
13+
namespace Microsoft.Graph.Beta.Admin.People.PhotoUpdateSettings
14+
{
15+
/// <summary>
16+
/// Provides operations to manage the photoUpdateSettings property of the microsoft.graph.peopleAdminSettings entity.
17+
/// </summary>
18+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
19+
public partial class PhotoUpdateSettingsRequestBuilder : BaseRequestBuilder
20+
{
21+
/// <summary>
22+
/// Instantiates a new <see cref="global::Microsoft.Graph.Beta.Admin.People.PhotoUpdateSettings.PhotoUpdateSettingsRequestBuilder"/> and sets the default values.
23+
/// </summary>
24+
/// <param name="pathParameters">Path parameters for the request</param>
25+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
26+
public PhotoUpdateSettingsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/people/photoUpdateSettings{?%24expand,%24select}", pathParameters)
27+
{
28+
}
29+
/// <summary>
30+
/// Instantiates a new <see cref="global::Microsoft.Graph.Beta.Admin.People.PhotoUpdateSettings.PhotoUpdateSettingsRequestBuilder"/> and sets the default values.
31+
/// </summary>
32+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
33+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
34+
public PhotoUpdateSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/people/photoUpdateSettings{?%24expand,%24select}", rawUrl)
35+
{
36+
}
37+
/// <summary>
38+
/// Delete a photoUpdateSettings object.
39+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/peopleadminsettings-delete-photoupdatesettings?view=graph-rest-beta" />
40+
/// </summary>
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.Beta.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 DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
47+
{
48+
#nullable restore
49+
#else
50+
public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
51+
{
52+
#endif
53+
var requestInfo = ToDeleteRequestInformation(requestConfiguration);
54+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
55+
{
56+
{ "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
57+
};
58+
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
59+
}
60+
/// <summary>
61+
/// Read the properties and relationships of a photoUpdateSettings object.
62+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/photoupdatesettings-get?view=graph-rest-beta" />
63+
/// </summary>
64+
/// <returns>A <see cref="global::Microsoft.Graph.Beta.Models.PhotoUpdateSettings"/></returns>
65+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
66+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
67+
/// <exception cref="global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
68+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
69+
#nullable enable
70+
public async Task<global::Microsoft.Graph.Beta.Models.PhotoUpdateSettings?> GetAsync(Action<RequestConfiguration<global::Microsoft.Graph.Beta.Admin.People.PhotoUpdateSettings.PhotoUpdateSettingsRequestBuilder.PhotoUpdateSettingsRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
71+
{
72+
#nullable restore
73+
#else
74+
public async Task<global::Microsoft.Graph.Beta.Models.PhotoUpdateSettings> GetAsync(Action<RequestConfiguration<global::Microsoft.Graph.Beta.Admin.People.PhotoUpdateSettings.PhotoUpdateSettingsRequestBuilder.PhotoUpdateSettingsRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
75+
{
76+
#endif
77+
var requestInfo = ToGetRequestInformation(requestConfiguration);
78+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
79+
{
80+
{ "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
81+
};
82+
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Beta.Models.PhotoUpdateSettings>(requestInfo, global::Microsoft.Graph.Beta.Models.PhotoUpdateSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
83+
}
84+
/// <summary>
85+
/// Update the properties of a photoUpdateSettings object.
86+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/photoupdatesettings-update?view=graph-rest-beta" />
87+
/// </summary>
88+
/// <returns>A <see cref="global::Microsoft.Graph.Beta.Models.PhotoUpdateSettings"/></returns>
89+
/// <param name="body">The request body</param>
90+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
91+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
92+
/// <exception cref="global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
93+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
94+
#nullable enable
95+
public async Task<global::Microsoft.Graph.Beta.Models.PhotoUpdateSettings?> PatchAsync(global::Microsoft.Graph.Beta.Models.PhotoUpdateSettings body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
96+
{
97+
#nullable restore
98+
#else
99+
public async Task<global::Microsoft.Graph.Beta.Models.PhotoUpdateSettings> PatchAsync(global::Microsoft.Graph.Beta.Models.PhotoUpdateSettings body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
100+
{
101+
#endif
102+
_ = body ?? throw new ArgumentNullException(nameof(body));
103+
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
104+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
105+
{
106+
{ "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
107+
};
108+
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Beta.Models.PhotoUpdateSettings>(requestInfo, global::Microsoft.Graph.Beta.Models.PhotoUpdateSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
109+
}
110+
/// <summary>
111+
/// Delete a photoUpdateSettings object.
112+
/// </summary>
113+
/// <returns>A <see cref="RequestInformation"/></returns>
114+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
115+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
116+
#nullable enable
117+
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
118+
{
119+
#nullable restore
120+
#else
121+
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
122+
{
123+
#endif
124+
var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters);
125+
requestInfo.Configure(requestConfiguration);
126+
requestInfo.Headers.TryAdd("Accept", "application/json");
127+
return requestInfo;
128+
}
129+
/// <summary>
130+
/// Read the properties and relationships of a photoUpdateSettings object.
131+
/// </summary>
132+
/// <returns>A <see cref="RequestInformation"/></returns>
133+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
134+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
135+
#nullable enable
136+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::Microsoft.Graph.Beta.Admin.People.PhotoUpdateSettings.PhotoUpdateSettingsRequestBuilder.PhotoUpdateSettingsRequestBuilderGetQueryParameters>>? requestConfiguration = default)
137+
{
138+
#nullable restore
139+
#else
140+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::Microsoft.Graph.Beta.Admin.People.PhotoUpdateSettings.PhotoUpdateSettingsRequestBuilder.PhotoUpdateSettingsRequestBuilderGetQueryParameters>> requestConfiguration = default)
141+
{
142+
#endif
143+
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
144+
requestInfo.Configure(requestConfiguration);
145+
requestInfo.Headers.TryAdd("Accept", "application/json");
146+
return requestInfo;
147+
}
148+
/// <summary>
149+
/// Update the properties of a photoUpdateSettings object.
150+
/// </summary>
151+
/// <returns>A <see cref="RequestInformation"/></returns>
152+
/// <param name="body">The request body</param>
153+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
154+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
155+
#nullable enable
156+
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Beta.Models.PhotoUpdateSettings body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
157+
{
158+
#nullable restore
159+
#else
160+
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Beta.Models.PhotoUpdateSettings body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
161+
{
162+
#endif
163+
_ = body ?? throw new ArgumentNullException(nameof(body));
164+
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
165+
requestInfo.Configure(requestConfiguration);
166+
requestInfo.Headers.TryAdd("Accept", "application/json");
167+
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
168+
return requestInfo;
169+
}
170+
/// <summary>
171+
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
172+
/// </summary>
173+
/// <returns>A <see cref="global::Microsoft.Graph.Beta.Admin.People.PhotoUpdateSettings.PhotoUpdateSettingsRequestBuilder"/></returns>
174+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
175+
public global::Microsoft.Graph.Beta.Admin.People.PhotoUpdateSettings.PhotoUpdateSettingsRequestBuilder WithUrl(string rawUrl)
176+
{
177+
return new global::Microsoft.Graph.Beta.Admin.People.PhotoUpdateSettings.PhotoUpdateSettingsRequestBuilder(rawUrl, RequestAdapter);
178+
}
179+
/// <summary>
180+
/// Configuration for the request such as headers, query parameters, and middleware options.
181+
/// </summary>
182+
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
183+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
184+
public partial class PhotoUpdateSettingsRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
185+
{
186+
}
187+
/// <summary>
188+
/// Read the properties and relationships of a photoUpdateSettings object.
189+
/// </summary>
190+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
191+
public partial class PhotoUpdateSettingsRequestBuilderGetQueryParameters
192+
{
193+
/// <summary>Expand related entities</summary>
194+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
195+
#nullable enable
196+
[QueryParameter("%24expand")]
197+
public string[]? Expand { get; set; }
198+
#nullable restore
199+
#else
200+
[QueryParameter("%24expand")]
201+
public string[] Expand { 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+
}
214+
/// <summary>
215+
/// Configuration for the request such as headers, query parameters, and middleware options.
216+
/// </summary>
217+
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
218+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
219+
public partial class PhotoUpdateSettingsRequestBuilderGetRequestConfiguration : RequestConfiguration<global::Microsoft.Graph.Beta.Admin.People.PhotoUpdateSettings.PhotoUpdateSettingsRequestBuilder.PhotoUpdateSettingsRequestBuilderGetQueryParameters>
220+
{
221+
}
222+
/// <summary>
223+
/// Configuration for the request such as headers, query parameters, and middleware options.
224+
/// </summary>
225+
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
226+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
227+
public partial class PhotoUpdateSettingsRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
228+
{
229+
}
230+
}
231+
}
232+
#pragma warning restore CS0618

src/Microsoft.Graph/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
5858
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
5959
}
6060
/// <summary>
61-
/// Read the properties and relationships of an operationalInsightsConnection object.
62-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-beta" />
61+
/// Read the properties and relationships of a resourceConnection object.
62+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-beta" />
6363
/// </summary>
6464
/// <returns>A <see cref="global::Microsoft.Graph.Beta.Models.WindowsUpdates.ResourceConnection"/></returns>
6565
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
@@ -126,7 +126,7 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
126126
return requestInfo;
127127
}
128128
/// <summary>
129-
/// Read the properties and relationships of an operationalInsightsConnection object.
129+
/// Read the properties and relationships of a resourceConnection object.
130130
/// </summary>
131131
/// <returns>A <see cref="RequestInformation"/></returns>
132132
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
@@ -184,7 +184,7 @@ public partial class ResourceConnectionItemRequestBuilderDeleteRequestConfigurat
184184
{
185185
}
186186
/// <summary>
187-
/// Read the properties and relationships of an operationalInsightsConnection object.
187+
/// Read the properties and relationships of a resourceConnection object.
188188
/// </summary>
189189
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
190190
public partial class ResourceConnectionItemRequestBuilderGetQueryParameters

0 commit comments

Comments
 (0)