Socket
Socket
Sign inDemoInstall

azure-arm-iothub

Package Overview
Dependencies
68
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0-preview to 2.0.0-preview

lib/models/certificateBodyDescription.js

7

lib/iotHubClient.d.ts

@@ -13,5 +13,6 @@ /*

import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as models from "./models";
import * as operations from "./operations";
declare class IotHubClient extends AzureServiceClient {
export default class IotHubClient extends AzureServiceClient {
/**

@@ -61,4 +62,6 @@ * Initializes a new instance of the IotHubClient class.

iotHubResource: operations.IotHubResource;
resourceProviderCommon: operations.ResourceProviderCommon;
certificates: operations.Certificates;
}
export = IotHubClient;
export { IotHubClient, models as IotHubModels };

@@ -53,3 +53,3 @@ /*

this.apiVersion = '2017-07-01';
this.apiVersion = '2018-04-01';
this.acceptLanguage = 'en-US';

@@ -78,2 +78,4 @@ this.longRunningOperationRetryTimeout = 30;

this.iotHubResource = new operations.IotHubResource(this);
this.resourceProviderCommon = new operations.ResourceProviderCommon(this);
this.certificates = new operations.Certificates(this);
this.models = models;

@@ -86,1 +88,4 @@ msRest.addSerializationMixin(this);

module.exports = IotHubClient;
module.exports['default'] = IotHubClient;
module.exports.IotHubClient = IotHubClient;
module.exports.IotHubModels = models;

@@ -45,3 +45,3 @@ /*

readOnly: true,
serializedName: 'Code',
serializedName: 'code',
type: {

@@ -54,3 +54,3 @@ name: 'String'

readOnly: true,
serializedName: 'HttpStatusCode',
serializedName: 'httpStatusCode',
type: {

@@ -63,3 +63,3 @@ name: 'String'

readOnly: true,
serializedName: 'Message',
serializedName: 'message',
type: {

@@ -72,3 +72,3 @@ name: 'String'

readOnly: true,
serializedName: 'Details',
serializedName: 'details',
type: {

@@ -75,0 +75,0 @@ name: 'String'

@@ -13,14 +13,20 @@ /*

const models = require('./index');
/**
* The properties of the EventHubConsumerGroupInfo object.
*
* @extends models['BaseResource']
*/
class EventHubConsumerGroupInfo {
class EventHubConsumerGroupInfo extends models['BaseResource'] {
/**
* Create a EventHubConsumerGroupInfo.
* @member {object} [tags] The tags.
* @member {object} [properties] The tags.
* @member {string} [id] The Event Hub-compatible consumer group identifier.
* @member {string} [name] The Event Hub-compatible consumer group name.
* @member {string} [type] the resource type.
* @member {string} [etag] The etag.
*/
constructor() {
super();
}

@@ -42,5 +48,5 @@

modelProperties: {
tags: {
properties: {
required: false,
serializedName: 'tags',
serializedName: 'properties',
type: {

@@ -59,2 +65,3 @@ name: 'Dictionary',

required: false,
readOnly: true,
serializedName: 'id',

@@ -67,2 +74,3 @@ type: {

required: false,
readOnly: true,
serializedName: 'name',

@@ -72,2 +80,18 @@ type: {

}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
etag: {
required: false,
readOnly: true,
serializedName: 'etag',
type: {
name: 'String'
}
}

@@ -74,0 +98,0 @@ }

@@ -47,5 +47,6 @@ /*

required: false,
serializedName: 'StringElementType',
serializedName: 'EventHubConsumerGroupInfoElementType',
type: {
name: 'String'
name: 'Composite',
className: 'EventHubConsumerGroupInfo'
}

@@ -52,0 +53,0 @@ }

@@ -24,3 +24,3 @@ /*

* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages
* @member {number} [partitionCount] The number of paritions for receiving
* @member {number} [partitionCount] The number of partitions for receiving
* device-to-cloud messages in the Event Hub-compatible endpoint. See:

@@ -27,0 +27,0 @@ * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages.

@@ -44,3 +44,3 @@ /*

required: true,
serializedName: 'ExportBlobContainerUri',
serializedName: 'exportBlobContainerUri',
type: {

@@ -52,3 +52,3 @@ name: 'String'

required: true,
serializedName: 'ExcludeKeys',
serializedName: 'excludeKeys',
type: {

@@ -55,0 +55,0 @@ name: 'Boolean'

@@ -21,2 +21,5 @@ /*

* Create a FallbackRouteProperties.
* @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} [condition] The condition which is evaluated in order to

@@ -49,2 +52,9 @@ * apply the fallback route. If the condition is not provided it will

modelProperties: {
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
source: {

@@ -51,0 +61,0 @@ required: true,

@@ -43,3 +43,3 @@ /*

required: true,
serializedName: 'InputBlobContainerUri',
serializedName: 'inputBlobContainerUri',
type: {

@@ -51,3 +51,3 @@ name: 'String'

required: true,
serializedName: 'OutputBlobContainerUri',
serializedName: 'outputBlobContainerUri',
type: {

@@ -54,0 +54,0 @@ name: 'String'

@@ -21,2 +21,156 @@ /*

* @class
* Initializes a new instance of the CertificateVerificationDescription class.
* @constructor
* The JSON-serialized leaf certificate
*
* @member {string} [certificate] base-64 representation of X509 certificate
* .cer file or just .pem file content.
*/
export interface CertificateVerificationDescription {
certificate?: string;
}
/**
* @class
* Initializes a new instance of the CertificateProperties class.
* @constructor
* The description of an X509 CA Certificate.
*
* @member {string} [subject] The certificate's subject name.
* @member {date} [expiry] The certificate's expiration date and time.
* @member {string} [thumbprint] The certificate's thumbprint.
* @member {boolean} [isVerified] Determines whether certificate has been
* verified.
* @member {date} [created] The certificate's create date and time.
* @member {date} [updated] The certificate's last update date and time.
* @member {string} [certificate] The certificate content
*/
export interface CertificateProperties {
readonly subject?: string;
readonly expiry?: Date;
readonly thumbprint?: string;
readonly isVerified?: boolean;
readonly created?: Date;
readonly updated?: Date;
certificate?: string;
}
/**
* @class
* Initializes a new instance of the CertificateDescription class.
* @constructor
* The X509 Certificate.
*
* @member {object} [properties]
* @member {string} [properties.subject] The certificate's subject name.
* @member {date} [properties.expiry] The certificate's expiration date and
* time.
* @member {string} [properties.thumbprint] The certificate's thumbprint.
* @member {boolean} [properties.isVerified] Determines whether certificate has
* been verified.
* @member {date} [properties.created] The certificate's create date and time.
* @member {date} [properties.updated] The certificate's last update date and
* time.
* @member {string} [properties.certificate] The certificate content
* @member {string} [id] The resource identifier.
* @member {string} [name] The name of the certificate.
* @member {string} [etag] The entity tag.
* @member {string} [type] The resource type.
*/
export interface CertificateDescription extends BaseResource {
properties?: CertificateProperties;
readonly id?: string;
readonly name?: string;
readonly etag?: string;
readonly type?: string;
}
/**
* @class
* Initializes a new instance of the CertificateListDescription class.
* @constructor
* The JSON-serialized array of Certificate objects.
*
* @member {array} [value] The array of Certificate objects.
*/
export interface CertificateListDescription {
value?: CertificateDescription[];
}
/**
* @class
* Initializes a new instance of the CertificateBodyDescription class.
* @constructor
* The JSON-serialized X509 Certificate.
*
* @member {string} [certificate] base-64 representation of the X509 leaf
* certificate .cer file or just .pem file content.
*/
export interface CertificateBodyDescription {
certificate?: string;
}
/**
* @class
* Initializes a new instance of the CertificatePropertiesWithNonce class.
* @constructor
* The description of an X509 CA Certificate including the challenge nonce
* issued for the Proof-Of-Possession flow.
*
* @member {string} [subject] The certificate's subject name.
* @member {date} [expiry] The certificate's expiration date and time.
* @member {string} [thumbprint] The certificate's thumbprint.
* @member {boolean} [isVerified] Determines whether certificate has been
* verified.
* @member {date} [created] The certificate's create date and time.
* @member {date} [updated] The certificate's last update date and time.
* @member {string} [verificationCode] The certificate's verification code that
* will be used for proof of possession.
* @member {string} [certificate] The certificate content
*/
export interface CertificatePropertiesWithNonce {
readonly subject?: string;
readonly expiry?: Date;
readonly thumbprint?: string;
readonly isVerified?: boolean;
readonly created?: Date;
readonly updated?: Date;
readonly verificationCode?: string;
readonly certificate?: string;
}
/**
* @class
* Initializes a new instance of the CertificateWithNonceDescription class.
* @constructor
* The X509 Certificate.
*
* @member {object} [properties]
* @member {string} [properties.subject] The certificate's subject name.
* @member {date} [properties.expiry] The certificate's expiration date and
* time.
* @member {string} [properties.thumbprint] The certificate's thumbprint.
* @member {boolean} [properties.isVerified] Determines whether certificate has
* been verified.
* @member {date} [properties.created] The certificate's create date and time.
* @member {date} [properties.updated] The certificate's last update date and
* time.
* @member {string} [properties.verificationCode] The certificate's
* verification code that will be used for proof of possession.
* @member {string} [properties.certificate] The certificate content
* @member {string} [id] The resource identifier.
* @member {string} [name] The name of the certificate.
* @member {string} [etag] The entity tag.
* @member {string} [type] The resource type.
*/
export interface CertificateWithNonceDescription extends BaseResource {
properties?: CertificatePropertiesWithNonce;
readonly id?: string;
readonly name?: string;
readonly etag?: string;
readonly type?: string;
}
/**
* @class
* Initializes a new instance of the SharedAccessSignatureAuthorizationRule class.

@@ -75,3 +229,3 @@ * @constructor

* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages
* @member {number} [partitionCount] The number of paritions for receiving
* @member {number} [partitionCount] The number of partitions for receiving
* device-to-cloud messages in the Event Hub-compatible endpoint. See:

@@ -250,4 +404,5 @@ * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages.

* @member {string} source The source that the routing rule is to be applied
* to, such as DeviceMessages. Possible values include: 'DeviceMessages',
* 'TwinChangeEvents', 'DeviceLifecycleEvents', 'DeviceJobLifecycleEvents'
* to, such as DeviceMessages. Possible values include: 'Invalid',
* 'DeviceMessages', 'TwinChangeEvents', 'DeviceLifecycleEvents',
* 'DeviceJobLifecycleEvents'
* @member {string} [condition] The condition that is evaluated to apply the

@@ -276,2 +431,5 @@ * routing rule. If no condition is provided, it evaluates to true by default.

*
* @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} [condition] The condition which is evaluated in order to

@@ -288,2 +446,3 @@ * apply the fallback route. If the condition is not provided it will evaluate

export interface FallbackRouteProperties {
name?: string;
condition?: string;

@@ -321,2 +480,5 @@ endpointNames: string[];

* 'routes' section get routed to the built-in eventhub endpoint.
* @member {string} [fallbackRoute.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} [fallbackRoute.condition] The condition which is evaluated

@@ -457,2 +619,3 @@ * in order to apply the fallback route. If the condition is not provided it

* @member {string} [provisioningState] The provisioning state.
* @member {string} [state] Thehub state state.
* @member {string} [hostName] The name of the host.

@@ -486,2 +649,5 @@ * @member {object} [eventHubEndpoints] The Event Hub-compatible endpoint

* in the 'routes' section get routed to the built-in eventhub endpoint.
* @member {string} [routing.fallbackRoute.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} [routing.fallbackRoute.condition] The condition which is

@@ -534,2 +700,3 @@ * evaluated in order to apply the fallback route. If the condition is not

readonly provisioningState?: string;
readonly state?: string;
readonly hostName?: string;

@@ -554,6 +721,6 @@ eventHubEndpoints?: { [propertyName: string]: EventHubProperties };

* @member {string} name The name of the SKU. Possible values include: 'F1',
* 'S1', 'S2', 'S3'
* 'S1', 'S2', 'S3', 'B1', 'B2', 'B3'
* @member {string} [tier] The billing tier for the IoT hub. Possible values
* include: 'Free', 'Standard'
* @member {number} capacity The number of provisioned IoT Hub units. See:
* include: 'Free', 'Standard', 'Basic'
* @member {number} [capacity] The number of provisioned IoT Hub units. See:
* https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits.

@@ -564,3 +731,3 @@ */

readonly tier?: string;
capacity: number;
capacity?: number;
}

@@ -594,10 +761,6 @@

*
* @member {string} subscriptionid The subscription identifier.
* @member {string} resourcegroup The name of the resource group that contains
* the IoT hub. A resource group name uniquely identifies the resource group
* within the subscription.
* @member {string} [etag] The Etag field is *not* required. If it is provided
* in the response body, it must also be provided as a header per the normal
* ETag convention.
* @member {object} [properties]
* @member {object} [properties] IotHub properties
* @member {array} [properties.authorizationPolicies] The shared access

@@ -607,2 +770,3 @@ * policies you can use to secure a connection to the IoT hub.

* @member {string} [properties.provisioningState] The provisioning state.
* @member {string} [properties.state] Thehub state state.
* @member {string} [properties.hostName] The name of the host.

@@ -637,2 +801,6 @@ * @member {object} [properties.eventHubEndpoints] The Event Hub-compatible

* eventhub endpoint.
* @member {string} [properties.routing.fallbackRoute.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} [properties.routing.fallbackRoute.condition] The condition

@@ -682,7 +850,7 @@ * which is evaluated in order to apply the fallback route. If the condition is

* for the IoT hub. Possible values include: 'None', 'DeviceManagement'
* @member {object} sku
* @member {object} sku IotHub SKU info
* @member {string} [sku.name] The name of the SKU. Possible values include:
* 'F1', 'S1', 'S2', 'S3'
* 'F1', 'S1', 'S2', 'S3', 'B1', 'B2', 'B3'
* @member {string} [sku.tier] The billing tier for the IoT hub. Possible
* values include: 'Free', 'Standard'
* values include: 'Free', 'Standard', 'Basic'
* @member {number} [sku.capacity] The number of provisioned IoT Hub units.

@@ -693,4 +861,2 @@ * See:

export interface IotHubDescription extends Resource {
subscriptionid: string;
resourcegroup: string;
etag?: string;

@@ -771,2 +937,17 @@ properties?: IotHubProperties;

* @class
* Initializes a new instance of the EndpointHealthData class.
* @constructor
* The health data for an endpoint
*
* @member {string} [endpointId] Id of the endpoint
* @member {string} [healthStatus] Health status. Possible values include:
* 'unknown', 'healthy', 'unhealthy', 'dead'
*/
export interface EndpointHealthData {
endpointId?: string;
healthStatus?: string;
}
/**
* @class
* Initializes a new instance of the RegistryStatistics class.

@@ -846,11 +1027,11 @@ * @constructor

* @member {string} [resourceType] The type of the resource.
* @member {object} sku
* @member {object} sku The type of the resource.
* @member {string} [sku.name] The name of the SKU. Possible values include:
* 'F1', 'S1', 'S2', 'S3'
* 'F1', 'S1', 'S2', 'S3', 'B1', 'B2', 'B3'
* @member {string} [sku.tier] The billing tier for the IoT hub. Possible
* values include: 'Free', 'Standard'
* values include: 'Free', 'Standard', 'Basic'
* @member {number} [sku.capacity] The number of provisioned IoT Hub units.
* See:
* https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits.
* @member {object} capacity
* @member {object} capacity IotHub capacity
* @member {number} [capacity.minimum] The minimum number of units.

@@ -870,2 +1051,15 @@ * @member {number} [capacity.maximum] The maximum number of units.

* @class
* Initializes a new instance of the TagsResource class.
* @constructor
* A container holding only the Tags for a resource, allowing the user to
* update the tags on an IoT Hub instance.
*
* @member {object} [tags] Resource tags
*/
export interface TagsResource {
tags?: { [propertyName: string]: string };
}
/**
* @class
* Initializes a new instance of the EventHubConsumerGroupInfo class.

@@ -875,10 +1069,14 @@ * @constructor

*
* @member {object} [tags] The tags.
* @member {object} [properties] The tags.
* @member {string} [id] The Event Hub-compatible consumer group identifier.
* @member {string} [name] The Event Hub-compatible consumer group name.
* @member {string} [type] the resource type.
* @member {string} [etag] The etag.
*/
export interface EventHubConsumerGroupInfo {
tags?: { [propertyName: string]: string };
id?: string;
name?: string;
export interface EventHubConsumerGroupInfo extends BaseResource {
properties?: { [propertyName: string]: string };
readonly id?: string;
readonly name?: string;
readonly type?: string;
readonly etag?: string;
}

@@ -918,2 +1116,248 @@

* @class
* Initializes a new instance of the Name class.
* @constructor
* Name of Iot Hub type
*
* @member {string} [value] IotHub type
* @member {string} [localizedValue] Localized value of name
*/
export interface Name {
value?: string;
localizedValue?: string;
}
/**
* @class
* Initializes a new instance of the UserSubscriptionQuota class.
* @constructor
* User subscription quota response
*
* @member {string} [id] IotHub type id
* @member {string} [type] Response type
* @member {string} [unit] Unit of IotHub type
* @member {number} [currentValue] Current number of IotHub type
* @member {number} [limit] Numerical limit on IotHub type
* @member {object} [name] IotHub type
* @member {string} [name.value] IotHub type
* @member {string} [name.localizedValue] Localized value of name
*/
export interface UserSubscriptionQuota {
id?: string;
type?: string;
unit?: string;
currentValue?: number;
limit?: number;
name?: Name;
}
/**
* @class
* Initializes a new instance of the UserSubscriptionQuotaListResult class.
* @constructor
* Json-serialized array of User subscription quota response
*
* @member {array} [value]
* @member {string} [nextLink]
*/
export interface UserSubscriptionQuotaListResult {
value?: UserSubscriptionQuota[];
readonly nextLink?: string;
}
/**
* @class
* Initializes a new instance of the RoutingMessage class.
* @constructor
* Routing message
*
* @member {string} [body] Body of routing message
* @member {object} [appProperties] App properties
* @member {object} [systemProperties] System properties
*/
export interface RoutingMessage {
body?: string;
appProperties?: { [propertyName: string]: string };
systemProperties?: { [propertyName: string]: string };
}
/**
* @class
* Initializes a new instance of the TestAllRoutesInput class.
* @constructor
* Input for testing all routes
*
* @member {string} [routingSource] Routing source. Possible values include:
* 'Invalid', 'DeviceMessages', 'TwinChangeEvents', 'DeviceLifecycleEvents',
* 'DeviceJobLifecycleEvents'
* @member {object} [message] Routing message
* @member {string} [message.body] Body of routing message
* @member {object} [message.appProperties] App properties
* @member {object} [message.systemProperties] System properties
*/
export interface TestAllRoutesInput {
routingSource?: string;
message?: RoutingMessage;
}
/**
* @class
* Initializes a new instance of the MatchedRoute class.
* @constructor
* Routes that matched
*
* @member {object} [properties] Properties of routes that matched
* @member {string} [properties.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} [properties.source] The source that the routing rule is to
* be applied to, such as DeviceMessages. Possible values include: 'Invalid',
* 'DeviceMessages', 'TwinChangeEvents', 'DeviceLifecycleEvents',
* 'DeviceJobLifecycleEvents'
* @member {string} [properties.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} [properties.endpointNames] The list of endpoints to which
* messages that satisfy the condition are routed. Currently only one endpoint
* is allowed.
* @member {boolean} [properties.isEnabled] Used to specify whether a route is
* enabled.
*/
export interface MatchedRoute {
properties?: RouteProperties;
}
/**
* @class
* Initializes a new instance of the TestAllRoutesResult class.
* @constructor
* Result of testing all routes
*
* @member {array} [routes] JSON-serialized array of matched routes
*/
export interface TestAllRoutesResult {
routes?: MatchedRoute[];
}
/**
* @class
* Initializes a new instance of the TestRouteInput class.
* @constructor
* Input for testing route
*
* @member {object} [message] Routing message
* @member {string} [message.body] Body of routing message
* @member {object} [message.appProperties] App properties
* @member {object} [message.systemProperties] System properties
* @member {object} route Route properties
* @member {string} [route.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} [route.source] The source that the routing rule is to be
* applied to, such as DeviceMessages. Possible values include: 'Invalid',
* 'DeviceMessages', 'TwinChangeEvents', 'DeviceLifecycleEvents',
* 'DeviceJobLifecycleEvents'
* @member {string} [route.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} [route.endpointNames] The list of endpoints to which
* messages that satisfy the condition are routed. Currently only one endpoint
* is allowed.
* @member {boolean} [route.isEnabled] Used to specify whether a route is
* enabled.
*/
export interface TestRouteInput {
message?: RoutingMessage;
route: RouteProperties;
}
/**
* @class
* Initializes a new instance of the RouteErrorPosition class.
* @constructor
* Position where the route error happened
*
* @member {number} [line] Line where the route error happened
* @member {number} [column] Column where the route error happened
*/
export interface RouteErrorPosition {
line?: number;
column?: number;
}
/**
* @class
* Initializes a new instance of the RouteErrorRange class.
* @constructor
* Range of route errors
*
* @member {object} [start] Start where the route error happened
* @member {number} [start.line] Line where the route error happened
* @member {number} [start.column] Column where the route error happened
* @member {object} [end] End where the route error happened
* @member {number} [end.line] Line where the route error happened
* @member {number} [end.column] Column where the route error happened
*/
export interface RouteErrorRange {
start?: RouteErrorPosition;
end?: RouteErrorPosition;
}
/**
* @class
* Initializes a new instance of the RouteCompilationError class.
* @constructor
* Compilation error when evaluating route
*
* @member {string} [message] Route error message
* @member {string} [severity] Severity of the route error. Possible values
* include: 'error', 'warning'
* @member {object} [location] Location where the route error happened
* @member {object} [location.start] Start where the route error happened
* @member {number} [location.start.line] Line where the route error happened
* @member {number} [location.start.column] Column where the route error
* happened
* @member {object} [location.end] End where the route error happened
* @member {number} [location.end.line] Line where the route error happened
* @member {number} [location.end.column] Column where the route error happened
*/
export interface RouteCompilationError {
message?: string;
severity?: string;
location?: RouteErrorRange;
}
/**
* @class
* Initializes a new instance of the TestRouteResultDetails class.
* @constructor
* Detailed result of testing a route
*
* @member {array} [compilationErrors] JSON-serialized list of route
* compilation errors
*/
export interface TestRouteResultDetails {
compilationErrors?: RouteCompilationError[];
}
/**
* @class
* Initializes a new instance of the TestRouteResult class.
* @constructor
* Result of testing one route
*
* @member {string} [result] Result of testing route. Possible values include:
* 'undefined', 'false', 'true'
* @member {object} [details] Detailed result of testing route
* @member {array} [details.compilationErrors] JSON-serialized list of route
* compilation errors
*/
export interface TestRouteResult {
result?: string;
details?: TestRouteResultDetails;
}
/**
* @class
* Initializes a new instance of the ExportDevicesRequest class.

@@ -996,3 +1440,3 @@ * @constructor

*/
export interface EventHubConsumerGroupsListResult extends Array<string> {
export interface EventHubConsumerGroupsListResult extends Array<EventHubConsumerGroupInfo> {
readonly nextLink?: string;

@@ -1027,2 +1471,14 @@ }

* @class
* Initializes a new instance of the EndpointHealthDataListResult class.
* @constructor
* The JSON-serialized array of EndpointHealthData objects with a next link.
*
* @member {string} [nextLink] Link to more results
*/
export interface EndpointHealthDataListResult extends Array<EndpointHealthData> {
readonly nextLink?: string;
}
/**
* @class
* Initializes a new instance of the SharedAccessSignatureAuthorizationRuleListResult class.

@@ -1029,0 +1485,0 @@ * @constructor

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

exports.CloudError = msRestAzure.CloudError;
exports.CertificateVerificationDescription = require('./certificateVerificationDescription');
exports.CertificateProperties = require('./certificateProperties');
exports.CertificateDescription = require('./certificateDescription');
exports.CertificateListDescription = require('./certificateListDescription');
exports.CertificateBodyDescription = require('./certificateBodyDescription');
exports.CertificatePropertiesWithNonce = require('./certificatePropertiesWithNonce');
exports.CertificateWithNonceDescription = require('./certificateWithNonceDescription');
exports.SharedAccessSignatureAuthorizationRule = require('./sharedAccessSignatureAuthorizationRule');

@@ -46,2 +53,3 @@ exports.IpFilterRule = require('./ipFilterRule');

exports.IotHubQuotaMetricInfo = require('./iotHubQuotaMetricInfo');
exports.EndpointHealthData = require('./endpointHealthData');
exports.RegistryStatistics = require('./registryStatistics');

@@ -51,5 +59,19 @@ exports.JobResponse = require('./jobResponse');

exports.IotHubSkuDescription = require('./iotHubSkuDescription');
exports.TagsResource = require('./tagsResource');
exports.EventHubConsumerGroupInfo = require('./eventHubConsumerGroupInfo');
exports.OperationInputs = require('./operationInputs');
exports.IotHubNameAvailabilityInfo = require('./iotHubNameAvailabilityInfo');
exports.Name = require('./name');
exports.UserSubscriptionQuota = require('./userSubscriptionQuota');
exports.UserSubscriptionQuotaListResult = require('./userSubscriptionQuotaListResult');
exports.RoutingMessage = require('./routingMessage');
exports.TestAllRoutesInput = require('./testAllRoutesInput');
exports.MatchedRoute = require('./matchedRoute');
exports.TestAllRoutesResult = require('./testAllRoutesResult');
exports.TestRouteInput = require('./testRouteInput');
exports.RouteErrorPosition = require('./routeErrorPosition');
exports.RouteErrorRange = require('./routeErrorRange');
exports.RouteCompilationError = require('./routeCompilationError');
exports.TestRouteResultDetails = require('./testRouteResultDetails');
exports.TestRouteResult = require('./testRouteResult');
exports.ExportDevicesRequest = require('./exportDevicesRequest');

@@ -63,2 +85,3 @@ exports.ImportDevicesRequest = require('./importDevicesRequest');

exports.IotHubQuotaMetricInfoListResult = require('./iotHubQuotaMetricInfoListResult');
exports.EndpointHealthDataListResult = require('./endpointHealthDataListResult');
exports.SharedAccessSignatureAuthorizationRuleListResult = require('./sharedAccessSignatureAuthorizationRuleListResult');

@@ -23,10 +23,6 @@ /*

* Create a IotHubDescription.
* @member {string} subscriptionid The subscription identifier.
* @member {string} resourcegroup The name of the resource group that
* contains the IoT hub. A resource group name uniquely identifies the
* resource group within the subscription.
* @member {string} [etag] The Etag field is *not* required. If it is
* provided in the response body, it must also be provided as a header per
* the normal ETag convention.
* @member {object} [properties]
* @member {object} [properties] IotHub properties
* @member {array} [properties.authorizationPolicies] The shared access

@@ -36,2 +32,3 @@ * policies you can use to secure a connection to the IoT hub.

* @member {string} [properties.provisioningState] The provisioning state.
* @member {string} [properties.state] Thehub state state.
* @member {string} [properties.hostName] The name of the host.

@@ -66,2 +63,6 @@ * @member {object} [properties.eventHubEndpoints] The Event Hub-compatible

* eventhub endpoint.
* @member {string} [properties.routing.fallbackRoute.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} [properties.routing.fallbackRoute.condition] The

@@ -114,7 +115,7 @@ * condition which is evaluated in order to apply the fallback route. If the

* 'DeviceManagement'
* @member {object} sku
* @member {object} sku IotHub SKU info
* @member {string} [sku.name] The name of the SKU. Possible values include:
* 'F1', 'S1', 'S2', 'S3'
* 'F1', 'S1', 'S2', 'S3', 'B1', 'B2', 'B3'
* @member {string} [sku.tier] The billing tier for the IoT hub. Possible
* values include: 'Free', 'Standard'
* values include: 'Free', 'Standard', 'Basic'
* @member {number} [sku.capacity] The number of provisioned IoT Hub units.

@@ -190,16 +191,2 @@ * See:

},
subscriptionid: {
required: true,
serializedName: 'subscriptionid',
type: {
name: 'String'
}
},
resourcegroup: {
required: true,
serializedName: 'resourcegroup',
type: {
name: 'String'
}
},
etag: {

@@ -206,0 +193,0 @@ required: false,

@@ -26,2 +26,3 @@ /*

* @member {string} [provisioningState] The provisioning state.
* @member {string} [state] Thehub state state.
* @member {string} [hostName] The name of the host.

@@ -56,2 +57,5 @@ * @member {object} [eventHubEndpoints] The Event Hub-compatible endpoint

* endpoint.
* @member {string} [routing.fallbackRoute.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} [routing.fallbackRoute.condition] The condition which is

@@ -156,2 +160,10 @@ * evaluated in order to apply the fallback route. If the condition is not

},
state: {
required: false,
readOnly: true,
serializedName: 'state',
type: {
name: 'String'
}
},
hostName: {

@@ -158,0 +170,0 @@ required: false,

@@ -44,3 +44,3 @@ /*

readOnly: true,
serializedName: 'Name',
serializedName: 'name',
type: {

@@ -53,3 +53,3 @@ name: 'String'

readOnly: true,
serializedName: 'CurrentValue',
serializedName: 'currentValue',
type: {

@@ -62,3 +62,3 @@ name: 'Number'

readOnly: true,
serializedName: 'MaxValue',
serializedName: 'maxValue',
type: {

@@ -65,0 +65,0 @@ name: 'Number'

@@ -23,11 +23,11 @@ /*

* @member {string} [resourceType] The type of the resource.
* @member {object} sku
* @member {object} sku The type of the resource.
* @member {string} [sku.name] The name of the SKU. Possible values include:
* 'F1', 'S1', 'S2', 'S3'
* 'F1', 'S1', 'S2', 'S3', 'B1', 'B2', 'B3'
* @member {string} [sku.tier] The billing tier for the IoT hub. Possible
* values include: 'Free', 'Standard'
* values include: 'Free', 'Standard', 'Basic'
* @member {number} [sku.capacity] The number of provisioned IoT Hub units.
* See:
* https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits.
* @member {object} capacity
* @member {object} capacity IotHub capacity
* @member {number} [capacity.minimum] The minimum number of units.

@@ -34,0 +34,0 @@ * @member {number} [capacity.maximum] The maximum number of units.

@@ -21,6 +21,6 @@ /*

* @member {string} name The name of the SKU. Possible values include: 'F1',
* 'S1', 'S2', 'S3'
* 'S1', 'S2', 'S3', 'B1', 'B2', 'B3'
* @member {string} [tier] The billing tier for the IoT hub. Possible values
* include: 'Free', 'Standard'
* @member {number} capacity The number of provisioned IoT Hub units. See:
* include: 'Free', 'Standard', 'Basic'
* @member {number} [capacity] The number of provisioned IoT Hub units. See:
* https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits.

@@ -58,7 +58,7 @@ */

name: 'Enum',
allowedValues: [ 'Free', 'Standard' ]
allowedValues: [ 'Free', 'Standard', 'Basic' ]
}
},
capacity: {
required: true,
required: false,
serializedName: 'capacity',

@@ -65,0 +65,0 @@ type: {

@@ -41,3 +41,3 @@ /*

required: true,
serializedName: 'Name',
serializedName: 'name',
type: {

@@ -44,0 +44,0 @@ name: 'String'

@@ -25,4 +25,5 @@ /*

* @member {string} source The source that the routing rule is to be applied
* to, such as DeviceMessages. Possible values include: 'DeviceMessages',
* 'TwinChangeEvents', 'DeviceLifecycleEvents', 'DeviceJobLifecycleEvents'
* to, such as DeviceMessages. Possible values include: 'Invalid',
* 'DeviceMessages', 'TwinChangeEvents', 'DeviceLifecycleEvents',
* 'DeviceJobLifecycleEvents'
* @member {string} [condition] The condition that is evaluated to apply the

@@ -29,0 +30,0 @@ * routing rule. If no condition is provided, it evaluates to true by

@@ -44,2 +44,5 @@ /*

* 'routes' section get routed to the built-in eventhub endpoint.
* @member {string} [fallbackRoute.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} [fallbackRoute.condition] The condition which is

@@ -46,0 +49,0 @@ * evaluated in order to apply the fallback route. If the condition is not

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

exports.IotHubResource = require('./iotHubResource');
exports.ResourceProviderCommon = require('./resourceProviderCommon');
exports.Certificates = require('./certificates');
The MIT License (MIT)
Copyright (c) 2017 Microsoft
Copyright (c) 2018 Microsoft

@@ -21,2 +21,2 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
{
"name": "azure-arm-iothub",
"author": "Microsoft Corporation",
"contributors": [
"Roopesh Manda <rmanda@microsoft.com>"
],
"version": "1.1.0-preview",
"description": "Microsoft Azure IoTHub Resource Provider Management Client Library for Node",
"tags": [
"azure",
"sdk",
"iot"
],
"description": "IotHubClient Library with typescript type definitions for node",
"version": "2.0.0-preview",
"dependencies": {
"ms-rest": "^2.3.6",
"ms-rest-azure": "^2.5.7"
},
"keywords": [
"node",
"azure",
"iot"
"azure"
],
"license": "MIT",
"main": "./lib/iotHubClient.js",
"types": "./lib/iotHubClient.d.ts",
"license": "MIT",
"dependencies": {
"ms-rest": "^2.2.2",
"ms-rest-azure": "^2.3.3"
},
"homepage": "http://github.com/Azure/azure-sdk-for-node",
"homepage": "http://github.com/azure/azure-sdk-for-node",
"repository": {
"type": "git",
"url": "git@github.com:Azure/azure-sdk-for-node.git"
"url": "https://github.com/azure/azure-sdk-for-node.git"
},
"bugs": {
"url": "http://github.com/Azure/azure-sdk-for-node/issues"
},
"scripts": {
"test": "npm -s run-script jshint"
},
"typings": "./lib/iotHubClient.d.ts"
}
}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc