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

Commit a9d71ae

Browse files
committed
Merge branch 'main' into chore/build_config
2 parents 92fc126 + ac18c84 commit a9d71ae

File tree

5,683 files changed

+55442
-29489
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,683 files changed

+55442
-29489
lines changed

.github/workflows/build-cli.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on: [push]
33
jobs:
44
build:
55
runs-on: ubuntu-latest
6+
env:
7+
NUGET_URL: https://nuget.pkg.github.com/microsoft/index.json
68
steps:
79
- name: Checkout
810
uses: actions/checkout@v2
@@ -13,8 +15,9 @@ jobs:
1315
- name: Add NuGet kiota source
1416
# TODO: Add NUGET_USER and NUGET_PASSWORD secrets
1517
# TODO: Add NUGET_URL to env
18+
# NOTE: Password encryption is not supported for the linux platform (Encryption is only supported on Windows platforms.)
1619
run: |
17-
dotnet nuget add source ${{env.NUGET_URL}} -n github -u ${{secrets.NUGET_USER}} -p ${{secrets.NUGET_PASSWORD}}
20+
dotnet nuget add source ${{env.NUGET_URL}} -n github -u ${{secrets.NUGET_USER}} -p ${{secrets.NUGET_PASSWORD}} --store-password-in-clear-text
1821
- uses: actions/cache@v2
1922
with:
2023
path: ~/.nuget/packages

