Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MarkTripod-Duo
Copy link
Contributor

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

add policy_key parameter
add deprecation warning for visual_style parameter

Tested-by: manual testing
@MarkTripod-Duo MarkTripod-Duo changed the title chore: update_integration() function parameter clarification chore: update_integration() function parameter clarification. Closes #280 Nov 8, 2024
@@ -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,
Copy link
Contributor

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.",
Copy link
Contributor

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?

Copy link
Contributor Author

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.
Copy link
Contributor Author

@MarkTripod-Duo MarkTripod-Duo left a 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.

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.

2 participants