update_limit
async
¶
update_limit(
farm_id: FarmId,
limit_id: LimitId,
*,
config_overrides: Optional[AsyncdeadlineClientConfig] = None,
display_name: Optional[ResourceName] = None,
description: Optional[Description] = None,
max_count: Optional[MaxCount] = None,
) -> UpdateLimitResponse
Updates the properties of the specified limit.
Parameters:
-
farm_id(FarmId) –The unique identifier of the farm that contains the limit.
-
limit_id(LimitId) –The unique identifier of the limit to update.
-
display_name(Optional[ResourceName], default:None) –The new display name of the limit.
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 new description of the limit.
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.
-
max_count(Optional[MaxCount], default:None) –The maximum number of resources constrained by this limit. When all of the resources are in use, steps that require the limit won't be scheduled until the resource is available.
If more than the new maximum number is currently in use, running jobs finish but no new jobs are started until the number of resources in use is below the new maximum number.
The
maxCountmust not be 0. If the value is -1, there is no restriction on the number of resources that can be acquired for this limit.
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
3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 | |