src/generated/Admin/AdminRequestBuilder.cs

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using System.IO;
1010
using System.Linq;
1111
using System.Text;
12+
using System.Threading;
1213
using System.Threading.Tasks;
1314
namespace ApiSdk.Admin {
1415
/// <summary>Builds and executes requests for operations under \admin</summary>
@@ -24,6 +25,7 @@ public class AdminRequestBuilder {
2425
/// </summary>
2526
public Command BuildGetCommand() {
2627
var command = new Command("get");
28+
command.Description = "Get admin";
2729
// Create options for all the parameters
2830
command.AddOption(new Option<object>("--select", description: "Select properties to be returned"));
2931
command.AddOption(new Option<object>("--expand", description: "Expand related entities"));
@@ -47,6 +49,7 @@ public Command BuildGetCommand() {
4749
/// </summary>
4850
public Command BuildPatchCommand() {
4951
var command = new Command("patch");
52+
command.Description = "Update admin";
5053
// Create options for all the parameters
5154
command.AddOption(new Option<string>("--body"));
5255
command.Handler = CommandHandler.Create<string>(async (body) => {
@@ -63,12 +66,12 @@ public Command BuildPatchCommand() {
6366
public Command BuildServiceAnnouncementCommand() {
6467
var command = new Command("service-announcement");
6568
var builder = new ApiSdk.Admin.ServiceAnnouncement.ServiceAnnouncementRequestBuilder(PathParameters, RequestAdapter);
66-
command.AddCommand(builder.BuildIssuesCommand());
67-
command.AddCommand(builder.BuildHealthOverviewsCommand());
68-
command.AddCommand(builder.BuildPatchCommand());
69+
command.AddCommand(builder.BuildDeleteCommand());
6970
command.AddCommand(builder.BuildGetCommand());
71+
command.AddCommand(builder.BuildHealthOverviewsCommand());
72+
command.AddCommand(builder.BuildIssuesCommand());
7073
command.AddCommand(builder.BuildMessagesCommand());
71-
command.AddCommand(builder.BuildDeleteCommand());
74+
command.AddCommand(builder.BuildPatchCommand());
7275
return command;
7376
}
7477
/// <summary>
@@ -125,26 +128,28 @@ public RequestInformation CreatePatchRequestInformation(ApiSdk.Models.Microsoft.
125128
}
126129
/// <summary>
127130
/// Get admin
131+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
128132
/// <param name="h">Request headers</param>
129133
/// <param name="o">Request options</param>
130134
/// <param name="q">Request query parameters</param>
131135
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
132136
/// </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) {
137+
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) {
134138
var requestInfo = CreateGetRequestInformation(q, h, o);
135-
return await RequestAdapter.SendAsync<ApiSdk.Models.Microsoft.Graph.Admin>(requestInfo, responseHandler);
139+
return await RequestAdapter.SendAsync<ApiSdk.Models.Microsoft.Graph.Admin>(requestInfo, responseHandler, cancellationToken);
136140
}
137141
/// <summary>
138142
/// Update admin
143+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
139144
/// <param name="h">Request headers</param>
140145
/// <param name="model"></param>
141146
/// <param name="o">Request options</param>
142147
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
143148
/// </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) {
149+
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) {
145150
_ = model ?? throw new ArgumentNullException(nameof(model));
146151
var requestInfo = CreatePatchRequestInformation(model, h, o);
147-
await RequestAdapter.SendNoContentAsync(requestInfo, responseHandler);
152+
await RequestAdapter.SendNoContentAsync(requestInfo, responseHandler, cancellationToken);
148153
}
149154
/// <summary>Get admin</summary>
150155
public class GetQueryParameters : QueryParametersBase {

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

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using System.IO;
1010
using System.Linq;
1111
using System.Text;
12+
using System.Threading;
1213
using System.Threading.Tasks;
1314
namespace ApiSdk.Admin.ServiceAnnouncement.HealthOverviews {
1415
/// <summary>Builds and executes requests for operations under \admin\serviceAnnouncement\healthOverviews</summary>
@@ -19,21 +20,22 @@ public class HealthOverviewsRequestBuilder {
1920
private IRequestAdapter RequestAdapter { get; set; }
2021
/// <summary>Url template to use to build the URL for the current request builder</summary>
2122
private string UrlTemplate { get; set; }
22-
public Command[] BuildCommand() {
23+
public List<Command> BuildCommand() {
2324
var builder = new ServiceHealthRequestBuilder(PathParameters, RequestAdapter);
2425
var commands = new List<Command> {
26+
builder.BuildDeleteCommand(),
27+
builder.BuildGetCommand(),
2528
builder.BuildIssuesCommand(),
2629
builder.BuildPatchCommand(),
27-
builder.BuildGetCommand(),
28-
builder.BuildDeleteCommand(),
2930
};
30-
return commands.ToArray();
31+
return commands;
3132
}
3233
/// <summary>
3334
/// A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly.
3435
/// </summary>
3536
public Command BuildCreateCommand() {
3637
var command = new Command("create");
38+
command.Description = "A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly.";
3739
// Create options for all the parameters
3840
command.AddOption(new Option<string>("--body"));
3941
command.Handler = CommandHandler.Create<string>(async (body) => {
@@ -57,6 +59,7 @@ public Command BuildCreateCommand() {
5759
/// </summary>
5860
public Command BuildListCommand() {
5961
var command = new Command("list");
62+
command.Description = "A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly.";
6063
// Create options for all the parameters
6164
command.AddOption(new Option<int?>("--top", description: "Show only the first n items"));
6265
command.AddOption(new Option<int?>("--skip", description: "Skip the first n items"));
@@ -141,26 +144,28 @@ public RequestInformation CreatePostRequestInformation(ServiceHealth body, Actio
141144
}
142145
/// <summary>
143146
/// A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly.
147+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
144148
/// <param name="h">Request headers</param>
145149
/// <param name="o">Request options</param>
146150
/// <param name="q">Request query parameters</param>
147151
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
148152
/// </summary>
149-
public async Task<HealthOverviewsResponse> GetAsync(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default) {
153+
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) {
150154
var requestInfo = CreateGetRequestInformation(q, h, o);
151-
return await RequestAdapter.SendAsync<HealthOverviewsResponse>(requestInfo, responseHandler);
155+
return await RequestAdapter.SendAsync<HealthOverviewsResponse>(requestInfo, responseHandler, cancellationToken);
152156
}
153157
/// <summary>
154158
/// A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly.
159+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
155160
/// <param name="h">Request headers</param>
156161
/// <param name="model"></param>
157162
/// <param name="o">Request options</param>
158163
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
159164
/// </summary>
160-
public async Task<ServiceHealth> PostAsync(ServiceHealth model, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default) {
165+
public async Task<ServiceHealth> PostAsync(ServiceHealth model, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) {
161166
_ = model ?? throw new ArgumentNullException(nameof(model));
162167
var requestInfo = CreatePostRequestInformation(model, h, o);
163-
return await RequestAdapter.SendAsync<ServiceHealth>(requestInfo, responseHandler);
168+
return await RequestAdapter.SendAsync<ServiceHealth>(requestInfo, responseHandler, cancellationToken);
164169
}
165170
/// <summary>A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly.</summary>
166171
public class GetQueryParameters : QueryParametersBase {

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

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using System.IO;
1010
using System.Linq;
1111
using System.Text;
12+
using System.Threading;
1213
using System.Threading.Tasks;
1314
namespace ApiSdk.Admin.ServiceAnnouncement.HealthOverviews.Item.Issues {
1415
/// <summary>Builds and executes requests for operations under \admin\serviceAnnouncement\healthOverviews\{serviceHealth-id}\issues</summary>
@@ -19,20 +20,21 @@ public class IssuesRequestBuilder {
1920
private IRequestAdapter RequestAdapter { get; set; }
2021
/// <summary>Url template to use to build the URL for the current request builder</summary>
2122
private string UrlTemplate { get; set; }
22-
public Command[] BuildCommand() {
23+
public List<Command> BuildCommand() {
2324
var builder = new ServiceHealthIssueRequestBuilder(PathParameters, RequestAdapter);
2425
var commands = new List<Command> {
25-
builder.BuildPatchCommand(),
26-
builder.BuildGetCommand(),
2726
builder.BuildDeleteCommand(),
27+
builder.BuildGetCommand(),
28+
builder.BuildPatchCommand(),
2829
};
29-
return commands.ToArray();
30+
return commands;
3031
}
3132
/// <summary>
3233
/// A collection of issues happened on the service, with detailed information for each issue.
3334
/// </summary>
3435
public Command BuildCreateCommand() {
3536
var command = new Command("create");
37+
command.Description = "A collection of issues happened on the service, with detailed information for each issue.";
3638
// Create options for all the parameters
3739
command.AddOption(new Option<string>("--servicehealth-id", description: "key: id of serviceHealth"));
3840
command.AddOption(new Option<string>("--body"));
@@ -58,6 +60,7 @@ public Command BuildCreateCommand() {
5860
/// </summary>
5961
public Command BuildListCommand() {
6062
var command = new Command("list");
63+
command.Description = "A collection of issues happened on the service, with detailed information for each issue.";
6164
// Create options for all the parameters
6265
command.AddOption(new Option<string>("--servicehealth-id", description: "key: id of serviceHealth"));
6366
command.AddOption(new Option<int?>("--top", description: "Show only the first n items"));
@@ -144,26 +147,28 @@ public RequestInformation CreatePostRequestInformation(ServiceHealthIssue body,
144147
}
145148
/// <summary>
146149
/// A collection of issues happened on the service, with detailed information for each issue.
150+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
147151
/// <param name="h">Request headers</param>
148152
/// <param name="o">Request options</param>
149153
/// <param name="q">Request query parameters</param>
150154
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
151155
/// </summary>
152-
public async Task<IssuesResponse> GetAsync(Action<GetQueryParameters> q = default, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default) {
156+
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) {
153157
var requestInfo = CreateGetRequestInformation(q, h, o);
154-
return await RequestAdapter.SendAsync<IssuesResponse>(requestInfo, responseHandler);
158+
return await RequestAdapter.SendAsync<IssuesResponse>(requestInfo, responseHandler, cancellationToken);
155159
}
156160
/// <summary>
157161
/// A collection of issues happened on the service, with detailed information for each issue.
162+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
158163
/// <param name="h">Request headers</param>
159164
/// <param name="model"></param>
160165
/// <param name="o">Request options</param>
161166
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
162167
/// </summary>
163-
public async Task<ServiceHealthIssue> PostAsync(ServiceHealthIssue model, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default) {
168+
public async Task<ServiceHealthIssue> PostAsync(ServiceHealthIssue model, Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) {
164169
_ = model ?? throw new ArgumentNullException(nameof(model));
165170
var requestInfo = CreatePostRequestInformation(model, h, o);
166-
return await RequestAdapter.SendAsync<ServiceHealthIssue>(requestInfo, responseHandler);
171+
return await RequestAdapter.SendAsync<ServiceHealthIssue>(requestInfo, responseHandler, cancellationToken);
167172
}
168173
/// <summary>A collection of issues happened on the service, with detailed information for each issue.</summary>
169174
public class GetQueryParameters : QueryParametersBase {

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System.IO;
88
using System.Linq;
99
using System.Text;
10+
using System.Threading;
1011
using System.Threading.Tasks;
1112
namespace ApiSdk.Admin.ServiceAnnouncement.HealthOverviews.Item.Issues.Item.IncidentReport {
1213
/// <summary>Builds and executes requests for operations under \admin\serviceAnnouncement\healthOverviews\{serviceHealth-id}\issues\{serviceHealthIssue-id}\microsoft.graph.incidentReport()</summary>
@@ -22,6 +23,7 @@ public class IncidentReportRequestBuilder {
2223
/// </summary>
2324
public Command BuildGetCommand() {
2425
var command = new Command("get");
26+
command.Description = "Invoke function incidentReport";
2527
// Create options for all the parameters
2628
command.AddOption(new Option<string>("--servicehealth-id", description: "key: id of serviceHealth"));
2729
command.AddOption(new Option<string>("--servicehealthissue-id", description: "key: id of serviceHealthIssue"));
@@ -75,13 +77,14 @@ public RequestInformation CreateGetRequestInformation(Action<IDictionary<string,
7577
}
7678
/// <summary>
7779
/// Invoke function incidentReport
80+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
7881
/// <param name="h">Request headers</param>
7982
/// <param name="o">Request options</param>
8083
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
8184
/// </summary>
82-
public async Task<Stream> GetAsync(Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default) {
85+
public async Task<Stream> GetAsync(Action<IDictionary<string, string>> h = default, IEnumerable<IRequestOption> o = default, IResponseHandler responseHandler = default, CancellationToken cancellationToken = default) {
8386
var requestInfo = CreateGetRequestInformation(h, o);
84-
return await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo, responseHandler);
87+
return await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo, responseHandler, cancellationToken);
8588
}
8689
}
8790
}

0 commit comments

Comments
 (0)