@@ -2529,7 +2529,7 @@ def get_integrations_generator(self):
25292529 """
25302530 return self .json_paging_api_call (
25312531 'GET' ,
2532- '/admin/v2 /integrations' ,
2532+ '/admin/v3 /integrations' ,
25332533 {},
25342534 )
25352535
@@ -2549,7 +2549,7 @@ def get_integrations(self, limit=None, offset=0):
25492549 if limit :
25502550 return self .json_api_call (
25512551 'GET' ,
2552- '/admin/v2 /integrations' ,
2552+ '/admin/v3 /integrations' ,
25532553 {'limit' : limit , 'offset' : offset },
25542554 )
25552555
@@ -2568,7 +2568,7 @@ def get_integration(self, integration_key):
25682568 params = {}
25692569 response = self .json_api_call (
25702570 'GET' ,
2571- '/admin/v2 /integrations/' + integration_key ,
2571+ '/admin/v3 /integrations/' + integration_key ,
25722572 params ,
25732573 )
25742574 return response
@@ -2593,7 +2593,8 @@ def create_integration(self,
25932593 ip_whitelist_enroll_policy = None ,
25942594 groups_allowed = None ,
25952595 self_service_allowed = None ,
2596- sso = None ):
2596+ sso = None ,
2597+ user_access = None ):
25972598 """Creates a new integration.
25982599
25992600 name - The name of the integration (required)
@@ -2671,8 +2672,11 @@ def create_integration(self,
26712672 params ['self_service_allowed' ] = '1' if self_service_allowed else '0'
26722673 if sso is not None :
26732674 params ['sso' ] = sso
2675+ if user_access is not None :
2676+ params ['user_access' ] = user_access
2677+
26742678 response = self .json_api_call ('POST' ,
2675- '/admin/v2 /integrations' ,
2679+ '/admin/v3 /integrations' ,
26762680 params ,
26772681 )
26782682 return response
@@ -2766,7 +2770,7 @@ def delete_integration(self, integration_key):
27662770
27672771 """
27682772 integration_key = urllib .parse .quote_plus (str (integration_key ))
2769- path = '/admin/v2 /integrations/%s' % integration_key
2773+ path = '/admin/v3 /integrations/%s' % integration_key
27702774 return self .json_api_call (
27712775 'DELETE' ,
27722776 path ,
@@ -2794,7 +2798,9 @@ def update_integration(self,
27942798 ip_whitelist_enroll_policy = None ,
27952799 groups_allowed = None ,
27962800 self_service_allowed = None ,
2797- sso = None ):
2801+ sso = None ,
2802+ user_access = None
2803+ ):
27982804 """Updates an integration.
27992805
28002806 integration_key - The key of the integration to update. (required)
@@ -2833,7 +2839,7 @@ def update_integration(self,
28332839
28342840 """
28352841 integration_key = urllib .parse .quote_plus (str (integration_key ))
2836- path = '/admin/v2 /integrations/%s' % integration_key
2842+ path = '/admin/v3 /integrations/%s' % integration_key
28372843 params = {}
28382844 if name is not None :
28392845 params ['name' ] = name
@@ -2877,6 +2883,8 @@ def update_integration(self,
28772883 params ['self_service_allowed' ] = '1' if self_service_allowed else '0'
28782884 if sso is not None :
28792885 params ['sso' ] = sso
2886+ if user_access is not None :
2887+ params ['user_access' ] = user_access
28802888
28812889 if not params :
28822890 raise TypeError ("No new values were provided" )
0 commit comments