Skip to content

Commit b3eaee8

Browse files
[ACS JobRouter] Add job scheduling properties to JobRouter (Azure#36228)
* Add job scheduling properties to JobRouter * Update sdk/communication/Azure.Communication.JobRouter/src/Models/CreateJobOptions.cs Co-authored-by: williamzhao87 <williamzhao87@users.noreply.github.com> --------- Co-authored-by: williamzhao87 <williamzhao87@users.noreply.github.com>
1 parent a7188f0 commit b3eaee8

18 files changed

+663
-17
lines changed

sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ public CreateJobOptions(string jobId, string channelId, string queueId) { }
9191
public int? Priority { get { throw null; } set { } }
9292
public string QueueId { get { throw null; } }
9393
public System.Collections.Generic.IList<Azure.Communication.JobRouter.WorkerSelector> RequestedWorkerSelectors { get { throw null; } set { } }
94+
public System.DateTimeOffset? ScheduledTimeUtc { get { throw null; } set { } }
9495
public System.Collections.Generic.IDictionary<string, Azure.Communication.JobRouter.LabelValue> Tags { get { throw null; } set { } }
96+
public bool? UnavailableForMatching { get { throw null; } set { } }
9597
}
9698
public partial class CreateJobWithClassificationPolicyOptions
9799
{
@@ -105,7 +107,9 @@ public CreateJobWithClassificationPolicyOptions(string jobId, string channelId,
105107
public int? Priority { get { throw null; } set { } }
106108
public string QueueId { get { throw null; } set { } }
107109
public System.Collections.Generic.IList<Azure.Communication.JobRouter.WorkerSelector> RequestedWorkerSelectors { get { throw null; } set { } }
110+
public System.DateTimeOffset? ScheduledTimeUtc { get { throw null; } set { } }
108111
public System.Collections.Generic.IDictionary<string, Azure.Communication.JobRouter.LabelValue> Tags { get { throw null; } set { } }
112+
public bool? UnavailableForMatching { get { throw null; } set { } }
109113
}
110114
public partial class CreateQueueOptions
111115
{
@@ -174,7 +178,10 @@ public partial class GetJobsOptions
174178
{
175179
public GetJobsOptions() { }
176180
public string ChannelId { get { throw null; } set { } }
181+
public string ClassificationPolicyId { get { throw null; } set { } }
177182
public string QueueId { get { throw null; } set { } }
183+
public System.DateTimeOffset? ScheduledAfter { get { throw null; } set { } }
184+
public System.DateTimeOffset? ScheduledBefore { get { throw null; } set { } }
178185
public Azure.Communication.JobRouter.JobStateSelector Status { get { throw null; } set { } }
179186
}
180187
public partial class GetWorkersOptions
@@ -200,7 +207,12 @@ public enum JobStateSelector
200207
Closed = 5,
201208
Cancelled = 6,
202209
ClassificationFailed = 7,
203-
Active = 8,
210+
Created = 8,
211+
PendingSchedule = 9,
212+
Scheduled = 10,
213+
ScheduleFailed = 11,
214+
WaitingForActivation = 12,
215+
Active = 13,
204216
}
205217
public enum LabelOperator
206218
{
@@ -497,7 +509,9 @@ public UpdateJobOptions(string jobId) { }
497509
public int? Priority { get { throw null; } set { } }
498510
public string QueueId { get { throw null; } set { } }
499511
public System.Collections.Generic.IList<Azure.Communication.JobRouter.WorkerSelector> RequestedWorkerSelectors { get { throw null; } set { } }
512+
public System.DateTimeOffset? ScheduledTimeUtc { get { throw null; } set { } }
500513
public System.Collections.Generic.IDictionary<string, Azure.Communication.JobRouter.LabelValue> Tags { get { throw null; } set { } }
514+
public bool? UnavailableForMatching { get { throw null; } set { } }
501515
}
502516
public partial class UpdateQueueOptions
503517
{
@@ -719,7 +733,9 @@ internal RouterJob() { }
719733
public int? Priority { get { throw null; } set { } }
720734
public string QueueId { get { throw null; } set { } }
721735
public System.Collections.Generic.IList<Azure.Communication.JobRouter.WorkerSelector> RequestedWorkerSelectors { get { throw null; } set { } }
736+
public System.DateTimeOffset? ScheduledTimeUtc { get { throw null; } set { } }
722737
public System.Collections.Generic.IDictionary<string, Azure.Communication.JobRouter.LabelValue> Tags { get { throw null; } set { } }
738+
public bool? UnavailableForMatching { get { throw null; } set { } }
723739
}
724740
public partial class RouterJobItem
725741
{
@@ -740,7 +756,11 @@ internal RouterJobItem() { }
740756
public static Azure.Communication.JobRouter.Models.RouterJobStatus Completed { get { throw null; } }
741757
public static Azure.Communication.JobRouter.Models.RouterJobStatus Created { get { throw null; } }
742758
public static Azure.Communication.JobRouter.Models.RouterJobStatus PendingClassification { get { throw null; } }
759+
public static Azure.Communication.JobRouter.Models.RouterJobStatus PendingSchedule { get { throw null; } }
743760
public static Azure.Communication.JobRouter.Models.RouterJobStatus Queued { get { throw null; } }
761+
public static Azure.Communication.JobRouter.Models.RouterJobStatus Scheduled { get { throw null; } }
762+
public static Azure.Communication.JobRouter.Models.RouterJobStatus ScheduleFailed { get { throw null; } }
763+
public static Azure.Communication.JobRouter.Models.RouterJobStatus WaitingForActivation { get { throw null; } }
744764
public bool Equals(Azure.Communication.JobRouter.Models.RouterJobStatus other) { throw null; }
745765
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
746766
public override bool Equals(object obj) { throw null; }

sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterRestClient.cs

Lines changed: 27 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/JobStateSelector.Serialization.cs

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/JobStateSelector.cs

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)