Skip to content

Commit b280ba2

Browse files
authored
Update EventGrid Schema for Azure Container Registry (Azure#16776)
* Update EventGrid Schema for Azure Container Registry * prettier fix
1 parent 48a49f0 commit b280ba2

File tree

5 files changed

+67
-26
lines changed

5 files changed

+67
-26
lines changed

specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@
5959
"description": "The action that encompasses the provided event.",
6060
"type": "string"
6161
},
62+
"location": {
63+
"description": "The location of the event.",
64+
"type": "string"
65+
},
6266
"target": {
6367
"$ref": "#/definitions/ContainerRegistryEventTarget",
6468
"description": "The target of the event."
@@ -74,6 +78,10 @@
7478
"source": {
7579
"$ref": "#/definitions/ContainerRegistryEventSource",
7680
"description": "The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it."
81+
},
82+
"connectedRegistry": {
83+
"$ref": "#/definitions/ContainerRegistryEventConnectedRegistry",
84+
"description": "The connected registry information if the event is generated by a connected registry."
7785
}
7886
}
7987
},
@@ -93,9 +101,17 @@
93101
"description": "The action that encompasses the provided event.",
94102
"type": "string"
95103
},
104+
"location": {
105+
"description": "The location of the event.",
106+
"type": "string"
107+
},
96108
"target": {
97109
"$ref": "#/definitions/ContainerRegistryArtifactEventTarget",
98110
"description": "The target of the event."
111+
},
112+
"connectedRegistry": {
113+
"$ref": "#/definitions/ContainerRegistryEventConnectedRegistry",
114+
"description": "The connected registry information if the event is generated by a connected registry."
99115
}
100116
}
101117
},
@@ -214,6 +230,15 @@
214230
"type": "string"
215231
}
216232
}
233+
},
234+
"ContainerRegistryEventConnectedRegistry": {
235+
"description": "The connected registry information if the event is generated by a connected registry.",
236+
"properties": {
237+
"name": {
238+
"description": "The name of the connected registry that generated this event.",
239+
"type": "string"
240+
}
241+
}
217242
}
218243
}
219244
}

specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/examples/chart_deleted.json

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,23 @@
55
"eventType": "Microsoft.ContainerRegistry.ChartDeleted",
66
"eventTime": "019-03-12T22:42:08.7034064Z",
77
"data": {
8-
"id":"ea3a9c28-5b17-40f6-a500-3f02b682927",
9-
"timestamp":"2019-03-12T22:42:08.3783775+00:00",
10-
"action":"chart_delete",
11-
"target":{
12-
"mediaType":"application/vnd.acr.helm.chart",
13-
"size":25265,
14-
"digest":"sha256:7f060075264b5ba7c14c23672698152ae6a3ebac1c47916e4efe19cd624d5fab",
15-
"repository":"repo",
16-
"tag":"mychart-1.0.0.tgz",
17-
"name":"mychart",
18-
"version":"1.0.0"
8+
"id": "ea3a9c28-5b17-40f6-a500-3f02b682927",
9+
"timestamp": "2019-03-12T22:42:08.3783775+00:00",
10+
"action": "chart_delete",
11+
"location": "westus",
12+
"target": {
13+
"mediaType": "application/vnd.acr.helm.chart",
14+
"size": 25265,
15+
"digest": "sha256:7f060075264b5ba7c14c23672698152ae6a3ebac1c47916e4efe19cd624d5fab",
16+
"repository": "repo",
17+
"tag": "mychart-1.0.0.tgz",
18+
"name": "mychart",
19+
"version": "1.0.0"
20+
},
21+
"connectedRegistry": {
22+
"name": "edge1"
1923
}
2024
},
21-
"dataVersion": "1.0",
25+
"dataVersion": "2.0",
2226
"metadataVersion": "1"
2327
}

specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/examples/chart_pushed.json

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,23 @@
55
"eventType": "Microsoft.ContainerRegistry.ChartPushed",
66
"eventTime": "2019-03-12T22:16:31.5164086Z",
77
"data": {
8-
"id":"ea3a9c28-5b17-40f6-a500-3f02b682927",
9-
"timestamp":"2019-03-12T22:16:31.0087496+00:00",
10-
"action":"chart_push",
11-
"target":{
12-
"mediaType":"application/vnd.acr.helm.chart",
13-
"size":25265,
14-
"digest":"sha256:7f060075264b5ba7c14c23672698152ae6a3ebac1c47916e4efe19cd624d5fab",
15-
"repository":"repo",
16-
"tag":"mychart-1.0.0.tgz",
17-
"name":"mychart",
18-
"version":"1.0.0"
8+
"id": "ea3a9c28-5b17-40f6-a500-3f02b682927",
9+
"timestamp": "2019-03-12T22:16:31.0087496+00:00",
10+
"action": "chart_push",
11+
"location": "westus",
12+
"target": {
13+
"mediaType": "application/vnd.acr.helm.chart",
14+
"size": 25265,
15+
"digest": "sha256:7f060075264b5ba7c14c23672698152ae6a3ebac1c47916e4efe19cd624d5fab",
16+
"repository": "repo",
17+
"tag": "mychart-1.0.0.tgz",
18+
"name": "mychart",
19+
"version": "1.0.0"
20+
},
21+
"connectedRegistry": {
22+
"name": "edge1"
1923
}
2024
},
21-
"dataVersion": "1.0",
25+
"dataVersion": "2.0",
2226
"metadataVersion": "1"
2327
}

specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/examples/image_deleted.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"id": "6fdef14c-2594-41e8-9156-c0376eb0a190",
88
"timestamp": "2021-09-08T06:49:40.1850248Z",
99
"action": "delete",
10+
"location": "westus",
1011
"target": {
1112
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
1213
"digest": "sha256:57a94fc99816c6aa225678b738ac40d85422e75dbb96115f1bb9b6ed77176166",
@@ -17,9 +18,12 @@
1718
"host": "jolovcr.azurecr.io",
1819
"method": "DELETE",
1920
"useragent": "python-requests/2.22.0"
21+
},
22+
"connectedRegistry": {
23+
"name": "edge1"
2024
}
2125
},
22-
"dataVersion": "1.0",
26+
"dataVersion": "2.0",
2327
"metadataVersion": "1",
2428
"eventTime": "2021-09-08T06:49:40.5342401Z"
2529
}

specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/examples/image_pushed.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"id": "c25fdb80-ebbd-4dd0-a29c-a7349e6388f6",
88
"timestamp": "2021-09-08T06:37:45.4681009Z",
99
"action": "push",
10+
"location": "westus",
1011
"target": {
1112
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
1213
"size": 1153,
@@ -20,9 +21,12 @@
2021
"host": "jolovcr.azurecr.io",
2122
"method": "PUT",
2223
"useragent": "docker/20.10.7 go/go1.13.15 git-commit/b0f5bc3 kernel/5.10.16.3-microsoft-standard-WSL2 os/linux arch/amd64 UpstreamClient(Docker-Client/20.10.7 \\(windows\\))"
24+
},
25+
"connectedRegistry": {
26+
"name": "edge1"
2327
}
2428
},
25-
"dataVersion": "1.0",
29+
"dataVersion": "2.0",
2630
"metadataVersion": "1",
2731
"eventTime": "2021-09-08T06:37:45.6609948Z"
2832
}

0 commit comments

Comments
 (0)