Add New Endpoint to update the pool authentication (#3059)

* check that the node in managed before sending the stop message

* added endpoint to update the pool

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

Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>

---------

Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>
This commit is contained in:
Cheick Keita
2023-04-24 14:52:13 -07:00
committed by GitHub
parent 63de1e3915
commit a268bc9c7c
7 changed files with 77 additions and 4 deletions

View File

@ -1297,6 +1297,24 @@ class Pool(Endpoint):
),
)
def update(
self,
name: str,
object_id: Optional[UUID] = None,
) -> models.Pool:
"""
Update a worker pool
:param str name: Name of the worker-pool
"""
self.logger.debug("create worker pool")
return self._req_model(
"PATCH",
models.Pool,
data=requests.PoolUpdate(name=name, object_id=object_id),
)
def get_config(self, pool_name: primitives.PoolName) -> models.AgentConfig:
"""Get the agent configuration for the pool"""