duosecurity / duo_client_python

Python library for interacting with the Duo Auth, Admin, and Accounts APIs
https://duo.com/docs/
Other
136 stars 136 forks source link

Add policy summary endpoint #228

Closed jaherne-duo closed 1 year ago

jaherne-duo commented 1 year ago

Description

Adds a new method get_policy_summary_v2 for the /admin/v2/policies/summary endpoint

Motivation and Context

Gives access to new policy API endpoint.

How Has This Been Tested?

Added a new test, verified that the new endpoint works as expected.

Types of Changes

AaronAtDuo commented 1 year ago

LGTM! Possibly in the future we can add this to the policy api example at https://github.com/duosecurity/duo_client_python/blob/master/examples/policies.py but I won't block this PR on that.