From fe37dff36849d05cd4711a28e005e5a029559705 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 1 Feb 2019 20:41:10 +0000 Subject: [PATCH 1/2] Generated from d9d758deedea5c67d4b7d065126b5a1061b17934 [Maps] Updated Event Grid publisher data schema --- profiles/latest/eventgrid/eventgrid/models.go | 5 ++ .../preview/eventgrid/eventgrid/models.go | 5 ++ .../eventgrid/2018-01-01/eventgrid/models.go | 68 +++++++++++++++++++ 3 files changed, 78 insertions(+) diff --git a/profiles/latest/eventgrid/eventgrid/models.go b/profiles/latest/eventgrid/eventgrid/models.go index e0e35c4f26e8..ddc7bb8d2819 100644 --- a/profiles/latest/eventgrid/eventgrid/models.go +++ b/profiles/latest/eventgrid/eventgrid/models.go @@ -98,6 +98,11 @@ type IotHubDeviceConnectedEventData = original.IotHubDeviceConnectedEventData type IotHubDeviceCreatedEventData = original.IotHubDeviceCreatedEventData type IotHubDeviceDeletedEventData = original.IotHubDeviceDeletedEventData type IotHubDeviceDisconnectedEventData = original.IotHubDeviceDisconnectedEventData +type MapsGeofenceEnteredEventData = original.MapsGeofenceEnteredEventData +type MapsGeofenceEventProperties = original.MapsGeofenceEventProperties +type MapsGeofenceExitedEventData = original.MapsGeofenceExitedEventData +type MapsGeofenceGeometry = original.MapsGeofenceGeometry +type MapsGeofenceResultEventData = original.MapsGeofenceResultEventData type MediaJobCanceledEventData = original.MediaJobCanceledEventData type MediaJobCancelingEventData = original.MediaJobCancelingEventData type MediaJobError = original.MediaJobError diff --git a/profiles/preview/eventgrid/eventgrid/models.go b/profiles/preview/eventgrid/eventgrid/models.go index 17982bd8ea14..b0294764e70e 100644 --- a/profiles/preview/eventgrid/eventgrid/models.go +++ b/profiles/preview/eventgrid/eventgrid/models.go @@ -98,6 +98,11 @@ type IotHubDeviceConnectedEventData = original.IotHubDeviceConnectedEventData type IotHubDeviceCreatedEventData = original.IotHubDeviceCreatedEventData type IotHubDeviceDeletedEventData = original.IotHubDeviceDeletedEventData type IotHubDeviceDisconnectedEventData = original.IotHubDeviceDisconnectedEventData +type MapsGeofenceEnteredEventData = original.MapsGeofenceEnteredEventData +type MapsGeofenceEventProperties = original.MapsGeofenceEventProperties +type MapsGeofenceExitedEventData = original.MapsGeofenceExitedEventData +type MapsGeofenceGeometry = original.MapsGeofenceGeometry +type MapsGeofenceResultEventData = original.MapsGeofenceResultEventData type MediaJobCanceledEventData = original.MediaJobCanceledEventData type MediaJobCancelingEventData = original.MediaJobCancelingEventData type MediaJobError = original.MediaJobError diff --git a/services/eventgrid/2018-01-01/eventgrid/models.go b/services/eventgrid/2018-01-01/eventgrid/models.go index 42dcd210a178..d14a84707de7 100644 --- a/services/eventgrid/2018-01-01/eventgrid/models.go +++ b/services/eventgrid/2018-01-01/eventgrid/models.go @@ -478,6 +478,74 @@ type IotHubDeviceDisconnectedEventData struct { DeviceConnectionStateEventInfo *DeviceConnectionStateEventInfo `json:"deviceConnectionStateEventInfo,omitempty"` } +// MapsGeofenceEnteredEventData schema of the Data property of an EventGridEvent for a +// Microsoft.Maps.GeofenceEntered event. +type MapsGeofenceEnteredEventData struct { + // ExpiredGeofenceGeometryID - Lists of the geometry ID of the geofence which is expired relative to the user time in the request. + ExpiredGeofenceGeometryID *[]string `json:"expiredGeofenceGeometryId,omitempty"` + // Geometries - Lists the fence geometries that either fully contain the coordinate position or have an overlap with the searchBuffer around the fence. + Geometries *[]MapsGeofenceGeometry `json:"geometries,omitempty"` + // InvalidPeriodGeofenceGeometryID - Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. + InvalidPeriodGeofenceGeometryID *[]string `json:"invalidPeriodGeofenceGeometryId,omitempty"` + // IsEventPublished - True if at least one event is published to the Azure Maps event subscriber, false if no event is published to the Azure Maps event subscriber. + IsEventPublished *bool `json:"isEventPublished,omitempty"` +} + +// MapsGeofenceEventProperties schema of the Data property of an EventGridEvent for a Geofence event +// (GeofenceEntered, GeofenceExited, GeofenceResult). +type MapsGeofenceEventProperties struct { + // ExpiredGeofenceGeometryID - Lists of the geometry ID of the geofence which is expired relative to the user time in the request. + ExpiredGeofenceGeometryID *[]string `json:"expiredGeofenceGeometryId,omitempty"` + // Geometries - Lists the fence geometries that either fully contain the coordinate position or have an overlap with the searchBuffer around the fence. + Geometries *[]MapsGeofenceGeometry `json:"geometries,omitempty"` + // InvalidPeriodGeofenceGeometryID - Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. + InvalidPeriodGeofenceGeometryID *[]string `json:"invalidPeriodGeofenceGeometryId,omitempty"` + // IsEventPublished - True if at least one event is published to the Azure Maps event subscriber, false if no event is published to the Azure Maps event subscriber. + IsEventPublished *bool `json:"isEventPublished,omitempty"` +} + +// MapsGeofenceExitedEventData schema of the Data property of an EventGridEvent for a +// Microsoft.Maps.GeofenceExited event. +type MapsGeofenceExitedEventData struct { + // ExpiredGeofenceGeometryID - Lists of the geometry ID of the geofence which is expired relative to the user time in the request. + ExpiredGeofenceGeometryID *[]string `json:"expiredGeofenceGeometryId,omitempty"` + // Geometries - Lists the fence geometries that either fully contain the coordinate position or have an overlap with the searchBuffer around the fence. + Geometries *[]MapsGeofenceGeometry `json:"geometries,omitempty"` + // InvalidPeriodGeofenceGeometryID - Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. + InvalidPeriodGeofenceGeometryID *[]string `json:"invalidPeriodGeofenceGeometryId,omitempty"` + // IsEventPublished - True if at least one event is published to the Azure Maps event subscriber, false if no event is published to the Azure Maps event subscriber. + IsEventPublished *bool `json:"isEventPublished,omitempty"` +} + +// MapsGeofenceGeometry the geofence geometry. +type MapsGeofenceGeometry struct { + // DeviceID - ID of the device. + DeviceID *string `json:"deviceId,omitempty"` + // Distance - Distance from the coordinate to the closest border of the geofence. Positive means the coordinate is outside of the geofence. If the coordinate is outside of the geofence, but more than the value of searchBuffer away from the closest geofence border, then the value is 999. Negative means the coordinate is inside of the geofence. If the coordinate is inside the polygon, but more than the value of searchBuffer away from the closest geofencing border,then the value is -999. A value of 999 means that there is great confidence the coordinate is well outside the geofence. A value of -999 means that there is great confidence the coordinate is well within the geofence. + Distance *float64 `json:"distance,omitempty"` + // GeometryID - The unique ID for the geofence geometry. + GeometryID *string `json:"geometryId,omitempty"` + // NearestLat - Latitude of the nearest point of the geometry. + NearestLat *float64 `json:"nearestLat,omitempty"` + // NearestLon - Longitude of the nearest point of the geometry. + NearestLon *float64 `json:"nearestLon,omitempty"` + // UdID - The unique id returned from user upload service when uploading a geofence. Will not be included in geofencing post API. + UdID *string `json:"udId,omitempty"` +} + +// MapsGeofenceResultEventData schema of the Data property of an EventGridEvent for a +// Microsoft.Maps.GeofenceResult event. +type MapsGeofenceResultEventData struct { + // ExpiredGeofenceGeometryID - Lists of the geometry ID of the geofence which is expired relative to the user time in the request. + ExpiredGeofenceGeometryID *[]string `json:"expiredGeofenceGeometryId,omitempty"` + // Geometries - Lists the fence geometries that either fully contain the coordinate position or have an overlap with the searchBuffer around the fence. + Geometries *[]MapsGeofenceGeometry `json:"geometries,omitempty"` + // InvalidPeriodGeofenceGeometryID - Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. + InvalidPeriodGeofenceGeometryID *[]string `json:"invalidPeriodGeofenceGeometryId,omitempty"` + // IsEventPublished - True if at least one event is published to the Azure Maps event subscriber, false if no event is published to the Azure Maps event subscriber. + IsEventPublished *bool `json:"isEventPublished,omitempty"` +} + // MediaJobCanceledEventData job canceled event data type MediaJobCanceledEventData struct { // Outputs - Gets the Job outputs. From f26394a7356891b04601ae0267541bc10724304c Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 11 Feb 2019 18:31:08 +0000 Subject: [PATCH 2/2] Generated from d9d758deedea5c67d4b7d065126b5a1061b17934 [Maps] Updated Event Grid publisher data schema --- services/eventgrid/2018-01-01/eventgrid/models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/eventgrid/2018-01-01/eventgrid/models.go b/services/eventgrid/2018-01-01/eventgrid/models.go index d14a84707de7..2d0a2ec5a5b4 100644 --- a/services/eventgrid/2018-01-01/eventgrid/models.go +++ b/services/eventgrid/2018-01-01/eventgrid/models.go @@ -1985,7 +1985,7 @@ type StorageBlobCreatedEventData struct { // ContentType - The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. ContentType *string `json:"contentType,omitempty"` // ContentLength - The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. - ContentLength *int32 `json:"contentLength,omitempty"` + ContentLength *int64 `json:"contentLength,omitempty"` // BlobType - The type of blob. BlobType *string `json:"blobType,omitempty"` // URL - The path to the blob.