Skip to content

Commit 30c98b2

Browse files
[Communication Services - JobRouter] Initial commit (#17872)
* initial commit * add readmes * revise readme * fix swagger link * fix swagger link, add closing brace to patch classification example * Updating with latest swagger and prettier changes * Fix prettier in swagger * Fix examples * Address many comments * prettier and avocado fixes * fix other issues * add offerttlseonds to examples * remove readonlys * Change to upsert routes * add descriptions * add descriptions * added empty properties for model validation * Add missing descriptions/summaries * Make reclassify an action * Fix spell check * Add required to requests and remove required attributes from some models * removed csharp readme * change order of worker and offer id parameters to match path Co-authored-by: Charandeep Parisineti <[email protected]>
1 parent 77b673c commit 30c98b2

File tree

45 files changed

+4972
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+4972
-0
lines changed

specification/communication/data-plane/JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json

Lines changed: 3558 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2021-10-20_preview2",
5+
"id": "90eb00c4-234e-4df7-a231-ef7895518384",
6+
"patch": {
7+
"name": "Main",
8+
"fallbackQueueId": "MainQueue",
9+
"queueSelectors": [
10+
{
11+
"kind": "conditional",
12+
"condition": {
13+
"kind": "expression-rule",
14+
"language": "PowerFx",
15+
"expression": "1 = 1"
16+
},
17+
"labelSelectors": [
18+
{
19+
"key": "foo",
20+
"labelOperator": "equal",
21+
"value": "bar"
22+
}
23+
]
24+
}
25+
],
26+
"prioritizationRule": {
27+
"kind": "static-rule",
28+
"value": "2"
29+
}
30+
}
31+
},
32+
"responses": {
33+
"200": {
34+
"body": {
35+
"id": "90eb00c4-234e-4df7-a231-ef7895518384",
36+
"name": "Main",
37+
"fallbackQueueId": "MainQueue",
38+
"queueSelectors": [
39+
{
40+
"kind": "conditional",
41+
"condition": {
42+
"kind": "expression-rule",
43+
"language": "PowerFx",
44+
"expression": "1 = 1"
45+
},
46+
"labelSelectors": [
47+
{
48+
"key": "foo",
49+
"labelOperator": "equal",
50+
"value": "bar"
51+
}
52+
]
53+
}
54+
],
55+
"prioritizationRule": {
56+
"kind": "static-rule",
57+
"value": "2"
58+
},
59+
"workerSelectors": []
60+
}
61+
}
62+
}
63+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2021-10-20_preview2",
5+
"id": "MainClassificationPolicy"
6+
},
7+
"responses": {
8+
"204": {}
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2021-10-20_preview2",
5+
"id": "MainClassificationPolicy"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "MainClassificationPolicy",
11+
"name": "Main",
12+
"fallbackQueueId": "MainQueue",
13+
"queueSelectors": [
14+
{
15+
"kind": "conditional",
16+
"condition": {
17+
"kind": "expression-rule",
18+
"language": "PowerFx",
19+
"expression": "1 = 1"
20+
},
21+
"labelSelectors": [
22+
{
23+
"key": "foo",
24+
"labelOperator": "equal",
25+
"value": "bar"
26+
}
27+
]
28+
}
29+
],
30+
"prioritizationRule": {
31+
"kind": "static-rule",
32+
"value": "2"
33+
},
34+
"workerSelectors": [
35+
{
36+
"kind": "pass-through",
37+
"key": "language",
38+
"operator": "equal"
39+
}
40+
]
41+
}
42+
}
43+
}
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2021-10-20_preview2",
5+
"maxpagesize": 2
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "MainClassificationPolicy",
13+
"name": "Main",
14+
"fallbackQueueId": "MainQueue",
15+
"queueSelectors": [
16+
{
17+
"kind": "rule",
18+
"rule": {
19+
"kind": "expression-rule",
20+
"language": "PowerFx",
21+
"expression": "If(job.Escalated = true, \"SecondaryQueue\", \"MainQueue\")"
22+
}
23+
}
24+
],
25+
"prioritizationRule": {
26+
"kind": "static-rule",
27+
"value": "2"
28+
},
29+
"workerSelectors": []
30+
},
31+
{
32+
"id": "SecondaryClassificationPolicy",
33+
"name": "Secondary",
34+
"fallbackQueueId": "MainQueue",
35+
"queueSelectors": [
36+
{
37+
"kind": "rule",
38+
"rule": {
39+
"kind": "expression-rule",
40+
"language": "PowerFx",
41+
"expression": "If(job.VIP = true, \"VIPQueue\", \"MainQueue\")"
42+
}
43+
}
44+
],
45+
"prioritizationRule": {
46+
"kind": "static-rule",
47+
"value": "1"
48+
},
49+
"workerSelectors": []
50+
}
51+
],
52+
"nextLink": "null"
53+
}
54+
}
55+
}
56+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2021-10-20_preview2",
5+
"id": "90eb00c4-234e-4df7-a231-ef7895518384",
6+
"patch": {
7+
"name": "MainUpdate"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"id": "90eb00c4-234e-4df7-a231-ef7895518384",
14+
"name": "MainUpdate",
15+
"fallbackQueueId": "MainQueue",
16+
"queueSelectors": [
17+
{
18+
"kind": "conditional",
19+
"condition": {
20+
"kind": "expression-rule",
21+
"language": "PowerFx",
22+
"expression": "1 = 1"
23+
},
24+
"labelSelectors": [
25+
{
26+
"key": "foo",
27+
"operator": "equal",
28+
"value": "bar"
29+
}
30+
]
31+
}
32+
],
33+
"prioritizationRule": {
34+
"kind": "static-rule",
35+
"value": "2"
36+
},
37+
"workerSelectors": []
38+
}
39+
}
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2021-10-20_preview2",
5+
"id": "d9033d56-659c-437a-b5b7-4f3b14301dd4",
6+
"patch": {
7+
"mode": {
8+
"kind": "longest-idle",
9+
"minConcurrentOffers": 1,
10+
"maxConcurrentOffers": 5,
11+
"bypassSelectors": false
12+
},
13+
"offerTtlSeconds": 300,
14+
"name": "Main"
15+
}
16+
},
17+
"responses": {
18+
"200": {
19+
"body": {
20+
"id": "d9033d56-659c-437a-b5b7-4f3b14301dd4",
21+
"name": "Main",
22+
"offerTtlSeconds": 300,
23+
"mode": {
24+
"kind": "longest-idle",
25+
"minConcurrentOffers": 1,
26+
"maxConcurrentOffers": 5,
27+
"bypassSelectors": false
28+
}
29+
}
30+
}
31+
}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2021-10-20_preview2",
5+
"id": "MainDistributionPolicy"
6+
},
7+
"responses": {
8+
"204": {}
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2021-10-20_preview2",
5+
"id": "MainDistributionPolicy"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "MainDistributionPolicy",
11+
"name": "Main",
12+
"offerTtlSeconds": 300,
13+
"mode": {
14+
"kind": "longest-idle",
15+
"minConcurrentOffers": 1,
16+
"maxConcurrentOffers": 5,
17+
"bypassSelectors": false
18+
}
19+
}
20+
}
21+
}
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2021-10-20_preview2",
5+
"maxpagesize": 2
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "SecondaryDistributionPolicy",
13+
"name": "Secondary",
14+
"offerTtlSeconds": 300,
15+
"mode": {
16+
"kind": "round-robin",
17+
"minConcurrentOffers": 1,
18+
"maxConcurrentOffers": 2,
19+
"bypassSelectors": false
20+
}
21+
},
22+
{
23+
"id": "MainDistributionPolicy",
24+
"name": "Main",
25+
"offerTtlSeconds": 300,
26+
"mode": {
27+
"kind": "longest-idle",
28+
"minConcurrentOffers": 1,
29+
"maxConcurrentOffers": 5,
30+
"bypassSelectors": false
31+
}
32+
}
33+
],
34+
"nextLink": "null"
35+
}
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)