Skip to content

get_storage_key function is under graph client and should be under identity client? #123

@williware

Description

@williware

The get_storage_key function has
location_id='eb85f8cc-f0f6-4264-a5b1-ffe2e4d4801f'
when calling the function via a graph client (where the code is located) it returns a location error
grph_client.get_storage_key(usrDave.descriptor)
ValueError: API resource location eb85f8cc-f0f6-4264-a5b1-ffe2e4d4801f is not registered on https://aiz-alm.visualstudio.com.

-----------------Test w/ each client ------------------------

type(grph_client)
<class 'vsts.graph.v4_1.graph_client.GraphClient'>
type(id_client)
<class 'vsts.identity.v4_1.identity_client.IdentityClient'>

location_id='eb85f8cc-f0f6-4264-a5b1-ffe2e4d4801f'
grph_client._get_resource_location(location_id)

returns None

id_client._get_resource_location(location_id).dict
{'additional_properties': {}, 'id': 'eb85f8cc-f0f6-4264-a5b1-ffe2e4d4801f', 'area': 'Graph', 'resource_name': 'StorageKeys', 'route_template': '_apis/{area}/{resource}/{subjectDescriptor}', 'resource_version': 1, 'min_version': 3.2, 'max_version': 5.0, 'released_version': '0.0'}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions