Skip to content

Beta endpoints marked as obsolete in .NET SDK #1091

@MartinM85

Description

@MartinM85

Describe the bug

Hi,
for some reason, the Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder has the following properties

  • Mailboxes
  • MessageTraces
  • Traces

generated with the obsolete attribute and with the message

Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15.

Same for the Microsoft.Graph.Beta.Me.Settings.Exchange.GetAsync().

Would it be possible to remove the obsolete message from metadata, so .NET SDK code is generated without the obsolete attribute?

Expected behavior

The mentioned properties and method are generated without the obsolete attribute

How to reproduce

Create a console app, install the latest version of beta nuget and add the following code:

var client = new GraphServiceClient(credential);

var result = await client.Me.Settings.Exchange.GetAsync();
var mailboxId = result.PrimaryMailboxId;

var rootFolder = await client.Admin.Exchange.Mailboxes[mailboxId].Folders[folderId].GetAsync();

SDK Version

5.131.0-preview

Latest version known to work for scenario above?

No response

Known Workarounds

No workarounds

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions