Skip to content

Commit 9ce59b4

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 225829
1 parent 48146ba commit 9ce59b4

521 files changed

Lines changed: 33408 additions & 143 deletions

File tree

Some content is hidden

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

src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public DirectoryAuditsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt
5454
{
5555
}
5656
/// <summary>
57-
/// Get the list of audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on.
57+
/// Get a list of directoryAudit objects representing the audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on.
5858
/// Find more info here <see href="https://learn.microsoft.com/graph/api/directoryaudit-list?view=graph-rest-1.0" />
5959
/// </summary>
6060
/// <returns>A <see cref="global::Microsoft.Graph.Models.DirectoryAuditCollectionResponse"/></returns>
@@ -103,7 +103,7 @@ public DirectoryAuditsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt
103103
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.DirectoryAudit>(requestInfo, global::Microsoft.Graph.Models.DirectoryAudit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
104104
}
105105
/// <summary>
106-
/// Get the list of audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on.
106+
/// Get a list of directoryAudit objects representing the audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on.
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.AuditLogs.DirectoryAudits.DirectoryAuditsRequestBuilder(rawUrl, RequestAdapter);
154154
}
155155
/// <summary>
156-
/// Get the list of audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on.
156+
/// Get a list of directoryAudit objects representing the audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on.
157157
/// </summary>
158158
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
159159
public partial class DirectoryAuditsRequestBuilderGetQueryParameters

src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
5757
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
5858
}
5959
/// <summary>
60-
/// Get a specific Microsoft Entra audit log item. This includes an audit log item generated by various services within Microsoft Entra ID like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on.
60+
/// Get a specific directoryAudit item. This includes an audit log item generated by various services within Microsoft Entra ID like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on.
6161
/// Find more info here <see href="https://learn.microsoft.com/graph/api/directoryaudit-get?view=graph-rest-1.0" />
6262
/// </summary>
6363
/// <returns>A <see cref="global::Microsoft.Graph.Models.DirectoryAudit"/></returns>
@@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
125125
return requestInfo;
126126
}
127127
/// <summary>
128-
/// Get a specific Microsoft Entra audit log item. This includes an audit log item generated by various services within Microsoft Entra ID like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on.
128+
/// Get a specific directoryAudit item. This includes an audit log item generated by various services within Microsoft Entra ID like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on.
129129
/// </summary>
130130
/// <returns>A <see cref="RequestInformation"/></returns>
131131
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
@@ -183,7 +183,7 @@ public partial class DirectoryAuditItemRequestBuilderDeleteRequestConfiguration
183183
{
184184
}
185185
/// <summary>
186-
/// Get a specific Microsoft Entra audit log item. This includes an audit log item generated by various services within Microsoft Entra ID like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on.
186+
/// Get a specific directoryAudit item. This includes an audit log item generated by various services within Microsoft Entra ID like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on.
187187
/// </summary>
188188
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
189189
public partial class DirectoryAuditItemRequestBuilderGetQueryParameters

src/Microsoft.Graph/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public ProvisioningRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
5454
{
5555
}
5656
/// <summary>
57-
/// Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system.
57+
/// Get all provisioningObjectSummary events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system.
5858
/// Find more info here <see href="https://learn.microsoft.com/graph/api/provisioningobjectsummary-list?view=graph-rest-1.0" />
5959
/// </summary>
6060
/// <returns>A <see cref="global::Microsoft.Graph.Models.ProvisioningObjectSummaryCollectionResponse"/></returns>
@@ -103,7 +103,7 @@ public ProvisioningRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
103103
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.ProvisioningObjectSummary>(requestInfo, global::Microsoft.Graph.Models.ProvisioningObjectSummary.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
104104
}
105105
/// <summary>
106-
/// Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system.
106+
/// Get all provisioningObjectSummary events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system.
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.AuditLogs.Provisioning.ProvisioningRequestBuilder(rawUrl, RequestAdapter);
154154
}
155155
/// <summary>
156-
/// Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system.
156+
/// Get all provisioningObjectSummary events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system.
157157
/// </summary>
158158
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
159159
public partial class ProvisioningRequestBuilderGetQueryParameters

