Skip to content

delete_limit

delete_limit(
    farm_id: FarmId,
    limit_id: LimitId,
    *,
    config_overrides: Optional[deadlineClientConfig] = None,
) -> DeleteLimitResponse

Removes a limit from the specified farm. Before you delete a limit you must use the DeleteQueueLimitAssociation operation to remove the association with any queues.

Parameters:

  • farm_id (FarmId) –

    The unique identifier of the farm that contains the limit to delete.

  • limit_id (LimitId) –

    The unique identifier of the limit to delete.

Raises:

Source code in docs_src/capo_deadline/_services/deadline.py
def delete_limit(
    self,
    farm_id: "capo_deadline.types.farm_id.FarmId",
    limit_id: "capo_deadline.types.limit_id.LimitId",
    *,
    config_overrides: Optional[deadlineClientConfig] = None,
) -> "capo_deadline.types.delete_limit_response.DeleteLimitResponse":
    """<p>Removes a limit from the specified farm. Before you delete a limit you must use the <code>DeleteQueueLimitAssociation</code> operation to remove the association with any queues. </p>

    Args:
        farm_id: <p>The unique identifier of the farm that contains the limit to delete.</p>
        limit_id: <p>The unique identifier of the limit to delete.</p>

    Raises:
        capo_deadline.errors.access_denied_exception.AccessDeniedException: <p>You don't have permission to perform the action.</p>
        capo_deadline.errors.internal_server_error_exception.InternalServerErrorException: <p>Deadline Cloud can't process your request right now. Try again later.</p>
        capo_deadline.errors.throttling_exception.ThrottlingException: <p>Your request exceeded a request rate quota.</p>
        capo_deadline.errors.validation_exception.ValidationException: <p>The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.</p>
        capo_deadline.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_deadline.types.delete_limit_request.DeleteLimitRequest]",
    ) -> OperationResponse[
        "capo_deadline.types.delete_limit_response.DeleteLimitResponse"
    ]:
        import capo_deadline._operations.deadline.delete_limit

        output, http_response = (
            capo_deadline._operations.deadline.delete_limit.delete_limit(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteLimit")
    )
    input_: capo_deadline.types.delete_limit_request.DeleteLimitRequest = {
        "farm_id": farm_id,
        "limit_id": limit_id,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output