Skip to content

Commit 276f260

Browse files
committed
lint fix
1 parent e7d59df commit 276f260

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+5194
-1387
lines changed

jelastic/api/data/__init__.py

Lines changed: 158 additions & 54 deletions
Large diffs are not rendered by default.

jelastic/api/management/__init__.py

Lines changed: 54 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,42 +29,74 @@ class _Account(Management):
2929

3030
_endpoint2 = "account"
3131

32-
def AddPrivateSSHKey(self, title: str, ssh_key: str, ruk: str = None,):
32+
def AddPrivateSSHKey(
33+
self,
34+
title: str,
35+
ssh_key: str,
36+
ruk: str = None,
37+
):
3338
"""
3439
:param title: title of the ssh key.
3540
:param sshKey: value of the ssh key.
3641
"""
3742
return self._get(
3843
"AddPrivateSSHKey",
39-
params={"title": title, "sshKey": ssh_key, "ruk": ruk,},
44+
params={
45+
"title": title,
46+
"sshKey": ssh_key,
47+
"ruk": ruk,
48+
},
4049
)
4150

42-
def AddPublicSSHKey(self, title: str, ssh_key: str, ruk: str = None,):
51+
def AddPublicSSHKey(
52+
self,
53+
title: str,
54+
ssh_key: str,
55+
ruk: str = None,
56+
):
4357
"""
4458
:param title: title of the ssh key.
4559
:param sshKey: value of the ssh key.
4660
"""
4761
return self._get(
4862
"AddPublicSSHKey",
49-
params={"title": title, "sshKey": ssh_key, "ruk": ruk,},
63+
params={
64+
"title": title,
65+
"sshKey": ssh_key,
66+
"ruk": ruk,
67+
},
5068
)
5169

52-
def AddSSHKey(self, title: str, ssh_key: str, is_private: bool, ruk: str = None,):
70+
def AddSSHKey(
71+
self,
72+
title: str,
73+
ssh_key: str,
74+
is_private: bool,
75+
ruk: str = None,
76+
):
5377
"""
5478
:param title: title of the ssh key.
5579
:param sshKey: value of the ssh key.
5680
"""
5781
return self._get(
5882
"AddSSHKey",
59-
params={"title": title, "sshKey": ssh_key, "isPrivate": is_private, "ruk": ruk,},
83+
params={
84+
"title": title,
85+
"sshKey": ssh_key,
86+
"isPrivate": is_private,
87+
"ruk": ruk,
88+
},
6089
)
6190

6291
def AdjustContainersLimitsForAllUsers(
63-
self, ruk: str = None,
92+
self,
93+
ruk: str = None,
6494
):
6595
return self._get(
6696
"AdjustContainersLimitsForAllUsers",
67-
params={"ruk": ruk,},
97+
params={
98+
"ruk": ruk,
99+
},
68100
)
69101

70102
def CleanQuotasCache(
@@ -80,7 +112,11 @@ def CleanQuotasCache(
80112
},
81113
)
82114

83-
def DeleteSSHKey(self, id: int, ruk: str = None,):
115+
def DeleteSSHKey(
116+
self,
117+
id: int,
118+
ruk: str = None,
119+
):
84120
"""
85121
:param id: unique identifier of the ssh key.
86122
"""
@@ -107,13 +143,20 @@ def GetQuotasByIpAddress(
107143
},
108144
)
109145

110-
def GetSSHKeys(self, is_private: bool, ruk: str = None,):
146+
def GetSSHKeys(
147+
self,
148+
is_private: bool,
149+
ruk: str = None,
150+
):
111151
"""
112152
:param isPrivate: defines whether to return the account's private (true) or public (false) SSH keys.
113153
"""
114154
return self._get(
115155
"GetSSHKeys",
116-
params={"isPrivate": is_private, "ruk": ruk,},
156+
params={
157+
"isPrivate": is_private,
158+
"ruk": ruk,
159+
},
117160
)
118161

119162
def GetSSHKeysInner(

0 commit comments

Comments
 (0)