Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3403 from kalyanaj/master
Browse files Browse the repository at this point in the history
Regenerated SDK to include new event types.
  • Loading branch information
RikkiGibson authored Aug 27, 2018
2 parents b457de5 + 913aa83 commit 37ad619
Show file tree
Hide file tree
Showing 17 changed files with 913 additions and 69 deletions.
6 changes: 3 additions & 3 deletions lib/services/eventgrid/lib/eventGridClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export default class EventGridClient extends AzureServiceClient {
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
constructor(credentials: ServiceClientCredentials, options?: AzureServiceClientOptions);
Expand Down
6 changes: 3 additions & 3 deletions lib/services/eventgrid/lib/eventGridClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ class EventGridClient extends ServiceClient {
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, options) {
if (credentials === null || credentials === undefined) {
Expand Down
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;
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;
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,11 @@ class DeviceLifeCycleEventProperties {
* @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} [hubName] Name of the IoT Hub where the device was
* created or deleted.
* @member {string} [opType] The event type specified for this operation by
* the IoT Hub.
* @member {string} [operationTimestamp] The ISO8601 timestamp of the
* operation.
* @member {object} [twin] Information about the device twin, which is the
* cloud represenation of application device metadata.
* cloud representation of application device metadata.
* @member {string} [twin.authenticationType] Authentication type used for
* this device: either SAS, SelfSigned, or CertificateAuthority.
* @member {number} [twin.cloudToDeviceMessageCount] Count of cloud to device
Expand Down Expand Up @@ -109,20 +105,6 @@ class DeviceLifeCycleEventProperties {
name: 'String'
}
},
opType: {
required: false,
serializedName: 'opType',
type: {
name: 'String'
}
},
operationTimestamp: {
required: false,
serializedName: 'operationTimestamp',
type: {
name: 'String'
}
},
twin: {
required: false,
serializedName: 'twin',
Expand Down
2 changes: 1 addition & 1 deletion lib/services/eventgrid/lib/models/deviceTwinInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const models = require('./index');

/**
* Information about the device twin, which is the cloud represenation of
* Information about the device twin, which is the cloud representation of
* application device metadata.
*
*/
Expand Down
Loading

0 comments on commit 37ad619

Please sign in to comment.