Skip to content

Commit 4b899ae

Browse files
Merge pull request #3175 from microsoftgraph/kiota/v1.0/pipelinebuild/238048
Generated models and request builders
2 parents 24e68f7 + 2dd3dbc commit 4b899ae

395 files changed

Lines changed: 40742 additions & 1496 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/Admin/AdminRequestBuilder.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace Microsoft.Graph.Admin
2727
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
2828
public partial class AdminRequestBuilder : BaseRequestBuilder
2929
{
30-
/// <summary>Provides operations to manage the configurationManagement property of the microsoft.graph.admin entity.</summary>
30+
/// <summary>The configurationManagement property</summary>
3131
public global::Microsoft.Graph.Admin.ConfigurationManagement.ConfigurationManagementRequestBuilder ConfigurationManagement
3232
{
3333
get => new global::Microsoft.Graph.Admin.ConfigurationManagement.ConfigurationManagementRequestBuilder(PathParameters, RequestAdapter);

‎src/Microsoft.Graph/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilder.cs‎

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -78,31 +78,6 @@ public ConfigurationDriftsRequestBuilder(string rawUrl, IRequestAdapter requestA
7878
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.ConfigurationDriftCollectionResponse>(requestInfo, global::Microsoft.Graph.Models.ConfigurationDriftCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
7979
}
8080
/// <summary>
81-
/// Create new navigation property to configurationDrifts for admin
82-
/// </summary>
83-
/// <returns>A <see cref="global::Microsoft.Graph.Models.ConfigurationDrift"/></returns>
84-
/// <param name="body">The request body</param>
85-
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
86-
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
87-
/// <exception cref="global::Microsoft.Graph.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
88-
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
89-
#nullable enable
90-
public async Task<global::Microsoft.Graph.Models.ConfigurationDrift?> PostAsync(global::Microsoft.Graph.Models.ConfigurationDrift body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
91-
{
92-
#nullable restore
93-
#else
94-
public async Task<global::Microsoft.Graph.Models.ConfigurationDrift> PostAsync(global::Microsoft.Graph.Models.ConfigurationDrift body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
95-
{
96-
#endif
97-
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
98-
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
99-
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
100-
{
101-
{ "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
102-
};
103-
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.ConfigurationDrift>(requestInfo, global::Microsoft.Graph.Models.ConfigurationDrift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
104-
}
105-
/// <summary>
10681
/// Get a list of the configurationDrift objects and their properties.
10782
/// </summary>
10883
/// <returns>A <see cref="RequestInformation"/></returns>
@@ -122,28 +97,6 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<gl
12297
return requestInfo;
12398
}
12499
/// <summary>
125-
/// Create new navigation property to configurationDrifts for admin
126-
/// </summary>
127-
/// <returns>A <see cref="RequestInformation"/></returns>
128-
/// <param name="body">The request body</param>
129-
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
130-
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
131-
#nullable enable
132-
public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Models.ConfigurationDrift body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
133-
{
134-
#nullable restore
135-
#else
136-
public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Models.ConfigurationDrift body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
137-
{
138-
#endif
139-
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
140-
var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
141-
requestInfo.Configure(requestConfiguration);
142-
requestInfo.Headers.TryAdd("Accept", "application/json");
143-
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
144-
return requestInfo;
145-
}
146-
/// <summary>
147100
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
148101
/// </summary>
149102
/// <returns>A <see cref="global::Microsoft.Graph.Admin.ConfigurationManagement.ConfigurationDrifts.ConfigurationDriftsRequestBuilder"/></returns>
@@ -226,14 +179,6 @@ public partial class ConfigurationDriftsRequestBuilderGetQueryParameters
226179
public partial class ConfigurationDriftsRequestBuilderGetRequestConfiguration : RequestConfiguration<global::Microsoft.Graph.Admin.ConfigurationManagement.ConfigurationDrifts.ConfigurationDriftsRequestBuilder.ConfigurationDriftsRequestBuilderGetQueryParameters>
227180
{
228181
}
229-
/// <summary>
230-
/// Configuration for the request such as headers, query parameters, and middleware options.
231-
/// </summary>
232-
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
233-
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
234-
public partial class ConfigurationDriftsRequestBuilderPostRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
235-
{
236-
}
237182
}
238183
}
239184
#pragma warning restore CS0618

‎src/Microsoft.Graph/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilder.cs‎

Lines changed: 0 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,6 @@ public ConfigurationDriftItemRequestBuilder(string rawUrl, IRequestAdapter reque
3535
{
3636
}
3737
/// <summary>
38-
/// Delete navigation property configurationDrifts for admin
39-
/// </summary>
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 DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
46-
{
47-
#nullable restore
48-
#else
49-
public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
50-
{
51-
#endif
52-
var requestInfo = ToDeleteRequestInformation(requestConfiguration);
53-
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
54-
{
55-
{ "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
56-
};
57-
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
58-
}
59-
/// <summary>
6038
/// Get the properties and relationships of a configurationDrift object.
6139
/// Find more info here <see href="https://learn.microsoft.com/graph/api/configurationdrift-get?view=graph-rest-1.0" />
6240
/// </summary>
@@ -81,50 +59,6 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
8159
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.ConfigurationDrift>(requestInfo, global::Microsoft.Graph.Models.ConfigurationDrift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
8260
}
8361
/// <summary>
84-
/// Update the navigation property configurationDrifts in admin
85-
/// </summary>
86-
/// <returns>A <see cref="global::Microsoft.Graph.Models.ConfigurationDrift"/></returns>
87-
/// <param name="body">The request body</param>
88-
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
89-
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
90-
/// <exception cref="global::Microsoft.Graph.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
91-
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
92-
#nullable enable
93-
public async Task<global::Microsoft.Graph.Models.ConfigurationDrift?> PatchAsync(global::Microsoft.Graph.Models.ConfigurationDrift body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
94-
{
95-
#nullable restore
96-
#else
97-
public async Task<global::Microsoft.Graph.Models.ConfigurationDrift> PatchAsync(global::Microsoft.Graph.Models.ConfigurationDrift body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
98-
{
99-
#endif
100-
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
101-
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
102-
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
103-
{
104-
{ "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
105-
};
106-
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.ConfigurationDrift>(requestInfo, global::Microsoft.Graph.Models.ConfigurationDrift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
107-
}
108-
/// <summary>
109-
/// Delete navigation property configurationDrifts for admin
110-
/// </summary>
111-
/// <returns>A <see cref="RequestInformation"/></returns>
112-
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
113-
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
114-
#nullable enable
115-
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
116-
{
117-
#nullable restore
118-
#else
119-
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
120-
{
121-
#endif
122-
var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters);
123-
requestInfo.Configure(requestConfiguration);
124-
requestInfo.Headers.TryAdd("Accept", "application/json");
125-
return requestInfo;
126-
}
127-
/// <summary>
12862
/// Get the properties and relationships of a configurationDrift object.
12963
/// </summary>
13064
/// <returns>A <see cref="RequestInformation"/></returns>
@@ -144,28 +78,6 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<gl
14478
return requestInfo;
14579
}
14680
/// <summary>
147-
/// Update the navigation property configurationDrifts in admin
148-
/// </summary>
149-
/// <returns>A <see cref="RequestInformation"/></returns>
150-
/// <param name="body">The request body</param>
151-
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
152-
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
153-
#nullable enable
154-
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.ConfigurationDrift body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
155-
{
156-
#nullable restore
157-
#else
158-
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.ConfigurationDrift body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
159-
{
160-
#endif
161-
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
162-
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
163-
requestInfo.Configure(requestConfiguration);
164-
requestInfo.Headers.TryAdd("Accept", "application/json");
165-
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
166-
return requestInfo;
167-
}
168-
/// <summary>
16981
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
17082
/// </summary>
17183
/// <returns>A <see cref="global::Microsoft.Graph.Admin.ConfigurationManagement.ConfigurationDrifts.Item.ConfigurationDriftItemRequestBuilder"/></returns>
@@ -175,14 +87,6 @@ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Mode
17587
return new global::Microsoft.Graph.Admin.ConfigurationManagement.ConfigurationDrifts.Item.ConfigurationDriftItemRequestBuilder(rawUrl, RequestAdapter);
17688
}
17789
/// <summary>
178-
/// Configuration for the request such as headers, query parameters, and middleware options.
179-
/// </summary>
180-
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
181-
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
182-
public partial class ConfigurationDriftItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
183-
{
184-
}
185-
/// <summary>
18690
/// Get the properties and relationships of a configurationDrift object.
18791
/// </summary>
18892
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
@@ -217,14 +121,6 @@ public partial class ConfigurationDriftItemRequestBuilderGetQueryParameters
217121
public partial class ConfigurationDriftItemRequestBuilderGetRequestConfiguration : RequestConfiguration<global::Microsoft.Graph.Admin.ConfigurationManagement.ConfigurationDrifts.Item.ConfigurationDriftItemRequestBuilder.ConfigurationDriftItemRequestBuilderGetQueryParameters>
218122
{
219123
}
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 ConfigurationDriftItemRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
226-
{
227-
}
228124
}
229125
}
230126
#pragma warning restore CS0618

0 commit comments

Comments
 (0)