Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 10019a0

Browse files
committed
Order methods call order in build methods
1 parent d32ebb8 commit 10019a0

File tree

5,682 files changed

+39622
-29488
lines changed

Some content is hidden

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

5,682 files changed

+39622
-29488
lines changed

src/generated/Admin/AdminRequestBuilder.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ public Command BuildPatchCommand() {
6363
public Command BuildServiceAnnouncementCommand() {
6464
var command = new Command("service-announcement");
6565
var builder = new ApiSdk.Admin.ServiceAnnouncement.ServiceAnnouncementRequestBuilder(PathParameters, RequestAdapter);
66-
command.AddCommand(builder.BuildIssuesCommand());
67-
command.AddCommand(builder.BuildHealthOverviewsCommand());
68-
command.AddCommand(builder.BuildPatchCommand());
66+
command.AddCommand(builder.BuildDeleteCommand());
6967
command.AddCommand(builder.BuildGetCommand());
68+
command.AddCommand(builder.BuildHealthOverviewsCommand());
69+
command.AddCommand(builder.BuildIssuesCommand());
7070
command.AddCommand(builder.BuildMessagesCommand());
71-
command.AddCommand(builder.BuildDeleteCommand());
71+
command.AddCommand(builder.BuildPatchCommand());
7272
return command;
7373
}
7474
/// <summary>
@@ -125,26 +125,28 @@ public RequestInformation CreatePatchRequestInformation(ApiSdk.Models.Microsoft.
125125
}
126126
/// <summary>
127127
/// Get admin
128+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
128129
/// <param name="h">Request headers</param>
129130
/// <param name="o">Request options</param>
130131
/// <param name="q">Request query parameters</param>
131132
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
132133
/// </summary>
133-
public async Task<ApiSdk.Models.Microsoft.Graph.Admin> GetAsync(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default) {
134+
public async Task<ApiSdk.Models.Microsoft.Graph.Admin> GetAsync(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) {
134135
var requestInfo = CreateGetRequestInformation(q, h, o);
135-
return await RequestAdapter.SendAsync<ApiSdk.Models.Microsoft.Graph.Admin>(requestInfo, responseHandler);
136+
return await RequestAdapter.SendAsync<ApiSdk.Models.Microsoft.Graph.Admin>(requestInfo, responseHandler, cancellationToken);
136137
}
137138
/// <summary>
138139
/// Update admin
140+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
139141
/// <param name="h">Request headers</param>
140142
/// <param name="model"></param>
141143
/// <param name="o">Request options</param>
142144
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
143145
/// </summary>
144-
public async Task PatchAsync(ApiSdk.Models.Microsoft.Graph.Admin model, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default) {
146+
public async Task PatchAsync(ApiSdk.Models.Microsoft.Graph.Admin model, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) {
145147
_ = model ?? throw new ArgumentNullException(nameof(model));
146148
var requestInfo = CreatePatchRequestInformation(model, h, o);
147-
await RequestAdapter.SendNoContentAsync(requestInfo, responseHandler);
149+
await RequestAdapter.SendNoContentAsync(requestInfo, responseHandler, cancellationToken);
148150
}
149151
/// <summary>Get admin</summary>
150152
public class GetQueryParameters : QueryParametersBase {

src/generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ public class HealthOverviewsRequestBuilder {
1919
private IRequestAdapter RequestAdapter { get; set; }
2020
/// <summary>Url template to use to build the URL for the current request builder</summary>
2121
private string UrlTemplate { get; set; }
22-
public Command[] BuildCommand() {
22+
public List<Command> BuildCommand() {
2323
var builder = new ServiceHealthRequestBuilder(PathParameters, RequestAdapter);
2424
var commands = new List<Command> {
25+
builder.BuildDeleteCommand(),
26+
builder.BuildGetCommand(),
2527
builder.BuildIssuesCommand(),
2628
builder.BuildPatchCommand(),
27-
builder.BuildGetCommand(),
28-
builder.BuildDeleteCommand(),
2929
};
30-
return commands.ToArray();
30+
return commands;
3131
}
3232
/// <summary>
3333
/// A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly.
@@ -141,26 +141,28 @@ public RequestInformation CreatePostRequestInformation(ServiceHealth body, Actio
141141
}
142142
/// <summary>
143143
/// A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly.
144+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
144145
/// <param name="h">Request headers</param>
145146
/// <param name="o">Request options</param>
146147
/// <param name="q">Request query parameters</param>
147148
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
148149
/// </summary>
149-
public async Task<HealthOverviewsResponse> GetAsync(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default) {
150+
public async Task<HealthOverviewsResponse> GetAsync(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) {
150151
var requestInfo = CreateGetRequestInformation(q, h, o);
151-
return await RequestAdapter.SendAsync<HealthOverviewsResponse>(requestInfo, responseHandler);
152+
return await RequestAdapter.SendAsync<HealthOverviewsResponse>(requestInfo, responseHandler, cancellationToken);
152153
}
153154
/// <summary>
154155
/// A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly.
156+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
155157
/// <param name="h">Request headers</param>
156158
/// <param name="model"></param>
157159
/// <param name="o">Request options</param>
158160
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
159161
/// </summary>
160-
public async Task<ServiceHealth> PostAsync(ServiceHealth model, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default) {
162+
public async Task<ServiceHealth> PostAsync(ServiceHealth model, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) {
161163
_ = model ?? throw new ArgumentNullException(nameof(model));
162164
var requestInfo = CreatePostRequestInformation(model, h, o);
163-
return await RequestAdapter.SendAsync<ServiceHealth>(requestInfo, responseHandler);
165+
return await RequestAdapter.SendAsync<ServiceHealth>(requestInfo, responseHandler, cancellationToken);
164166
}
165167
/// <summary>A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly.</summary>
166168
public class GetQueryParameters : QueryParametersBase {

src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/IssuesRequestBuilder.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ public class IssuesRequestBuilder {
1919
private IRequestAdapter RequestAdapter { get; set; }
2020
/// <summary>Url template to use to build the URL for the current request builder</summary>
2121
private string UrlTemplate { get; set; }
22-
public Command[] BuildCommand() {
22+
public List<Command> BuildCommand() {
2323
var builder = new ServiceHealthIssueRequestBuilder(PathParameters, RequestAdapter);
2424
var commands = new List<Command> {
25-
builder.BuildPatchCommand(),
26-
builder.BuildGetCommand(),
2725
builder.BuildDeleteCommand(),
26+
builder.BuildGetCommand(),
27+
builder.BuildPatchCommand(),
2828
};
29-
return commands.ToArray();
29+
return commands;
3030
}
3131
/// <summary>
3232
/// A collection of issues happened on the service, with detailed information for each issue.
@@ -144,26 +144,28 @@ public RequestInformation CreatePostRequestInformation(ServiceHealthIssue body,
144144
}
145145
/// <summary>
146146
/// A collection of issues happened on the service, with detailed information for each issue.
147+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
147148
/// <param name="h">Request headers</param>
148149
/// <param name="o">Request options</param>
149150
/// <param name="q">Request query parameters</param>
150151
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
151152
/// </summary>
152-
public async Task<IssuesResponse> GetAsync(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default) {
153+
public async Task<IssuesResponse> GetAsync(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) {
153154
var requestInfo = CreateGetRequestInformation(q, h, o);
154-
return await RequestAdapter.SendAsync<IssuesResponse>(requestInfo, responseHandler);
155+
return await RequestAdapter.SendAsync<IssuesResponse>(requestInfo, responseHandler, cancellationToken);
155156
}
156157
/// <summary>
157158
/// A collection of issues happened on the service, with detailed information for each issue.
159+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
158160
/// <param name="h">Request headers</param>
159161
/// <param name="model"></param>
160162
/// <param name="o">Request options</param>
161163
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
162164
/// </summary>
163-
public async Task<ServiceHealthIssue> PostAsync(ServiceHealthIssue model, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default) {
165+
public async Task<ServiceHealthIssue> PostAsync(ServiceHealthIssue model, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) {
164166
_ = model ?? throw new ArgumentNullException(nameof(model));
165167
var requestInfo = CreatePostRequestInformation(model, h, o);
166-
return await RequestAdapter.SendAsync<ServiceHealthIssue>(requestInfo, responseHandler);
168+
return await RequestAdapter.SendAsync<ServiceHealthIssue>(requestInfo, responseHandler, cancellationToken);
167169
}
168170
/// <summary>A collection of issues happened on the service, with detailed information for each issue.</summary>
169171
public class GetQueryParameters : QueryParametersBase {

src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/IncidentReport/IncidentReportRequestBuilder.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,14 @@ public RequestInformation CreateGetRequestInformation(Action<IDictionary<string,
7575
}
7676
/// <summary>
7777
/// Invoke function incidentReport
78+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
7879
/// <param name="h">Request headers</param>
7980
/// <param name="o">Request options</param>
8081
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
8182
/// </summary>
82-
public async Task<Stream> GetAsync(Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default) {
83+
public async Task<Stream> GetAsync(Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) {
8384
var requestInfo = CreateGetRequestInformation(h, o);
84-
return await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo, responseHandler);
85+
return await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo, responseHandler, cancellationToken);
8586
}
8687
}
8788
}

src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/ServiceHealthIssueRequestBuilder.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,24 +155,26 @@ public RequestInformation CreatePatchRequestInformation(ServiceHealthIssue body,
155155
}
156156
/// <summary>
157157
/// A collection of issues happened on the service, with detailed information for each issue.
158+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
158159
/// <param name="h">Request headers</param>
159160
/// <param name="o">Request options</param>
160161
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
161162
/// </summary>
162-
public async Task DeleteAsync(Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default) {
163+
public async Task DeleteAsync(Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) {
163164
var requestInfo = CreateDeleteRequestInformation(h, o);
164-
await RequestAdapter.SendNoContentAsync(requestInfo, responseHandler);
165+
await RequestAdapter.SendNoContentAsync(requestInfo, responseHandler, cancellationToken);
165166
}
166167
/// <summary>
167168
/// A collection of issues happened on the service, with detailed information for each issue.
169+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
168170
/// <param name="h">Request headers</param>
169171
/// <param name="o">Request options</param>
170172
/// <param name="q">Request query parameters</param>
171173
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
172174
/// </summary>
173-
public async Task<ServiceHealthIssue> GetAsync(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default) {
175+
public async Task<ServiceHealthIssue> GetAsync(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) {
174176
var requestInfo = CreateGetRequestInformation(q, h, o);
175-
return await RequestAdapter.SendAsync<ServiceHealthIssue>(requestInfo, responseHandler);
177+
return await RequestAdapter.SendAsync<ServiceHealthIssue>(requestInfo, responseHandler, cancellationToken);
176178
}
177179
/// <summary>
178180
/// Builds and executes requests for operations under \admin\serviceAnnouncement\healthOverviews\{serviceHealth-id}\issues\{serviceHealthIssue-id}\microsoft.graph.incidentReport()
@@ -182,15 +184,16 @@ public IncidentReportRequestBuilder IncidentReport() {
182184
}
183185
/// <summary>
184186
/// A collection of issues happened on the service, with detailed information for each issue.
187+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
185188
/// <param name="h">Request headers</param>
186189
/// <param name="model"></param>
187190
/// <param name="o">Request options</param>
188191
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
189192
/// </summary>
190-
public async Task PatchAsync(ServiceHealthIssue model, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default) {
193+
public async Task PatchAsync(ServiceHealthIssue model, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) {
191194
_ = model ?? throw new ArgumentNullException(nameof(model));
192195
var requestInfo = CreatePatchRequestInformation(model, h, o);
193-
await RequestAdapter.SendNoContentAsync(requestInfo, responseHandler);
196+
await RequestAdapter.SendNoContentAsync(requestInfo, responseHandler, cancellationToken);
194197
}
195198
/// <summary>A collection of issues happened on the service, with detailed information for each issue.</summary>
196199
public class GetQueryParameters : QueryParametersBase {

0 commit comments

Comments
 (0)