horde_sdk.ai_horde_api.apimodels.operations¶
Definitions for the admin operations.
__all__
module-attribute
¶
__all__ = [
"AllIPTimeoutsRequest",
"BlockIPAddressRequest",
"BlockIPAddressResponse",
"BlockWorkerIPAddressRequest",
"BlockWorkerIPAddressResponse",
"DeleteIPAddressRequest",
"DeleteIPAddressResponse",
"DeleteWorkerIPAddressRequest",
"DeleteWorkerIPAddressResponse",
"IPTimeout",
"IPTimeoutListResponse",
"SingleIPTimeoutsRequest",
]
IPTimeout ¶
Bases: HordeAPIObjectBaseModel
An IP address that is blocked and the number of seconds left in the timeout.
v2 API Model: IPTimeout
Source code in horde_sdk/ai_horde_api/apimodels/operations.py
IPTimeoutListResponse ¶
Bases: HordeResponseRootModel[list[IPTimeout]]
A list of IP addresses that are blocked.
Represents the data returned from the following endpoints and http status codes
- /v2/operations/ipaddr | SingleIPTimeoutsRequest [GET] -> 200
- /v2/operations/ipaddr | AllIPTimeoutsRequest [GET] -> 200
v2 API Model: _ANONYMOUS_MODEL
Source code in horde_sdk/ai_horde_api/apimodels/operations.py
root
instance-attribute
¶
The underlying list of IP addresses that are blocked.
AllIPTimeoutsRequest ¶
Bases: BaseAIHordeRequest, APIKeyAllowedInRequestMixin
A request to get all IP addresses that are blocked.
Represents a GET request to the /v2/operations/ipaddr endpoint.
Source code in horde_sdk/ai_horde_api/apimodels/operations.py
SingleIPTimeoutsRequest ¶
Bases: BaseAIHordeRequest, APIKeyAllowedInRequestMixin
A request to get a single IP address that is blocked.
Represents a GET request to the /v2/operations/ipaddr endpoint.
Source code in horde_sdk/ai_horde_api/apimodels/operations.py
BlockIPAddressResponse ¶
Bases: HordeResponseBaseModel, ContainsMessageResponseMixin
Indicates that an IP address was successfully blocked.
Represents the data returned from the /v2/operations/ipaddr endpoint with http status code 200.
v2 API Model: SimpleResponse
Source code in horde_sdk/ai_horde_api/apimodels/operations.py
BlockIPAddressRequest ¶
Bases: BaseAIHordeRequest, APIKeyAllowedInRequestMixin
Establish a timeout for an IP address for a specified number of hours.
Represents a POST request to the /v2/operations/ipaddr endpoint.
v2 API Model: AddTimeoutIPInput
Source code in horde_sdk/ai_horde_api/apimodels/operations.py
DeleteIPAddressResponse ¶
Bases: HordeResponseBaseModel, ContainsMessageResponseMixin
Indicates that an IP address was successfully unblocked.
Represents the data returned from the /v2/operations/ipaddr endpoint with http status code 200.
v2 API Model: SimpleResponse
Source code in horde_sdk/ai_horde_api/apimodels/operations.py
DeleteIPAddressRequest ¶
Bases: BaseAIHordeRequest, APIKeyAllowedInRequestMixin
Remove a timeout for an IP address.
Represents a DELETE request to the /v2/operations/ipaddr endpoint.
v2 API Model: DeleteTimeoutIPInput
Source code in horde_sdk/ai_horde_api/apimodels/operations.py
BlockWorkerIPAddressResponse ¶
Bases: HordeResponseBaseModel, ContainsMessageResponseMixin
Indicates that a worker's IP address was successfully blocked.
Represents the data returned from the /v2/operations/block_worker_ipaddr/{worker_id} endpoint with http status code 200.
v2 API Model: SimpleResponse
Source code in horde_sdk/ai_horde_api/apimodels/operations.py
BlockWorkerIPAddressRequest ¶
Bases: BaseAIHordeRequest, APIKeyAllowedInRequestMixin
Request to block a worker's IP address for a specified number of days.
Represents a PUT request to the /v2/operations/block_worker_ipaddr/{worker_id} endpoint.
v2 API Model: AddWorkerTimeout
Source code in horde_sdk/ai_horde_api/apimodels/operations.py
DeleteWorkerIPAddressResponse ¶
Bases: HordeResponseBaseModel, ContainsMessageResponseMixin
Indicates that a worker's IP address was successfully unblocked.
Represents the data returned from the /v2/operations/block_worker_ipaddr/{worker_id} endpoint with http status code 200.
v2 API Model: SimpleResponse
Source code in horde_sdk/ai_horde_api/apimodels/operations.py
DeleteWorkerIPAddressRequest ¶
Bases: BaseAIHordeRequest, APIKeyAllowedInRequestMixin
Request to unblock a worker's IP address.
Represents a DELETE request to the /v2/operations/block_worker_ipaddr/{worker_id} endpoint.