-
Notifications
You must be signed in to change notification settings - Fork 136
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
chore: update_integration() function parameter clarification. Closes #280 #281
base: master
Are you sure you want to change the base?
chore: update_integration() function parameter clarification. Closes #280 #281
Conversation
add policy_key parameter add deprecation warning for visual_style parameter Tested-by: manual testing
duo_client/admin.py
Outdated
@@ -2792,15 +2792,15 @@ def update_integration(self, | |||
trusted_device_days=None, | |||
ip_whitelist=None, | |||
ip_whitelist_enroll_policy=None, | |||
groups_allowed=None, | |||
groups_allowed=None, policy_key=None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we split this into two lines, to be consistent with the surroundings?
@@ -2838,6 +2840,8 @@ def update_integration(self, | |||
if name is not None: | |||
params['name'] = name | |||
if visual_style is not None: | |||
warnings.warn("The 'visual_style' argument is deprecated. May be removed in a future release.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we do this other places, for deprecated parameters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. In get_authentication_log() and get_group()
Updated parameter definition indentation to match previous iteration for consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed parameter indentation for update_integration()
method.
add policy_key parameter
add deprecation warning for visual_style parameter
Tested-by: manual testing
Description
Added a deprecation warning to the 'visual_style' argument processing. Added new parameter for 'policy_key' to support setting of application level custom policy value.
Motivation and Context
Changes are made to bring client closer to available Admin API endpoint functionality.
How Has This Been Tested?
Tested manually on a local virtual environment.
Types of Changes