appmesh 1.5.3__py3-none-any.whl → 1.5.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
appmesh/http_client.py CHANGED
@@ -876,12 +876,13 @@ class AppMeshClient(metaclass=abc.ABCMeta):
876
876
  ########################################
877
877
  # User Management
878
878
  ########################################
879
- def update_user_password(self, new_password: str, user_name: str = "self") -> bool:
879
+ def update_user_password(self, old_password: str, new_password: str, user_name: str = "self") -> bool:
880
880
  """Change the password of a user.
881
881
 
882
882
  Args:
883
883
  user_name (str): the user name.
884
- new_password (str):the new password string
884
+ old_password (str): the old password string.
885
+ new_password (str):the new password string.
885
886
 
886
887
  Returns:
887
888
  bool: success
@@ -889,7 +890,10 @@ class AppMeshClient(metaclass=abc.ABCMeta):
889
890
  resp = self._request_http(
890
891
  method=AppMeshClient.Method.POST,
891
892
  path=f"/appmesh/user/{user_name}/passwd",
892
- body={"new_password": base64.b64encode(new_password.encode()).decode()},
893
+ body={
894
+ "old_password": base64.b64encode(old_password.encode()).decode(),
895
+ "new_password": base64.b64encode(new_password.encode()).decode(),
896
+ },
893
897
  )
894
898
  if resp.status_code != HTTPStatus.OK:
895
899
  raise Exception(resp.text)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: appmesh
3
- Version: 1.5.3
3
+ Version: 1.5.4
4
4
  Summary: Client SDK for App Mesh
5
5
  Home-page: https://github.com/laoshanxi/app-mesh
6
6
  Author: laoshanxi
@@ -3,11 +3,11 @@ appmesh/app.py,sha256=9Q-SOOej-MH13BU5Dv2iTa-p-sECCJQp6ZX9DjWWmwE,10526
3
3
  appmesh/app_output.py,sha256=JK_TMKgjvaw4n_ys_vmN5S4MyWVZpmD7NlKz_UyMIM8,1015
4
4
  appmesh/app_run.py,sha256=9ISKGZ3k3kkbQvSsPfRfkOLqD9xhbqNOM7ork9F4w9c,1712
5
5
  appmesh/appmesh_client.py,sha256=0ltkqHZUq094gKneYmC0bEZCP0X9kHTp9fccKdWFWP0,339
6
- appmesh/http_client.py,sha256=BMnzxZE2N-P3tLGkf0LKrqCJRWCPYciw-gXj5z_YTbE,55783
6
+ appmesh/http_client.py,sha256=teJnIAzR7yUJHnQ9HL7DwT_uMlMy_PW8P4tADosKWeg,55973
7
7
  appmesh/tcp_client.py,sha256=Id1aIKVWncTSZiKRVa4sgwo1tFX2wRqOLiTnI9-dNkE,11001
8
8
  appmesh/tcp_messages.py,sha256=w1Kehz_aX4X2CYAUsy9mFVJRhxnLQwwc6L58W4YkQqs,969
9
9
  appmesh/tcp_transport.py,sha256=-XDTQbsKL3yCbguHeW2jNqXpYgnCyHsH4rwcaJ46AS8,8645
10
- appmesh-1.5.3.dist-info/METADATA,sha256=9dWHetQBFMlX98d67VRoF53fkxxbpLju97uPoudjADs,11684
11
- appmesh-1.5.3.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
12
- appmesh-1.5.3.dist-info/top_level.txt,sha256=-y0MNQOGJxUzLdHZ6E_Rfv5_LNCkV-GTmOBME_b6pg8,8
13
- appmesh-1.5.3.dist-info/RECORD,,
10
+ appmesh-1.5.4.dist-info/METADATA,sha256=6ifFE59KKoLvM0ti58Of96_zSmlPgpEWzzQgOIir3-k,11684
11
+ appmesh-1.5.4.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
12
+ appmesh-1.5.4.dist-info/top_level.txt,sha256=-y0MNQOGJxUzLdHZ6E_Rfv5_LNCkV-GTmOBME_b6pg8,8
13
+ appmesh-1.5.4.dist-info/RECORD,,