Skip to content

make api version configurable to support beta api #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

willhurley004
Copy link

This PR is to make the version of the graph rest api configurable. Currently only the 1.0 api is supported. This PR would make the beta api available by adding a parameter api_version to the GraphSession class. The default for api_version would at 1.0.

@ghost
Copy link

ghost commented Jun 14, 2020

CLA assistant check
All CLA requirements met.

@@ -18,11 +18,12 @@ class GraphSession(Session):
def __init__(self,
credential: TokenCredential,
scopes: [str] = ['.default'],
middleware: list = []
middleware: list = [],
api_version: str = '1.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

str = '1.0' becomes str = 'v1.0'

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@MIchaelMainer MIchaelMainer requested a review from jobala June 16, 2020 20:15
Copy link
Contributor

@jobala jobala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution @willhurley004

@jobala jobala merged commit a1275d0 into microsoftgraph:dev Jun 26, 2020
@altho1 altho1 mentioned this pull request Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants