1.0.0 (2023-11-20)
Features Added
RouterAdministrationClient && RouterClient
- Added
RequestContext
to methods which can override default behaviors of the client pipeline on a per-call basis. - Added
RequestConditions
to allUpdate
methods which can specify HTTP options for conditional requests based on modification time.
Breaking Changes
RouterAdministrationClient
GetQueues
returnsPageable<RouterQueue>
rather thanPageable<RouterQueueItem>
GetDistributionPolicies
returnsPageable<DistributionPolicy>
rather thanPageable<DistributionPolicyItem>
GetClassificationPolicies
returnsPageable<ClassificationPolicy>
rather thanPageable<ClassificationPolicyItem>
GetExceptionPolicies
returnsPageable<ExceptionPolicy>
rather thanPageable<ExceptionPolicyItem>
UpdateQueue(UpdateQueueOptions options, CancellationToken cancellationToken)
changed toUpdateQueue(RouterQueue queue, CancellationToken cancellationToken)
UpdateDistributionPolicy(UpdateDistributionPolicyOptions options, CancellationToken cancellationToken)
changed toUpdateDistributionPolicy(DistributionPolicy distributionPolicy, CancellationToken cancellationToken)
UpdateClassificationPolicy(UpdateClassificationPolicyOptions options, CancellationToken cancellationToken)
changed toUpdateClassificationPolicy(ClassificationPolicy classificationPolicy, CancellationToken cancellationToken)
UpdateExceptionPolicy(UpdateExceptionPolicyOptions options, CancellationToken cancellationToken)
changed toUpdateExceptionPolicy(ExceptionPolicy exceptionPolicy, CancellationToken cancellationToken)
RouterClient
GetJobs
returnsPageable<RouterJob>
rather thanPageable<RouterJobItem>
GetWorkers
returnsPageable<RouterWorker>
rather thanPageable<RouterJobWorker>
UpdateJob(UpdateJobOptions options, CancellationToken cancellationToken)
changed toUpdateJob(RouterJob job, CancellationToken cancellationToken)
UpdateWorker(UpdateWorkerOptions options, CancellationToken cancellationToken)
changed toUpdateWorker(RouterWorker worker, CancellationToken cancellationToken)
RouterJob && CreateJobOptions && CreateJobWithClassificationOptions
- Property
Notes
- Changed fromList<RouterJobNote>
toIList<RouterJobNote>
- Property
RequestedWorkerSelectors
- Changed fromList<RouterWorkerSelector>
toIList<RouterWorkerSelector>
- Property
Labels
- Changed fromDictionary<string, LabelValue>
toIDictionary<string, RouterValue>
- Property
Tags
- Changed fromDictionary<string, LabelValue>
toIDictionary<string, RouterValue>
RouterJobNote
- Changed constructor from
RouterJobNote()
toRouterJobNote(string message)
- Removed setter from
Message
RouterWorker && CreateWorkerOptions
- Rename property
QueueAssignments
->Queues
Queues
- ChangedDictionary<string, RouterQueueAssignment>
->IList<string>
- Rename property
TotalCapacity
->Capacity
- Rename property
ChannelConfigurations
->Channels
Channels
- ChangedDictionary<string, ChannelConfiguration>
->IList<RouterChannel>
ClassificationPolicy && CreateClassificationPolicyOptions
- Property
List<QueueSelectorAttachment> QueueSelectors
changed toIList<QueueSelectorAttachment> QueueSelectorAttachments
- Property
List<WorkerSelectorAttachment> WorkerSelectors
changed toIList<WorkerSelectorAttachment> WorkerSelectorAttachments
ExceptionPolicy
- Property
ExceptionRules
- Changed fromDictionary<string, ExceptionRule>
->IList<ExceptionRule>
CreateExceptionPolicyOptions
- Property
ExceptionRules
- Changed fromDictionary<string, ExceptionRule>
->IList<ExceptionRule>
- Changed constructor from
CreateExceptionPolicyOptions(string exceptionPolicyId, IDictionary<string, ExceptionRule> exceptionRules)
toCreateExceptionPolicyOptions(string exceptionPolicyId, IEnumerable<ExceptionRule> exceptionRules)
ExceptionRule
Actions
- ChangedDictionary<string, ExceptionAction>
->IList<ExceptionAction>
CancelExceptionAction
- Changed constructor from
CancelExceptionAction(string note = null, string dispositionCode = null)
toCancelExceptionAction()
ReclassifyExceptionAction
- Changed constructor from
ReclassifyExceptionAction(string classificationPolicyId, IDictionary<string, LabelValue> labelsToUpsert = null)
toReclassifyExceptionAction()
- Removed setter from
LabelsToUpsert
BestWorkerMode
- Removed constructor
BestWorkerMode(RouterRule scoringRule = null, IList<ScoringRuleParameterSelector> scoringParameterSelectors = null, bool allowScoringBatchOfWorkers = false, int? batchSize = null, bool descendingOrder = true, bool bypassSelectors = false)
ScoringRuleOptions
- Rename property
AllowScoringBatchOfWorkers
->IsBatchScoringEnabled
FunctionRouterRuleCredential
- Removed properties
AppKey
andFunctionKey
OAuth2WebhookClientCredential
- Removed property
ClientSecret
RouterQueueStatistics
- Changed
IReadOnlyDictionary<string, double> EstimatedWaitTimeMinutes
toIDictionary<int, TimeSpan> EstimatedWaitTimes
LabelOperator
- Renamed
GreaterThanEqual
toGreaterThanOrEqual
- Renamed
LessThanEqual
toLessThanOrEqual
Renames
ChannelConfiguration
->RouterChannel
Oauth2ClientCredential
->OAuth2WebhookClientCredential
LabelValue
->RouterValue
Deletions
ClassificationPolicyItem
DistributionPolicyItem
ExceptionPolicyItem
RouterQueueItem
RouterWorkerItem
RouterJobItem
RouterQueueAssignment
UpdateClassificationPolicyOptions
UpdateDistributionPolicyOptions
UpdateExceptionPolicyOptions
UpdateQueueOptions
UpdateWorkerOptions
UpdateJobOptions
Other Changes
ClassificationPolicy
- Added
ETag
- Added constructor
ClassificationPolicy(string classificationPolicyId)
- Added setters to
FallbackQueueId
,Name
, andPrioritizationRule
DistributionPolicy
- Added
ETag
- Added constructor
DistributionPolicy(string distributionPolicyId)
- Added setters to
Mode
andName
ExceptionPolicy
- Added
ETag
- Added constructor
ExceptionPolicy(string exceptionPolicyId)
- Added setter to
Name
ExceptionRule
- Added
Id
ExceptionAction
- Added
Id
. Property is read-only. If not provided, it will be generated by the service.
ReclassifyExceptionAction
- Added setter to
ClassificationPolicyId
RouterChannel
- Added
ChannelId
RouterJob
- Added
ETag
- Added constructor
RouterJob(string jobId)
- Added setters for
ChannelId
,ChannelReference
,ClassificationPolicyId
,DispositionCode
,MatchingMode
,Priority
,QueueId
RouterQueue
- Added
ETag
- Added constructor
RouterQueue(string queueId)
- Added setters for
DistributionPolicyId
,ExceptionPolicyId
andName
RouterWorker
- Added
ETag
- Added constructor
RouterWorker(string workerId)
BestWorkerMode
- Added setters to
ScoringRule
andScoringRuleOptions
OAuth2WebhookClientCredential
- Added constructor
OAuth2WebhookClientCredential(string clientId, string clientSecret)