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 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3403 from kalyanaj/master
Regenerated SDK to include new event types.
- Loading branch information
Showing
17 changed files
with
913 additions
and
69 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
55 changes: 55 additions & 0 deletions
55
lib/services/eventgrid/lib/models/deviceConnectionStateEventInfo.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,55 @@ | ||
/* | ||
* 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'; | ||
|
||
/** | ||
* Information about the device connection state event. | ||
* | ||
*/ | ||
class DeviceConnectionStateEventInfo { | ||
/** | ||
* Create a DeviceConnectionStateEventInfo. | ||
* @member {string} [sequenceNumber] Sequence number is string representation | ||
* of a hexadecimal number. string compare can be used to identify the larger | ||
* number because both in ASCII and HEX numbers come after alphabets. If you | ||
* are converting the string to hex, then the number is a 256 bit number. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of DeviceConnectionStateEventInfo | ||
* | ||
* @returns {object} metadata of DeviceConnectionStateEventInfo | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'DeviceConnectionStateEventInfo', | ||
type: { | ||
name: 'Composite', | ||
className: 'DeviceConnectionStateEventInfo', | ||
modelProperties: { | ||
sequenceNumber: { | ||
required: false, | ||
serializedName: 'sequenceNumber', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = DeviceConnectionStateEventInfo; |
93 changes: 93 additions & 0 deletions
93
lib/services/eventgrid/lib/models/deviceConnectionStateEventProperties.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,93 @@ | ||
/* | ||
* 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 device connection | ||
* state event (DeviceConnected, DeviceDisconnected). | ||
* | ||
*/ | ||
class DeviceConnectionStateEventProperties { | ||
/** | ||
* Create a DeviceConnectionStateEventProperties. | ||
* @member {string} [deviceId] The unique identifier of the device. This | ||
* case-sensitive string can be up to 128 characters long, and supports ASCII | ||
* 7-bit alphanumeric characters plus the following special characters: - : . | ||
* + % _ # * ? ! ( ) , = @ ; $ '. | ||
* @member {string} [moduleId] The unique identifier of the module. This | ||
* case-sensitive string can be up to 128 characters long, and supports ASCII | ||
* 7-bit alphanumeric characters plus the following special characters: - : . | ||
* + % _ # * ? ! ( ) , = @ ; $ '. | ||
* @member {string} [hubName] Name of the IoT Hub where the device was | ||
* created or deleted. | ||
* @member {object} [deviceConnectionStateEventInfo] Information about the | ||
* device connection state event. | ||
* @member {string} [deviceConnectionStateEventInfo.sequenceNumber] Sequence | ||
* number is string representation of a hexadecimal number. string compare | ||
* can be used to identify the larger number because both in ASCII and HEX | ||
* numbers come after alphabets. If you are converting the string to hex, | ||
* then the number is a 256 bit number. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of DeviceConnectionStateEventProperties | ||
* | ||
* @returns {object} metadata of DeviceConnectionStateEventProperties | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'DeviceConnectionStateEventProperties', | ||
type: { | ||
name: 'Composite', | ||
className: 'DeviceConnectionStateEventProperties', | ||
modelProperties: { | ||
deviceId: { | ||
required: false, | ||
serializedName: 'deviceId', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
moduleId: { | ||
required: false, | ||
serializedName: 'moduleId', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
hubName: { | ||
required: false, | ||
serializedName: 'hubName', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
deviceConnectionStateEventInfo: { | ||
required: false, | ||
serializedName: 'deviceConnectionStateEventInfo', | ||
type: { | ||
name: 'Composite', | ||
className: 'DeviceConnectionStateEventInfo' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = DeviceConnectionStateEventProperties; |
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
Oops, something went wrong.