@@ -20,24 +20,25 @@ public class EdgeRequestBuilder : BaseRequestBuilder {
20
20
new InternetExplorerModeRequestBuilder ( PathParameters , RequestAdapter ) ;
21
21
}
22
22
/// <summary>
23
- /// Instantiates a new EdgeRequestBuilder and sets the default values.
23
+ /// Instantiates a new <see cref=" EdgeRequestBuilder"/> and sets the default values.
24
24
/// </summary>
25
25
/// <param name="pathParameters">Path parameters for the request</param>
26
26
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
27
- public EdgeRequestBuilder ( Dictionary < string , object > pathParameters , IRequestAdapter requestAdapter ) : base ( requestAdapter , "{+baseurl}/admin/edge{?%24select,%24expand }" , pathParameters ) {
27
+ public EdgeRequestBuilder ( Dictionary < string , object > pathParameters , IRequestAdapter requestAdapter ) : base ( requestAdapter , "{+baseurl}/admin/edge{?%24expand,%24select }" , pathParameters ) {
28
28
}
29
29
/// <summary>
30
- /// Instantiates a new EdgeRequestBuilder and sets the default values.
30
+ /// Instantiates a new <see cref=" EdgeRequestBuilder"/> and sets the default values.
31
31
/// </summary>
32
32
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
33
33
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
34
- public EdgeRequestBuilder ( string rawUrl , IRequestAdapter requestAdapter ) : base ( requestAdapter , "{+baseurl}/admin/edge{?%24select,%24expand }" , rawUrl ) {
34
+ public EdgeRequestBuilder ( string rawUrl , IRequestAdapter requestAdapter ) : base ( requestAdapter , "{+baseurl}/admin/edge{?%24expand,%24select }" , rawUrl ) {
35
35
}
36
36
/// <summary>
37
37
/// Delete navigation property edge for admin
38
38
/// </summary>
39
39
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
40
40
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
41
+ /// <exception cref="ODataError">When receiving a 4XX or 5XX status code</exception>
41
42
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
42
43
#nullable enable
43
44
public async Task DeleteAsync ( Action < RequestConfiguration < DefaultQueryParameters > > ? requestConfiguration = default , CancellationToken cancellationToken = default ) {
@@ -47,16 +48,17 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
47
48
#endif
48
49
var requestInfo = ToDeleteRequestInformation ( requestConfiguration ) ;
49
50
var errorMapping = new Dictionary < string , ParsableFactory < IParsable > > {
50
- { "4XX" , ODataError . CreateFromDiscriminatorValue } ,
51
- { "5XX" , ODataError . CreateFromDiscriminatorValue } ,
51
+ { "XXX" , ODataError . CreateFromDiscriminatorValue } ,
52
52
} ;
53
53
await RequestAdapter . SendNoContentAsync ( requestInfo , errorMapping , cancellationToken ) . ConfigureAwait ( false ) ;
54
54
}
55
55
/// <summary>
56
56
/// A container for Microsoft Edge resources. Read-only.
57
57
/// </summary>
58
+ /// <returns>A <see cref="Microsoft.Graph.Models.Edge"/></returns>
58
59
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
59
60
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
61
+ /// <exception cref="ODataError">When receiving a 4XX or 5XX status code</exception>
60
62
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
61
63
#nullable enable
62
64
public async Task < Microsoft . Graph . Models . Edge ? > GetAsync ( Action < RequestConfiguration < EdgeRequestBuilderGetQueryParameters > > ? requestConfiguration = default , CancellationToken cancellationToken = default ) {
@@ -66,17 +68,18 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
66
68
#endif
67
69
var requestInfo = ToGetRequestInformation ( requestConfiguration ) ;
68
70
var errorMapping = new Dictionary < string , ParsableFactory < IParsable > > {
69
- { "4XX" , ODataError . CreateFromDiscriminatorValue } ,
70
- { "5XX" , ODataError . CreateFromDiscriminatorValue } ,
71
+ { "XXX" , ODataError . CreateFromDiscriminatorValue } ,
71
72
} ;
72
73
return await RequestAdapter . SendAsync < Microsoft . Graph . Models . Edge > ( requestInfo , Microsoft . Graph . Models . Edge . CreateFromDiscriminatorValue , errorMapping , cancellationToken ) . ConfigureAwait ( false ) ;
73
74
}
74
75
/// <summary>
75
76
/// Update the navigation property edge in admin
76
77
/// </summary>
78
+ /// <returns>A <see cref="Microsoft.Graph.Models.Edge"/></returns>
77
79
/// <param name="body">The request body</param>
78
80
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
79
81
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
82
+ /// <exception cref="ODataError">When receiving a 4XX or 5XX status code</exception>
80
83
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
81
84
#nullable enable
82
85
public async Task < Microsoft . Graph . Models . Edge ? > PatchAsync ( Microsoft . Graph . Models . Edge body , Action < RequestConfiguration < DefaultQueryParameters > > ? requestConfiguration = default , CancellationToken cancellationToken = default ) {
@@ -87,14 +90,14 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
87
90
_ = body ?? throw new ArgumentNullException ( nameof ( body ) ) ;
88
91
var requestInfo = ToPatchRequestInformation ( body , requestConfiguration ) ;
89
92
var errorMapping = new Dictionary < string , ParsableFactory < IParsable > > {
90
- { "4XX" , ODataError . CreateFromDiscriminatorValue } ,
91
- { "5XX" , ODataError . CreateFromDiscriminatorValue } ,
93
+ { "XXX" , ODataError . CreateFromDiscriminatorValue } ,
92
94
} ;
93
95
return await RequestAdapter . SendAsync < Microsoft . Graph . Models . Edge > ( requestInfo , Microsoft . Graph . Models . Edge . CreateFromDiscriminatorValue , errorMapping , cancellationToken ) . ConfigureAwait ( false ) ;
94
96
}
95
97
/// <summary>
96
98
/// Delete navigation property edge for admin
97
99
/// </summary>
100
+ /// <returns>A <see cref="RequestInformation"/></returns>
98
101
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
99
102
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
100
103
#nullable enable
@@ -103,14 +106,15 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
103
106
#else
104
107
public RequestInformation ToDeleteRequestInformation ( Action < RequestConfiguration < DefaultQueryParameters > > requestConfiguration = default ) {
105
108
#endif
106
- var requestInfo = new RequestInformation ( Method . DELETE , UrlTemplate , PathParameters ) ;
109
+ var requestInfo = new RequestInformation ( Method . DELETE , "{+baseurl}/admin/edge" , PathParameters ) ;
107
110
requestInfo . Configure ( requestConfiguration ) ;
108
111
requestInfo . Headers . TryAdd ( "Accept" , "application/json" ) ;
109
112
return requestInfo ;
110
113
}
111
114
/// <summary>
112
115
/// A container for Microsoft Edge resources. Read-only.
113
116
/// </summary>
117
+ /// <returns>A <see cref="RequestInformation"/></returns>
114
118
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
115
119
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
116
120
#nullable enable
@@ -127,6 +131,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Ed
127
131
/// <summary>
128
132
/// Update the navigation property edge in admin
129
133
/// </summary>
134
+ /// <returns>A <see cref="RequestInformation"/></returns>
130
135
/// <param name="body">The request body</param>
131
136
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
132
137
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -137,7 +142,7 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Edge
137
142
public RequestInformation ToPatchRequestInformation ( Microsoft . Graph . Models . Edge body , Action < RequestConfiguration < DefaultQueryParameters > > requestConfiguration = default ) {
138
143
#endif
139
144
_ = body ?? throw new ArgumentNullException ( nameof ( body ) ) ;
140
- var requestInfo = new RequestInformation ( Method . PATCH , UrlTemplate , PathParameters ) ;
145
+ var requestInfo = new RequestInformation ( Method . PATCH , "{+baseurl}/admin/edge" , PathParameters ) ;
141
146
requestInfo . Configure ( requestConfiguration ) ;
142
147
requestInfo . Headers . TryAdd ( "Accept" , "application/json" ) ;
143
148
requestInfo . SetContentFromParsable ( RequestAdapter , "application/json" , body ) ;
@@ -146,6 +151,7 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Edge
146
151
/// <summary>
147
152
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
148
153
/// </summary>
154
+ /// <returns>A <see cref="EdgeRequestBuilder"/></returns>
149
155
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
150
156
public EdgeRequestBuilder WithUrl ( string rawUrl ) {
151
157
return new EdgeRequestBuilder ( rawUrl , RequestAdapter ) ;
0 commit comments