File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -37,20 +37,19 @@ def __init__(self, client: ApiCaller):
37
37
self ._client = client
38
38
39
39
@validate_arguments
40
- def creator (
41
- self , credential : Credential , test : Optional [bool ] = True
42
- ) -> CredentialResponse :
40
+ def creator (self , credential : Credential , test : bool = True ) -> CredentialResponse :
43
41
"""
44
42
Create a new credential.
45
43
46
44
:param credential: provide full details of the credential's to be created.
47
- :param test: whether to validate the credentials (True) or skip validation (False) before creation.
45
+ :param test: whether to validate the credentials (`True`) or skip validation
46
+ (`False`) before creation, defaults to `True`.
48
47
:returns: A CredentialResponse instance.
49
48
:raises ValidationError: If the provided `credential` is invalid.
50
49
"""
51
50
raw_json = self ._client ._call_api (
52
51
api = CREATE_CREDENTIALS .format_path_with_params (),
53
- query_params = {"testCredential" : f" { test } " },
52
+ query_params = {"testCredential" : test },
54
53
request_obj = credential ,
55
54
)
56
55
return CredentialResponse (** raw_json )
You can’t perform that action at this time.
0 commit comments