@@ -353,7 +353,6 @@ union WorkerSelectorAttachmentKind {
353
353
weightedAllocation : "weightedAllocation" ,
354
354
}
355
355
356
- @ clientName ("ClassificationPolicyInternal" , "java" )
357
356
@ resource ("routing/classificationPolicies" )
358
357
@ doc ("A container for the rules that govern how jobs are classified." )
359
358
model ClassificationPolicy {
@@ -380,7 +379,6 @@ model ClassificationPolicy {
380
379
workerSelectorAttachments ? : WorkerSelectorAttachment [];
381
380
}
382
381
383
- @ clientName ("RouterRuleInternal" , "java" )
384
382
@ doc ("""
385
383
A rule of one of the following types:
386
384
StaticRule: A rule providing static rules that always return the same result, regardless of input.
@@ -395,7 +393,6 @@ model RouterRule {
395
393
kind : RouterRuleKind ;
396
394
}
397
395
398
- @ clientName ("DistributionPolicyInternal" , "java" )
399
396
@ resource ("routing/distributionPolicies" )
400
397
@ doc ("Policy governing how jobs are distributed to workers" )
401
398
model DistributionPolicy {
@@ -416,7 +413,6 @@ model DistributionPolicy {
416
413
mode ? : DistributionMode ;
417
414
}
418
415
419
- @ clientName ("DistributionModeInternal" , "java" )
420
416
@ doc ("Abstract base class for defining a distribution mode." )
421
417
@ discriminator ("kind" )
422
418
model DistributionMode {
@@ -433,7 +429,6 @@ model DistributionMode {
433
429
kind : DistributionModeKind ;
434
430
}
435
431
436
- @ clientName ("ExceptionPolicyInternal" , "java" )
437
432
@ resource ("routing/exceptionPolicies" )
438
433
@ doc ("A policy that defines actions to execute when exception are triggered." )
439
434
model ExceptionPolicy {
@@ -451,7 +446,6 @@ model ExceptionPolicy {
451
446
exceptionRules ? : ExceptionRule [];
452
447
}
453
448
454
- @ clientName ("ExceptionRuleInternal" , "java" )
455
449
@ doc ("A rule that defines actions to execute upon a specific trigger." )
456
450
model ExceptionRule {
457
451
@ doc ("Id of an exception rule." )
@@ -464,7 +458,6 @@ model ExceptionRule {
464
458
actions : ExceptionAction [];
465
459
}
466
460
467
- @ clientName ("ExceptionTriggerInternal" , "java" )
468
461
@ doc ("Abstract base class for defining a trigger for exception rules." )
469
462
@ discriminator ("kind" )
470
463
model ExceptionTrigger {
@@ -481,7 +474,6 @@ model RouterJobNote {
481
474
addedAt ? : utcDateTime ;
482
475
}
483
476
484
- @ clientName ("RouterJobInternal" , "java" )
485
477
@ resource ("routing/jobs" )
486
478
@ doc ("A unit of work to be routed" )
487
479
model RouterJob {
@@ -548,7 +540,6 @@ model RouterJob {
548
540
matchingMode ? : JobMatchingMode ;
549
541
}
550
542
551
- @ clientName ("RouterWorkerSelectorInternal" , "java" )
552
543
@ doc ("Describes a condition that must be met against a set of labels for worker selection." )
553
544
model RouterWorkerSelector {
554
545
@ doc ("The label key to query against." )
@@ -598,7 +589,6 @@ model RouterJobAssignment {
598
589
closedAt ? : utcDateTime ;
599
590
}
600
591
601
- @ clientName ("JobMatchingModeInternal" , "java" )
602
592
@ doc ("""
603
593
A matching mode of one of the following types:
604
594
QueueAndMatchMode: Used when matching worker to a job is required to be done right after job is queued.
@@ -611,7 +601,6 @@ model JobMatchingMode {
611
601
kind : JobMatchingModeKind ;
612
602
}
613
603
614
- @ clientName ("ScheduleAndSuspendModeInternal" , "java" )
615
604
@ doc ("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." )
616
605
model ScheduleAndSuspendMode extends JobMatchingMode {
617
606
@ doc ("Requested schedule time." )
@@ -621,22 +610,20 @@ model ScheduleAndSuspendMode extends JobMatchingMode {
621
610
kind : JobMatchingModeKind .scheduleAndSuspend ;
622
611
}
623
612
624
- @ clientName ("QueueAndMatchModeInternal" , "java" )
625
613
@ doc ("Describes a matching mode where matching worker to a job is automatically started after job is queued successfully." )
626
614
model QueueAndMatchMode extends JobMatchingMode {
627
615
@ doc ("The type discriminator describing QueueAndMatchMode" )
628
616
kind : JobMatchingModeKind .queueAndMatch ;
629
617
}
630
618
631
- @ clientName ("SuspendModeInternal" , "java" )
632
619
@ doc ("Describes a matching mode where matching worker to a job is suspended." )
633
620
model SuspendMode extends JobMatchingMode {
634
621
@ doc ("The type discriminator describing SuspendMode" )
635
622
kind : JobMatchingModeKind .suspend ;
636
623
}
637
624
638
- @ clientName ("CancelJobOptionsInternal" , "java" )
639
625
@ access (Access .public , "python" )
626
+ @ access (Access .public , "java" )
640
627
@ doc ("Request payload for cancelling a job." )
641
628
model CancelJobOptions {
642
629
@ doc ("A note that will be appended to a job's Notes collection with the current timestamp." )
@@ -646,16 +633,16 @@ model CancelJobOptions {
646
633
dispositionCode ? : string ;
647
634
}
648
635
649
- @ clientName ("CompleteJobOptionsInternal" , "java" )
650
636
@ access (Access .public , "python" )
637
+ @ access (Access .public , "java" )
651
638
@ doc ("Request payload for completing jobs." )
652
639
model CompleteJobOptions {
653
640
@ doc ("A note that will be appended to a job's Notes collection with the current timestamp." )
654
641
note ? : string ;
655
642
}
656
643
657
- @ clientName ("CloseJobOptionsInternal" , "java" )
658
644
@ access (Access .public , "python" )
645
+ @ access (Access .public , "java" )
659
646
@ doc ("Request payload for closing jobs" )
660
647
model CloseJobOptions {
661
648
@ doc ("Indicates the outcome of a job, populate this field with your own custom values." )
@@ -713,15 +700,14 @@ model AcceptJobOfferResult {
713
700
workerId : string ;
714
701
}
715
702
716
- @ clientName ("DeclineJobOfferOptionsInternal" , "java" )
717
703
@ access (Access .public , "python" )
704
+ @ access (Access .public , "java" )
718
705
@ doc ("Request payload for declining offers." )
719
706
model DeclineJobOfferOptions {
720
707
@ doc ("If the RetryOfferAt is not provided, then this job will not be offered again to the worker who declined this job unless the worker is de-registered and re-registered. If a RetryOfferAt time is provided, then the job will be re-matched to eligible workers at the retry time in UTC. The worker that declined the job will also be eligible for the job at that time." )
721
708
retryOfferAt ? : utcDateTime ;
722
709
}
723
710
724
- @ clientName ("RouterQueueInternal" , "java" )
725
711
@ resource ("routing/queues" )
726
712
@ doc ("A queue that can contain jobs to be routed." )
727
713
model RouterQueue {
@@ -746,7 +732,6 @@ model RouterQueue {
746
732
exceptionPolicyId ? : string ;
747
733
}
748
734
749
- @ clientName ("RouterQueueStatisticsInternal" , "java" )
750
735
@ doc ("Statistics for the queue." )
751
736
model RouterQueueStatistics {
752
737
@ doc ("Id of the queue these details are about." )
@@ -762,7 +747,6 @@ model RouterQueueStatistics {
762
747
longestJobWaitTimeMinutes ? : float64 ;
763
748
}
764
749
765
- @ clientName ("RouterWorkerInternal" , "java" )
766
750
@ resource ("routing/workers" )
767
751
@ doc ("An entity for jobs to be routed to." )
768
752
model RouterWorker {
@@ -863,7 +847,6 @@ model RouterWorkerAssignment {
863
847
assignedAt : utcDateTime ;
864
848
}
865
849
866
- @ clientName ("BestWorkerModeInternal" , "java" )
867
850
@ doc ("Jobs are distributed to the worker with the strongest abilities available." )
868
851
model BestWorkerMode extends DistributionMode {
869
852
@ doc ("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)." )
@@ -894,7 +877,6 @@ model ScoringRuleOptions {
894
877
descendingOrder ? : boolean = true ;
895
878
}
896
879
897
- @ clientName ("CancelExceptionActionInternal" , "java" )
898
880
@ doc ("An action that marks a job as cancelled." )
899
881
model CancelExceptionAction extends ExceptionAction {
900
882
@ doc ("A note that will be appended to a job's notes collection with the current timestamp." )
@@ -907,7 +889,6 @@ model CancelExceptionAction extends ExceptionAction {
907
889
kind : ExceptionActionKind .cancel ;
908
890
}
909
891
910
- @ clientName ("ExceptionActionInternal" , "java" )
911
892
@ doc ("The action to take when the exception is triggered." )
912
893
@ discriminator ("kind" )
913
894
model ExceptionAction {
@@ -918,7 +899,6 @@ model ExceptionAction {
918
899
kind : ExceptionActionKind ;
919
900
}
920
901
921
- @ clientName ("ConditionalQueueSelectorAttachmentInternal" , "java" )
922
902
@ doc ("Describes a set of queue selectors that will be attached if the given condition resolves to true." )
923
903
model ConditionalQueueSelectorAttachment extends QueueSelectorAttachment {
924
904
@ doc ("The condition that must be true for the queue selectors to be attached." )
@@ -931,7 +911,6 @@ model ConditionalQueueSelectorAttachment extends QueueSelectorAttachment {
931
911
kind : QueueSelectorAttachmentKind .conditional ;
932
912
}
933
913
934
- @ clientName ("RouterQueueSelectorInternal" , "java" )
935
914
@ doc ("Describes a condition that must be met against a set of labels for queue selection." )
936
915
model RouterQueueSelector {
937
916
@ doc ("The label key to query against." )
@@ -945,15 +924,13 @@ model RouterQueueSelector {
945
924
value ? : unknown ;
946
925
}
947
926
948
- @ clientName ("QueueSelectorAttachmentInternal" , "java" )
949
927
@ doc ("An attachment of queue selectors to resolve a queue to a job from a classification policy." )
950
928
@ discriminator ("kind" )
951
929
model QueueSelectorAttachment {
952
930
@ doc ("The type discriminator describing a sub-type of QueueSelectorAttachment." )
953
931
kind : QueueSelectorAttachmentKind ;
954
932
}
955
933
956
- @ clientName ("ConditionalWorkerSelectorAttachmentInternal" , "java" )
957
934
@ doc ("Describes a set of worker selectors that will be attached if the given condition resolves to true." )
958
935
model ConditionalWorkerSelectorAttachment extends WorkerSelectorAttachment {
959
936
@ doc ("The condition that must be true for the worker selectors to be attached." )
@@ -966,22 +943,19 @@ model ConditionalWorkerSelectorAttachment extends WorkerSelectorAttachment {
966
943
kind : WorkerSelectorAttachmentKind .conditional ;
967
944
}
968
945
969
- @ clientName ("WorkerSelectorAttachmentInternal" , "java" )
970
946
@ doc ("An attachment which attaches worker selectors to a job." )
971
947
@ discriminator ("kind" )
972
948
model WorkerSelectorAttachment {
973
949
@ doc ("The type discriminator describing a sub-type of WorkerSelectorAttachment." )
974
950
kind : WorkerSelectorAttachmentKind ;
975
951
}
976
952
977
- @ clientName ("DirectMapRouterRuleInternal" , "java" )
978
953
@ doc ("A rule that return the same labels as the input labels." )
979
954
model DirectMapRouterRule extends RouterRule {
980
955
@ doc ("The type discriminator describing a sub-type of Rule." )
981
956
kind : RouterRuleKind .directMap ;
982
957
}
983
958
984
- @ clientName ("ExpressionRouterRuleInternal" , "java" )
985
959
@ doc ("A rule providing inline expression rules." )
986
960
model ExpressionRouterRule extends RouterRule {
987
961
@ doc ("The expression language to compile to and execute." )
@@ -994,7 +968,6 @@ model ExpressionRouterRule extends RouterRule {
994
968
kind : RouterRuleKind .expression ;
995
969
}
996
970
997
- @ clientName ("FunctionRouterRuleInternal" , "java" )
998
971
@ doc ("A rule providing a binding to an HTTP Triggered Azure Function." )
999
972
model FunctionRouterRule extends RouterRule {
1000
973
@ doc ("URL for Azure Function." )
@@ -1019,14 +992,12 @@ model FunctionRouterRuleCredential {
1019
992
clientId ? : string ;
1020
993
}
1021
994
1022
- @ clientName ("LongestIdleModeInternal" , "java" )
1023
995
@ doc ("Jobs are directed to the worker who has been idle longest." )
1024
996
model LongestIdleMode extends DistributionMode {
1025
997
@ doc ("The type discriminator describing a sub-type of Mode." )
1026
998
kind : DistributionModeKind .longestIdle ;
1027
999
}
1028
1000
1029
- @ clientName ("ManualReclassifyExceptionActionInternal" , "java" )
1030
1001
@ doc ("An action that manually reclassifies a job by providing the queue, priority and worker selectors." )
1031
1002
model ManualReclassifyExceptionAction extends ExceptionAction {
1032
1003
@ doc ("Updated QueueId." )
@@ -1052,7 +1023,6 @@ model OAuth2WebhookClientCredential {
1052
1023
clientSecret ? : string ;
1053
1024
}
1054
1025
1055
- @ clientName ("PassThroughQueueSelectorAttachmentInternal" , "java" )
1056
1026
@ doc ("Attaches a queue selector where the value is passed through from a job's label with the same key." )
1057
1027
model PassThroughQueueSelectorAttachment extends QueueSelectorAttachment {
1058
1028
@ doc ("The label key to query against." )
@@ -1065,7 +1035,6 @@ model PassThroughQueueSelectorAttachment extends QueueSelectorAttachment {
1065
1035
kind : QueueSelectorAttachmentKind .passThrough ;
1066
1036
}
1067
1037
1068
- @ clientName ("PassThroughWorkerSelectorAttachmentInternal" , "java" )
1069
1038
@ doc ("Attaches a worker selector where the value is passed through from a job's label with the same key." )
1070
1039
model PassThroughWorkerSelectorAttachment extends WorkerSelectorAttachment {
1071
1040
@ doc ("The label key to query against." )
@@ -1081,7 +1050,6 @@ model PassThroughWorkerSelectorAttachment extends WorkerSelectorAttachment {
1081
1050
kind : WorkerSelectorAttachmentKind .passThrough ;
1082
1051
}
1083
1052
1084
- @ clientName ("QueueLengthExceptionTriggerInternal" , "java" )
1085
1053
@ doc ("Trigger for an exception action on exceeding queue length." )
1086
1054
model QueueLengthExceptionTrigger extends ExceptionTrigger {
1087
1055
@ doc ("Threshold of number of jobs ahead in the queue to for this trigger to fire." )
@@ -1091,7 +1059,6 @@ model QueueLengthExceptionTrigger extends ExceptionTrigger {
1091
1059
kind : ExceptionTriggerKind .queueLength ;
1092
1060
}
1093
1061
1094
- @ clientName ("QueueWeightedAllocationInternal" , "java" )
1095
1062
@ doc ("Contains the weight percentage and queue selectors to be applied if selected for weighted distributions." )
1096
1063
model QueueWeightedAllocation {
1097
1064
@ doc ("The percentage of this weight, expressed as a fraction of 1." )
@@ -1101,7 +1068,6 @@ model QueueWeightedAllocation {
1101
1068
queueSelectors : RouterQueueSelector [];
1102
1069
}
1103
1070
1104
- @ clientName ("ReclassifyExceptionActionInternal" , "java" )
1105
1071
@ doc ("An action that modifies labels on a job and then reclassifies it." )
1106
1072
model ReclassifyExceptionAction extends ExceptionAction {
1107
1073
@ doc ("The new classification policy that will determine queue, priority and worker selectors." )
@@ -1115,14 +1081,12 @@ model ReclassifyExceptionAction extends ExceptionAction {
1115
1081
kind : ExceptionActionKind .reclassify ;
1116
1082
}
1117
1083
1118
- @ clientName ("RoundRobinModeInternal" , "java" )
1119
1084
@ doc ("Jobs are distributed in order to workers, starting with the worker that is after the last worker to receive a job." )
1120
1085
model RoundRobinMode extends DistributionMode {
1121
1086
@ doc ("The type discriminator describing a sub-type of Mode." )
1122
1087
kind : DistributionModeKind .roundRobin ;
1123
1088
}
1124
1089
1125
- @ clientName ("RuleEngineQueueSelectorAttachmentInternal" , "java" )
1126
1090
@ doc ("Attaches queue selectors to a job when the RouterRule is resolved." )
1127
1091
model RuleEngineQueueSelectorAttachment extends QueueSelectorAttachment {
1128
1092
@ doc ("A RouterRule that resolves a collection of queue selectors to attach." )
@@ -1132,7 +1096,6 @@ model RuleEngineQueueSelectorAttachment extends QueueSelectorAttachment {
1132
1096
kind : QueueSelectorAttachmentKind .ruleEngine ;
1133
1097
}
1134
1098
1135
- @ clientName ("RuleEngineWorkerSelectorAttachmentInternal" , "java" )
1136
1099
@ doc ("Attaches worker selectors to a job when a RouterRule is resolved." )
1137
1100
model RuleEngineWorkerSelectorAttachment extends WorkerSelectorAttachment {
1138
1101
@ doc ("A RouterRule that resolves a collection of worker selectors to attach." )
@@ -1142,7 +1105,6 @@ model RuleEngineWorkerSelectorAttachment extends WorkerSelectorAttachment {
1142
1105
kind : WorkerSelectorAttachmentKind .ruleEngine ;
1143
1106
}
1144
1107
1145
- @ clientName ("StaticQueueSelectorAttachmentInternal" , "java" )
1146
1108
@ doc ("Describes a queue selector that will be attached to a job." )
1147
1109
model StaticQueueSelectorAttachment extends QueueSelectorAttachment {
1148
1110
@ doc ("The queue selector to attach." )
@@ -1152,7 +1114,6 @@ model StaticQueueSelectorAttachment extends QueueSelectorAttachment {
1152
1114
kind : QueueSelectorAttachmentKind .static ;
1153
1115
}
1154
1116
1155
- @ clientName ("StaticRouterRuleInternal" , "java" )
1156
1117
@ doc ("A rule providing static rules that always return the same result, regardless of input." )
1157
1118
model StaticRouterRule extends RouterRule {
1158
1119
#suppress "@azure-tools/typespec-azure-core/no-unknown" "Unions are currently not allowed in spec."
@@ -1163,7 +1124,6 @@ model StaticRouterRule extends RouterRule {
1163
1124
kind : RouterRuleKind .static ;
1164
1125
}
1165
1126
1166
- @ clientName ("StaticWorkerSelectorAttachmentInternal" , "java" )
1167
1127
@ doc ("Describes a worker selector that will be attached to a job." )
1168
1128
model StaticWorkerSelectorAttachment extends WorkerSelectorAttachment {
1169
1129
@ doc ("The worker selector to attach." )
@@ -1173,7 +1133,6 @@ model StaticWorkerSelectorAttachment extends WorkerSelectorAttachment {
1173
1133
kind : WorkerSelectorAttachmentKind .static ;
1174
1134
}
1175
1135
1176
- @ clientName ("WaitTimeExceptionTriggerInternal" , "java" )
1177
1136
@ doc ("Trigger for an exception action on exceeding wait time." )
1178
1137
model WaitTimeExceptionTrigger extends ExceptionTrigger {
1179
1138
@ doc ("Threshold for wait time for this trigger." )
@@ -1183,7 +1142,6 @@ model WaitTimeExceptionTrigger extends ExceptionTrigger {
1183
1142
kind : ExceptionTriggerKind .waitTime ;
1184
1143
}
1185
1144
1186
- @ clientName ("WebhookRouterRuleInternal" , "java" )
1187
1145
@ doc ("A rule providing a binding to an external web server." )
1188
1146
model WebhookRouterRule extends RouterRule {
1189
1147
@ doc ("Uri for Authorization Server." )
@@ -1199,7 +1157,6 @@ model WebhookRouterRule extends RouterRule {
1199
1157
kind : RouterRuleKind .webhook ;
1200
1158
}
1201
1159
1202
- @ clientName ("WeightedAllocationQueueSelectorAttachmentInternal" , "java" )
1203
1160
@ doc ("Describes multiple sets of queue selectors, of which one will be selected and attached according to a weighting." )
1204
1161
model WeightedAllocationQueueSelectorAttachment
1205
1162
extends QueueSelectorAttachment {
@@ -1210,7 +1167,6 @@ model WeightedAllocationQueueSelectorAttachment
1210
1167
kind : QueueSelectorAttachmentKind .weightedAllocation ;
1211
1168
}
1212
1169
1213
- @ clientName ("WeightedAllocationWorkerSelectorAttachmentInternal" , "java" )
1214
1170
@ doc ("Describes multiple sets of worker selectors, of which one will be selected and attached according to a weighting." )
1215
1171
model WeightedAllocationWorkerSelectorAttachment
1216
1172
extends WorkerSelectorAttachment {
@@ -1221,7 +1177,6 @@ model WeightedAllocationWorkerSelectorAttachment
1221
1177
kind : WorkerSelectorAttachmentKind .weightedAllocation ;
1222
1178
}
1223
1179
1224
- @ clientName ("WorkerWeightedAllocationInternal" , "java" )
1225
1180
@ doc ("Contains the weight percentage and worker selectors to be applied if selected for weighted distributions." )
1226
1181
model WorkerWeightedAllocation {
1227
1182
@ doc ("The percentage of this weight, expressed as a fraction of 1." )
0 commit comments