From d6d8aa1691ed45d80ed17636fac117017601b98f Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Thu, 9 Nov 2023 12:55:36 -0800 Subject: [PATCH] python sdk customizations (#26649) --- .../communication/Communication.JobRouter/models.tsp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/communication/Communication.JobRouter/models.tsp b/specification/communication/Communication.JobRouter/models.tsp index 737e439444ac..9d4765376bbd 100644 --- a/specification/communication/Communication.JobRouter/models.tsp +++ b/specification/communication/Communication.JobRouter/models.tsp @@ -493,6 +493,7 @@ model SuspendMode extends JobMatchingMode { kind: "suspend"; } +@access(Access.public, "python") @doc("Request payload for deleting a job") model CancelJobOptions { @doc("A note that will be appended to the jobs' Notes collection with the current timestamp.") @@ -502,12 +503,14 @@ model CancelJobOptions { dispositionCode?: string; } +@access(Access.public, "python") @doc("Request payload for completing jobs") model CompleteJobOptions { @doc("A note that will be appended to the jobs' Notes collection with the current timestamp.") note?: string; } +@access(Access.public, "python") @doc("Request payload for closing jobs") model CloseJobOptions { @doc("Indicates the outcome of the job, populate this field with your own custom values.") @@ -565,6 +568,7 @@ model AcceptJobOfferResult { workerId: string; } +@access(Access.public, "python") @doc("Request payload for declining offers") model DeclineJobOfferOptions { @doc("If the RetryOfferAt is not provided, then this job will not be offered again to the worker who declined this job unless the worker is de-registered and re-registered. If a RetryOfferAt time is provided, then the job will be re-matched to eligible workers at the retry time in UTC. The worker that declined the job will also be eligible for the job at that time.")