@@ -35,7 +35,7 @@ def _url(self, *args):
3535 url = '{}/{}' .format (url , p )
3636 return url
3737
38- def get_actions (self , trigger_id = None , action_name = None , deployed = False , installed = False , page = None , per_page = None ):
38+ def get_actions (self , trigger_id = None , action_name = None , deployed = None , installed = False , page = None , per_page = None ):
3939 """Get all actions.
4040
4141 Args:
@@ -58,10 +58,14 @@ def get_actions(self, trigger_id=None, action_name=None, deployed=False, install
5858
5959 See: https://auth0.com/docs/api/management/v2#!/Actions/get_actions
6060 """
61+
62+ if deployed is not None :
63+ deployed = str (deployed ).lower ()
64+
6165 params = {
6266 'triggerId' : trigger_id ,
6367 'actionName' : action_name ,
64- 'deployed' : str ( deployed ). lower () ,
68+ 'deployed' : deployed ,
6569 'installed' : str (installed ).lower (),
6670 'page' : page ,
6771 'per_page' : per_page
@@ -111,17 +115,17 @@ def delete_action(self, id, force=False):
111115 Args:
112116 id (str): ID of the action to delete.
113117
114- force (bool, optional): True to force action deletion detaching bindings,
118+ force (bool, optional): True to force action deletion detaching bindings,
115119 False otherwise. Defaults to False.
116-
120+
117121 See: https://auth0.com/docs/api/management/v2#!/Actions/delete_action
118122 """
119123 params = {
120124 'force' : str (force ).lower ()
121125 }
122126
123127 return self .client .delete (self ._url ('actions' , id ), params = params )
124-
128+
125129 def get_triggers (self ):
126130 """Retrieve the set of triggers currently available within actions.
127131
@@ -132,7 +136,7 @@ def get_triggers(self):
132136 return self .client .get (self ._url ('triggers' ), params = params )
133137
134138 def get_execution (self , id ):
135- """Get information about a specific execution of a trigger.
139+ """Get information about a specific execution of a trigger.
136140
137141 Args:
138142 id (str): The ID of the execution to retrieve.
@@ -145,7 +149,7 @@ def get_execution(self, id):
145149
146150 def get_action_versions (self , id , page = None , per_page = None ):
147151 """Get all of an action's versions.
148-
152+
149153 Args:
150154 id (str): The ID of the action.
151155
@@ -185,7 +189,7 @@ def get_trigger_bindings(self, id, page=None, per_page=None):
185189 return self .client .get (self ._url ('triggers' , id , 'bindings' ), params = params )
186190
187191 def get_action_version (self , action_id , version_id ):
188- """Retrieve a specific version of an action.
192+ """Retrieve a specific version of an action.
189193
190194 Args:
191195 action_id (str): The ID of the action.
@@ -227,8 +231,8 @@ def update_trigger_bindings(self, id, body):
227231 Args:
228232 id (str): The ID of the trigger to update.
229233
230- body (dict): Attributes for the updated trigger binding.
231-
234+ body (dict): Attributes for the updated trigger binding.
235+
232236 See: https://auth0.com/docs/api/management/v2#!/Actions/patch_bindings
233237 """
234- return self .client .patch (self ._url ('triggers' , id , 'bindings' ), data = body )
238+ return self .client .patch (self ._url ('triggers' , id , 'bindings' ), data = body )
0 commit comments