mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 04:18:07 +00:00
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:
@ -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"""
|
||||
|
||||
|
Reference in New Issue
Block a user