rename client_id in pool to object_id (#2673)

* rename client_id in pool to object_id

* fix tests

* print out the content body when receiving an error response in the agent

* fix test

* Apply suggestions from code review

* Update src/ApiService/ApiService/Functions/AgentRegistration.cs

* format

* cleanup

* format

* address pr comment
This commit is contained in:
Cheick Keita
2022-12-12 19:39:49 -08:00
committed by GitHub
parent 3cf09c6a40
commit 4c1adb6e96
15 changed files with 120 additions and 79 deletions

View File

@ -1239,7 +1239,7 @@ class Pool(Endpoint):
self,
name: str,
os: enums.OS,
client_id: Optional[UUID] = None,
object_id: Optional[UUID] = None,
*,
unmanaged: bool = False,
arch: enums.Architecture = enums.Architecture.x86_64,
@ -1256,7 +1256,7 @@ class Pool(Endpoint):
"POST",
models.Pool,
data=requests.PoolCreate(
name=name, os=os, arch=arch, managed=managed, client_id=client_id
name=name, os=os, arch=arch, managed=managed, object_id=object_id
),
)