From 4b3686abb77f8480875b651e2b53f9a633445c89 Mon Sep 17 00:00:00 2001 From: williamzhao87 Date: Mon, 13 Nov 2023 14:39:10 -0500 Subject: [PATCH] [JobRouter] GA review changes 3 (#39949) --- ....Communication.JobRouter.netstandard2.0.cs | 190 +- .../Azure.Communication.JobRouter/assets.json | 2 +- .../samples/ClassificationPolicyCrud.md | 2 +- .../samples/ClassificationPolicyCrudAsync.md | 2 +- .../samples/DistributionPolicyCrud.md | 2 +- .../samples/DistributionPolicyCrudAsync.md | 2 +- .../samples/ExceptionPolicyCrud.md | 2 +- .../samples/ExceptionPolicyCrudAsync.md | 2 +- .../samples/JobQueueCrud.md | 2 +- .../samples/JobQueueCrudAsync.md | 2 +- .../samples/RouterJobCrud.md | 2 +- .../samples/RouterJobCrudAsync.md | 2 +- .../samples/RouterWorkerCrud.md | 4 +- .../samples/RouterWorkerCrudAsync.md | 4 +- .../Generated/BestWorkerMode.Serialization.cs | 4 +- .../src/Generated/BestWorkerMode.cs | 2 +- .../CancelExceptionAction.Serialization.cs | 4 +- .../src/Generated/CancelExceptionAction.cs | 2 +- ...alQueueSelectorAttachment.Serialization.cs | 4 +- .../ConditionalQueueSelectorAttachment.cs | 4 +- ...lWorkerSelectorAttachment.Serialization.cs | 4 +- .../ConditionalWorkerSelectorAttachment.cs | 4 +- .../DirectMapRouterRule.Serialization.cs | 4 +- .../src/Generated/DirectMapRouterRule.cs | 2 +- .../DistributionMode.Serialization.cs | 6 +- .../src/Generated/DistributionMode.cs | 2 +- .../src/Generated/DistributionModeKind.cs | 54 + .../ExceptionAction.Serialization.cs | 2 +- .../src/Generated/ExceptionAction.cs | 2 +- .../src/Generated/ExceptionActionKind.cs | 54 + .../ExceptionTrigger.Serialization.cs | 4 +- .../src/Generated/ExceptionTrigger.cs | 2 +- .../src/Generated/ExceptionTriggerKind.cs | 51 + .../ExpressionRouterRule.Serialization.cs | 4 +- .../src/Generated/ExpressionRouterRule.cs | 2 +- .../FunctionRouterRule.Serialization.cs | 4 +- .../src/Generated/FunctionRouterRule.cs | 2 +- .../JobMatchingMode.Serialization.cs | 4 +- .../src/Generated/JobMatchingMode.cs | 2 +- .../src/Generated/JobMatchingModeKind.cs | 54 + .../JobRouterAdministrationClient.cs | 32 +- .../src/Generated/JobRouterClient.cs | 16 +- .../src/Generated/JobRouterModelFactory.cs | 34 +- .../LongestIdleMode.Serialization.cs | 4 +- .../src/Generated/LongestIdleMode.cs | 2 +- ...ReclassifyExceptionAction.Serialization.cs | 4 +- .../ManualReclassifyExceptionAction.cs | 2 +- ...ghQueueSelectorAttachment.Serialization.cs | 4 +- .../PassThroughQueueSelectorAttachment.cs | 2 +- ...hWorkerSelectorAttachment.Serialization.cs | 4 +- .../PassThroughWorkerSelectorAttachment.cs | 4 +- .../QueueAndMatchMode.Serialization.cs | 4 +- .../src/Generated/QueueAndMatchMode.cs | 2 +- ...eueLengthExceptionTrigger.Serialization.cs | 4 +- .../Generated/QueueLengthExceptionTrigger.cs | 2 +- .../QueueSelectorAttachment.Serialization.cs | 6 +- .../src/Generated/QueueSelectorAttachment.cs | 2 +- .../Generated/QueueSelectorAttachmentKind.cs | 60 + ...ReclassifyExceptionAction.Serialization.cs | 4 +- .../Generated/ReclassifyExceptionAction.cs | 2 +- .../Generated/RoundRobinMode.Serialization.cs | 4 +- .../src/Generated/RoundRobinMode.cs | 2 +- .../src/Generated/RouterRule.Serialization.cs | 10 +- .../src/Generated/RouterRule.cs | 2 +- .../src/Generated/RouterRuleKind.cs | 60 + ...neQueueSelectorAttachment.Serialization.cs | 4 +- .../RuleEngineQueueSelectorAttachment.cs | 2 +- ...eWorkerSelectorAttachment.Serialization.cs | 4 +- .../RuleEngineWorkerSelectorAttachment.cs | 2 +- .../ScheduleAndSuspendMode.Serialization.cs | 4 +- .../src/Generated/ScheduleAndSuspendMode.cs | 2 +- ...icQueueSelectorAttachment.Serialization.cs | 4 +- .../StaticQueueSelectorAttachment.cs | 2 +- .../StaticRouterRule.Serialization.cs | 4 +- .../src/Generated/StaticRouterRule.cs | 4 +- ...cWorkerSelectorAttachment.Serialization.cs | 4 +- .../StaticWorkerSelectorAttachment.cs | 2 +- .../Generated/SuspendMode.Serialization.cs | 4 +- .../src/Generated/SuspendMode.cs | 2 +- .../UnknownDistributionMode.Serialization.cs | 4 +- .../src/Generated/UnknownDistributionMode.cs | 2 +- .../UnknownExceptionAction.Serialization.cs | 4 +- .../src/Generated/UnknownExceptionAction.cs | 2 +- .../UnknownExceptionTrigger.Serialization.cs | 4 +- .../src/Generated/UnknownExceptionTrigger.cs | 2 +- .../UnknownJobMatchingMode.Serialization.cs | 4 +- .../src/Generated/UnknownJobMatchingMode.cs | 2 +- ...wnQueueSelectorAttachment.Serialization.cs | 4 +- .../UnknownQueueSelectorAttachment.cs | 2 +- .../UnknownRouterRule.Serialization.cs | 4 +- .../src/Generated/UnknownRouterRule.cs | 2 +- ...nWorkerSelectorAttachment.Serialization.cs | 4 +- .../UnknownWorkerSelectorAttachment.cs | 2 +- .../WaitTimeExceptionTrigger.Serialization.cs | 4 +- .../src/Generated/WaitTimeExceptionTrigger.cs | 4 +- .../WebhookRouterRule.Serialization.cs | 4 +- .../src/Generated/WebhookRouterRule.cs | 4 +- ...onQueueSelectorAttachment.Serialization.cs | 4 +- ...ightedAllocationQueueSelectorAttachment.cs | 2 +- ...nWorkerSelectorAttachment.Serialization.cs | 4 +- ...ghtedAllocationWorkerSelectorAttachment.cs | 2 +- .../WorkerSelectorAttachment.Serialization.cs | 6 +- .../src/Generated/WorkerSelectorAttachment.cs | 2 +- .../Generated/WorkerSelectorAttachmentKind.cs | 60 + .../src/Generated/tspCodeModel.json | 2668 +++++++++-------- .../src/Models/BestWorkerMode.cs | 4 +- .../src/Models/CancelExceptionAction.cs | 4 +- .../ConditionalQueueSelectorAttachment.cs | 2 +- .../ConditionalWorkerSelectorAttachment.cs | 2 +- .../src/Models/DirectMapRouterRule.cs | 4 +- .../src/Models/DistributionMode.cs | 4 +- .../src/Models/DistributionModeKind.cs | 9 + .../src/Models/ExceptionAction.cs | 5 +- .../src/Models/ExceptionActionKind.cs | 9 + .../src/Models/ExceptionTrigger.cs | 4 +- .../src/Models/ExceptionTriggerKind.cs | 9 + .../src/Models/ExpressionRouterRule.cs | 4 +- .../src/Models/FunctionRouterRule.cs | 4 +- .../src/Models/JobMatchingMode.cs | 4 +- .../src/Models/JobMatchingModeKind.cs | 9 + .../Models/JobRouterAdministrationClient.cs | 57 + .../src/Models/JobRouterClient.cs | 55 + .../src/Models/LongestIdleMode.cs | 4 +- .../Models/ManualReclassifyExceptionAction.cs | 4 +- .../PassThroughQueueSelectorAttachment.cs | 4 +- .../PassThroughWorkerSelectorAttachment.cs | 4 +- .../src/Models/QueueAndMatchMode.cs | 4 +- .../src/Models/QueueLengthExceptionTrigger.cs | 4 +- .../src/Models/QueueSelectorAttachment.cs | 4 +- .../src/Models/QueueSelectorAttachmentKind.cs | 9 + .../src/Models/ReclassifyExceptionAction.cs | 4 +- .../src/Models/RoundRobinMode.cs | 4 +- .../src/Models/RouterJobStatusSelector.cs | 9 + .../src/Models/RouterRule.cs | 4 +- .../src/Models/RouterRuleKind.cs | 9 + .../src/Models/RouterWorkerStateSelector.cs | 9 + .../RuleEngineQueueSelectorAttachment.cs | 4 +- .../RuleEngineWorkerSelectorAttachment.cs | 4 +- .../src/Models/ScheduleAndSuspendMode.cs | 4 +- .../Models/StaticQueueSelectorAttachment.cs | 4 +- .../src/Models/StaticRouterRule.cs | 4 +- .../Models/StaticWorkerSelectorAttachment.cs | 4 +- .../src/Models/SuspendMode.cs | 4 +- .../src/Models/WaitTimeExceptionTrigger.cs | 4 +- .../src/Models/WebhookRouterRule.cs | 4 +- ...ightedAllocationQueueSelectorAttachment.cs | 4 +- ...ghtedAllocationWorkerSelectorAttachment.cs | 4 +- .../src/Models/WorkerSelectorAttachment.cs | 4 +- .../Models/WorkerSelectorAttachmentKind.cs | 9 + .../tests/RouterClients/RouterJobLiveTests.cs | 5 +- .../Samples/ClassificationPolicyCrudOps.cs | 2 +- .../ClassificationPolicyCrudOpsAsync.cs | 2 +- .../Samples/DistributionPolicyCrudOps.cs | 2 +- .../Samples/DistributionPolicyCrudOpsAsync.cs | 2 +- .../tests/Samples/ExceptionPolicyCrudOps.cs | 2 +- .../Samples/ExceptionPolicyCrudOpsAsync.cs | 2 +- .../tests/Samples/JobQueueCrudOps.cs | 2 +- .../tests/Samples/JobQueueCrudOpsAsync.cs | 2 +- .../tests/Samples/RouterJobCrudOps.cs | 2 +- .../tests/Samples/RouterJobCrudOpsAsync.cs | 2 +- .../tests/Samples/RouterWorkerCrudOps.cs | 4 +- .../tests/Samples/RouterWorkerCrudOpsAsync.cs | 4 +- .../tsp-location.yaml | 4 +- 163 files changed, 2464 insertions(+), 1520 deletions(-) create mode 100644 sdk/communication/Azure.Communication.JobRouter/src/Generated/DistributionModeKind.cs create mode 100644 sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionActionKind.cs create mode 100644 sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionTriggerKind.cs create mode 100644 sdk/communication/Azure.Communication.JobRouter/src/Generated/JobMatchingModeKind.cs create mode 100644 sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueSelectorAttachmentKind.cs create mode 100644 sdk/communication/Azure.Communication.JobRouter/src/Generated/RouterRuleKind.cs create mode 100644 sdk/communication/Azure.Communication.JobRouter/src/Generated/WorkerSelectorAttachmentKind.cs create mode 100644 sdk/communication/Azure.Communication.JobRouter/src/Models/DistributionModeKind.cs create mode 100644 sdk/communication/Azure.Communication.JobRouter/src/Models/ExceptionActionKind.cs create mode 100644 sdk/communication/Azure.Communication.JobRouter/src/Models/ExceptionTriggerKind.cs create mode 100644 sdk/communication/Azure.Communication.JobRouter/src/Models/JobMatchingModeKind.cs create mode 100644 sdk/communication/Azure.Communication.JobRouter/src/Models/QueueSelectorAttachmentKind.cs create mode 100644 sdk/communication/Azure.Communication.JobRouter/src/Models/RouterJobStatusSelector.cs create mode 100644 sdk/communication/Azure.Communication.JobRouter/src/Models/RouterRuleKind.cs create mode 100644 sdk/communication/Azure.Communication.JobRouter/src/Models/RouterWorkerStateSelector.cs create mode 100644 sdk/communication/Azure.Communication.JobRouter/src/Models/WorkerSelectorAttachmentKind.cs diff --git a/sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs b/sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs index 862466fc636c1..dcd416259feda 100644 --- a/sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs +++ b/sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs @@ -161,10 +161,29 @@ public abstract partial class DistributionMode { protected DistributionMode() { } public bool? BypassSelectors { get { throw null; } set { } } - public string Kind { get { throw null; } protected set { } } + public Azure.Communication.JobRouter.DistributionModeKind Kind { get { throw null; } protected set { } } public int MaxConcurrentOffers { get { throw null; } set { } } public int MinConcurrentOffers { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct DistributionModeKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public DistributionModeKind(string value) { throw null; } + public static Azure.Communication.JobRouter.DistributionModeKind BestWorker { get { throw null; } } + public static Azure.Communication.JobRouter.DistributionModeKind LongestIdle { get { throw null; } } + public static Azure.Communication.JobRouter.DistributionModeKind RoundRobin { get { throw null; } } + public bool Equals(Azure.Communication.JobRouter.DistributionModeKind other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Communication.JobRouter.DistributionModeKind left, Azure.Communication.JobRouter.DistributionModeKind right) { throw null; } + public static implicit operator Azure.Communication.JobRouter.DistributionModeKind (string value) { throw null; } + public static bool operator !=(Azure.Communication.JobRouter.DistributionModeKind left, Azure.Communication.JobRouter.DistributionModeKind right) { throw null; } + public override string ToString() { throw null; } + } public partial class DistributionPolicy { public DistributionPolicy(string distributionPolicyId) { } @@ -178,7 +197,26 @@ public abstract partial class ExceptionAction { protected ExceptionAction() { } public string Id { get { throw null; } } - public string Kind { get { throw null; } protected set { } } + public Azure.Communication.JobRouter.ExceptionActionKind Kind { get { throw null; } protected set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ExceptionActionKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ExceptionActionKind(string value) { throw null; } + public static Azure.Communication.JobRouter.ExceptionActionKind Cancel { get { throw null; } } + public static Azure.Communication.JobRouter.ExceptionActionKind ManualReclassify { get { throw null; } } + public static Azure.Communication.JobRouter.ExceptionActionKind Reclassify { get { throw null; } } + public bool Equals(Azure.Communication.JobRouter.ExceptionActionKind other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Communication.JobRouter.ExceptionActionKind left, Azure.Communication.JobRouter.ExceptionActionKind right) { throw null; } + public static implicit operator Azure.Communication.JobRouter.ExceptionActionKind (string value) { throw null; } + public static bool operator !=(Azure.Communication.JobRouter.ExceptionActionKind left, Azure.Communication.JobRouter.ExceptionActionKind right) { throw null; } + public override string ToString() { throw null; } } public partial class ExceptionPolicy { @@ -198,7 +236,25 @@ public ExceptionRule(string id, Azure.Communication.JobRouter.ExceptionTrigger t public abstract partial class ExceptionTrigger { protected ExceptionTrigger() { } - public string Kind { get { throw null; } protected set { } } + public Azure.Communication.JobRouter.ExceptionTriggerKind Kind { get { throw null; } protected set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ExceptionTriggerKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ExceptionTriggerKind(string value) { throw null; } + public static Azure.Communication.JobRouter.ExceptionTriggerKind QueueLength { get { throw null; } } + public static Azure.Communication.JobRouter.ExceptionTriggerKind WaitTime { get { throw null; } } + public bool Equals(Azure.Communication.JobRouter.ExceptionTriggerKind other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Communication.JobRouter.ExceptionTriggerKind left, Azure.Communication.JobRouter.ExceptionTriggerKind right) { throw null; } + public static implicit operator Azure.Communication.JobRouter.ExceptionTriggerKind (string value) { throw null; } + public static bool operator !=(Azure.Communication.JobRouter.ExceptionTriggerKind left, Azure.Communication.JobRouter.ExceptionTriggerKind right) { throw null; } + public override string ToString() { throw null; } } public partial class ExpressionRouterRule : Azure.Communication.JobRouter.RouterRule { @@ -220,7 +276,26 @@ public FunctionRouterRuleCredential(string appKey, string clientId) { } public abstract partial class JobMatchingMode { protected JobMatchingMode() { } - public string Kind { get { throw null; } protected set { } } + public Azure.Communication.JobRouter.JobMatchingModeKind Kind { get { throw null; } protected set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct JobMatchingModeKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public JobMatchingModeKind(string value) { throw null; } + public static Azure.Communication.JobRouter.JobMatchingModeKind QueueAndMatch { get { throw null; } } + public static Azure.Communication.JobRouter.JobMatchingModeKind ScheduleAndSuspend { get { throw null; } } + public static Azure.Communication.JobRouter.JobMatchingModeKind Suspend { get { throw null; } } + public bool Equals(Azure.Communication.JobRouter.JobMatchingModeKind other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Communication.JobRouter.JobMatchingModeKind left, Azure.Communication.JobRouter.JobMatchingModeKind right) { throw null; } + public static implicit operator Azure.Communication.JobRouter.JobMatchingModeKind (string value) { throw null; } + public static bool operator !=(Azure.Communication.JobRouter.JobMatchingModeKind left, Azure.Communication.JobRouter.JobMatchingModeKind right) { throw null; } + public override string ToString() { throw null; } } public partial class JobRouterAdministrationClient { @@ -245,26 +320,20 @@ public JobRouterAdministrationClient(System.Uri endpoint, Azure.Core.TokenCreden public virtual System.Threading.Tasks.Task DeleteExceptionPolicyAsync(string exceptionPolicyId, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response DeleteQueue(string queueId, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteQueueAsync(string queueId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Pageable GetClassificationPolicies(int? maxpagesize, Azure.RequestContext context) { throw null; } - public virtual Azure.Pageable GetClassificationPolicies(int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetClassificationPoliciesAsync(int? maxpagesize, Azure.RequestContext context) { throw null; } - public virtual Azure.AsyncPageable GetClassificationPoliciesAsync(int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetClassificationPolicies(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetClassificationPoliciesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetClassificationPolicy(string classificationPolicyId, Azure.RequestContext context) { throw null; } public virtual Azure.Response GetClassificationPolicy(string classificationPolicyId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetClassificationPolicyAsync(string classificationPolicyId, Azure.RequestContext context) { throw null; } public virtual System.Threading.Tasks.Task> GetClassificationPolicyAsync(string classificationPolicyId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetDistributionPolicies(int? maxpagesize, Azure.RequestContext context) { throw null; } - public virtual Azure.Pageable GetDistributionPolicies(int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetDistributionPoliciesAsync(int? maxpagesize, Azure.RequestContext context) { throw null; } - public virtual Azure.AsyncPageable GetDistributionPoliciesAsync(int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetDistributionPolicies(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetDistributionPoliciesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetDistributionPolicy(string distributionPolicyId, Azure.RequestContext context) { throw null; } public virtual Azure.Response GetDistributionPolicy(string distributionPolicyId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetDistributionPolicyAsync(string distributionPolicyId, Azure.RequestContext context) { throw null; } public virtual System.Threading.Tasks.Task> GetDistributionPolicyAsync(string distributionPolicyId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetExceptionPolicies(int? maxpagesize, Azure.RequestContext context) { throw null; } - public virtual Azure.Pageable GetExceptionPolicies(int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetExceptionPoliciesAsync(int? maxpagesize, Azure.RequestContext context) { throw null; } - public virtual Azure.AsyncPageable GetExceptionPoliciesAsync(int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetExceptionPolicies(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetExceptionPoliciesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetExceptionPolicy(string exceptionPolicyId, Azure.RequestContext context) { throw null; } public virtual Azure.Response GetExceptionPolicy(string exceptionPolicyId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetExceptionPolicyAsync(string exceptionPolicyId, Azure.RequestContext context) { throw null; } @@ -273,10 +342,8 @@ public JobRouterAdministrationClient(System.Uri endpoint, Azure.Core.TokenCreden public virtual Azure.Response GetQueue(string queueId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetQueueAsync(string queueId, Azure.RequestContext context) { throw null; } public virtual System.Threading.Tasks.Task> GetQueueAsync(string queueId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetQueues(int? maxpagesize, Azure.RequestContext context) { throw null; } - public virtual Azure.Pageable GetQueues(int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetQueuesAsync(int? maxpagesize, Azure.RequestContext context) { throw null; } - public virtual Azure.AsyncPageable GetQueuesAsync(int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetQueues(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetQueuesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response UpdateClassificationPolicy(Azure.Communication.JobRouter.ClassificationPolicy classificationPolicy, Azure.RequestConditions requestConditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response UpdateClassificationPolicy(string classificationPolicyId, Azure.Core.RequestContent content, Azure.RequestConditions requestConditions = null, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> UpdateClassificationPolicyAsync(Azure.Communication.JobRouter.ClassificationPolicy classificationPolicy, Azure.RequestConditions requestConditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -324,10 +391,8 @@ public JobRouterClient(System.Uri endpoint, Azure.Core.TokenCredential credentia public virtual Azure.Response GetJob(string jobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetJobAsync(string jobId, Azure.RequestContext context) { throw null; } public virtual System.Threading.Tasks.Task> GetJobAsync(string jobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetJobs(int? maxpagesize = default(int?), Azure.Communication.JobRouter.RouterJobStatusSelector? status = default(Azure.Communication.JobRouter.RouterJobStatusSelector?), string queueId = null, string channelId = null, string classificationPolicyId = null, System.DateTimeOffset? scheduledBefore = default(System.DateTimeOffset?), System.DateTimeOffset? scheduledAfter = default(System.DateTimeOffset?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetJobs(int? maxpagesize, string status, string queueId, string channelId, string classificationPolicyId, System.DateTimeOffset? scheduledBefore, System.DateTimeOffset? scheduledAfter, Azure.RequestContext context) { throw null; } - public virtual Azure.AsyncPageable GetJobsAsync(int? maxpagesize = default(int?), Azure.Communication.JobRouter.RouterJobStatusSelector? status = default(Azure.Communication.JobRouter.RouterJobStatusSelector?), string queueId = null, string channelId = null, string classificationPolicyId = null, System.DateTimeOffset? scheduledBefore = default(System.DateTimeOffset?), System.DateTimeOffset? scheduledAfter = default(System.DateTimeOffset?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetJobsAsync(int? maxpagesize, string status, string queueId, string channelId, string classificationPolicyId, System.DateTimeOffset? scheduledBefore, System.DateTimeOffset? scheduledAfter, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetJobs(Azure.Communication.JobRouter.RouterJobStatusSelector? status = default(Azure.Communication.JobRouter.RouterJobStatusSelector?), string queueId = null, string channelId = null, string classificationPolicyId = null, System.DateTimeOffset? scheduledBefore = default(System.DateTimeOffset?), System.DateTimeOffset? scheduledAfter = default(System.DateTimeOffset?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetJobsAsync(Azure.Communication.JobRouter.RouterJobStatusSelector? status = default(Azure.Communication.JobRouter.RouterJobStatusSelector?), string queueId = null, string channelId = null, string classificationPolicyId = null, System.DateTimeOffset? scheduledBefore = default(System.DateTimeOffset?), System.DateTimeOffset? scheduledAfter = default(System.DateTimeOffset?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetQueuePosition(string jobId, Azure.RequestContext context) { throw null; } public virtual Azure.Response GetQueuePosition(string jobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetQueuePositionAsync(string jobId, Azure.RequestContext context) { throw null; } @@ -340,10 +405,8 @@ public JobRouterClient(System.Uri endpoint, Azure.Core.TokenCredential credentia public virtual Azure.Response GetWorker(string workerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetWorkerAsync(string workerId, Azure.RequestContext context) { throw null; } public virtual System.Threading.Tasks.Task> GetWorkerAsync(string workerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetWorkers(int? maxpagesize = default(int?), Azure.Communication.JobRouter.RouterWorkerStateSelector? state = default(Azure.Communication.JobRouter.RouterWorkerStateSelector?), string channelId = null, string queueId = null, bool? hasCapacity = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetWorkers(int? maxpagesize, string state, string channelId, string queueId, bool? hasCapacity, Azure.RequestContext context) { throw null; } - public virtual Azure.AsyncPageable GetWorkersAsync(int? maxpagesize = default(int?), Azure.Communication.JobRouter.RouterWorkerStateSelector? state = default(Azure.Communication.JobRouter.RouterWorkerStateSelector?), string channelId = null, string queueId = null, bool? hasCapacity = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetWorkersAsync(int? maxpagesize, string state, string channelId, string queueId, bool? hasCapacity, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetWorkers(Azure.Communication.JobRouter.RouterWorkerStateSelector? state = default(Azure.Communication.JobRouter.RouterWorkerStateSelector?), string channelId = null, string queueId = null, bool? hasCapacity = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetWorkersAsync(Azure.Communication.JobRouter.RouterWorkerStateSelector? state = default(Azure.Communication.JobRouter.RouterWorkerStateSelector?), string channelId = null, string queueId = null, bool? hasCapacity = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response ReclassifyJob(string jobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task ReclassifyJobAsync(string jobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response UnassignJob(Azure.Communication.JobRouter.UnassignJobOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -382,7 +445,7 @@ public static partial class JobRouterModelFactory public static Azure.Communication.JobRouter.CancelExceptionAction CancelExceptionAction(string id = null, string note = null, string dispositionCode = null) { throw null; } public static Azure.Communication.JobRouter.ConditionalQueueSelectorAttachment ConditionalQueueSelectorAttachment(Azure.Communication.JobRouter.RouterRule condition = null, System.Collections.Generic.IEnumerable queueSelectors = null) { throw null; } public static Azure.Communication.JobRouter.ConditionalWorkerSelectorAttachment ConditionalWorkerSelectorAttachment(Azure.Communication.JobRouter.RouterRule condition = null, System.Collections.Generic.IEnumerable workerSelectors = null) { throw null; } - public static Azure.Communication.JobRouter.ExceptionAction ExceptionAction(string id = null, string kind = null) { throw null; } + public static Azure.Communication.JobRouter.ExceptionAction ExceptionAction(string id = null, string kind = "Unknown") { throw null; } public static Azure.Communication.JobRouter.ExceptionRule ExceptionRule(string id = null, Azure.Communication.JobRouter.ExceptionTrigger trigger = null, System.Collections.Generic.IEnumerable actions = null) { throw null; } public static Azure.Communication.JobRouter.ExpressionRouterRule ExpressionRouterRule(string language = null, string expression = null) { throw null; } public static Azure.Communication.JobRouter.FunctionRouterRule FunctionRouterRule(System.Uri functionUri = null, Azure.Communication.JobRouter.FunctionRouterRuleCredential credential = null) { throw null; } @@ -468,7 +531,28 @@ public QueueLengthExceptionTrigger(int threshold) { } public abstract partial class QueueSelectorAttachment { protected QueueSelectorAttachment() { } - public string Kind { get { throw null; } protected set { } } + public Azure.Communication.JobRouter.QueueSelectorAttachmentKind Kind { get { throw null; } protected set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct QueueSelectorAttachmentKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public QueueSelectorAttachmentKind(string value) { throw null; } + public static Azure.Communication.JobRouter.QueueSelectorAttachmentKind Conditional { get { throw null; } } + public static Azure.Communication.JobRouter.QueueSelectorAttachmentKind PassThrough { get { throw null; } } + public static Azure.Communication.JobRouter.QueueSelectorAttachmentKind RuleEngine { get { throw null; } } + public static Azure.Communication.JobRouter.QueueSelectorAttachmentKind Static { get { throw null; } } + public static Azure.Communication.JobRouter.QueueSelectorAttachmentKind WeightedAllocation { get { throw null; } } + public bool Equals(Azure.Communication.JobRouter.QueueSelectorAttachmentKind other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Communication.JobRouter.QueueSelectorAttachmentKind left, Azure.Communication.JobRouter.QueueSelectorAttachmentKind right) { throw null; } + public static implicit operator Azure.Communication.JobRouter.QueueSelectorAttachmentKind (string value) { throw null; } + public static bool operator !=(Azure.Communication.JobRouter.QueueSelectorAttachmentKind left, Azure.Communication.JobRouter.QueueSelectorAttachmentKind right) { throw null; } + public override string ToString() { throw null; } } public partial class QueueWeightedAllocation { @@ -634,7 +718,28 @@ internal RouterQueueStatistics() { } public abstract partial class RouterRule { protected RouterRule() { } - public string Kind { get { throw null; } protected set { } } + public Azure.Communication.JobRouter.RouterRuleKind Kind { get { throw null; } protected set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct RouterRuleKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RouterRuleKind(string value) { throw null; } + public static Azure.Communication.JobRouter.RouterRuleKind DirectMap { get { throw null; } } + public static Azure.Communication.JobRouter.RouterRuleKind Expression { get { throw null; } } + public static Azure.Communication.JobRouter.RouterRuleKind Function { get { throw null; } } + public static Azure.Communication.JobRouter.RouterRuleKind Static { get { throw null; } } + public static Azure.Communication.JobRouter.RouterRuleKind Webhook { get { throw null; } } + public bool Equals(Azure.Communication.JobRouter.RouterRuleKind other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Communication.JobRouter.RouterRuleKind left, Azure.Communication.JobRouter.RouterRuleKind right) { throw null; } + public static implicit operator Azure.Communication.JobRouter.RouterRuleKind (string value) { throw null; } + public static bool operator !=(Azure.Communication.JobRouter.RouterRuleKind left, Azure.Communication.JobRouter.RouterRuleKind right) { throw null; } + public override string ToString() { throw null; } } public partial class RouterValue : System.IEquatable { @@ -845,7 +950,28 @@ public WeightedAllocationWorkerSelectorAttachment(System.Collections.Generic.IEn public abstract partial class WorkerSelectorAttachment { protected WorkerSelectorAttachment() { } - public string Kind { get { throw null; } protected set { } } + public Azure.Communication.JobRouter.WorkerSelectorAttachmentKind Kind { get { throw null; } protected set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct WorkerSelectorAttachmentKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public WorkerSelectorAttachmentKind(string value) { throw null; } + public static Azure.Communication.JobRouter.WorkerSelectorAttachmentKind Conditional { get { throw null; } } + public static Azure.Communication.JobRouter.WorkerSelectorAttachmentKind PassThrough { get { throw null; } } + public static Azure.Communication.JobRouter.WorkerSelectorAttachmentKind RuleEngine { get { throw null; } } + public static Azure.Communication.JobRouter.WorkerSelectorAttachmentKind Static { get { throw null; } } + public static Azure.Communication.JobRouter.WorkerSelectorAttachmentKind WeightedAllocation { get { throw null; } } + public bool Equals(Azure.Communication.JobRouter.WorkerSelectorAttachmentKind other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Communication.JobRouter.WorkerSelectorAttachmentKind left, Azure.Communication.JobRouter.WorkerSelectorAttachmentKind right) { throw null; } + public static implicit operator Azure.Communication.JobRouter.WorkerSelectorAttachmentKind (string value) { throw null; } + public static bool operator !=(Azure.Communication.JobRouter.WorkerSelectorAttachmentKind left, Azure.Communication.JobRouter.WorkerSelectorAttachmentKind right) { throw null; } + public override string ToString() { throw null; } } public partial class WorkerWeightedAllocation { diff --git a/sdk/communication/Azure.Communication.JobRouter/assets.json b/sdk/communication/Azure.Communication.JobRouter/assets.json index 98ab5fc58886b..28577495791b4 100644 --- a/sdk/communication/Azure.Communication.JobRouter/assets.json +++ b/sdk/communication/Azure.Communication.JobRouter/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/communication/Azure.Communication.JobRouter", - "Tag": "net/communication/Azure.Communication.JobRouter_2219a5ceb3" + "Tag": "net/communication/Azure.Communication.JobRouter_cf5426ddc5" } diff --git a/sdk/communication/Azure.Communication.JobRouter/samples/ClassificationPolicyCrud.md b/sdk/communication/Azure.Communication.JobRouter/samples/ClassificationPolicyCrud.md index 356312006082a..c2c44519b62c3 100644 --- a/sdk/communication/Azure.Communication.JobRouter/samples/ClassificationPolicyCrud.md +++ b/sdk/communication/Azure.Communication.JobRouter/samples/ClassificationPolicyCrud.md @@ -84,7 +84,7 @@ Console.WriteLine($"Classification policy successfully update with new prioritiz ## List classification policies ```C# Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetClassificationPolicies -Pageable classificationPolicies = routerAdministrationClient.GetClassificationPolicies(); +Pageable classificationPolicies = routerAdministrationClient.GetClassificationPolicies(cancellationToken: default); foreach (Page asPage in classificationPolicies.AsPages(pageSizeHint: 10)) { foreach (ClassificationPolicy? policy in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/samples/ClassificationPolicyCrudAsync.md b/sdk/communication/Azure.Communication.JobRouter/samples/ClassificationPolicyCrudAsync.md index 6df0098bc2597..40ecad7edcc96 100644 --- a/sdk/communication/Azure.Communication.JobRouter/samples/ClassificationPolicyCrudAsync.md +++ b/sdk/communication/Azure.Communication.JobRouter/samples/ClassificationPolicyCrudAsync.md @@ -85,7 +85,7 @@ Console.WriteLine($"Classification policy successfully update with new prioritiz ## List classification policies ```C# Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetClassificationPolicies_Async -AsyncPageable classificationPolicies = routerAdministrationClient.GetClassificationPoliciesAsync(); +AsyncPageable classificationPolicies = routerAdministrationClient.GetClassificationPoliciesAsync(cancellationToken: default); await foreach (Page asPage in classificationPolicies.AsPages(pageSizeHint: 10)) { foreach (ClassificationPolicy? policy in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/samples/DistributionPolicyCrud.md b/sdk/communication/Azure.Communication.JobRouter/samples/DistributionPolicyCrud.md index 81f4f534d59fd..7e1529141ac06 100644 --- a/sdk/communication/Azure.Communication.JobRouter/samples/DistributionPolicyCrud.md +++ b/sdk/communication/Azure.Communication.JobRouter/samples/DistributionPolicyCrud.md @@ -57,7 +57,7 @@ Console.WriteLine($"Distribution policy successfully update with new distributio ## List distribution policies ```C# Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetDistributionPolicies -Pageable distributionPolicies = routerAdministrationClient.GetDistributionPolicies(); +Pageable distributionPolicies = routerAdministrationClient.GetDistributionPolicies(cancellationToken: default); foreach (Page asPage in distributionPolicies.AsPages(pageSizeHint: 10)) { foreach (DistributionPolicy? policy in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/samples/DistributionPolicyCrudAsync.md b/sdk/communication/Azure.Communication.JobRouter/samples/DistributionPolicyCrudAsync.md index 36b945facbd2e..0ed7cbaaaddee 100644 --- a/sdk/communication/Azure.Communication.JobRouter/samples/DistributionPolicyCrudAsync.md +++ b/sdk/communication/Azure.Communication.JobRouter/samples/DistributionPolicyCrudAsync.md @@ -57,7 +57,7 @@ Console.WriteLine($"Distribution policy successfully update with new distributio ## List distribution policies ```C# Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetDistributionPolicies_Async -AsyncPageable distributionPolicies = routerAdministrationClient.GetDistributionPoliciesAsync(); +AsyncPageable distributionPolicies = routerAdministrationClient.GetDistributionPoliciesAsync(cancellationToken: default); await foreach (Page asPage in distributionPolicies.AsPages(pageSizeHint: 10)) { foreach (DistributionPolicy? policy in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/samples/ExceptionPolicyCrud.md b/sdk/communication/Azure.Communication.JobRouter/samples/ExceptionPolicyCrud.md index 942758ef89abd..8d56cd180dc62 100644 --- a/sdk/communication/Azure.Communication.JobRouter/samples/ExceptionPolicyCrud.md +++ b/sdk/communication/Azure.Communication.JobRouter/samples/ExceptionPolicyCrud.md @@ -137,7 +137,7 @@ Console.WriteLine($"`EscalateJobOnWaitTimeExceededTrigger2Min` rule has been suc ## List exception policies ```C# Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetExceptionPolicies -Pageable exceptionPolicies = routerClient.GetExceptionPolicies(); +Pageable exceptionPolicies = routerClient.GetExceptionPolicies(cancellationToken: default); foreach (Page asPage in exceptionPolicies.AsPages(pageSizeHint: 10)) { foreach (ExceptionPolicy? policy in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/samples/ExceptionPolicyCrudAsync.md b/sdk/communication/Azure.Communication.JobRouter/samples/ExceptionPolicyCrudAsync.md index b91a621065e42..263ff9ac0ead5 100644 --- a/sdk/communication/Azure.Communication.JobRouter/samples/ExceptionPolicyCrudAsync.md +++ b/sdk/communication/Azure.Communication.JobRouter/samples/ExceptionPolicyCrudAsync.md @@ -137,7 +137,7 @@ Console.WriteLine($"`EscalateJobOnWaitTimeExceededTrigger2Min` rule has been suc ## List exception policies ```C# Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetExceptionPolicies_Async -AsyncPageable exceptionPolicies = routerClient.GetExceptionPoliciesAsync(); +AsyncPageable exceptionPolicies = routerClient.GetExceptionPoliciesAsync(cancellationToken: default); await foreach (Page asPage in exceptionPolicies.AsPages(pageSizeHint: 10)) { foreach (ExceptionPolicy? policy in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/samples/JobQueueCrud.md b/sdk/communication/Azure.Communication.JobRouter/samples/JobQueueCrud.md index f65b53060856f..9fd95886c8526 100644 --- a/sdk/communication/Azure.Communication.JobRouter/samples/JobQueueCrud.md +++ b/sdk/communication/Azure.Communication.JobRouter/samples/JobQueueCrud.md @@ -58,7 +58,7 @@ Response updatedJobQueue = routerAdministrationClient.UpdateQueue(n ## List job queues ```C# Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetJobQueues -Pageable jobQueues = routerAdministrationClient.GetQueues(); +Pageable jobQueues = routerAdministrationClient.GetQueues(cancellationToken: default); foreach (Page asPage in jobQueues.AsPages(pageSizeHint: 10)) { foreach (RouterQueue? policy in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/samples/JobQueueCrudAsync.md b/sdk/communication/Azure.Communication.JobRouter/samples/JobQueueCrudAsync.md index 6094a934cfc2b..b7a52d8e03c99 100644 --- a/sdk/communication/Azure.Communication.JobRouter/samples/JobQueueCrudAsync.md +++ b/sdk/communication/Azure.Communication.JobRouter/samples/JobQueueCrudAsync.md @@ -60,7 +60,7 @@ Response updatedJobQueue = await routerAdministrationClient.UpdateQ ## List job queues ```C# Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetJobQueues_Async -AsyncPageable jobQueues = routerAdministrationClient.GetQueuesAsync(); +AsyncPageable jobQueues = routerAdministrationClient.GetQueuesAsync(cancellationToken: default); await foreach (Page asPage in jobQueues.AsPages(pageSizeHint: 10)) { foreach (RouterQueue? policy in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/samples/RouterJobCrud.md b/sdk/communication/Azure.Communication.JobRouter/samples/RouterJobCrud.md index 6fa3a0a993e92..78f3eb5433223 100644 --- a/sdk/communication/Azure.Communication.JobRouter/samples/RouterJobCrud.md +++ b/sdk/communication/Azure.Communication.JobRouter/samples/RouterJobCrud.md @@ -169,7 +169,7 @@ Console.WriteLine($"Job has been successfully closed. Current status: {queriedJo ## List jobs ```C# Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetRouterJobs -Pageable routerJobs = routerClient.GetJobs(); +Pageable routerJobs = routerClient.GetJobs(null, null); foreach (Page asPage in routerJobs.AsPages(pageSizeHint: 10)) { foreach (RouterJob? _job in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/samples/RouterJobCrudAsync.md b/sdk/communication/Azure.Communication.JobRouter/samples/RouterJobCrudAsync.md index 58ad854ca4b08..61279bb62714a 100644 --- a/sdk/communication/Azure.Communication.JobRouter/samples/RouterJobCrudAsync.md +++ b/sdk/communication/Azure.Communication.JobRouter/samples/RouterJobCrudAsync.md @@ -170,7 +170,7 @@ Console.WriteLine($"Job has been successfully closed. Current status: {queriedJo ## List jobs ```C# Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetRouterJobs_Async -AsyncPageable routerJobs = routerClient.GetJobsAsync(); +AsyncPageable routerJobs = routerClient.GetJobsAsync(null, null); await foreach (Page asPage in routerJobs.AsPages(pageSizeHint: 10)) { foreach (RouterJob? _job in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/samples/RouterWorkerCrud.md b/sdk/communication/Azure.Communication.JobRouter/samples/RouterWorkerCrud.md index e98e6cdd45b26..1c6c032bf0372 100644 --- a/sdk/communication/Azure.Communication.JobRouter/samples/RouterWorkerCrud.md +++ b/sdk/communication/Azure.Communication.JobRouter/samples/RouterWorkerCrud.md @@ -103,7 +103,7 @@ Console.WriteLine($"Worker successfully de-registered with status set to: {updat ## List workers ```C# Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetRouterWorkers -Pageable workers = routerClient.GetWorkers(); +Pageable workers = routerClient.GetWorkers(null, null); foreach (Page asPage in workers.AsPages(pageSizeHint: 10)) { foreach (RouterWorker? workerPaged in asPage.Values) @@ -113,7 +113,7 @@ foreach (Page asPage in workers.AsPages(pageSizeHint: 10)) } // Additionally workers can be queried with several filters like queueId, capacity, state etc. -workers = routerClient.GetWorkers(channelId: "Voip", state: RouterWorkerStateSelector.All); +workers = routerClient.GetWorkers(null, channelId: "Voip", state: RouterWorkerStateSelector.All); foreach (Page asPage in workers.AsPages(pageSizeHint: 10)) { diff --git a/sdk/communication/Azure.Communication.JobRouter/samples/RouterWorkerCrudAsync.md b/sdk/communication/Azure.Communication.JobRouter/samples/RouterWorkerCrudAsync.md index 9df09b951ae20..de631c1c892c0 100644 --- a/sdk/communication/Azure.Communication.JobRouter/samples/RouterWorkerCrudAsync.md +++ b/sdk/communication/Azure.Communication.JobRouter/samples/RouterWorkerCrudAsync.md @@ -105,7 +105,7 @@ Console.WriteLine($"Worker successfully de-registered with status set to: {updat ## List workers ```C# Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetRouterWorkers_Async -AsyncPageable workers = routerClient.GetWorkersAsync(); +AsyncPageable workers = routerClient.GetWorkersAsync(null, null); await foreach (Page asPage in workers.AsPages(pageSizeHint: 10)) { foreach (RouterWorker? workerPaged in asPage.Values) @@ -115,7 +115,7 @@ await foreach (Page asPage in workers.AsPages(pageSizeHint: 10)) } // Additionally workers can be queried with several filters like queueId, capacity, state etc. -workers = routerClient.GetWorkersAsync(channelId: "Voip", state: RouterWorkerStateSelector.All); +workers = routerClient.GetWorkersAsync(channelId: "Voip", state: RouterWorkerStateSelector.All, queueId: null, hasCapacity: null, cancellationToken: default); await foreach (Page asPage in workers.AsPages(pageSizeHint: 10)) { diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/BestWorkerMode.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/BestWorkerMode.Serialization.cs index ae5c0974051e3..7ede7a99b4a2a 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/BestWorkerMode.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/BestWorkerMode.Serialization.cs @@ -24,7 +24,7 @@ internal static BestWorkerMode DeserializeBestWorkerMode(JsonElement element) Optional minConcurrentOffers = default; Optional maxConcurrentOffers = default; Optional bypassSelectors = default; - string kind = default; + DistributionModeKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("scoringRule"u8)) @@ -74,7 +74,7 @@ internal static BestWorkerMode DeserializeBestWorkerMode(JsonElement element) } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new DistributionModeKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/BestWorkerMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/BestWorkerMode.cs index c9d47b243de41..cad728f543772 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/BestWorkerMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/BestWorkerMode.cs @@ -17,7 +17,7 @@ public partial class BestWorkerMode : DistributionMode /// The type discriminator describing a sub-type of DistributionMode. /// Define a scoring rule to use, when calculating a score to determine the best worker. If not set, will use a default scoring formula that uses the number of job labels that the worker labels match, as well as the number of label selectors the worker labels match and/or exceed using a logistic function (https://en.wikipedia.org/wiki/Logistic_function). /// Options to configure 'scoringRule'. If not set, default values are used. - internal BestWorkerMode(int minConcurrentOffers, int maxConcurrentOffers, bool? bypassSelectors, string kind, RouterRule scoringRule, ScoringRuleOptions scoringRuleOptions) : base(minConcurrentOffers, maxConcurrentOffers, bypassSelectors, kind) + internal BestWorkerMode(int minConcurrentOffers, int maxConcurrentOffers, bool? bypassSelectors, DistributionModeKind kind, RouterRule scoringRule, ScoringRuleOptions scoringRuleOptions) : base(minConcurrentOffers, maxConcurrentOffers, bypassSelectors, kind) { ScoringRule = scoringRule; ScoringRuleOptions = scoringRuleOptions; diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/CancelExceptionAction.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/CancelExceptionAction.Serialization.cs index c74667d2829d0..46090b7719443 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/CancelExceptionAction.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/CancelExceptionAction.Serialization.cs @@ -22,7 +22,7 @@ internal static CancelExceptionAction DeserializeCancelExceptionAction(JsonEleme Optional note = default; Optional dispositionCode = default; Optional id = default; - string kind = default; + ExceptionActionKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("note"u8)) @@ -42,7 +42,7 @@ internal static CancelExceptionAction DeserializeCancelExceptionAction(JsonEleme } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new ExceptionActionKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/CancelExceptionAction.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/CancelExceptionAction.cs index bc1f31430fd2d..c28fb75019877 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/CancelExceptionAction.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/CancelExceptionAction.cs @@ -15,7 +15,7 @@ public partial class CancelExceptionAction : ExceptionAction /// The type discriminator describing a sub-type of ExceptionAction. /// A note that will be appended to the jobs' Notes collection with the current timestamp. /// Indicates the outcome of the job, populate this field with your own custom values. - internal CancelExceptionAction(string id, string kind, string note, string dispositionCode) : base(id, kind) + internal CancelExceptionAction(string id, ExceptionActionKind kind, string note, string dispositionCode) : base(id, kind) { Note = note; DispositionCode = dispositionCode; diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ConditionalQueueSelectorAttachment.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ConditionalQueueSelectorAttachment.Serialization.cs index e9d3864f642d7..be8ef519c076b 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ConditionalQueueSelectorAttachment.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ConditionalQueueSelectorAttachment.Serialization.cs @@ -21,7 +21,7 @@ internal static ConditionalQueueSelectorAttachment DeserializeConditionalQueueSe } RouterRule condition = default; IList queueSelectors = default; - string kind = default; + QueueSelectorAttachmentKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("condition"u8)) @@ -41,7 +41,7 @@ internal static ConditionalQueueSelectorAttachment DeserializeConditionalQueueSe } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new QueueSelectorAttachmentKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ConditionalQueueSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ConditionalQueueSelectorAttachment.cs index 9836a8894afa5..e0a0a7bb41c15 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ConditionalQueueSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ConditionalQueueSelectorAttachment.cs @@ -24,7 +24,7 @@ internal ConditionalQueueSelectorAttachment(RouterRule condition, IEnumerable The type discriminator describing a sub-type of QueueSelectorAttachment. /// The condition that must be true for the queue selectors to be attached. /// The queue selectors to attach. - internal ConditionalQueueSelectorAttachment(string kind, RouterRule condition, IList queueSelectors) : base(kind) + internal ConditionalQueueSelectorAttachment(QueueSelectorAttachmentKind kind, RouterRule condition, IList queueSelectors) : base(kind) { Condition = condition; QueueSelectors = queueSelectors; diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ConditionalWorkerSelectorAttachment.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ConditionalWorkerSelectorAttachment.Serialization.cs index 0ebaf1d27af7e..bf54ec9487df2 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ConditionalWorkerSelectorAttachment.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ConditionalWorkerSelectorAttachment.Serialization.cs @@ -21,7 +21,7 @@ internal static ConditionalWorkerSelectorAttachment DeserializeConditionalWorker } RouterRule condition = default; IList workerSelectors = default; - string kind = default; + WorkerSelectorAttachmentKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("condition"u8)) @@ -41,7 +41,7 @@ internal static ConditionalWorkerSelectorAttachment DeserializeConditionalWorker } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new WorkerSelectorAttachmentKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ConditionalWorkerSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ConditionalWorkerSelectorAttachment.cs index fe8d97253da9b..d2376c7ecf673 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ConditionalWorkerSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ConditionalWorkerSelectorAttachment.cs @@ -24,7 +24,7 @@ internal ConditionalWorkerSelectorAttachment(RouterRule condition, IEnumerable The type discriminator describing a sub-type of WorkerSelectorAttachment. /// The condition that must be true for the worker selectors to be attached. /// The worker selectors to attach. - internal ConditionalWorkerSelectorAttachment(string kind, RouterRule condition, IList workerSelectors) : base(kind) + internal ConditionalWorkerSelectorAttachment(WorkerSelectorAttachmentKind kind, RouterRule condition, IList workerSelectors) : base(kind) { Condition = condition; WorkerSelectors = workerSelectors; diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/DirectMapRouterRule.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/DirectMapRouterRule.Serialization.cs index f732686b0ccc8..9734a6257289b 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/DirectMapRouterRule.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/DirectMapRouterRule.Serialization.cs @@ -18,12 +18,12 @@ internal static DirectMapRouterRule DeserializeDirectMapRouterRule(JsonElement e { return null; } - string kind = default; + RouterRuleKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new RouterRuleKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/DirectMapRouterRule.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/DirectMapRouterRule.cs index 4ff8b78f23f99..eea0259557582 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/DirectMapRouterRule.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/DirectMapRouterRule.cs @@ -12,7 +12,7 @@ public partial class DirectMapRouterRule : RouterRule { /// Initializes a new instance of DirectMapRouterRule. /// The type discriminator describing a sub-type of RouterRule. - internal DirectMapRouterRule(string kind) : base(kind) + internal DirectMapRouterRule(RouterRuleKind kind) : base(kind) { } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/DistributionMode.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/DistributionMode.Serialization.cs index 0b8916b71436b..d30c6772eae32 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/DistributionMode.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/DistributionMode.Serialization.cs @@ -22,9 +22,9 @@ internal static DistributionMode DeserializeDistributionMode(JsonElement element { switch (discriminator.GetString()) { - case "best-worker": return BestWorkerMode.DeserializeBestWorkerMode(element); - case "longest-idle": return LongestIdleMode.DeserializeLongestIdleMode(element); - case "round-robin": return RoundRobinMode.DeserializeRoundRobinMode(element); + case "bestWorker": return BestWorkerMode.DeserializeBestWorkerMode(element); + case "longestIdle": return LongestIdleMode.DeserializeLongestIdleMode(element); + case "roundRobin": return RoundRobinMode.DeserializeRoundRobinMode(element); } } return UnknownDistributionMode.DeserializeUnknownDistributionMode(element); diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/DistributionMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/DistributionMode.cs index 6657639aae4c4..6beb6b5c22ae6 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/DistributionMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/DistributionMode.cs @@ -24,7 +24,7 @@ protected DistributionMode() /// Governs the maximum number of active concurrent offers a job can have. /// If set to true, then router will match workers to jobs even if they don't match label selectors. Warning: You may get workers that are not qualified for the job they are matched with if you set this variable to true. This flag is intended more for temporary usage. By default, set to false. /// The type discriminator describing a sub-type of DistributionMode. - internal DistributionMode(int minConcurrentOffers, int maxConcurrentOffers, bool? bypassSelectors, string kind) + internal DistributionMode(int minConcurrentOffers, int maxConcurrentOffers, bool? bypassSelectors, DistributionModeKind kind) { MinConcurrentOffers = minConcurrentOffers; MaxConcurrentOffers = maxConcurrentOffers; diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/DistributionModeKind.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/DistributionModeKind.cs new file mode 100644 index 0000000000000..af876deeac3b1 --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/DistributionModeKind.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Communication.JobRouter +{ + /// Supported distribution mode types. + public readonly partial struct DistributionModeKind : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public DistributionModeKind(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string BestWorkerValue = "bestWorker"; + private const string LongestIdleValue = "longestIdle"; + private const string RoundRobinValue = "roundRobin"; + + /// Discriminator value for BestWorkerMode. + public static DistributionModeKind BestWorker { get; } = new DistributionModeKind(BestWorkerValue); + /// Discriminator value for LongestIdleMode. + public static DistributionModeKind LongestIdle { get; } = new DistributionModeKind(LongestIdleValue); + /// Discriminator value for RoundRobinMode. + public static DistributionModeKind RoundRobin { get; } = new DistributionModeKind(RoundRobinValue); + /// Determines if two values are the same. + public static bool operator ==(DistributionModeKind left, DistributionModeKind right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(DistributionModeKind left, DistributionModeKind right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator DistributionModeKind(string value) => new DistributionModeKind(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is DistributionModeKind other && Equals(other); + /// + public bool Equals(DistributionModeKind other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionAction.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionAction.Serialization.cs index 1071df7151730..d68b9a2c8c3cd 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionAction.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionAction.Serialization.cs @@ -23,7 +23,7 @@ internal static ExceptionAction DeserializeExceptionAction(JsonElement element) switch (discriminator.GetString()) { case "cancel": return CancelExceptionAction.DeserializeCancelExceptionAction(element); - case "manual-reclassify": return ManualReclassifyExceptionAction.DeserializeManualReclassifyExceptionAction(element); + case "manualReclassify": return ManualReclassifyExceptionAction.DeserializeManualReclassifyExceptionAction(element); case "reclassify": return ReclassifyExceptionAction.DeserializeReclassifyExceptionAction(element); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionAction.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionAction.cs index 2b7c640ecffe3..842eceb2a1a89 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionAction.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionAction.cs @@ -22,7 +22,7 @@ protected ExceptionAction() /// Initializes a new instance of ExceptionAction. /// Unique Id of the exception action. /// The type discriminator describing a sub-type of ExceptionAction. - internal ExceptionAction(string id, string kind) + internal ExceptionAction(string id, ExceptionActionKind kind) { Id = id; Kind = kind; diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionActionKind.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionActionKind.cs new file mode 100644 index 0000000000000..f819adc246016 --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionActionKind.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Communication.JobRouter +{ + /// Supported exception action types. + public readonly partial struct ExceptionActionKind : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ExceptionActionKind(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CancelValue = "cancel"; + private const string ManualReclassifyValue = "manualReclassify"; + private const string ReclassifyValue = "reclassify"; + + /// Discriminator value for CancelExceptionAction. + public static ExceptionActionKind Cancel { get; } = new ExceptionActionKind(CancelValue); + /// Discriminator value for ManualReclassifyExceptionAction. + public static ExceptionActionKind ManualReclassify { get; } = new ExceptionActionKind(ManualReclassifyValue); + /// Discriminator value for ReclassifyExceptionAction. + public static ExceptionActionKind Reclassify { get; } = new ExceptionActionKind(ReclassifyValue); + /// Determines if two values are the same. + public static bool operator ==(ExceptionActionKind left, ExceptionActionKind right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ExceptionActionKind left, ExceptionActionKind right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ExceptionActionKind(string value) => new ExceptionActionKind(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ExceptionActionKind other && Equals(other); + /// + public bool Equals(ExceptionActionKind other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionTrigger.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionTrigger.Serialization.cs index 02be16d62778c..6e8da6ad8a76c 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionTrigger.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionTrigger.Serialization.cs @@ -22,8 +22,8 @@ internal static ExceptionTrigger DeserializeExceptionTrigger(JsonElement element { switch (discriminator.GetString()) { - case "queue-length": return QueueLengthExceptionTrigger.DeserializeQueueLengthExceptionTrigger(element); - case "wait-time": return WaitTimeExceptionTrigger.DeserializeWaitTimeExceptionTrigger(element); + case "queueLength": return QueueLengthExceptionTrigger.DeserializeQueueLengthExceptionTrigger(element); + case "waitTime": return WaitTimeExceptionTrigger.DeserializeWaitTimeExceptionTrigger(element); } } return UnknownExceptionTrigger.DeserializeUnknownExceptionTrigger(element); diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionTrigger.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionTrigger.cs index a4092743f2818..d3aff61347c31 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionTrigger.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionTrigger.cs @@ -21,7 +21,7 @@ protected ExceptionTrigger() /// Initializes a new instance of ExceptionTrigger. /// The type discriminator describing a sub-type of ExceptionTrigger. - internal ExceptionTrigger(string kind) + internal ExceptionTrigger(ExceptionTriggerKind kind) { Kind = kind; } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionTriggerKind.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionTriggerKind.cs new file mode 100644 index 0000000000000..4ad0fb4e85af6 --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionTriggerKind.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Communication.JobRouter +{ + /// Supported exception trigger types. + public readonly partial struct ExceptionTriggerKind : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ExceptionTriggerKind(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string QueueLengthValue = "queueLength"; + private const string WaitTimeValue = "waitTime"; + + /// Discriminator value for QueueLengthExceptionTrigger. + public static ExceptionTriggerKind QueueLength { get; } = new ExceptionTriggerKind(QueueLengthValue); + /// Discriminator value for WaitTimeExceptionTrigger. + public static ExceptionTriggerKind WaitTime { get; } = new ExceptionTriggerKind(WaitTimeValue); + /// Determines if two values are the same. + public static bool operator ==(ExceptionTriggerKind left, ExceptionTriggerKind right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ExceptionTriggerKind left, ExceptionTriggerKind right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ExceptionTriggerKind(string value) => new ExceptionTriggerKind(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ExceptionTriggerKind other && Equals(other); + /// + public bool Equals(ExceptionTriggerKind other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExpressionRouterRule.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExpressionRouterRule.Serialization.cs index f48caf3880e64..5be9960bf8e0f 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExpressionRouterRule.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExpressionRouterRule.Serialization.cs @@ -21,7 +21,7 @@ internal static ExpressionRouterRule DeserializeExpressionRouterRule(JsonElement } Optional language = default; string expression = default; - string kind = default; + RouterRuleKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("language"u8)) @@ -36,7 +36,7 @@ internal static ExpressionRouterRule DeserializeExpressionRouterRule(JsonElement } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new RouterRuleKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExpressionRouterRule.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExpressionRouterRule.cs index acc681cddfea2..39850d80a0d7d 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExpressionRouterRule.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExpressionRouterRule.cs @@ -17,7 +17,7 @@ public partial class ExpressionRouterRule : RouterRule /// The type discriminator describing a sub-type of RouterRule. /// The expression language to compile to and execute. /// The string containing the expression to evaluate. Should contain return statement with calculated values. - internal ExpressionRouterRule(string kind, string language, string expression) : base(kind) + internal ExpressionRouterRule(RouterRuleKind kind, string language, string expression) : base(kind) { Language = language; Expression = expression; diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/FunctionRouterRule.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/FunctionRouterRule.Serialization.cs index a74af384a51b3..3b2899025cc9a 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/FunctionRouterRule.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/FunctionRouterRule.Serialization.cs @@ -22,7 +22,7 @@ internal static FunctionRouterRule DeserializeFunctionRouterRule(JsonElement ele } Uri functionUri = default; Optional credential = default; - string kind = default; + RouterRuleKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("functionUri"u8)) @@ -41,7 +41,7 @@ internal static FunctionRouterRule DeserializeFunctionRouterRule(JsonElement ele } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new RouterRuleKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/FunctionRouterRule.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/FunctionRouterRule.cs index 4b919a00a7007..be7ec8a6a01ca 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/FunctionRouterRule.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/FunctionRouterRule.cs @@ -17,7 +17,7 @@ public partial class FunctionRouterRule : RouterRule /// The type discriminator describing a sub-type of RouterRule. /// URL for Azure Function. /// Credentials used to access Azure function rule. - internal FunctionRouterRule(string kind, Uri functionUri, FunctionRouterRuleCredential credential) : base(kind) + internal FunctionRouterRule(RouterRuleKind kind, Uri functionUri, FunctionRouterRuleCredential credential) : base(kind) { FunctionUri = functionUri; Credential = credential; diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobMatchingMode.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobMatchingMode.Serialization.cs index 85e5c08254e08..cbce78b6ce2ac 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobMatchingMode.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobMatchingMode.Serialization.cs @@ -22,8 +22,8 @@ internal static JobMatchingMode DeserializeJobMatchingMode(JsonElement element) { switch (discriminator.GetString()) { - case "schedule-and-suspend": return ScheduleAndSuspendMode.DeserializeScheduleAndSuspendMode(element); - case "queue-and-match": return QueueAndMatchMode.DeserializeQueueAndMatchMode(element); + case "scheduleAndSuspend": return ScheduleAndSuspendMode.DeserializeScheduleAndSuspendMode(element); + case "queueAndMatch": return QueueAndMatchMode.DeserializeQueueAndMatchMode(element); case "suspend": return SuspendMode.DeserializeSuspendMode(element); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobMatchingMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobMatchingMode.cs index e29a99f4c3aec..f91e9928be6b2 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobMatchingMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobMatchingMode.cs @@ -24,7 +24,7 @@ protected JobMatchingMode() /// Initializes a new instance of JobMatchingMode. /// The type discriminator describing a sub-type of JobMatchingMode. - internal JobMatchingMode(string kind) + internal JobMatchingMode(JobMatchingModeKind kind) { Kind = kind; } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobMatchingModeKind.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobMatchingModeKind.cs new file mode 100644 index 0000000000000..3a0465159123e --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobMatchingModeKind.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Communication.JobRouter +{ + /// Supported matching mode types. + public readonly partial struct JobMatchingModeKind : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public JobMatchingModeKind(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string QueueAndMatchValue = "queueAndMatch"; + private const string ScheduleAndSuspendValue = "scheduleAndSuspend"; + private const string SuspendValue = "suspend"; + + /// Discriminator value for QueueAndMatchMode. + public static JobMatchingModeKind QueueAndMatch { get; } = new JobMatchingModeKind(QueueAndMatchValue); + /// Discriminator value for ScheduleAndSuspendMode. + public static JobMatchingModeKind ScheduleAndSuspend { get; } = new JobMatchingModeKind(ScheduleAndSuspendValue); + /// Discriminator value for SuspendMode. + public static JobMatchingModeKind Suspend { get; } = new JobMatchingModeKind(SuspendValue); + /// Determines if two values are the same. + public static bool operator ==(JobMatchingModeKind left, JobMatchingModeKind right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(JobMatchingModeKind left, JobMatchingModeKind right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator JobMatchingModeKind(string value) => new JobMatchingModeKind(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is JobMatchingModeKind other && Equals(other); + /// + public bool Equals(JobMatchingModeKind other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterAdministrationClient.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterAdministrationClient.cs index 1416c54fd08ae..c104cefbc634b 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterAdministrationClient.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterAdministrationClient.cs @@ -1056,7 +1056,7 @@ public virtual Response DeleteQueue(string queueId, RequestContext context = nul /// Retrieves existing distribution policies. /// Number of objects to return per page. /// The cancellation token to use. - public virtual AsyncPageable GetDistributionPoliciesAsync(int? maxpagesize = null, CancellationToken cancellationToken = default) + internal virtual AsyncPageable GetDistributionPoliciesAsync(int? maxpagesize = null, CancellationToken cancellationToken = default) { RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDistributionPoliciesRequest(maxpagesize, context); @@ -1067,7 +1067,7 @@ public virtual AsyncPageable GetDistributionPoliciesAsync(in /// Retrieves existing distribution policies. /// Number of objects to return per page. /// The cancellation token to use. - public virtual Pageable GetDistributionPolicies(int? maxpagesize = null, CancellationToken cancellationToken = default) + internal virtual Pageable GetDistributionPolicies(int? maxpagesize = null, CancellationToken cancellationToken = default) { RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDistributionPoliciesRequest(maxpagesize, context); @@ -1094,7 +1094,7 @@ public virtual Pageable GetDistributionPolicies(int? maxpage /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. - public virtual AsyncPageable GetDistributionPoliciesAsync(int? maxpagesize, RequestContext context) + internal virtual AsyncPageable GetDistributionPoliciesAsync(int? maxpagesize, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDistributionPoliciesRequest(maxpagesize, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDistributionPoliciesNextPageRequest(nextLink, maxpagesize, context); @@ -1120,7 +1120,7 @@ public virtual AsyncPageable GetDistributionPoliciesAsync(int? maxpa /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. - public virtual Pageable GetDistributionPolicies(int? maxpagesize, RequestContext context) + internal virtual Pageable GetDistributionPolicies(int? maxpagesize, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetDistributionPoliciesRequest(maxpagesize, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetDistributionPoliciesNextPageRequest(nextLink, maxpagesize, context); @@ -1130,7 +1130,7 @@ public virtual Pageable GetDistributionPolicies(int? maxpagesize, Re /// Retrieves existing classification policies. /// Number of objects to return per page. /// The cancellation token to use. - public virtual AsyncPageable GetClassificationPoliciesAsync(int? maxpagesize = null, CancellationToken cancellationToken = default) + internal virtual AsyncPageable GetClassificationPoliciesAsync(int? maxpagesize = null, CancellationToken cancellationToken = default) { RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetClassificationPoliciesRequest(maxpagesize, context); @@ -1141,7 +1141,7 @@ public virtual AsyncPageable GetClassificationPoliciesAsyn /// Retrieves existing classification policies. /// Number of objects to return per page. /// The cancellation token to use. - public virtual Pageable GetClassificationPolicies(int? maxpagesize = null, CancellationToken cancellationToken = default) + internal virtual Pageable GetClassificationPolicies(int? maxpagesize = null, CancellationToken cancellationToken = default) { RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetClassificationPoliciesRequest(maxpagesize, context); @@ -1168,7 +1168,7 @@ public virtual Pageable GetClassificationPolicies(int? max /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. - public virtual AsyncPageable GetClassificationPoliciesAsync(int? maxpagesize, RequestContext context) + internal virtual AsyncPageable GetClassificationPoliciesAsync(int? maxpagesize, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetClassificationPoliciesRequest(maxpagesize, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetClassificationPoliciesNextPageRequest(nextLink, maxpagesize, context); @@ -1194,7 +1194,7 @@ public virtual AsyncPageable GetClassificationPoliciesAsync(int? max /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. - public virtual Pageable GetClassificationPolicies(int? maxpagesize, RequestContext context) + internal virtual Pageable GetClassificationPolicies(int? maxpagesize, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetClassificationPoliciesRequest(maxpagesize, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetClassificationPoliciesNextPageRequest(nextLink, maxpagesize, context); @@ -1204,7 +1204,7 @@ public virtual Pageable GetClassificationPolicies(int? maxpagesize, /// Retrieves existing exception policies. /// Number of objects to return per page. /// The cancellation token to use. - public virtual AsyncPageable GetExceptionPoliciesAsync(int? maxpagesize = null, CancellationToken cancellationToken = default) + internal virtual AsyncPageable GetExceptionPoliciesAsync(int? maxpagesize = null, CancellationToken cancellationToken = default) { RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetExceptionPoliciesRequest(maxpagesize, context); @@ -1215,7 +1215,7 @@ public virtual AsyncPageable GetExceptionPoliciesAsync(int? max /// Retrieves existing exception policies. /// Number of objects to return per page. /// The cancellation token to use. - public virtual Pageable GetExceptionPolicies(int? maxpagesize = null, CancellationToken cancellationToken = default) + internal virtual Pageable GetExceptionPolicies(int? maxpagesize = null, CancellationToken cancellationToken = default) { RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetExceptionPoliciesRequest(maxpagesize, context); @@ -1242,7 +1242,7 @@ public virtual Pageable GetExceptionPolicies(int? maxpagesize = /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. - public virtual AsyncPageable GetExceptionPoliciesAsync(int? maxpagesize, RequestContext context) + internal virtual AsyncPageable GetExceptionPoliciesAsync(int? maxpagesize, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetExceptionPoliciesRequest(maxpagesize, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetExceptionPoliciesNextPageRequest(nextLink, maxpagesize, context); @@ -1268,7 +1268,7 @@ public virtual AsyncPageable GetExceptionPoliciesAsync(int? maxpages /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. - public virtual Pageable GetExceptionPolicies(int? maxpagesize, RequestContext context) + internal virtual Pageable GetExceptionPolicies(int? maxpagesize, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetExceptionPoliciesRequest(maxpagesize, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetExceptionPoliciesNextPageRequest(nextLink, maxpagesize, context); @@ -1278,7 +1278,7 @@ public virtual Pageable GetExceptionPolicies(int? maxpagesize, Reque /// Retrieves existing queues. /// Number of objects to return per page. /// The cancellation token to use. - public virtual AsyncPageable GetQueuesAsync(int? maxpagesize = null, CancellationToken cancellationToken = default) + internal virtual AsyncPageable GetQueuesAsync(int? maxpagesize = null, CancellationToken cancellationToken = default) { RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetQueuesRequest(maxpagesize, context); @@ -1289,7 +1289,7 @@ public virtual AsyncPageable GetQueuesAsync(int? maxpagesize = null /// Retrieves existing queues. /// Number of objects to return per page. /// The cancellation token to use. - public virtual Pageable GetQueues(int? maxpagesize = null, CancellationToken cancellationToken = default) + internal virtual Pageable GetQueues(int? maxpagesize = null, CancellationToken cancellationToken = default) { RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetQueuesRequest(maxpagesize, context); @@ -1316,7 +1316,7 @@ public virtual Pageable GetQueues(int? maxpagesize = null, Cancella /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. - public virtual AsyncPageable GetQueuesAsync(int? maxpagesize, RequestContext context) + internal virtual AsyncPageable GetQueuesAsync(int? maxpagesize, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetQueuesRequest(maxpagesize, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetQueuesNextPageRequest(nextLink, maxpagesize, context); @@ -1342,7 +1342,7 @@ public virtual AsyncPageable GetQueuesAsync(int? maxpagesize, Reques /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. - public virtual Pageable GetQueues(int? maxpagesize, RequestContext context) + internal virtual Pageable GetQueues(int? maxpagesize, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetQueuesRequest(maxpagesize, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetQueuesNextPageRequest(nextLink, maxpagesize, context); diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterClient.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterClient.cs index 7ff875e7cd8f6..8007157e938d9 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterClient.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterClient.cs @@ -1580,7 +1580,7 @@ public virtual Response DeleteWorker(string workerId, RequestContext context = n /// If specified, filter on jobs that was scheduled before or at given timestamp. Range: (-Inf, scheduledBefore]. /// If specified, filter on jobs that was scheduled at or after given value. Range: [scheduledAfter, +Inf). /// The cancellation token to use. - public virtual AsyncPageable GetJobsAsync(int? maxpagesize = null, RouterJobStatusSelector? status = null, string queueId = null, string channelId = null, string classificationPolicyId = null, DateTimeOffset? scheduledBefore = null, DateTimeOffset? scheduledAfter = null, CancellationToken cancellationToken = default) + internal virtual AsyncPageable GetJobsAsync(int? maxpagesize = null, RouterJobStatusSelector? status = null, string queueId = null, string channelId = null, string classificationPolicyId = null, DateTimeOffset? scheduledBefore = null, DateTimeOffset? scheduledAfter = null, CancellationToken cancellationToken = default) { RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetJobsRequest(maxpagesize, status?.ToString(), queueId, channelId, classificationPolicyId, scheduledBefore, scheduledAfter, context); @@ -1597,7 +1597,7 @@ public virtual AsyncPageable GetJobsAsync(int? maxpagesize = null, Ro /// If specified, filter on jobs that was scheduled before or at given timestamp. Range: (-Inf, scheduledBefore]. /// If specified, filter on jobs that was scheduled at or after given value. Range: [scheduledAfter, +Inf). /// The cancellation token to use. - public virtual Pageable GetJobs(int? maxpagesize = null, RouterJobStatusSelector? status = null, string queueId = null, string channelId = null, string classificationPolicyId = null, DateTimeOffset? scheduledBefore = null, DateTimeOffset? scheduledAfter = null, CancellationToken cancellationToken = default) + internal virtual Pageable GetJobs(int? maxpagesize = null, RouterJobStatusSelector? status = null, string queueId = null, string channelId = null, string classificationPolicyId = null, DateTimeOffset? scheduledBefore = null, DateTimeOffset? scheduledAfter = null, CancellationToken cancellationToken = default) { RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetJobsRequest(maxpagesize, status?.ToString(), queueId, channelId, classificationPolicyId, scheduledBefore, scheduledAfter, context); @@ -1630,7 +1630,7 @@ public virtual Pageable GetJobs(int? maxpagesize = null, RouterJobSta /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. - public virtual AsyncPageable GetJobsAsync(int? maxpagesize, string status, string queueId, string channelId, string classificationPolicyId, DateTimeOffset? scheduledBefore, DateTimeOffset? scheduledAfter, RequestContext context) + internal virtual AsyncPageable GetJobsAsync(int? maxpagesize, string status, string queueId, string channelId, string classificationPolicyId, DateTimeOffset? scheduledBefore, DateTimeOffset? scheduledAfter, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetJobsRequest(maxpagesize, status, queueId, channelId, classificationPolicyId, scheduledBefore, scheduledAfter, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetJobsNextPageRequest(nextLink, maxpagesize, status, queueId, channelId, classificationPolicyId, scheduledBefore, scheduledAfter, context); @@ -1662,7 +1662,7 @@ public virtual AsyncPageable GetJobsAsync(int? maxpagesize, string s /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. - public virtual Pageable GetJobs(int? maxpagesize, string status, string queueId, string channelId, string classificationPolicyId, DateTimeOffset? scheduledBefore, DateTimeOffset? scheduledAfter, RequestContext context) + internal virtual Pageable GetJobs(int? maxpagesize, string status, string queueId, string channelId, string classificationPolicyId, DateTimeOffset? scheduledBefore, DateTimeOffset? scheduledAfter, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetJobsRequest(maxpagesize, status, queueId, channelId, classificationPolicyId, scheduledBefore, scheduledAfter, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetJobsNextPageRequest(nextLink, maxpagesize, status, queueId, channelId, classificationPolicyId, scheduledBefore, scheduledAfter, context); @@ -1676,7 +1676,7 @@ public virtual Pageable GetJobs(int? maxpagesize, string status, str /// If specified, select workers who are assigned to this queue. /// If set to true, select only workers who have capacity for the channel specified by `channelId` or for any channel if `channelId` not specified. If set to false, then will return all workers including workers without any capacity for jobs. Defaults to false. /// The cancellation token to use. - public virtual AsyncPageable GetWorkersAsync(int? maxpagesize = null, RouterWorkerStateSelector? state = null, string channelId = null, string queueId = null, bool? hasCapacity = null, CancellationToken cancellationToken = default) + internal virtual AsyncPageable GetWorkersAsync(int? maxpagesize = null, RouterWorkerStateSelector? state = null, string channelId = null, string queueId = null, bool? hasCapacity = null, CancellationToken cancellationToken = default) { RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetWorkersRequest(maxpagesize, state?.ToString(), channelId, queueId, hasCapacity, context); @@ -1691,7 +1691,7 @@ public virtual AsyncPageable GetWorkersAsync(int? maxpagesize = nu /// If specified, select workers who are assigned to this queue. /// If set to true, select only workers who have capacity for the channel specified by `channelId` or for any channel if `channelId` not specified. If set to false, then will return all workers including workers without any capacity for jobs. Defaults to false. /// The cancellation token to use. - public virtual Pageable GetWorkers(int? maxpagesize = null, RouterWorkerStateSelector? state = null, string channelId = null, string queueId = null, bool? hasCapacity = null, CancellationToken cancellationToken = default) + internal virtual Pageable GetWorkers(int? maxpagesize = null, RouterWorkerStateSelector? state = null, string channelId = null, string queueId = null, bool? hasCapacity = null, CancellationToken cancellationToken = default) { RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetWorkersRequest(maxpagesize, state?.ToString(), channelId, queueId, hasCapacity, context); @@ -1722,7 +1722,7 @@ public virtual Pageable GetWorkers(int? maxpagesize = null, Router /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. - public virtual AsyncPageable GetWorkersAsync(int? maxpagesize, string state, string channelId, string queueId, bool? hasCapacity, RequestContext context) + internal virtual AsyncPageable GetWorkersAsync(int? maxpagesize, string state, string channelId, string queueId, bool? hasCapacity, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetWorkersRequest(maxpagesize, state, channelId, queueId, hasCapacity, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetWorkersNextPageRequest(nextLink, maxpagesize, state, channelId, queueId, hasCapacity, context); @@ -1752,7 +1752,7 @@ public virtual AsyncPageable GetWorkersAsync(int? maxpagesize, strin /// The request context, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The from the service containing a list of objects. Details of the body schema for each item in the collection are in the Remarks section below. - public virtual Pageable GetWorkers(int? maxpagesize, string state, string channelId, string queueId, bool? hasCapacity, RequestContext context) + internal virtual Pageable GetWorkers(int? maxpagesize, string state, string channelId, string queueId, bool? hasCapacity, RequestContext context) { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetWorkersRequest(maxpagesize, state, channelId, queueId, hasCapacity, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetWorkersNextPageRequest(nextLink, maxpagesize, state, channelId, queueId, hasCapacity, context); diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterModelFactory.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterModelFactory.cs index 606b46048ed6a..4006021a67eb6 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterModelFactory.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterModelFactory.cs @@ -20,7 +20,7 @@ public static partial class JobRouterModelFactory /// A new instance for mocking. public static ExpressionRouterRule ExpressionRouterRule(string language = null, string expression = null) { - return new ExpressionRouterRule("expression-rule", language, expression); + return new ExpressionRouterRule(RouterRuleKind.Expression, language, expression); } /// Initializes a new instance of FunctionRouterRule. @@ -29,7 +29,7 @@ public static ExpressionRouterRule ExpressionRouterRule(string language = null, /// A new instance for mocking. public static FunctionRouterRule FunctionRouterRule(Uri functionUri = null, FunctionRouterRuleCredential credential = null) { - return new FunctionRouterRule("azure-function-rule", functionUri, credential); + return new FunctionRouterRule(RouterRuleKind.Function, functionUri, credential); } /// Initializes a new instance of WebhookRouterRule. @@ -39,7 +39,7 @@ public static FunctionRouterRule FunctionRouterRule(Uri functionUri = null, Func /// A new instance for mocking. public static WebhookRouterRule WebhookRouterRule(Uri authorizationServerUri = null, OAuth2WebhookClientCredential clientCredential = null, Uri webhookUri = null) { - return new WebhookRouterRule("webhook-rule", authorizationServerUri, clientCredential, webhookUri); + return new WebhookRouterRule(RouterRuleKind.Webhook, authorizationServerUri, clientCredential, webhookUri); } /// Initializes a new instance of ConditionalQueueSelectorAttachment. @@ -50,7 +50,7 @@ public static ConditionalQueueSelectorAttachment ConditionalQueueSelectorAttachm { queueSelectors ??= new List(); - return new ConditionalQueueSelectorAttachment("conditional", condition, queueSelectors?.ToList()); + return new ConditionalQueueSelectorAttachment(QueueSelectorAttachmentKind.Conditional, condition, queueSelectors?.ToList()); } /// Initializes a new instance of PassThroughQueueSelectorAttachment. @@ -59,7 +59,7 @@ public static ConditionalQueueSelectorAttachment ConditionalQueueSelectorAttachm /// A new instance for mocking. public static PassThroughQueueSelectorAttachment PassThroughQueueSelectorAttachment(string key = null, LabelOperator labelOperator = default) { - return new PassThroughQueueSelectorAttachment("pass-through", key, labelOperator); + return new PassThroughQueueSelectorAttachment(QueueSelectorAttachmentKind.PassThrough, key, labelOperator); } /// Initializes a new instance of RuleEngineQueueSelectorAttachment. @@ -67,7 +67,7 @@ public static PassThroughQueueSelectorAttachment PassThroughQueueSelectorAttachm /// A new instance for mocking. public static RuleEngineQueueSelectorAttachment RuleEngineQueueSelectorAttachment(RouterRule rule = null) { - return new RuleEngineQueueSelectorAttachment("rule-engine", rule); + return new RuleEngineQueueSelectorAttachment(QueueSelectorAttachmentKind.RuleEngine, rule); } /// Initializes a new instance of StaticQueueSelectorAttachment. @@ -75,7 +75,7 @@ public static RuleEngineQueueSelectorAttachment RuleEngineQueueSelectorAttachmen /// A new instance for mocking. public static StaticQueueSelectorAttachment StaticQueueSelectorAttachment(RouterQueueSelector queueSelector = null) { - return new StaticQueueSelectorAttachment("static", queueSelector); + return new StaticQueueSelectorAttachment(QueueSelectorAttachmentKind.Static, queueSelector); } /// Initializes a new instance of WeightedAllocationQueueSelectorAttachment. @@ -85,7 +85,7 @@ public static WeightedAllocationQueueSelectorAttachment WeightedAllocationQueueS { allocations ??= new List(); - return new WeightedAllocationQueueSelectorAttachment("weighted-allocation-queue-selector", allocations?.ToList()); + return new WeightedAllocationQueueSelectorAttachment(QueueSelectorAttachmentKind.WeightedAllocation, allocations?.ToList()); } /// Initializes a new instance of QueueWeightedAllocation. @@ -107,7 +107,7 @@ public static ConditionalWorkerSelectorAttachment ConditionalWorkerSelectorAttac { workerSelectors ??= new List(); - return new ConditionalWorkerSelectorAttachment("conditional", condition, workerSelectors?.ToList()); + return new ConditionalWorkerSelectorAttachment(WorkerSelectorAttachmentKind.Conditional, condition, workerSelectors?.ToList()); } /// Initializes a new instance of RuleEngineWorkerSelectorAttachment. @@ -115,7 +115,7 @@ public static ConditionalWorkerSelectorAttachment ConditionalWorkerSelectorAttac /// A new instance for mocking. public static RuleEngineWorkerSelectorAttachment RuleEngineWorkerSelectorAttachment(RouterRule rule = null) { - return new RuleEngineWorkerSelectorAttachment("rule-engine", rule); + return new RuleEngineWorkerSelectorAttachment(WorkerSelectorAttachmentKind.RuleEngine, rule); } /// Initializes a new instance of StaticWorkerSelectorAttachment. @@ -123,7 +123,7 @@ public static RuleEngineWorkerSelectorAttachment RuleEngineWorkerSelectorAttachm /// A new instance for mocking. public static StaticWorkerSelectorAttachment StaticWorkerSelectorAttachment(RouterWorkerSelector workerSelector = null) { - return new StaticWorkerSelectorAttachment("static", workerSelector); + return new StaticWorkerSelectorAttachment(WorkerSelectorAttachmentKind.Static, workerSelector); } /// Initializes a new instance of WeightedAllocationWorkerSelectorAttachment. @@ -133,7 +133,7 @@ public static WeightedAllocationWorkerSelectorAttachment WeightedAllocationWorke { allocations ??= new List(); - return new WeightedAllocationWorkerSelectorAttachment("weighted-allocation-worker-selector", allocations?.ToList()); + return new WeightedAllocationWorkerSelectorAttachment(WorkerSelectorAttachmentKind.WeightedAllocation, allocations?.ToList()); } /// Initializes a new instance of WorkerWeightedAllocation. @@ -164,14 +164,14 @@ public static ExceptionRule ExceptionRule(string id = null, ExceptionTrigger tri /// A new instance for mocking. public static QueueLengthExceptionTrigger QueueLengthExceptionTrigger(int threshold = default) { - return new QueueLengthExceptionTrigger("queue-length", threshold); + return new QueueLengthExceptionTrigger(ExceptionTriggerKind.QueueLength, threshold); } /// Initializes a new instance of ExceptionAction. /// Unique Id of the exception action. /// The type discriminator describing a sub-type of ExceptionAction. /// A new instance for mocking. - public static ExceptionAction ExceptionAction(string id = null, string kind = null) + public static ExceptionAction ExceptionAction(string id = null, string kind = "Unknown") { return new UnknownExceptionAction(id, kind); } @@ -183,7 +183,7 @@ public static ExceptionAction ExceptionAction(string id = null, string kind = nu /// A new instance for mocking. public static CancelExceptionAction CancelExceptionAction(string id = null, string note = null, string dispositionCode = null) { - return new CancelExceptionAction(id, "cancel", note, dispositionCode); + return new CancelExceptionAction(id, ExceptionActionKind.Cancel, note, dispositionCode); } /// Initializes a new instance of ManualReclassifyExceptionAction. @@ -196,7 +196,7 @@ public static ManualReclassifyExceptionAction ManualReclassifyExceptionAction(st { workerSelectors ??= new List(); - return new ManualReclassifyExceptionAction(id, "manual-reclassify", queueId, priority, workerSelectors?.ToList()); + return new ManualReclassifyExceptionAction(id, ExceptionActionKind.ManualReclassify, queueId, priority, workerSelectors?.ToList()); } /// Initializes a new instance of RouterJobAssignment. @@ -225,7 +225,7 @@ public static RouterJobNote RouterJobNote(string message = null, DateTimeOffset? /// A new instance for mocking. public static ScheduleAndSuspendMode ScheduleAndSuspendMode(DateTimeOffset scheduleAt = default) { - return new ScheduleAndSuspendMode("schedule-and-suspend", scheduleAt); + return new ScheduleAndSuspendMode(JobMatchingModeKind.ScheduleAndSuspend, scheduleAt); } /// Initializes a new instance of UnassignJobResult. diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/LongestIdleMode.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/LongestIdleMode.Serialization.cs index 239f392212812..2d9c9f2b45b94 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/LongestIdleMode.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/LongestIdleMode.Serialization.cs @@ -22,7 +22,7 @@ internal static LongestIdleMode DeserializeLongestIdleMode(JsonElement element) Optional minConcurrentOffers = default; Optional maxConcurrentOffers = default; Optional bypassSelectors = default; - string kind = default; + DistributionModeKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("minConcurrentOffers"u8)) @@ -54,7 +54,7 @@ internal static LongestIdleMode DeserializeLongestIdleMode(JsonElement element) } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new DistributionModeKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/LongestIdleMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/LongestIdleMode.cs index 67ce1d5c1fefa..1b3a6e4eac65e 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/LongestIdleMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/LongestIdleMode.cs @@ -15,7 +15,7 @@ public partial class LongestIdleMode : DistributionMode /// Governs the maximum number of active concurrent offers a job can have. /// If set to true, then router will match workers to jobs even if they don't match label selectors. Warning: You may get workers that are not qualified for the job they are matched with if you set this variable to true. This flag is intended more for temporary usage. By default, set to false. /// The type discriminator describing a sub-type of DistributionMode. - internal LongestIdleMode(int minConcurrentOffers, int maxConcurrentOffers, bool? bypassSelectors, string kind) : base(minConcurrentOffers, maxConcurrentOffers, bypassSelectors, kind) + internal LongestIdleMode(int minConcurrentOffers, int maxConcurrentOffers, bool? bypassSelectors, DistributionModeKind kind) : base(minConcurrentOffers, maxConcurrentOffers, bypassSelectors, kind) { } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ManualReclassifyExceptionAction.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ManualReclassifyExceptionAction.Serialization.cs index 224808f2c231c..4f7831c545f86 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ManualReclassifyExceptionAction.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ManualReclassifyExceptionAction.Serialization.cs @@ -24,7 +24,7 @@ internal static ManualReclassifyExceptionAction DeserializeManualReclassifyExcep Optional priority = default; Optional> workerSelectors = default; Optional id = default; - string kind = default; + ExceptionActionKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("queueId"u8)) @@ -62,7 +62,7 @@ internal static ManualReclassifyExceptionAction DeserializeManualReclassifyExcep } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new ExceptionActionKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ManualReclassifyExceptionAction.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ManualReclassifyExceptionAction.cs index 9eda493261bbd..4a658dc3ffc1c 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ManualReclassifyExceptionAction.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ManualReclassifyExceptionAction.cs @@ -19,7 +19,7 @@ public partial class ManualReclassifyExceptionAction : ExceptionAction /// Updated QueueId. /// Updated Priority. /// Updated WorkerSelectors. - internal ManualReclassifyExceptionAction(string id, string kind, string queueId, int? priority, IList workerSelectors) : base(id, kind) + internal ManualReclassifyExceptionAction(string id, ExceptionActionKind kind, string queueId, int? priority, IList workerSelectors) : base(id, kind) { QueueId = queueId; Priority = priority; diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/PassThroughQueueSelectorAttachment.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/PassThroughQueueSelectorAttachment.Serialization.cs index 04294a9e52c37..fc00ce85796a2 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/PassThroughQueueSelectorAttachment.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/PassThroughQueueSelectorAttachment.Serialization.cs @@ -20,7 +20,7 @@ internal static PassThroughQueueSelectorAttachment DeserializePassThroughQueueSe } string key = default; LabelOperator labelOperator = default; - string kind = default; + QueueSelectorAttachmentKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("key"u8)) @@ -35,7 +35,7 @@ internal static PassThroughQueueSelectorAttachment DeserializePassThroughQueueSe } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new QueueSelectorAttachmentKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/PassThroughQueueSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/PassThroughQueueSelectorAttachment.cs index 5af19ee565eb7..db278469c38b0 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/PassThroughQueueSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/PassThroughQueueSelectorAttachment.cs @@ -17,7 +17,7 @@ public partial class PassThroughQueueSelectorAttachment : QueueSelectorAttachmen /// The type discriminator describing a sub-type of QueueSelectorAttachment. /// The label key to query against. /// Describes how the value of the label is compared to the value pass through. - internal PassThroughQueueSelectorAttachment(string kind, string key, LabelOperator labelOperator) : base(kind) + internal PassThroughQueueSelectorAttachment(QueueSelectorAttachmentKind kind, string key, LabelOperator labelOperator) : base(kind) { Key = key; LabelOperator = labelOperator; diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/PassThroughWorkerSelectorAttachment.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/PassThroughWorkerSelectorAttachment.Serialization.cs index cdf94f115c0a4..5ee04507bb335 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/PassThroughWorkerSelectorAttachment.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/PassThroughWorkerSelectorAttachment.Serialization.cs @@ -22,7 +22,7 @@ internal static PassThroughWorkerSelectorAttachment DeserializePassThroughWorker string key = default; LabelOperator labelOperator = default; Optional expiresAfterSeconds = default; - string kind = default; + WorkerSelectorAttachmentKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("key"u8)) @@ -46,7 +46,7 @@ internal static PassThroughWorkerSelectorAttachment DeserializePassThroughWorker } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new WorkerSelectorAttachmentKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/PassThroughWorkerSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/PassThroughWorkerSelectorAttachment.cs index 2c8391e97d67a..e0dba72165203 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/PassThroughWorkerSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/PassThroughWorkerSelectorAttachment.cs @@ -21,7 +21,7 @@ internal PassThroughWorkerSelectorAttachment(string key, LabelOperator labelOper { Argument.AssertNotNull(key, nameof(key)); - Kind = "pass-through"; + Kind = WorkerSelectorAttachmentKind.PassThrough; Key = key; LabelOperator = labelOperator; } @@ -31,7 +31,7 @@ internal PassThroughWorkerSelectorAttachment(string key, LabelOperator labelOper /// The label key to query against. /// Describes how the value of the label is compared to the value pass through. /// Describes how long the attached label selector is valid in seconds. - internal PassThroughWorkerSelectorAttachment(string kind, string key, LabelOperator labelOperator, double? expiresAfterSeconds) : base(kind) + internal PassThroughWorkerSelectorAttachment(WorkerSelectorAttachmentKind kind, string key, LabelOperator labelOperator, double? expiresAfterSeconds) : base(kind) { Key = key; LabelOperator = labelOperator; diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueAndMatchMode.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueAndMatchMode.Serialization.cs index f94edffd90f8d..479a88339abc3 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueAndMatchMode.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueAndMatchMode.Serialization.cs @@ -18,12 +18,12 @@ internal static QueueAndMatchMode DeserializeQueueAndMatchMode(JsonElement eleme { return null; } - string kind = default; + JobMatchingModeKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new JobMatchingModeKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueAndMatchMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueAndMatchMode.cs index 0f813a6306c34..4190c87fa01fb 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueAndMatchMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueAndMatchMode.cs @@ -12,7 +12,7 @@ public partial class QueueAndMatchMode : JobMatchingMode { /// Initializes a new instance of QueueAndMatchMode. /// The type discriminator describing a sub-type of JobMatchingMode. - internal QueueAndMatchMode(string kind) : base(kind) + internal QueueAndMatchMode(JobMatchingModeKind kind) : base(kind) { } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueLengthExceptionTrigger.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueLengthExceptionTrigger.Serialization.cs index f0e8bb16bede7..13128f1a80fb0 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueLengthExceptionTrigger.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueLengthExceptionTrigger.Serialization.cs @@ -19,7 +19,7 @@ internal static QueueLengthExceptionTrigger DeserializeQueueLengthExceptionTrigg return null; } int threshold = default; - string kind = default; + ExceptionTriggerKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("threshold"u8)) @@ -29,7 +29,7 @@ internal static QueueLengthExceptionTrigger DeserializeQueueLengthExceptionTrigg } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new ExceptionTriggerKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueLengthExceptionTrigger.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueLengthExceptionTrigger.cs index 0001f46af2b53..97609b749cbd8 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueLengthExceptionTrigger.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueLengthExceptionTrigger.cs @@ -13,7 +13,7 @@ public partial class QueueLengthExceptionTrigger : ExceptionTrigger /// Initializes a new instance of QueueLengthExceptionTrigger. /// The type discriminator describing a sub-type of ExceptionTrigger. /// Threshold of number of jobs ahead in the queue to for this trigger to fire. - internal QueueLengthExceptionTrigger(string kind, int threshold) : base(kind) + internal QueueLengthExceptionTrigger(ExceptionTriggerKind kind, int threshold) : base(kind) { Threshold = threshold; } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueSelectorAttachment.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueSelectorAttachment.Serialization.cs index 51a3f0767034c..bfbea38cd527b 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueSelectorAttachment.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueSelectorAttachment.Serialization.cs @@ -23,10 +23,10 @@ internal static QueueSelectorAttachment DeserializeQueueSelectorAttachment(JsonE switch (discriminator.GetString()) { case "conditional": return ConditionalQueueSelectorAttachment.DeserializeConditionalQueueSelectorAttachment(element); - case "pass-through": return PassThroughQueueSelectorAttachment.DeserializePassThroughQueueSelectorAttachment(element); - case "rule-engine": return RuleEngineQueueSelectorAttachment.DeserializeRuleEngineQueueSelectorAttachment(element); + case "passThrough": return PassThroughQueueSelectorAttachment.DeserializePassThroughQueueSelectorAttachment(element); + case "ruleEngine": return RuleEngineQueueSelectorAttachment.DeserializeRuleEngineQueueSelectorAttachment(element); case "static": return StaticQueueSelectorAttachment.DeserializeStaticQueueSelectorAttachment(element); - case "weighted-allocation-queue-selector": return WeightedAllocationQueueSelectorAttachment.DeserializeWeightedAllocationQueueSelectorAttachment(element); + case "weightedAllocation": return WeightedAllocationQueueSelectorAttachment.DeserializeWeightedAllocationQueueSelectorAttachment(element); } } return UnknownQueueSelectorAttachment.DeserializeUnknownQueueSelectorAttachment(element); diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueSelectorAttachment.cs index c0a9ae946d191..2a9c8b3102ebf 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueSelectorAttachment.cs @@ -21,7 +21,7 @@ protected QueueSelectorAttachment() /// Initializes a new instance of QueueSelectorAttachment. /// The type discriminator describing a sub-type of QueueSelectorAttachment. - internal QueueSelectorAttachment(string kind) + internal QueueSelectorAttachment(QueueSelectorAttachmentKind kind) { Kind = kind; } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueSelectorAttachmentKind.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueSelectorAttachmentKind.cs new file mode 100644 index 0000000000000..661fd70b22537 --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/QueueSelectorAttachmentKind.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Communication.JobRouter +{ + /// Supported queue selector attachment types. + public readonly partial struct QueueSelectorAttachmentKind : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public QueueSelectorAttachmentKind(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ConditionalValue = "conditional"; + private const string PassThroughValue = "passThrough"; + private const string RuleEngineValue = "ruleEngine"; + private const string StaticValue = "static"; + private const string WeightedAllocationValue = "weightedAllocation"; + + /// Discriminator value for ConditionalQueueSelectorAttachment. + public static QueueSelectorAttachmentKind Conditional { get; } = new QueueSelectorAttachmentKind(ConditionalValue); + /// Discriminator value for PassThroughQueueSelectorAttachment. + public static QueueSelectorAttachmentKind PassThrough { get; } = new QueueSelectorAttachmentKind(PassThroughValue); + /// Discriminator value for RuleEngineQueueSelectorAttachment. + public static QueueSelectorAttachmentKind RuleEngine { get; } = new QueueSelectorAttachmentKind(RuleEngineValue); + /// Discriminator value for StaticQueueSelectorAttachment. + public static QueueSelectorAttachmentKind Static { get; } = new QueueSelectorAttachmentKind(StaticValue); + /// Discriminator value for WeightedAllocationQueueSelectorAttachment. + public static QueueSelectorAttachmentKind WeightedAllocation { get; } = new QueueSelectorAttachmentKind(WeightedAllocationValue); + /// Determines if two values are the same. + public static bool operator ==(QueueSelectorAttachmentKind left, QueueSelectorAttachmentKind right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(QueueSelectorAttachmentKind left, QueueSelectorAttachmentKind right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator QueueSelectorAttachmentKind(string value) => new QueueSelectorAttachmentKind(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is QueueSelectorAttachmentKind other && Equals(other); + /// + public bool Equals(QueueSelectorAttachmentKind other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ReclassifyExceptionAction.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ReclassifyExceptionAction.Serialization.cs index be8afc91d74c4..2b0d114f90465 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ReclassifyExceptionAction.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ReclassifyExceptionAction.Serialization.cs @@ -24,7 +24,7 @@ internal static ReclassifyExceptionAction DeserializeReclassifyExceptionAction(J Optional classificationPolicyId = default; Optional> labelsToUpsert = default; Optional id = default; - string kind = default; + ExceptionActionKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("classificationPolicyId"u8)) @@ -60,7 +60,7 @@ internal static ReclassifyExceptionAction DeserializeReclassifyExceptionAction(J } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new ExceptionActionKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ReclassifyExceptionAction.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ReclassifyExceptionAction.cs index c99fec3143ad1..f9a20a203fca9 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ReclassifyExceptionAction.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ReclassifyExceptionAction.cs @@ -19,7 +19,7 @@ public partial class ReclassifyExceptionAction : ExceptionAction /// The type discriminator describing a sub-type of ExceptionAction. /// The new classification policy that will determine queue, priority and worker selectors. /// Dictionary containing the labels to update (or add if not existing) in key-value pairs. Values must be primitive values - number, string, boolean. - internal ReclassifyExceptionAction(string id, string kind, string classificationPolicyId, IDictionary labelsToUpsert) : base(id, kind) + internal ReclassifyExceptionAction(string id, ExceptionActionKind kind, string classificationPolicyId, IDictionary labelsToUpsert) : base(id, kind) { ClassificationPolicyId = classificationPolicyId; _labelsToUpsert = labelsToUpsert; diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RoundRobinMode.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RoundRobinMode.Serialization.cs index c4743480c8b76..71bef016ffb66 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RoundRobinMode.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RoundRobinMode.Serialization.cs @@ -22,7 +22,7 @@ internal static RoundRobinMode DeserializeRoundRobinMode(JsonElement element) Optional minConcurrentOffers = default; Optional maxConcurrentOffers = default; Optional bypassSelectors = default; - string kind = default; + DistributionModeKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("minConcurrentOffers"u8)) @@ -54,7 +54,7 @@ internal static RoundRobinMode DeserializeRoundRobinMode(JsonElement element) } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new DistributionModeKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RoundRobinMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RoundRobinMode.cs index c8ca08b761a3d..7e901d1eae604 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RoundRobinMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RoundRobinMode.cs @@ -15,7 +15,7 @@ public partial class RoundRobinMode : DistributionMode /// Governs the maximum number of active concurrent offers a job can have. /// If set to true, then router will match workers to jobs even if they don't match label selectors. Warning: You may get workers that are not qualified for the job they are matched with if you set this variable to true. This flag is intended more for temporary usage. By default, set to false. /// The type discriminator describing a sub-type of DistributionMode. - internal RoundRobinMode(int minConcurrentOffers, int maxConcurrentOffers, bool? bypassSelectors, string kind) : base(minConcurrentOffers, maxConcurrentOffers, bypassSelectors, kind) + internal RoundRobinMode(int minConcurrentOffers, int maxConcurrentOffers, bool? bypassSelectors, DistributionModeKind kind) : base(minConcurrentOffers, maxConcurrentOffers, bypassSelectors, kind) { } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RouterRule.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RouterRule.Serialization.cs index c677ae8f27836..742d36284496b 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RouterRule.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RouterRule.Serialization.cs @@ -22,11 +22,11 @@ internal static RouterRule DeserializeRouterRule(JsonElement element) { switch (discriminator.GetString()) { - case "direct-map-rule": return DirectMapRouterRule.DeserializeDirectMapRouterRule(element); - case "expression-rule": return ExpressionRouterRule.DeserializeExpressionRouterRule(element); - case "azure-function-rule": return FunctionRouterRule.DeserializeFunctionRouterRule(element); - case "static-rule": return StaticRouterRule.DeserializeStaticRouterRule(element); - case "webhook-rule": return WebhookRouterRule.DeserializeWebhookRouterRule(element); + case "directMap": return DirectMapRouterRule.DeserializeDirectMapRouterRule(element); + case "expression": return ExpressionRouterRule.DeserializeExpressionRouterRule(element); + case "function": return FunctionRouterRule.DeserializeFunctionRouterRule(element); + case "static": return StaticRouterRule.DeserializeStaticRouterRule(element); + case "webhook": return WebhookRouterRule.DeserializeWebhookRouterRule(element); } } return UnknownRouterRule.DeserializeUnknownRouterRule(element); diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RouterRule.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RouterRule.cs index 4620d7ef45dcf..66f48438ab305 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RouterRule.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RouterRule.cs @@ -26,7 +26,7 @@ protected RouterRule() /// Initializes a new instance of RouterRule. /// The type discriminator describing a sub-type of RouterRule. - internal RouterRule(string kind) + internal RouterRule(RouterRuleKind kind) { Kind = kind; } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RouterRuleKind.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RouterRuleKind.cs new file mode 100644 index 0000000000000..86d52e17249e7 --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RouterRuleKind.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Communication.JobRouter +{ + /// Supported router rule types. + public readonly partial struct RouterRuleKind : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public RouterRuleKind(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DirectMapValue = "directMap"; + private const string ExpressionValue = "expression"; + private const string FunctionValue = "function"; + private const string StaticValue = "static"; + private const string WebhookValue = "webhook"; + + /// Discriminator value for DirectMapRouterRule. + public static RouterRuleKind DirectMap { get; } = new RouterRuleKind(DirectMapValue); + /// Discriminator value for ExpressionRouterRule. + public static RouterRuleKind Expression { get; } = new RouterRuleKind(ExpressionValue); + /// Discriminator value for FunctionRouterRule. + public static RouterRuleKind Function { get; } = new RouterRuleKind(FunctionValue); + /// Discriminator value for StaticRouterRule. + public static RouterRuleKind Static { get; } = new RouterRuleKind(StaticValue); + /// Discriminator value for WebhookRouterRule. + public static RouterRuleKind Webhook { get; } = new RouterRuleKind(WebhookValue); + /// Determines if two values are the same. + public static bool operator ==(RouterRuleKind left, RouterRuleKind right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(RouterRuleKind left, RouterRuleKind right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator RouterRuleKind(string value) => new RouterRuleKind(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is RouterRuleKind other && Equals(other); + /// + public bool Equals(RouterRuleKind other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RuleEngineQueueSelectorAttachment.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RuleEngineQueueSelectorAttachment.Serialization.cs index 516ace269d66d..51f7bb5e358d6 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RuleEngineQueueSelectorAttachment.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RuleEngineQueueSelectorAttachment.Serialization.cs @@ -19,7 +19,7 @@ internal static RuleEngineQueueSelectorAttachment DeserializeRuleEngineQueueSele return null; } RouterRule rule = default; - string kind = default; + QueueSelectorAttachmentKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("rule"u8)) @@ -29,7 +29,7 @@ internal static RuleEngineQueueSelectorAttachment DeserializeRuleEngineQueueSele } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new QueueSelectorAttachmentKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RuleEngineQueueSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RuleEngineQueueSelectorAttachment.cs index 31a862501ec29..4deb5c0327b48 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RuleEngineQueueSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RuleEngineQueueSelectorAttachment.cs @@ -16,7 +16,7 @@ public partial class RuleEngineQueueSelectorAttachment : QueueSelectorAttachment /// Initializes a new instance of RuleEngineQueueSelectorAttachment. /// The type discriminator describing a sub-type of QueueSelectorAttachment. /// A RouterRule that resolves a collection of queue selectors to attach. - internal RuleEngineQueueSelectorAttachment(string kind, RouterRule rule) : base(kind) + internal RuleEngineQueueSelectorAttachment(QueueSelectorAttachmentKind kind, RouterRule rule) : base(kind) { Rule = rule; } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RuleEngineWorkerSelectorAttachment.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RuleEngineWorkerSelectorAttachment.Serialization.cs index f11d8ec75374b..8b5daeb0549c1 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RuleEngineWorkerSelectorAttachment.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RuleEngineWorkerSelectorAttachment.Serialization.cs @@ -19,7 +19,7 @@ internal static RuleEngineWorkerSelectorAttachment DeserializeRuleEngineWorkerSe return null; } RouterRule rule = default; - string kind = default; + WorkerSelectorAttachmentKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("rule"u8)) @@ -29,7 +29,7 @@ internal static RuleEngineWorkerSelectorAttachment DeserializeRuleEngineWorkerSe } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new WorkerSelectorAttachmentKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RuleEngineWorkerSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RuleEngineWorkerSelectorAttachment.cs index 34e8ff7944fa1..2a3e368310ead 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RuleEngineWorkerSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/RuleEngineWorkerSelectorAttachment.cs @@ -16,7 +16,7 @@ public partial class RuleEngineWorkerSelectorAttachment : WorkerSelectorAttachme /// Initializes a new instance of RuleEngineWorkerSelectorAttachment. /// The type discriminator describing a sub-type of WorkerSelectorAttachment. /// A RouterRule that resolves a collection of worker selectors to attach. - internal RuleEngineWorkerSelectorAttachment(string kind, RouterRule rule) : base(kind) + internal RuleEngineWorkerSelectorAttachment(WorkerSelectorAttachmentKind kind, RouterRule rule) : base(kind) { Rule = rule; } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ScheduleAndSuspendMode.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ScheduleAndSuspendMode.Serialization.cs index e7ebbc22d3d7b..e4eaee3d55f24 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ScheduleAndSuspendMode.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ScheduleAndSuspendMode.Serialization.cs @@ -21,7 +21,7 @@ internal static ScheduleAndSuspendMode DeserializeScheduleAndSuspendMode(JsonEle return null; } DateTimeOffset scheduleAt = default; - string kind = default; + JobMatchingModeKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("scheduleAt"u8)) @@ -31,7 +31,7 @@ internal static ScheduleAndSuspendMode DeserializeScheduleAndSuspendMode(JsonEle } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new JobMatchingModeKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ScheduleAndSuspendMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ScheduleAndSuspendMode.cs index 85811afbdd2b6..9ca18a640765f 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ScheduleAndSuspendMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ScheduleAndSuspendMode.cs @@ -15,7 +15,7 @@ public partial class ScheduleAndSuspendMode : JobMatchingMode /// Initializes a new instance of ScheduleAndSuspendMode. /// The type discriminator describing a sub-type of JobMatchingMode. /// Scheduled time. - internal ScheduleAndSuspendMode(string kind, DateTimeOffset scheduleAt) : base(kind) + internal ScheduleAndSuspendMode(JobMatchingModeKind kind, DateTimeOffset scheduleAt) : base(kind) { ScheduleAt = scheduleAt; } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticQueueSelectorAttachment.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticQueueSelectorAttachment.Serialization.cs index 704916d2f8572..1c0d87194e5bb 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticQueueSelectorAttachment.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticQueueSelectorAttachment.Serialization.cs @@ -19,7 +19,7 @@ internal static StaticQueueSelectorAttachment DeserializeStaticQueueSelectorAtta return null; } RouterQueueSelector queueSelector = default; - string kind = default; + QueueSelectorAttachmentKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("queueSelector"u8)) @@ -29,7 +29,7 @@ internal static StaticQueueSelectorAttachment DeserializeStaticQueueSelectorAtta } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new QueueSelectorAttachmentKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticQueueSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticQueueSelectorAttachment.cs index 4ad629eef257c..ebb32b27eac58 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticQueueSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticQueueSelectorAttachment.cs @@ -16,7 +16,7 @@ public partial class StaticQueueSelectorAttachment : QueueSelectorAttachment /// Initializes a new instance of StaticQueueSelectorAttachment. /// The type discriminator describing a sub-type of QueueSelectorAttachment. /// The queue selector to attach. - internal StaticQueueSelectorAttachment(string kind, RouterQueueSelector queueSelector) : base(kind) + internal StaticQueueSelectorAttachment(QueueSelectorAttachmentKind kind, RouterQueueSelector queueSelector) : base(kind) { QueueSelector = queueSelector; } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticRouterRule.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticRouterRule.Serialization.cs index 2b2a3bedbb944..1d7ce4d71588d 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticRouterRule.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticRouterRule.Serialization.cs @@ -21,7 +21,7 @@ internal static StaticRouterRule DeserializeStaticRouterRule(JsonElement element return null; } Optional value = default; - string kind = default; + RouterRuleKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) @@ -35,7 +35,7 @@ internal static StaticRouterRule DeserializeStaticRouterRule(JsonElement element } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new RouterRuleKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticRouterRule.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticRouterRule.cs index d5beacc5a4de6..54872e55c0353 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticRouterRule.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticRouterRule.cs @@ -15,13 +15,13 @@ public partial class StaticRouterRule : RouterRule /// Initializes a new instance of StaticRouterRule. internal StaticRouterRule() { - Kind = "static-rule"; + Kind = RouterRuleKind.Static; } /// Initializes a new instance of StaticRouterRule. /// The type discriminator describing a sub-type of RouterRule. /// The static value this rule always returns. Values must be primitive values - number, string, boolean. - internal StaticRouterRule(string kind, BinaryData value) : base(kind) + internal StaticRouterRule(RouterRuleKind kind, BinaryData value) : base(kind) { _value = value; } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticWorkerSelectorAttachment.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticWorkerSelectorAttachment.Serialization.cs index 603c696598ac5..16f2043007f4e 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticWorkerSelectorAttachment.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticWorkerSelectorAttachment.Serialization.cs @@ -19,7 +19,7 @@ internal static StaticWorkerSelectorAttachment DeserializeStaticWorkerSelectorAt return null; } RouterWorkerSelector workerSelector = default; - string kind = default; + WorkerSelectorAttachmentKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("workerSelector"u8)) @@ -29,7 +29,7 @@ internal static StaticWorkerSelectorAttachment DeserializeStaticWorkerSelectorAt } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new WorkerSelectorAttachmentKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticWorkerSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticWorkerSelectorAttachment.cs index 9e430f9482a3b..740580360dd36 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticWorkerSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/StaticWorkerSelectorAttachment.cs @@ -16,7 +16,7 @@ public partial class StaticWorkerSelectorAttachment : WorkerSelectorAttachment /// Initializes a new instance of StaticWorkerSelectorAttachment. /// The type discriminator describing a sub-type of WorkerSelectorAttachment. /// The worker selector to attach. - internal StaticWorkerSelectorAttachment(string kind, RouterWorkerSelector workerSelector) : base(kind) + internal StaticWorkerSelectorAttachment(WorkerSelectorAttachmentKind kind, RouterWorkerSelector workerSelector) : base(kind) { WorkerSelector = workerSelector; } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/SuspendMode.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/SuspendMode.Serialization.cs index d70f77354cf5d..6d3cb08fb4ca2 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/SuspendMode.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/SuspendMode.Serialization.cs @@ -18,12 +18,12 @@ internal static SuspendMode DeserializeSuspendMode(JsonElement element) { return null; } - string kind = default; + JobMatchingModeKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new JobMatchingModeKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/SuspendMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/SuspendMode.cs index 5cbaa71364c6c..19ba512525237 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/SuspendMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/SuspendMode.cs @@ -12,7 +12,7 @@ public partial class SuspendMode : JobMatchingMode { /// Initializes a new instance of SuspendMode. /// The type discriminator describing a sub-type of JobMatchingMode. - internal SuspendMode(string kind) : base(kind) + internal SuspendMode(JobMatchingModeKind kind) : base(kind) { } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownDistributionMode.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownDistributionMode.Serialization.cs index 5c745897d9071..eacfed1bdb996 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownDistributionMode.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownDistributionMode.Serialization.cs @@ -22,7 +22,7 @@ internal static UnknownDistributionMode DeserializeUnknownDistributionMode(JsonE Optional minConcurrentOffers = default; Optional maxConcurrentOffers = default; Optional bypassSelectors = default; - string kind = "Unknown"; + DistributionModeKind kind = "Unknown"; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("minConcurrentOffers"u8)) @@ -54,7 +54,7 @@ internal static UnknownDistributionMode DeserializeUnknownDistributionMode(JsonE } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new DistributionModeKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownDistributionMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownDistributionMode.cs index 2692db3fb0f3c..80b2f22783e66 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownDistributionMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownDistributionMode.cs @@ -20,7 +20,7 @@ internal UnknownDistributionMode() /// Governs the maximum number of active concurrent offers a job can have. /// If set to true, then router will match workers to jobs even if they don't match label selectors. Warning: You may get workers that are not qualified for the job they are matched with if you set this variable to true. This flag is intended more for temporary usage. By default, set to false. /// The type discriminator describing a sub-type of DistributionMode. - internal UnknownDistributionMode(int minConcurrentOffers, int maxConcurrentOffers, bool? bypassSelectors, string kind) : base(minConcurrentOffers, maxConcurrentOffers, bypassSelectors, kind) + internal UnknownDistributionMode(int minConcurrentOffers, int maxConcurrentOffers, bool? bypassSelectors, DistributionModeKind kind) : base(minConcurrentOffers, maxConcurrentOffers, bypassSelectors, kind) { } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownExceptionAction.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownExceptionAction.Serialization.cs index 44b284973c6a1..d283a73377eae 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownExceptionAction.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownExceptionAction.Serialization.cs @@ -20,7 +20,7 @@ internal static UnknownExceptionAction DeserializeUnknownExceptionAction(JsonEle return null; } Optional id = default; - string kind = "Unknown"; + ExceptionActionKind kind = "Unknown"; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id"u8)) @@ -30,7 +30,7 @@ internal static UnknownExceptionAction DeserializeUnknownExceptionAction(JsonEle } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new ExceptionActionKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownExceptionAction.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownExceptionAction.cs index ae34bf748b7da..9888a7c572a4e 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownExceptionAction.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownExceptionAction.cs @@ -18,7 +18,7 @@ internal UnknownExceptionAction() /// Initializes a new instance of UnknownExceptionAction. /// Unique Id of the exception action. /// The type discriminator describing a sub-type of ExceptionAction. - internal UnknownExceptionAction(string id, string kind) : base(id, kind) + internal UnknownExceptionAction(string id, ExceptionActionKind kind) : base(id, kind) { } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownExceptionTrigger.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownExceptionTrigger.Serialization.cs index d7b1a483bddcb..43c29ab3f9537 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownExceptionTrigger.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownExceptionTrigger.Serialization.cs @@ -18,12 +18,12 @@ internal static UnknownExceptionTrigger DeserializeUnknownExceptionTrigger(JsonE { return null; } - string kind = "Unknown"; + ExceptionTriggerKind kind = "Unknown"; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new ExceptionTriggerKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownExceptionTrigger.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownExceptionTrigger.cs index 6a3a0afbfdde2..0de8a06ef15df 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownExceptionTrigger.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownExceptionTrigger.cs @@ -17,7 +17,7 @@ internal UnknownExceptionTrigger() /// Initializes a new instance of UnknownExceptionTrigger. /// The type discriminator describing a sub-type of ExceptionTrigger. - internal UnknownExceptionTrigger(string kind) : base(kind) + internal UnknownExceptionTrigger(ExceptionTriggerKind kind) : base(kind) { } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownJobMatchingMode.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownJobMatchingMode.Serialization.cs index 7364844c8326c..3912ea9486b91 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownJobMatchingMode.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownJobMatchingMode.Serialization.cs @@ -18,12 +18,12 @@ internal static UnknownJobMatchingMode DeserializeUnknownJobMatchingMode(JsonEle { return null; } - string kind = "Unknown"; + JobMatchingModeKind kind = "Unknown"; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new JobMatchingModeKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownJobMatchingMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownJobMatchingMode.cs index f38d890fe2267..becf0c5fc63ae 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownJobMatchingMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownJobMatchingMode.cs @@ -17,7 +17,7 @@ internal UnknownJobMatchingMode() /// Initializes a new instance of UnknownJobMatchingMode. /// The type discriminator describing a sub-type of JobMatchingMode. - internal UnknownJobMatchingMode(string kind) : base(kind) + internal UnknownJobMatchingMode(JobMatchingModeKind kind) : base(kind) { } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownQueueSelectorAttachment.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownQueueSelectorAttachment.Serialization.cs index 75817496b047f..c9cb1483c7f74 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownQueueSelectorAttachment.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownQueueSelectorAttachment.Serialization.cs @@ -18,12 +18,12 @@ internal static UnknownQueueSelectorAttachment DeserializeUnknownQueueSelectorAt { return null; } - string kind = "Unknown"; + QueueSelectorAttachmentKind kind = "Unknown"; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new QueueSelectorAttachmentKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownQueueSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownQueueSelectorAttachment.cs index 2ffab9b997e33..08a8790257584 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownQueueSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownQueueSelectorAttachment.cs @@ -17,7 +17,7 @@ internal UnknownQueueSelectorAttachment() /// Initializes a new instance of UnknownQueueSelectorAttachment. /// The type discriminator describing a sub-type of QueueSelectorAttachment. - internal UnknownQueueSelectorAttachment(string kind) : base(kind) + internal UnknownQueueSelectorAttachment(QueueSelectorAttachmentKind kind) : base(kind) { } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownRouterRule.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownRouterRule.Serialization.cs index b0c802c9a978b..d331f0ff92334 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownRouterRule.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownRouterRule.Serialization.cs @@ -18,12 +18,12 @@ internal static UnknownRouterRule DeserializeUnknownRouterRule(JsonElement eleme { return null; } - string kind = "Unknown"; + RouterRuleKind kind = "Unknown"; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new RouterRuleKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownRouterRule.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownRouterRule.cs index 4f8e6e61c2b4b..ed177a62a9181 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownRouterRule.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownRouterRule.cs @@ -17,7 +17,7 @@ internal UnknownRouterRule() /// Initializes a new instance of UnknownRouterRule. /// The type discriminator describing a sub-type of RouterRule. - internal UnknownRouterRule(string kind) : base(kind) + internal UnknownRouterRule(RouterRuleKind kind) : base(kind) { } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownWorkerSelectorAttachment.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownWorkerSelectorAttachment.Serialization.cs index 75bb03f30c0aa..42e08f3f0a5d1 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownWorkerSelectorAttachment.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownWorkerSelectorAttachment.Serialization.cs @@ -18,12 +18,12 @@ internal static UnknownWorkerSelectorAttachment DeserializeUnknownWorkerSelector { return null; } - string kind = "Unknown"; + WorkerSelectorAttachmentKind kind = "Unknown"; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new WorkerSelectorAttachmentKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownWorkerSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownWorkerSelectorAttachment.cs index 17763d342c929..2d94eb6e55d88 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownWorkerSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/UnknownWorkerSelectorAttachment.cs @@ -17,7 +17,7 @@ internal UnknownWorkerSelectorAttachment() /// Initializes a new instance of UnknownWorkerSelectorAttachment. /// The type discriminator describing a sub-type of WorkerSelectorAttachment. - internal UnknownWorkerSelectorAttachment(string kind) : base(kind) + internal UnknownWorkerSelectorAttachment(WorkerSelectorAttachmentKind kind) : base(kind) { } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WaitTimeExceptionTrigger.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WaitTimeExceptionTrigger.Serialization.cs index 69da787c9a2e7..ad8fade9c00df 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WaitTimeExceptionTrigger.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WaitTimeExceptionTrigger.Serialization.cs @@ -19,7 +19,7 @@ internal static WaitTimeExceptionTrigger DeserializeWaitTimeExceptionTrigger(Jso return null; } double thresholdSeconds = default; - string kind = default; + ExceptionTriggerKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("thresholdSeconds"u8)) @@ -29,7 +29,7 @@ internal static WaitTimeExceptionTrigger DeserializeWaitTimeExceptionTrigger(Jso } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new ExceptionTriggerKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WaitTimeExceptionTrigger.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WaitTimeExceptionTrigger.cs index 356318d232b84..c6d3985d99bac 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WaitTimeExceptionTrigger.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WaitTimeExceptionTrigger.cs @@ -14,14 +14,14 @@ public partial class WaitTimeExceptionTrigger : ExceptionTrigger /// Threshold for wait time for this trigger. internal WaitTimeExceptionTrigger(double thresholdSeconds) { - Kind = "wait-time"; + Kind = ExceptionTriggerKind.WaitTime; _thresholdSeconds = thresholdSeconds; } /// Initializes a new instance of WaitTimeExceptionTrigger. /// The type discriminator describing a sub-type of ExceptionTrigger. /// Threshold for wait time for this trigger. - internal WaitTimeExceptionTrigger(string kind, double thresholdSeconds) : base(kind) + internal WaitTimeExceptionTrigger(ExceptionTriggerKind kind, double thresholdSeconds) : base(kind) { _thresholdSeconds = thresholdSeconds; } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WebhookRouterRule.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WebhookRouterRule.Serialization.cs index 7b71362d07ed6..30ab05af3ce5e 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WebhookRouterRule.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WebhookRouterRule.Serialization.cs @@ -23,7 +23,7 @@ internal static WebhookRouterRule DeserializeWebhookRouterRule(JsonElement eleme Optional authorizationServerUri = default; Optional clientCredential = default; Optional webhookUri = default; - string kind = default; + RouterRuleKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("authorizationServerUri"u8)) @@ -55,7 +55,7 @@ internal static WebhookRouterRule DeserializeWebhookRouterRule(JsonElement eleme } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new RouterRuleKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WebhookRouterRule.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WebhookRouterRule.cs index d219da49f7bce..e101503faceba 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WebhookRouterRule.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WebhookRouterRule.cs @@ -15,7 +15,7 @@ public partial class WebhookRouterRule : RouterRule /// Initializes a new instance of WebhookRouterRule. internal WebhookRouterRule() { - Kind = "webhook-rule"; + Kind = RouterRuleKind.Webhook; } /// Initializes a new instance of WebhookRouterRule. @@ -23,7 +23,7 @@ internal WebhookRouterRule() /// Uri for Authorization Server. /// OAuth2.0 Credentials used to Contoso's Authorization server. Reference: https://www.oauth.com/oauth2-servers/access-tokens/client-credentials/. /// Uri for Contoso's Web Server. - internal WebhookRouterRule(string kind, Uri authorizationServerUri, OAuth2WebhookClientCredential clientCredential, Uri webhookUri) : base(kind) + internal WebhookRouterRule(RouterRuleKind kind, Uri authorizationServerUri, OAuth2WebhookClientCredential clientCredential, Uri webhookUri) : base(kind) { AuthorizationServerUri = authorizationServerUri; ClientCredential = clientCredential; diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WeightedAllocationQueueSelectorAttachment.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WeightedAllocationQueueSelectorAttachment.Serialization.cs index f07cfb54dddf2..c0087a860055b 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WeightedAllocationQueueSelectorAttachment.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WeightedAllocationQueueSelectorAttachment.Serialization.cs @@ -20,7 +20,7 @@ internal static WeightedAllocationQueueSelectorAttachment DeserializeWeightedAll return null; } IReadOnlyList allocations = default; - string kind = default; + QueueSelectorAttachmentKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("allocations"u8)) @@ -35,7 +35,7 @@ internal static WeightedAllocationQueueSelectorAttachment DeserializeWeightedAll } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new QueueSelectorAttachmentKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WeightedAllocationQueueSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WeightedAllocationQueueSelectorAttachment.cs index a6d9eb01e294a..cff275d9d9bf8 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WeightedAllocationQueueSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WeightedAllocationQueueSelectorAttachment.cs @@ -18,7 +18,7 @@ public partial class WeightedAllocationQueueSelectorAttachment : QueueSelectorAt /// Initializes a new instance of WeightedAllocationQueueSelectorAttachment. /// The type discriminator describing a sub-type of QueueSelectorAttachment. /// A collection of percentage based weighted allocations. - internal WeightedAllocationQueueSelectorAttachment(string kind, IReadOnlyList allocations) : base(kind) + internal WeightedAllocationQueueSelectorAttachment(QueueSelectorAttachmentKind kind, IReadOnlyList allocations) : base(kind) { Allocations = allocations; } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WeightedAllocationWorkerSelectorAttachment.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WeightedAllocationWorkerSelectorAttachment.Serialization.cs index eb0214d8166cf..21f6da1051c32 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WeightedAllocationWorkerSelectorAttachment.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WeightedAllocationWorkerSelectorAttachment.Serialization.cs @@ -20,7 +20,7 @@ internal static WeightedAllocationWorkerSelectorAttachment DeserializeWeightedAl return null; } IReadOnlyList allocations = default; - string kind = default; + WorkerSelectorAttachmentKind kind = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("allocations"u8)) @@ -35,7 +35,7 @@ internal static WeightedAllocationWorkerSelectorAttachment DeserializeWeightedAl } if (property.NameEquals("kind"u8)) { - kind = property.Value.GetString(); + kind = new WorkerSelectorAttachmentKind(property.Value.GetString()); continue; } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WeightedAllocationWorkerSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WeightedAllocationWorkerSelectorAttachment.cs index 1cb4df900bfd0..4ffbe1a79e47e 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WeightedAllocationWorkerSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WeightedAllocationWorkerSelectorAttachment.cs @@ -18,7 +18,7 @@ public partial class WeightedAllocationWorkerSelectorAttachment : WorkerSelector /// Initializes a new instance of WeightedAllocationWorkerSelectorAttachment. /// The type discriminator describing a sub-type of WorkerSelectorAttachment. /// A collection of percentage based weighted allocations. - internal WeightedAllocationWorkerSelectorAttachment(string kind, IReadOnlyList allocations) : base(kind) + internal WeightedAllocationWorkerSelectorAttachment(WorkerSelectorAttachmentKind kind, IReadOnlyList allocations) : base(kind) { Allocations = allocations; } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WorkerSelectorAttachment.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WorkerSelectorAttachment.Serialization.cs index ae2dbafa91b75..3393d6d218437 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WorkerSelectorAttachment.Serialization.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WorkerSelectorAttachment.Serialization.cs @@ -23,10 +23,10 @@ internal static WorkerSelectorAttachment DeserializeWorkerSelectorAttachment(Jso switch (discriminator.GetString()) { case "conditional": return ConditionalWorkerSelectorAttachment.DeserializeConditionalWorkerSelectorAttachment(element); - case "pass-through": return PassThroughWorkerSelectorAttachment.DeserializePassThroughWorkerSelectorAttachment(element); - case "rule-engine": return RuleEngineWorkerSelectorAttachment.DeserializeRuleEngineWorkerSelectorAttachment(element); + case "passThrough": return PassThroughWorkerSelectorAttachment.DeserializePassThroughWorkerSelectorAttachment(element); + case "ruleEngine": return RuleEngineWorkerSelectorAttachment.DeserializeRuleEngineWorkerSelectorAttachment(element); case "static": return StaticWorkerSelectorAttachment.DeserializeStaticWorkerSelectorAttachment(element); - case "weighted-allocation-worker-selector": return WeightedAllocationWorkerSelectorAttachment.DeserializeWeightedAllocationWorkerSelectorAttachment(element); + case "weightedAllocation": return WeightedAllocationWorkerSelectorAttachment.DeserializeWeightedAllocationWorkerSelectorAttachment(element); } } return UnknownWorkerSelectorAttachment.DeserializeUnknownWorkerSelectorAttachment(element); diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WorkerSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WorkerSelectorAttachment.cs index 7950c7a781a66..641deb62e47f1 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WorkerSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WorkerSelectorAttachment.cs @@ -21,7 +21,7 @@ protected WorkerSelectorAttachment() /// Initializes a new instance of WorkerSelectorAttachment. /// The type discriminator describing a sub-type of WorkerSelectorAttachment. - internal WorkerSelectorAttachment(string kind) + internal WorkerSelectorAttachment(WorkerSelectorAttachmentKind kind) { Kind = kind; } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/WorkerSelectorAttachmentKind.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WorkerSelectorAttachmentKind.cs new file mode 100644 index 0000000000000..921bcf6b3f298 --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/WorkerSelectorAttachmentKind.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Communication.JobRouter +{ + /// Supported worker selector attachment types. + public readonly partial struct WorkerSelectorAttachmentKind : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public WorkerSelectorAttachmentKind(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ConditionalValue = "conditional"; + private const string PassThroughValue = "passThrough"; + private const string RuleEngineValue = "ruleEngine"; + private const string StaticValue = "static"; + private const string WeightedAllocationValue = "weightedAllocation"; + + /// Discriminator value for ConditionalWorkerSelectorAttachment. + public static WorkerSelectorAttachmentKind Conditional { get; } = new WorkerSelectorAttachmentKind(ConditionalValue); + /// Discriminator value for PassThroughWorkerSelectorAttachment. + public static WorkerSelectorAttachmentKind PassThrough { get; } = new WorkerSelectorAttachmentKind(PassThroughValue); + /// Discriminator value for RuleEngineWorkerSelectorAttachment. + public static WorkerSelectorAttachmentKind RuleEngine { get; } = new WorkerSelectorAttachmentKind(RuleEngineValue); + /// Discriminator value for StaticWorkerSelectorAttachment. + public static WorkerSelectorAttachmentKind Static { get; } = new WorkerSelectorAttachmentKind(StaticValue); + /// Discriminator value for WeightedAllocationWorkerSelectorAttachment. + public static WorkerSelectorAttachmentKind WeightedAllocation { get; } = new WorkerSelectorAttachmentKind(WeightedAllocationValue); + /// Determines if two values are the same. + public static bool operator ==(WorkerSelectorAttachmentKind left, WorkerSelectorAttachmentKind right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(WorkerSelectorAttachmentKind left, WorkerSelectorAttachmentKind right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator WorkerSelectorAttachmentKind(string value) => new WorkerSelectorAttachmentKind(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is WorkerSelectorAttachmentKind other && Equals(other); + /// + public bool Equals(WorkerSelectorAttachmentKind other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/tspCodeModel.json b/sdk/communication/Azure.Communication.JobRouter/src/Generated/tspCodeModel.json index 297cb599fb125..c183e73c8b16c 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/tspCodeModel.json +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/tspCodeModel.json @@ -8,11 +8,85 @@ "Enums": [ { "$id": "2", - "Name": "ExpressionRouterRuleLanguage", + "Name": "DistributionModeKind", "EnumValueType": "String", "AllowedValues": [ { "$id": "3", + "Name": "bestWorker", + "Value": "bestWorker", + "Description": "Discriminator value for BestWorkerMode." + }, + { + "$id": "4", + "Name": "longestIdle", + "Value": "longestIdle", + "Description": "Discriminator value for LongestIdleMode." + }, + { + "$id": "5", + "Name": "roundRobin", + "Value": "roundRobin", + "Description": "Discriminator value for RoundRobinMode." + } + ], + "Namespace": "AzureCommunicationRoutingService", + "Accessibility": "internal", + "Description": "Supported distribution mode types", + "IsExtensible": true, + "IsNullable": false, + "Usage": "Output" + }, + { + "$id": "6", + "Name": "RouterRuleKind", + "EnumValueType": "String", + "AllowedValues": [ + { + "$id": "7", + "Name": "directMap", + "Value": "directMap", + "Description": "Discriminator value for DirectMapRouterRule." + }, + { + "$id": "8", + "Name": "expression", + "Value": "expression", + "Description": "Discriminator value for ExpressionRouterRule." + }, + { + "$id": "9", + "Name": "function", + "Value": "function", + "Description": "Discriminator value for FunctionRouterRule." + }, + { + "$id": "10", + "Name": "static", + "Value": "static", + "Description": "Discriminator value for StaticRouterRule." + }, + { + "$id": "11", + "Name": "webhook", + "Value": "webhook", + "Description": "Discriminator value for WebhookRouterRule." + } + ], + "Namespace": "AzureCommunicationRoutingService", + "Accessibility": "internal", + "Description": "Supported router rule types", + "IsExtensible": true, + "IsNullable": false, + "Usage": "Output" + }, + { + "$id": "12", + "Name": "ExpressionRouterRuleLanguage", + "EnumValueType": "String", + "AllowedValues": [ + { + "$id": "13", "Name": "powerFx", "Value": "powerFx", "Description": "PowerFx" @@ -26,18 +100,18 @@ "Usage": "Output" }, { - "$id": "4", + "$id": "14", "Name": "ScoringRuleParameterSelector", "EnumValueType": "String", "AllowedValues": [ { - "$id": "5", + "$id": "15", "Name": "jobLabels", "Value": "jobLabels", "Description": "Parameter to add job labels to scoring payload. Property is sent as `job`." }, { - "$id": "6", + "$id": "16", "Name": "workerSelectors", "Value": "workerSelectors", "Description": "Parameter to add worker selectors from the job to scoring payload. Property is sent as `selectors`." @@ -51,42 +125,85 @@ "Usage": "Output" }, { - "$id": "7", + "$id": "17", + "Name": "QueueSelectorAttachmentKind", + "EnumValueType": "String", + "AllowedValues": [ + { + "$id": "18", + "Name": "conditional", + "Value": "conditional", + "Description": "Discriminator value for ConditionalQueueSelectorAttachment." + }, + { + "$id": "19", + "Name": "passThrough", + "Value": "passThrough", + "Description": "Discriminator value for PassThroughQueueSelectorAttachment." + }, + { + "$id": "20", + "Name": "ruleEngine", + "Value": "ruleEngine", + "Description": "Discriminator value for RuleEngineQueueSelectorAttachment." + }, + { + "$id": "21", + "Name": "static", + "Value": "static", + "Description": "Discriminator value for StaticQueueSelectorAttachment." + }, + { + "$id": "22", + "Name": "weightedAllocation", + "Value": "weightedAllocation", + "Description": "Discriminator value for WeightedAllocationQueueSelectorAttachment." + } + ], + "Namespace": "AzureCommunicationRoutingService", + "Accessibility": "internal", + "Description": "Supported queue selector attachment types", + "IsExtensible": true, + "IsNullable": false, + "Usage": "Output" + }, + { + "$id": "23", "Name": "LabelOperator", "EnumValueType": "String", "AllowedValues": [ { - "$id": "8", + "$id": "24", "Name": "equal", "Value": "equal", "Description": "Equal" }, { - "$id": "9", + "$id": "25", "Name": "notEqual", "Value": "notEqual", "Description": "Not Equal" }, { - "$id": "10", + "$id": "26", "Name": "lessThan", "Value": "lessThan", "Description": "Less than" }, { - "$id": "11", + "$id": "27", "Name": "lessThanOrEqual", "Value": "lessThanOrEqual", "Description": "Less than or equal" }, { - "$id": "12", + "$id": "28", "Name": "greaterThan", "Value": "greaterThan", "Description": "Greater than" }, { - "$id": "13", + "$id": "29", "Name": "greaterThanOrEqual", "Value": "greaterThanOrEqual", "Description": "Greater than or equal" @@ -100,18 +217,61 @@ "Usage": "Output" }, { - "$id": "14", + "$id": "30", + "Name": "WorkerSelectorAttachmentKind", + "EnumValueType": "String", + "AllowedValues": [ + { + "$id": "31", + "Name": "conditional", + "Value": "conditional", + "Description": "Discriminator value for ConditionalWorkerSelectorAttachment." + }, + { + "$id": "32", + "Name": "passThrough", + "Value": "passThrough", + "Description": "Discriminator value for PassThroughWorkerSelectorAttachment." + }, + { + "$id": "33", + "Name": "ruleEngine", + "Value": "ruleEngine", + "Description": "Discriminator value for RuleEngineWorkerSelectorAttachment." + }, + { + "$id": "34", + "Name": "static", + "Value": "static", + "Description": "Discriminator value for StaticWorkerSelectorAttachment." + }, + { + "$id": "35", + "Name": "weightedAllocation", + "Value": "weightedAllocation", + "Description": "Discriminator value for WeightedAllocationWorkerSelectorAttachment." + } + ], + "Namespace": "AzureCommunicationRoutingService", + "Accessibility": "internal", + "Description": "Supported worker selector attachment types", + "IsExtensible": true, + "IsNullable": false, + "Usage": "Output" + }, + { + "$id": "36", "Name": "RouterWorkerSelectorStatus", "EnumValueType": "String", "AllowedValues": [ { - "$id": "15", + "$id": "37", "Name": "active", "Value": "active", "Description": "Active" }, { - "$id": "16", + "$id": "38", "Name": "expired", "Value": "expired", "Description": "Expired" @@ -125,78 +285,134 @@ "Usage": "Output" }, { - "$id": "17", + "$id": "39", + "Name": "ExceptionTriggerKind", + "EnumValueType": "String", + "AllowedValues": [ + { + "$id": "40", + "Name": "queueLength", + "Value": "queueLength", + "Description": "Discriminator value for QueueLengthExceptionTrigger." + }, + { + "$id": "41", + "Name": "waitTime", + "Value": "waitTime", + "Description": "Discriminator value for WaitTimeExceptionTrigger." + } + ], + "Namespace": "AzureCommunicationRoutingService", + "Accessibility": "internal", + "Description": "Supported exception trigger types", + "IsExtensible": true, + "IsNullable": false, + "Usage": "Output" + }, + { + "$id": "42", + "Name": "ExceptionActionKind", + "EnumValueType": "String", + "AllowedValues": [ + { + "$id": "43", + "Name": "cancel", + "Value": "cancel", + "Description": "Discriminator value for CancelExceptionAction." + }, + { + "$id": "44", + "Name": "manualReclassify", + "Value": "manualReclassify", + "Description": "Discriminator value for ManualReclassifyExceptionAction." + }, + { + "$id": "45", + "Name": "reclassify", + "Value": "reclassify", + "Description": "Discriminator value for ReclassifyExceptionAction." + } + ], + "Namespace": "AzureCommunicationRoutingService", + "Accessibility": "internal", + "Description": "Supported exception action types", + "IsExtensible": true, + "IsNullable": false, + "Usage": "Output" + }, + { + "$id": "46", "Name": "RouterJobStatus", "EnumValueType": "String", "AllowedValues": [ { - "$id": "18", + "$id": "47", "Name": "pendingClassification", "Value": "pendingClassification", "Description": "Job is waiting to be classified." }, { - "$id": "19", + "$id": "48", "Name": "queued", "Value": "queued", "Description": "Job has been queued." }, { - "$id": "20", + "$id": "49", "Name": "assigned", "Value": "assigned", "Description": "Job has been assigned to a worker." }, { - "$id": "21", + "$id": "50", "Name": "completed", "Value": "completed", "Description": "Job has been completed by a worker." }, { - "$id": "22", + "$id": "51", "Name": "closed", "Value": "closed", "Description": "Job has been closed by a worker." }, { - "$id": "23", + "$id": "52", "Name": "cancelled", "Value": "cancelled", "Description": "Job has been cancelled." }, { - "$id": "24", + "$id": "53", "Name": "classificationFailed", "Value": "classificationFailed", "Description": "Classification process failed for the job." }, { - "$id": "25", + "$id": "54", "Name": "created", "Value": "created", "Description": "Job has been created." }, { - "$id": "26", + "$id": "55", "Name": "pendingSchedule", "Value": "pendingSchedule", "Description": "Job has been created but not been scheduled yet." }, { - "$id": "27", + "$id": "56", "Name": "scheduled", "Value": "scheduled", "Description": "Job has been scheduled successfully." }, { - "$id": "28", + "$id": "57", "Name": "scheduleFailed", "Value": "scheduleFailed", "Description": "Job scheduling failed." }, { - "$id": "29", + "$id": "58", "Name": "waitingForActivation", "Value": "waitingForActivation", "Description": "Job is in a suspended state and waiting for an update." @@ -210,120 +426,152 @@ "Usage": "Output" }, { - "$id": "30", + "$id": "59", + "Name": "JobMatchingModeKind", + "EnumValueType": "String", + "AllowedValues": [ + { + "$id": "60", + "Name": "queueAndMatch", + "Value": "queueAndMatch", + "Description": "Discriminator value for QueueAndMatchMode." + }, + { + "$id": "61", + "Name": "scheduleAndSuspend", + "Value": "scheduleAndSuspend", + "Description": "Discriminator value for ScheduleAndSuspendMode." + }, + { + "$id": "62", + "Name": "suspend", + "Value": "suspend", + "Description": "Discriminator value for SuspendMode." + } + ], + "Namespace": "AzureCommunicationRoutingService", + "Accessibility": "internal", + "Description": "Supported matching mode types", + "IsExtensible": true, + "IsNullable": false, + "Usage": "Output" + }, + { + "$id": "63", "Name": "RouterJobStatusSelector", "EnumValueType": "String", "AllowedValues": [ { - "$id": "31", + "$id": "64", "Name": "all", "Value": "all", "Description": "Default" }, { - "$id": "32", + "$id": "65", "Name": "pendingClassification", "Value": "pendingClassification", "Description": "Job is waiting to be classified." }, { - "$id": "33", + "$id": "66", "Name": "queued", "Value": "queued", "Description": "Job has been queued." }, { - "$id": "34", + "$id": "67", "Name": "assigned", "Value": "assigned", "Description": "Job has been assigned to a worker." }, { - "$id": "35", + "$id": "68", "Name": "completed", "Value": "completed", "Description": "Job has been completed by a worker." }, { - "$id": "36", + "$id": "69", "Name": "closed", "Value": "closed", "Description": "Job has been closed by a worker." }, { - "$id": "37", + "$id": "70", "Name": "cancelled", "Value": "cancelled", "Description": "Job has been cancelled." }, { - "$id": "38", + "$id": "71", "Name": "classificationFailed", "Value": "classificationFailed", "Description": "Classification process failed for the job." }, { - "$id": "39", + "$id": "72", "Name": "created", "Value": "created", "Description": "Job has been created." }, { - "$id": "40", + "$id": "73", "Name": "pendingSchedule", "Value": "pendingSchedule", "Description": "Job has been created but not been scheduled yet." }, { - "$id": "41", + "$id": "74", "Name": "scheduled", "Value": "scheduled", "Description": "Job has been scheduled successfully." }, { - "$id": "42", + "$id": "75", "Name": "scheduleFailed", "Value": "scheduleFailed", "Description": "Job scheduling failed." }, { - "$id": "43", + "$id": "76", "Name": "waitingForActivation", "Value": "waitingForActivation", "Description": "Job is in a suspended state and waiting for an update." }, { - "$id": "44", + "$id": "77", "Name": "active", "Value": "active", "Description": "Job is in a state of PendingClassification or Queued or Assigned or ClassificationFailed or Completed or PendingSchedule or Scheduled or ScheduleFailed or WaitingForActivation." } ], "Namespace": "AzureCommunicationRoutingService", + "Accessibility": "internal", "Description": "Enums used to filters jobs by state", "IsExtensible": true, "IsNullable": false, "Usage": "Input" }, { - "$id": "45", + "$id": "78", "Name": "RouterWorkerState", "EnumValueType": "String", "AllowedValues": [ { - "$id": "46", + "$id": "79", "Name": "active", "Value": "active", "Description": "Worker is active and available to take offers." }, { - "$id": "47", + "$id": "80", "Name": "draining", "Value": "draining", "Description": "Worker is not active, if there are existing offers they are being revoked. No new offers are sent." }, { - "$id": "48", + "$id": "81", "Name": "inactive", "Value": "inactive", "Description": "Worker is not active. No new offers are sent." @@ -337,48 +585,49 @@ "Usage": "Output" }, { - "$id": "49", + "$id": "82", "Name": "RouterWorkerStateSelector", "EnumValueType": "String", "AllowedValues": [ { - "$id": "50", + "$id": "83", "Name": "active", "Value": "active", "Description": "Worker is active and available to take offers." }, { - "$id": "51", + "$id": "84", "Name": "draining", "Value": "draining", "Description": "Worker is not active, if there are existing offers they are being revoked. No new offers are sent." }, { - "$id": "52", + "$id": "85", "Name": "inactive", "Value": "inactive", "Description": "Worker is not active. No new offers are sent." }, { - "$id": "53", + "$id": "86", "Name": "all", "Value": "all", "Description": "Worker is active or draining or inactive." } ], "Namespace": "AzureCommunicationRoutingService", + "Accessibility": "internal", "Description": "Enums used to filters workers by state", "IsExtensible": true, "IsNullable": false, "Usage": "Input" }, { - "$id": "54", + "$id": "87", "Name": "Versions", "EnumValueType": "String", "AllowedValues": [ { - "$id": "55", + "$id": "88", "Name": "c2023_11_01", "Value": "2023-11-01", "Description": "JobRouter 2023-11-01 api version" @@ -393,7 +642,7 @@ ], "Models": [ { - "$id": "56", + "$id": "89", "Name": "DistributionPolicy", "Namespace": "AzureCommunicationRoutingService", "Description": "Policy governing how jobs are distributed to workers", @@ -401,12 +650,12 @@ "Usage": "Output", "Properties": [ { - "$id": "57", + "$id": "90", "Name": "etag", "SerializedName": "etag", "Description": "The entity tag for this resource.", "Type": { - "$id": "58", + "$id": "91", "Name": "eTag", "Kind": "String", "IsNullable": false @@ -415,12 +664,12 @@ "IsReadOnly": true }, { - "$id": "59", + "$id": "92", "Name": "id", "SerializedName": "id", "Description": "The unique identifier of the policy.", "Type": { - "$id": "60", + "$id": "93", "Name": "string", "Kind": "String", "IsNullable": false @@ -429,12 +678,12 @@ "IsReadOnly": true }, { - "$id": "61", + "$id": "94", "Name": "name", "SerializedName": "name", "Description": "The human readable name of the policy.", "Type": { - "$id": "62", + "$id": "95", "Name": "string", "Kind": "String", "IsNullable": false @@ -443,12 +692,12 @@ "IsReadOnly": false }, { - "$id": "63", + "$id": "96", "Name": "offerExpiresAfterSeconds", "SerializedName": "offerExpiresAfterSeconds", "Description": "The number of seconds after which any offers created under this policy will be expired.", "Type": { - "$id": "64", + "$id": "97", "Name": "float64", "Kind": "Float64", "IsNullable": false @@ -457,12 +706,12 @@ "IsReadOnly": false }, { - "$id": "65", + "$id": "98", "Name": "mode", "SerializedName": "mode", "Description": "Abstract base class for defining a distribution mode", "Type": { - "$id": "66", + "$id": "99", "Name": "DistributionMode", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -472,12 +721,12 @@ "Usage": "Output", "Properties": [ { - "$id": "67", + "$id": "100", "Name": "minConcurrentOffers", "SerializedName": "minConcurrentOffers", "Description": "Governs the minimum desired number of active concurrent offers a job can have.", "Type": { - "$id": "68", + "$id": "101", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -486,12 +735,12 @@ "IsReadOnly": false }, { - "$id": "69", + "$id": "102", "Name": "maxConcurrentOffers", "SerializedName": "maxConcurrentOffers", "Description": "Governs the maximum number of active concurrent offers a job can have.", "Type": { - "$id": "70", + "$id": "103", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -500,12 +749,12 @@ "IsReadOnly": false }, { - "$id": "71", + "$id": "104", "Name": "bypassSelectors", "SerializedName": "bypassSelectors", "Description": "If set to true, then router will match workers to jobs even if they don't match label selectors. Warning: You may get workers that are not qualified for the job they are matched with if you set this variable to true. This flag is intended more for temporary usage. By default, set to false.", "Type": { - "$id": "72", + "$id": "105", "Name": "boolean", "Kind": "Boolean", "IsNullable": false @@ -514,15 +763,12 @@ "IsReadOnly": false }, { - "$id": "73", + "$id": "106", "Name": "kind", "SerializedName": "kind", "Description": "The type discriminator describing a sub-type of DistributionMode", "Type": { - "$id": "74", - "Name": "string", - "Kind": "String", - "IsNullable": false + "$ref": "2" }, "IsRequired": true, "IsReadOnly": false, @@ -531,25 +777,25 @@ ], "DerivedModels": [ { - "$id": "75", + "$id": "107", "Name": "BestWorkerMode", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "Jobs are distributed to the worker with the strongest abilities available.", "IsNullable": false, - "DiscriminatorValue": "best-worker", + "DiscriminatorValue": "bestWorker", "BaseModel": { - "$ref": "66" + "$ref": "99" }, "Usage": "Output", "Properties": [ { - "$id": "76", + "$id": "108", "Name": "scoringRule", "SerializedName": "scoringRule", "Description": "Define a scoring rule to use, when calculating a score to determine the best worker. If not set, will use a default scoring formula that uses the number of job labels that the worker labels match, as well as the number of label selectors the worker labels match and/or exceed using a logistic function (https://en.wikipedia.org/wiki/Logistic_function).", "Type": { - "$id": "77", + "$id": "109", "Name": "RouterRule", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -559,15 +805,12 @@ "Usage": "Output", "Properties": [ { - "$id": "78", + "$id": "110", "Name": "kind", "SerializedName": "kind", "Description": "The type discriminator describing a sub-type of RouterRule", "Type": { - "$id": "79", - "Name": "string", - "Kind": "String", - "IsNullable": false + "$ref": "6" }, "IsRequired": true, "IsReadOnly": false, @@ -576,50 +819,50 @@ ], "DerivedModels": [ { - "$id": "80", + "$id": "111", "Name": "DirectMapRouterRule", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "A rule that return the same labels as the input labels.", "IsNullable": false, - "DiscriminatorValue": "direct-map-rule", + "DiscriminatorValue": "directMap", "BaseModel": { - "$ref": "77" + "$ref": "109" }, "Usage": "Output", "Properties": [] }, { - "$id": "81", + "$id": "112", "Name": "ExpressionRouterRule", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "A rule providing inline expression rules.", "IsNullable": false, - "DiscriminatorValue": "expression-rule", + "DiscriminatorValue": "expression", "BaseModel": { - "$ref": "77" + "$ref": "109" }, "Usage": "Output", "Properties": [ { - "$id": "82", + "$id": "113", "Name": "language", "SerializedName": "language", "Description": "The expression language to compile to and execute", "Type": { - "$ref": "2" + "$ref": "12" }, "IsRequired": false, "IsReadOnly": false }, { - "$id": "83", + "$id": "114", "Name": "expression", "SerializedName": "expression", "Description": "The string containing the expression to evaluate. Should contain return statement with calculated values.", "Type": { - "$id": "84", + "$id": "115", "Name": "string", "Kind": "String", "IsNullable": false @@ -630,25 +873,25 @@ ] }, { - "$id": "85", + "$id": "116", "Name": "FunctionRouterRule", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "A rule providing a binding to an HTTP Triggered Azure Function.", "IsNullable": false, - "DiscriminatorValue": "azure-function-rule", + "DiscriminatorValue": "function", "BaseModel": { - "$ref": "77" + "$ref": "109" }, "Usage": "Output", "Properties": [ { - "$id": "86", + "$id": "117", "Name": "functionUri", "SerializedName": "functionUri", "Description": "URL for Azure Function", "Type": { - "$id": "87", + "$id": "118", "Name": "url", "Kind": "Uri", "IsNullable": false @@ -657,12 +900,12 @@ "IsReadOnly": false }, { - "$id": "88", + "$id": "119", "Name": "credential", "SerializedName": "credential", "Description": "Credentials used to access Azure function rule", "Type": { - "$id": "89", + "$id": "120", "Name": "FunctionRouterRuleCredential", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -671,12 +914,12 @@ "Usage": "Output", "Properties": [ { - "$id": "90", + "$id": "121", "Name": "functionKey", "SerializedName": "functionKey", "Description": "Access key scoped to a particular function", "Type": { - "$id": "91", + "$id": "122", "Name": "string", "Kind": "String", "IsNullable": false @@ -685,12 +928,12 @@ "IsReadOnly": false }, { - "$id": "92", + "$id": "123", "Name": "appKey", "SerializedName": "appKey", "Description": "Access key scoped to a Azure Function app. This key grants access to all functions under the app.", "Type": { - "$id": "93", + "$id": "124", "Name": "string", "Kind": "String", "IsNullable": false @@ -699,12 +942,12 @@ "IsReadOnly": false }, { - "$id": "94", + "$id": "125", "Name": "clientId", "SerializedName": "clientId", "Description": "Client id, when AppKey is provided In context of Azure function, this is usually the name of the key", "Type": { - "$id": "95", + "$id": "126", "Name": "string", "Kind": "String", "IsNullable": false @@ -720,25 +963,25 @@ ] }, { - "$id": "96", + "$id": "127", "Name": "StaticRouterRule", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "A rule providing static rules that always return the same result, regardless of input.", "IsNullable": false, - "DiscriminatorValue": "static-rule", + "DiscriminatorValue": "static", "BaseModel": { - "$ref": "77" + "$ref": "109" }, "Usage": "Output", "Properties": [ { - "$id": "97", + "$id": "128", "Name": "value", "SerializedName": "value", "Description": "The static value this rule always returns. Values must be primitive values - number, string, boolean.", "Type": { - "$id": "98", + "$id": "129", "Name": "Intrinsic", "Kind": "unknown", "IsNullable": false @@ -749,25 +992,25 @@ ] }, { - "$id": "99", + "$id": "130", "Name": "WebhookRouterRule", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "A rule providing a binding to an external web server.", "IsNullable": false, - "DiscriminatorValue": "webhook-rule", + "DiscriminatorValue": "webhook", "BaseModel": { - "$ref": "77" + "$ref": "109" }, "Usage": "Output", "Properties": [ { - "$id": "100", + "$id": "131", "Name": "authorizationServerUri", "SerializedName": "authorizationServerUri", "Description": "Uri for Authorization Server.", "Type": { - "$id": "101", + "$id": "132", "Name": "url", "Kind": "Uri", "IsNullable": false @@ -776,12 +1019,12 @@ "IsReadOnly": false }, { - "$id": "102", + "$id": "133", "Name": "clientCredential", "SerializedName": "clientCredential", "Description": "OAuth2.0 Credentials used to Contoso's Authorization server. Reference: https://www.oauth.com/oauth2-servers/access-tokens/client-credentials/", "Type": { - "$id": "103", + "$id": "134", "Name": "OAuth2WebhookClientCredential", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -790,12 +1033,12 @@ "Usage": "Output", "Properties": [ { - "$id": "104", + "$id": "135", "Name": "clientId", "SerializedName": "clientId", "Description": "ClientId for Contoso Authorization server.", "Type": { - "$id": "105", + "$id": "136", "Name": "string", "Kind": "String", "IsNullable": false @@ -804,12 +1047,12 @@ "IsReadOnly": false }, { - "$id": "106", + "$id": "137", "Name": "clientSecret", "SerializedName": "clientSecret", "Description": "Client secret for Contoso Authorization server.", "Type": { - "$id": "107", + "$id": "138", "Name": "string", "Kind": "String", "IsNullable": false @@ -823,12 +1066,12 @@ "IsReadOnly": false }, { - "$id": "108", + "$id": "139", "Name": "webhookUri", "SerializedName": "webhookUri", "Description": "Uri for Contoso's Web Server.", "Type": { - "$id": "109", + "$id": "140", "Name": "url", "Kind": "Uri", "IsNullable": false @@ -844,12 +1087,12 @@ "IsReadOnly": false }, { - "$id": "110", + "$id": "141", "Name": "scoringRuleOptions", "SerializedName": "scoringRuleOptions", "Description": "Options to configure 'scoringRule'. If not set, default values are used.", "Type": { - "$id": "111", + "$id": "142", "Name": "ScoringRuleOptions", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -858,12 +1101,12 @@ "Usage": "Output", "Properties": [ { - "$id": "112", + "$id": "143", "Name": "batchSize", "SerializedName": "batchSize", "Description": "Set batch size when 'isBatchScoringEnabled' is set to true. Defaults to 20 if not configured.", "Type": { - "$id": "113", + "$id": "144", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -872,15 +1115,15 @@ "IsReadOnly": false }, { - "$id": "114", + "$id": "145", "Name": "scoringParameters", "SerializedName": "scoringParameters", "Description": "List of extra parameters from the job that will be sent as part of the payload to scoring rule. If not set, the job's labels (sent in the payload as `job`) and the job's worker selectors (sent in the payload as `selectors`) are added to the payload of the scoring rule by default. Note: Worker labels are always sent with scoring payload.", "Type": { - "$id": "115", + "$id": "146", "Name": "Array", "ElementType": { - "$ref": "4" + "$ref": "14" }, "IsNullable": false }, @@ -888,12 +1131,12 @@ "IsReadOnly": false }, { - "$id": "116", + "$id": "147", "Name": "isBatchScoringEnabled", "SerializedName": "isBatchScoringEnabled", "Description": "If set to true, will score workers in batches, and the parameter name of the worker labels will be sent as `workers`. By default, set to false and the parameter name for the worker labels will be sent as `worker`. Note: If enabled, use 'batchSize' to set batch size.", "Type": { - "$id": "117", + "$id": "148", "Name": "boolean", "Kind": "Boolean", "IsNullable": false @@ -902,12 +1145,12 @@ "IsReadOnly": false }, { - "$id": "118", + "$id": "149", "Name": "descendingOrder", "SerializedName": "descendingOrder", "Description": "If false, will sort scores by ascending order. By default, set to true.", "Type": { - "$id": "119", + "$id": "150", "Name": "boolean", "Kind": "Boolean", "IsNullable": false @@ -923,29 +1166,29 @@ ] }, { - "$id": "120", + "$id": "151", "Name": "LongestIdleMode", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "Jobs are directed to the worker who has been idle longest.", "IsNullable": false, - "DiscriminatorValue": "longest-idle", + "DiscriminatorValue": "longestIdle", "BaseModel": { - "$ref": "66" + "$ref": "99" }, "Usage": "Output", "Properties": [] }, { - "$id": "121", + "$id": "152", "Name": "RoundRobinMode", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "Jobs are distributed in order to workers, starting with the worker that is after the last worker to receive a job.", "IsNullable": false, - "DiscriminatorValue": "round-robin", + "DiscriminatorValue": "roundRobin", "BaseModel": { - "$ref": "66" + "$ref": "99" }, "Usage": "Output", "Properties": [] @@ -958,46 +1201,46 @@ ] }, { - "$ref": "66" + "$ref": "99" }, { - "$ref": "75" + "$ref": "107" }, { - "$ref": "77" + "$ref": "109" }, { - "$ref": "80" + "$ref": "111" }, { - "$ref": "81" + "$ref": "112" }, { - "$ref": "85" + "$ref": "116" }, { - "$ref": "89" + "$ref": "120" }, { - "$ref": "96" + "$ref": "127" }, { - "$ref": "99" + "$ref": "130" }, { - "$ref": "103" + "$ref": "134" }, { - "$ref": "111" + "$ref": "142" }, { - "$ref": "120" + "$ref": "151" }, { - "$ref": "121" + "$ref": "152" }, { - "$id": "122", + "$id": "153", "Name": "PagedDistributionPolicy", "Namespace": "Azure.Core.Foundations", "Description": "Paged collection of DistributionPolicy items", @@ -1005,15 +1248,15 @@ "Usage": "Output", "Properties": [ { - "$id": "123", + "$id": "154", "Name": "value", "SerializedName": "value", "Description": "The DistributionPolicy items on this page", "Type": { - "$id": "124", + "$id": "155", "Name": "Array", "ElementType": { - "$ref": "56" + "$ref": "89" }, "IsNullable": false }, @@ -1021,12 +1264,12 @@ "IsReadOnly": false }, { - "$id": "125", + "$id": "156", "Name": "nextLink", "SerializedName": "nextLink", "Description": "The link to the next page of items", "Type": { - "$id": "126", + "$id": "157", "Name": "ResourceLocation", "Kind": "Uri", "IsNullable": false @@ -1037,7 +1280,7 @@ ] }, { - "$id": "127", + "$id": "158", "Name": "ClassificationPolicy", "Namespace": "AzureCommunicationRoutingService", "Description": "A container for the rules that govern how jobs are classified.", @@ -1045,12 +1288,12 @@ "Usage": "Output", "Properties": [ { - "$id": "128", + "$id": "159", "Name": "etag", "SerializedName": "etag", "Description": "The entity tag for this resource.", "Type": { - "$id": "129", + "$id": "160", "Name": "eTag", "Kind": "String", "IsNullable": false @@ -1059,12 +1302,12 @@ "IsReadOnly": true }, { - "$id": "130", + "$id": "161", "Name": "id", "SerializedName": "id", "Description": "Unique identifier of this policy.", "Type": { - "$id": "131", + "$id": "162", "Name": "string", "Kind": "String", "IsNullable": false @@ -1073,12 +1316,12 @@ "IsReadOnly": true }, { - "$id": "132", + "$id": "163", "Name": "name", "SerializedName": "name", "Description": "Friendly name of this policy.", "Type": { - "$id": "133", + "$id": "164", "Name": "string", "Kind": "String", "IsNullable": false @@ -1087,12 +1330,12 @@ "IsReadOnly": false }, { - "$id": "134", + "$id": "165", "Name": "fallbackQueueId", "SerializedName": "fallbackQueueId", "Description": "The fallback queue to select if the queue selector doesn't find a match.", "Type": { - "$id": "135", + "$id": "166", "Name": "string", "Kind": "String", "IsNullable": false @@ -1101,15 +1344,15 @@ "IsReadOnly": false }, { - "$id": "136", + "$id": "167", "Name": "queueSelectorAttachments", "SerializedName": "queueSelectorAttachments", "Description": "The queue selector attachments used to resolve a queue for a given job.", "Type": { - "$id": "137", + "$id": "168", "Name": "Array", "ElementType": { - "$id": "138", + "$id": "169", "Name": "QueueSelectorAttachment", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -1119,15 +1362,12 @@ "Usage": "Output", "Properties": [ { - "$id": "139", + "$id": "170", "Name": "kind", "SerializedName": "kind", "Description": "The type discriminator describing a sub-type of QueueSelectorAttachment", "Type": { - "$id": "140", - "Name": "string", - "Kind": "String", - "IsNullable": false + "$ref": "17" }, "IsRequired": true, "IsReadOnly": false, @@ -1136,7 +1376,7 @@ ], "DerivedModels": [ { - "$id": "141", + "$id": "171", "Name": "ConditionalQueueSelectorAttachment", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -1144,31 +1384,31 @@ "IsNullable": false, "DiscriminatorValue": "conditional", "BaseModel": { - "$ref": "138" + "$ref": "169" }, "Usage": "Output", "Properties": [ { - "$id": "142", + "$id": "172", "Name": "condition", "SerializedName": "condition", "Description": "The condition that must be true for the queue selectors to be attached", "Type": { - "$ref": "77" + "$ref": "109" }, "IsRequired": true, "IsReadOnly": false }, { - "$id": "143", + "$id": "173", "Name": "queueSelectors", "SerializedName": "queueSelectors", "Description": "The queue selectors to attach", "Type": { - "$id": "144", + "$id": "174", "Name": "Array", "ElementType": { - "$id": "145", + "$id": "175", "Name": "RouterQueueSelector", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -1177,12 +1417,12 @@ "Usage": "Output", "Properties": [ { - "$id": "146", + "$id": "176", "Name": "key", "SerializedName": "key", "Description": "The label key to query against", "Type": { - "$id": "147", + "$id": "177", "Name": "string", "Kind": "String", "IsNullable": false @@ -1191,23 +1431,23 @@ "IsReadOnly": false }, { - "$id": "148", + "$id": "178", "Name": "labelOperator", "SerializedName": "labelOperator", "Description": "Describes how the value of the label is compared to the value defined on the label selector", "Type": { - "$ref": "7" + "$ref": "23" }, "IsRequired": true, "IsReadOnly": false }, { - "$id": "149", + "$id": "179", "Name": "value", "SerializedName": "value", "Description": "The value to compare against the actual label value with the given operator. Values must be primitive values - number, string, boolean.", "Type": { - "$id": "150", + "$id": "180", "Name": "Intrinsic", "Kind": "unknown", "IsNullable": false @@ -1225,25 +1465,25 @@ ] }, { - "$id": "151", + "$id": "181", "Name": "PassThroughQueueSelectorAttachment", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "Attaches a queue selector where the value is passed through from the job label with the same key", "IsNullable": false, - "DiscriminatorValue": "pass-through", + "DiscriminatorValue": "passThrough", "BaseModel": { - "$ref": "138" + "$ref": "169" }, "Usage": "Output", "Properties": [ { - "$id": "152", + "$id": "182", "Name": "key", "SerializedName": "key", "Description": "The label key to query against", "Type": { - "$id": "153", + "$id": "183", "Name": "string", "Kind": "String", "IsNullable": false @@ -1252,12 +1492,12 @@ "IsReadOnly": false }, { - "$id": "154", + "$id": "184", "Name": "labelOperator", "SerializedName": "labelOperator", "Description": "Describes how the value of the label is compared to the value pass through", "Type": { - "$ref": "7" + "$ref": "23" }, "IsRequired": true, "IsReadOnly": false @@ -1265,25 +1505,25 @@ ] }, { - "$id": "155", + "$id": "185", "Name": "RuleEngineQueueSelectorAttachment", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "Attaches queue selectors to a job when the RouterRule is resolved", "IsNullable": false, - "DiscriminatorValue": "rule-engine", + "DiscriminatorValue": "ruleEngine", "BaseModel": { - "$ref": "138" + "$ref": "169" }, "Usage": "Output", "Properties": [ { - "$id": "156", + "$id": "186", "Name": "rule", "SerializedName": "rule", "Description": "A RouterRule that resolves a collection of queue selectors to attach", "Type": { - "$ref": "77" + "$ref": "109" }, "IsRequired": true, "IsReadOnly": false @@ -1291,7 +1531,7 @@ ] }, { - "$id": "157", + "$id": "187", "Name": "StaticQueueSelectorAttachment", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -1299,17 +1539,17 @@ "IsNullable": false, "DiscriminatorValue": "static", "BaseModel": { - "$ref": "138" + "$ref": "169" }, "Usage": "Output", "Properties": [ { - "$id": "158", + "$id": "188", "Name": "queueSelector", "SerializedName": "queueSelector", "Description": "The queue selector to attach.", "Type": { - "$ref": "145" + "$ref": "175" }, "IsRequired": true, "IsReadOnly": false @@ -1317,28 +1557,28 @@ ] }, { - "$id": "159", + "$id": "189", "Name": "WeightedAllocationQueueSelectorAttachment", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "Describes multiple sets of queue selectors, of which one will be selected and attached according to a weighting", "IsNullable": false, - "DiscriminatorValue": "weighted-allocation-queue-selector", + "DiscriminatorValue": "weightedAllocation", "BaseModel": { - "$ref": "138" + "$ref": "169" }, "Usage": "Output", "Properties": [ { - "$id": "160", + "$id": "190", "Name": "allocations", "SerializedName": "allocations", "Description": "A collection of percentage based weighted allocations.", "Type": { - "$id": "161", + "$id": "191", "Name": "Array", "ElementType": { - "$id": "162", + "$id": "192", "Name": "QueueWeightedAllocation", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -1347,12 +1587,12 @@ "Usage": "Output", "Properties": [ { - "$id": "163", + "$id": "193", "Name": "weight", "SerializedName": "weight", "Description": "The percentage of this weight, expressed as a fraction of 1.", "Type": { - "$id": "164", + "$id": "194", "Name": "float64", "Kind": "Float64", "IsNullable": false @@ -1361,15 +1601,15 @@ "IsReadOnly": false }, { - "$id": "165", + "$id": "195", "Name": "queueSelectors", "SerializedName": "queueSelectors", "Description": "A collection of queue selectors that will be applied if this allocation is selected.", "Type": { - "$id": "166", + "$id": "196", "Name": "Array", "ElementType": { - "$ref": "145" + "$ref": "175" }, "IsNullable": false }, @@ -1393,26 +1633,26 @@ "IsReadOnly": false }, { - "$id": "167", + "$id": "197", "Name": "prioritizationRule", "SerializedName": "prioritizationRule", "Description": "The rule to determine a priority score for a given job.", "Type": { - "$ref": "77" + "$ref": "109" }, "IsRequired": false, "IsReadOnly": false }, { - "$id": "168", + "$id": "198", "Name": "workerSelectorAttachments", "SerializedName": "workerSelectorAttachments", "Description": "The worker selector attachments used to attach worker selectors to a given job.", "Type": { - "$id": "169", + "$id": "199", "Name": "Array", "ElementType": { - "$id": "170", + "$id": "200", "Name": "WorkerSelectorAttachment", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -1422,15 +1662,12 @@ "Usage": "Output", "Properties": [ { - "$id": "171", + "$id": "201", "Name": "kind", "SerializedName": "kind", "Description": "The type discriminator describing a sub-type of WorkerSelectorAttachment", "Type": { - "$id": "172", - "Name": "string", - "Kind": "String", - "IsNullable": false + "$ref": "30" }, "IsRequired": true, "IsReadOnly": false, @@ -1439,7 +1676,7 @@ ], "DerivedModels": [ { - "$id": "173", + "$id": "202", "Name": "ConditionalWorkerSelectorAttachment", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -1447,31 +1684,31 @@ "IsNullable": false, "DiscriminatorValue": "conditional", "BaseModel": { - "$ref": "170" + "$ref": "200" }, "Usage": "Output", "Properties": [ { - "$id": "174", + "$id": "203", "Name": "condition", "SerializedName": "condition", "Description": "The condition that must be true for the worker selectors to be attached", "Type": { - "$ref": "77" + "$ref": "109" }, "IsRequired": true, "IsReadOnly": false }, { - "$id": "175", + "$id": "204", "Name": "workerSelectors", "SerializedName": "workerSelectors", "Description": "The worker selectors to attach", "Type": { - "$id": "176", + "$id": "205", "Name": "Array", "ElementType": { - "$id": "177", + "$id": "206", "Name": "RouterWorkerSelector", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -1480,12 +1717,12 @@ "Usage": "Output", "Properties": [ { - "$id": "178", + "$id": "207", "Name": "key", "SerializedName": "key", "Description": "The label key to query against", "Type": { - "$id": "179", + "$id": "208", "Name": "string", "Kind": "String", "IsNullable": false @@ -1494,23 +1731,23 @@ "IsReadOnly": false }, { - "$id": "180", + "$id": "209", "Name": "labelOperator", "SerializedName": "labelOperator", "Description": "Describes how the value of the label is compared to the value defined on the label selector", "Type": { - "$ref": "7" + "$ref": "23" }, "IsRequired": true, "IsReadOnly": false }, { - "$id": "181", + "$id": "210", "Name": "value", "SerializedName": "value", "Description": "The value to compare against the actual label value with the given operator. Values must be primitive values - number, string, boolean.", "Type": { - "$id": "182", + "$id": "211", "Name": "Intrinsic", "Kind": "unknown", "IsNullable": false @@ -1519,12 +1756,12 @@ "IsReadOnly": false }, { - "$id": "183", + "$id": "212", "Name": "expiresAfterSeconds", "SerializedName": "expiresAfterSeconds", "Description": "Describes how long this label selector is valid in seconds.", "Type": { - "$id": "184", + "$id": "213", "Name": "float64", "Kind": "Float64", "IsNullable": false @@ -1533,12 +1770,12 @@ "IsReadOnly": false }, { - "$id": "185", + "$id": "214", "Name": "expedite", "SerializedName": "expedite", "Description": "Pushes the job to the front of the queue as long as this selector is active.", "Type": { - "$id": "186", + "$id": "215", "Name": "boolean", "Kind": "Boolean", "IsNullable": false @@ -1547,23 +1784,23 @@ "IsReadOnly": false }, { - "$id": "187", + "$id": "216", "Name": "status", "SerializedName": "status", "Description": "The status of the worker selector.", "Type": { - "$ref": "14" + "$ref": "36" }, "IsRequired": false, "IsReadOnly": true }, { - "$id": "188", + "$id": "217", "Name": "expiresAt", "SerializedName": "expiresAt", "Description": "The time at which this worker selector expires in UTC", "Type": { - "$id": "189", + "$id": "218", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -1581,25 +1818,25 @@ ] }, { - "$id": "190", + "$id": "219", "Name": "PassThroughWorkerSelectorAttachment", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "Attaches a worker selector where the value is passed through from the job label with the same key", "IsNullable": false, - "DiscriminatorValue": "pass-through", + "DiscriminatorValue": "passThrough", "BaseModel": { - "$ref": "170" + "$ref": "200" }, "Usage": "Output", "Properties": [ { - "$id": "191", + "$id": "220", "Name": "key", "SerializedName": "key", "Description": "The label key to query against", "Type": { - "$id": "192", + "$id": "221", "Name": "string", "Kind": "String", "IsNullable": false @@ -1608,23 +1845,23 @@ "IsReadOnly": false }, { - "$id": "193", + "$id": "222", "Name": "labelOperator", "SerializedName": "labelOperator", "Description": "Describes how the value of the label is compared to the value pass through", "Type": { - "$ref": "7" + "$ref": "23" }, "IsRequired": true, "IsReadOnly": false }, { - "$id": "194", + "$id": "223", "Name": "expiresAfterSeconds", "SerializedName": "expiresAfterSeconds", "Description": "Describes how long the attached label selector is valid in seconds.", "Type": { - "$id": "195", + "$id": "224", "Name": "float64", "Kind": "Float64", "IsNullable": false @@ -1635,25 +1872,25 @@ ] }, { - "$id": "196", + "$id": "225", "Name": "RuleEngineWorkerSelectorAttachment", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "Attaches worker selectors to a job when a RouterRule is resolved", "IsNullable": false, - "DiscriminatorValue": "rule-engine", + "DiscriminatorValue": "ruleEngine", "BaseModel": { - "$ref": "170" + "$ref": "200" }, "Usage": "Output", "Properties": [ { - "$id": "197", + "$id": "226", "Name": "rule", "SerializedName": "rule", "Description": "A RouterRule that resolves a collection of worker selectors to attach", "Type": { - "$ref": "77" + "$ref": "109" }, "IsRequired": true, "IsReadOnly": false @@ -1661,7 +1898,7 @@ ] }, { - "$id": "198", + "$id": "227", "Name": "StaticWorkerSelectorAttachment", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -1669,17 +1906,17 @@ "IsNullable": false, "DiscriminatorValue": "static", "BaseModel": { - "$ref": "170" + "$ref": "200" }, "Usage": "Output", "Properties": [ { - "$id": "199", + "$id": "228", "Name": "workerSelector", "SerializedName": "workerSelector", "Description": "The worker selector to attach.", "Type": { - "$ref": "177" + "$ref": "206" }, "IsRequired": true, "IsReadOnly": false @@ -1687,28 +1924,28 @@ ] }, { - "$id": "200", + "$id": "229", "Name": "WeightedAllocationWorkerSelectorAttachment", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "Describes multiple sets of worker selectors, of which one will be selected and attached according to a weighting", "IsNullable": false, - "DiscriminatorValue": "weighted-allocation-worker-selector", + "DiscriminatorValue": "weightedAllocation", "BaseModel": { - "$ref": "170" + "$ref": "200" }, "Usage": "Output", "Properties": [ { - "$id": "201", + "$id": "230", "Name": "allocations", "SerializedName": "allocations", "Description": "A collection of percentage based weighted allocations.", "Type": { - "$id": "202", + "$id": "231", "Name": "Array", "ElementType": { - "$id": "203", + "$id": "232", "Name": "WorkerWeightedAllocation", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -1717,12 +1954,12 @@ "Usage": "Output", "Properties": [ { - "$id": "204", + "$id": "233", "Name": "weight", "SerializedName": "weight", "Description": "The percentage of this weight, expressed as a fraction of 1.", "Type": { - "$id": "205", + "$id": "234", "Name": "float64", "Kind": "Float64", "IsNullable": false @@ -1731,15 +1968,15 @@ "IsReadOnly": false }, { - "$id": "206", + "$id": "235", "Name": "workerSelectors", "SerializedName": "workerSelectors", "Description": "A collection of worker selectors that will be applied if this allocation is selected.", "Type": { - "$id": "207", + "$id": "236", "Name": "Array", "ElementType": { - "$ref": "177" + "$ref": "206" }, "IsNullable": false }, @@ -1765,55 +2002,55 @@ ] }, { - "$ref": "138" + "$ref": "169" }, { - "$ref": "141" + "$ref": "171" }, { - "$ref": "145" + "$ref": "175" }, { - "$ref": "151" + "$ref": "181" }, { - "$ref": "155" + "$ref": "185" }, { - "$ref": "157" + "$ref": "187" }, { - "$ref": "159" + "$ref": "189" }, { - "$ref": "162" + "$ref": "192" }, { - "$ref": "170" + "$ref": "200" }, { - "$ref": "173" + "$ref": "202" }, { - "$ref": "177" + "$ref": "206" }, { - "$ref": "190" + "$ref": "219" }, { - "$ref": "196" + "$ref": "225" }, { - "$ref": "198" + "$ref": "227" }, { - "$ref": "200" + "$ref": "229" }, { - "$ref": "203" + "$ref": "232" }, { - "$id": "208", + "$id": "237", "Name": "PagedClassificationPolicy", "Namespace": "Azure.Core.Foundations", "Description": "Paged collection of ClassificationPolicy items", @@ -1821,15 +2058,15 @@ "Usage": "Output", "Properties": [ { - "$id": "209", + "$id": "238", "Name": "value", "SerializedName": "value", "Description": "The ClassificationPolicy items on this page", "Type": { - "$id": "210", + "$id": "239", "Name": "Array", "ElementType": { - "$ref": "127" + "$ref": "158" }, "IsNullable": false }, @@ -1837,12 +2074,12 @@ "IsReadOnly": false }, { - "$id": "211", + "$id": "240", "Name": "nextLink", "SerializedName": "nextLink", "Description": "The link to the next page of items", "Type": { - "$id": "212", + "$id": "241", "Name": "ResourceLocation", "Kind": "Uri", "IsNullable": false @@ -1853,7 +2090,7 @@ ] }, { - "$id": "213", + "$id": "242", "Name": "ExceptionPolicy", "Namespace": "AzureCommunicationRoutingService", "Description": "A policy that defines actions to execute when exception are triggered.", @@ -1861,12 +2098,12 @@ "Usage": "Output", "Properties": [ { - "$id": "214", + "$id": "243", "Name": "etag", "SerializedName": "etag", "Description": "The entity tag for this resource.", "Type": { - "$id": "215", + "$id": "244", "Name": "eTag", "Kind": "String", "IsNullable": false @@ -1875,12 +2112,12 @@ "IsReadOnly": true }, { - "$id": "216", + "$id": "245", "Name": "id", "SerializedName": "id", "Description": "The Id of the exception policy", "Type": { - "$id": "217", + "$id": "246", "Name": "string", "Kind": "String", "IsNullable": false @@ -1889,12 +2126,12 @@ "IsReadOnly": true }, { - "$id": "218", + "$id": "247", "Name": "name", "SerializedName": "name", "Description": "The name of the exception policy.", "Type": { - "$id": "219", + "$id": "248", "Name": "string", "Kind": "String", "IsNullable": false @@ -1903,15 +2140,15 @@ "IsReadOnly": false }, { - "$id": "220", + "$id": "249", "Name": "exceptionRules", "SerializedName": "exceptionRules", "Description": "A collection of exception rules on the exception policy.", "Type": { - "$id": "221", + "$id": "250", "Name": "Array", "ElementType": { - "$id": "222", + "$id": "251", "Name": "ExceptionRule", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -1920,12 +2157,12 @@ "Usage": "Output", "Properties": [ { - "$id": "223", + "$id": "252", "Name": "id", "SerializedName": "id", "Description": "Id of the exception rule.", "Type": { - "$id": "224", + "$id": "253", "Name": "string", "Kind": "String", "IsNullable": false @@ -1934,12 +2171,12 @@ "IsReadOnly": false }, { - "$id": "225", + "$id": "254", "Name": "trigger", "SerializedName": "trigger", "Description": "The trigger for this exception rule", "Type": { - "$id": "226", + "$id": "255", "Name": "ExceptionTrigger", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -1949,15 +2186,12 @@ "Usage": "Output", "Properties": [ { - "$id": "227", + "$id": "256", "Name": "kind", "SerializedName": "kind", "Description": "The type discriminator describing a sub-type of ExceptionTrigger", "Type": { - "$id": "228", - "Name": "string", - "Kind": "String", - "IsNullable": false + "$ref": "39" }, "IsRequired": true, "IsReadOnly": false, @@ -1966,25 +2200,25 @@ ], "DerivedModels": [ { - "$id": "229", + "$id": "257", "Name": "QueueLengthExceptionTrigger", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "Trigger for an exception action on exceeding queue length", "IsNullable": false, - "DiscriminatorValue": "queue-length", + "DiscriminatorValue": "queueLength", "BaseModel": { - "$ref": "226" + "$ref": "255" }, "Usage": "Output", "Properties": [ { - "$id": "230", + "$id": "258", "Name": "threshold", "SerializedName": "threshold", "Description": "Threshold of number of jobs ahead in the queue to for this trigger to fire.", "Type": { - "$id": "231", + "$id": "259", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -1995,25 +2229,25 @@ ] }, { - "$id": "232", + "$id": "260", "Name": "WaitTimeExceptionTrigger", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "Trigger for an exception action on exceeding wait time", "IsNullable": false, - "DiscriminatorValue": "wait-time", + "DiscriminatorValue": "waitTime", "BaseModel": { - "$ref": "226" + "$ref": "255" }, "Usage": "Output", "Properties": [ { - "$id": "233", + "$id": "261", "Name": "thresholdSeconds", "SerializedName": "thresholdSeconds", "Description": "Threshold for wait time for this trigger.", "Type": { - "$id": "234", + "$id": "262", "Name": "float64", "Kind": "Float64", "IsNullable": false @@ -2029,15 +2263,15 @@ "IsReadOnly": false }, { - "$id": "235", + "$id": "263", "Name": "actions", "SerializedName": "actions", "Description": "A collection of actions to perform once the exception is triggered.", "Type": { - "$id": "236", + "$id": "264", "Name": "Array", "ElementType": { - "$id": "237", + "$id": "265", "Name": "ExceptionAction", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -2047,12 +2281,12 @@ "Usage": "Output", "Properties": [ { - "$id": "238", + "$id": "266", "Name": "id", "SerializedName": "id", "Description": "Unique Id of the exception action", "Type": { - "$id": "239", + "$id": "267", "Name": "string", "Kind": "String", "IsNullable": false @@ -2061,15 +2295,12 @@ "IsReadOnly": false }, { - "$id": "240", + "$id": "268", "Name": "kind", "SerializedName": "kind", "Description": "The type discriminator describing a sub-type of ExceptionAction", "Type": { - "$id": "241", - "Name": "string", - "Kind": "String", - "IsNullable": false + "$ref": "42" }, "IsRequired": true, "IsReadOnly": false, @@ -2078,7 +2309,7 @@ ], "DerivedModels": [ { - "$id": "242", + "$id": "269", "Name": "CancelExceptionAction", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -2086,17 +2317,17 @@ "IsNullable": false, "DiscriminatorValue": "cancel", "BaseModel": { - "$ref": "237" + "$ref": "265" }, "Usage": "Output", "Properties": [ { - "$id": "243", + "$id": "270", "Name": "note", "SerializedName": "note", "Description": "A note that will be appended to the jobs' Notes collection with the current timestamp.", "Type": { - "$id": "244", + "$id": "271", "Name": "string", "Kind": "String", "IsNullable": false @@ -2105,12 +2336,12 @@ "IsReadOnly": false }, { - "$id": "245", + "$id": "272", "Name": "dispositionCode", "SerializedName": "dispositionCode", "Description": "Indicates the outcome of the job, populate this field with your own custom values.", "Type": { - "$id": "246", + "$id": "273", "Name": "string", "Kind": "String", "IsNullable": false @@ -2121,25 +2352,25 @@ ] }, { - "$id": "247", + "$id": "274", "Name": "ManualReclassifyExceptionAction", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "An action that manually reclassifies a job by providing the queue, priority and worker selectors.", "IsNullable": false, - "DiscriminatorValue": "manual-reclassify", + "DiscriminatorValue": "manualReclassify", "BaseModel": { - "$ref": "237" + "$ref": "265" }, "Usage": "Output", "Properties": [ { - "$id": "248", + "$id": "275", "Name": "queueId", "SerializedName": "queueId", "Description": "Updated QueueId.", "Type": { - "$id": "249", + "$id": "276", "Name": "string", "Kind": "String", "IsNullable": false @@ -2148,12 +2379,12 @@ "IsReadOnly": false }, { - "$id": "250", + "$id": "277", "Name": "priority", "SerializedName": "priority", "Description": "Updated Priority.", "Type": { - "$id": "251", + "$id": "278", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -2162,15 +2393,15 @@ "IsReadOnly": false }, { - "$id": "252", + "$id": "279", "Name": "workerSelectors", "SerializedName": "workerSelectors", "Description": "Updated WorkerSelectors.", "Type": { - "$id": "253", + "$id": "280", "Name": "Array", "ElementType": { - "$ref": "177" + "$ref": "206" }, "IsNullable": false }, @@ -2180,7 +2411,7 @@ ] }, { - "$id": "254", + "$id": "281", "Name": "ReclassifyExceptionAction", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -2188,17 +2419,17 @@ "IsNullable": false, "DiscriminatorValue": "reclassify", "BaseModel": { - "$ref": "237" + "$ref": "265" }, "Usage": "Output", "Properties": [ { - "$id": "255", + "$id": "282", "Name": "classificationPolicyId", "SerializedName": "classificationPolicyId", "Description": "The new classification policy that will determine queue, priority and worker selectors.", "Type": { - "$id": "256", + "$id": "283", "Name": "string", "Kind": "String", "IsNullable": false @@ -2207,21 +2438,21 @@ "IsReadOnly": false }, { - "$id": "257", + "$id": "284", "Name": "labelsToUpsert", "SerializedName": "labelsToUpsert", "Description": "Dictionary containing the labels to update (or add if not existing) in key-value pairs. Values must be primitive values - number, string, boolean.", "Type": { - "$id": "258", + "$id": "285", "Name": "Dictionary", "KeyType": { - "$id": "259", + "$id": "286", "Name": "string", "Kind": "String", "IsNullable": false }, "ValueType": { - "$id": "260", + "$id": "287", "Name": "Intrinsic", "Kind": "unknown", "IsNullable": false @@ -2250,31 +2481,31 @@ ] }, { - "$ref": "222" + "$ref": "251" }, { - "$ref": "226" + "$ref": "255" }, { - "$ref": "229" + "$ref": "257" }, { - "$ref": "232" + "$ref": "260" }, { - "$ref": "237" + "$ref": "265" }, { - "$ref": "242" + "$ref": "269" }, { - "$ref": "247" + "$ref": "274" }, { - "$ref": "254" + "$ref": "281" }, { - "$id": "261", + "$id": "288", "Name": "PagedExceptionPolicy", "Namespace": "Azure.Core.Foundations", "Description": "Paged collection of ExceptionPolicy items", @@ -2282,15 +2513,15 @@ "Usage": "Output", "Properties": [ { - "$id": "262", + "$id": "289", "Name": "value", "SerializedName": "value", "Description": "The ExceptionPolicy items on this page", "Type": { - "$id": "263", + "$id": "290", "Name": "Array", "ElementType": { - "$ref": "213" + "$ref": "242" }, "IsNullable": false }, @@ -2298,12 +2529,12 @@ "IsReadOnly": false }, { - "$id": "264", + "$id": "291", "Name": "nextLink", "SerializedName": "nextLink", "Description": "The link to the next page of items", "Type": { - "$id": "265", + "$id": "292", "Name": "ResourceLocation", "Kind": "Uri", "IsNullable": false @@ -2314,7 +2545,7 @@ ] }, { - "$id": "266", + "$id": "293", "Name": "RouterQueue", "Namespace": "AzureCommunicationRoutingService", "Description": "A queue that can contain jobs to be routed.", @@ -2322,12 +2553,12 @@ "Usage": "Output", "Properties": [ { - "$id": "267", + "$id": "294", "Name": "etag", "SerializedName": "etag", "Description": "The entity tag for this resource.", "Type": { - "$id": "268", + "$id": "295", "Name": "eTag", "Kind": "String", "IsNullable": false @@ -2336,12 +2567,12 @@ "IsReadOnly": true }, { - "$id": "269", + "$id": "296", "Name": "id", "SerializedName": "id", "Description": "The Id of this queue", "Type": { - "$id": "270", + "$id": "297", "Name": "string", "Kind": "String", "IsNullable": false @@ -2350,12 +2581,12 @@ "IsReadOnly": true }, { - "$id": "271", + "$id": "298", "Name": "name", "SerializedName": "name", "Description": "The name of this queue.", "Type": { - "$id": "272", + "$id": "299", "Name": "string", "Kind": "String", "IsNullable": false @@ -2364,12 +2595,12 @@ "IsReadOnly": false }, { - "$id": "273", + "$id": "300", "Name": "distributionPolicyId", "SerializedName": "distributionPolicyId", "Description": "The ID of the distribution policy that will determine how a job is distributed to workers.", "Type": { - "$id": "274", + "$id": "301", "Name": "string", "Kind": "String", "IsNullable": false @@ -2378,21 +2609,21 @@ "IsReadOnly": false }, { - "$id": "275", + "$id": "302", "Name": "labels", "SerializedName": "labels", "Description": "A set of key/value pairs that are identifying attributes used by the rules engines to make decisions. Values must be primitive values - number, string, boolean.", "Type": { - "$id": "276", + "$id": "303", "Name": "Dictionary", "KeyType": { - "$id": "277", + "$id": "304", "Name": "string", "Kind": "String", "IsNullable": false }, "ValueType": { - "$id": "278", + "$id": "305", "Name": "Intrinsic", "Kind": "unknown", "IsNullable": false @@ -2403,12 +2634,12 @@ "IsReadOnly": false }, { - "$id": "279", + "$id": "306", "Name": "exceptionPolicyId", "SerializedName": "exceptionPolicyId", "Description": "The ID of the exception policy that determines various job escalation rules.", "Type": { - "$id": "280", + "$id": "307", "Name": "string", "Kind": "String", "IsNullable": false @@ -2419,7 +2650,7 @@ ] }, { - "$id": "281", + "$id": "308", "Name": "PagedRouterQueue", "Namespace": "Azure.Core.Foundations", "Description": "Paged collection of RouterQueue items", @@ -2427,15 +2658,15 @@ "Usage": "Output", "Properties": [ { - "$id": "282", + "$id": "309", "Name": "value", "SerializedName": "value", "Description": "The RouterQueue items on this page", "Type": { - "$id": "283", + "$id": "310", "Name": "Array", "ElementType": { - "$ref": "266" + "$ref": "293" }, "IsNullable": false }, @@ -2443,12 +2674,12 @@ "IsReadOnly": false }, { - "$id": "284", + "$id": "311", "Name": "nextLink", "SerializedName": "nextLink", "Description": "The link to the next page of items", "Type": { - "$id": "285", + "$id": "312", "Name": "ResourceLocation", "Kind": "Uri", "IsNullable": false @@ -2459,7 +2690,7 @@ ] }, { - "$id": "286", + "$id": "313", "Name": "RouterJob", "Namespace": "AzureCommunicationRoutingService", "Description": "A unit of work to be routed", @@ -2467,12 +2698,12 @@ "Usage": "Output", "Properties": [ { - "$id": "287", + "$id": "314", "Name": "etag", "SerializedName": "etag", "Description": "The entity tag for this resource.", "Type": { - "$id": "288", + "$id": "315", "Name": "eTag", "Kind": "String", "IsNullable": false @@ -2481,12 +2712,12 @@ "IsReadOnly": true }, { - "$id": "289", + "$id": "316", "Name": "id", "SerializedName": "id", "Description": "The id of the job.", "Type": { - "$id": "290", + "$id": "317", "Name": "string", "Kind": "String", "IsNullable": false @@ -2495,12 +2726,12 @@ "IsReadOnly": true }, { - "$id": "291", + "$id": "318", "Name": "channelReference", "SerializedName": "channelReference", "Description": "Reference to an external parent context, eg. call ID.", "Type": { - "$id": "292", + "$id": "319", "Name": "string", "Kind": "String", "IsNullable": false @@ -2509,23 +2740,23 @@ "IsReadOnly": false }, { - "$id": "293", + "$id": "320", "Name": "status", "SerializedName": "status", "Description": "The status of the Job.", "Type": { - "$ref": "17" + "$ref": "46" }, "IsRequired": false, "IsReadOnly": true }, { - "$id": "294", + "$id": "321", "Name": "enqueuedAt", "SerializedName": "enqueuedAt", "Description": "The time a job was queued in UTC.", "Type": { - "$id": "295", + "$id": "322", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -2534,12 +2765,12 @@ "IsReadOnly": true }, { - "$id": "296", + "$id": "323", "Name": "channelId", "SerializedName": "channelId", "Description": "The channel identifier. eg. voice, chat, etc.", "Type": { - "$id": "297", + "$id": "324", "Name": "string", "Kind": "String", "IsNullable": false @@ -2548,12 +2779,12 @@ "IsReadOnly": false }, { - "$id": "298", + "$id": "325", "Name": "classificationPolicyId", "SerializedName": "classificationPolicyId", "Description": "The Id of the Classification policy used for classifying a job.", "Type": { - "$id": "299", + "$id": "326", "Name": "string", "Kind": "String", "IsNullable": false @@ -2562,12 +2793,12 @@ "IsReadOnly": false }, { - "$id": "300", + "$id": "327", "Name": "queueId", "SerializedName": "queueId", "Description": "The Id of the Queue that this job is queued to.", "Type": { - "$id": "301", + "$id": "328", "Name": "string", "Kind": "String", "IsNullable": false @@ -2576,12 +2807,12 @@ "IsReadOnly": false }, { - "$id": "302", + "$id": "329", "Name": "priority", "SerializedName": "priority", "Description": "The priority of this job.", "Type": { - "$id": "303", + "$id": "330", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -2590,12 +2821,12 @@ "IsReadOnly": false }, { - "$id": "304", + "$id": "331", "Name": "dispositionCode", "SerializedName": "dispositionCode", "Description": "Reason code for cancelled or closed jobs.", "Type": { - "$id": "305", + "$id": "332", "Name": "string", "Kind": "String", "IsNullable": false @@ -2604,15 +2835,15 @@ "IsReadOnly": false }, { - "$id": "306", + "$id": "333", "Name": "requestedWorkerSelectors", "SerializedName": "requestedWorkerSelectors", "Description": "A collection of manually specified label selectors, which a worker must satisfy in order to process this job.", "Type": { - "$id": "307", + "$id": "334", "Name": "Array", "ElementType": { - "$ref": "177" + "$ref": "206" }, "IsNullable": false }, @@ -2620,15 +2851,15 @@ "IsReadOnly": false }, { - "$id": "308", + "$id": "335", "Name": "attachedWorkerSelectors", "SerializedName": "attachedWorkerSelectors", "Description": "A collection of label selectors attached by a classification policy, which a worker must satisfy in order to process this job.", "Type": { - "$id": "309", + "$id": "336", "Name": "Array", "ElementType": { - "$ref": "177" + "$ref": "206" }, "IsNullable": false }, @@ -2636,21 +2867,21 @@ "IsReadOnly": true }, { - "$id": "310", + "$id": "337", "Name": "labels", "SerializedName": "labels", "Description": "A set of key/value pairs that are identifying attributes used by the rules engines to make decisions. Values must be primitive values - number, string, boolean.", "Type": { - "$id": "311", + "$id": "338", "Name": "Dictionary", "KeyType": { - "$id": "312", + "$id": "339", "Name": "string", "Kind": "String", "IsNullable": false }, "ValueType": { - "$id": "313", + "$id": "340", "Name": "Intrinsic", "Kind": "unknown", "IsNullable": false @@ -2661,21 +2892,21 @@ "IsReadOnly": false }, { - "$id": "314", + "$id": "341", "Name": "assignments", "SerializedName": "assignments", "Description": "A collection of the assignments of the job. Key is AssignmentId.", "Type": { - "$id": "315", + "$id": "342", "Name": "Dictionary", "KeyType": { - "$id": "316", + "$id": "343", "Name": "string", "Kind": "String", "IsNullable": false }, "ValueType": { - "$id": "317", + "$id": "344", "Name": "RouterJobAssignment", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -2684,12 +2915,12 @@ "Usage": "Output", "Properties": [ { - "$id": "318", + "$id": "345", "Name": "assignmentId", "SerializedName": "assignmentId", "Description": "The Id of the job assignment.", "Type": { - "$id": "319", + "$id": "346", "Name": "string", "Kind": "String", "IsNullable": false @@ -2698,12 +2929,12 @@ "IsReadOnly": true }, { - "$id": "320", + "$id": "347", "Name": "workerId", "SerializedName": "workerId", "Description": "The Id of the Worker assigned to the job.", "Type": { - "$id": "321", + "$id": "348", "Name": "string", "Kind": "String", "IsNullable": false @@ -2712,12 +2943,12 @@ "IsReadOnly": false }, { - "$id": "322", + "$id": "349", "Name": "assignedAt", "SerializedName": "assignedAt", "Description": "The assignment time of the job in UTC.", "Type": { - "$id": "323", + "$id": "350", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -2726,12 +2957,12 @@ "IsReadOnly": false }, { - "$id": "324", + "$id": "351", "Name": "completedAt", "SerializedName": "completedAt", "Description": "The time the job was marked as completed after being assigned in UTC.", "Type": { - "$id": "325", + "$id": "352", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -2740,12 +2971,12 @@ "IsReadOnly": false }, { - "$id": "326", + "$id": "353", "Name": "closedAt", "SerializedName": "closedAt", "Description": "The time the job was marked as closed after being completed in UTC.", "Type": { - "$id": "327", + "$id": "354", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -2761,21 +2992,21 @@ "IsReadOnly": true }, { - "$id": "328", + "$id": "355", "Name": "tags", "SerializedName": "tags", "Description": "A set of non-identifying attributes attached to this job. Values must be primitive values - number, string, boolean.", "Type": { - "$id": "329", + "$id": "356", "Name": "Dictionary", "KeyType": { - "$id": "330", + "$id": "357", "Name": "string", "Kind": "String", "IsNullable": false }, "ValueType": { - "$id": "331", + "$id": "358", "Name": "Intrinsic", "Kind": "unknown", "IsNullable": false @@ -2786,15 +3017,15 @@ "IsReadOnly": false }, { - "$id": "332", + "$id": "359", "Name": "notes", "SerializedName": "notes", "Description": "Notes attached to a job, sorted by timestamp", "Type": { - "$id": "333", + "$id": "360", "Name": "Array", "ElementType": { - "$id": "334", + "$id": "361", "Name": "RouterJobNote", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -2803,12 +3034,12 @@ "Usage": "Output", "Properties": [ { - "$id": "335", + "$id": "362", "Name": "message", "SerializedName": "message", "Description": "The message contained in the note.", "Type": { - "$id": "336", + "$id": "363", "Name": "string", "Kind": "String", "IsNullable": false @@ -2817,12 +3048,12 @@ "IsReadOnly": false }, { - "$id": "337", + "$id": "364", "Name": "addedAt", "SerializedName": "addedAt", "Description": "The time at which the note was added in UTC. If not provided, will default to the current time.", "Type": { - "$id": "338", + "$id": "365", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -2838,12 +3069,12 @@ "IsReadOnly": false }, { - "$id": "339", + "$id": "366", "Name": "scheduledAt", "SerializedName": "scheduledAt", "Description": "If set, job will be scheduled to be enqueued at a given time", "Type": { - "$id": "340", + "$id": "367", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -2852,12 +3083,12 @@ "IsReadOnly": true }, { - "$id": "341", + "$id": "368", "Name": "matchingMode", "SerializedName": "matchingMode", "Description": "If provided, will determine how job matching will be carried out. Default mode: QueueAndMatchMode.", "Type": { - "$id": "342", + "$id": "369", "Name": "JobMatchingMode", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -2867,15 +3098,12 @@ "Usage": "Output", "Properties": [ { - "$id": "343", + "$id": "370", "Name": "kind", "SerializedName": "kind", "Description": "The type discriminator describing a sub-type of JobMatchingMode", "Type": { - "$id": "344", - "Name": "string", - "Kind": "String", - "IsNullable": false + "$ref": "59" }, "IsRequired": true, "IsReadOnly": false, @@ -2884,25 +3112,25 @@ ], "DerivedModels": [ { - "$id": "345", + "$id": "371", "Name": "ScheduleAndSuspendMode", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "Describes a matching mode used for scheduling jobs to be queued at a future time. At the specified time, matching worker to a job will not start automatically.", "IsNullable": false, - "DiscriminatorValue": "schedule-and-suspend", + "DiscriminatorValue": "scheduleAndSuspend", "BaseModel": { - "$ref": "342" + "$ref": "369" }, "Usage": "Output", "Properties": [ { - "$id": "346", + "$id": "372", "Name": "scheduleAt", "SerializedName": "scheduleAt", "Description": "Scheduled time.", "Type": { - "$id": "347", + "$id": "373", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -2913,21 +3141,21 @@ ] }, { - "$id": "348", + "$id": "374", "Name": "QueueAndMatchMode", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", "Description": "Describes a matching mode where matching worker to a job is automatically started after job is queued successfully.", "IsNullable": false, - "DiscriminatorValue": "queue-and-match", + "DiscriminatorValue": "queueAndMatch", "BaseModel": { - "$ref": "342" + "$ref": "369" }, "Usage": "Output", "Properties": [] }, { - "$id": "349", + "$id": "375", "Name": "SuspendMode", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -2935,7 +3163,7 @@ "IsNullable": false, "DiscriminatorValue": "suspend", "BaseModel": { - "$ref": "342" + "$ref": "369" }, "Usage": "Output", "Properties": [] @@ -2948,25 +3176,25 @@ ] }, { - "$ref": "317" + "$ref": "344" }, { - "$ref": "334" + "$ref": "361" }, { - "$ref": "342" + "$ref": "369" }, { - "$ref": "345" + "$ref": "371" }, { - "$ref": "348" + "$ref": "374" }, { - "$ref": "349" + "$ref": "375" }, { - "$id": "350", + "$id": "376", "Name": "ReclassifyJobOptions", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -2976,7 +3204,7 @@ "Properties": [] }, { - "$id": "351", + "$id": "377", "Name": "ReclassifyJobResult", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -2986,7 +3214,7 @@ "Properties": [] }, { - "$id": "352", + "$id": "378", "Name": "CancelJobOptions", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -2995,12 +3223,12 @@ "Usage": "Input", "Properties": [ { - "$id": "353", + "$id": "379", "Name": "note", "SerializedName": "note", "Description": "A note that will be appended to the jobs' Notes collection with the current timestamp.", "Type": { - "$id": "354", + "$id": "380", "Name": "string", "Kind": "String", "IsNullable": false @@ -3009,12 +3237,12 @@ "IsReadOnly": false }, { - "$id": "355", + "$id": "381", "Name": "dispositionCode", "SerializedName": "dispositionCode", "Description": "Indicates the outcome of the job, populate this field with your own custom values. If not provided, default value of \"Cancelled\" is set.", "Type": { - "$id": "356", + "$id": "382", "Name": "string", "Kind": "String", "IsNullable": false @@ -3025,7 +3253,7 @@ ] }, { - "$id": "357", + "$id": "383", "Name": "CancelJobResult", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -3035,7 +3263,7 @@ "Properties": [] }, { - "$id": "358", + "$id": "384", "Name": "CompleteJobOptions", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -3044,12 +3272,12 @@ "Usage": "Input", "Properties": [ { - "$id": "359", + "$id": "385", "Name": "note", "SerializedName": "note", "Description": "A note that will be appended to the jobs' Notes collection with the current timestamp.", "Type": { - "$id": "360", + "$id": "386", "Name": "string", "Kind": "String", "IsNullable": false @@ -3060,7 +3288,7 @@ ] }, { - "$id": "361", + "$id": "387", "Name": "CompleteJobResult", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -3070,7 +3298,7 @@ "Properties": [] }, { - "$id": "362", + "$id": "388", "Name": "CloseJobOptions", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -3079,12 +3307,12 @@ "Usage": "Input", "Properties": [ { - "$id": "363", + "$id": "389", "Name": "dispositionCode", "SerializedName": "dispositionCode", "Description": "Indicates the outcome of the job, populate this field with your own custom values.", "Type": { - "$id": "364", + "$id": "390", "Name": "string", "Kind": "String", "IsNullable": false @@ -3093,12 +3321,12 @@ "IsReadOnly": false }, { - "$id": "365", + "$id": "391", "Name": "closeAt", "SerializedName": "closeAt", "Description": "If not provided, worker capacity is released immediately along with a JobClosedEvent notification. If provided, worker capacity is released along with a JobClosedEvent notification at a future time in UTC.", "Type": { - "$id": "366", + "$id": "392", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -3107,12 +3335,12 @@ "IsReadOnly": false }, { - "$id": "367", + "$id": "393", "Name": "note", "SerializedName": "note", "Description": "A note that will be appended to the jobs' Notes collection with the current timestamp.", "Type": { - "$id": "368", + "$id": "394", "Name": "string", "Kind": "String", "IsNullable": false @@ -3123,7 +3351,7 @@ ] }, { - "$id": "369", + "$id": "395", "Name": "CloseJobResult", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -3133,7 +3361,7 @@ "Properties": [] }, { - "$id": "370", + "$id": "396", "Name": "PagedRouterJob", "Namespace": "Azure.Core.Foundations", "Description": "Paged collection of RouterJob items", @@ -3141,15 +3369,15 @@ "Usage": "Output", "Properties": [ { - "$id": "371", + "$id": "397", "Name": "value", "SerializedName": "value", "Description": "The RouterJob items on this page", "Type": { - "$id": "372", + "$id": "398", "Name": "Array", "ElementType": { - "$ref": "286" + "$ref": "313" }, "IsNullable": false }, @@ -3157,12 +3385,12 @@ "IsReadOnly": false }, { - "$id": "373", + "$id": "399", "Name": "nextLink", "SerializedName": "nextLink", "Description": "The link to the next page of items", "Type": { - "$id": "374", + "$id": "400", "Name": "ResourceLocation", "Kind": "Uri", "IsNullable": false @@ -3173,7 +3401,7 @@ ] }, { - "$id": "375", + "$id": "401", "Name": "RouterJobPositionDetails", "Namespace": "AzureCommunicationRoutingService", "Description": "Position and estimated wait time for a job.", @@ -3181,12 +3409,12 @@ "Usage": "Output", "Properties": [ { - "$id": "376", + "$id": "402", "Name": "jobId", "SerializedName": "jobId", "Description": "Id of the job these details are about.", "Type": { - "$id": "377", + "$id": "403", "Name": "string", "Kind": "String", "IsNullable": false @@ -3195,12 +3423,12 @@ "IsReadOnly": false }, { - "$id": "378", + "$id": "404", "Name": "position", "SerializedName": "position", "Description": "Position of the job in question within that queue.", "Type": { - "$id": "379", + "$id": "405", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -3209,12 +3437,12 @@ "IsReadOnly": false }, { - "$id": "380", + "$id": "406", "Name": "queueId", "SerializedName": "queueId", "Description": "Id of the queue this job is enqueued in.", "Type": { - "$id": "381", + "$id": "407", "Name": "string", "Kind": "String", "IsNullable": false @@ -3223,12 +3451,12 @@ "IsReadOnly": false }, { - "$id": "382", + "$id": "408", "Name": "queueLength", "SerializedName": "queueLength", "Description": "Length of the queue: total number of enqueued jobs.", "Type": { - "$id": "383", + "$id": "409", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -3237,12 +3465,12 @@ "IsReadOnly": false }, { - "$id": "384", + "$id": "410", "Name": "estimatedWaitTimeMinutes", "SerializedName": "estimatedWaitTimeMinutes", "Description": "Estimated wait time of the job rounded up to the nearest minute", "Type": { - "$id": "385", + "$id": "411", "Name": "float64", "Kind": "Float64", "IsNullable": false @@ -3253,7 +3481,7 @@ ] }, { - "$id": "386", + "$id": "412", "Name": "UnassignJobOptions", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -3262,12 +3490,12 @@ "Usage": "Input", "Properties": [ { - "$id": "387", + "$id": "413", "Name": "suspendMatching", "SerializedName": "suspendMatching", "Description": "If SuspendMatching is true, then the job is not queued for re-matching with a worker.", "Type": { - "$id": "388", + "$id": "414", "Name": "boolean", "Kind": "Boolean", "IsNullable": false @@ -3278,7 +3506,7 @@ ] }, { - "$id": "389", + "$id": "415", "Name": "UnassignJobResult", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -3287,12 +3515,12 @@ "Usage": "Output", "Properties": [ { - "$id": "390", + "$id": "416", "Name": "jobId", "SerializedName": "jobId", "Description": "The Id of the job unassigned.", "Type": { - "$id": "391", + "$id": "417", "Name": "string", "Kind": "String", "IsNullable": false @@ -3301,12 +3529,12 @@ "IsReadOnly": false }, { - "$id": "392", + "$id": "418", "Name": "unassignmentCount", "SerializedName": "unassignmentCount", "Description": "The number of times a job is unassigned. At a maximum 3.", "Type": { - "$id": "393", + "$id": "419", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -3317,7 +3545,7 @@ ] }, { - "$id": "394", + "$id": "420", "Name": "AcceptJobOfferResult", "Namespace": "AzureCommunicationRoutingService", "Description": "Response containing Id's for the worker, job, and assignment from an accepted offer", @@ -3325,12 +3553,12 @@ "Usage": "Output", "Properties": [ { - "$id": "395", + "$id": "421", "Name": "assignmentId", "SerializedName": "assignmentId", "Description": "The assignment Id that assigns a worker that has accepted an offer to a job.", "Type": { - "$id": "396", + "$id": "422", "Name": "string", "Kind": "String", "IsNullable": false @@ -3339,12 +3567,12 @@ "IsReadOnly": false }, { - "$id": "397", + "$id": "423", "Name": "jobId", "SerializedName": "jobId", "Description": "The Id of the job assigned.", "Type": { - "$id": "398", + "$id": "424", "Name": "string", "Kind": "String", "IsNullable": false @@ -3353,12 +3581,12 @@ "IsReadOnly": false }, { - "$id": "399", + "$id": "425", "Name": "workerId", "SerializedName": "workerId", "Description": "The Id of the worker that has been assigned this job.", "Type": { - "$id": "400", + "$id": "426", "Name": "string", "Kind": "String", "IsNullable": false @@ -3369,7 +3597,7 @@ ] }, { - "$id": "401", + "$id": "427", "Name": "DeclineJobOfferOptions", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -3378,12 +3606,12 @@ "Usage": "Input", "Properties": [ { - "$id": "402", + "$id": "428", "Name": "retryOfferAt", "SerializedName": "retryOfferAt", "Description": "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.", "Type": { - "$id": "403", + "$id": "429", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -3394,7 +3622,7 @@ ] }, { - "$id": "404", + "$id": "430", "Name": "DeclineJobOfferResult", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -3404,7 +3632,7 @@ "Properties": [] }, { - "$id": "405", + "$id": "431", "Name": "RouterQueueStatistics", "Namespace": "AzureCommunicationRoutingService", "Description": "Statistics for the queue", @@ -3412,12 +3640,12 @@ "Usage": "Output", "Properties": [ { - "$id": "406", + "$id": "432", "Name": "queueId", "SerializedName": "queueId", "Description": "Id of the queue these details are about.", "Type": { - "$id": "407", + "$id": "433", "Name": "string", "Kind": "String", "IsNullable": false @@ -3426,12 +3654,12 @@ "IsReadOnly": false }, { - "$id": "408", + "$id": "434", "Name": "length", "SerializedName": "length", "Description": "Length of the queue: total number of enqueued jobs.", "Type": { - "$id": "409", + "$id": "435", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -3440,21 +3668,21 @@ "IsReadOnly": false }, { - "$id": "410", + "$id": "436", "Name": "estimatedWaitTimeMinutes", "SerializedName": "estimatedWaitTimeMinutes", "Description": "The estimated wait time of this queue rounded up to the nearest minute, grouped by job priority", "Type": { - "$id": "411", + "$id": "437", "Name": "Dictionary", "KeyType": { - "$id": "412", + "$id": "438", "Name": "string", "Kind": "String", "IsNullable": false }, "ValueType": { - "$id": "413", + "$id": "439", "Name": "float64", "Kind": "Float64", "IsNullable": false @@ -3465,12 +3693,12 @@ "IsReadOnly": false }, { - "$id": "414", + "$id": "440", "Name": "longestJobWaitTimeMinutes", "SerializedName": "longestJobWaitTimeMinutes", "Description": "The wait time of the job that has been enqueued in this queue for the longest.", "Type": { - "$id": "415", + "$id": "441", "Name": "float64", "Kind": "Float64", "IsNullable": false @@ -3481,7 +3709,7 @@ ] }, { - "$id": "416", + "$id": "442", "Name": "RouterWorker", "Namespace": "AzureCommunicationRoutingService", "Description": "An entity for jobs to be routed to", @@ -3489,12 +3717,12 @@ "Usage": "Output", "Properties": [ { - "$id": "417", + "$id": "443", "Name": "etag", "SerializedName": "etag", "Description": "The entity tag for this resource.", "Type": { - "$id": "418", + "$id": "444", "Name": "eTag", "Kind": "String", "IsNullable": false @@ -3503,12 +3731,12 @@ "IsReadOnly": true }, { - "$id": "419", + "$id": "445", "Name": "id", "SerializedName": "id", "Description": "Id of the worker.", "Type": { - "$id": "420", + "$id": "446", "Name": "string", "Kind": "String", "IsNullable": false @@ -3517,26 +3745,26 @@ "IsReadOnly": true }, { - "$id": "421", + "$id": "447", "Name": "state", "SerializedName": "state", "Description": "The current state of the worker.", "Type": { - "$ref": "45" + "$ref": "78" }, "IsRequired": false, "IsReadOnly": true }, { - "$id": "422", + "$id": "448", "Name": "queues", "SerializedName": "queues", "Description": "The queue(s) that this worker can receive work from.", "Type": { - "$id": "423", + "$id": "449", "Name": "Array", "ElementType": { - "$id": "424", + "$id": "450", "Name": "string", "Kind": "String", "IsNullable": false @@ -3547,12 +3775,12 @@ "IsReadOnly": false }, { - "$id": "425", + "$id": "451", "Name": "capacity", "SerializedName": "capacity", "Description": "The total capacity score this worker has to manage multiple concurrent jobs.", "Type": { - "$id": "426", + "$id": "452", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -3561,21 +3789,21 @@ "IsReadOnly": false }, { - "$id": "427", + "$id": "453", "Name": "labels", "SerializedName": "labels", "Description": "A set of key/value pairs that are identifying attributes used by the rules engines to make decisions. Values must be primitive values - number, string, boolean.", "Type": { - "$id": "428", + "$id": "454", "Name": "Dictionary", "KeyType": { - "$id": "429", + "$id": "455", "Name": "string", "Kind": "String", "IsNullable": false }, "ValueType": { - "$id": "430", + "$id": "456", "Name": "Intrinsic", "Kind": "unknown", "IsNullable": false @@ -3586,21 +3814,21 @@ "IsReadOnly": false }, { - "$id": "431", + "$id": "457", "Name": "tags", "SerializedName": "tags", "Description": "A set of non-identifying attributes attached to this worker. Values must be primitive values - number, string, boolean.", "Type": { - "$id": "432", + "$id": "458", "Name": "Dictionary", "KeyType": { - "$id": "433", + "$id": "459", "Name": "string", "Kind": "String", "IsNullable": false }, "ValueType": { - "$id": "434", + "$id": "460", "Name": "Intrinsic", "Kind": "unknown", "IsNullable": false @@ -3611,15 +3839,15 @@ "IsReadOnly": false }, { - "$id": "435", + "$id": "461", "Name": "channels", "SerializedName": "channels", "Description": "The channel(s) this worker can handle and their impact on the workers capacity.", "Type": { - "$id": "436", + "$id": "462", "Name": "Array", "ElementType": { - "$id": "437", + "$id": "463", "Name": "RouterChannel", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -3628,12 +3856,12 @@ "Usage": "Output", "Properties": [ { - "$id": "438", + "$id": "464", "Name": "channelId", "SerializedName": "channelId", "Description": "Id of the channel.", "Type": { - "$id": "439", + "$id": "465", "Name": "string", "Kind": "String", "IsNullable": false @@ -3642,12 +3870,12 @@ "IsReadOnly": false }, { - "$id": "440", + "$id": "466", "Name": "capacityCostPerJob", "SerializedName": "capacityCostPerJob", "Description": "The amount of capacity that an instance of a job of this channel will consume of the total worker capacity.", "Type": { - "$id": "441", + "$id": "467", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -3656,12 +3884,12 @@ "IsReadOnly": false }, { - "$id": "442", + "$id": "468", "Name": "maxNumberOfJobs", "SerializedName": "maxNumberOfJobs", "Description": "The maximum number of jobs that can be supported concurrently for this channel.", "Type": { - "$id": "443", + "$id": "469", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -3677,15 +3905,15 @@ "IsReadOnly": false }, { - "$id": "444", + "$id": "470", "Name": "offers", "SerializedName": "offers", "Description": "A list of active offers issued to this worker.", "Type": { - "$id": "445", + "$id": "471", "Name": "Array", "ElementType": { - "$id": "446", + "$id": "472", "Name": "RouterJobOffer", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -3694,12 +3922,12 @@ "Usage": "Output", "Properties": [ { - "$id": "447", + "$id": "473", "Name": "offerId", "SerializedName": "offerId", "Description": "The Id of the offer.", "Type": { - "$id": "448", + "$id": "474", "Name": "string", "Kind": "String", "IsNullable": false @@ -3708,12 +3936,12 @@ "IsReadOnly": true }, { - "$id": "449", + "$id": "475", "Name": "jobId", "SerializedName": "jobId", "Description": "The Id of the job.", "Type": { - "$id": "450", + "$id": "476", "Name": "string", "Kind": "String", "IsNullable": false @@ -3722,12 +3950,12 @@ "IsReadOnly": false }, { - "$id": "451", + "$id": "477", "Name": "capacityCost", "SerializedName": "capacityCost", "Description": "The capacity cost consumed by the job offer.", "Type": { - "$id": "452", + "$id": "478", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -3736,12 +3964,12 @@ "IsReadOnly": false }, { - "$id": "453", + "$id": "479", "Name": "offeredAt", "SerializedName": "offeredAt", "Description": "The time the offer was created in UTC.", "Type": { - "$id": "454", + "$id": "480", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -3750,12 +3978,12 @@ "IsReadOnly": false }, { - "$id": "455", + "$id": "481", "Name": "expiresAt", "SerializedName": "expiresAt", "Description": "The time that the offer will expire in UTC.", "Type": { - "$id": "456", + "$id": "482", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -3771,15 +3999,15 @@ "IsReadOnly": true }, { - "$id": "457", + "$id": "483", "Name": "assignedJobs", "SerializedName": "assignedJobs", "Description": "A list of assigned jobs attached to this worker.", "Type": { - "$id": "458", + "$id": "484", "Name": "Array", "ElementType": { - "$id": "459", + "$id": "485", "Name": "RouterWorkerAssignment", "Namespace": "AzureCommunicationRoutingService", "Accessibility": "internal", @@ -3788,12 +4016,12 @@ "Usage": "Output", "Properties": [ { - "$id": "460", + "$id": "486", "Name": "assignmentId", "SerializedName": "assignmentId", "Description": "The Id of the assignment.", "Type": { - "$id": "461", + "$id": "487", "Name": "string", "Kind": "String", "IsNullable": false @@ -3802,12 +4030,12 @@ "IsReadOnly": false }, { - "$id": "462", + "$id": "488", "Name": "jobId", "SerializedName": "jobId", "Description": "The Id of the Job assigned.", "Type": { - "$id": "463", + "$id": "489", "Name": "string", "Kind": "String", "IsNullable": false @@ -3816,12 +4044,12 @@ "IsReadOnly": false }, { - "$id": "464", + "$id": "490", "Name": "capacityCost", "SerializedName": "capacityCost", "Description": "The amount of capacity this assignment has consumed on the worker.", "Type": { - "$id": "465", + "$id": "491", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -3830,12 +4058,12 @@ "IsReadOnly": false }, { - "$id": "466", + "$id": "492", "Name": "assignedAt", "SerializedName": "assignedAt", "Description": "The assignment time of the job in UTC.", "Type": { - "$id": "467", + "$id": "493", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -3851,12 +4079,12 @@ "IsReadOnly": true }, { - "$id": "468", + "$id": "494", "Name": "loadRatio", "SerializedName": "loadRatio", "Description": "A value indicating the workers capacity. A value of '1' means all capacity is consumed. A value of '0' means no capacity is currently consumed.", "Type": { - "$id": "469", + "$id": "495", "Name": "float64", "Kind": "Float64", "IsNullable": false @@ -3865,12 +4093,12 @@ "IsReadOnly": true }, { - "$id": "470", + "$id": "496", "Name": "availableForOffers", "SerializedName": "availableForOffers", "Description": "A flag indicating this worker is open to receive offers or not.", "Type": { - "$id": "471", + "$id": "497", "Name": "boolean", "Kind": "Boolean", "IsNullable": false @@ -3881,16 +4109,16 @@ ] }, { - "$ref": "437" + "$ref": "463" }, { - "$ref": "446" + "$ref": "472" }, { - "$ref": "459" + "$ref": "485" }, { - "$id": "472", + "$id": "498", "Name": "PagedRouterWorker", "Namespace": "Azure.Core.Foundations", "Description": "Paged collection of RouterWorker items", @@ -3898,15 +4126,15 @@ "Usage": "Output", "Properties": [ { - "$id": "473", + "$id": "499", "Name": "value", "SerializedName": "value", "Description": "The RouterWorker items on this page", "Type": { - "$id": "474", + "$id": "500", "Name": "Array", "ElementType": { - "$ref": "416" + "$ref": "442" }, "IsNullable": false }, @@ -3914,12 +4142,12 @@ "IsReadOnly": false }, { - "$id": "475", + "$id": "501", "Name": "nextLink", "SerializedName": "nextLink", "Description": "The link to the next page of items", "Type": { - "$id": "476", + "$id": "502", "Name": "ResourceLocation", "Kind": "Uri", "IsNullable": false @@ -3930,7 +4158,7 @@ ] }, { - "$id": "477", + "$id": "503", "Name": "RouterConditionalRequestHeaders", "Namespace": "AzureCommunicationRoutingService", "Description": "Provides the 'If-*' headers to enable conditional (cached) responses for JobRouter.", @@ -3939,7 +4167,7 @@ "Properties": [] }, { - "$id": "478", + "$id": "504", "Name": "LastModifiedResponseEnvelope", "Namespace": "AzureCommunicationRoutingService", "Description": "Provides the 'Last-Modified' header to enable conditional (cached) requests", @@ -3948,7 +4176,7 @@ "Properties": [] }, { - "$id": "479", + "$id": "505", "Name": "ReclassifyJobResultWithOkResponse", "Namespace": "AzureCommunicationRoutingService", "Description": "OK Response payload from reclassifying a job.", @@ -3956,12 +4184,12 @@ "Usage": "Output", "Properties": [ { - "$id": "480", + "$id": "506", "Name": "body", "SerializedName": "body", "Description": "Response payload from reclassifying a job.", "Type": { - "$ref": "351" + "$ref": "377" }, "IsRequired": true, "IsReadOnly": false @@ -3969,7 +4197,7 @@ ] }, { - "$id": "481", + "$id": "507", "Name": "CancelJobResultWithOkResponse", "Namespace": "AzureCommunicationRoutingService", "Description": "OK Response payload from cancelling a job", @@ -3977,12 +4205,12 @@ "Usage": "Output", "Properties": [ { - "$id": "482", + "$id": "508", "Name": "body", "SerializedName": "body", "Description": "Response after cancelling a job.", "Type": { - "$ref": "357" + "$ref": "383" }, "IsRequired": true, "IsReadOnly": false @@ -3990,7 +4218,7 @@ ] }, { - "$id": "483", + "$id": "509", "Name": "CompleteJobResultWithOkResponse", "Namespace": "AzureCommunicationRoutingService", "Description": "OK Response payload from completing a job", @@ -3998,12 +4226,12 @@ "Usage": "Output", "Properties": [ { - "$id": "484", + "$id": "510", "Name": "body", "SerializedName": "body", "Description": "Response after completing a job.", "Type": { - "$ref": "361" + "$ref": "387" }, "IsRequired": true, "IsReadOnly": false @@ -4011,7 +4239,7 @@ ] }, { - "$id": "485", + "$id": "511", "Name": "CloseJobResultWithOkResponse", "Namespace": "AzureCommunicationRoutingService", "Description": "Response payload from closing a job synchronously.", @@ -4019,12 +4247,12 @@ "Usage": "Output", "Properties": [ { - "$id": "486", + "$id": "512", "Name": "body", "SerializedName": "body", "Description": "Response after closing a job.", "Type": { - "$ref": "369" + "$ref": "395" }, "IsRequired": true, "IsReadOnly": false @@ -4032,7 +4260,7 @@ ] }, { - "$id": "487", + "$id": "513", "Name": "DeclineJobOfferResultWithOkResponse", "Namespace": "AzureCommunicationRoutingService", "Description": "OK Response payload from declining a job.", @@ -4040,12 +4268,12 @@ "Usage": "Output", "Properties": [ { - "$id": "488", + "$id": "514", "Name": "body", "SerializedName": "body", "Description": "Response payload from declining a job.", "Type": { - "$ref": "404" + "$ref": "430" }, "IsRequired": true, "IsReadOnly": false @@ -4055,12 +4283,12 @@ ], "Clients": [ { - "$id": "489", + "$id": "515", "Name": "JobRouterAdministrationClient", "Description": "", "Operations": [ { - "$id": "490", + "$id": "516", "Name": "upsertDistributionPolicy", "ResourceName": "DistributionPolicy", "Summary": "Creates or updates a distribution policy.", @@ -4068,11 +4296,11 @@ "Accessibility": "internal", "Parameters": [ { - "$id": "491", + "$id": "517", "Name": "endpoint", "NameInRequest": "endpoint", "Type": { - "$id": "492", + "$id": "518", "Name": "Uri", "Kind": "Uri", "IsNullable": false @@ -4088,12 +4316,12 @@ "Kind": "Client" }, { - "$id": "493", + "$id": "519", "Name": "apiVersion", "NameInRequest": "api-version", "Description": "", "Type": { - "$id": "494", + "$id": "520", "Name": "String", "Kind": "String", "IsNullable": false @@ -4108,9 +4336,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "495", + "$id": "521", "Type": { - "$id": "496", + "$id": "522", "Name": "String", "Kind": "String", "IsNullable": false @@ -4119,12 +4347,12 @@ } }, { - "$id": "497", + "$id": "523", "Name": "distributionPolicyId", "NameInRequest": "distributionPolicyId", "Description": "The unique identifier of the policy.", "Type": { - "$id": "498", + "$id": "524", "Name": "string", "Kind": "String", "IsNullable": false @@ -4140,15 +4368,15 @@ "Kind": "Method" }, { - "$id": "499", + "$id": "525", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "This request has a JSON Merge Patch body.", "Type": { - "$id": "500", + "$id": "526", "Name": "Literal", "LiteralValueType": { - "$id": "501", + "$id": "527", "Name": "String", "Kind": "String", "IsNullable": false @@ -4158,9 +4386,9 @@ }, "Location": "Header", "DefaultValue": { - "$id": "502", + "$id": "528", "Type": { - "$ref": "500" + "$ref": "526" }, "Value": "application/merge-patch+json" }, @@ -4174,12 +4402,12 @@ "Kind": "Constant" }, { - "$id": "503", + "$id": "529", "Name": "ifMatch", "NameInRequest": "If-Match", "Description": "The request should only proceed if an entity matches this string.", "Type": { - "$id": "504", + "$id": "530", "Name": "string", "Kind": "String", "IsNullable": false @@ -4195,12 +4423,12 @@ "Kind": "Method" }, { - "$id": "505", + "$id": "531", "Name": "ifUnmodifiedSince", "NameInRequest": "If-Unmodified-Since", "Description": "The request should only proceed if the entity was not modified after this time.", "Type": { - "$id": "506", + "$id": "532", "Name": "utcDateTime", "Kind": "DateTimeRFC7231", "IsNullable": false @@ -4216,12 +4444,12 @@ "Kind": "Method" }, { - "$id": "507", + "$id": "533", "Name": "resource", "NameInRequest": "resource", "Description": "The resource instance.", "Type": { - "$ref": "56" + "$ref": "89" }, "Location": "Body", "IsRequired": true, @@ -4234,11 +4462,11 @@ "Kind": "Method" }, { - "$id": "508", + "$id": "534", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "509", + "$id": "535", "Name": "String", "Kind": "String", "IsNullable": false @@ -4253,9 +4481,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "510", + "$id": "536", "Type": { - "$ref": "509" + "$ref": "535" }, "Value": "application/json" } @@ -4263,34 +4491,34 @@ ], "Responses": [ { - "$id": "511", + "$id": "537", "StatusCodes": [ 201 ], "BodyType": { - "$ref": "56" + "$ref": "89" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "512", + "$id": "538", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "513", + "$id": "539", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "514", + "$id": "540", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "515", + "$id": "541", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -4300,34 +4528,34 @@ "IsErrorResponse": false }, { - "$id": "516", + "$id": "542", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "56" + "$ref": "89" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "517", + "$id": "543", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "518", + "$id": "544", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "519", + "$id": "545", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "520", + "$id": "546", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -4349,25 +4577,25 @@ "GenerateConvenienceMethod": false }, { - "$id": "521", + "$id": "547", "Name": "getDistributionPolicy", "ResourceName": "DistributionPolicy", "Summary": "Retrieves an existing distribution policy by Id.", "Description": "Retrieves an existing distribution policy by Id.", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "522", + "$id": "548", "Name": "distributionPolicyId", "NameInRequest": "distributionPolicyId", "Description": "The unique identifier of the policy.", "Type": { - "$id": "523", + "$id": "549", "Name": "string", "Kind": "String", "IsNullable": false @@ -4383,11 +4611,11 @@ "Kind": "Method" }, { - "$id": "524", + "$id": "550", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "525", + "$id": "551", "Name": "String", "Kind": "String", "IsNullable": false @@ -4402,9 +4630,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "526", + "$id": "552", "Type": { - "$ref": "525" + "$ref": "551" }, "Value": "application/json" } @@ -4412,34 +4640,34 @@ ], "Responses": [ { - "$id": "527", + "$id": "553", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "56" + "$ref": "89" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "528", + "$id": "554", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "529", + "$id": "555", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "530", + "$id": "556", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "531", + "$id": "557", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -4458,25 +4686,26 @@ "GenerateConvenienceMethod": true }, { - "$id": "532", + "$id": "558", "Name": "listDistributionPolicies", "ResourceName": "DistributionPolicy", "Summary": "Retrieves existing distribution policies.", "Description": "Retrieves existing distribution policies.", + "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "533", + "$id": "559", "Name": "maxpagesize", "NameInRequest": "maxpagesize", "Description": "Number of objects to return per page.", "Type": { - "$id": "534", + "$id": "560", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -4492,11 +4721,11 @@ "Kind": "Method" }, { - "$id": "535", + "$id": "561", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "536", + "$id": "562", "Name": "String", "Kind": "String", "IsNullable": false @@ -4511,9 +4740,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "537", + "$id": "563", "Type": { - "$ref": "536" + "$ref": "562" }, "Value": "application/json" } @@ -4521,12 +4750,12 @@ ], "Responses": [ { - "$id": "538", + "$id": "564", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "122" + "$ref": "153" }, "BodyMediaType": "Json", "Headers": [], @@ -4539,7 +4768,7 @@ "Path": "/routing/distributionPolicies", "BufferResponse": true, "Paging": { - "$id": "539", + "$id": "565", "NextLinkName": "nextLink", "ItemName": "value" }, @@ -4547,25 +4776,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "540", + "$id": "566", "Name": "deleteDistributionPolicy", "ResourceName": "DistributionPolicy", "Summary": "Delete a distribution policy by Id.", "Description": "Delete a distribution policy by Id.", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "541", + "$id": "567", "Name": "distributionPolicyId", "NameInRequest": "distributionPolicyId", "Description": "The unique identifier of the policy.", "Type": { - "$id": "542", + "$id": "568", "Name": "string", "Kind": "String", "IsNullable": false @@ -4581,11 +4810,11 @@ "Kind": "Method" }, { - "$id": "543", + "$id": "569", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "544", + "$id": "570", "Name": "String", "Kind": "String", "IsNullable": false @@ -4600,9 +4829,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "545", + "$id": "571", "Type": { - "$ref": "544" + "$ref": "570" }, "Value": "application/json" } @@ -4610,7 +4839,7 @@ ], "Responses": [ { - "$id": "546", + "$id": "572", "StatusCodes": [ 204 ], @@ -4628,7 +4857,7 @@ "GenerateConvenienceMethod": true }, { - "$id": "547", + "$id": "573", "Name": "upsertClassificationPolicy", "ResourceName": "ClassificationPolicy", "Summary": "Creates or updates a classification policy.", @@ -4636,18 +4865,18 @@ "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "548", + "$id": "574", "Name": "classificationPolicyId", "NameInRequest": "classificationPolicyId", "Description": "Unique identifier of this policy.", "Type": { - "$id": "549", + "$id": "575", "Name": "string", "Kind": "String", "IsNullable": false @@ -4663,15 +4892,15 @@ "Kind": "Method" }, { - "$id": "550", + "$id": "576", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "This request has a JSON Merge Patch body.", "Type": { - "$id": "551", + "$id": "577", "Name": "Literal", "LiteralValueType": { - "$id": "552", + "$id": "578", "Name": "String", "Kind": "String", "IsNullable": false @@ -4681,9 +4910,9 @@ }, "Location": "Header", "DefaultValue": { - "$id": "553", + "$id": "579", "Type": { - "$ref": "551" + "$ref": "577" }, "Value": "application/merge-patch+json" }, @@ -4697,12 +4926,12 @@ "Kind": "Constant" }, { - "$id": "554", + "$id": "580", "Name": "ifMatch", "NameInRequest": "If-Match", "Description": "The request should only proceed if an entity matches this string.", "Type": { - "$id": "555", + "$id": "581", "Name": "string", "Kind": "String", "IsNullable": false @@ -4718,12 +4947,12 @@ "Kind": "Method" }, { - "$id": "556", + "$id": "582", "Name": "ifUnmodifiedSince", "NameInRequest": "If-Unmodified-Since", "Description": "The request should only proceed if the entity was not modified after this time.", "Type": { - "$id": "557", + "$id": "583", "Name": "utcDateTime", "Kind": "DateTimeRFC7231", "IsNullable": false @@ -4739,12 +4968,12 @@ "Kind": "Method" }, { - "$id": "558", + "$id": "584", "Name": "resource", "NameInRequest": "resource", "Description": "The resource instance.", "Type": { - "$ref": "127" + "$ref": "158" }, "Location": "Body", "IsRequired": true, @@ -4757,11 +4986,11 @@ "Kind": "Method" }, { - "$id": "559", + "$id": "585", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "560", + "$id": "586", "Name": "String", "Kind": "String", "IsNullable": false @@ -4776,9 +5005,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "561", + "$id": "587", "Type": { - "$ref": "560" + "$ref": "586" }, "Value": "application/json" } @@ -4786,34 +5015,34 @@ ], "Responses": [ { - "$id": "562", + "$id": "588", "StatusCodes": [ 201 ], "BodyType": { - "$ref": "127" + "$ref": "158" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "563", + "$id": "589", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "564", + "$id": "590", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "565", + "$id": "591", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "566", + "$id": "592", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -4823,34 +5052,34 @@ "IsErrorResponse": false }, { - "$id": "567", + "$id": "593", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "127" + "$ref": "158" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "568", + "$id": "594", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "569", + "$id": "595", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "570", + "$id": "596", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "571", + "$id": "597", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -4872,25 +5101,25 @@ "GenerateConvenienceMethod": false }, { - "$id": "572", + "$id": "598", "Name": "getClassificationPolicy", "ResourceName": "ClassificationPolicy", "Summary": "Retrieves an existing classification policy by Id.", "Description": "Retrieves an existing classification policy by Id.", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "573", + "$id": "599", "Name": "classificationPolicyId", "NameInRequest": "classificationPolicyId", "Description": "Unique identifier of this policy.", "Type": { - "$id": "574", + "$id": "600", "Name": "string", "Kind": "String", "IsNullable": false @@ -4906,11 +5135,11 @@ "Kind": "Method" }, { - "$id": "575", + "$id": "601", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "576", + "$id": "602", "Name": "String", "Kind": "String", "IsNullable": false @@ -4925,9 +5154,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "577", + "$id": "603", "Type": { - "$ref": "576" + "$ref": "602" }, "Value": "application/json" } @@ -4935,34 +5164,34 @@ ], "Responses": [ { - "$id": "578", + "$id": "604", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "127" + "$ref": "158" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "579", + "$id": "605", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "580", + "$id": "606", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "581", + "$id": "607", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "582", + "$id": "608", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -4981,25 +5210,26 @@ "GenerateConvenienceMethod": true }, { - "$id": "583", + "$id": "609", "Name": "listClassificationPolicies", "ResourceName": "ClassificationPolicy", "Summary": "Retrieves existing classification policies.", "Description": "Retrieves existing classification policies.", + "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "584", + "$id": "610", "Name": "maxpagesize", "NameInRequest": "maxpagesize", "Description": "Number of objects to return per page.", "Type": { - "$id": "585", + "$id": "611", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -5015,11 +5245,11 @@ "Kind": "Method" }, { - "$id": "586", + "$id": "612", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "587", + "$id": "613", "Name": "String", "Kind": "String", "IsNullable": false @@ -5034,9 +5264,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "588", + "$id": "614", "Type": { - "$ref": "587" + "$ref": "613" }, "Value": "application/json" } @@ -5044,12 +5274,12 @@ ], "Responses": [ { - "$id": "589", + "$id": "615", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "208" + "$ref": "237" }, "BodyMediaType": "Json", "Headers": [], @@ -5062,7 +5292,7 @@ "Path": "/routing/classificationPolicies", "BufferResponse": true, "Paging": { - "$id": "590", + "$id": "616", "NextLinkName": "nextLink", "ItemName": "value" }, @@ -5070,25 +5300,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "591", + "$id": "617", "Name": "deleteClassificationPolicy", "ResourceName": "ClassificationPolicy", "Summary": "Delete a classification policy by Id.", "Description": "Delete a classification policy by Id.", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "592", + "$id": "618", "Name": "classificationPolicyId", "NameInRequest": "classificationPolicyId", "Description": "Unique identifier of this policy.", "Type": { - "$id": "593", + "$id": "619", "Name": "string", "Kind": "String", "IsNullable": false @@ -5104,11 +5334,11 @@ "Kind": "Method" }, { - "$id": "594", + "$id": "620", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "595", + "$id": "621", "Name": "String", "Kind": "String", "IsNullable": false @@ -5123,9 +5353,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "596", + "$id": "622", "Type": { - "$ref": "595" + "$ref": "621" }, "Value": "application/json" } @@ -5133,7 +5363,7 @@ ], "Responses": [ { - "$id": "597", + "$id": "623", "StatusCodes": [ 204 ], @@ -5151,7 +5381,7 @@ "GenerateConvenienceMethod": true }, { - "$id": "598", + "$id": "624", "Name": "upsertExceptionPolicy", "ResourceName": "ExceptionPolicy", "Summary": "Creates or updates a exception policy.", @@ -5159,18 +5389,18 @@ "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "599", + "$id": "625", "Name": "exceptionPolicyId", "NameInRequest": "exceptionPolicyId", "Description": "The Id of the exception policy", "Type": { - "$id": "600", + "$id": "626", "Name": "string", "Kind": "String", "IsNullable": false @@ -5186,15 +5416,15 @@ "Kind": "Method" }, { - "$id": "601", + "$id": "627", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "This request has a JSON Merge Patch body.", "Type": { - "$id": "602", + "$id": "628", "Name": "Literal", "LiteralValueType": { - "$id": "603", + "$id": "629", "Name": "String", "Kind": "String", "IsNullable": false @@ -5204,9 +5434,9 @@ }, "Location": "Header", "DefaultValue": { - "$id": "604", + "$id": "630", "Type": { - "$ref": "602" + "$ref": "628" }, "Value": "application/merge-patch+json" }, @@ -5220,12 +5450,12 @@ "Kind": "Constant" }, { - "$id": "605", + "$id": "631", "Name": "ifMatch", "NameInRequest": "If-Match", "Description": "The request should only proceed if an entity matches this string.", "Type": { - "$id": "606", + "$id": "632", "Name": "string", "Kind": "String", "IsNullable": false @@ -5241,12 +5471,12 @@ "Kind": "Method" }, { - "$id": "607", + "$id": "633", "Name": "ifUnmodifiedSince", "NameInRequest": "If-Unmodified-Since", "Description": "The request should only proceed if the entity was not modified after this time.", "Type": { - "$id": "608", + "$id": "634", "Name": "utcDateTime", "Kind": "DateTimeRFC7231", "IsNullable": false @@ -5262,12 +5492,12 @@ "Kind": "Method" }, { - "$id": "609", + "$id": "635", "Name": "resource", "NameInRequest": "resource", "Description": "The resource instance.", "Type": { - "$ref": "213" + "$ref": "242" }, "Location": "Body", "IsRequired": true, @@ -5280,11 +5510,11 @@ "Kind": "Method" }, { - "$id": "610", + "$id": "636", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "611", + "$id": "637", "Name": "String", "Kind": "String", "IsNullable": false @@ -5299,9 +5529,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "612", + "$id": "638", "Type": { - "$ref": "611" + "$ref": "637" }, "Value": "application/json" } @@ -5309,34 +5539,34 @@ ], "Responses": [ { - "$id": "613", + "$id": "639", "StatusCodes": [ 201 ], "BodyType": { - "$ref": "213" + "$ref": "242" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "614", + "$id": "640", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "615", + "$id": "641", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "616", + "$id": "642", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "617", + "$id": "643", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -5346,34 +5576,34 @@ "IsErrorResponse": false }, { - "$id": "618", + "$id": "644", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "213" + "$ref": "242" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "619", + "$id": "645", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "620", + "$id": "646", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "621", + "$id": "647", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "622", + "$id": "648", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -5395,25 +5625,25 @@ "GenerateConvenienceMethod": false }, { - "$id": "623", + "$id": "649", "Name": "getExceptionPolicy", "ResourceName": "ExceptionPolicy", "Summary": "Retrieves an existing exception policy by Id.", "Description": "Retrieves an existing exception policy by Id.", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "624", + "$id": "650", "Name": "exceptionPolicyId", "NameInRequest": "exceptionPolicyId", "Description": "The Id of the exception policy", "Type": { - "$id": "625", + "$id": "651", "Name": "string", "Kind": "String", "IsNullable": false @@ -5429,11 +5659,11 @@ "Kind": "Method" }, { - "$id": "626", + "$id": "652", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "627", + "$id": "653", "Name": "String", "Kind": "String", "IsNullable": false @@ -5448,9 +5678,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "628", + "$id": "654", "Type": { - "$ref": "627" + "$ref": "653" }, "Value": "application/json" } @@ -5458,34 +5688,34 @@ ], "Responses": [ { - "$id": "629", + "$id": "655", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "213" + "$ref": "242" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "630", + "$id": "656", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "631", + "$id": "657", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "632", + "$id": "658", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "633", + "$id": "659", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -5504,25 +5734,26 @@ "GenerateConvenienceMethod": true }, { - "$id": "634", + "$id": "660", "Name": "listExceptionPolicies", "ResourceName": "ExceptionPolicy", "Summary": "Retrieves existing exception policies.", "Description": "Retrieves existing exception policies.", + "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "635", + "$id": "661", "Name": "maxpagesize", "NameInRequest": "maxpagesize", "Description": "Number of objects to return per page.", "Type": { - "$id": "636", + "$id": "662", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -5538,11 +5769,11 @@ "Kind": "Method" }, { - "$id": "637", + "$id": "663", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "638", + "$id": "664", "Name": "String", "Kind": "String", "IsNullable": false @@ -5557,9 +5788,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "639", + "$id": "665", "Type": { - "$ref": "638" + "$ref": "664" }, "Value": "application/json" } @@ -5567,12 +5798,12 @@ ], "Responses": [ { - "$id": "640", + "$id": "666", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "261" + "$ref": "288" }, "BodyMediaType": "Json", "Headers": [], @@ -5585,7 +5816,7 @@ "Path": "/routing/exceptionPolicies", "BufferResponse": true, "Paging": { - "$id": "641", + "$id": "667", "NextLinkName": "nextLink", "ItemName": "value" }, @@ -5593,25 +5824,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "642", + "$id": "668", "Name": "deleteExceptionPolicy", "ResourceName": "ExceptionPolicy", "Summary": "Deletes a exception policy by Id.", "Description": "Deletes a exception policy by Id.", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "643", + "$id": "669", "Name": "exceptionPolicyId", "NameInRequest": "exceptionPolicyId", "Description": "The Id of the exception policy", "Type": { - "$id": "644", + "$id": "670", "Name": "string", "Kind": "String", "IsNullable": false @@ -5627,11 +5858,11 @@ "Kind": "Method" }, { - "$id": "645", + "$id": "671", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "646", + "$id": "672", "Name": "String", "Kind": "String", "IsNullable": false @@ -5646,9 +5877,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "647", + "$id": "673", "Type": { - "$ref": "646" + "$ref": "672" }, "Value": "application/json" } @@ -5656,7 +5887,7 @@ ], "Responses": [ { - "$id": "648", + "$id": "674", "StatusCodes": [ 204 ], @@ -5674,7 +5905,7 @@ "GenerateConvenienceMethod": true }, { - "$id": "649", + "$id": "675", "Name": "upsertQueue", "ResourceName": "RouterQueue", "Summary": "Creates or updates a queue.", @@ -5682,18 +5913,18 @@ "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "650", + "$id": "676", "Name": "queueId", "NameInRequest": "queueId", "Description": "The Id of this queue", "Type": { - "$id": "651", + "$id": "677", "Name": "string", "Kind": "String", "IsNullable": false @@ -5709,15 +5940,15 @@ "Kind": "Method" }, { - "$id": "652", + "$id": "678", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "This request has a JSON Merge Patch body.", "Type": { - "$id": "653", + "$id": "679", "Name": "Literal", "LiteralValueType": { - "$id": "654", + "$id": "680", "Name": "String", "Kind": "String", "IsNullable": false @@ -5727,9 +5958,9 @@ }, "Location": "Header", "DefaultValue": { - "$id": "655", + "$id": "681", "Type": { - "$ref": "653" + "$ref": "679" }, "Value": "application/merge-patch+json" }, @@ -5743,12 +5974,12 @@ "Kind": "Constant" }, { - "$id": "656", + "$id": "682", "Name": "ifMatch", "NameInRequest": "If-Match", "Description": "The request should only proceed if an entity matches this string.", "Type": { - "$id": "657", + "$id": "683", "Name": "string", "Kind": "String", "IsNullable": false @@ -5764,12 +5995,12 @@ "Kind": "Method" }, { - "$id": "658", + "$id": "684", "Name": "ifUnmodifiedSince", "NameInRequest": "If-Unmodified-Since", "Description": "The request should only proceed if the entity was not modified after this time.", "Type": { - "$id": "659", + "$id": "685", "Name": "utcDateTime", "Kind": "DateTimeRFC7231", "IsNullable": false @@ -5785,12 +6016,12 @@ "Kind": "Method" }, { - "$id": "660", + "$id": "686", "Name": "resource", "NameInRequest": "resource", "Description": "The resource instance.", "Type": { - "$ref": "266" + "$ref": "293" }, "Location": "Body", "IsRequired": true, @@ -5803,11 +6034,11 @@ "Kind": "Method" }, { - "$id": "661", + "$id": "687", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "662", + "$id": "688", "Name": "String", "Kind": "String", "IsNullable": false @@ -5822,9 +6053,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "663", + "$id": "689", "Type": { - "$ref": "662" + "$ref": "688" }, "Value": "application/json" } @@ -5832,34 +6063,34 @@ ], "Responses": [ { - "$id": "664", + "$id": "690", "StatusCodes": [ 201 ], "BodyType": { - "$ref": "266" + "$ref": "293" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "665", + "$id": "691", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "666", + "$id": "692", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "667", + "$id": "693", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "668", + "$id": "694", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -5869,34 +6100,34 @@ "IsErrorResponse": false }, { - "$id": "669", + "$id": "695", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "266" + "$ref": "293" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "670", + "$id": "696", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "671", + "$id": "697", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "672", + "$id": "698", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "673", + "$id": "699", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -5918,25 +6149,25 @@ "GenerateConvenienceMethod": false }, { - "$id": "674", + "$id": "700", "Name": "getQueue", "ResourceName": "RouterQueue", "Summary": "Retrieves an existing queue by Id.", "Description": "Retrieves an existing queue by Id.", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "675", + "$id": "701", "Name": "queueId", "NameInRequest": "queueId", "Description": "The Id of this queue", "Type": { - "$id": "676", + "$id": "702", "Name": "string", "Kind": "String", "IsNullable": false @@ -5952,11 +6183,11 @@ "Kind": "Method" }, { - "$id": "677", + "$id": "703", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "678", + "$id": "704", "Name": "String", "Kind": "String", "IsNullable": false @@ -5971,9 +6202,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "679", + "$id": "705", "Type": { - "$ref": "678" + "$ref": "704" }, "Value": "application/json" } @@ -5981,34 +6212,34 @@ ], "Responses": [ { - "$id": "680", + "$id": "706", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "266" + "$ref": "293" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "681", + "$id": "707", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "682", + "$id": "708", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "683", + "$id": "709", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "684", + "$id": "710", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -6027,25 +6258,26 @@ "GenerateConvenienceMethod": true }, { - "$id": "685", + "$id": "711", "Name": "listQueues", "ResourceName": "RouterQueue", "Summary": "Retrieves existing queues.", "Description": "Retrieves existing queues.", + "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "686", + "$id": "712", "Name": "maxpagesize", "NameInRequest": "maxpagesize", "Description": "Number of objects to return per page.", "Type": { - "$id": "687", + "$id": "713", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -6061,11 +6293,11 @@ "Kind": "Method" }, { - "$id": "688", + "$id": "714", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "689", + "$id": "715", "Name": "String", "Kind": "String", "IsNullable": false @@ -6080,9 +6312,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "690", + "$id": "716", "Type": { - "$ref": "689" + "$ref": "715" }, "Value": "application/json" } @@ -6090,12 +6322,12 @@ ], "Responses": [ { - "$id": "691", + "$id": "717", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "281" + "$ref": "308" }, "BodyMediaType": "Json", "Headers": [], @@ -6108,7 +6340,7 @@ "Path": "/routing/queues", "BufferResponse": true, "Paging": { - "$id": "692", + "$id": "718", "NextLinkName": "nextLink", "ItemName": "value" }, @@ -6116,25 +6348,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "693", + "$id": "719", "Name": "deleteQueue", "ResourceName": "RouterQueue", "Summary": "Deletes a queue by Id.", "Description": "Deletes a queue by Id.", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "694", + "$id": "720", "Name": "queueId", "NameInRequest": "queueId", "Description": "The Id of this queue", "Type": { - "$id": "695", + "$id": "721", "Name": "string", "Kind": "String", "IsNullable": false @@ -6150,11 +6382,11 @@ "Kind": "Method" }, { - "$id": "696", + "$id": "722", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "697", + "$id": "723", "Name": "String", "Kind": "String", "IsNullable": false @@ -6169,9 +6401,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "698", + "$id": "724", "Type": { - "$ref": "697" + "$ref": "723" }, "Value": "application/json" } @@ -6179,7 +6411,7 @@ ], "Responses": [ { - "$id": "699", + "$id": "725", "StatusCodes": [ 204 ], @@ -6198,17 +6430,17 @@ } ], "Protocol": { - "$id": "700" + "$id": "726" }, "Creatable": true }, { - "$id": "701", + "$id": "727", "Name": "JobRouterClient", "Description": "", "Operations": [ { - "$id": "702", + "$id": "728", "Name": "upsertJob", "ResourceName": "RouterJob", "Summary": "Creates or updates a router job.", @@ -6216,18 +6448,18 @@ "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "703", + "$id": "729", "Name": "jobId", "NameInRequest": "jobId", "Description": "The id of the job.", "Type": { - "$id": "704", + "$id": "730", "Name": "string", "Kind": "String", "IsNullable": false @@ -6243,15 +6475,15 @@ "Kind": "Method" }, { - "$id": "705", + "$id": "731", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "This request has a JSON Merge Patch body.", "Type": { - "$id": "706", + "$id": "732", "Name": "Literal", "LiteralValueType": { - "$id": "707", + "$id": "733", "Name": "String", "Kind": "String", "IsNullable": false @@ -6261,9 +6493,9 @@ }, "Location": "Header", "DefaultValue": { - "$id": "708", + "$id": "734", "Type": { - "$ref": "706" + "$ref": "732" }, "Value": "application/merge-patch+json" }, @@ -6277,12 +6509,12 @@ "Kind": "Constant" }, { - "$id": "709", + "$id": "735", "Name": "ifMatch", "NameInRequest": "If-Match", "Description": "The request should only proceed if an entity matches this string.", "Type": { - "$id": "710", + "$id": "736", "Name": "string", "Kind": "String", "IsNullable": false @@ -6298,12 +6530,12 @@ "Kind": "Method" }, { - "$id": "711", + "$id": "737", "Name": "ifUnmodifiedSince", "NameInRequest": "If-Unmodified-Since", "Description": "The request should only proceed if the entity was not modified after this time.", "Type": { - "$id": "712", + "$id": "738", "Name": "utcDateTime", "Kind": "DateTimeRFC7231", "IsNullable": false @@ -6319,12 +6551,12 @@ "Kind": "Method" }, { - "$id": "713", + "$id": "739", "Name": "resource", "NameInRequest": "resource", "Description": "The resource instance.", "Type": { - "$ref": "286" + "$ref": "313" }, "Location": "Body", "IsRequired": true, @@ -6337,11 +6569,11 @@ "Kind": "Method" }, { - "$id": "714", + "$id": "740", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "715", + "$id": "741", "Name": "String", "Kind": "String", "IsNullable": false @@ -6356,9 +6588,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "716", + "$id": "742", "Type": { - "$ref": "715" + "$ref": "741" }, "Value": "application/json" } @@ -6366,34 +6598,34 @@ ], "Responses": [ { - "$id": "717", + "$id": "743", "StatusCodes": [ 201 ], "BodyType": { - "$ref": "286" + "$ref": "313" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "718", + "$id": "744", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "719", + "$id": "745", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "720", + "$id": "746", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "721", + "$id": "747", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -6403,34 +6635,34 @@ "IsErrorResponse": false }, { - "$id": "722", + "$id": "748", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "286" + "$ref": "313" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "723", + "$id": "749", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "724", + "$id": "750", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "725", + "$id": "751", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "726", + "$id": "752", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -6452,25 +6684,25 @@ "GenerateConvenienceMethod": false }, { - "$id": "727", + "$id": "753", "Name": "getJob", "ResourceName": "RouterJob", "Summary": "Retrieves an existing job by Id.", "Description": "Retrieves an existing job by Id.", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "728", + "$id": "754", "Name": "jobId", "NameInRequest": "jobId", "Description": "The id of the job.", "Type": { - "$id": "729", + "$id": "755", "Name": "string", "Kind": "String", "IsNullable": false @@ -6486,11 +6718,11 @@ "Kind": "Method" }, { - "$id": "730", + "$id": "756", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "731", + "$id": "757", "Name": "String", "Kind": "String", "IsNullable": false @@ -6505,9 +6737,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "732", + "$id": "758", "Type": { - "$ref": "731" + "$ref": "757" }, "Value": "application/json" } @@ -6515,34 +6747,34 @@ ], "Responses": [ { - "$id": "733", + "$id": "759", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "286" + "$ref": "313" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "734", + "$id": "760", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "735", + "$id": "761", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "736", + "$id": "762", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "737", + "$id": "763", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -6561,25 +6793,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "738", + "$id": "764", "Name": "deleteJob", "ResourceName": "RouterJob", "Summary": "Deletes a job and all of its traces.", "Description": "Deletes a job and all of its traces.", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "739", + "$id": "765", "Name": "jobId", "NameInRequest": "jobId", "Description": "The id of the job.", "Type": { - "$id": "740", + "$id": "766", "Name": "string", "Kind": "String", "IsNullable": false @@ -6595,11 +6827,11 @@ "Kind": "Method" }, { - "$id": "741", + "$id": "767", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "742", + "$id": "768", "Name": "String", "Kind": "String", "IsNullable": false @@ -6614,9 +6846,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "743", + "$id": "769", "Type": { - "$ref": "742" + "$ref": "768" }, "Value": "application/json" } @@ -6624,7 +6856,7 @@ ], "Responses": [ { - "$id": "744", + "$id": "770", "StatusCodes": [ 204 ], @@ -6642,7 +6874,7 @@ "GenerateConvenienceMethod": true }, { - "$id": "745", + "$id": "771", "Name": "reclassifyJob", "ResourceName": "JobRouterRestClient", "Summary": "Reclassify a job.", @@ -6650,18 +6882,18 @@ "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "746", + "$id": "772", "Name": "jobId", "NameInRequest": "jobId", "Description": "The id of the job.", "Type": { - "$id": "747", + "$id": "773", "Name": "string", "Kind": "String", "IsNullable": false @@ -6677,12 +6909,12 @@ "Kind": "Method" }, { - "$id": "748", + "$id": "774", "Name": "options", "NameInRequest": "options", "Description": "Request object for reclassifying a job.", "Type": { - "$ref": "350" + "$ref": "376" }, "Location": "Body", "IsRequired": false, @@ -6695,11 +6927,11 @@ "Kind": "Method" }, { - "$id": "749", + "$id": "775", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "750", + "$id": "776", "Name": "String", "Kind": "String", "IsNullable": false @@ -6714,19 +6946,19 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "751", + "$id": "777", "Type": { - "$ref": "750" + "$ref": "776" }, "Value": "application/json" } }, { - "$id": "752", + "$id": "778", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "753", + "$id": "779", "Name": "String", "Kind": "String", "IsNullable": false @@ -6741,9 +6973,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "754", + "$id": "780", "Type": { - "$ref": "753" + "$ref": "779" }, "Value": "application/json" } @@ -6751,12 +6983,12 @@ ], "Responses": [ { - "$id": "755", + "$id": "781", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "351" + "$ref": "377" }, "BodyMediaType": "Json", "Headers": [], @@ -6775,7 +7007,7 @@ "GenerateConvenienceMethod": true }, { - "$id": "756", + "$id": "782", "Name": "cancelJob", "ResourceName": "JobRouterRestClient", "Summary": "Submits request to cancel an existing job by Id while supplying free-form cancellation reason.", @@ -6783,18 +7015,18 @@ "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "757", + "$id": "783", "Name": "jobId", "NameInRequest": "jobId", "Description": "The id of the job.", "Type": { - "$id": "758", + "$id": "784", "Name": "string", "Kind": "String", "IsNullable": false @@ -6810,12 +7042,12 @@ "Kind": "Method" }, { - "$id": "759", + "$id": "785", "Name": "options", "NameInRequest": "options", "Description": "Request model for cancelling job.", "Type": { - "$ref": "352" + "$ref": "378" }, "Location": "Body", "IsRequired": false, @@ -6828,11 +7060,11 @@ "Kind": "Method" }, { - "$id": "760", + "$id": "786", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "761", + "$id": "787", "Name": "String", "Kind": "String", "IsNullable": false @@ -6847,19 +7079,19 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "762", + "$id": "788", "Type": { - "$ref": "761" + "$ref": "787" }, "Value": "application/json" } }, { - "$id": "763", + "$id": "789", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "764", + "$id": "790", "Name": "String", "Kind": "String", "IsNullable": false @@ -6874,9 +7106,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "765", + "$id": "791", "Type": { - "$ref": "764" + "$ref": "790" }, "Value": "application/json" } @@ -6884,12 +7116,12 @@ ], "Responses": [ { - "$id": "766", + "$id": "792", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "357" + "$ref": "383" }, "BodyMediaType": "Json", "Headers": [], @@ -6908,7 +7140,7 @@ "GenerateConvenienceMethod": true }, { - "$id": "767", + "$id": "793", "Name": "completeJob", "ResourceName": "JobRouterRestClient", "Summary": "Completes an assigned job.", @@ -6916,18 +7148,18 @@ "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "768", + "$id": "794", "Name": "jobId", "NameInRequest": "jobId", "Description": "The id of the job.", "Type": { - "$id": "769", + "$id": "795", "Name": "string", "Kind": "String", "IsNullable": false @@ -6943,12 +7175,12 @@ "Kind": "Method" }, { - "$id": "770", + "$id": "796", "Name": "assignmentId", "NameInRequest": "assignmentId", "Description": "The Id of the job assignment.", "Type": { - "$id": "771", + "$id": "797", "Name": "string", "Kind": "String", "IsNullable": false @@ -6964,12 +7196,12 @@ "Kind": "Method" }, { - "$id": "772", + "$id": "798", "Name": "options", "NameInRequest": "options", "Description": "Request model for completing job.", "Type": { - "$ref": "358" + "$ref": "384" }, "Location": "Body", "IsRequired": false, @@ -6982,11 +7214,11 @@ "Kind": "Method" }, { - "$id": "773", + "$id": "799", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "774", + "$id": "800", "Name": "String", "Kind": "String", "IsNullable": false @@ -7001,19 +7233,19 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "775", + "$id": "801", "Type": { - "$ref": "774" + "$ref": "800" }, "Value": "application/json" } }, { - "$id": "776", + "$id": "802", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "777", + "$id": "803", "Name": "String", "Kind": "String", "IsNullable": false @@ -7028,9 +7260,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "778", + "$id": "804", "Type": { - "$ref": "777" + "$ref": "803" }, "Value": "application/json" } @@ -7038,12 +7270,12 @@ ], "Responses": [ { - "$id": "779", + "$id": "805", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "361" + "$ref": "387" }, "BodyMediaType": "Json", "Headers": [], @@ -7062,7 +7294,7 @@ "GenerateConvenienceMethod": true }, { - "$id": "780", + "$id": "806", "Name": "closeJob", "ResourceName": "JobRouterRestClient", "Summary": "Closes a completed job.", @@ -7070,18 +7302,18 @@ "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "781", + "$id": "807", "Name": "jobId", "NameInRequest": "jobId", "Description": "The id of the job.", "Type": { - "$id": "782", + "$id": "808", "Name": "string", "Kind": "String", "IsNullable": false @@ -7097,12 +7329,12 @@ "Kind": "Method" }, { - "$id": "783", + "$id": "809", "Name": "assignmentId", "NameInRequest": "assignmentId", "Description": "The Id of the job assignment.", "Type": { - "$id": "784", + "$id": "810", "Name": "string", "Kind": "String", "IsNullable": false @@ -7118,12 +7350,12 @@ "Kind": "Method" }, { - "$id": "785", + "$id": "811", "Name": "options", "NameInRequest": "options", "Description": "Request model for closing job.", "Type": { - "$ref": "362" + "$ref": "388" }, "Location": "Body", "IsRequired": false, @@ -7136,11 +7368,11 @@ "Kind": "Method" }, { - "$id": "786", + "$id": "812", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "787", + "$id": "813", "Name": "String", "Kind": "String", "IsNullable": false @@ -7155,19 +7387,19 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "788", + "$id": "814", "Type": { - "$ref": "787" + "$ref": "813" }, "Value": "application/json" } }, { - "$id": "789", + "$id": "815", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "790", + "$id": "816", "Name": "String", "Kind": "String", "IsNullable": false @@ -7182,9 +7414,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "791", + "$id": "817", "Type": { - "$ref": "790" + "$ref": "816" }, "Value": "application/json" } @@ -7192,12 +7424,12 @@ ], "Responses": [ { - "$id": "792", + "$id": "818", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "369" + "$ref": "395" }, "BodyMediaType": "Json", "Headers": [], @@ -7216,25 +7448,26 @@ "GenerateConvenienceMethod": true }, { - "$id": "793", + "$id": "819", "Name": "listJobs", "ResourceName": "RouterJob", "Summary": "Retrieves list of jobs based on filter parameters.", "Description": "Retrieves list of jobs based on filter parameters.", + "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "794", + "$id": "820", "Name": "maxpagesize", "NameInRequest": "maxpagesize", "Description": "Number of objects to return per page.", "Type": { - "$id": "795", + "$id": "821", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -7250,12 +7483,12 @@ "Kind": "Method" }, { - "$id": "796", + "$id": "822", "Name": "status", "NameInRequest": "status", "Description": "If specified, filter jobs by status.", "Type": { - "$ref": "30" + "$ref": "63" }, "Location": "Query", "IsRequired": false, @@ -7268,12 +7501,12 @@ "Kind": "Method" }, { - "$id": "797", + "$id": "823", "Name": "queueId", "NameInRequest": "queueId", "Description": "If specified, filter jobs by queue.", "Type": { - "$id": "798", + "$id": "824", "Name": "string", "Kind": "String", "IsNullable": false @@ -7289,12 +7522,12 @@ "Kind": "Method" }, { - "$id": "799", + "$id": "825", "Name": "channelId", "NameInRequest": "channelId", "Description": "If specified, filter jobs by channel.", "Type": { - "$id": "800", + "$id": "826", "Name": "string", "Kind": "String", "IsNullable": false @@ -7310,12 +7543,12 @@ "Kind": "Method" }, { - "$id": "801", + "$id": "827", "Name": "classificationPolicyId", "NameInRequest": "classificationPolicyId", "Description": "If specified, filter jobs by classificationPolicy.", "Type": { - "$id": "802", + "$id": "828", "Name": "string", "Kind": "String", "IsNullable": false @@ -7331,12 +7564,12 @@ "Kind": "Method" }, { - "$id": "803", + "$id": "829", "Name": "scheduledBefore", "NameInRequest": "scheduledBefore", "Description": "If specified, filter on jobs that was scheduled before or at given timestamp. Range: (-Inf, scheduledBefore].", "Type": { - "$id": "804", + "$id": "830", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -7352,12 +7585,12 @@ "Kind": "Method" }, { - "$id": "805", + "$id": "831", "Name": "scheduledAfter", "NameInRequest": "scheduledAfter", "Description": "If specified, filter on jobs that was scheduled at or after given value. Range: [scheduledAfter, +Inf).", "Type": { - "$id": "806", + "$id": "832", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -7373,11 +7606,11 @@ "Kind": "Method" }, { - "$id": "807", + "$id": "833", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "808", + "$id": "834", "Name": "String", "Kind": "String", "IsNullable": false @@ -7392,9 +7625,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "809", + "$id": "835", "Type": { - "$ref": "808" + "$ref": "834" }, "Value": "application/json" } @@ -7402,12 +7635,12 @@ ], "Responses": [ { - "$id": "810", + "$id": "836", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "370" + "$ref": "396" }, "BodyMediaType": "Json", "Headers": [], @@ -7420,7 +7653,7 @@ "Path": "/routing/jobs", "BufferResponse": true, "Paging": { - "$id": "811", + "$id": "837", "NextLinkName": "nextLink", "ItemName": "value" }, @@ -7428,25 +7661,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "812", + "$id": "838", "Name": "getQueuePosition", "ResourceName": "JobRouterRestClient", "Summary": "Gets a job's position details.", "Description": "Gets a job's position details.", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "813", + "$id": "839", "Name": "jobId", "NameInRequest": "jobId", "Description": "Id of the job.", "Type": { - "$id": "814", + "$id": "840", "Name": "string", "Kind": "String", "IsNullable": false @@ -7462,11 +7695,11 @@ "Kind": "Method" }, { - "$id": "815", + "$id": "841", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "816", + "$id": "842", "Name": "String", "Kind": "String", "IsNullable": false @@ -7481,9 +7714,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "817", + "$id": "843", "Type": { - "$ref": "816" + "$ref": "842" }, "Value": "application/json" } @@ -7491,12 +7724,12 @@ ], "Responses": [ { - "$id": "818", + "$id": "844", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "375" + "$ref": "401" }, "BodyMediaType": "Json", "Headers": [], @@ -7512,7 +7745,7 @@ "GenerateConvenienceMethod": true }, { - "$id": "819", + "$id": "845", "Name": "unassignJob", "ResourceName": "JobRouterRestClient", "Summary": "Un-assign a job.", @@ -7520,18 +7753,18 @@ "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "820", + "$id": "846", "Name": "jobId", "NameInRequest": "jobId", "Description": "The id of the job.", "Type": { - "$id": "821", + "$id": "847", "Name": "string", "Kind": "String", "IsNullable": false @@ -7547,12 +7780,12 @@ "Kind": "Method" }, { - "$id": "822", + "$id": "848", "Name": "assignmentId", "NameInRequest": "assignmentId", "Description": "The Id of the job assignment.", "Type": { - "$id": "823", + "$id": "849", "Name": "string", "Kind": "String", "IsNullable": false @@ -7568,12 +7801,12 @@ "Kind": "Method" }, { - "$id": "824", + "$id": "850", "Name": "options", "NameInRequest": "options", "Description": "Request body for unassign route.", "Type": { - "$ref": "386" + "$ref": "412" }, "Location": "Body", "IsRequired": false, @@ -7586,11 +7819,11 @@ "Kind": "Method" }, { - "$id": "825", + "$id": "851", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "826", + "$id": "852", "Name": "String", "Kind": "String", "IsNullable": false @@ -7605,19 +7838,19 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "827", + "$id": "853", "Type": { - "$ref": "826" + "$ref": "852" }, "Value": "application/json" } }, { - "$id": "828", + "$id": "854", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "829", + "$id": "855", "Name": "String", "Kind": "String", "IsNullable": false @@ -7632,9 +7865,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "830", + "$id": "856", "Type": { - "$ref": "829" + "$ref": "855" }, "Value": "application/json" } @@ -7642,12 +7875,12 @@ ], "Responses": [ { - "$id": "831", + "$id": "857", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "389" + "$ref": "415" }, "BodyMediaType": "Json", "Headers": [], @@ -7666,25 +7899,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "832", + "$id": "858", "Name": "acceptJobOffer", "ResourceName": "JobRouterRestClient", "Summary": "Accepts an offer to work on a job and returns a 409/Conflict if another agent accepted the job already.", "Description": "Accepts an offer to work on a job and returns a 409/Conflict if another agent accepted the job already.", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "833", + "$id": "859", "Name": "workerId", "NameInRequest": "workerId", "Description": "Id of the worker.", "Type": { - "$id": "834", + "$id": "860", "Name": "string", "Kind": "String", "IsNullable": false @@ -7700,12 +7933,12 @@ "Kind": "Method" }, { - "$id": "835", + "$id": "861", "Name": "offerId", "NameInRequest": "offerId", "Description": "The Id of the offer.", "Type": { - "$id": "836", + "$id": "862", "Name": "string", "Kind": "String", "IsNullable": false @@ -7721,11 +7954,11 @@ "Kind": "Method" }, { - "$id": "837", + "$id": "863", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "838", + "$id": "864", "Name": "String", "Kind": "String", "IsNullable": false @@ -7740,9 +7973,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "839", + "$id": "865", "Type": { - "$ref": "838" + "$ref": "864" }, "Value": "application/json" } @@ -7750,12 +7983,12 @@ ], "Responses": [ { - "$id": "840", + "$id": "866", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "394" + "$ref": "420" }, "BodyMediaType": "Json", "Headers": [], @@ -7771,7 +8004,7 @@ "GenerateConvenienceMethod": true }, { - "$id": "841", + "$id": "867", "Name": "declineJobOffer", "ResourceName": "JobRouterRestClient", "Summary": "Declines an offer to work on a job.", @@ -7779,18 +8012,18 @@ "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "842", + "$id": "868", "Name": "workerId", "NameInRequest": "workerId", "Description": "Id of the worker.", "Type": { - "$id": "843", + "$id": "869", "Name": "string", "Kind": "String", "IsNullable": false @@ -7806,12 +8039,12 @@ "Kind": "Method" }, { - "$id": "844", + "$id": "870", "Name": "offerId", "NameInRequest": "offerId", "Description": "The Id of the offer.", "Type": { - "$id": "845", + "$id": "871", "Name": "string", "Kind": "String", "IsNullable": false @@ -7827,12 +8060,12 @@ "Kind": "Method" }, { - "$id": "846", + "$id": "872", "Name": "options", "NameInRequest": "options", "Description": "Request model for declining offer.", "Type": { - "$ref": "401" + "$ref": "427" }, "Location": "Body", "IsRequired": false, @@ -7845,11 +8078,11 @@ "Kind": "Method" }, { - "$id": "847", + "$id": "873", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "848", + "$id": "874", "Name": "String", "Kind": "String", "IsNullable": false @@ -7864,19 +8097,19 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "849", + "$id": "875", "Type": { - "$ref": "848" + "$ref": "874" }, "Value": "application/json" } }, { - "$id": "850", + "$id": "876", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "851", + "$id": "877", "Name": "String", "Kind": "String", "IsNullable": false @@ -7891,9 +8124,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "852", + "$id": "878", "Type": { - "$ref": "851" + "$ref": "877" }, "Value": "application/json" } @@ -7901,12 +8134,12 @@ ], "Responses": [ { - "$id": "853", + "$id": "879", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "404" + "$ref": "430" }, "BodyMediaType": "Json", "Headers": [], @@ -7925,25 +8158,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "854", + "$id": "880", "Name": "getQueueStatistics", "ResourceName": "JobRouterRestClient", "Summary": "Retrieves a queue's statistics.", "Description": "Retrieves a queue's statistics.", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "855", + "$id": "881", "Name": "queueId", "NameInRequest": "queueId", "Description": "Id of the queue to retrieve statistics.", "Type": { - "$id": "856", + "$id": "882", "Name": "string", "Kind": "String", "IsNullable": false @@ -7959,11 +8192,11 @@ "Kind": "Method" }, { - "$id": "857", + "$id": "883", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "858", + "$id": "884", "Name": "String", "Kind": "String", "IsNullable": false @@ -7978,9 +8211,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "859", + "$id": "885", "Type": { - "$ref": "858" + "$ref": "884" }, "Value": "application/json" } @@ -7988,12 +8221,12 @@ ], "Responses": [ { - "$id": "860", + "$id": "886", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "405" + "$ref": "431" }, "BodyMediaType": "Json", "Headers": [], @@ -8009,7 +8242,7 @@ "GenerateConvenienceMethod": true }, { - "$id": "861", + "$id": "887", "Name": "upsertWorker", "ResourceName": "RouterWorker", "Summary": "Creates or updates a worker.", @@ -8017,18 +8250,18 @@ "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "862", + "$id": "888", "Name": "workerId", "NameInRequest": "workerId", "Description": "Id of the worker.", "Type": { - "$id": "863", + "$id": "889", "Name": "string", "Kind": "String", "IsNullable": false @@ -8044,15 +8277,15 @@ "Kind": "Method" }, { - "$id": "864", + "$id": "890", "Name": "contentType", "NameInRequest": "Content-Type", "Description": "This request has a JSON Merge Patch body.", "Type": { - "$id": "865", + "$id": "891", "Name": "Literal", "LiteralValueType": { - "$id": "866", + "$id": "892", "Name": "String", "Kind": "String", "IsNullable": false @@ -8062,9 +8295,9 @@ }, "Location": "Header", "DefaultValue": { - "$id": "867", + "$id": "893", "Type": { - "$ref": "865" + "$ref": "891" }, "Value": "application/merge-patch+json" }, @@ -8078,12 +8311,12 @@ "Kind": "Constant" }, { - "$id": "868", + "$id": "894", "Name": "ifMatch", "NameInRequest": "If-Match", "Description": "The request should only proceed if an entity matches this string.", "Type": { - "$id": "869", + "$id": "895", "Name": "string", "Kind": "String", "IsNullable": false @@ -8099,12 +8332,12 @@ "Kind": "Method" }, { - "$id": "870", + "$id": "896", "Name": "ifUnmodifiedSince", "NameInRequest": "If-Unmodified-Since", "Description": "The request should only proceed if the entity was not modified after this time.", "Type": { - "$id": "871", + "$id": "897", "Name": "utcDateTime", "Kind": "DateTimeRFC7231", "IsNullable": false @@ -8120,12 +8353,12 @@ "Kind": "Method" }, { - "$id": "872", + "$id": "898", "Name": "resource", "NameInRequest": "resource", "Description": "The resource instance.", "Type": { - "$ref": "416" + "$ref": "442" }, "Location": "Body", "IsRequired": true, @@ -8138,11 +8371,11 @@ "Kind": "Method" }, { - "$id": "873", + "$id": "899", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "874", + "$id": "900", "Name": "String", "Kind": "String", "IsNullable": false @@ -8157,9 +8390,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "875", + "$id": "901", "Type": { - "$ref": "874" + "$ref": "900" }, "Value": "application/json" } @@ -8167,34 +8400,34 @@ ], "Responses": [ { - "$id": "876", + "$id": "902", "StatusCodes": [ 201 ], "BodyType": { - "$ref": "416" + "$ref": "442" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "877", + "$id": "903", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "878", + "$id": "904", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "879", + "$id": "905", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "880", + "$id": "906", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -8204,34 +8437,34 @@ "IsErrorResponse": false }, { - "$id": "881", + "$id": "907", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "416" + "$ref": "442" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "882", + "$id": "908", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "883", + "$id": "909", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "884", + "$id": "910", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "885", + "$id": "911", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -8253,25 +8486,25 @@ "GenerateConvenienceMethod": false }, { - "$id": "886", + "$id": "912", "Name": "getWorker", "ResourceName": "RouterWorker", "Summary": "Retrieves an existing worker by Id.", "Description": "Retrieves an existing worker by Id.", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "887", + "$id": "913", "Name": "workerId", "NameInRequest": "workerId", "Description": "Id of the worker.", "Type": { - "$id": "888", + "$id": "914", "Name": "string", "Kind": "String", "IsNullable": false @@ -8287,11 +8520,11 @@ "Kind": "Method" }, { - "$id": "889", + "$id": "915", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "890", + "$id": "916", "Name": "String", "Kind": "String", "IsNullable": false @@ -8306,9 +8539,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "891", + "$id": "917", "Type": { - "$ref": "890" + "$ref": "916" }, "Value": "application/json" } @@ -8316,34 +8549,34 @@ ], "Responses": [ { - "$id": "892", + "$id": "918", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "416" + "$ref": "442" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "893", + "$id": "919", "Name": "ETag", "NameInResponse": "etagHeader", "Description": "The entity tag for the response.", "Type": { - "$id": "894", + "$id": "920", "Name": "string", "Kind": "String", "IsNullable": false } }, { - "$id": "895", + "$id": "921", "Name": "Last-Modified", "NameInResponse": "lastModifiedTimestamp", "Description": "The last modified timestamp.", "Type": { - "$id": "896", + "$id": "922", "Name": "utcDateTime", "Kind": "DateTime", "IsNullable": false @@ -8362,25 +8595,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "897", + "$id": "923", "Name": "deleteWorker", "ResourceName": "RouterWorker", "Summary": "Deletes a worker and all of its traces.", "Description": "Deletes a worker and all of its traces.", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "898", + "$id": "924", "Name": "workerId", "NameInRequest": "workerId", "Description": "Id of the worker.", "Type": { - "$id": "899", + "$id": "925", "Name": "string", "Kind": "String", "IsNullable": false @@ -8396,11 +8629,11 @@ "Kind": "Method" }, { - "$id": "900", + "$id": "926", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "901", + "$id": "927", "Name": "String", "Kind": "String", "IsNullable": false @@ -8415,9 +8648,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "902", + "$id": "928", "Type": { - "$ref": "901" + "$ref": "927" }, "Value": "application/json" } @@ -8425,7 +8658,7 @@ ], "Responses": [ { - "$id": "903", + "$id": "929", "StatusCodes": [ 204 ], @@ -8443,25 +8676,26 @@ "GenerateConvenienceMethod": true }, { - "$id": "904", + "$id": "930", "Name": "listWorkers", "ResourceName": "RouterWorker", "Summary": "Retrieves existing workers.", "Description": "Retrieves existing workers.", + "Accessibility": "internal", "Parameters": [ { - "$ref": "491" + "$ref": "517" }, { - "$ref": "493" + "$ref": "519" }, { - "$id": "905", + "$id": "931", "Name": "maxpagesize", "NameInRequest": "maxpagesize", "Description": "Number of objects to return per page.", "Type": { - "$id": "906", + "$id": "932", "Name": "int32", "Kind": "Int32", "IsNullable": false @@ -8477,12 +8711,12 @@ "Kind": "Method" }, { - "$id": "907", + "$id": "933", "Name": "state", "NameInRequest": "state", "Description": "If specified, select workers by worker state.", "Type": { - "$ref": "49" + "$ref": "82" }, "Location": "Query", "IsRequired": false, @@ -8495,12 +8729,12 @@ "Kind": "Method" }, { - "$id": "908", + "$id": "934", "Name": "channelId", "NameInRequest": "channelId", "Description": "If specified, select workers who have a channel configuration with this channel.", "Type": { - "$id": "909", + "$id": "935", "Name": "string", "Kind": "String", "IsNullable": false @@ -8516,12 +8750,12 @@ "Kind": "Method" }, { - "$id": "910", + "$id": "936", "Name": "queueId", "NameInRequest": "queueId", "Description": "If specified, select workers who are assigned to this queue.", "Type": { - "$id": "911", + "$id": "937", "Name": "string", "Kind": "String", "IsNullable": false @@ -8537,12 +8771,12 @@ "Kind": "Method" }, { - "$id": "912", + "$id": "938", "Name": "hasCapacity", "NameInRequest": "hasCapacity", "Description": "If set to true, select only workers who have capacity for the channel specified by `channelId` or for any channel if `channelId` not specified. If set to false, then will return all workers including workers without any capacity for jobs. Defaults to false.", "Type": { - "$id": "913", + "$id": "939", "Name": "boolean", "Kind": "Boolean", "IsNullable": false @@ -8558,11 +8792,11 @@ "Kind": "Method" }, { - "$id": "914", + "$id": "940", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "915", + "$id": "941", "Name": "String", "Kind": "String", "IsNullable": false @@ -8577,9 +8811,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "916", + "$id": "942", "Type": { - "$ref": "915" + "$ref": "941" }, "Value": "application/json" } @@ -8587,12 +8821,12 @@ ], "Responses": [ { - "$id": "917", + "$id": "943", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "472" + "$ref": "498" }, "BodyMediaType": "Json", "Headers": [], @@ -8605,7 +8839,7 @@ "Path": "/routing/workers", "BufferResponse": true, "Paging": { - "$id": "918", + "$id": "944", "NextLinkName": "nextLink", "ItemName": "value" }, @@ -8614,7 +8848,7 @@ } ], "Protocol": { - "$id": "919" + "$id": "945" }, "Creatable": true } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/BestWorkerMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/BestWorkerMode.cs index 4ffe9568329e8..8cbd876ae34e3 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/BestWorkerMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/BestWorkerMode.cs @@ -18,7 +18,7 @@ public partial class BestWorkerMode : IUtf8JsonSerializable /// public BestWorkerMode() { - Kind = "best-worker"; + Kind = DistributionModeKind.BestWorker; } #endregion @@ -62,7 +62,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(ScoringRuleOptions); } writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); if (Optional.IsDefined(MinConcurrentOffers)) { writer.WritePropertyName("minConcurrentOffers"u8); diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/CancelExceptionAction.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/CancelExceptionAction.cs index 01660c2aae4c9..3bbaedd2f2ad7 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/CancelExceptionAction.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/CancelExceptionAction.cs @@ -12,7 +12,7 @@ public partial class CancelExceptionAction: IUtf8JsonSerializable /// Initializes a new instance of CancelExceptionAction. public CancelExceptionAction() { - Kind = "cancel"; + Kind = ExceptionActionKind.Cancel; } /// @@ -46,7 +46,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(DispositionCode); } writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/ConditionalQueueSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/ConditionalQueueSelectorAttachment.cs index d80f7f8397fb1..cca6f78fac74b 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/ConditionalQueueSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/ConditionalQueueSelectorAttachment.cs @@ -48,7 +48,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/ConditionalWorkerSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/ConditionalWorkerSelectorAttachment.cs index ab9acc9c6a9d9..b3deaf1afff34 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/ConditionalWorkerSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/ConditionalWorkerSelectorAttachment.cs @@ -48,7 +48,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/DirectMapRouterRule.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/DirectMapRouterRule.cs index 2c232cc32ddaf..4e0046a2189f0 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/DirectMapRouterRule.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/DirectMapRouterRule.cs @@ -11,14 +11,14 @@ public partial class DirectMapRouterRule : IUtf8JsonSerializable /// Initializes a new instance of DirectMapRouterRule. public DirectMapRouterRule() { - Kind = "direct-map-rule"; + Kind = RouterRuleKind.DirectMap; } void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/DistributionMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/DistributionMode.cs index 8af5678c4f047..a65f8fe72b5b5 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/DistributionMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/DistributionMode.cs @@ -10,7 +10,7 @@ namespace Azure.Communication.JobRouter public abstract partial class DistributionMode : IUtf8JsonSerializable { /// The type discriminator describing a sub-type of DistributionMode. - public string Kind { get; protected set; } + public DistributionModeKind Kind { get; protected set; } /// /// (Optional) @@ -41,7 +41,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); if (Optional.IsDefined(MinConcurrentOffers)) { writer.WritePropertyName("minConcurrentOffers"u8); diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/DistributionModeKind.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/DistributionModeKind.cs new file mode 100644 index 0000000000000..08a597b564d80 --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/DistributionModeKind.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.Communication.JobRouter +{ + public readonly partial struct DistributionModeKind + { + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/ExceptionAction.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/ExceptionAction.cs index eea28c173dd2c..87b0d1536f2ce 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/ExceptionAction.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/ExceptionAction.cs @@ -10,7 +10,7 @@ namespace Azure.Communication.JobRouter public abstract partial class ExceptionAction : IUtf8JsonSerializable { /// The type discriminator describing a sub-type of ExceptionAction. - public string Kind { get; protected set; } + public ExceptionActionKind Kind { get; protected set; } void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -21,8 +21,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Id); } writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/ExceptionActionKind.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/ExceptionActionKind.cs new file mode 100644 index 0000000000000..8ca3eeb7f1652 --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/ExceptionActionKind.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.Communication.JobRouter +{ + public readonly partial struct ExceptionActionKind + { + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/ExceptionTrigger.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/ExceptionTrigger.cs index 33117c39a560c..bfe6d8f73ffc1 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/ExceptionTrigger.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/ExceptionTrigger.cs @@ -10,13 +10,13 @@ namespace Azure.Communication.JobRouter public abstract partial class ExceptionTrigger : IUtf8JsonSerializable { /// The type discriminator describing a sub-type of ExceptionTrigger. - public string Kind { get; protected set; } + public ExceptionTriggerKind Kind { get; protected set; } void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/ExceptionTriggerKind.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/ExceptionTriggerKind.cs new file mode 100644 index 0000000000000..0f69c20109a8a --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/ExceptionTriggerKind.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.Communication.JobRouter +{ + public readonly partial struct ExceptionTriggerKind + { + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/ExpressionRouterRule.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/ExpressionRouterRule.cs index 58ada46c259bb..3d4f864a136f4 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/ExpressionRouterRule.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/ExpressionRouterRule.cs @@ -15,7 +15,7 @@ public partial class ExpressionRouterRule : IUtf8JsonSerializable /// Initializes a new instance of ExpressionRule. /// The string containing the expression to evaluate. Should contain return statement with calculated values. /// is null. - public ExpressionRouterRule(string expression) : this("expression-rule", ExpressionRouterRuleLanguage.PowerFx.ToString(), expression) + public ExpressionRouterRule(string expression) : this(RouterRuleKind.Expression, ExpressionRouterRuleLanguage.PowerFx.ToString(), expression) { Argument.AssertNotNull(expression, nameof(expression)); } @@ -31,7 +31,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("expression"u8); writer.WriteStringValue(Expression); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/FunctionRouterRule.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/FunctionRouterRule.cs index 77887891f4528..38a7354977b18 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/FunctionRouterRule.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/FunctionRouterRule.cs @@ -13,7 +13,7 @@ public partial class FunctionRouterRule : IUtf8JsonSerializable /// URL for custom azure function. /// is null. public FunctionRouterRule(Uri functionAppUri) - : this("azure-function-rule", functionAppUri, null) + : this(RouterRuleKind.Function, functionAppUri, null) { Argument.AssertNotNull(functionAppUri, nameof(functionAppUri)); } @@ -32,7 +32,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(Credential); } writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/JobMatchingMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/JobMatchingMode.cs index 3cb9588bb7297..36ba929b2faab 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/JobMatchingMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/JobMatchingMode.cs @@ -9,13 +9,13 @@ namespace Azure.Communication.JobRouter public abstract partial class JobMatchingMode : IUtf8JsonSerializable { /// The type discriminator describing a sub-type of JobMatchingMode. - public string Kind { get; protected set; } + public JobMatchingModeKind Kind { get; protected set; } void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/JobMatchingModeKind.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/JobMatchingModeKind.cs new file mode 100644 index 0000000000000..271bcd9f594a0 --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/JobMatchingModeKind.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.Communication.JobRouter +{ + public readonly partial struct JobMatchingModeKind + { + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/JobRouterAdministrationClient.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/JobRouterAdministrationClient.cs index b2c9245e50e3a..83235a8fc3c50 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/JobRouterAdministrationClient.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/JobRouterAdministrationClient.cs @@ -7,6 +7,7 @@ using Azure.Communication.Pipeline; using Azure.Core; using Azure.Core.Pipeline; +using Autorest.CSharp.Core; namespace Azure.Communication.JobRouter { @@ -321,6 +322,20 @@ public virtual Response UpdateClassificationPolicy(string classificationPolicyId } } + /// Retrieves existing classification policies. + /// The cancellation token to use. + public virtual AsyncPageable GetClassificationPoliciesAsync(CancellationToken cancellationToken = default) + { + return GetClassificationPoliciesAsync(null, cancellationToken); + } + + /// Retrieves existing classification policies. + /// The cancellation token to use. + public virtual Pageable GetClassificationPolicies(CancellationToken cancellationToken = default) + { + return GetClassificationPolicies(null, cancellationToken); + } + #endregion ClassificationPolicy #region DistributionPolicy @@ -527,6 +542,20 @@ public virtual Response UpdateDistributionPolicy(string distributionPolicyId, Re } } + /// Retrieves existing distribution policies. + /// The cancellation token to use. + public virtual AsyncPageable GetDistributionPoliciesAsync(CancellationToken cancellationToken = default) + { + return GetDistributionPoliciesAsync(null, cancellationToken); + } + + /// Retrieves existing distribution policies. + /// The cancellation token to use. + public virtual Pageable GetDistributionPolicies(CancellationToken cancellationToken = default) + { + return GetDistributionPolicies(null, cancellationToken); + } + #endregion DistributionPolicy #region ExceptionPolicy @@ -737,6 +766,20 @@ internal virtual Response UpdateExceptionPolicy(string exceptionPolicyId, Reques } } + /// Retrieves existing exception policies. + /// The cancellation token to use. + public virtual AsyncPageable GetExceptionPoliciesAsync(CancellationToken cancellationToken = default) + { + return GetExceptionPoliciesAsync(null, cancellationToken); + } + + /// Retrieves existing exception policies. + /// The cancellation token to use. + public virtual Pageable GetExceptionPolicies(CancellationToken cancellationToken = default) + { + return GetExceptionPolicies(null, cancellationToken); + } + #endregion ExceptionPolicy #region Queue @@ -958,6 +1001,20 @@ internal virtual Response UpdateQueue(string queueId, RequestContent content, Re } } + /// Retrieves existing queues. + /// The cancellation token to use. + public virtual AsyncPageable GetQueuesAsync(CancellationToken cancellationToken = default) + { + return GetQueuesAsync(null, cancellationToken); + } + + /// Retrieves existing exception policies. + /// The cancellation token to use. + public virtual Pageable GetQueues(CancellationToken cancellationToken = default) + { + return GetQueues(null, cancellationToken); + } + #endregion Queue /// Initializes a new instance of JobRouterAdministrationRestClient. diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/JobRouterClient.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/JobRouterClient.cs index f1f78adaa1937..122cbf0b71563 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/JobRouterClient.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/JobRouterClient.cs @@ -674,6 +674,39 @@ public virtual Response UnassignJob(UnassignJobOptions option cancellationToken: cancellationToken); } + /// Retrieves list of jobs based on filter parameters. + /// If specified, filter jobs by status. + /// If specified, filter jobs by queue. + /// If specified, filter jobs by channel. + /// If specified, filter jobs by classificationPolicy. + /// If specified, filter on jobs that was scheduled before or at given timestamp. Range: (-Inf, scheduledBefore]. + /// If specified, filter on jobs that was scheduled at or after given value. Range: [scheduledAfter, +Inf). + /// The cancellation token to use. + public virtual AsyncPageable GetJobsAsync(RouterJobStatusSelector? status = null, + string queueId = null, string channelId = null, string classificationPolicyId = null, + DateTimeOffset? scheduledBefore = null, DateTimeOffset? scheduledAfter = null, + CancellationToken cancellationToken = default) + { + return GetJobsAsync(null, status, queueId, channelId, classificationPolicyId, scheduledBefore, + scheduledAfter, cancellationToken); + } + + /// Retrieves list of jobs based on filter parameters. + /// If specified, filter jobs by status. + /// If specified, filter jobs by queue. + /// If specified, filter jobs by channel. + /// If specified, filter jobs by classificationPolicy. + /// If specified, filter on jobs that was scheduled before or at given timestamp. Range: (-Inf, scheduledBefore]. + /// If specified, filter on jobs that was scheduled at or after given value. Range: [scheduledAfter, +Inf). + /// The cancellation token to use. + public virtual Pageable GetJobs(RouterJobStatusSelector? status = null, string queueId = null, + string channelId = null, string classificationPolicyId = null, DateTimeOffset? scheduledBefore = null, + DateTimeOffset? scheduledAfter = null, CancellationToken cancellationToken = default) + { + return GetJobs(null, status, queueId, channelId, classificationPolicyId, scheduledBefore, scheduledAfter, + cancellationToken); + } + #endregion Job #region Worker @@ -908,6 +941,28 @@ public virtual Response UpdateWorker(string workerId, RequestContent content, Re } } + /// Retrieves existing workers. + /// If specified, select workers by worker state. + /// If specified, select workers who have a channel configuration with this channel. + /// If specified, select workers who are assigned to this queue. + /// If set to true, select only workers who have capacity for the channel specified by `channelId` or for any channel if `channelId` not specified. If set to false, then will return all workers including workers without any capacity for jobs. Defaults to false. + /// The cancellation token to use. + public virtual AsyncPageable GetWorkersAsync(RouterWorkerStateSelector? state = null, string channelId = null, string queueId = null, bool? hasCapacity = null, CancellationToken cancellationToken = default) + { + return GetWorkersAsync(null, state, channelId, queueId, hasCapacity, cancellationToken); + } + + /// Retrieves existing workers. + /// If specified, select workers by worker state. + /// If specified, select workers who have a channel configuration with this channel. + /// If specified, select workers who are assigned to this queue. + /// If set to true, select only workers who have capacity for the channel specified by `channelId` or for any channel if `channelId` not specified. If set to false, then will return all workers including workers without any capacity for jobs. Defaults to false. + /// The cancellation token to use. + public virtual Pageable GetWorkers(RouterWorkerStateSelector? state = null, string channelId = null, string queueId = null, bool? hasCapacity = null, CancellationToken cancellationToken = default) + { + return GetWorkers(null, state, channelId, queueId, hasCapacity, cancellationToken); + } + #endregion Worker #pragma warning disable CA1801 // Review unused parameters diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/LongestIdleMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/LongestIdleMode.cs index b17d6f8e3392a..975e950733be9 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/LongestIdleMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/LongestIdleMode.cs @@ -14,14 +14,14 @@ public partial class LongestIdleMode : IUtf8JsonSerializable /// Initializes a new instance of LongestIdleModePolicy. public LongestIdleMode() { - Kind = "longest-idle"; + Kind = DistributionModeKind.LongestIdle; } void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); if (Optional.IsDefined(MinConcurrentOffers)) { writer.WritePropertyName("minConcurrentOffers"u8); diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/ManualReclassifyExceptionAction.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/ManualReclassifyExceptionAction.cs index 2cb49d0149efe..d8f94e8bbfd41 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/ManualReclassifyExceptionAction.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/ManualReclassifyExceptionAction.cs @@ -14,7 +14,7 @@ public partial class ManualReclassifyExceptionAction : IUtf8JsonSerializable /// Initializes a new instance of ManualReclassifyExceptionAction. public ManualReclassifyExceptionAction() { - Kind = "manual-reclassify"; + Kind = ExceptionActionKind.ManualReclassify; } /// Updated QueueId. @@ -55,7 +55,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); } writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/PassThroughQueueSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/PassThroughQueueSelectorAttachment.cs index 27561095bd2e3..e0c0b4437994c 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/PassThroughQueueSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/PassThroughQueueSelectorAttachment.cs @@ -16,7 +16,7 @@ public partial class PassThroughQueueSelectorAttachment : IUtf8JsonSerializable /// The label key to query against. /// Describes how the value of the label is compared to the value pass through. /// is null. - public PassThroughQueueSelectorAttachment(string key, LabelOperator labelOperator): this("pass-through", key, labelOperator) + public PassThroughQueueSelectorAttachment(string key, LabelOperator labelOperator): this(QueueSelectorAttachmentKind.PassThrough, key, labelOperator) { Argument.AssertNotNullOrWhiteSpace(key, nameof(key)); Argument.AssertNotNull(labelOperator, nameof(labelOperator)); @@ -30,7 +30,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("labelOperator"u8); writer.WriteStringValue(LabelOperator.ToString()); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/PassThroughWorkerSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/PassThroughWorkerSelectorAttachment.cs index 9fec5e40e108b..50cfc200cc4d6 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/PassThroughWorkerSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/PassThroughWorkerSelectorAttachment.cs @@ -34,7 +34,7 @@ internal double? _expiresAfterSeconds /// Describes how long the attached label selector is valid. /// is null. public PassThroughWorkerSelectorAttachment(string key, LabelOperator labelOperator, TimeSpan? expiresAfter = default) - : this("pass-through", key, labelOperator, expiresAfter?.TotalSeconds) + : this(WorkerSelectorAttachmentKind.PassThrough, key, labelOperator, expiresAfter?.TotalSeconds) { Argument.AssertNotNullOrWhiteSpace(key, nameof(key)); } @@ -52,7 +52,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNumberValue(_expiresAfterSeconds.Value); } writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/QueueAndMatchMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/QueueAndMatchMode.cs index 8c80606627f9b..a379a7e6d74cb 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/QueueAndMatchMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/QueueAndMatchMode.cs @@ -14,7 +14,7 @@ public partial class QueueAndMatchMode : IUtf8JsonSerializable /// /// Constructor. /// - public QueueAndMatchMode() : this("queue-and-match") + public QueueAndMatchMode() : this(JobMatchingModeKind.QueueAndMatch) { } @@ -22,7 +22,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/QueueLengthExceptionTrigger.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/QueueLengthExceptionTrigger.cs index 8ddc5f987f85d..5e85c491ad512 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/QueueLengthExceptionTrigger.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/QueueLengthExceptionTrigger.cs @@ -12,7 +12,7 @@ public partial class QueueLengthExceptionTrigger : IUtf8JsonSerializable /// Initializes a new instance of QueueLengthExceptionTrigger. /// Threshold of number of jobs queued to for this trigger. Must be greater than 0 public QueueLengthExceptionTrigger(int threshold) - : this("queue-length", threshold) + : this(ExceptionTriggerKind.QueueLength, threshold) { } @@ -22,7 +22,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("threshold"u8); writer.WriteNumberValue(Threshold); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/QueueSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/QueueSelectorAttachment.cs index 8faa324a4fa81..33151c4b864a2 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/QueueSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/QueueSelectorAttachment.cs @@ -10,13 +10,13 @@ namespace Azure.Communication.JobRouter public abstract partial class QueueSelectorAttachment : IUtf8JsonSerializable { /// The type discriminator describing a sub-type of QueueSelectorAttachment. - public string Kind { get; protected set; } + public QueueSelectorAttachmentKind Kind { get; protected set; } void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/QueueSelectorAttachmentKind.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/QueueSelectorAttachmentKind.cs new file mode 100644 index 0000000000000..404ec6a5e9af4 --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/QueueSelectorAttachmentKind.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.Communication.JobRouter +{ + public readonly partial struct QueueSelectorAttachmentKind + { + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/ReclassifyExceptionAction.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/ReclassifyExceptionAction.cs index bd6e7e5287a62..05dc58e387fc9 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/ReclassifyExceptionAction.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/ReclassifyExceptionAction.cs @@ -14,7 +14,7 @@ public partial class ReclassifyExceptionAction : IUtf8JsonSerializable /// Initializes a new instance of CancelExceptionAction. public ReclassifyExceptionAction() { - Kind = "reclassify"; + Kind = ExceptionActionKind.Reclassify; _labelsToUpsert = new ChangeTrackingDictionary(); } @@ -80,7 +80,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/RoundRobinMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/RoundRobinMode.cs index 981d585c3a232..ff1a543c77e15 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/RoundRobinMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/RoundRobinMode.cs @@ -14,14 +14,14 @@ public partial class RoundRobinMode : IUtf8JsonSerializable /// Initializes a new instance of RoundRobinModePolicy. public RoundRobinMode() { - Kind = "round-robin"; + Kind = DistributionModeKind.RoundRobin; } void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); if (Optional.IsDefined(MinConcurrentOffers)) { writer.WritePropertyName("minConcurrentOffers"u8); diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/RouterJobStatusSelector.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/RouterJobStatusSelector.cs new file mode 100644 index 0000000000000..abfa16e0c801c --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/RouterJobStatusSelector.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.Communication.JobRouter +{ + public readonly partial struct RouterJobStatusSelector + { + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/RouterRule.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/RouterRule.cs index a3136fab488db..e9e55db37077f 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/RouterRule.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/RouterRule.cs @@ -10,13 +10,13 @@ namespace Azure.Communication.JobRouter public abstract partial class RouterRule : IUtf8JsonSerializable { /// The type discriminator describing a sub-type of RouterRule. - public string Kind { get; protected set; } + public RouterRuleKind Kind { get; protected set; } void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/RouterRuleKind.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/RouterRuleKind.cs new file mode 100644 index 0000000000000..8e4cb6c5d5ed5 --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/RouterRuleKind.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.Communication.JobRouter +{ + public readonly partial struct RouterRuleKind + { + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/RouterWorkerStateSelector.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/RouterWorkerStateSelector.cs new file mode 100644 index 0000000000000..163a41ec6abcd --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/RouterWorkerStateSelector.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.Communication.JobRouter +{ + public readonly partial struct RouterWorkerStateSelector + { + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/RuleEngineQueueSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/RuleEngineQueueSelectorAttachment.cs index 001bc4ca6660b..adebf9e42bd00 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/RuleEngineQueueSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/RuleEngineQueueSelectorAttachment.cs @@ -30,7 +30,7 @@ public RuleEngineQueueSelectorAttachment(RouterRule rule) { Argument.AssertNotNull(rule, nameof(rule)); - Kind = "rule-engine"; + Kind = QueueSelectorAttachmentKind.RuleEngine; Rule = rule; } @@ -40,7 +40,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("rule"u8); writer.WriteObjectValue(Rule); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/RuleEngineWorkerSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/RuleEngineWorkerSelectorAttachment.cs index 5aa62716fabe4..b7b2c2ac18a28 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/RuleEngineWorkerSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/RuleEngineWorkerSelectorAttachment.cs @@ -30,7 +30,7 @@ public RuleEngineWorkerSelectorAttachment(RouterRule rule) { Argument.AssertNotNull(rule, nameof(rule)); - Kind = "rule-engine"; + Kind = WorkerSelectorAttachmentKind.RuleEngine; Rule = rule; } @@ -40,7 +40,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("rule"u8); writer.WriteObjectValue(Rule); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/ScheduleAndSuspendMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/ScheduleAndSuspendMode.cs index 9953d75b9efcb..9095a82375670 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/ScheduleAndSuspendMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/ScheduleAndSuspendMode.cs @@ -12,7 +12,7 @@ public partial class ScheduleAndSuspendMode : IUtf8JsonSerializable /// Initializes a new instance of ScheduleAndSuspendMode. /// The time at which the job will be scheduled. /// is null. - public ScheduleAndSuspendMode(DateTimeOffset scheduleAt) : this("schedule-and-suspend", scheduleAt) + public ScheduleAndSuspendMode(DateTimeOffset scheduleAt) : this(JobMatchingModeKind.ScheduleAndSuspend, scheduleAt) { Argument.AssertNotNull(scheduleAt, nameof(scheduleAt)); } @@ -27,7 +27,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/StaticQueueSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/StaticQueueSelectorAttachment.cs index 224dc4af71e4f..3ce56236d764e 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/StaticQueueSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/StaticQueueSelectorAttachment.cs @@ -19,7 +19,7 @@ public StaticQueueSelectorAttachment(RouterQueueSelector queueSelector) { Argument.AssertNotNull(queueSelector, nameof(queueSelector)); - Kind = "static"; + Kind = QueueSelectorAttachmentKind.Static; QueueSelector = queueSelector; } @@ -29,7 +29,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("queueSelector"u8); writer.WriteObjectValue(QueueSelector); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/StaticRouterRule.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/StaticRouterRule.cs index 8c73c70cf1793..0b3bc2858b56d 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/StaticRouterRule.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/StaticRouterRule.cs @@ -26,7 +26,7 @@ internal BinaryData _value { /// Initializes a new instance of StaticRule. /// The static value this rule always returns. Values must be primitive values - number, string, boolean. - public StaticRouterRule(RouterValue value) : this("static-rule", BinaryData.FromObjectAsJson(value.Value)) + public StaticRouterRule(RouterValue value) : this(RouterRuleKind.Static, BinaryData.FromObjectAsJson(value.Value)) { } @@ -39,7 +39,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(_value.ToObjectFromJson()); } writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/StaticWorkerSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/StaticWorkerSelectorAttachment.cs index f0179f45a5106..0e2d5cb083f9f 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/StaticWorkerSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/StaticWorkerSelectorAttachment.cs @@ -19,7 +19,7 @@ public StaticWorkerSelectorAttachment(RouterWorkerSelector workerSelector) { Argument.AssertNotNull(workerSelector, nameof(workerSelector)); - Kind = "static"; + Kind = WorkerSelectorAttachmentKind.Static; WorkerSelector = workerSelector; } @@ -29,7 +29,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("workerSelector"u8); writer.WriteObjectValue(WorkerSelector); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/SuspendMode.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/SuspendMode.cs index 2a70e4b45700d..7be2e2a896d31 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/SuspendMode.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/SuspendMode.cs @@ -14,7 +14,7 @@ public partial class SuspendMode : IUtf8JsonSerializable /// /// Constructor. /// - public SuspendMode() : this("suspend") + public SuspendMode() : this(JobMatchingModeKind.Suspend) { } @@ -22,7 +22,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/WaitTimeExceptionTrigger.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/WaitTimeExceptionTrigger.cs index 1307e420c27e2..12d67d0f75c40 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/WaitTimeExceptionTrigger.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/WaitTimeExceptionTrigger.cs @@ -16,7 +16,7 @@ public partial class WaitTimeExceptionTrigger : IUtf8JsonSerializable { /// Initializes a new instance of WaitTimeExceptionTrigger. /// Threshold for wait time for this trigger. - public WaitTimeExceptionTrigger(TimeSpan threshold) : this("wait-time", threshold.TotalSeconds) + public WaitTimeExceptionTrigger(TimeSpan threshold) : this(ExceptionTriggerKind.WaitTime, threshold.TotalSeconds) { } @@ -42,7 +42,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("thresholdSeconds"u8); writer.WriteNumberValue(_thresholdSeconds); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/WebhookRouterRule.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/WebhookRouterRule.cs index 3519a19f22e89..c15f733414714 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/WebhookRouterRule.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/WebhookRouterRule.cs @@ -11,7 +11,7 @@ public partial class WebhookRouterRule : IUtf8JsonSerializable { /// Initializes a new instance of WebhookRouterRule. public WebhookRouterRule(Uri authorizationServerUri, OAuth2WebhookClientCredential clientCredential, Uri webhookUri) - : this("webhook-rule", authorizationServerUri, clientCredential, webhookUri) + : this(RouterRuleKind.Webhook, authorizationServerUri, clientCredential, webhookUri) { } @@ -34,7 +34,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(WebhookUri.AbsoluteUri); } writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/WeightedAllocationQueueSelectorAttachment.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/WeightedAllocationQueueSelectorAttachment.cs index 7c293fb0d4d47..996dd9f502ae3 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/WeightedAllocationQueueSelectorAttachment.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/WeightedAllocationQueueSelectorAttachment.cs @@ -18,7 +18,7 @@ public WeightedAllocationQueueSelectorAttachment(IEnumerable The type discriminator describing a sub-type of WorkerSelectorAttachment. - public string Kind { get; protected set; } + public WorkerSelectorAttachmentKind Kind { get; protected set; } void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("kind"u8); - writer.WriteStringValue(Kind); + writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/WorkerSelectorAttachmentKind.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/WorkerSelectorAttachmentKind.cs new file mode 100644 index 0000000000000..e6dedf59bd9f7 --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/WorkerSelectorAttachmentKind.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.Communication.JobRouter +{ + public readonly partial struct WorkerSelectorAttachmentKind + { + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/tests/RouterClients/RouterJobLiveTests.cs b/sdk/communication/Azure.Communication.JobRouter/tests/RouterClients/RouterJobLiveTests.cs index 54f0f47f4f7a6..885403a75b731 100644 --- a/sdk/communication/Azure.Communication.JobRouter/tests/RouterClients/RouterJobLiveTests.cs +++ b/sdk/communication/Azure.Communication.JobRouter/tests/RouterClients/RouterJobLiveTests.cs @@ -125,7 +125,7 @@ public async Task GetJobsTest() Assert.AreEqual(RouterJobStatus.Queued, job2Result.Value.Status); // test get jobs - var getJobsResponse = routerClient.GetJobsAsync(channelId: channelId, queueId: createQueue.Id); + var getJobsResponse = routerClient.GetJobsAsync(channelId: channelId, queueId: createQueue.Id, status: null, classificationPolicyId: null, scheduledBefore: null, scheduledAfter: null, cancellationToken: default); var allJobs = new List(); await foreach (var jobPage in getJobsResponse.AsPages(pageSizeHint: 1)) @@ -140,7 +140,6 @@ public async Task GetJobsTest() Assert.IsTrue(allJobs.Contains(createJob2.Id)); // in-test cleanup - await routerClient.CancelJobAsync(new CancelJobOptions(jobId1)); // other wise queue deletion will throw error await routerClient.CancelJobAsync(new CancelJobOptions(jobId2)); // other wise queue deletion will throw error } @@ -168,7 +167,7 @@ public async Task GetJobsWithSchedulingFiltersTest() AddForCleanup(new Task(async () => await routerClient.DeleteJobAsync(jobId1))); var createJob1 = createJob1Response.Value; // test get jobs - var getJobsResponse = routerClient.GetJobsAsync(channelId: channelId, queueId: createQueue.Id, scheduledAfter: timeToEnqueueJob); + var getJobsResponse = routerClient.GetJobsAsync(channelId: channelId, queueId: createQueue.Id, scheduledAfter: timeToEnqueueJob, status: null, classificationPolicyId: null, scheduledBefore: null, cancellationToken: default); var allJobs = new List(); await foreach (var jobPage in getJobsResponse.AsPages(pageSizeHint: 1)) diff --git a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/ClassificationPolicyCrudOps.cs b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/ClassificationPolicyCrudOps.cs index ba5560160f7fa..ade8e08974d33 100644 --- a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/ClassificationPolicyCrudOps.cs +++ b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/ClassificationPolicyCrudOps.cs @@ -82,7 +82,7 @@ public void ClassificationPolicyCrud() #region Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetClassificationPolicies - Pageable classificationPolicies = routerAdministrationClient.GetClassificationPolicies(); + Pageable classificationPolicies = routerAdministrationClient.GetClassificationPolicies(cancellationToken: default); foreach (Page asPage in classificationPolicies.AsPages(pageSizeHint: 10)) { foreach (ClassificationPolicy? policy in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/ClassificationPolicyCrudOpsAsync.cs b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/ClassificationPolicyCrudOpsAsync.cs index 95ecf66a8997a..7254c5bd28976 100644 --- a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/ClassificationPolicyCrudOpsAsync.cs +++ b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/ClassificationPolicyCrudOpsAsync.cs @@ -83,7 +83,7 @@ public async Task ClassificationPolicyCrud() #region Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetClassificationPolicies_Async - AsyncPageable classificationPolicies = routerAdministrationClient.GetClassificationPoliciesAsync(); + AsyncPageable classificationPolicies = routerAdministrationClient.GetClassificationPoliciesAsync(cancellationToken: default); await foreach (Page asPage in classificationPolicies.AsPages(pageSizeHint: 10)) { foreach (ClassificationPolicy? policy in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/DistributionPolicyCrudOps.cs b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/DistributionPolicyCrudOps.cs index a3f7e90cb1a0f..bad47752c2425 100644 --- a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/DistributionPolicyCrudOps.cs +++ b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/DistributionPolicyCrudOps.cs @@ -58,7 +58,7 @@ public void DistributionPolicyCrud() #region Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetDistributionPolicies - Pageable distributionPolicies = routerAdministrationClient.GetDistributionPolicies(); + Pageable distributionPolicies = routerAdministrationClient.GetDistributionPolicies(cancellationToken: default); foreach (Page asPage in distributionPolicies.AsPages(pageSizeHint: 10)) { foreach (DistributionPolicy? policy in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/DistributionPolicyCrudOpsAsync.cs b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/DistributionPolicyCrudOpsAsync.cs index 5a41e99fa5eb5..fea93f424e4db 100644 --- a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/DistributionPolicyCrudOpsAsync.cs +++ b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/DistributionPolicyCrudOpsAsync.cs @@ -59,7 +59,7 @@ public async Task DistributionPolicyCrud() #region Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetDistributionPolicies_Async - AsyncPageable distributionPolicies = routerAdministrationClient.GetDistributionPoliciesAsync(); + AsyncPageable distributionPolicies = routerAdministrationClient.GetDistributionPoliciesAsync(cancellationToken: default); await foreach (Page asPage in distributionPolicies.AsPages(pageSizeHint: 10)) { foreach (DistributionPolicy? policy in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/ExceptionPolicyCrudOps.cs b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/ExceptionPolicyCrudOps.cs index e4060e2f05b6c..09aa4b8b96e57 100644 --- a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/ExceptionPolicyCrudOps.cs +++ b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/ExceptionPolicyCrudOps.cs @@ -140,7 +140,7 @@ public void DistributionPolicyCrud() #region Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetExceptionPolicies - Pageable exceptionPolicies = routerClient.GetExceptionPolicies(); + Pageable exceptionPolicies = routerClient.GetExceptionPolicies(cancellationToken: default); foreach (Page asPage in exceptionPolicies.AsPages(pageSizeHint: 10)) { foreach (ExceptionPolicy? policy in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/ExceptionPolicyCrudOpsAsync.cs b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/ExceptionPolicyCrudOpsAsync.cs index f0e3495961fff..d2b40303bdfbc 100644 --- a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/ExceptionPolicyCrudOpsAsync.cs +++ b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/ExceptionPolicyCrudOpsAsync.cs @@ -141,7 +141,7 @@ public async Task DistributionPolicyCrud() #region Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetExceptionPolicies_Async - AsyncPageable exceptionPolicies = routerClient.GetExceptionPoliciesAsync(); + AsyncPageable exceptionPolicies = routerClient.GetExceptionPoliciesAsync(cancellationToken: default); await foreach (Page asPage in exceptionPolicies.AsPages(pageSizeHint: 10)) { foreach (ExceptionPolicy? policy in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/JobQueueCrudOps.cs b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/JobQueueCrudOps.cs index 2f432c1cde7db..47cb3889236ce 100644 --- a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/JobQueueCrudOps.cs +++ b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/JobQueueCrudOps.cs @@ -65,7 +65,7 @@ public void JobQueueCrud() #region Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetJobQueues - Pageable jobQueues = routerAdministrationClient.GetQueues(); + Pageable jobQueues = routerAdministrationClient.GetQueues(cancellationToken: default); foreach (Page asPage in jobQueues.AsPages(pageSizeHint: 10)) { foreach (RouterQueue? policy in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/JobQueueCrudOpsAsync.cs b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/JobQueueCrudOpsAsync.cs index 3f6d5473c3f71..f4ab4df40142b 100644 --- a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/JobQueueCrudOpsAsync.cs +++ b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/JobQueueCrudOpsAsync.cs @@ -67,7 +67,7 @@ public async Task JobQueueCrud() #region Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetJobQueues_Async - AsyncPageable jobQueues = routerAdministrationClient.GetQueuesAsync(); + AsyncPageable jobQueues = routerAdministrationClient.GetQueuesAsync(cancellationToken: default); await foreach (Page asPage in jobQueues.AsPages(pageSizeHint: 10)) { foreach (RouterQueue? policy in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/RouterJobCrudOps.cs b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/RouterJobCrudOps.cs index 4c3b326555896..fd69f53991884 100644 --- a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/RouterJobCrudOps.cs +++ b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/RouterJobCrudOps.cs @@ -173,7 +173,7 @@ public void RouterCrudOps() #region Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetRouterJobs - Pageable routerJobs = routerClient.GetJobs(); + Pageable routerJobs = routerClient.GetJobs(null, null); foreach (Page asPage in routerJobs.AsPages(pageSizeHint: 10)) { foreach (RouterJob? _job in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/RouterJobCrudOpsAsync.cs b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/RouterJobCrudOpsAsync.cs index d3eca073ee3ad..1ab6853a3c11b 100644 --- a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/RouterJobCrudOpsAsync.cs +++ b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/RouterJobCrudOpsAsync.cs @@ -174,7 +174,7 @@ await routerAdministrationClient.CreateDistributionPolicyAsync(new CreateDistrib #region Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetRouterJobs_Async - AsyncPageable routerJobs = routerClient.GetJobsAsync(); + AsyncPageable routerJobs = routerClient.GetJobsAsync(null, null); await foreach (Page asPage in routerJobs.AsPages(pageSizeHint: 10)) { foreach (RouterJob? _job in asPage.Values) diff --git a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/RouterWorkerCrudOps.cs b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/RouterWorkerCrudOps.cs index dfea204c9a015..79ea3c7aac973 100644 --- a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/RouterWorkerCrudOps.cs +++ b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/RouterWorkerCrudOps.cs @@ -104,7 +104,7 @@ public void RouterWorkerCrud() #region Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetRouterWorkers - Pageable workers = routerClient.GetWorkers(); + Pageable workers = routerClient.GetWorkers(null, null); foreach (Page asPage in workers.AsPages(pageSizeHint: 10)) { foreach (RouterWorker? workerPaged in asPage.Values) @@ -114,7 +114,7 @@ public void RouterWorkerCrud() } // Additionally workers can be queried with several filters like queueId, capacity, state etc. - workers = routerClient.GetWorkers(channelId: "Voip", state: RouterWorkerStateSelector.All); + workers = routerClient.GetWorkers(null, channelId: "Voip", state: RouterWorkerStateSelector.All); foreach (Page asPage in workers.AsPages(pageSizeHint: 10)) { diff --git a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/RouterWorkerCrudOpsAsync.cs b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/RouterWorkerCrudOpsAsync.cs index 8653889f5519f..3e3b5f046e57c 100644 --- a/sdk/communication/Azure.Communication.JobRouter/tests/Samples/RouterWorkerCrudOpsAsync.cs +++ b/sdk/communication/Azure.Communication.JobRouter/tests/Samples/RouterWorkerCrudOpsAsync.cs @@ -107,7 +107,7 @@ public async Task RouterWorkerCrud() #region Snippet:Azure_Communication_JobRouter_Tests_Samples_Crud_GetRouterWorkers_Async - AsyncPageable workers = routerClient.GetWorkersAsync(); + AsyncPageable workers = routerClient.GetWorkersAsync(null, null); await foreach (Page asPage in workers.AsPages(pageSizeHint: 10)) { foreach (RouterWorker? workerPaged in asPage.Values) @@ -117,7 +117,7 @@ public async Task RouterWorkerCrud() } // Additionally workers can be queried with several filters like queueId, capacity, state etc. - workers = routerClient.GetWorkersAsync(channelId: "Voip", state: RouterWorkerStateSelector.All); + workers = routerClient.GetWorkersAsync(channelId: "Voip", state: RouterWorkerStateSelector.All, queueId: null, hasCapacity: null, cancellationToken: default); await foreach (Page asPage in workers.AsPages(pageSizeHint: 10)) { diff --git a/sdk/communication/Azure.Communication.JobRouter/tsp-location.yaml b/sdk/communication/Azure.Communication.JobRouter/tsp-location.yaml index 05379f3c1f5a2..351cd075aa5a5 100644 --- a/sdk/communication/Azure.Communication.JobRouter/tsp-location.yaml +++ b/sdk/communication/Azure.Communication.JobRouter/tsp-location.yaml @@ -1,5 +1,5 @@ -commit: de1ef0678497c007ddc66fcc42bbc96043fe029f +commit: 75065f761aba389ba50ce9a33f9a9da6a2ae288d directory: specification/communication/Communication.JobRouter additionalDirectories: [] -repo: Azure/azure-rest-api-specs +repo: sarkar-rajarshi/azure-rest-api-specs