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

Commit 313b2e4

Browse files
committed
Use SendNoContentAsync for void request methods
1 parent 96450ce commit 313b2e4

File tree

2,723 files changed

+4402
-4402
lines changed

Some content is hidden

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

2,723 files changed

+4402
-4402
lines changed

src/generated/Admin/AdminRequestBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public Command BuildPatchCommand() {
6969
var model = parseNode.GetObjectValue<ApiSdk.Models.Microsoft.Graph.Admin>();
7070
var requestInfo = CreatePatchRequestInformation(model, q => {
7171
});
72-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
72+
await RequestAdapter.SendNoContentAsync(requestInfo);
7373
console.WriteLine("Success");
7474
}, bodyOption);
7575
return command;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public Command BuildDeleteCommand() {
3838
command.SetHandler(async (string serviceHealthId, string serviceHealthIssueId, IOutputFormatterFactory outputFormatterFactory, IConsole console) => {
3939
var requestInfo = CreateDeleteRequestInformation(q => {
4040
});
41-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
41+
await RequestAdapter.SendNoContentAsync(requestInfo);
4242
console.WriteLine("Success");
4343
}, serviceHealthIdOption, serviceHealthIssueIdOption);
4444
return command;
@@ -108,7 +108,7 @@ public Command BuildPatchCommand() {
108108
var model = parseNode.GetObjectValue<ServiceHealthIssue>();
109109
var requestInfo = CreatePatchRequestInformation(model, q => {
110110
});
111-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
111+
await RequestAdapter.SendNoContentAsync(requestInfo);
112112
console.WriteLine("Success");
113113
}, serviceHealthIdOption, serviceHealthIssueIdOption, bodyOption);
114114
return command;

src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthRequestBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public Command BuildDeleteCommand() {
3434
command.SetHandler(async (string serviceHealthId, IOutputFormatterFactory outputFormatterFactory, IConsole console) => {
3535
var requestInfo = CreateDeleteRequestInformation(q => {
3636
});
37-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
37+
await RequestAdapter.SendNoContentAsync(requestInfo);
3838
console.WriteLine("Success");
3939
}, serviceHealthIdOption);
4040
return command;
@@ -106,7 +106,7 @@ public Command BuildPatchCommand() {
106106
var model = parseNode.GetObjectValue<ServiceHealth>();
107107
var requestInfo = CreatePatchRequestInformation(model, q => {
108108
});
109-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
109+
await RequestAdapter.SendNoContentAsync(requestInfo);
110110
console.WriteLine("Success");
111111
}, serviceHealthIdOption, bodyOption);
112112
return command;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public Command BuildDeleteCommand() {
3434
command.SetHandler(async (string serviceHealthIssueId, IOutputFormatterFactory outputFormatterFactory, IConsole console) => {
3535
var requestInfo = CreateDeleteRequestInformation(q => {
3636
});
37-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
37+
await RequestAdapter.SendNoContentAsync(requestInfo);
3838
console.WriteLine("Success");
3939
}, serviceHealthIssueIdOption);
4040
return command;
@@ -96,7 +96,7 @@ public Command BuildPatchCommand() {
9696
var model = parseNode.GetObjectValue<ServiceHealthIssue>();
9797
var requestInfo = CreatePatchRequestInformation(model, q => {
9898
});
99-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
99+
await RequestAdapter.SendNoContentAsync(requestInfo);
100100
console.WriteLine("Success");
101101
}, serviceHealthIssueIdOption, bodyOption);
102102
return command;

src/generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/Content/ContentRequestBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public Command BuildPutCommand() {
7878
using var stream = file.OpenRead();
7979
var requestInfo = CreatePutRequestInformation(stream, q => {
8080
});
81-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
81+
await RequestAdapter.SendNoContentAsync(requestInfo);
8282
console.WriteLine("Success");
8383
}, serviceUpdateMessageIdOption, serviceAnnouncementAttachmentIdOption, bodyOption);
8484
return command;

