Skip to content

Commit 776ef6d

Browse files
giakasfrank-pang-msft
authored andcommitted
Fix AVA 2021-11-01 example files (Azure#16432)
* fix examples * fix prettier checks
1 parent a2e36c4 commit 776ef6d

20 files changed

+159
-32
lines changed

specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/edge-modules-listProvisioningToken.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
"edgeModuleName": "edgeModule1",
77
"api-version": "2021-11-01-preview",
88
"parameters": {
9-
"expirationDate": "3021-01-23T11:04:49.0526841-08:00"
9+
"expirationDate": "2023-01-23T11:04:49.0526841-08:00"
1010
}
1111
},
1212
"responses": {
1313
"200": {
1414
"body": {
15-
"expirationDate": "2021-09-24T04:17:55.6193764Z"
15+
"expirationDate": "2021-09-24T04:17:55.6193764Z",
16+
"token": "testtoken"
1617
}
1718
}
1819
}

specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/live-pipeline-create.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"responses": {
2323
"201": {
2424
"body": {
25-
"name": "livePipeline2",
25+
"name": "livePipeline1",
26+
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/livePipelines/livePipeline1",
27+
"type": "Microsoft.Media/videoAnalyzers/livePipelines",
2628
"properties": {
2729
"topologyName": "pipelineTopology1",
2830
"description": "Live Pipeline 1 Description",
@@ -48,6 +50,8 @@
4850
"200": {
4951
"body": {
5052
"name": "livePipeline1",
53+
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/livePipelines/livePipeline1",
54+
"type": "Microsoft.Media/videoAnalyzers/livePipelines",
5155
"properties": {
5256
"topologyName": "pipelineTopology1",
5357
"description": "Live Pipeline 1 Description",

specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/live-pipeline-get-by-name.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"200": {
1111
"body": {
1212
"name": "livePipeline1",
13+
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/livePipelines/livePipeline1",
14+
"type": "Microsoft.Media/videoAnalyzers/livePipelines",
1315
"properties": {
1416
"topologyName": "pipelineTopology1",
1517
"description": "Live Pipeline 1 Description",

specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/live-pipeline-list.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"value": [
1313
{
1414
"name": "livePipeline1",
15+
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/livePipelines/livePipeline1",
16+
"type": "Microsoft.Media/videoAnalyzers/livePipelines",
1517
"properties": {
1618
"topologyName": "pipelineTopology1",
1719
"description": "Live Pipeline 1 Description",
@@ -35,6 +37,8 @@
3537
},
3638
{
3739
"name": "livePipeline2",
40+
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/livePipelines/livePipeline2",
41+
"type": "Microsoft.Media/videoAnalyzers/livePipelines",
3842
"properties": {
3943
"topologyName": "pipelineTopology1",
4044
"description": "Live Pipeline 2 Description",

specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/live-pipeline-operation-status-get.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@
1313
"name": "00000000-0000-0000-0000-000000000001",
1414
"status": "Failed",
1515
"error": {
16-
"code": "Conflict"
16+
"code": "Conflict",
17+
"message": "A conflict was encountered when processing the request",
18+
"details": [
19+
{
20+
"code": "VideoIsInUse",
21+
"message": "The video video1 is used by another pipeline."
22+
}
23+
]
1724
}
1825
}
1926
}

specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/live-pipeline-patch.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
"200": {
1616
"body": {
1717
"name": "livePipeline1",
18+
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/livePipelines/livePipeline1",
19+
"type": "Microsoft.Media/videoAnalyzers/livePipelines",
1820
"properties": {
1921
"topologyName": "pipelineTopology1",
2022
"description": "Live Pipeline 1 Description",

specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/pipeline-job-create.json

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
"parameters": [
1313
{
1414
"name": "timesequences",
15-
"value": "[[2020-10-05T03:30:00Z, 2020-10-05T04:30:00Z]]"
15+
"value": "[[\"2020-10-05T03:30:00Z\", \"2020-10-05T04:30:00Z\"]]"
16+
},
17+
{
18+
"name": "videoSourceName",
19+
"value": "camera001"
1620
}
1721
]
1822
}
@@ -22,14 +26,20 @@
2226
"201": {
2327
"body": {
2428
"name": "pipelineJob1",
29+
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineJobs/pipelineJob1",
30+
"type": "Microsoft.Media/videoAnalyzers/pipelineJobs",
2531
"properties": {
2632
"topologyName": "pipelineTopology1",
2733
"description": "Pipeline Job 1 Description",
2834
"state": "Processing",
2935
"parameters": [
3036
{
3137
"name": "timeSequences",
32-
"value": "[[2020-10-05T03:30:00Z, 2020-10-05T04:30:00Z]]"
38+
"value": "[[\"2020-10-05T03:30:00Z\", \"2020-10-05T04:30:00Z\"]]"
39+
},
40+
{
41+
"name": "videoSourceName",
42+
"value": "camera001"
3343
}
3444
]
3545
},
@@ -45,15 +55,21 @@
4555
},
4656
"200": {
4757
"body": {
48-
"name": "pipelineJob2",
58+
"name": "pipelineJob1",
59+
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineJobs/pipelineJob1",
60+
"type": "Microsoft.Media/videoAnalyzers/pipelineJobs",
4961
"properties": {
50-
"topologyName": "pipelineTopology2",
62+
"topologyName": "pipelineTopology1",
5163
"description": "Pipeline Job 2 Description",
5264
"state": "Processing",
5365
"parameters": [
5466
{
5567
"name": "timeSequences",
56-
"value": "[[2020-10-05T03:30:00Z, 2020-10-05T04:30:00Z]]"
68+
"value": "[[\"2020-10-05T03:30:00Z\", \"2020-10-05T04:30:00Z\"]]"
69+
},
70+
{
71+
"name": "videoSourceName",
72+
"value": "camera001"
5773
}
5874
]
5975
},

specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/pipeline-job-get-by-name.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,20 @@
1010
"200": {
1111
"body": {
1212
"name": "pipelineJob1",
13+
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineJobs/pipelineJob1",
14+
"type": "Microsoft.Media/videoAnalyzers/pipelineJobs",
1315
"properties": {
1416
"topologyName": "pipelineTopology1",
1517
"description": "Pipeline Job 1 Description",
1618
"state": "Processing",
1719
"parameters": [
1820
{
1921
"name": "timeSequences",
20-
"value": "[[2020-10-05T03:30:00Z, 2020-10-05T04:30:00Z]]"
22+
"value": "[[\"2020-10-05T03:30:00Z\", \"2020-10-05T04:30:00Z\"]]"
23+
},
24+
{
25+
"name": "videoSourceName",
26+
"value": "camera001"
2127
}
2228
]
2329
},

specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/pipeline-job-list.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,20 @@
1212
"value": [
1313
{
1414
"name": "pipelineJob1",
15+
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineJobs/pipelineJob1",
16+
"type": "Microsoft.Media/videoAnalyzers/pipelineJobs",
1517
"properties": {
1618
"topologyName": "pipelineTopology1",
1719
"description": "Pipeline Job 1 Description",
1820
"state": "Processing",
1921
"parameters": [
2022
{
2123
"name": "timeSequences",
22-
"value": "[[2020-10-05T03:30:00Z, 2020-10-05T04:30:00Z]]"
24+
"value": "[[\"2020-10-05T03:30:00Z\", \"2020-10-05T04:30:00Z\"]]"
25+
},
26+
{
27+
"name": "videoSourceName",
28+
"value": "camera001"
2329
}
2430
]
2531
},
@@ -34,6 +40,8 @@
3440
},
3541
{
3642
"name": "pipelineJob2",
43+
"id": "/subscriptions/591e76c3-3e97-44db-879c-3e2b12961b62/resourceGroups/testrg/providers/Microsoft.Media/videoAnalyzers/testaccount2/pipelineJobs/pipelineJob2",
44+
"type": "Microsoft.Media/videoAnalyzers/pipelineJobs",
3745
"properties": {
3846
"topologyName": "pipelineTopology1",
3947
"description": "Pipeline Job 2 Description",
@@ -42,7 +50,11 @@
4250
"parameters": [
4351
{
4452
"name": "timeSequences",
45-
"value": "[[2020-10-05T07:30:00Z, 2020-10-05T08:30:00Z]]"
53+
"value": "[[\"2020-10-05T03:30:00Z\", \"2020-10-05T04:30:00Z\"]]"
54+
},
55+
{
56+
"name": "videoSourceName",
57+
"value": "camera002"
4658
}
4759
]
4860
},

specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/pipeline-job-operation-status-get.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@
1313
"name": "00000000-0000-0000-0000-000000000001",
1414
"status": "Failed",
1515
"error": {
16-
"code": "SetupValidationFailed"
16+
"code": "Conflict",
17+
"message": "A conflict was encountered when processing the request",
18+
"details": [
19+
{
20+
"code": "VideoIsInUse",
21+
"message": "The video video1 is used by another pipeline."
22+
}
23+
]
1724
}
1825
}
1926
}

0 commit comments

Comments
 (0)