From 23b6143704a639c9a91b95a97433f146d0c3f670 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 29 Jan 2019 00:59:16 +0000 Subject: [PATCH 1/2] Generated from b71f71867adc838bf67548408257cd0b5c301fb2 format fix --- 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..b3c6440e73cd 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 referenced object. + MediaType *string `json:"mediaType,omitempty"` + // Size - The number of bytes of the content. + Size *int64 `json:"size,omitempty"` + // Digest - The digest of the helm chart. + Digest *string `json:"digest,omitempty"` + // Repository - The repository name. + Repository *string `json:"repository,omitempty"` + // Tag - The tag name. + Tag *string `json:"tag,omitempty"` + // Name - The name of the helm chart. + Name *string `json:"name,omitempty"` + // Version - The version of the helm chart. + 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 { From 8105e5648f410b0d93344bf709b785e22d4c17f5 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 29 Jan 2019 17:57:41 +0000 Subject: [PATCH 2/2] Generated from c262b34584805f12aefcb1f91ce687dbdc02d559 edit artifact descriptions --- services/eventgrid/2018-01-01/eventgrid/models.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/services/eventgrid/2018-01-01/eventgrid/models.go b/services/eventgrid/2018-01-01/eventgrid/models.go index b3c6440e73cd..42dcd210a178 100644 --- a/services/eventgrid/2018-01-01/eventgrid/models.go +++ b/services/eventgrid/2018-01-01/eventgrid/models.go @@ -155,19 +155,19 @@ type ContainerRegistryArtifactEventData struct { // ContainerRegistryArtifactEventTarget the target of the event. type ContainerRegistryArtifactEventTarget struct { - // MediaType - The MIME type of the referenced object. + // MediaType - The MIME type of the artifact. MediaType *string `json:"mediaType,omitempty"` - // Size - The number of bytes of the content. + // Size - The size in bytes of the artifact. Size *int64 `json:"size,omitempty"` - // Digest - The digest of the helm chart. + // Digest - The digest of the artifact. Digest *string `json:"digest,omitempty"` - // Repository - The repository name. + // Repository - The repository name of the artifact. Repository *string `json:"repository,omitempty"` - // Tag - The tag name. + // Tag - The tag of the artifact. Tag *string `json:"tag,omitempty"` - // Name - The name of the helm chart. + // Name - The name of the artifact. Name *string `json:"name,omitempty"` - // Version - The version of the helm chart. + // Version - The version of the artifact. Version *string `json:"version,omitempty"` }