src/generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentRequestBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public Command BuildDeleteCommand() {
4545
command.SetHandler(async (string serviceUpdateMessageId, string serviceAnnouncementAttachmentId, IOutputFormatterFactory outputFormatterFactory, IConsole console) => {
4646
var requestInfo = CreateDeleteRequestInformation(q => {
4747
});
48-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
48+
await RequestAdapter.SendNoContentAsync(requestInfo);
4949
console.WriteLine("Success");
5050
}, serviceUpdateMessageIdOption, serviceAnnouncementAttachmentIdOption);
5151
return command;
@@ -115,7 +115,7 @@ public Command BuildPatchCommand() {
115115
var model = parseNode.GetObjectValue<ServiceAnnouncementAttachment>();
116116
var requestInfo = CreatePatchRequestInformation(model, q => {
117117
});
118-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
118+
await RequestAdapter.SendNoContentAsync(requestInfo);
119119
console.WriteLine("Success");
120120
}, serviceUpdateMessageIdOption, serviceAnnouncementAttachmentIdOption, bodyOption);
121121
return command;

src/generated/Admin/ServiceAnnouncement/Messages/Item/AttachmentsArchive/AttachmentsArchiveRequestBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public Command BuildPutCommand() {
7070
using var stream = file.OpenRead();
7171
var requestInfo = CreatePutRequestInformation(stream, q => {
7272
});
73-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
73+
await RequestAdapter.SendNoContentAsync(requestInfo);
7474
console.WriteLine("Success");
7575
}, serviceUpdateMessageIdOption, bodyOption);
7676
return command;

src/generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageRequestBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public Command BuildDeleteCommand() {
5252
command.SetHandler(async (string serviceUpdateMessageId, IOutputFormatterFactory outputFormatterFactory, IConsole console) => {
5353
var requestInfo = CreateDeleteRequestInformation(q => {
5454
});
55-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
55+
await RequestAdapter.SendNoContentAsync(requestInfo);
5656
console.WriteLine("Success");
5757
}, serviceUpdateMessageIdOption);
5858
return command;
@@ -114,7 +114,7 @@ public Command BuildPatchCommand() {
114114
var model = parseNode.GetObjectValue<ServiceUpdateMessage>();
115115
var requestInfo = CreatePatchRequestInformation(model, q => {
116116
});
117-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
117+
await RequestAdapter.SendNoContentAsync(requestInfo);
118118
console.WriteLine("Success");
119119
}, serviceUpdateMessageIdOption, bodyOption);
120120
return command;

src/generated/Admin/ServiceAnnouncement/ServiceAnnouncementRequestBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public Command BuildDeleteCommand() {
3232
command.SetHandler(async (IOutputFormatterFactory outputFormatterFactory, IConsole console) => {
3333
var requestInfo = CreateDeleteRequestInformation(q => {
3434
});
35-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
35+
await RequestAdapter.SendNoContentAsync(requestInfo);
3636
console.WriteLine("Success");
3737
});
3838
return command;
@@ -122,7 +122,7 @@ public Command BuildPatchCommand() {
122122
var model = parseNode.GetObjectValue<ApiSdk.Models.Microsoft.Graph.ServiceAnnouncement>();
123123
var requestInfo = CreatePatchRequestInformation(model, q => {
124124
});
125-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
125+
await RequestAdapter.SendNoContentAsync(requestInfo);
126126
console.WriteLine("Success");
127127
}, bodyOption);
128128
return command;

src/generated/AgreementAcceptances/Item/AgreementAcceptanceRequestBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public Command BuildDeleteCommand() {
3333
command.SetHandler(async (string agreementAcceptanceId, IOutputFormatterFactory outputFormatterFactory, IConsole console) => {
3434
var requestInfo = CreateDeleteRequestInformation(q => {
3535
});
36-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
36+
await RequestAdapter.SendNoContentAsync(requestInfo);
3737
console.WriteLine("Success");
3838
}, agreementAcceptanceIdOption);
3939
return command;
@@ -89,7 +89,7 @@ public Command BuildPatchCommand() {
8989
var model = parseNode.GetObjectValue<AgreementAcceptance>();
9090
var requestInfo = CreatePatchRequestInformation(model, q => {
9191
});
92-
await RequestAdapter.SendPrimitiveAsync<Stream>(requestInfo);
92+
await RequestAdapter.SendNoContentAsync(requestInfo);
9393
console.WriteLine("Success");
9494
}, agreementAcceptanceIdOption, bodyOption);
9595
return command;

0 commit comments

Comments
 (0)