From 6f4cee5d63793225c9f93f7952b02f619a46dd5d Mon Sep 17 00:00:00 2001 From: Jeanine Burke <41650461+jaysterp@users.noreply.github.com> Date: Thu, 31 Jan 2019 13:19:45 -0500 Subject: [PATCH] Add Helm Events to ACR Schema for Event Grid (#5109) * update ACR spec for Event Grid * format fix * edit artifact descriptions --- .../stable/2018-01-01/ContainerRegistry.json | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json b/specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json index 5e30c7fbdde9..9995610b7a2a 100644 --- a/specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json +++ b/specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json @@ -25,6 +25,24 @@ ], "properties": {} }, + "ContainerRegistryChartPushedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ContainerRegistry.ChartPushed event.", + "allOf": [ + { + "$ref": "#/definitions/ContainerRegistryArtifactEventData" + } + ], + "properties": {} + }, + "ContainerRegistryChartDeletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ContainerRegistry.ChartDeleted event.", + "allOf": [ + { + "$ref": "#/definitions/ContainerRegistryArtifactEventData" + } + ], + "properties": {} + }, "ContainerRegistryEventData": { "description": "The content of the event request message.", "properties": { @@ -59,6 +77,28 @@ } } }, + "ContainerRegistryArtifactEventData": { + "description": "The content of the event request message.", + "properties": { + "id": { + "description": "The event ID.", + "type": "string" + }, + "timestamp": { + "format": "date-time", + "description": "The time at which the event occurred.", + "type": "string" + }, + "action": { + "description": "The action that encompasses the provided event.", + "type": "string" + }, + "target": { + "$ref": "#/definitions/ContainerRegistryArtifactEventTarget", + "description": "The target of the event." + } + } + }, "ContainerRegistryEventTarget": { "description": "The target of the event.", "properties": { @@ -94,6 +134,40 @@ } } }, + "ContainerRegistryArtifactEventTarget": { + "description": "The target of the event.", + "properties": { + "mediaType": { + "description": "The MIME type of the artifact.", + "type": "string" + }, + "size": { + "format": "int64", + "description": "The size in bytes of the artifact.", + "type": "integer" + }, + "digest": { + "description": "The digest of the artifact.", + "type": "string" + }, + "repository": { + "description": "The repository name of the artifact.", + "type": "string" + }, + "tag": { + "description": "The tag of the artifact.", + "type": "string" + }, + "name": { + "description": "The name of the artifact.", + "type": "string" + }, + "version": { + "description": "The version of the artifact.", + "type": "string" + } + } + }, "ContainerRegistryEventRequest": { "description": "The request that generated the event.", "properties": {