Skip to content

Commit 2a8b0db

Browse files
author
Andrew Omondi (from Dev Box)
committed
Bumps version and release notes
1 parent ca6ab00 commit 2a8b0db

11 files changed

Lines changed: 58 additions & 41 deletions

File tree

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.33.0] - 2023-11-02
11+
12+
- Latest metadata updates from 31st October 2023.
13+
1014
## [5.32.0] - 2023-10-24
1115

1216
- SDK is compatible with trimming(https://github.com/microsoftgraph/msgraph-sdk-dotnet/pull/2174)

src/Microsoft.Graph/Extensions/PlannerCheckListItem.cs

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace Microsoft.Graph.Models;
1111

12-
public class PlannerCheckListItem: IAdditionalDataHolder, IBackedModel, IParsable
12+
public class PlannerChecklistItem: IAdditionalDataHolder, IBackedModel, IParsable
1313
{
1414
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
1515
public IDictionary<string, object> AdditionalData {
@@ -87,7 +87,7 @@ public string Title {
8787
/// <summary>
8888
/// Instantiates a new auditActivityInitiator and sets the default values.
8989
/// </summary>
90-
public PlannerCheckListItem() {
90+
public PlannerChecklistItem() {
9191
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
9292
AdditionalData = new Dictionary<string, object>();
9393
OdataType = "#microsoft.graph.plannerChecklistItem";
@@ -96,9 +96,9 @@ public PlannerCheckListItem() {
9696
/// Creates a new instance of the appropriate class based on discriminator value
9797
/// </summary>
9898
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
99-
public static PlannerCheckListItem CreateFromDiscriminatorValue(IParseNode parseNode) {
99+
public static PlannerChecklistItem CreateFromDiscriminatorValue(IParseNode parseNode) {
100100
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
101-
return new PlannerCheckListItem();
101+
return new PlannerChecklistItem();
102102
}
103103
/// <summary>
104104
/// The deserialization information for the current model
@@ -128,3 +128,16 @@ public void Serialize(ISerializationWriter writer) {
128128
writer.WriteAdditionalData(AdditionalData);
129129
}
130130
}
131+
132+
[Obsolete("This class is obsolete due to incorrect naming. Use PlannerChecklistItem instead.")]
133+
public class PlannerCheckListItem: PlannerChecklistItem
134+
{
135+
/// <summary>
136+
/// Creates a new instance of the appropriate class based on discriminator value
137+
/// </summary>
138+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
139+
public static new PlannerCheckListItem CreateFromDiscriminatorValue(IParseNode parseNode) {
140+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
141+
return new PlannerCheckListItem();
142+
}
143+
}

src/Microsoft.Graph/Microsoft.Graph.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<DelaySign>false</DelaySign>
2323
<AssemblyOriginatorKeyFile>35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
2424
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
25-
<VersionPrefix>5.32.0</VersionPrefix>
25+
<VersionPrefix>5.33.0</VersionPrefix>
2626
<!-- VersionPrefix minor version should not be set when the change comes from the generator. It will be updated automatically. -->
2727
<!-- VersionPrefix minor version must be manually set when making manual changes to code. -->
2828
<!-- VersionPrefix major and patch versions must be manually set. -->

tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/DeltaQueryTests.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ public class DeltaQueryTests: GraphTestBase
1515
public async Task DeltaLinkDriveItem()
1616
{
1717
// Get our first delta page.
18-
var driveItemDeltaCollectionPage = await graphClient.Drives["driveId"].Items["itemId"].Delta.GetAsync();
18+
var driveItemDeltaCollectionPage = await graphClient.Drives["driveId"].Items["itemId"].Delta.GetAsDeltaGetResponseAsync();
1919

2020
// Go through all of the delta pages so that we can get the delta link on the last page.
2121
while (driveItemDeltaCollectionPage.OdataNextLink != null)
2222
{
23-
driveItemDeltaCollectionPage = await new Microsoft.Graph.Drives.Item.Items.Item.Delta.DeltaRequestBuilder(driveItemDeltaCollectionPage.OdataNextLink, graphClient.RequestAdapter).GetAsync();
23+
driveItemDeltaCollectionPage = await new Microsoft.Graph.Drives.Item.Items.Item.Delta.DeltaRequestBuilder(driveItemDeltaCollectionPage.OdataNextLink, graphClient.RequestAdapter).GetAsDeltaGetResponseAsync();
2424
}
2525

2626
// Now let's use the deltalink to make sure there aren't any changes. There shouldn't be.
2727
if (driveItemDeltaCollectionPage.OdataDeltaLink != null)
2828
{
29-
driveItemDeltaCollectionPage = await new Microsoft.Graph.Drives.Item.Items.Item.Delta.DeltaRequestBuilder(driveItemDeltaCollectionPage.OdataDeltaLink, graphClient.RequestAdapter).GetAsync();
29+
driveItemDeltaCollectionPage = await new Microsoft.Graph.Drives.Item.Items.Item.Delta.DeltaRequestBuilder(driveItemDeltaCollectionPage.OdataDeltaLink, graphClient.RequestAdapter).GetAsDeltaGetResponseAsync();
3030
}
3131
Assert.Empty(driveItemDeltaCollectionPage.Value);
3232

@@ -38,7 +38,7 @@ public async Task DeltaLinkDriveItem()
3838
// Now let's use the deltalink to make sure there aren't any changes.
3939
if (driveItemDeltaCollectionPage.OdataDeltaLink != null)
4040
{
41-
driveItemDeltaCollectionPage = await new Microsoft.Graph.Drives.Item.Items.Item.Delta.DeltaRequestBuilder(driveItemDeltaCollectionPage.OdataDeltaLink, graphClient.RequestAdapter).GetAsync();
41+
driveItemDeltaCollectionPage = await new Microsoft.Graph.Drives.Item.Items.Item.Delta.DeltaRequestBuilder(driveItemDeltaCollectionPage.OdataDeltaLink, graphClient.RequestAdapter).GetAsDeltaGetResponseAsync();
4242
}
4343

4444
// We expect two changes, one new item, and the root folder will have a change.
@@ -54,18 +54,18 @@ public async Task DeltaLinkDriveItem()
5454
public async Task DeltaLinkMessages()
5555
{
5656
// Get our first delta page.
57-
var messagesDeltaCollectionPage = await graphClient.Me.MailFolders["inbox"].Messages.Delta.GetAsync();
57+
var messagesDeltaCollectionPage = await graphClient.Me.MailFolders["inbox"].Messages.Delta.GetAsDeltaGetResponseAsync();
5858

5959
// Go through all of the delta pages so that we can get the delta link on the last page.
6060
while (messagesDeltaCollectionPage.OdataNextLink != null)
6161
{
62-
messagesDeltaCollectionPage = await new Microsoft.Graph.Me.MailFolders.Item.Messages.Delta.DeltaRequestBuilder(messagesDeltaCollectionPage.OdataNextLink,graphClient.RequestAdapter).GetAsync();
62+
messagesDeltaCollectionPage = await new Microsoft.Graph.Me.MailFolders.Item.Messages.Delta.DeltaRequestBuilder(messagesDeltaCollectionPage.OdataNextLink,graphClient.RequestAdapter).GetAsDeltaGetResponseAsync();
6363
}
6464

6565
// Now let's use the deltalink to make sure there aren't any changes. There shouldn't be.
6666
if (messagesDeltaCollectionPage.OdataDeltaLink != null)
6767
{
68-
messagesDeltaCollectionPage = await new Microsoft.Graph.Me.MailFolders.Item.Messages.Delta.DeltaRequestBuilder(messagesDeltaCollectionPage.OdataNextLink,graphClient.RequestAdapter).GetAsync();
68+
messagesDeltaCollectionPage = await new Microsoft.Graph.Me.MailFolders.Item.Messages.Delta.DeltaRequestBuilder(messagesDeltaCollectionPage.OdataNextLink,graphClient.RequestAdapter).GetAsDeltaGetResponseAsync();
6969
}
7070
Assert.Empty(messagesDeltaCollectionPage.Value);
7171

@@ -75,7 +75,7 @@ public async Task DeltaLinkMessages()
7575
// Now let's use the deltalink to make sure there aren't any changes. We expect to see a new message.
7676
if (messagesDeltaCollectionPage.OdataDeltaLink != null)
7777
{
78-
messagesDeltaCollectionPage = await new Microsoft.Graph.Me.MailFolders.Item.Messages.Delta.DeltaRequestBuilder(messagesDeltaCollectionPage.OdataNextLink,graphClient.RequestAdapter).GetAsync();
78+
messagesDeltaCollectionPage = await new Microsoft.Graph.Me.MailFolders.Item.Messages.Delta.DeltaRequestBuilder(messagesDeltaCollectionPage.OdataNextLink,graphClient.RequestAdapter).GetAsDeltaGetResponseAsync();
7979
}
8080

8181
// We expect two changes, one new item, and the root folder will have a change.
@@ -86,39 +86,39 @@ public async Task DeltaLinkMessages()
8686
public async Task UserDeltaLink()
8787
{
8888
// Get our first delta page.
89-
var userDeltaCollectionPage = await graphClient.Users.Delta.GetAsync();
89+
var userDeltaCollectionPage = await graphClient.Users.Delta.GetAsDeltaGetResponseAsync();
9090
//var userDeltaCollectionPage = userDeltaCollectionPageResult.Value;
9191

9292
// Go through all of the delta pages so that we can get the delta link on the last page.
9393
while (userDeltaCollectionPage.OdataNextLink != null)
9494
{
95-
userDeltaCollectionPage = await new Microsoft.Graph.Users.Delta.DeltaRequestBuilder(userDeltaCollectionPage.OdataNextLink, graphClient.RequestAdapter).GetAsync();
95+
userDeltaCollectionPage = await new Microsoft.Graph.Users.Delta.DeltaRequestBuilder(userDeltaCollectionPage.OdataNextLink, graphClient.RequestAdapter).GetAsDeltaGetResponseAsync();
9696
}
9797

9898
// Now let's use the deltalink to make sure there aren't any changes. We won't test this collection
9999
// since other tests could be making changes to the users in the org.
100100
if (userDeltaCollectionPage.OdataDeltaLink != null)
101101
{
102-
userDeltaCollectionPage = await new Microsoft.Graph.Users.Delta.DeltaRequestBuilder(userDeltaCollectionPage.OdataDeltaLink, graphClient.RequestAdapter).GetAsync();
102+
userDeltaCollectionPage = await new Microsoft.Graph.Users.Delta.DeltaRequestBuilder(userDeltaCollectionPage.OdataDeltaLink, graphClient.RequestAdapter).GetAsDeltaGetResponseAsync();
103103
}
104104
}
105105

106106
[Fact(Skip = "No CI set up for functional tests. Before enabling these tests, we need to cleanup our test data.")]
107107
public async Task GroupDeltaLink()
108108
{
109109
// Get our first delta page.
110-
var groupDeltaCollectionPage = await graphClient.Groups.Delta.GetAsync();
110+
var groupDeltaCollectionPage = await graphClient.Groups.Delta.GetAsDeltaGetResponseAsync();
111111

112112
// Go through all of the delta pages so that we can get the delta link on the last page.
113113
while (groupDeltaCollectionPage.OdataNextLink != null)
114114
{
115-
groupDeltaCollectionPage = await new Microsoft.Graph.Groups.Delta.DeltaRequestBuilder(groupDeltaCollectionPage.OdataNextLink,graphClient.RequestAdapter).GetAsync();
115+
groupDeltaCollectionPage = await new Microsoft.Graph.Groups.Delta.DeltaRequestBuilder(groupDeltaCollectionPage.OdataNextLink,graphClient.RequestAdapter).GetAsDeltaGetResponseAsync();
116116
}
117117

118118
// Now let's use the deltalink to make sure there aren't any changes.
119119
if (groupDeltaCollectionPage.OdataDeltaLink != null)
120120
{
121-
groupDeltaCollectionPage = await new Microsoft.Graph.Groups.Delta.DeltaRequestBuilder(groupDeltaCollectionPage.OdataDeltaLink,graphClient.RequestAdapter).GetAsync();
121+
groupDeltaCollectionPage = await new Microsoft.Graph.Groups.Delta.DeltaRequestBuilder(groupDeltaCollectionPage.OdataDeltaLink,graphClient.RequestAdapter).GetAsDeltaGetResponseAsync();
122122

123123
// This could be false in case a change has occurred to a group since the last deltapage.
124124
Assert.True((groupDeltaCollectionPage.Value.Count == 0), "groupDeltaCollectionPage has unexpected entry.");
@@ -148,7 +148,7 @@ public async Task GroupDeltaLink()
148148
// Call with the deltalink. We have to wait since there is some latency between the time that the
149149
// group is created and the time when the delta is registered.
150150
await Task.Delay(10000);
151-
groupDeltaCollectionPage = await new Microsoft.Graph.Groups.Delta.DeltaRequestBuilder(groupDeltaCollectionPage.OdataDeltaLink,graphClient.RequestAdapter).GetAsync();
151+
groupDeltaCollectionPage = await new Microsoft.Graph.Groups.Delta.DeltaRequestBuilder(groupDeltaCollectionPage.OdataDeltaLink,graphClient.RequestAdapter).GetAsDeltaGetResponseAsync();
152152

153153
Assert.True((groupDeltaCollectionPage.Value.Count == 1));
154154

tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ExcelTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private async Task OneDriveSearchForTestFile(string fileName = "_excelTestResour
3535
{
3636
// Check that this item hasn't already been created.
3737
// https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/item_search
38-
var searchResults = await graphClient.Drives["driveId"].Items[""].SearchWithQ(fileName).GetAsync();
38+
var searchResults = await graphClient.Drives["driveId"].Items[""].SearchWithQ(fileName).GetAsSearchWithQGetResponseAsync();
3939
foreach (var r in searchResults.Value)
4040
{
4141
if (r.Name != fileName)

tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/OneDriveTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class OneDriveTests : GraphTestBase
2323
public async Task OneDriveSharedWithMe()
2424
{
2525

26-
var sharedDriveItems = await graphClient.Drives["driveId"].SharedWithMe.GetAsync();
26+
var sharedDriveItems = await graphClient.Drives["driveId"].SharedWithMe.GetAsSharedWithMeGetResponseAsync();
2727
var permissionsPage = await graphClient.Drives["driveId"].Items[sharedDriveItems.Value[0].Id].Permissions.GetAsync();
2828
var permissions = new List<Permission>();
2929
permissions.AddRange(permissionsPage.Value);
@@ -232,7 +232,7 @@ public async Task OneDriveSearchFile()
232232
try
233233
{
234234
// http://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/item_search
235-
var driveItems = await graphClient.Drives["driveId"].SearchWithQ("employee services").GetAsync();
235+
var driveItems = await graphClient.Drives["driveId"].SearchWithQ("employee services").GetAsSearchWithQGetResponseAsync();
236236

237237
// Expecting two results.
238238
Assert.Equal(2, driveItems.Value.Count);
@@ -313,7 +313,7 @@ public async Task OneDriveInvite()
313313
.Root
314314
.ItemWithPath(itemToShare.Value[0].Name)
315315
.Invite
316-
.PostAsync(invitePostBody);
316+
.PostAsInvitePostResponseAsync(invitePostBody);
317317

318318
Assert.Equal("Alex Wilber", inviteCollection.Value[0].GrantedTo.User.DisplayName);
319319
}

tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/OneNoteTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ public async Task OneNoteAddPageHtmlWorkaround()
343343
"<body>Generated from the test</body></html> ";
344344

345345
var requestInformation = graphClient.Me.Onenote.Sections[firstSectionID].Pages.ToPostRequestInformation(null);
346-
requestInformation.SetStreamContent(new MemoryStream(Encoding.UTF8.GetBytes(htmlBody)));
346+
requestInformation.SetStreamContent(new MemoryStream(Encoding.UTF8.GetBytes(htmlBody)),"text/html");
347347
requestInformation.Headers.Add("Content-Type","text/html");
348348

349349
// Send the request and get the response.
@@ -406,7 +406,7 @@ public async Task OneNoteAddPageHtmlWithStreamWorkaround()
406406
requestInformation.HttpMethod = Method.POST;
407407

408408
// Create the request message and add the content.
409-
requestInformation.SetStreamContent(stream);
409+
requestInformation.SetStreamContent(stream,"text/html");
410410

411411
}
412412

@@ -477,7 +477,7 @@ public async Task OneNoteAddPageMultipartWorkaround()
477477
// Create the request message and add the content.
478478
requestInformation.HttpMethod = Method.POST;
479479
requestInformation.Headers.Add("Content-Type",contentType);
480-
requestInformation.SetStreamContent(await image.ReadAsStreamAsync());
480+
requestInformation.SetStreamContent(await image.ReadAsStreamAsync(),"application/octet-stream");
481481

482482
// Deserialize into OneNotePage object.
483483
testPage = await graphClient.RequestAdapter.SendAsync<OnenotePage>(requestInformation,OnenotePage.CreateFromDiscriminatorValue);
@@ -547,7 +547,7 @@ public async Task OneNoteUpdatePage()
547547
var serializer = new JsonSerializationWriter();
548548
serializer.WriteCollectionOfObjectValues<OnenotePatchContentCommand>(string.Empty,commands);
549549

550-
requestInformation.SetStreamContent(serializer.GetSerializedContent());
550+
requestInformation.SetStreamContent(serializer.GetSerializedContent(),"application/octet-stream");
551551
requestInformation.Headers.Add("Content-Type", "application/json");
552552

553553
// Send the request and get the response.
@@ -608,7 +608,7 @@ public async Task OneNoteAddPageWithHtml()
608608
var requestInformation =
609609
graphClient.Me.Onenote.Sections[firstSectionID].Pages.ToGetRequestInformation();
610610
requestInformation.HttpMethod = Method.POST;
611-
requestInformation.SetStreamContent(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(htmlBody)));
611+
requestInformation.SetStreamContent(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(htmlBody)),"application/octet-stream");
612612
requestInformation.Headers.Add("Content-Type","text/html");
613613
testPage = await graphClient.RequestAdapter.SendAsync(requestInformation,OnenotePage.CreateFromDiscriminatorValue);
614614

@@ -664,7 +664,7 @@ public async Task OneNoteAddPageWithMultipart()
664664
var requestInformation =
665665
graphClient.Me.Onenote.Sections[firstSectionID].Pages.ToGetRequestInformation();
666666
requestInformation.HttpMethod = Method.POST;
667-
requestInformation.SetStreamContent(await multiPartContent.ReadAsStreamAsync());
667+
requestInformation.SetStreamContent(await multiPartContent.ReadAsStreamAsync(),"application/octet-stream");
668668
requestInformation.Headers.Add("Content-Type",contentType);
669669
testPage = await graphClient.RequestAdapter.SendAsync(requestInformation,OnenotePage.CreateFromDiscriminatorValue);
670670
}

0 commit comments

Comments
 (0)