Socket
Socket
Sign inDemoInstall

azure-arm-iothub

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-arm-iothub - npm Package Compare versions

Comparing version 1.0.0-preview to 1.0.1-preview

lib/models/fallbackRouteProperties.js

0

lib/iotHubClient.d.ts

@@ -0,0 +0,0 @@ /*

2

lib/iotHubClient.js

@@ -67,3 +67,3 @@ /*

this.apiVersion = '2016-02-03';
this.apiVersion = '2017-01-19';
this.acceptLanguage = 'en-US';

@@ -70,0 +70,0 @@ this.longRunningOperationRetryTimeout = 30;

@@ -0,0 +0,0 @@ /*

@@ -103,2 +103,227 @@ /*

* @class
* Initializes a new instance of the RoutingServiceBusQueueEndpointProperties class.
* @constructor
* The properties related to service bus queue endpoint types.
*
* @member {string} connectionString The connection string of the service bus
* queue endpoint.
*
* @member {string} name The name of the service bus queue endpoint. The name
* can only include alphanumeric characters, periods, underscores, hyphens and
* has a maximum length of 64 characters. The following names are reserved;
* events, operationsMonitoringEvents, fileNotifications, $default. Endpoint
* names must be unique across endpoint types. The name need not be the same as
* the actual queue name.
*
* @member {string} [subscriptionId] The subscription identifier of the service
* bus queue endpoint.
*
* @member {string} [resourceGroup] The name of the resource group of the
* service bus queue endpoint.
*
*/
export interface RoutingServiceBusQueueEndpointProperties {
connectionString: string;
name: string;
subscriptionId?: string;
resourceGroup?: string;
}
/**
* @class
* Initializes a new instance of the RoutingServiceBusTopicEndpointProperties class.
* @constructor
* The properties related to service bus topic endpoint types.
*
* @member {string} connectionString The connection string of the service bus
* topic endpoint.
*
* @member {string} name The name of the service bus topic endpoint. The name
* can only include alphanumeric characters, periods, underscores, hyphens and
* has a maximum length of 64 characters. The following names are reserved;
* events, operationsMonitoringEvents, fileNotifications, $default. Endpoint
* names must be unique across endpoint types. The name need not be the same
* as the actual topic name.
*
* @member {string} [subscriptionId] The subscription identifier of the service
* bus topic endpoint.
*
* @member {string} [resourceGroup] The name of the resource group of the
* service bus topic endpoint.
*
*/
export interface RoutingServiceBusTopicEndpointProperties {
connectionString: string;
name: string;
subscriptionId?: string;
resourceGroup?: string;
}
/**
* @class
* Initializes a new instance of the RoutingEventHubProperties class.
* @constructor
* The properties related to an event hub endpoint.
*
* @member {string} connectionString The connection string of the event hub
* endpoint.
*
* @member {string} name The name of the event hub endpoint. The name can only
* include alphanumeric characters, periods, underscores, hyphens and has a
* maximum length of 64 characters. The following names are reserved; events,
* operationsMonitoringEvents, fileNotifications, $default. Endpoint names must
* be unique across endpoint types.
*
* @member {string} [subscriptionId] The subscription identifier of the event
* hub endpoint.
*
* @member {string} [resourceGroup] The name of the resource group of the event
* hub endpoint.
*
*/
export interface RoutingEventHubProperties {
connectionString: string;
name: string;
subscriptionId?: string;
resourceGroup?: string;
}
/**
* @class
* Initializes a new instance of the RoutingEndpoints class.
* @constructor
* The properties related to the custom endpoints to which your IoT hub routes
* messages based on the routing rules. A maximum of 10 custom endpoints are
* allowed across all endpoint types for paid hubs and only 1 custom endpoint
* is allowed across all endpoint types for free hubs.
*
* @member {array} [serviceBusQueues] The list of Service Bus queue endpoints
* that IoT hub routes the messages to, based on the routing rules.
*
* @member {array} [serviceBusTopics] The list of Service Bus topic endpoints
* that the IoT hub routes the messages to, based on the routing rules.
*
* @member {array} [eventHubs] The list of Event Hubs endpoints that IoT hub
* routes messages to, based on the routing rules. This list does not include
* the built-in Event Hubs endpoint.
*
*/
export interface RoutingEndpoints {
serviceBusQueues?: RoutingServiceBusQueueEndpointProperties[];
serviceBusTopics?: RoutingServiceBusTopicEndpointProperties[];
eventHubs?: RoutingEventHubProperties[];
}
/**
* @class
* Initializes a new instance of the RouteProperties class.
* @constructor
* The properties of a routing rule that your IoT hub uses to route messages to
* endpoints.
*
* @member {string} name The name of the route. The name can only include
* alphanumeric characters, periods, underscores, hyphens, has a maximum length
* of 64 characters, and must be unique.
*
* @member {string} source The source that the routing rule is to be applied
* to, such as DeviceMessages. Possible values include: 'DeviceMessages',
* 'TwinChangeEvents', 'DeviceLifecycleEvents', 'DeviceJobLifecycleEvents'
*
* @member {string} [condition] The condition that is evaluated to apply the
* routing rule. If no condition is provided, it evaluates to true by default.
* For grammar, See:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language
*
* @member {array} endpointNames The list of endpoints to which messages that
* satisfy the condition are routed. Currently only one endpoint is allowed.
*
* @member {boolean} isEnabled Used to specify whether a route is enabled.
*
*/
export interface RouteProperties {
name: string;
source: string;
condition?: string;
endpointNames: string[];
isEnabled: boolean;
}
/**
* @class
* Initializes a new instance of the FallbackRouteProperties class.
* @constructor
* The properties related to the fallback route based on which the IoT hub
* routes messages to the fallback endpoint.
*
* @member {string} [condition] The condition which is evaluated in order to
* apply the fallback route. If the condition is not provided it will evaluate
* to true by default. For grammar, See:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language
*
* @member {array} endpointNames The list of endpoints to which the messages
* that satisfy the condition are routed to. Currently only 1 endpoint is
* allowed.
*
* @member {boolean} isEnabled Used to specify whether the fallback route is
* enabled or not.
*
*/
export interface FallbackRouteProperties {
condition?: string;
endpointNames: string[];
isEnabled: boolean;
}
/**
* @class
* Initializes a new instance of the RoutingProperties class.
* @constructor
* The routing related properties of the IoT hub. See:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging
*
* @member {object} [endpoints]
*
* @member {array} [endpoints.serviceBusQueues] The list of Service Bus queue
* endpoints that IoT hub routes the messages to, based on the routing rules.
*
* @member {array} [endpoints.serviceBusTopics] The list of Service Bus topic
* endpoints that the IoT hub routes the messages to, based on the routing
* rules.
*
* @member {array} [endpoints.eventHubs] The list of Event Hubs endpoints that
* IoT hub routes messages to, based on the routing rules. This list does not
* include the built-in Event Hubs endpoint.
*
* @member {array} [routes] The list of user-provided routing rules that the
* IoT hub uses to route messages to built-in and custom endpoints. A maximum
* of 100 routing rules are allowed for paid hubs and a maximum of 5 routing
* rules are allowed for free hubs.
*
* @member {object} [fallbackRoute] The properties of the route that is used as
* a fall-back route when none of the conditions specified in the 'routes'
* section are met. This is an optional parameter. When this property is not
* set, the messages which do not meet any of the conditions specified in the
* 'routes' section get routed to the built-in eventhub endpoint.
*
* @member {string} [fallbackRoute.condition] The condition which is evaluated
* in order to apply the fallback route. If the condition is not provided it
* will evaluate to true by default. For grammar, See:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language
*
* @member {array} [fallbackRoute.endpointNames] The list of endpoints to which
* the messages that satisfy the condition are routed to. Currently only 1
* endpoint is allowed.
*
* @member {boolean} [fallbackRoute.isEnabled] Used to specify whether the
* fallback route is enabled or not.
*
*/
export interface RoutingProperties {
endpoints?: RoutingEndpoints;
routes?: RouteProperties[];
fallbackRoute?: FallbackRouteProperties;
}
/**
* @class
* Initializes a new instance of the StorageEndpointProperties class.

@@ -133,11 +358,11 @@ * @constructor

* @member {moment.duration} [lockDurationAsIso8601] The lock duration. See:
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
*
* @member {moment.duration} [ttlAsIso8601] The period of time for which a
* message is available to consume before it is expired by the IoT hub. See:
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
*
* @member {number} [maxDeliveryCount] The number of times the IoT hub attempts
* to deliver a message. See:
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
*

@@ -218,3 +443,4 @@ */