src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using Microsoft.Graph.DirectoryNamespace.FederationConfigurations;
99
using Microsoft.Graph.DirectoryNamespace.OnPremisesSynchronization;
1010
using Microsoft.Graph.DirectoryNamespace.PublicKeyInfrastructure;
11+
using Microsoft.Graph.DirectoryNamespace.Recovery;
1112
using Microsoft.Graph.DirectoryNamespace.Subscriptions;
1213
using Microsoft.Graph.DirectoryNamespace.SubscriptionsWithCommerceSubscriptionId;
1314
using Microsoft.Graph.Models.ODataErrors;
@@ -68,6 +69,11 @@ public partial class DirectoryRequestBuilder : BaseRequestBuilder
6869
{
6970
get => new global::Microsoft.Graph.DirectoryNamespace.PublicKeyInfrastructure.PublicKeyInfrastructureRequestBuilder(PathParameters, RequestAdapter);
7071
}
72+
/// <summary>Provides operations to manage the recovery property of the microsoft.graph.directory entity.</summary>
73+
public global::Microsoft.Graph.DirectoryNamespace.Recovery.RecoveryRequestBuilder Recovery
74+
{
75+
get => new global::Microsoft.Graph.DirectoryNamespace.Recovery.RecoveryRequestBuilder(PathParameters, RequestAdapter);
76+
}
7177
/// <summary>Provides operations to manage the subscriptions property of the microsoft.graph.directory entity.</summary>
7278
public global::Microsoft.Graph.DirectoryNamespace.Subscriptions.SubscriptionsRequestBuilder Subscriptions
7379
{
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Graph.Models.ODataErrors;
4+
using Microsoft.Kiota.Abstractions.Extensions;
5+
using Microsoft.Kiota.Abstractions.Serialization;
6+
using Microsoft.Kiota.Abstractions;
7+
using System.Collections.Generic;
8+
using System.IO;
9+
using System.Threading.Tasks;
10+
using System.Threading;
11+
using System;
12+
namespace Microsoft.Graph.DirectoryNamespace.Recovery.Jobs.Count
13+
{
14+
/// <summary>
15+
/// Provides operations to count the resources in the collection.
16+
/// </summary>
17+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
18+
public partial class CountRequestBuilder : BaseRequestBuilder
19+
{
20+
/// <summary>
21+
/// Instantiates a new <see cref="global::Microsoft.Graph.DirectoryNamespace.Recovery.Jobs.Count.CountRequestBuilder"/> and sets the default values.
22+
/// </summary>
23+
/// <param name="pathParameters">Path parameters for the request</param>
24+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
25+
public CountRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/recovery/jobs/$count{?%24filter,%24search}", pathParameters)
26+
{
27+
}
28+
/// <summary>
29+
/// Instantiates a new <see cref="global::Microsoft.Graph.DirectoryNamespace.Recovery.Jobs.Count.CountRequestBuilder"/> and sets the default values.
30+
/// </summary>
31+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
32+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
33+
public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/recovery/jobs/$count{?%24filter,%24search}", rawUrl)
34+
{
35+
}
36+
/// <summary>
37+
/// Get the number of the resource
38+
/// </summary>
39+
/// <returns>A <see cref="int"/></returns>
40+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
41+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
42+
/// <exception cref="global::Microsoft.Graph.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
43+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
44+
#nullable enable
45+
public async Task<int?> GetAsync(Action<RequestConfiguration<global::Microsoft.Graph.DirectoryNamespace.Recovery.Jobs.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
46+
{
47+
#nullable restore
48+
#else
49+
public async Task<int?> GetAsync(Action<RequestConfiguration<global::Microsoft.Graph.DirectoryNamespace.Recovery.Jobs.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
50+
{
51+
#endif
52+
var requestInfo = ToGetRequestInformation(requestConfiguration);
53+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
54+
{
55+
{ "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
56+
};
57+
return await RequestAdapter.SendPrimitiveAsync<int?>(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
58+
}
59+
/// <summary>
60+
/// Get the number of the resource
61+
/// </summary>
62+
/// <returns>A <see cref="RequestInformation"/></returns>
63+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
64+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
65+
#nullable enable
66+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::Microsoft.Graph.DirectoryNamespace.Recovery.Jobs.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters>>? requestConfiguration = default)
67+
{
68+
#nullable restore
69+
#else
70+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::Microsoft.Graph.DirectoryNamespace.Recovery.Jobs.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters>> requestConfiguration = default)
71+
{
72+
#endif
73+
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
74+
requestInfo.Configure(requestConfiguration);
75+
requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9");
76+
return requestInfo;
77+
}
78+
/// <summary>
79+
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
80+
/// </summary>
81+
/// <returns>A <see cref="global::Microsoft.Graph.DirectoryNamespace.Recovery.Jobs.Count.CountRequestBuilder"/></returns>
82+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
83+
public global::Microsoft.Graph.DirectoryNamespace.Recovery.Jobs.Count.CountRequestBuilder WithUrl(string rawUrl)
84+
{
85+
return new global::Microsoft.Graph.DirectoryNamespace.Recovery.Jobs.Count.CountRequestBuilder(rawUrl, RequestAdapter);
86+
}
87+
/// <summary>
88+
/// Get the number of the resource
89+
/// </summary>
90+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
91+
public partial class CountRequestBuilderGetQueryParameters
92+
{
93+
/// <summary>Filter items by property values</summary>
94+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
95+
#nullable enable
96+
[QueryParameter("%24filter")]
97+
public string? Filter { get; set; }
98+
#nullable restore
99+
#else
100+
[QueryParameter("%24filter")]
101+
public string Filter { get; set; }
102+
#endif
103+
/// <summary>Search items by search phrases</summary>
104+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
105+
#nullable enable
106+
[QueryParameter("%24search")]
107+
public string? Search { get; set; }
108+
#nullable restore
109+
#else
110+
[QueryParameter("%24search")]
111+
public string Search { get; set; }
112+
#endif
113+
}
114+
/// <summary>
115+
/// Configuration for the request such as headers, query parameters, and middleware options.
116+
/// </summary>
117+
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
118+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
119+
public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration<global::Microsoft.Graph.DirectoryNamespace.Recovery.Jobs.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters>
120+
{
121+
}
122+
}
123+
}
124+
#pragma warning restore CS0618

0 commit comments

Comments
 (0)