update_budget
async
¶
update_budget(
farm_id: FarmId,
budget_id: BudgetId,
*,
config_overrides: Optional[AsyncdeadlineClientConfig] = 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/async_deadline.py
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 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 | |