* the dictionary are Connections, DeviceTelemetry, C2DCommands,
* DeviceIdentityOperations, FileUploadOperations.
* DeviceIdentityOperations, FileUploadOperations, Routes, D2CTwinOperations,
* C2DTwinOperations, TwinQueries, JobsOperations, DirectMethods.
*

@@ -248,2 +474,41 @@ * @member {object} [events]

*
* @member {object} [routing]
*
* @member {object} [routing.endpoints]
*
* @member {array} [routing.endpoints.serviceBusQueues] The list of Service Bus
* queue endpoints that IoT hub routes the messages to, based on the routing
* rules.
*
* @member {array} [routing.endpoints.serviceBusTopics] The list of Service Bus
* topic endpoints that the IoT hub routes the messages to, based on the
* routing rules.
*
* @member {array} [routing.endpoints.eventHubs] The list of Event Hubs
* endpoints that IoT hub routes messages to, based on the routing rules. This
* list does not include the built-in Event Hubs endpoint.
*
* @member {array} [routing.routes] The list of user-provided routing rules
* that the IoT hub uses to route messages to built-in and custom endpoints. A
* maximum of 100 routing rules are allowed for paid hubs and a maximum of 5
* routing rules are allowed for free hubs.
*
* @member {object} [routing.fallbackRoute] The properties of the route that is
* used as a fall-back route when none of the conditions specified in the
* 'routes' section are met. This is an optional parameter. When this property
* is not set, the messages which do not meet any of the conditions specified
* in the 'routes' section get routed to the built-in eventhub endpoint.
*
* @member {string} [routing.fallbackRoute.condition] The condition which is
* evaluated in order to apply the fallback route. If the condition is not
* provided it will evaluate to true by default. For grammar, See:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language
*
* @member {array} [routing.fallbackRoute.endpointNames] The list of endpoints
* to which the messages that satisfy the condition are routed to. Currently
* only 1 endpoint is allowed.
*
* @member {boolean} [routing.fallbackRoute.isEnabled] Used to specify whether
* the fallback route is enabled or not.
*
* @member {object} [storageEndpoints] The list of Azure Storage endpoints

