diff --git a/azure-eventgrid/azure/eventgrid/models/__init__.py b/azure-eventgrid/azure/eventgrid/models/__init__.py index 5358d5364cc6..e7b6c8f36065 100644 --- a/azure-eventgrid/azure/eventgrid/models/__init__.py +++ b/azure-eventgrid/azure/eventgrid/models/__init__.py @@ -79,6 +79,11 @@ from .media_live_event_incoming_data_chunk_dropped_event_data_py3 import MediaLiveEventIncomingDataChunkDroppedEventData from .media_live_event_ingest_heartbeat_event_data_py3 import MediaLiveEventIngestHeartbeatEventData from .media_live_event_track_discontinuity_detected_event_data_py3 import MediaLiveEventTrackDiscontinuityDetectedEventData + from .maps_geofence_entered_event_data_py3 import MapsGeofenceEnteredEventData + from .maps_geofence_exited_event_data_py3 import MapsGeofenceExitedEventData + from .maps_geofence_result_event_data_py3 import MapsGeofenceResultEventData + from .maps_geofence_geometry_py3 import MapsGeofenceGeometry + from .maps_geofence_event_properties_py3 import MapsGeofenceEventProperties except (SyntaxError, ImportError): from .storage_blob_created_event_data import StorageBlobCreatedEventData from .storage_blob_deleted_event_data import StorageBlobDeletedEventData @@ -149,6 +154,11 @@ from .media_live_event_incoming_data_chunk_dropped_event_data import MediaLiveEventIncomingDataChunkDroppedEventData from .media_live_event_ingest_heartbeat_event_data import MediaLiveEventIngestHeartbeatEventData from .media_live_event_track_discontinuity_detected_event_data import MediaLiveEventTrackDiscontinuityDetectedEventData + from .maps_geofence_entered_event_data import MapsGeofenceEnteredEventData + from .maps_geofence_exited_event_data import MapsGeofenceExitedEventData + from .maps_geofence_result_event_data import MapsGeofenceResultEventData + from .maps_geofence_geometry import MapsGeofenceGeometry + from .maps_geofence_event_properties import MapsGeofenceEventProperties from .event_grid_client_enums import ( MediaJobState, MediaJobErrorCode, @@ -226,6 +236,11 @@ 'MediaLiveEventIncomingDataChunkDroppedEventData', 'MediaLiveEventIngestHeartbeatEventData', 'MediaLiveEventTrackDiscontinuityDetectedEventData', + 'MapsGeofenceEnteredEventData', + 'MapsGeofenceExitedEventData', + 'MapsGeofenceResultEventData', + 'MapsGeofenceGeometry', + 'MapsGeofenceEventProperties', 'MediaJobState', 'MediaJobErrorCode', 'MediaJobErrorCategory', diff --git a/azure-eventgrid/azure/eventgrid/models/maps_geofence_entered_event_data.py b/azure-eventgrid/azure/eventgrid/models/maps_geofence_entered_event_data.py new file mode 100644 index 000000000000..ad261166eab6 --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/maps_geofence_entered_event_data.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .maps_geofence_event_properties import MapsGeofenceEventProperties + + +class MapsGeofenceEnteredEventData(MapsGeofenceEventProperties): + """Schema of the Data property of an EventGridEvent for a + Microsoft.Maps.GeofenceEntered event. + + :param expired_geofence_geometry_id: Lists of the geometry ID of the + geofence which is expired relative to the user time in the request. + :type expired_geofence_geometry_id: list[str] + :param geometries: Lists the fence geometries that either fully contain + the coordinate position or have an overlap with the searchBuffer around + the fence. + :type geometries: list[~azure.eventgrid.models.MapsGeofenceGeometry] + :param invalid_period_geofence_geometry_id: Lists of the geometry ID of + the geofence which is in invalid period relative to the user time in the + request. + :type invalid_period_geofence_geometry_id: list[str] + :param is_event_published: 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. + :type is_event_published: bool + """ + + _attribute_map = { + 'expired_geofence_geometry_id': {'key': 'expiredGeofenceGeometryId', 'type': '[str]'}, + 'geometries': {'key': 'geometries', 'type': '[MapsGeofenceGeometry]'}, + 'invalid_period_geofence_geometry_id': {'key': 'invalidPeriodGeofenceGeometryId', 'type': '[str]'}, + 'is_event_published': {'key': 'isEventPublished', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(MapsGeofenceEnteredEventData, self).__init__(**kwargs) diff --git a/azure-eventgrid/azure/eventgrid/models/maps_geofence_entered_event_data_py3.py b/azure-eventgrid/azure/eventgrid/models/maps_geofence_entered_event_data_py3.py new file mode 100644 index 000000000000..4a49e99df5ab --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/maps_geofence_entered_event_data_py3.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .maps_geofence_event_properties_py3 import MapsGeofenceEventProperties + + +class MapsGeofenceEnteredEventData(MapsGeofenceEventProperties): + """Schema of the Data property of an EventGridEvent for a + Microsoft.Maps.GeofenceEntered event. + + :param expired_geofence_geometry_id: Lists of the geometry ID of the + geofence which is expired relative to the user time in the request. + :type expired_geofence_geometry_id: list[str] + :param geometries: Lists the fence geometries that either fully contain + the coordinate position or have an overlap with the searchBuffer around + the fence. + :type geometries: list[~azure.eventgrid.models.MapsGeofenceGeometry] + :param invalid_period_geofence_geometry_id: Lists of the geometry ID of + the geofence which is in invalid period relative to the user time in the + request. + :type invalid_period_geofence_geometry_id: list[str] + :param is_event_published: 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. + :type is_event_published: bool + """ + + _attribute_map = { + 'expired_geofence_geometry_id': {'key': 'expiredGeofenceGeometryId', 'type': '[str]'}, + 'geometries': {'key': 'geometries', 'type': '[MapsGeofenceGeometry]'}, + 'invalid_period_geofence_geometry_id': {'key': 'invalidPeriodGeofenceGeometryId', 'type': '[str]'}, + 'is_event_published': {'key': 'isEventPublished', 'type': 'bool'}, + } + + def __init__(self, *, expired_geofence_geometry_id=None, geometries=None, invalid_period_geofence_geometry_id=None, is_event_published: bool=None, **kwargs) -> None: + super(MapsGeofenceEnteredEventData, self).__init__(expired_geofence_geometry_id=expired_geofence_geometry_id, geometries=geometries, invalid_period_geofence_geometry_id=invalid_period_geofence_geometry_id, is_event_published=is_event_published, **kwargs) diff --git a/azure-eventgrid/azure/eventgrid/models/maps_geofence_event_properties.py b/azure-eventgrid/azure/eventgrid/models/maps_geofence_event_properties.py new file mode 100644 index 000000000000..a09219f411ca --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/maps_geofence_event_properties.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MapsGeofenceEventProperties(Model): + """Schema of the Data property of an EventGridEvent for a Geofence event + (GeofenceEntered, GeofenceExited, GeofenceResult). + + :param expired_geofence_geometry_id: Lists of the geometry ID of the + geofence which is expired relative to the user time in the request. + :type expired_geofence_geometry_id: list[str] + :param geometries: Lists the fence geometries that either fully contain + the coordinate position or have an overlap with the searchBuffer around + the fence. + :type geometries: list[~azure.eventgrid.models.MapsGeofenceGeometry] + :param invalid_period_geofence_geometry_id: Lists of the geometry ID of + the geofence which is in invalid period relative to the user time in the + request. + :type invalid_period_geofence_geometry_id: list[str] + :param is_event_published: 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. + :type is_event_published: bool + """ + + _attribute_map = { + 'expired_geofence_geometry_id': {'key': 'expiredGeofenceGeometryId', 'type': '[str]'}, + 'geometries': {'key': 'geometries', 'type': '[MapsGeofenceGeometry]'}, + 'invalid_period_geofence_geometry_id': {'key': 'invalidPeriodGeofenceGeometryId', 'type': '[str]'}, + 'is_event_published': {'key': 'isEventPublished', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(MapsGeofenceEventProperties, self).__init__(**kwargs) + self.expired_geofence_geometry_id = kwargs.get('expired_geofence_geometry_id', None) + self.geometries = kwargs.get('geometries', None) + self.invalid_period_geofence_geometry_id = kwargs.get('invalid_period_geofence_geometry_id', None) + self.is_event_published = kwargs.get('is_event_published', None) diff --git a/azure-eventgrid/azure/eventgrid/models/maps_geofence_event_properties_py3.py b/azure-eventgrid/azure/eventgrid/models/maps_geofence_event_properties_py3.py new file mode 100644 index 000000000000..aaf8b3a60c08 --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/maps_geofence_event_properties_py3.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MapsGeofenceEventProperties(Model): + """Schema of the Data property of an EventGridEvent for a Geofence event + (GeofenceEntered, GeofenceExited, GeofenceResult). + + :param expired_geofence_geometry_id: Lists of the geometry ID of the + geofence which is expired relative to the user time in the request. + :type expired_geofence_geometry_id: list[str] + :param geometries: Lists the fence geometries that either fully contain + the coordinate position or have an overlap with the searchBuffer around + the fence. + :type geometries: list[~azure.eventgrid.models.MapsGeofenceGeometry] + :param invalid_period_geofence_geometry_id: Lists of the geometry ID of + the geofence which is in invalid period relative to the user time in the + request. + :type invalid_period_geofence_geometry_id: list[str] + :param is_event_published: 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. + :type is_event_published: bool + """ + + _attribute_map = { + 'expired_geofence_geometry_id': {'key': 'expiredGeofenceGeometryId', 'type': '[str]'}, + 'geometries': {'key': 'geometries', 'type': '[MapsGeofenceGeometry]'}, + 'invalid_period_geofence_geometry_id': {'key': 'invalidPeriodGeofenceGeometryId', 'type': '[str]'}, + 'is_event_published': {'key': 'isEventPublished', 'type': 'bool'}, + } + + def __init__(self, *, expired_geofence_geometry_id=None, geometries=None, invalid_period_geofence_geometry_id=None, is_event_published: bool=None, **kwargs) -> None: + super(MapsGeofenceEventProperties, self).__init__(**kwargs) + self.expired_geofence_geometry_id = expired_geofence_geometry_id + self.geometries = geometries + self.invalid_period_geofence_geometry_id = invalid_period_geofence_geometry_id + self.is_event_published = is_event_published diff --git a/azure-eventgrid/azure/eventgrid/models/maps_geofence_exited_event_data.py b/azure-eventgrid/azure/eventgrid/models/maps_geofence_exited_event_data.py new file mode 100644 index 000000000000..f7c5aa0fc15a --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/maps_geofence_exited_event_data.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .maps_geofence_event_properties import MapsGeofenceEventProperties + + +class MapsGeofenceExitedEventData(MapsGeofenceEventProperties): + """Schema of the Data property of an EventGridEvent for a + Microsoft.Maps.GeofenceExited event. + + :param expired_geofence_geometry_id: Lists of the geometry ID of the + geofence which is expired relative to the user time in the request. + :type expired_geofence_geometry_id: list[str] + :param geometries: Lists the fence geometries that either fully contain + the coordinate position or have an overlap with the searchBuffer around + the fence. + :type geometries: list[~azure.eventgrid.models.MapsGeofenceGeometry] + :param invalid_period_geofence_geometry_id: Lists of the geometry ID of + the geofence which is in invalid period relative to the user time in the + request. + :type invalid_period_geofence_geometry_id: list[str] + :param is_event_published: 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. + :type is_event_published: bool + """ + + _attribute_map = { + 'expired_geofence_geometry_id': {'key': 'expiredGeofenceGeometryId', 'type': '[str]'}, + 'geometries': {'key': 'geometries', 'type': '[MapsGeofenceGeometry]'}, + 'invalid_period_geofence_geometry_id': {'key': 'invalidPeriodGeofenceGeometryId', 'type': '[str]'}, + 'is_event_published': {'key': 'isEventPublished', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(MapsGeofenceExitedEventData, self).__init__(**kwargs) diff --git a/azure-eventgrid/azure/eventgrid/models/maps_geofence_exited_event_data_py3.py b/azure-eventgrid/azure/eventgrid/models/maps_geofence_exited_event_data_py3.py new file mode 100644 index 000000000000..6bec05c2212f --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/maps_geofence_exited_event_data_py3.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .maps_geofence_event_properties_py3 import MapsGeofenceEventProperties + + +class MapsGeofenceExitedEventData(MapsGeofenceEventProperties): + """Schema of the Data property of an EventGridEvent for a + Microsoft.Maps.GeofenceExited event. + + :param expired_geofence_geometry_id: Lists of the geometry ID of the + geofence which is expired relative to the user time in the request. + :type expired_geofence_geometry_id: list[str] + :param geometries: Lists the fence geometries that either fully contain + the coordinate position or have an overlap with the searchBuffer around + the fence. + :type geometries: list[~azure.eventgrid.models.MapsGeofenceGeometry] + :param invalid_period_geofence_geometry_id: Lists of the geometry ID of + the geofence which is in invalid period relative to the user time in the + request. + :type invalid_period_geofence_geometry_id: list[str] + :param is_event_published: 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. + :type is_event_published: bool + """ + + _attribute_map = { + 'expired_geofence_geometry_id': {'key': 'expiredGeofenceGeometryId', 'type': '[str]'}, + 'geometries': {'key': 'geometries', 'type': '[MapsGeofenceGeometry]'}, + 'invalid_period_geofence_geometry_id': {'key': 'invalidPeriodGeofenceGeometryId', 'type': '[str]'}, + 'is_event_published': {'key': 'isEventPublished', 'type': 'bool'}, + } + + def __init__(self, *, expired_geofence_geometry_id=None, geometries=None, invalid_period_geofence_geometry_id=None, is_event_published: bool=None, **kwargs) -> None: + super(MapsGeofenceExitedEventData, self).__init__(expired_geofence_geometry_id=expired_geofence_geometry_id, geometries=geometries, invalid_period_geofence_geometry_id=invalid_period_geofence_geometry_id, is_event_published=is_event_published, **kwargs) diff --git a/azure-eventgrid/azure/eventgrid/models/maps_geofence_geometry.py b/azure-eventgrid/azure/eventgrid/models/maps_geofence_geometry.py new file mode 100644 index 000000000000..b7cff8da378a --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/maps_geofence_geometry.py @@ -0,0 +1,58 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MapsGeofenceGeometry(Model): + """The geofence geometry. + + :param device_id: ID of the device. + :type device_id: str + :param 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. + :type distance: float + :param geometry_id: The unique ID for the geofence geometry. + :type geometry_id: str + :param nearest_lat: Latitude of the nearest point of the geometry. + :type nearest_lat: float + :param nearest_lon: Longitude of the nearest point of the geometry. + :type nearest_lon: float + :param ud_id: The unique id returned from user upload service when + uploading a geofence. Will not be included in geofencing post API. + :type ud_id: str + """ + + _attribute_map = { + 'device_id': {'key': 'deviceId', 'type': 'str'}, + 'distance': {'key': 'distance', 'type': 'float'}, + 'geometry_id': {'key': 'geometryId', 'type': 'str'}, + 'nearest_lat': {'key': 'nearestLat', 'type': 'float'}, + 'nearest_lon': {'key': 'nearestLon', 'type': 'float'}, + 'ud_id': {'key': 'udId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MapsGeofenceGeometry, self).__init__(**kwargs) + self.device_id = kwargs.get('device_id', None) + self.distance = kwargs.get('distance', None) + self.geometry_id = kwargs.get('geometry_id', None) + self.nearest_lat = kwargs.get('nearest_lat', None) + self.nearest_lon = kwargs.get('nearest_lon', None) + self.ud_id = kwargs.get('ud_id', None) diff --git a/azure-eventgrid/azure/eventgrid/models/maps_geofence_geometry_py3.py b/azure-eventgrid/azure/eventgrid/models/maps_geofence_geometry_py3.py new file mode 100644 index 000000000000..bd6690005053 --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/maps_geofence_geometry_py3.py @@ -0,0 +1,58 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MapsGeofenceGeometry(Model): + """The geofence geometry. + + :param device_id: ID of the device. + :type device_id: str + :param 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. + :type distance: float + :param geometry_id: The unique ID for the geofence geometry. + :type geometry_id: str + :param nearest_lat: Latitude of the nearest point of the geometry. + :type nearest_lat: float + :param nearest_lon: Longitude of the nearest point of the geometry. + :type nearest_lon: float + :param ud_id: The unique id returned from user upload service when + uploading a geofence. Will not be included in geofencing post API. + :type ud_id: str + """ + + _attribute_map = { + 'device_id': {'key': 'deviceId', 'type': 'str'}, + 'distance': {'key': 'distance', 'type': 'float'}, + 'geometry_id': {'key': 'geometryId', 'type': 'str'}, + 'nearest_lat': {'key': 'nearestLat', 'type': 'float'}, + 'nearest_lon': {'key': 'nearestLon', 'type': 'float'}, + 'ud_id': {'key': 'udId', 'type': 'str'}, + } + + def __init__(self, *, device_id: str=None, distance: float=None, geometry_id: str=None, nearest_lat: float=None, nearest_lon: float=None, ud_id: str=None, **kwargs) -> None: + super(MapsGeofenceGeometry, self).__init__(**kwargs) + self.device_id = device_id + self.distance = distance + self.geometry_id = geometry_id + self.nearest_lat = nearest_lat + self.nearest_lon = nearest_lon + self.ud_id = ud_id diff --git a/azure-eventgrid/azure/eventgrid/models/maps_geofence_result_event_data.py b/azure-eventgrid/azure/eventgrid/models/maps_geofence_result_event_data.py new file mode 100644 index 000000000000..a609225c822e --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/maps_geofence_result_event_data.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .maps_geofence_event_properties import MapsGeofenceEventProperties + + +class MapsGeofenceResultEventData(MapsGeofenceEventProperties): + """Schema of the Data property of an EventGridEvent for a + Microsoft.Maps.GeofenceResult event. + + :param expired_geofence_geometry_id: Lists of the geometry ID of the + geofence which is expired relative to the user time in the request. + :type expired_geofence_geometry_id: list[str] + :param geometries: Lists the fence geometries that either fully contain + the coordinate position or have an overlap with the searchBuffer around + the fence. + :type geometries: list[~azure.eventgrid.models.MapsGeofenceGeometry] + :param invalid_period_geofence_geometry_id: Lists of the geometry ID of + the geofence which is in invalid period relative to the user time in the + request. + :type invalid_period_geofence_geometry_id: list[str] + :param is_event_published: 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. + :type is_event_published: bool + """ + + _attribute_map = { + 'expired_geofence_geometry_id': {'key': 'expiredGeofenceGeometryId', 'type': '[str]'}, + 'geometries': {'key': 'geometries', 'type': '[MapsGeofenceGeometry]'}, + 'invalid_period_geofence_geometry_id': {'key': 'invalidPeriodGeofenceGeometryId', 'type': '[str]'}, + 'is_event_published': {'key': 'isEventPublished', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(MapsGeofenceResultEventData, self).__init__(**kwargs) diff --git a/azure-eventgrid/azure/eventgrid/models/maps_geofence_result_event_data_py3.py b/azure-eventgrid/azure/eventgrid/models/maps_geofence_result_event_data_py3.py new file mode 100644 index 000000000000..24a1bebf7180 --- /dev/null +++ b/azure-eventgrid/azure/eventgrid/models/maps_geofence_result_event_data_py3.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .maps_geofence_event_properties_py3 import MapsGeofenceEventProperties + + +class MapsGeofenceResultEventData(MapsGeofenceEventProperties): + """Schema of the Data property of an EventGridEvent for a + Microsoft.Maps.GeofenceResult event. + + :param expired_geofence_geometry_id: Lists of the geometry ID of the + geofence which is expired relative to the user time in the request. + :type expired_geofence_geometry_id: list[str] + :param geometries: Lists the fence geometries that either fully contain + the coordinate position or have an overlap with the searchBuffer around + the fence. + :type geometries: list[~azure.eventgrid.models.MapsGeofenceGeometry] + :param invalid_period_geofence_geometry_id: Lists of the geometry ID of + the geofence which is in invalid period relative to the user time in the + request. + :type invalid_period_geofence_geometry_id: list[str] + :param is_event_published: 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. + :type is_event_published: bool + """ + + _attribute_map = { + 'expired_geofence_geometry_id': {'key': 'expiredGeofenceGeometryId', 'type': '[str]'}, + 'geometries': {'key': 'geometries', 'type': '[MapsGeofenceGeometry]'}, + 'invalid_period_geofence_geometry_id': {'key': 'invalidPeriodGeofenceGeometryId', 'type': '[str]'}, + 'is_event_published': {'key': 'isEventPublished', 'type': 'bool'}, + } + + def __init__(self, *, expired_geofence_geometry_id=None, geometries=None, invalid_period_geofence_geometry_id=None, is_event_published: bool=None, **kwargs) -> None: + super(MapsGeofenceResultEventData, self).__init__(expired_geofence_geometry_id=expired_geofence_geometry_id, geometries=geometries, invalid_period_geofence_geometry_id=invalid_period_geofence_geometry_id, is_event_published=is_event_published, **kwargs)