Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-pal1 committed Jan 31, 2024
1 parent e7d59df commit 276f260
Show file tree
Hide file tree
Showing 48 changed files with 5,194 additions and 1,387 deletions.
212 changes: 158 additions & 54 deletions jelastic/api/data/__init__.py

Large diffs are not rendered by default.

65 changes: 54 additions & 11 deletions jelastic/api/management/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,42 +29,74 @@ class _Account(Management):

_endpoint2 = "account"

def AddPrivateSSHKey(self, title: str, ssh_key: str, ruk: str = None,):
def AddPrivateSSHKey(
self,
title: str,
ssh_key: str,
ruk: str = None,
):
"""
:param title: title of the ssh key.
:param sshKey: value of the ssh key.
"""
return self._get(
"AddPrivateSSHKey",
params={"title": title, "sshKey": ssh_key, "ruk": ruk,},
params={
"title": title,
"sshKey": ssh_key,
"ruk": ruk,
},
)

def AddPublicSSHKey(self, title: str, ssh_key: str, ruk: str = None,):
def AddPublicSSHKey(
self,
title: str,
ssh_key: str,
ruk: str = None,
):
"""
:param title: title of the ssh key.
:param sshKey: value of the ssh key.
"""
return self._get(
"AddPublicSSHKey",
params={"title": title, "sshKey": ssh_key, "ruk": ruk,},
params={
"title": title,
"sshKey": ssh_key,
"ruk": ruk,
},
)

def AddSSHKey(self, title: str, ssh_key: str, is_private: bool, ruk: str = None,):
def AddSSHKey(
self,
title: str,
ssh_key: str,
is_private: bool,
ruk: str = None,
):
"""
:param title: title of the ssh key.
:param sshKey: value of the ssh key.
"""
return self._get(
"AddSSHKey",
params={"title": title, "sshKey": ssh_key, "isPrivate": is_private, "ruk": ruk,},
params={
"title": title,
"sshKey": ssh_key,
"isPrivate": is_private,
"ruk": ruk,
},
)

def AdjustContainersLimitsForAllUsers(
self, ruk: str = None,
self,
ruk: str = None,
):
return self._get(
"AdjustContainersLimitsForAllUsers",
params={"ruk": ruk,},
params={
"ruk": ruk,
},
)

def CleanQuotasCache(
Expand All @@ -80,7 +112,11 @@ def CleanQuotasCache(
},
)

def DeleteSSHKey(self, id: int, ruk: str = None,):
def DeleteSSHKey(
self,
id: int,
ruk: str = None,
):
"""
:param id: unique identifier of the ssh key.
"""
Expand All @@ -107,13 +143,20 @@ def GetQuotasByIpAddress(
},
)

def GetSSHKeys(self, is_private: bool, ruk: str = None,):
def GetSSHKeys(
self,
is_private: bool,
ruk: str = None,
):
"""
:param isPrivate: defines whether to return the account's private (true) or public (false) SSH keys.
"""
return self._get(
"GetSSHKeys",
params={"isPrivate": is_private, "ruk": ruk,},
params={
"isPrivate": is_private,
"ruk": ruk,
},
)

def GetSSHKeysInner(
Expand Down
Loading

0 comments on commit 276f260

Please sign in to comment.