Skip to content

Commit

Permalink
Bumps version and release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Omondi (from Dev Box) committed Nov 2, 2023
1 parent ca6ab00 commit 2a8b0db
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 41 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v

## [Unreleased]

## [5.33.0] - 2023-11-02

- Latest metadata updates from 31st October 2023.

## [5.32.0] - 2023-10-24

- SDK is compatible with trimming(https://github.com/microsoftgraph/msgraph-sdk-dotnet/pull/2174)
Expand Down
21 changes: 17 additions & 4 deletions src/Microsoft.Graph/Extensions/PlannerCheckListItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Microsoft.Graph.Models;

public class PlannerCheckListItem: IAdditionalDataHolder, IBackedModel, IParsable
public class PlannerChecklistItem: IAdditionalDataHolder, IBackedModel, IParsable
{
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData {
Expand Down Expand Up @@ -87,7 +87,7 @@ public string Title {
/// <summary>
/// Instantiates a new auditActivityInitiator and sets the default values.
/// </summary>
public PlannerCheckListItem() {
public PlannerChecklistItem() {
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
AdditionalData = new Dictionary<string, object>();
OdataType = "#microsoft.graph.plannerChecklistItem";
Expand All @@ -96,9 +96,9 @@ public PlannerCheckListItem() {
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static PlannerCheckListItem CreateFromDiscriminatorValue(IParseNode parseNode) {
public static PlannerChecklistItem CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new PlannerCheckListItem();
return new PlannerChecklistItem();
}
/// <summary>
/// The deserialization information for the current model
Expand Down Expand Up @@ -128,3 +128,16 @@ public void Serialize(ISerializationWriter writer) {
writer.WriteAdditionalData(AdditionalData);
}
}

[Obsolete("This class is obsolete due to incorrect naming. Use PlannerChecklistItem instead.")]
public class PlannerCheckListItem: PlannerChecklistItem
{
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static new PlannerCheckListItem CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new PlannerCheckListItem();
}
}
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Microsoft.Graph.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<DelaySign>false</DelaySign>
<AssemblyOriginatorKeyFile>35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<VersionPrefix>5.32.0</VersionPrefix>
<VersionPrefix>5.33.0</VersionPrefix>
<!-- VersionPrefix minor version should not be set when the change comes from the generator. It will be updated automatically. -->
<!-- VersionPrefix minor version must be manually set when making manual changes to code. -->
<!-- VersionPrefix major and patch versions must be manually set. -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ public class DeltaQueryTests: GraphTestBase
public async Task DeltaLinkDriveItem()
{
// Get our first delta page.
var driveItemDeltaCollectionPage = await graphClient.Drives["driveId"].Items["itemId"].Delta.GetAsync();
var driveItemDeltaCollectionPage = await graphClient.Drives["driveId"].Items["itemId"].Delta.GetAsDeltaGetResponseAsync();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private async Task OneDriveSearchForTestFile(string fileName = "_excelTestResour
{
// Check that this item hasn't already been created.
// https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/item_search
var searchResults = await graphClient.Drives["driveId"].Items[""].SearchWithQ(fileName).GetAsync();
var searchResults = await graphClient.Drives["driveId"].Items[""].SearchWithQ(fileName).GetAsSearchWithQGetResponseAsync();
foreach (var r in searchResults.Value)
{
if (r.Name != fileName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class OneDriveTests : GraphTestBase
public async Task OneDriveSharedWithMe()
{

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

// Expecting two results.
Assert.Equal(2, driveItems.Value.Count);
Expand Down Expand Up @@ -313,7 +313,7 @@ public async Task OneDriveInvite()
.Root
.ItemWithPath(itemToShare.Value[0].Name)
.Invite
.PostAsync(invitePostBody);
.PostAsInvitePostResponseAsync(invitePostBody);

Assert.Equal("Alex Wilber", inviteCollection.Value[0].GrantedTo.User.DisplayName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public async Task OneNoteAddPageHtmlWorkaround()
"<body>Generated from the test</body></html> ";

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

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

// Create the request message and add the content.
requestInformation.SetStreamContent(stream);
requestInformation.SetStreamContent(stream,"text/html");

}

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

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

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

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

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

0 comments on commit 2a8b0db

Please sign in to comment.