microsoftgraph / microsoftgraph/msgraph-beta-sdk-dotnet

IdentityGovernance.EntitlementManagement.AccessPackageCatalogs.GetAsync() marked as obsolete

Open
#735 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug: metadata Status: Needs investigation
Dominant language
C#
Stars
112
Forks
37
Avg merge
14h 57m
Merged PRs (30d)
3

Description

I'm using Microsoft.Graph.Beta 5.49.0-preview, the latest at the time of writing.

This is a snippet of my code:

var response = await _graphClient.IdentityGovernance.EntitlementManagement.AccessPackageCatalogs.GetAsync(
    requestConfiguration =>
    {
        requestConfiguration.QueryParameters.Expand = new[] { "AccessPackageResources" };
    });

I'm getting a warning about IdentityGovernance.EntitlementManagement.AccessPackageCatalogs.GetAsync() being obsolete:

Warning CS0618 : 'AccessPackageCatalogsRequestBuilder.GetAsync(Action<AccessPackageCatalogsRequestBuilder.AccessPackageCatalogsRequestBuilderGetRequestConfiguration>?, CancellationToken)' is obsolete: ' as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31'

I've not been able to find a way to resolve this - what should I be calling instead?

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with IdentityGovernance.EntitlementManagement.AccessPackageCatalogs.GetAsync() in Microsoft.Graph.Beta 5.49.0-preview and the CS0618 warning quoted in the issue. Identify the supported replacement for retrieving AccessPackageResources and document a non-obsolete call that provides the same result.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.