@@ -303,2 +568,3 @@ * where you can upload files. Currently you can configure only one Azure

eventHubEndpoints?: { [propertyName: string]: EventHubProperties };
routing?: RoutingProperties;
storageEndpoints?: { [propertyName: string]: StorageEndpointProperties };

@@ -339,2 +605,4 @@ messagingEndpoints?: { [propertyName: string]: MessagingEndpointProperties };

* @constructor
* The common properties of an Azure resource.
*
* @member {string} [id] The resource identifier.

@@ -391,2 +659,42 @@ *

*
* @member {object} [properties.routing]
*
* @member {object} [properties.routing.endpoints]
*
* @member {array} [properties.routing.endpoints.serviceBusQueues] The list of
* Service Bus queue endpoints that IoT hub routes the messages to, based on
* the routing rules.
*
* @member {array} [properties.routing.endpoints.serviceBusTopics] The list of
* Service Bus topic endpoints that the IoT hub routes the messages to, based
* on the routing rules.
*
* @member {array} [properties.routing.endpoints.eventHubs] The list of Event
* Hubs endpoints that IoT hub routes messages to, based on the routing rules.
* This list does not include the built-in Event Hubs endpoint.
*
* @member {array} [properties.routing.routes] The list of user-provided
* routing rules that the IoT hub uses to route messages to built-in and custom
* endpoints. A maximum of 100 routing rules are allowed for paid hubs and a
* maximum of 5 routing rules are allowed for free hubs.
*
* @member {object} [properties.routing.fallbackRoute] The properties of the
* route that is used as a fall-back route when none of the conditions
* specified in the 'routes' section are met. This is an optional parameter.
* When this property is not set, the messages which do not meet any of the
* conditions specified in the 'routes' section get routed to the built-in
* eventhub endpoint.
*
* @member {string} [properties.routing.fallbackRoute.condition] The condition
* which is evaluated in order to apply the fallback route. If the condition is
* not provided it will evaluate to true by default. For grammar, See:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language
*
* @member {array} [properties.routing.fallbackRoute.endpointNames] The list of
* endpoints to which the messages that satisfy the condition are routed to.
* Currently only 1 endpoint is allowed.
*
* @member {boolean} [properties.routing.fallbackRoute.isEnabled] Used to
* specify whether the fallback route is enabled or not.
*
* @member {object} [properties.storageEndpoints] The list of Azure Storage

