Skip to content

Commit 42fec9f

Browse files
authored
Merge pull request #2332 from microsoftgraph/kiota/v1.0/pipelinebuild/135112
Generated models and request builders
2 parents 862e7df + f50f023 commit 42fec9f

File tree

13,509 files changed

+123149
-68460
lines changed

Some content is hidden

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

13,509 files changed

+123149
-68460
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v
77

88
## [Unreleased]
99

10+
## [5.42.0] - 2024-02-14
11+
12+
- Latest metadata updates from 13th February 2024.
13+
1014
## [5.41.0] - 2024-01-31
1115

1216
- Latest metadata updates from 30th January 2024.

src/Microsoft.Graph/Generated/Admin/AdminRequestBuilder.cs

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,26 @@ public class AdminRequestBuilder : BaseRequestBuilder {
3535
new SharepointRequestBuilder(PathParameters, RequestAdapter);
3636
}
3737
/// <summary>
38-
/// Instantiates a new AdminRequestBuilder and sets the default values.
38+
/// Instantiates a new <see cref="AdminRequestBuilder"/> and sets the default values.
3939
/// </summary>
4040
/// <param name="pathParameters">Path parameters for the request</param>
4141
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
42-
public AdminRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin{?%24select,%24expand}", pathParameters) {
42+
public AdminRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin{?%24expand,%24select}", pathParameters) {
4343
}
4444
/// <summary>
45-
/// Instantiates a new AdminRequestBuilder and sets the default values.
45+
/// Instantiates a new <see cref="AdminRequestBuilder"/> and sets the default values.
4646
/// </summary>
4747
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
4848
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
49-
public AdminRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin{?%24select,%24expand}", rawUrl) {
49+
public AdminRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin{?%24expand,%24select}", rawUrl) {
5050
}
5151
/// <summary>
5252
/// Get admin
5353
/// </summary>
54+
/// <returns>A <see cref="Microsoft.Graph.Models.Admin"/></returns>
5455
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
5556
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
57+
/// <exception cref="ODataError">When receiving a 4XX or 5XX status code</exception>
5658
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
5759
#nullable enable
5860
public async Task<Microsoft.Graph.Models.Admin?> GetAsync(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -62,17 +64,18 @@ public AdminRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
6264
#endif
6365
var requestInfo = ToGetRequestInformation(requestConfiguration);
6466
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> {
65-
{"4XX", ODataError.CreateFromDiscriminatorValue},
66-
{"5XX", ODataError.CreateFromDiscriminatorValue},
67+
{"XXX", ODataError.CreateFromDiscriminatorValue},
6768
};
6869
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.Admin>(requestInfo, Microsoft.Graph.Models.Admin.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
6970
}
7071
/// <summary>
7172
/// Update admin
7273
/// </summary>
74+
/// <returns>A <see cref="Microsoft.Graph.Models.Admin"/></returns>
7375
/// <param name="body">The request body</param>
7476
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
7577
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
78+
/// <exception cref="ODataError">When receiving a 4XX or 5XX status code</exception>
7679
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
7780
#nullable enable
7881
public async Task<Microsoft.Graph.Models.Admin?> PatchAsync(Microsoft.Graph.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -83,14 +86,14 @@ public AdminRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
8386
_ = body ?? throw new ArgumentNullException(nameof(body));
8487
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
8588
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> {
86-
{"4XX", ODataError.CreateFromDiscriminatorValue},
87-
{"5XX", ODataError.CreateFromDiscriminatorValue},
89+
{"XXX", ODataError.CreateFromDiscriminatorValue},
8890
};
8991
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.Admin>(requestInfo, Microsoft.Graph.Models.Admin.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
9092
}
9193
/// <summary>
9294
/// Get admin
9395
/// </summary>
96+
/// <returns>A <see cref="RequestInformation"/></returns>
9497
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
9598
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
9699
#nullable enable
@@ -107,6 +110,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Ad
107110
/// <summary>
108111
/// Update admin
109112
/// </summary>
113+
/// <returns>A <see cref="RequestInformation"/></returns>
110114
/// <param name="body">The request body</param>
111115
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
112116
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -117,7 +121,7 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Admin
117121
public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
118122
#endif
119123
_ = body ?? throw new ArgumentNullException(nameof(body));
120-
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
124+
var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/admin", PathParameters);
121125
requestInfo.Configure(requestConfiguration);
122126
requestInfo.Headers.TryAdd("Accept", "application/json");
123127
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
@@ -126,6 +130,7 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Admin
126130
/// <summary>
127131
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
128132
/// </summary>
133+
/// <returns>A <see cref="AdminRequestBuilder"/></returns>
129134
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
130135
public AdminRequestBuilder WithUrl(string rawUrl) {
131136
return new AdminRequestBuilder(rawUrl, RequestAdapter);

src/Microsoft.Graph/Generated/Admin/Edge/EdgeRequestBuilder.cs

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,25 @@ public class EdgeRequestBuilder : BaseRequestBuilder {
2020
new InternetExplorerModeRequestBuilder(PathParameters, RequestAdapter);
2121
}
2222
/// <summary>
23-
/// Instantiates a new EdgeRequestBuilder and sets the default values.
23+
/// Instantiates a new <see cref="EdgeRequestBuilder"/> and sets the default values.
2424
/// </summary>
2525
/// <param name="pathParameters">Path parameters for the request</param>
2626
/// <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) {
2828
}
2929
/// <summary>
30-
/// Instantiates a new EdgeRequestBuilder and sets the default values.
30+
/// Instantiates a new <see cref="EdgeRequestBuilder"/> and sets the default values.
3131
/// </summary>
3232
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
3333
/// <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) {
3535
}
3636
/// <summary>
3737
/// Delete navigation property edge for admin
3838
/// </summary>
3939
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
4040
/// <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>
4142
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
4243
#nullable enable
4344
public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -47,16 +48,17 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
4748
#endif
4849
var requestInfo = ToDeleteRequestInformation(requestConfiguration);
4950
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> {
50-
{"4XX", ODataError.CreateFromDiscriminatorValue},
51-
{"5XX", ODataError.CreateFromDiscriminatorValue},
51+
{"XXX", ODataError.CreateFromDiscriminatorValue},
5252
};
5353
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
5454
}
5555
/// <summary>
5656
/// A container for Microsoft Edge resources. Read-only.
5757
/// </summary>
58+
/// <returns>A <see cref="Microsoft.Graph.Models.Edge"/></returns>
5859
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
5960
/// <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>
6062
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
6163
#nullable enable
6264
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
6668
#endif
6769
var requestInfo = ToGetRequestInformation(requestConfiguration);
6870
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> {
69-
{"4XX", ODataError.CreateFromDiscriminatorValue},
70-
{"5XX", ODataError.CreateFromDiscriminatorValue},
71+
{"XXX", ODataError.CreateFromDiscriminatorValue},
7172
};
7273
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.Edge>(requestInfo, Microsoft.Graph.Models.Edge.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
7374
}
7475
/// <summary>
7576
/// Update the navigation property edge in admin
7677
/// </summary>
78+
/// <returns>A <see cref="Microsoft.Graph.Models.Edge"/></returns>
7779
/// <param name="body">The request body</param>
7880
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
7981
/// <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>
8083
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
8184
#nullable enable
8285
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
8790
_ = body ?? throw new ArgumentNullException(nameof(body));
8891
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
8992
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> {
90-
{"4XX", ODataError.CreateFromDiscriminatorValue},
91-
{"5XX", ODataError.CreateFromDiscriminatorValue},
93+
{"XXX", ODataError.CreateFromDiscriminatorValue},
9294
};
9395
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.Edge>(requestInfo, Microsoft.Graph.Models.Edge.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
9496
}
9597
/// <summary>
9698
/// Delete navigation property edge for admin
9799
/// </summary>
100+
/// <returns>A <see cref="RequestInformation"/></returns>
98101
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
99102
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
100103
#nullable enable
@@ -103,14 +106,15 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
103106
#else
104107
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
105108
#endif
106-
var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters);
109+
var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/admin/edge", PathParameters);
107110
requestInfo.Configure(requestConfiguration);
108111
requestInfo.Headers.TryAdd("Accept", "application/json");
109112
return requestInfo;
110113
}
111114
/// <summary>
112115
/// A container for Microsoft Edge resources. Read-only.
113116
/// </summary>
117+
/// <returns>A <see cref="RequestInformation"/></returns>
114118
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
115119
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
116120
#nullable enable
@@ -127,6 +131,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Ed
127131
/// <summary>
128132
/// Update the navigation property edge in admin
129133
/// </summary>
134+
/// <returns>A <see cref="RequestInformation"/></returns>
130135
/// <param name="body">The request body</param>
131136
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
132137
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -137,7 +142,7 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Edge
137142
public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
138143
#endif
139144
_ = 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);
141146
requestInfo.Configure(requestConfiguration);
142147
requestInfo.Headers.TryAdd("Accept", "application/json");
143148
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
@@ -146,6 +151,7 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Edge
146151
/// <summary>
147152
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
148153
/// </summary>
154+
/// <returns>A <see cref="EdgeRequestBuilder"/></returns>
149155
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
150156
public EdgeRequestBuilder WithUrl(string rawUrl) {
151157
return new EdgeRequestBuilder(rawUrl, RequestAdapter);

0 commit comments

Comments
 (0)