update_trigger
async
¶
update_trigger(
agent_space_id: AgentSpaceIdentifier,
trigger_id: ResourceId,
*,
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = None,
status: Optional[TriggerStatus] = None,
client_token: Optional[str] = None,
) -> UpdateTriggerResponse
Updates the status of an existing Trigger
Parameters:
-
agent_space_id(AgentSpaceIdentifier) –The unique identifier for the agent space containing the Trigger
-
trigger_id(ResourceId) –The unique identifier of the Trigger to update
-
status(Optional[TriggerStatus], default:None) –The new status for the Trigger
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier used for idempotent Trigger update
Raises:
-
AccessDeniedException–Access to the requested resource is denied due to insufficient permissions.
-
ConflictException–The request conflicts with the current state of the resource.
-
ContentSizeExceededException–This exception is thrown when the content size exceeds the allowed limit.
-
InternalServerException–This exception is thrown when an unexpected error occurs in the processing of a request.
-
InvalidParameterException–One or more parameters provided in the request are invalid.
-
ResourceNotFoundException–The requested resource could not be found.
-
ServiceQuotaExceededException–The request would exceed the service quota limit.
-
ThrottlingException–The request was throttled due to too many requests. Please slow down and try again.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_devops_agent/_services/async_dev_ops_agent.py
3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 | |