@@ -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