update_budget
¶
update_budget(
farm_id: FarmId,
budget_id: BudgetId,
*,
config_overrides: Optional[deadlineClientConfig] = None,
client_token: Optional[ClientToken] = None,
display_name: Optional[ResourceName] = None,
description: Optional[Description] = None,
status: Optional[BudgetStatus] = None,
approximate_dollar_limit: Optional[ConsumedUsageLimit] = None,
actions_to_add: Optional[BudgetActionsToAdd] = None,
actions_to_remove: Optional[BudgetActionsToRemove] = None,
schedule: Optional[BudgetSchedule] = None,
) -> UpdateBudgetResponse
Updates a budget that sets spending thresholds for rendering activity.
Parameters:
-
farm_id(FarmId) –The farm ID of the budget to update.
-
budget_id(BudgetId) –The budget ID to update.
-
client_token(Optional[ClientToken], default:None) –The unique token which the server uses to recognize retries of the same request.
-
display_name(Optional[ResourceName], default:None) –The display name of the budget to update.
This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
-
description(Optional[Description], default:None) –The description of the budget to update.
This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
-
status(Optional[BudgetStatus], default:None) –Updates the status of the budget.
-
ACTIVE–The budget is being evaluated. -
INACTIVE–The budget is inactive. This can include Expired, Canceled, or deleted Deleted statuses.
-
-
approximate_dollar_limit(Optional[ConsumedUsageLimit], default:None) –The dollar limit to update on the budget. Based on consumed usage.
-
actions_to_add(Optional[BudgetActionsToAdd], default:None) –The budget actions to add. Budget actions specify what happens when the budget runs out.
-
actions_to_remove(Optional[BudgetActionsToRemove], default:None) –The budget actions to remove from the budget.
-
schedule(Optional[BudgetSchedule], default:None) –The schedule to update.
Raises:
-
AccessDeniedException–You don't have permission to perform the action.
-
InternalServerErrorException–Deadline Cloud can't process your request right now. Try again later.
-
ResourceNotFoundException–The requested resource can't be found.
-
ThrottlingException–Your request exceeded a request rate quota.
-
ValidationException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_deadline/_services/deadline.py
3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 | |