-
Notifications
You must be signed in to change notification settings - Fork 2
feat: release mistapi 0.64.0 #35
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
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
cc70178
fix(makefile): update OpenAPI submodule handling in generate target
tmunzer-AIDE 9dc604d
feat(marvisclient): add Marvis client events definitions API endpoint
tmunzer-AIDE 0a92d9f
feat(orgs): add AOSCX and EdgeConnect register command APIs
tmunzer-AIDE d9b03b2
fix(oauth): clarify Oauth2 provider name in function docstrings
tmunzer-AIDE 9e6d0c0
feat(devices): add new APIs for searching site device flow records an…
tmunzer-AIDE 3874e44
feat(inventory): add 'magic' filter to searchOrgInventory for device …
tmunzer-AIDE 91f50a8
feat(orgs): enhance searchOrgJsiAssetsAndContracts with additional fi…
tmunzer-AIDE 9656b67
fix(nac_clients): rename edr_provider to edr_providers for consistenc…
tmunzer-AIDE b74ac9a
feat(iotendpoints): add countSiteIotEndpoints and rejoinSiteIotEndpoi…
tmunzer-AIDE 730e091
fix(nac_clients): correct spelling of "organization" in docstring for…
tmunzer-AIDE f1be46d
feat(stats): add 'wired' filter to getSiteCallsSummary and listSiteTr…
tmunzer-AIDE b53576f
feat(mxedge): add utility functions for site-level and organization-l…
tmunzer-AIDE d6e3337
feat(ap): add remote capture functions to AP utilities
tmunzer-AIDE afafc2f
feat(shell): reorganize shell imports and add remote capture function…
tmunzer-AIDE 314b791
feat(srx): reorganize shell imports and add remote capture functionality
tmunzer-AIDE 421917f
feat(ssr): reorganize miscellaneous imports and add remote capture fu…
tmunzer-AIDE c339fc5
feat(orgs): add PcapEvents WebSocket class for organization packet ca…
tmunzer-AIDE 6832e82
feat(tests): add unit tests for remote packet capture utilities
tmunzer-AIDE 110de99
chore: update version to 0.64.0 in project files
tmunzer-AIDE 8f8256c
docs: add 0.64.0 changelog
tmunzer-AIDE c45840f
docs: document remote capture breaking changes
tmunzer-AIDE f6724b5
bump dependencies
tmunzer-AIDE 752208c
test: restore lazy import modules after mocking
tmunzer-AIDE f4b2913
Change wired check to handle None value
tmunzer-AIDE f6fac7d
docs: update examples in remote pcap functions to use UUID format
tmunzer-AIDE 2fcd5f3
Merge branch '0.64.0' of https://github.com/tmunzer/mistapi_python in…
tmunzer-AIDE File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| __version__ = "0.63.3" | ||
| __version__ = "0.64.0" | ||
| __author__ = "Thomas Munzer <tmunzer@juniper.net>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| """ | ||
| -------------------------------------------------------------------------------- | ||
| ------------------------- Mist API Python CLI Session -------------------------- | ||
|
|
||
| Written by: Thomas Munzer (tmunzer@juniper.net) | ||
| Github : https://github.com/tmunzer/mistapi_python | ||
|
|
||
| This package is licensed under the MIT License. | ||
|
|
||
| -------------------------------------------------------------------------------- | ||
| """ | ||
|
|
||
| from mistapi import APISession as _APISession | ||
| from mistapi.__api_response import APIResponse as _APIResponse | ||
|
|
||
|
|
||
| def listMarvisClientEventsDefinitions(mist_session: _APISession) -> _APIResponse: | ||
| """ | ||
| API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/constants/definitions/list-marvis-client-events-definitions | ||
|
|
||
| PARAMS | ||
| ----------- | ||
| mistapi.APISession : mist_session | ||
| mistapi session including authentication and Mist host information | ||
|
|
||
| RETURN | ||
| ----------- | ||
| mistapi.APIResponse | ||
| response from the API call | ||
| """ | ||
|
|
||
| uri = "/api/v1/const/marvisclient_events" | ||
| query_params: dict[str, str] = {} | ||
| resp = mist_session.mist_get(uri=uri, query=query_params) | ||
| return resp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| """ | ||
| -------------------------------------------------------------------------------- | ||
| ------------------------- Mist API Python CLI Session -------------------------- | ||
|
|
||
| Written by: Thomas Munzer (tmunzer@juniper.net) | ||
| Github : https://github.com/tmunzer/mistapi_python | ||
|
|
||
| This package is licensed under the MIT License. | ||
|
|
||
| -------------------------------------------------------------------------------- | ||
| """ | ||
|
|
||
| from mistapi import APISession as _APISession | ||
| from mistapi.__api_response import APIResponse as _APIResponse | ||
|
|
||
|
|
||
| def getOrgEdgeconnectRegisterCmd( | ||
| mist_session: _APISession, org_id: str | ||
| ) -> _APIResponse: | ||
| """ | ||
| API doc: https://www.juniper.net/documentation/us/en/software/mist/api/http/api/orgs/devices/edgeconnect/get-org-edgeconnect-register-cmd | ||
|
|
||
| PARAMS | ||
| ----------- | ||
| mistapi.APISession : mist_session | ||
| mistapi session including authentication and Mist host information | ||
|
|
||
| PATH PARAMS | ||
| ----------- | ||
| org_id : str | ||
|
|
||
| RETURN | ||
| ----------- | ||
| mistapi.APIResponse | ||
| response from the API call | ||
| """ | ||
|
|
||
| uri = f"/api/v1/orgs/{org_id}/edgeconnect/register_cmd" | ||
| query_params: dict[str, str] = {} | ||
| resp = mist_session.mist_get(uri=uri, query=query_params) | ||
| return resp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.