This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from d9d758deedea5c67d4b7d065126b5a1061b17934 (#4629)
[Maps] Updated Event Grid publisher data schema
- Loading branch information
1 parent
4c4cc9a
commit a195901
Showing
7 changed files
with
604 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
lib/services/eventgrid/lib/models/mapsGeofenceEnteredEventData.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const models = require('./index'); | ||
|
||
/** | ||
* Schema of the Data property of an EventGridEvent for a | ||
* Microsoft.Maps.GeofenceEntered event. | ||
* | ||
* @extends models['MapsGeofenceEventProperties'] | ||
*/ | ||
class MapsGeofenceEnteredEventData extends models['MapsGeofenceEventProperties'] { | ||
/** | ||
* Create a MapsGeofenceEnteredEventData. | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of MapsGeofenceEnteredEventData | ||
* | ||
* @returns {object} metadata of MapsGeofenceEnteredEventData | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'MapsGeofenceEnteredEventData', | ||
type: { | ||
name: 'Composite', | ||
className: 'MapsGeofenceEnteredEventData', | ||
modelProperties: { | ||
expiredGeofenceGeometryId: { | ||
required: false, | ||
serializedName: 'expiredGeofenceGeometryId', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
}, | ||
geometries: { | ||
required: false, | ||
serializedName: 'geometries', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'MapsGeofenceGeometryElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'MapsGeofenceGeometry' | ||
} | ||
} | ||
} | ||
}, | ||
invalidPeriodGeofenceGeometryId: { | ||
required: false, | ||
serializedName: 'invalidPeriodGeofenceGeometryId', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
}, | ||
isEventPublished: { | ||
required: false, | ||
serializedName: 'isEventPublished', | ||
type: { | ||
name: 'Boolean' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = MapsGeofenceEnteredEventData; |
106 changes: 106 additions & 0 deletions
106
lib/services/eventgrid/lib/models/mapsGeofenceEventProperties.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
/** | ||
* Schema of the Data property of an EventGridEvent for a Geofence event | ||
* (GeofenceEntered, GeofenceExited, GeofenceResult). | ||
* | ||
*/ | ||
class MapsGeofenceEventProperties { | ||
/** | ||
* Create a MapsGeofenceEventProperties. | ||
* @member {array} [expiredGeofenceGeometryId] Lists of the geometry ID of | ||
* the geofence which is expired relative to the user time in the request. | ||
* @member {array} [geometries] Lists the fence geometries that either fully | ||
* contain the coordinate position or have an overlap with the searchBuffer | ||
* around the fence. | ||
* @member {array} [invalidPeriodGeofenceGeometryId] Lists of the geometry ID | ||
* of the geofence which is in invalid period relative to the user time in | ||
* the request. | ||
* @member {boolean} [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. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of MapsGeofenceEventProperties | ||
* | ||
* @returns {object} metadata of MapsGeofenceEventProperties | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'MapsGeofenceEventProperties', | ||
type: { | ||
name: 'Composite', | ||
className: 'MapsGeofenceEventProperties', | ||
modelProperties: { | ||
expiredGeofenceGeometryId: { | ||
required: false, | ||
serializedName: 'expiredGeofenceGeometryId', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
}, | ||
geometries: { | ||
required: false, | ||
serializedName: 'geometries', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'MapsGeofenceGeometryElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'MapsGeofenceGeometry' | ||
} | ||
} | ||
} | ||
}, | ||
invalidPeriodGeofenceGeometryId: { | ||
required: false, | ||
serializedName: 'invalidPeriodGeofenceGeometryId', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
}, | ||
isEventPublished: { | ||
required: false, | ||
serializedName: 'isEventPublished', | ||
type: { | ||
name: 'Boolean' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = MapsGeofenceEventProperties; |
Oops, something went wrong.