From 15f99e29c03b87416b602ac101c364c71643c7d4 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 31 Jan 2019 10:22:15 -0800 Subject: [PATCH] [AutoPR eventgrid/data-plane] Add Helm Events to ACR Schema for Event Grid (#3962) * Generated from b71f71867adc838bf67548408257cd0b5c301fb2 format fix * Generated from c262b34584805f12aefcb1f91ce687dbdc02d559 edit artifact descriptions --- profiles/latest/eventgrid/eventgrid/models.go | 4 ++ .../preview/eventgrid/eventgrid/models.go | 4 ++ .../eventgrid/2018-01-01/eventgrid/models.go | 56 +++++++++++++++++++ 3 files changed, 64 insertions(+) diff --git a/profiles/latest/eventgrid/eventgrid/models.go b/profiles/latest/eventgrid/eventgrid/models.go index 1e9a2bde5908..e0e35c4f26e8 100644 --- a/profiles/latest/eventgrid/eventgrid/models.go +++ b/profiles/latest/eventgrid/eventgrid/models.go @@ -73,6 +73,10 @@ const ( type BaseClient = original.BaseClient type BasicMediaJobOutput = original.BasicMediaJobOutput +type ContainerRegistryArtifactEventData = original.ContainerRegistryArtifactEventData +type ContainerRegistryArtifactEventTarget = original.ContainerRegistryArtifactEventTarget +type ContainerRegistryChartDeletedEventData = original.ContainerRegistryChartDeletedEventData +type ContainerRegistryChartPushedEventData = original.ContainerRegistryChartPushedEventData type ContainerRegistryEventActor = original.ContainerRegistryEventActor type ContainerRegistryEventData = original.ContainerRegistryEventData type ContainerRegistryEventRequest = original.ContainerRegistryEventRequest diff --git a/profiles/preview/eventgrid/eventgrid/models.go b/profiles/preview/eventgrid/eventgrid/models.go index 589771d0996a..17982bd8ea14 100644 --- a/profiles/preview/eventgrid/eventgrid/models.go +++ b/profiles/preview/eventgrid/eventgrid/models.go @@ -73,6 +73,10 @@ const ( type BaseClient = original.BaseClient type BasicMediaJobOutput = original.BasicMediaJobOutput +type ContainerRegistryArtifactEventData = original.ContainerRegistryArtifactEventData +type ContainerRegistryArtifactEventTarget = original.ContainerRegistryArtifactEventTarget +type ContainerRegistryChartDeletedEventData = original.ContainerRegistryChartDeletedEventData +type ContainerRegistryChartPushedEventData = original.ContainerRegistryChartPushedEventData type ContainerRegistryEventActor = original.ContainerRegistryEventActor type ContainerRegistryEventData = original.ContainerRegistryEventData type ContainerRegistryEventRequest = original.ContainerRegistryEventRequest diff --git a/services/eventgrid/2018-01-01/eventgrid/models.go b/services/eventgrid/2018-01-01/eventgrid/models.go index 1adb46d015a2..42dcd210a178 100644 --- a/services/eventgrid/2018-01-01/eventgrid/models.go +++ b/services/eventgrid/2018-01-01/eventgrid/models.go @@ -141,6 +141,62 @@ func PossibleOdataTypeValues() []OdataType { return []OdataType{OdataTypeMediaJobOutput, OdataTypeMicrosoftMediaJobOutputAsset} } +// ContainerRegistryArtifactEventData the content of the event request message. +type ContainerRegistryArtifactEventData struct { + // ID - The event ID. + ID *string `json:"id,omitempty"` + // Timestamp - The time at which the event occurred. + Timestamp *date.Time `json:"timestamp,omitempty"` + // Action - The action that encompasses the provided event. + Action *string `json:"action,omitempty"` + // Target - The target of the event. + Target *ContainerRegistryArtifactEventTarget `json:"target,omitempty"` +} + +// ContainerRegistryArtifactEventTarget the target of the event. +type ContainerRegistryArtifactEventTarget struct { + // MediaType - The MIME type of the artifact. + MediaType *string `json:"mediaType,omitempty"` + // Size - The size in bytes of the artifact. + Size *int64 `json:"size,omitempty"` + // Digest - The digest of the artifact. + Digest *string `json:"digest,omitempty"` + // Repository - The repository name of the artifact. + Repository *string `json:"repository,omitempty"` + // Tag - The tag of the artifact. + Tag *string `json:"tag,omitempty"` + // Name - The name of the artifact. + Name *string `json:"name,omitempty"` + // Version - The version of the artifact. + Version *string `json:"version,omitempty"` +} + +// ContainerRegistryChartDeletedEventData schema of the Data property of an EventGridEvent for a +// Microsoft.ContainerRegistry.ChartDeleted event. +type ContainerRegistryChartDeletedEventData struct { + // ID - The event ID. + ID *string `json:"id,omitempty"` + // Timestamp - The time at which the event occurred. + Timestamp *date.Time `json:"timestamp,omitempty"` + // Action - The action that encompasses the provided event. + Action *string `json:"action,omitempty"` + // Target - The target of the event. + Target *ContainerRegistryArtifactEventTarget `json:"target,omitempty"` +} + +// ContainerRegistryChartPushedEventData schema of the Data property of an EventGridEvent for a +// Microsoft.ContainerRegistry.ChartPushed event. +type ContainerRegistryChartPushedEventData struct { + // ID - The event ID. + ID *string `json:"id,omitempty"` + // Timestamp - The time at which the event occurred. + Timestamp *date.Time `json:"timestamp,omitempty"` + // Action - The action that encompasses the provided event. + Action *string `json:"action,omitempty"` + // Target - The target of the event. + Target *ContainerRegistryArtifactEventTarget `json:"target,omitempty"` +} + // ContainerRegistryEventActor the agent that initiated the event. For most situations, this could be from // the authorization context of the request. type ContainerRegistryEventActor struct {