From d0c048351e25fe5b93df60d5a86d9f327e85ed13 Mon Sep 17 00:00:00 2001 From: VsevolodX Date: Tue, 9 Sep 2025 17:40:03 -0700 Subject: [PATCH 1/4] update: pass params in update --- exabyte_api_client/endpoints/entity.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exabyte_api_client/endpoints/entity.py b/exabyte_api_client/endpoints/entity.py index 1da3d1d..5603813 100644 --- a/exabyte_api_client/endpoints/entity.py +++ b/exabyte_api_client/endpoints/entity.py @@ -63,18 +63,19 @@ def delete(self, id_): """ return self.request("DELETE", "/".join((self.name, id_)), headers=self.headers) - def update(self, id_, modifier): + def update(self, id_, modifier, parameters=None): """ Updates a entity with given ID. Args: id_ (str): entity ID. modifier (dict): a dictionary of key-values to update entity with. + parameters (dict): additional request parameters. Returns: dict: updated entity. """ - return self.request("PATCH", "/".join((self.name, id_)), data=json.dumps(modifier), headers=self.headers) + return self.request("PATCH", "/".join((self.name, id_)), data=json.dumps(modifier), params=parameters, headers=self.headers) def create(self, config, owner_id=None): """ From a3059a89088dd7380cc1cb67ac8e98c3e6767803 Mon Sep 17 00:00:00 2001 From: Timur Bazhirov Date: Fri, 12 Sep 2025 16:22:37 -0700 Subject: [PATCH 2/4] chore: add parameters to update --- exabyte_api_client/endpoints/entity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exabyte_api_client/endpoints/entity.py b/exabyte_api_client/endpoints/entity.py index 5603813..d6d4e1b 100644 --- a/exabyte_api_client/endpoints/entity.py +++ b/exabyte_api_client/endpoints/entity.py @@ -75,7 +75,7 @@ def update(self, id_, modifier, parameters=None): Returns: dict: updated entity. """ - return self.request("PATCH", "/".join((self.name, id_)), data=json.dumps(modifier), params=parameters, headers=self.headers) + return self.request("PATCH", "/".join((self.name, id_)), data=json.dumps(modifier), headers=self.headers, parameters=parameters) def create(self, config, owner_id=None): """ From 21fbc1d78d6873e2dded0e240c5e456353773c2b Mon Sep 17 00:00:00 2001 From: Timur Bazhirov Date: Fri, 12 Sep 2025 16:49:40 -0700 Subject: [PATCH 3/4] chore: update GH WF --- .github/workflows/cicd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index cd3f431..23529d8 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -9,7 +9,7 @@ concurrency: jobs: run-linter: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: matrix: python-version: [3.10.13] @@ -33,7 +33,7 @@ jobs: python-version: ${{ matrix.python-version }} run-tests: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: matrix: python-version: [3.10.13] From 8201844b98584d826490580e7388380a1b74f1c8 Mon Sep 17 00:00:00 2001 From: VsevolodX Date: Fri, 12 Sep 2025 16:53:52 -0700 Subject: [PATCH 4/4] chore: api client params --- exabyte_api_client/endpoints/entity.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exabyte_api_client/endpoints/entity.py b/exabyte_api_client/endpoints/entity.py index d6d4e1b..05d8c07 100644 --- a/exabyte_api_client/endpoints/entity.py +++ b/exabyte_api_client/endpoints/entity.py @@ -75,7 +75,8 @@ def update(self, id_, modifier, parameters=None): Returns: dict: updated entity. """ - return self.request("PATCH", "/".join((self.name, id_)), data=json.dumps(modifier), headers=self.headers, parameters=parameters) + return self.request("PATCH", "/".join((self.name, id_)), data=json.dumps(modifier), headers=self.headers, + params=parameters) def create(self, config, owner_id=None): """