Gateway group
Gateway group resource for grouping gateways.
SyncGatewayGroups
SyncGatewayGroups(client: SyncClient)
Bases: BaseResource['SyncClient']
Gateway groups resource for gateway grouping.
Methods:
-
create–Create a new gateway group.
-
delete–Delete a gateway group.
-
get–Retrieve a gateway group by its ID.
-
get_all–List all gateway groups.
-
patch–Partially update a gateway group.
-
update–Update a gateway group (full replacement).
create
create(data: GatewayGroupCreate) -> str
Create a new gateway group.
Parameters:
-
(dataGatewayGroupCreate) –The gateway group creation data.
Returns:
-
str(str) –The ID of the newly created gateway group.
delete
Delete a gateway group.
Parameters:
-
(group_idstr) –The unique identifier of the gateway group to delete.
Returns:
-
None–None
get
get(group_id: str) -> GatewayGroupInstance
Retrieve a gateway group by its ID.
Parameters:
-
(group_idstr) –The unique identifier of the gateway group.
Returns:
-
GatewayGroupInstance(GatewayGroupInstance) –The gateway group instance matching the given ID.
get_all
get_all() -> list[GatewayGroupInstance]
List all gateway groups.
Returns:
-
list[GatewayGroupInstance]–list[GatewayGroupInstance]: List of all gateway group instances.
patch
patch(group_id: str, data: GatewayGroupPatch) -> bool
Partially update a gateway group.
Parameters:
-
(group_idstr) –The unique identifier of the gateway group.
-
(dataGatewayGroupPatch) –The partial gateway group data to update.
Returns:
-
GatewayGroupInstance(bool) –The updated gateway group instance.
update
update(group_id: str, data: GatewayGroupUpdate) -> bool
Update a gateway group (full replacement).
Parameters:
-
(group_idstr) –The unique identifier of the gateway group.
-
(dataGatewayGroupUpdate) –The complete gateway group data for replacement.
Returns:
-
GatewayGroupInstance(bool) –The updated gateway group instance.
AsyncGatewayGroups
AsyncGatewayGroups(client: AsyncClient)
Bases: BaseResource['AsyncClient']
Async gateway groups resource for gateway grouping.
Methods:
-
create–Create a new gateway group.
-
delete–Delete a gateway group.
-
get–Retrieve a gateway group by its ID.
-
get_all–List all gateway groups.
-
patch–Partially update a gateway group.
-
update–Update a gateway group (full replacement).
create
async
create(data: GatewayGroupCreate) -> str
Create a new gateway group.
Parameters:
-
(dataGatewayGroupCreate) –The gateway group creation data.
Returns:
-
str(str) –The ID of the newly created gateway group.
delete
async
Delete a gateway group.
Parameters:
-
(group_idstr) –The unique identifier of the gateway group to delete.
Returns:
-
None–None
get
async
get(group_id: str) -> GatewayGroupInstance
Retrieve a gateway group by its ID.
Parameters:
-
(group_idstr) –The unique identifier of the gateway group.
Returns:
-
GatewayGroupInstance(GatewayGroupInstance) –The gateway group instance matching the given ID.
get_all
async
get_all() -> list[GatewayGroupInstance]
List all gateway groups.
Returns:
-
list[GatewayGroupInstance]–list[GatewayGroupInstance]: List of all gateway group instances.
patch
async
patch(group_id: str, data: GatewayGroupPatch) -> bool
Partially update a gateway group.
Parameters:
-
(group_idstr) –The unique identifier of the gateway group.
-
(dataGatewayGroupPatch) –The partial gateway group data to update.
Returns:
-
bool(bool) –True if the patch was successful, False otherwise.
update
async
update(group_id: str, data: GatewayGroupUpdate) -> bool
Update a gateway group (full replacement).
Parameters:
-
(group_idstr) –The unique identifier of the gateway group.
-
(dataGatewayGroupUpdate) –The complete gateway group data for replacement.
Returns:
-
bool(bool) –True if the update was successful, False otherwise.
Request and response types: Gateway group models.