@@ -565,3 +873,3 @@ * endpoints where you can upload files. Currently you can configure only one

*
* @member {date} [startTimeUtc] The start time of the Job.
* @member {date} [startTimeUtc] The start time of the job.
*

@@ -568,0 +876,0 @@ * @member {date} [endTimeUtc] The time the job stopped processing.

@@ -24,2 +24,9 @@ /*

exports.EventHubProperties = require('./eventHubProperties');
exports.RoutingServiceBusQueueEndpointProperties = require('./routingServiceBusQueueEndpointProperties');
exports.RoutingServiceBusTopicEndpointProperties = require('./routingServiceBusTopicEndpointProperties');
exports.RoutingEventHubProperties = require('./routingEventHubProperties');
exports.RoutingEndpoints = require('./routingEndpoints');
exports.RouteProperties = require('./routeProperties');
exports.FallbackRouteProperties = require('./fallbackRouteProperties');
exports.RoutingProperties = require('./routingProperties');
exports.StorageEndpointProperties = require('./storageEndpointProperties');

@@ -26,0 +33,0 @@ exports.MessagingEndpointProperties = require('./messagingEndpointProperties');

@@ -0,0 +0,0 @@ /*

@@ -47,2 +47,42 @@ /*

*
* @member {object} [properties.routing]
*
* @member {object} [properties.routing.endpoints]
*
* @member {array} [properties.routing.endpoints.serviceBusQueues] The list of
* Service Bus queue endpoints that IoT hub routes the messages to, based on
* the routing rules.
*
* @member {array} [properties.routing.endpoints.serviceBusTopics] The list of
* Service Bus topic endpoints that the IoT hub routes the messages to, based
* on the routing rules.
*
* @member {array} [properties.routing.endpoints.eventHubs] The list of Event
* Hubs endpoints that IoT hub routes messages to, based on the routing rules.
* This list does not include the built-in Event Hubs endpoint.
*
* @member {array} [properties.routing.routes] The list of user-provided
* routing rules that the IoT hub uses to route messages to built-in and custom
* endpoints. A maximum of 100 routing rules are allowed for paid hubs and a
* maximum of 5 routing rules are allowed for free hubs.
*
* @member {object} [properties.routing.fallbackRoute] The properties of the
* route that is used as a fall-back route when none of the conditions
* specified in the 'routes' section are met. This is an optional parameter.
* When this property is not set, the messages which do not meet any of the
* conditions specified in the 'routes' section get routed to the built-in
* eventhub endpoint.
*
* @member {string} [properties.routing.fallbackRoute.condition] The condition
* which is evaluated in order to apply the fallback route. If the condition is
* not provided it will evaluate to true by default. For grammar, See:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language
*
* @member {array} [properties.routing.fallbackRoute.endpointNames] The list of
* endpoints to which the messages that satisfy the condition are routed to.
* Currently only 1 endpoint is allowed.
*
* @member {boolean} [properties.routing.fallbackRoute.isEnabled] Used to
* specify whether the fallback route is enabled or not.
*
* @member {object} [properties.storageEndpoints] The list of Azure Storage

@@ -49,0 +89,0 @@ * endpoints where you can upload files. Currently you can configure only one

@@ -35,2 +35,41 @@ /*

*
* @member {object} [routing]
*
* @member {object} [routing.endpoints]
*
* @member {array} [routing.endpoints.serviceBusQueues] The list of Service Bus
* queue endpoints that IoT hub routes the messages to, based on the routing
* rules.
*
* @member {array} [routing.endpoints.serviceBusTopics] The list of Service Bus
* topic endpoints that the IoT hub routes the messages to, based on the
* routing rules.
*
* @member {array} [routing.endpoints.eventHubs] The list of Event Hubs
* endpoints that IoT hub routes messages to, based on the routing rules. This
* list does not include the built-in Event Hubs endpoint.
*
* @member {array} [routing.routes] The list of user-provided routing rules
* that the IoT hub uses to route messages to built-in and custom endpoints. A
* maximum of 100 routing rules are allowed for paid hubs and a maximum of 5
* routing rules are allowed for free hubs.
*
* @member {object} [routing.fallbackRoute] The properties of the route that is
* used as a fall-back route when none of the conditions specified in the
* 'routes' section are met. This is an optional parameter. When this property
* is not set, the messages which do not meet any of the conditions specified
* in the 'routes' section get routed to the built-in eventhub endpoint.
*
* @member {string} [routing.fallbackRoute.condition] The condition which is
* evaluated in order to apply the fallback route. If the condition is not
* provided it will evaluate to true by default. For grammar, See:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language
*
* @member {array} [routing.fallbackRoute.endpointNames] The list of endpoints
* to which the messages that satisfy the condition are routed to. Currently
* only 1 endpoint is allowed.
*
* @member {boolean} [routing.fallbackRoute.isEnabled] Used to specify whether
* the fallback route is enabled or not.
*
* @member {object} [storageEndpoints] The list of Azure Storage endpoints

@@ -163,2 +202,10 @@ * where you can upload files. Currently you can configure only one Azure

},
routing: {
required: false,
serializedName: 'routing',
type: {
name: 'Composite',
className: 'RoutingProperties'
}
},
storageEndpoints: {

@@ -165,0 +212,0 @@ required: false,

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -21,3 +21,3 @@ /*

*
* @member {date} [startTimeUtc] The start time of the Job.
* @member {date} [startTimeUtc] The start time of the job.
*

@@ -24,0 +24,0 @@ * @member {date} [endTimeUtc] The time the job stopped processing.

@@ -20,11 +20,11 @@ /*

* @member {moment.duration} [lockDurationAsIso8601] The lock duration. See:
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
*
* @member {moment.duration} [ttlAsIso8601] The period of time for which a
* message is available to consume before it is expired by the IoT hub. See:
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
*
* @member {number} [maxDeliveryCount] The number of times the IoT hub attempts
* to deliver a message. See:
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
*

@@ -31,0 +31,0 @@ */

@@ -19,3 +19,4 @@ /*

* the dictionary are Connections, DeviceTelemetry, C2DCommands,
* DeviceIdentityOperations, FileUploadOperations.
* DeviceIdentityOperations, FileUploadOperations, Routes, D2CTwinOperations,
* C2DTwinOperations, TwinQueries, JobsOperations, DirectMethods.
*

@@ -22,0 +23,0 @@ * @member {object} [events]

@@ -19,2 +19,4 @@ /*

* @constructor
* The common properties of an Azure resource.
*
* @member {string} [id] The resource identifier.

@@ -21,0 +23,0 @@ *

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ The MIT License (MIT)

@@ -7,3 +7,3 @@ {

],
"version": "1.0.0-preview",
"version": "1.0.1-preview",
"description": "Microsoft Azure IoTHub Resource Provider Management Client Library for Node",

@@ -10,0 +10,0 @@ "tags": [

@@ -0,0 +0,0 @@ # Microsoft Azure SDK for Node.js - IoT Hub

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc