azure-iot-digitaltwins-service
Advanced tools
Comparing version 1.0.0-pnp-refresh.1 to 1.0.0-pnp-refresh.2
@@ -9,3 +9,3 @@ import { IotHubGatewayServiceAPIsModels as Models } from '../pl/iotHubGatewayServiceAPIs'; | ||
*/ | ||
export declare type DigitalTwin = Models.DigitalTwinGetComponentsHeaders | undefined; | ||
export declare type DigitalTwin = Models.DigitalTwinGetDigitalTwinHeaders | undefined; | ||
/** | ||
@@ -18,17 +18,2 @@ * @export | ||
* @export | ||
* @type DigitalTwinComponents Type alias to simplify the auto generated type's name | ||
*/ | ||
export declare type DigitalTwinComponents = Models.DigitalTwinInterfaces | undefined; | ||
/** | ||
* @export | ||
* @type DigitalTwinGetComponentResponse Type alias to simplify the auto generated type's name | ||
*/ | ||
export declare type DigitalTwinGetComponentResponse = Models.DigitalTwinGetComponentResponse; | ||
/** | ||
* @export | ||
* @type DigitalTwinGetComponentsResponse Type alias to simplify the auto generated type's name | ||
*/ | ||
export declare type DigitalTwinGetComponentsResponse = Models.DigitalTwinGetComponentsResponse; | ||
/** | ||
* @export | ||
* @type DigitalTwinUpdateResponse Type alias to simplify the auto generated type's name | ||
@@ -39,42 +24,12 @@ */ | ||
* @export | ||
* @type Model Type alias to simplify the auto generated type's name | ||
* @type DigitalTwinInvokeComponentCommandResponse Type alias to simplify the auto generated type's name | ||
*/ | ||
export declare type Model = Models.DigitalTwinGetDigitalTwinModelResponse; | ||
export declare type DigitalTwinInvokeComponentCommandResponse = Models.DigitalTwinInvokeComponentCommandResponse | undefined; | ||
/** | ||
* @export | ||
* @type DigitalTwinGetDigitalTwinModelResponse Type alias to simplify the auto generated type's name | ||
* @type DigitalTwinInvokeRootLevelCommandResponse Type alias to simplify the auto generated type's name | ||
*/ | ||
export declare type DigitalTwinGetDigitalTwinModelResponse = Models.DigitalTwinGetDigitalTwinModelResponse; | ||
export declare type DigitalTwinInvokeRootLevelCommandResponse = Models.DigitalTwinInvokeRootLevelCommandResponse | undefined; | ||
/** | ||
* @export | ||
* @type DigitalTwinComponentsPatch Type alias to simplify the auto generated type's name | ||
*/ | ||
export declare type DigitalTwinComponentsPatch = Models.DigitalTwinInterfacesPatch; | ||
/** | ||
* @export | ||
* @type DigitalTwinUpdateComponentResponse Type alias to simplify the auto generated type's name | ||
*/ | ||
export declare type DigitalTwinUpdateComponentResponse = Models.DigitalTwinUpdateComponentResponse | undefined; | ||
/** | ||
* @export | ||
* @interface CommandResult Base interface containing the following fields: | ||
* @field result The return value of an invoked command | ||
* @field statusCode The status code of the executed command | ||
* @field requestId Identifier of the invoked command | ||
*/ | ||
export interface CommandResult { | ||
result?: any; | ||
statusCode?: number; | ||
requestId?: string; | ||
} | ||
/** | ||
* @export | ||
* @interface CommandResultResponse Extended command result interface adding the following field: | ||
* @field _response The full and parsed Http response for debugging purposes | ||
*/ | ||
export interface CommandResultResponse extends CommandResult { | ||
_response?: msRest.HttpOperationResponse; | ||
} | ||
/** | ||
* @export | ||
* @class DigitalTwinServiceClient Main class to implement Azure IoT Digital Twin Service Client API | ||
@@ -126,54 +81,22 @@ */ | ||
/** | ||
* @method getComponents module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.getDigitalTwinComponent | ||
* @description Retrieve all components of the Digital Twin of a given device. | ||
* @param {string} digitalTwinId The digital twin Id of the given device. | ||
* @param {string} componentName The name of the requested component. | ||
* @returns DigitalTwinGetComponentsResponse The return object containing the component plus the HttpResponse. | ||
* @method invokeComponentCommand module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.invokeComponentCommand | ||
* @description Invoke a command on an component of a particular device and get the result of it. | ||
* @param {string} digitalTwinId The digital twin Id of the given device. | ||
* @param {string} componentName The component's name. | ||
* @param {string} commandName The command's name. | ||
* @param {string} argument The argument of a command. | ||
* @returns DigitalTwinInvokeComponentCommandResponse The result of the invoked command containing the result, status code, request ID and the parsed HttpResponse. | ||
* @memberof DigitalTwinServiceClient | ||
*/ | ||
getComponents(digitalTwinId: string): Promise<DigitalTwinGetComponentsResponse>; | ||
getComponents(digitalTwinId: string, callback: TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>): void; | ||
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, argument: string): Promise<DigitalTwinInvokeComponentCommandResponse>; | ||
/** | ||
* @method updateComponent module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.updateComponent | ||
* @description Updates desired properties of multiple copmonents. | ||
* @param {string} digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId is optional. | ||
* @param {DigitalTwinComponentsPatch} patch Desired properties to update. | ||
* @param {string} eTag The eTag for identifying the patch. | ||
* @returns DigitalTwinUpdateComponentResponse The return object containing the updated Component plus the HttpResponse. | ||
* @method invokeCommand module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.invokeCommand | ||
* @description Invoke a command on an component of a particular device and get the result of it. | ||
* @param {string} digitalTwinId The digital twin Id of the given device. | ||
* @param {string} argument The argument of a command. | ||
* @returns DigitalTwinInvokeRootLevelCommandResponse The result of the invoked command containing the result, status code, request ID and the parsed HttpResponse. | ||
* @memberof DigitalTwinServiceClient | ||
*/ | ||
updateComponent(digitalTwinId: string, patch: DigitalTwinComponentsPatch, eTag?: string): Promise<DigitalTwinUpdateComponentResponse>; | ||
updateComponent(digitalTwinId: string, patch: DigitalTwinComponentsPatch, eTagOrCallback?: string | TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>, callback?: TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>): void; | ||
/** | ||
* @method getComponent module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.getDigitalTwinComponent | ||
* @description Retrieve a component of the Digital Twin of a given device. | ||
* @param {string} digitalTwinId The digital twin Id of the given device. | ||
* @param {string} componentName The name of the requested component. | ||
* @returns DigitalTwinGetComponentResponse The return object containing the component plus the HttpResponse. | ||
* @memberof DigitalTwinServiceClient | ||
*/ | ||
getComponent(digitalTwinId: string, componentName: string): Promise<DigitalTwinGetComponentResponse>; | ||
getComponent(digitalTwinId: string, componentName: string, callback: TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>): void; | ||
/** | ||
* @method getModel module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.getModel | ||
* @description Retrieve a Digital Twin Model. | ||
* @param {string} modelId The model Id of the requested model. | ||
* @returns DigitalTwinGetDigitalTwinModelResponse The return object containing the Model plus the HttpResponse. | ||
* @memberof DigitalTwinServiceClient | ||
*/ | ||
getModel(modelId: string): Promise<DigitalTwinGetDigitalTwinModelResponse>; | ||
getModel(modelId: string, callback: TripleValueCallback<Model, msRest.HttpOperationResponse>): void; | ||
/** | ||
* @method invokeComponentCommand module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.invokeComponentCommand | ||
* @description Invoke a command on an component of a particular device and get the result of it. | ||
* @param {string} digitalTwinId The digital twin Id of the given device. | ||
* @param {string} componentName The component's name. | ||
* @param {string} commandName The command's name. | ||
* @param {string} argument The argument of a command. | ||
* @returns CommandResultResponse The result of the invoked command containing the result, status code, request ID and the parsed HttpResponse. | ||
* @memberof DigitalTwinServiceClient | ||
*/ | ||
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, argument: string): Promise<CommandResultResponse>; | ||
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, argument: string, callback: TripleValueCallback<CommandResult, msRest.HttpOperationResponse>): void; | ||
invokeCommand(digitalTwinId: string, commandName: string, argument: string): Promise<DigitalTwinInvokeRootLevelCommandResponse>; | ||
} | ||
//# sourceMappingURL=digital_twin_service_client.d.ts.map |
@@ -73,61 +73,26 @@ "use strict"; | ||
}; | ||
DigitalTwinServiceClient.prototype.getComponents = function (digitalTwinId, callback) { | ||
var _this = this; | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_005: [The `getDigitalTwinComponent` method shall call the `getComponent` method of the protocol layer with the given arguments.]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_006: [The `getDigitalTwinComponent` method shall call the callback with an error parameter if a callback is passed..]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_007: [The `getDigitalTwinComponent` method shall return error if the method of the protocol layer failed.]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_021: [The `getDigitalTwinComponent` method shall return a promise if there is no callback passed.]*/ | ||
return azure_iot_common_1.tripleValueCallbackToPromise(function (_callback) { | ||
_this._pl.digitalTwin.getComponents(digitalTwinId, function (err, result, request, response) { | ||
_callback(err, result, response); | ||
}); | ||
}, function (result, response) { return createResultWithHttpOperationResponse(result, response); }, callback); | ||
/** | ||
* @method invokeComponentCommand module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.invokeComponentCommand | ||
* @description Invoke a command on an component of a particular device and get the result of it. | ||
* @param {string} digitalTwinId The digital twin Id of the given device. | ||
* @param {string} componentName The component's name. | ||
* @param {string} commandName The command's name. | ||
* @param {string} argument The argument of a command. | ||
* @returns DigitalTwinInvokeComponentCommandResponse The result of the invoked command containing the result, status code, request ID and the parsed HttpResponse. | ||
* @memberof DigitalTwinServiceClient | ||
*/ | ||
DigitalTwinServiceClient.prototype.invokeComponentCommand = function (digitalTwinId, componentName, commandName, argument) { | ||
return this._pl.digitalTwin.invokeComponentCommand(digitalTwinId, componentName, commandName, argument); | ||
}; | ||
DigitalTwinServiceClient.prototype.updateComponent = function (digitalTwinId, patch, eTagOrCallback, callback) { | ||
var _this = this; | ||
var actualCallback = typeof eTagOrCallback === 'function' ? eTagOrCallback : callback; | ||
var actualEtag = typeof eTagOrCallback !== 'function' ? eTagOrCallback : undefined; | ||
var options = actualEtag ? { ifMatch: actualEtag } : undefined; | ||
return azure_iot_common_1.tripleValueCallbackToPromise(function (_callback) { | ||
_this._pl.digitalTwin.updateComponent(digitalTwinId, patch, options, function (err, result, request, response) { | ||
_callback(err, result, response); | ||
}); | ||
}, function (result, response) { return createResultWithHttpOperationResponse(result, response); }, actualCallback); | ||
/** | ||
* @method invokeCommand module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.invokeCommand | ||
* @description Invoke a command on an component of a particular device and get the result of it. | ||
* @param {string} digitalTwinId The digital twin Id of the given device. | ||
* @param {string} argument The argument of a command. | ||
* @returns DigitalTwinInvokeRootLevelCommandResponse The result of the invoked command containing the result, status code, request ID and the parsed HttpResponse. | ||
* @memberof DigitalTwinServiceClient | ||
*/ | ||
DigitalTwinServiceClient.prototype.invokeCommand = function (digitalTwinId, commandName, argument) { | ||
return this._pl.digitalTwin.invokeRootLevelCommand(digitalTwinId, commandName, argument); | ||
}; | ||
DigitalTwinServiceClient.prototype.getComponent = function (digitalTwinId, componentName, callback) { | ||
var _this = this; | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_005: [The `getDigitalTwinComponent` method shall call the `getComponent` method of the protocol layer with the given arguments.]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_006: [The `getDigitalTwinComponent` method shall call the callback with an error parameter if a callback is passed..]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_007: [The `getDigitalTwinComponent` method shall return error if the method of the protocol layer failed.]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_021: [The `getDigitalTwinComponent` method shall return a promise if there is no callback passed.]*/ | ||
return azure_iot_common_1.tripleValueCallbackToPromise(function (_callback) { | ||
_this._pl.digitalTwin.getComponent(digitalTwinId, componentName, function (err, result, request, response) { | ||
_callback(err, result, response); | ||
}); | ||
}, function (result, response) { return createResultWithHttpOperationResponse(result, response); }, callback); | ||
}; | ||
DigitalTwinServiceClient.prototype.getModel = function (modelId, callback) { | ||
var _this = this; | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_008: [The `getModel` method shall call the `getDigitalTwinModel` method of the protocol layer with the given argument.]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_009: [The `getModel` method shall call the callback with an error parameter if a callback is passed..]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_010: [The `getModel` method shall return error if the method of the protocol layer failed.]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_022: [The `getModel` method shall return a promise if there is no callback passed.]*/ | ||
return azure_iot_common_1.tripleValueCallbackToPromise(function (_callback) { | ||
_this._pl.digitalTwin.getDigitalTwinModel(modelId, function (err, result, request, response) { | ||
_callback(err, result, response); | ||
}); | ||
}, function (result, response) { return createResultWithHttpOperationResponse(result, response); }, callback); | ||
}; | ||
DigitalTwinServiceClient.prototype.invokeComponentCommand = function (digitalTwinId, componentName, commandName, argument, callback) { | ||
var _this = this; | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_017: [The `invokeComponentCommand` method shall call the `invokeComponentCommand1` method of the protocol layer with the given arguments.]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_018: [The `invokeComponentCommand` method shall call the callback with an error parameter if a callback is passed..]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_019: [The `invokeComponentCommand` method shall return error if the method of the protocol layer failed.]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_025: [The `invokeComponentCommand` method shall return a promise if there is no callback passed.]*/ | ||
return azure_iot_common_1.tripleValueCallbackToPromise(function (_callback) { | ||
_this._pl.digitalTwin.invokeComponentCommand1(digitalTwinId, componentName, commandName, argument, function (err, result, request, response) { | ||
_callback(err, result, response); | ||
}); | ||
}, function (result, response) { return createResultWithHttpOperationResponse(result, response); }, callback); | ||
}; | ||
return DigitalTwinServiceClient; | ||
@@ -134,0 +99,0 @@ }()); |
@@ -1,2 +0,2 @@ | ||
export { Desired, DesiredState, DigitalTwinGetComponentHeaders, DigitalTwinGetComponentsHeaders, DigitalTwinGetDigitalTwinHeaders, DigitalTwinGetDigitalTwinModelHeaders, DigitalTwinInterfaces, DigitalTwinInterfacesPatch, DigitalTwinInterfacesPatchInterfacesValue, DigitalTwinInterfacesPatchInterfacesValuePropertiesValue, DigitalTwinInterfacesPatchInterfacesValuePropertiesValueDesired, DigitalTwinInvokeComponentCommandHeaders, DigitalTwinInvokeComponentCommandHeaders1, DigitalTwinInvokeRootLevelCommandHeaders, DigitalTwinUpdateComponentHeaders, DigitalTwinUpdateDigitalTwinHeaders, InterfaceModel, Property, Reported } from "../models/mappers"; | ||
export { DigitalTwinGetDigitalTwinHeaders, DigitalTwinInvokeComponentCommandHeaders, DigitalTwinInvokeRootLevelCommandHeaders, DigitalTwinUpdateDigitalTwinHeaders } from "../models/mappers"; | ||
//# sourceMappingURL=digitalTwinMappers.d.ts.map |
@@ -11,21 +11,6 @@ "use strict"; | ||
var mappers_1 = require("../models/mappers"); | ||
exports.Desired = mappers_1.Desired; | ||
exports.DesiredState = mappers_1.DesiredState; | ||
exports.DigitalTwinGetComponentHeaders = mappers_1.DigitalTwinGetComponentHeaders; | ||
exports.DigitalTwinGetComponentsHeaders = mappers_1.DigitalTwinGetComponentsHeaders; | ||
exports.DigitalTwinGetDigitalTwinHeaders = mappers_1.DigitalTwinGetDigitalTwinHeaders; | ||
exports.DigitalTwinGetDigitalTwinModelHeaders = mappers_1.DigitalTwinGetDigitalTwinModelHeaders; | ||
exports.DigitalTwinInterfaces = mappers_1.DigitalTwinInterfaces; | ||
exports.DigitalTwinInterfacesPatch = mappers_1.DigitalTwinInterfacesPatch; | ||
exports.DigitalTwinInterfacesPatchInterfacesValue = mappers_1.DigitalTwinInterfacesPatchInterfacesValue; | ||
exports.DigitalTwinInterfacesPatchInterfacesValuePropertiesValue = mappers_1.DigitalTwinInterfacesPatchInterfacesValuePropertiesValue; | ||
exports.DigitalTwinInterfacesPatchInterfacesValuePropertiesValueDesired = mappers_1.DigitalTwinInterfacesPatchInterfacesValuePropertiesValueDesired; | ||
exports.DigitalTwinInvokeComponentCommandHeaders = mappers_1.DigitalTwinInvokeComponentCommandHeaders; | ||
exports.DigitalTwinInvokeComponentCommandHeaders1 = mappers_1.DigitalTwinInvokeComponentCommandHeaders1; | ||
exports.DigitalTwinInvokeRootLevelCommandHeaders = mappers_1.DigitalTwinInvokeRootLevelCommandHeaders; | ||
exports.DigitalTwinUpdateComponentHeaders = mappers_1.DigitalTwinUpdateComponentHeaders; | ||
exports.DigitalTwinUpdateDigitalTwinHeaders = mappers_1.DigitalTwinUpdateDigitalTwinHeaders; | ||
exports.InterfaceModel = mappers_1.InterfaceModel; | ||
exports.Property = mappers_1.Property; | ||
exports.Reported = mappers_1.Reported; | ||
//# sourceMappingURL=digitalTwinMappers.js.map |
@@ -26,8 +26,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
export declare const FaultInjectionProperties: msRest.CompositeMapper; | ||
export declare const DesiredState: msRest.CompositeMapper; | ||
export declare const Reported: msRest.CompositeMapper; | ||
export declare const Desired: msRest.CompositeMapper; | ||
export declare const Property: msRest.CompositeMapper; | ||
export declare const InterfaceModel: msRest.CompositeMapper; | ||
export declare const DigitalTwinInterfaces: msRest.CompositeMapper; | ||
export declare const CloudToDeviceMethod: msRest.CompositeMapper; | ||
@@ -40,16 +34,7 @@ export declare const JobRequest: msRest.CompositeMapper; | ||
export declare const CloudToDeviceMethodResult: msRest.CompositeMapper; | ||
export declare const DigitalTwinInterfacesPatchInterfacesValuePropertiesValueDesired: msRest.CompositeMapper; | ||
export declare const DigitalTwinInterfacesPatchInterfacesValuePropertiesValue: msRest.CompositeMapper; | ||
export declare const DigitalTwinInterfacesPatchInterfacesValue: msRest.CompositeMapper; | ||
export declare const DigitalTwinInterfacesPatch: msRest.CompositeMapper; | ||
export declare const RegistryManagerQueryIotHubHeaders: msRest.CompositeMapper; | ||
export declare const DigitalTwinGetDigitalTwinHeaders: msRest.CompositeMapper; | ||
export declare const DigitalTwinUpdateDigitalTwinHeaders: msRest.CompositeMapper; | ||
export declare const DigitalTwinGetComponentsHeaders: msRest.CompositeMapper; | ||
export declare const DigitalTwinUpdateComponentHeaders: msRest.CompositeMapper; | ||
export declare const DigitalTwinGetComponentHeaders: msRest.CompositeMapper; | ||
export declare const DigitalTwinGetDigitalTwinModelHeaders: msRest.CompositeMapper; | ||
export declare const DigitalTwinInvokeRootLevelCommandHeaders: msRest.CompositeMapper; | ||
export declare const DigitalTwinInvokeComponentCommandHeaders: msRest.CompositeMapper; | ||
export declare const DigitalTwinInvokeComponentCommandHeaders1: msRest.CompositeMapper; | ||
export declare const DigitalTwinInvokeRootLevelCommandHeaders: msRest.CompositeMapper; | ||
//# sourceMappingURL=mappers.d.ts.map |
@@ -946,2 +946,14 @@ "use strict"; | ||
} | ||
}, | ||
includeConfigurations: { | ||
serializedName: "includeConfigurations", | ||
type: { | ||
name: "Boolean" | ||
} | ||
}, | ||
configurationsBlobName: { | ||
serializedName: "configurationsBlobName", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
@@ -1027,143 +1039,2 @@ } | ||
}; | ||
exports.DesiredState = { | ||
serializedName: "DesiredState", | ||
type: { | ||
name: "Composite", | ||
className: "DesiredState", | ||
modelProperties: { | ||
code: { | ||
serializedName: "code", | ||
type: { | ||
name: "Number" | ||
} | ||
}, | ||
version: { | ||
serializedName: "version", | ||
type: { | ||
name: "Number" | ||
} | ||
}, | ||
description: { | ||
serializedName: "description", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.Reported = { | ||
serializedName: "Reported", | ||
type: { | ||
name: "Composite", | ||
className: "Reported", | ||
modelProperties: { | ||
value: { | ||
serializedName: "value", | ||
type: { | ||
name: "Object" | ||
} | ||
}, | ||
desiredState: { | ||
serializedName: "desiredState", | ||
type: { | ||
name: "Composite", | ||
className: "DesiredState" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.Desired = { | ||
serializedName: "Desired", | ||
type: { | ||
name: "Composite", | ||
className: "Desired", | ||
modelProperties: { | ||
value: { | ||
serializedName: "value", | ||
type: { | ||
name: "Object" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.Property = { | ||
serializedName: "Property", | ||
type: { | ||
name: "Composite", | ||
className: "Property", | ||
modelProperties: { | ||
reported: { | ||
serializedName: "reported", | ||
type: { | ||
name: "Composite", | ||
className: "Reported" | ||
} | ||
}, | ||
desired: { | ||
serializedName: "desired", | ||
type: { | ||
name: "Composite", | ||
className: "Desired" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.InterfaceModel = { | ||
serializedName: "Interface", | ||
type: { | ||
name: "Composite", | ||
className: "InterfaceModel", | ||
modelProperties: { | ||
name: { | ||
serializedName: "name", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
properties: { | ||
serializedName: "properties", | ||
type: { | ||
name: "Dictionary", | ||
value: { | ||
type: { | ||
name: "Composite", | ||
className: "Property" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.DigitalTwinInterfaces = { | ||
serializedName: "DigitalTwinInterfaces", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInterfaces", | ||
modelProperties: { | ||
interfaces: { | ||
serializedName: "interfaces", | ||
type: { | ||
name: "Dictionary", | ||
value: { | ||
type: { | ||
name: "Composite", | ||
className: "InterfaceModel" | ||
} | ||
} | ||
} | ||
}, | ||
version: { | ||
serializedName: "version", | ||
type: { | ||
name: "Number" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.CloudToDeviceMethod = { | ||
@@ -1507,75 +1378,2 @@ serializedName: "CloudToDeviceMethod", | ||
}; | ||
exports.DigitalTwinInterfacesPatchInterfacesValuePropertiesValueDesired = { | ||
serializedName: "DigitalTwinInterfacesPatch_interfacesValue_propertiesValue_desired", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInterfacesPatchInterfacesValuePropertiesValueDesired", | ||
modelProperties: { | ||
value: { | ||
serializedName: "value", | ||
type: { | ||
name: "Object" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.DigitalTwinInterfacesPatchInterfacesValuePropertiesValue = { | ||
serializedName: "DigitalTwinInterfacesPatch_interfacesValue_propertiesValue", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInterfacesPatchInterfacesValuePropertiesValue", | ||
modelProperties: { | ||
desired: { | ||
serializedName: "desired", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInterfacesPatchInterfacesValuePropertiesValueDesired" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.DigitalTwinInterfacesPatchInterfacesValue = { | ||
serializedName: "DigitalTwinInterfacesPatch_interfacesValue", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInterfacesPatchInterfacesValue", | ||
modelProperties: { | ||
properties: { | ||
serializedName: "properties", | ||
type: { | ||
name: "Dictionary", | ||
value: { | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInterfacesPatchInterfacesValuePropertiesValue" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.DigitalTwinInterfacesPatch = { | ||
serializedName: "DigitalTwinInterfacesPatch", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInterfacesPatch", | ||
modelProperties: { | ||
interfaces: { | ||
serializedName: "interfaces", | ||
type: { | ||
name: "Dictionary", | ||
value: { | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInterfacesPatchInterfacesValue" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.RegistryManagerQueryIotHubHeaders = { | ||
@@ -1638,86 +1436,8 @@ serializedName: "registrymanager-queryiothub-headers", | ||
}; | ||
exports.DigitalTwinGetComponentsHeaders = { | ||
serializedName: "digitaltwin-getcomponents-headers", | ||
exports.DigitalTwinInvokeRootLevelCommandHeaders = { | ||
serializedName: "digitaltwin-invokerootlevelcommand-headers", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinGetComponentsHeaders", | ||
className: "DigitalTwinInvokeRootLevelCommandHeaders", | ||
modelProperties: { | ||
eTag: { | ||
serializedName: "etag", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.DigitalTwinUpdateComponentHeaders = { | ||
serializedName: "digitaltwin-updatecomponent-headers", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinUpdateComponentHeaders", | ||
modelProperties: { | ||
eTag: { | ||
serializedName: "etag", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.DigitalTwinGetComponentHeaders = { | ||
serializedName: "digitaltwin-getcomponent-headers", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinGetComponentHeaders", | ||
modelProperties: { | ||
eTag: { | ||
serializedName: "etag", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.DigitalTwinGetDigitalTwinModelHeaders = { | ||
serializedName: "digitaltwin-getdigitaltwinmodel-headers", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinGetDigitalTwinModelHeaders", | ||
modelProperties: { | ||
eTag: { | ||
serializedName: "etag", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
xMsModelId: { | ||
serializedName: "x-ms-model-id", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
xMsModelResolutionStatus: { | ||
serializedName: "x-ms-model-resolution-status", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
xMsModelResolutionDescription: { | ||
serializedName: "x-ms-model-resolution-description", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.DigitalTwinInvokeComponentCommandHeaders = { | ||
serializedName: "digitaltwin-invokecomponentcommand-headers", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInvokeComponentCommandHeaders", | ||
modelProperties: { | ||
xMsCommandStatuscode: { | ||
@@ -1738,7 +1458,7 @@ serializedName: "x-ms-command-statuscode", | ||
}; | ||
exports.DigitalTwinInvokeComponentCommandHeaders1 = { | ||
exports.DigitalTwinInvokeComponentCommandHeaders = { | ||
serializedName: "digitaltwin-invokecomponentcommand-headers", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInvokeComponentCommandHeaders1", | ||
className: "DigitalTwinInvokeComponentCommandHeaders", | ||
modelProperties: { | ||
@@ -1760,23 +1480,2 @@ xMsCommandStatuscode: { | ||
}; | ||
exports.DigitalTwinInvokeRootLevelCommandHeaders = { | ||
serializedName: "digitaltwin-invokerootlevelcommand-headers", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInvokeRootLevelCommandHeaders", | ||
modelProperties: { | ||
xMsCommandStatuscode: { | ||
serializedName: "x-ms-command-statuscode", | ||
type: { | ||
name: "Number" | ||
} | ||
}, | ||
xMsRequestId: { | ||
serializedName: "x-ms-request-id", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
//# sourceMappingURL=mappers.js.map |
@@ -7,7 +7,4 @@ import * as msRest from "@azure/ms-rest-js"; | ||
export declare const deviceId: msRest.OperationURLParameter; | ||
export declare const digitalTwinId: msRest.OperationURLParameter; | ||
export declare const expand: msRest.OperationQueryParameter; | ||
export declare const id: msRest.OperationURLParameter; | ||
export declare const ifMatch: msRest.OperationParameter; | ||
export declare const interfaceName: msRest.OperationURLParameter; | ||
export declare const jobStatus: msRest.OperationQueryParameter; | ||
@@ -17,3 +14,2 @@ export declare const jobType: msRest.OperationQueryParameter; | ||
export declare const mid: msRest.OperationURLParameter; | ||
export declare const modelId: msRest.OperationURLParameter; | ||
export declare const moduleId: msRest.OperationURLParameter; | ||
@@ -20,0 +16,0 @@ export declare const responseTimeoutInSeconds: msRest.OperationQueryParameter; |
@@ -65,24 +65,2 @@ "use strict"; | ||
}; | ||
exports.digitalTwinId = { | ||
parameterPath: "digitalTwinId", | ||
mapper: { | ||
required: true, | ||
serializedName: "digitalTwinId", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; | ||
exports.expand = { | ||
parameterPath: [ | ||
"options", | ||
"expand" | ||
], | ||
mapper: { | ||
serializedName: "expand", | ||
type: { | ||
name: "Boolean" | ||
} | ||
} | ||
}; | ||
exports.id = { | ||
@@ -110,12 +88,2 @@ parameterPath: "id", | ||
}; | ||
exports.interfaceName = { | ||
parameterPath: "interfaceName", | ||
mapper: { | ||
required: true, | ||
serializedName: "interfaceName", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; | ||
exports.jobStatus = { | ||
@@ -165,12 +133,2 @@ parameterPath: [ | ||
}; | ||
exports.modelId = { | ||
parameterPath: "modelId", | ||
mapper: { | ||
required: true, | ||
serializedName: "modelId", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; | ||
exports.moduleId = { | ||
@@ -177,0 +135,0 @@ parameterPath: "moduleId", |
@@ -13,8 +13,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Retrieve a configuration for Iot Hub devices and modules by it identifier. | ||
@@ -38,8 +32,2 @@ * @param id | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Create or update the configuration for devices or modules of an IoT hub. An ETag must | ||
@@ -68,8 +56,2 @@ * not be specified for the create operation. An ETag must be specified for the update operation. | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Delete the configuration for devices or modules of an IoT hub. This request requires | ||
@@ -99,8 +81,2 @@ * the If-Match header. The client may specify the ETag for the device identity on the request in | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Get multiple configurations for devices or modules of an IoT Hub. Returns the specified | ||
@@ -122,8 +98,3 @@ * number of configurations for Iot Hub. Pagination is not supported. | ||
/** | ||
* Validates the target condition query and custom metric queries for a configuration. For IoT Hub | ||
* VNET related features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) | ||
* please use API version '2020-03-13'.These features are currently in general availability in the | ||
* East US, West US 2, and Southcentral US regions only. We are actively working to expand the | ||
* availability of these features to all regions by end of month May. For rest of the APIs please | ||
* continue using API version '2019-10-01' | ||
* Validates the target condition query and custom metric queries for a configuration. | ||
* @summary Validates the target condition query and custom metric queries for a configuration. | ||
@@ -148,8 +119,3 @@ * @param input | ||
* Applies the provided configuration content to the specified edge device. Configuration content | ||
* must have modules content For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* must have modules content | ||
* @summary Applies the provided configuration content to the specified edge device. | ||
@@ -156,0 +122,0 @@ * @param id Device ID. |
@@ -13,8 +13,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Gets a digital twin. | ||
@@ -38,8 +32,2 @@ * @param id Digital Twin ID. | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Updates a digital twin. | ||
@@ -66,131 +54,13 @@ * @param id Digital Twin ID. | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Gets the list of interfaces. | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.DigitalTwinGetComponentsResponse> | ||
*/ | ||
getComponents(digitalTwinId: string, options?: msRest.RequestOptionsBase): Promise<Models.DigitalTwinGetComponentsResponse>; | ||
/** | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param callback The callback | ||
*/ | ||
getComponents(digitalTwinId: string, callback: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): void; | ||
/** | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getComponents(digitalTwinId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): void; | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Updates desired properties of multiple interfaces. | ||
* Example URI: "digitalTwins/{digitalTwinId}/interfaces" | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param interfacesPatchInfo Multiple interfaces desired properties to update. | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.DigitalTwinUpdateComponentResponse> | ||
*/ | ||
updateComponent(digitalTwinId: string, interfacesPatchInfo: Models.DigitalTwinInterfacesPatch, options?: Models.DigitalTwinUpdateComponentOptionalParams): Promise<Models.DigitalTwinUpdateComponentResponse>; | ||
/** | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param interfacesPatchInfo Multiple interfaces desired properties to update. | ||
* @param callback The callback | ||
*/ | ||
updateComponent(digitalTwinId: string, interfacesPatchInfo: Models.DigitalTwinInterfacesPatch, callback: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): void; | ||
/** | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param interfacesPatchInfo Multiple interfaces desired properties to update. | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
updateComponent(digitalTwinId: string, interfacesPatchInfo: Models.DigitalTwinInterfacesPatch, options: Models.DigitalTwinUpdateComponentOptionalParams, callback: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): void; | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Gets the interface of given interfaceId. | ||
* Example URI: "digitalTwins/{digitalTwinId}/interfaces/{interfaceName}" | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param interfaceName The interface name. | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.DigitalTwinGetComponentResponse> | ||
*/ | ||
getComponent(digitalTwinId: string, interfaceName: string, options?: msRest.RequestOptionsBase): Promise<Models.DigitalTwinGetComponentResponse>; | ||
/** | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param interfaceName The interface name. | ||
* @param callback The callback | ||
*/ | ||
getComponent(digitalTwinId: string, interfaceName: string, callback: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): void; | ||
/** | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param interfaceName The interface name. | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getComponent(digitalTwinId: string, interfaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): void; | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Returns a DigitalTwin model definition for the given id. | ||
* If "expand" is present in the query parameters and id is for a device capability model then it | ||
* returns | ||
* the capability metamodel with expanded interface definitions. | ||
* @param modelId Model id Ex: <example>urn:contoso:TemperatureSensor:1</example> | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.DigitalTwinGetDigitalTwinModelResponse> | ||
*/ | ||
getDigitalTwinModel(modelId: string, options?: Models.DigitalTwinGetDigitalTwinModelOptionalParams): Promise<Models.DigitalTwinGetDigitalTwinModelResponse>; | ||
/** | ||
* @param modelId Model id Ex: <example>urn:contoso:TemperatureSensor:1</example> | ||
* @param callback The callback | ||
*/ | ||
getDigitalTwinModel(modelId: string, callback: msRest.ServiceCallback<any>): void; | ||
/** | ||
* @param modelId Model id Ex: <example>urn:contoso:TemperatureSensor:1</example> | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getDigitalTwinModel(modelId: string, options: Models.DigitalTwinGetDigitalTwinModelOptionalParams, callback: msRest.ServiceCallback<any>): void; | ||
/** | ||
* Invoke a digital twin interface command. | ||
* @summary Invoke a digital twin interface command. | ||
* @param digitalTwinId | ||
* @param interfaceName | ||
* Invoke a digital twin root level command. | ||
* @summary Invoke a digital twin root level command. | ||
* @param id | ||
* @param commandName | ||
* @param payload | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.DigitalTwinInvokeComponentCommandResponse> | ||
* @returns Promise<Models.DigitalTwinInvokeRootLevelCommandResponse> | ||
*/ | ||
invokeComponentCommand(digitalTwinId: string, interfaceName: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeComponentCommandOptionalParams): Promise<Models.DigitalTwinInvokeComponentCommandResponse>; | ||
invokeRootLevelCommand(id: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeRootLevelCommandOptionalParams): Promise<Models.DigitalTwinInvokeRootLevelCommandResponse>; | ||
/** | ||
* @param digitalTwinId | ||
* @param interfaceName | ||
* @param id | ||
* @param commandName | ||
@@ -200,6 +70,5 @@ * @param payload | ||
*/ | ||
invokeComponentCommand(digitalTwinId: string, interfaceName: string, commandName: string, payload: any, callback: msRest.ServiceCallback<any>): void; | ||
invokeRootLevelCommand(id: string, commandName: string, payload: any, callback: msRest.ServiceCallback<any>): void; | ||
/** | ||
* @param digitalTwinId | ||
* @param interfaceName | ||
* @param id | ||
* @param commandName | ||
@@ -210,3 +79,3 @@ * @param payload | ||
*/ | ||
invokeComponentCommand(digitalTwinId: string, interfaceName: string, commandName: string, payload: any, options: Models.DigitalTwinInvokeComponentCommandOptionalParams, callback: msRest.ServiceCallback<any>): void; | ||
invokeRootLevelCommand(id: string, commandName: string, payload: any, options: Models.DigitalTwinInvokeRootLevelCommandOptionalParams, callback: msRest.ServiceCallback<any>): void; | ||
/** | ||
@@ -220,5 +89,5 @@ * Invoke a digital twin command. | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.DigitalTwinInvokeComponentCommandHeaders12> | ||
* @returns Promise<Models.DigitalTwinInvokeComponentCommandResponse> | ||
*/ | ||
invokeComponentCommand1(id: string, componentPath: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeComponentCommand1OptionalParams): Promise<Models.DigitalTwinInvokeComponentCommandHeaders12>; | ||
invokeComponentCommand(id: string, componentPath: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeComponentCommandOptionalParams): Promise<Models.DigitalTwinInvokeComponentCommandResponse>; | ||
/** | ||
@@ -231,3 +100,3 @@ * @param id | ||
*/ | ||
invokeComponentCommand1(id: string, componentPath: string, commandName: string, payload: any, callback: msRest.ServiceCallback<any>): void; | ||
invokeComponentCommand(id: string, componentPath: string, commandName: string, payload: any, callback: msRest.ServiceCallback<any>): void; | ||
/** | ||
@@ -241,29 +110,4 @@ * @param id | ||
*/ | ||
invokeComponentCommand1(id: string, componentPath: string, commandName: string, payload: any, options: Models.DigitalTwinInvokeComponentCommand1OptionalParams, callback: msRest.ServiceCallback<any>): void; | ||
/** | ||
* Invoke a digital twin root level command. | ||
* @summary Invoke a digital twin root level command. | ||
* @param id | ||
* @param commandName | ||
* @param payload | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.DigitalTwinInvokeRootLevelCommandResponse> | ||
*/ | ||
invokeRootLevelCommand(id: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeRootLevelCommandOptionalParams): Promise<Models.DigitalTwinInvokeRootLevelCommandResponse>; | ||
/** | ||
* @param id | ||
* @param commandName | ||
* @param payload | ||
* @param callback The callback | ||
*/ | ||
invokeRootLevelCommand(id: string, commandName: string, payload: any, callback: msRest.ServiceCallback<any>): void; | ||
/** | ||
* @param id | ||
* @param commandName | ||
* @param payload | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
invokeRootLevelCommand(id: string, commandName: string, payload: any, options: Models.DigitalTwinInvokeRootLevelCommandOptionalParams, callback: msRest.ServiceCallback<any>): void; | ||
invokeComponentCommand(id: string, componentPath: string, commandName: string, payload: any, options: Models.DigitalTwinInvokeComponentCommandOptionalParams, callback: msRest.ServiceCallback<any>): void; | ||
} | ||
//# sourceMappingURL=digitalTwin.d.ts.map |
@@ -11,13 +11,2 @@ "use strict"; | ||
*/ | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -49,38 +38,11 @@ var msRest = require("@azure/ms-rest-js"); | ||
}; | ||
DigitalTwin.prototype.getComponents = function (digitalTwinId, options, callback) { | ||
DigitalTwin.prototype.invokeRootLevelCommand = function (id, commandName, payload, options, callback) { | ||
return this.client.sendOperationRequest({ | ||
digitalTwinId: digitalTwinId, | ||
options: options | ||
}, getComponentsOperationSpec, callback); | ||
}; | ||
DigitalTwin.prototype.updateComponent = function (digitalTwinId, interfacesPatchInfo, options, callback) { | ||
return this.client.sendOperationRequest({ | ||
digitalTwinId: digitalTwinId, | ||
interfacesPatchInfo: interfacesPatchInfo, | ||
options: options | ||
}, updateComponentOperationSpec, callback); | ||
}; | ||
DigitalTwin.prototype.getComponent = function (digitalTwinId, interfaceName, options, callback) { | ||
return this.client.sendOperationRequest({ | ||
digitalTwinId: digitalTwinId, | ||
interfaceName: interfaceName, | ||
options: options | ||
}, getComponentOperationSpec, callback); | ||
}; | ||
DigitalTwin.prototype.getDigitalTwinModel = function (modelId, options, callback) { | ||
return this.client.sendOperationRequest({ | ||
modelId: modelId, | ||
options: options | ||
}, getDigitalTwinModelOperationSpec, callback); | ||
}; | ||
DigitalTwin.prototype.invokeComponentCommand = function (digitalTwinId, interfaceName, commandName, payload, options, callback) { | ||
return this.client.sendOperationRequest({ | ||
digitalTwinId: digitalTwinId, | ||
interfaceName: interfaceName, | ||
id: id, | ||
commandName: commandName, | ||
payload: payload, | ||
options: options | ||
}, invokeComponentCommandOperationSpec, callback); | ||
}, invokeRootLevelCommandOperationSpec, callback); | ||
}; | ||
DigitalTwin.prototype.invokeComponentCommand1 = function (id, componentPath, commandName, payload, options, callback) { | ||
DigitalTwin.prototype.invokeComponentCommand = function (id, componentPath, commandName, payload, options, callback) { | ||
return this.client.sendOperationRequest({ | ||
@@ -92,12 +54,4 @@ id: id, | ||
options: options | ||
}, invokeComponentCommand1OperationSpec, callback); | ||
}, invokeComponentCommandOperationSpec, callback); | ||
}; | ||
DigitalTwin.prototype.invokeRootLevelCommand = function (id, commandName, payload, options, callback) { | ||
return this.client.sendOperationRequest({ | ||
id: id, | ||
commandName: commandName, | ||
payload: payload, | ||
options: options | ||
}, invokeRootLevelCommandOperationSpec, callback); | ||
}; | ||
return DigitalTwin; | ||
@@ -166,97 +120,7 @@ }()); | ||
}; | ||
var getComponentsOperationSpec = { | ||
httpMethod: "GET", | ||
path: "digitalTwins/{digitalTwinId}/interfaces", | ||
urlParameters: [ | ||
Parameters.digitalTwinId | ||
], | ||
queryParameters: [ | ||
Parameters.apiVersion | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.DigitalTwinInterfaces, | ||
headersMapper: Mappers.DigitalTwinGetComponentsHeaders | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var updateComponentOperationSpec = { | ||
httpMethod: "PATCH", | ||
path: "digitalTwins/{digitalTwinId}/interfaces", | ||
urlParameters: [ | ||
Parameters.digitalTwinId | ||
], | ||
queryParameters: [ | ||
Parameters.apiVersion | ||
], | ||
headerParameters: [ | ||
Parameters.ifMatch | ||
], | ||
requestBody: { | ||
parameterPath: "interfacesPatchInfo", | ||
mapper: __assign(__assign({}, Mappers.DigitalTwinInterfacesPatch), { required: true }) | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.DigitalTwinInterfaces, | ||
headersMapper: Mappers.DigitalTwinUpdateComponentHeaders | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var getComponentOperationSpec = { | ||
httpMethod: "GET", | ||
path: "digitalTwins/{digitalTwinId}/interfaces/{interfaceName}", | ||
urlParameters: [ | ||
Parameters.digitalTwinId, | ||
Parameters.interfaceName | ||
], | ||
queryParameters: [ | ||
Parameters.apiVersion | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.DigitalTwinInterfaces, | ||
headersMapper: Mappers.DigitalTwinGetComponentHeaders | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var getDigitalTwinModelOperationSpec = { | ||
httpMethod: "GET", | ||
path: "digitalTwins/models/{modelId}", | ||
urlParameters: [ | ||
Parameters.modelId | ||
], | ||
queryParameters: [ | ||
Parameters.expand, | ||
Parameters.apiVersion | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "Object" | ||
} | ||
}, | ||
headersMapper: Mappers.DigitalTwinGetDigitalTwinModelHeaders | ||
}, | ||
204: { | ||
headersMapper: Mappers.DigitalTwinGetDigitalTwinModelHeaders | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var invokeComponentCommandOperationSpec = { | ||
var invokeRootLevelCommandOperationSpec = { | ||
httpMethod: "POST", | ||
path: "digitalTwins/{digitalTwinId}/interfaces/{interfaceName}/commands/{commandName}", | ||
path: "digitaltwins/{id}/commands/{commandName}", | ||
urlParameters: [ | ||
Parameters.digitalTwinId, | ||
Parameters.interfaceName, | ||
Parameters.id, | ||
Parameters.commandName | ||
@@ -287,3 +151,3 @@ ], | ||
}, | ||
headersMapper: Mappers.DigitalTwinInvokeComponentCommandHeaders | ||
headersMapper: Mappers.DigitalTwinInvokeRootLevelCommandHeaders | ||
}, | ||
@@ -294,3 +158,3 @@ default: {} | ||
}; | ||
var invokeComponentCommand1OperationSpec = { | ||
var invokeComponentCommandOperationSpec = { | ||
httpMethod: "POST", | ||
@@ -326,3 +190,3 @@ path: "digitaltwins/{id}/components/{componentPath}/commands/{commandName}", | ||
}, | ||
headersMapper: Mappers.DigitalTwinInvokeComponentCommandHeaders1 | ||
headersMapper: Mappers.DigitalTwinInvokeComponentCommandHeaders | ||
}, | ||
@@ -333,38 +197,2 @@ default: {} | ||
}; | ||
var invokeRootLevelCommandOperationSpec = { | ||
httpMethod: "POST", | ||
path: "digitaltwins/{id}/commands/{commandName}", | ||
urlParameters: [ | ||
Parameters.id, | ||
Parameters.commandName | ||
], | ||
queryParameters: [ | ||
Parameters.apiVersion, | ||
Parameters.connectTimeoutInSeconds, | ||
Parameters.responseTimeoutInSeconds | ||
], | ||
requestBody: { | ||
parameterPath: "payload", | ||
mapper: { | ||
required: true, | ||
serializedName: "payload", | ||
type: { | ||
name: "Object" | ||
} | ||
} | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "Object" | ||
} | ||
}, | ||
headersMapper: Mappers.DigitalTwinInvokeRootLevelCommandHeaders | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
//# sourceMappingURL=digitalTwin.js.map |
@@ -13,8 +13,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Get FaultInjection entity | ||
@@ -35,8 +29,2 @@ * @param [options] The optional parameters | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Create or update FaultInjection entity | ||
@@ -43,0 +31,0 @@ * @param value |
@@ -15,8 +15,3 @@ import * as msRest from "@azure/ms-rest-js"; | ||
* capability is only available in the standard tier IoT Hub. For more information, see [Choose the | ||
* right IoT Hub tier](https://aka.ms/scaleyouriotsolution). For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* right IoT Hub tier](https://aka.ms/scaleyouriotsolution). | ||
* @summary This method is used to retrieve feedback of a cloud-to-device message. | ||
@@ -40,9 +35,3 @@ * @param [options] The optional parameters | ||
* message is deleted from the feedback queue. See | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging for more information. For | ||
* IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging for more information. | ||
* @summary This method completes a feedback message. | ||
@@ -69,9 +58,3 @@ * @param lockToken Lock token. | ||
* message is deleted from the feedback queue. See | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging for more information. For | ||
* IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging for more information. | ||
* @summary This method abandons a feedback message. | ||
@@ -78,0 +61,0 @@ * @param lockToken Lock Token. |
@@ -15,8 +15,3 @@ import * as msRest from "@azure/ms-rest-js"; | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities | ||
* for more information. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* for more information. | ||
* @summary Create a new import/export job on an IoT hub. | ||
@@ -42,8 +37,3 @@ * @param jobProperties Specifies the job specification. | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities | ||
* for more information. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* for more information. | ||
* @summary Gets the status of all import/export jobs in an iot hub | ||
@@ -66,8 +56,3 @@ * @param [options] The optional parameters | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities | ||
* for more information. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* for more information. | ||
* @summary Gets the status of an import or export job in an iot hub | ||
@@ -93,8 +78,3 @@ * @param id Job ID. | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities | ||
* for more information. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* for more information. | ||
* @summary Cancels an import or export job in an IoT hub. | ||
@@ -119,9 +99,3 @@ * @param id Job ID. | ||
* Retrieves details of a scheduled job from an IoT hub. See | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-jobs for more information. For | ||
* IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-jobs for more information. | ||
* @summary Retrieves details of a scheduled job from an IoT hub. | ||
@@ -147,8 +121,3 @@ * @param id Job ID. | ||
* time. See https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-jobs for more | ||
* information. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* information. | ||
* @summary Creates a new job to schedule update twins or device direct methods on an IoT hub at a | ||
@@ -177,9 +146,3 @@ * scheduled time. | ||
* Cancels a scheduled job on an IoT hub. See | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-jobs for more information. For | ||
* IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-jobs for more information. | ||
* @summary Cancels a scheduled job on an IoT hub. | ||
@@ -205,8 +168,3 @@ * @param id Job ID. | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language for more information. | ||
* Pagination of results is supported. This returns information about jobs only. For IoT Hub VNET | ||
* related features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please | ||
* use API version '2020-03-13'.These features are currently in general availability in the East | ||
* US, West US 2, and Southcentral US regions only. We are actively working to expand the | ||
* availability of these features to all regions by end of month May. For rest of the APIs please | ||
* continue using API version '2019-10-01' | ||
* Pagination of results is supported. This returns information about jobs only. | ||
* @summary Query an IoT hub to retrieve information regarding jobs using the IoT Hub query | ||
@@ -213,0 +171,0 @@ * language |
@@ -13,8 +13,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Retrieves statistics about device identities in the IoT hub’s identity registry. | ||
@@ -35,8 +29,2 @@ * @param [options] The optional parameters | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Retrieves service statistics for this IoT hub’s identity registry. | ||
@@ -57,12 +45,6 @@ * @param [options] The optional parameters | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Get the identities of multiple devices from the IoT hub identity registry. Not | ||
* recommended. Use the IoT Hub query language to retrieve device twin and device identity | ||
* information. See https://docs.microsoft.com/en-us/rest/api/iothub/service/queryiothub and | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-query-language for more | ||
* information. See https://docs.microsoft.com/rest/api/iothub/service/registrymanager/queryiothub | ||
* and https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language for more | ||
* information. | ||
@@ -88,8 +70,2 @@ * @param [options] The optional parameters | ||
* storage(https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities). | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Create, update, or delete the identities of multiple devices from the IoT hub identity | ||
@@ -116,9 +92,3 @@ * registry. | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language for more information. | ||
* Pagination of results is supported. This returns information about device twins only. For IoT | ||
* Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* Pagination of results is supported. This returns information about device twins only. | ||
* @summary Query an IoT hub to retrieve information regarding device twins using a SQL-like | ||
@@ -143,8 +113,3 @@ * language. | ||
/** | ||
* Retrieve a device from the identity registry of an IoT hub. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* Retrieve a device from the identity registry of an IoT hub. | ||
* @summary Retrieve a device from the identity registry of an IoT hub. | ||
@@ -170,8 +135,3 @@ * @param id Device ID. | ||
* not be specified for the create operation. An ETag must be specified for the update operation. | ||
* Note that generationId and deviceId cannot be updated by the user. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* Note that generationId and deviceId cannot be updated by the user. | ||
* @summary Create or update the identity of a device in the identity registry of an IoT hub. | ||
@@ -204,8 +164,3 @@ * @param id Device ID. | ||
* it was retrieved by the client. To force an unconditional delete, set If-Match to the wildcard | ||
* character (*). For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* character (*). | ||
* @summary Delete the identity of a device from the identity registry of an IoT hub. | ||
@@ -229,8 +184,3 @@ * @param id Device ID. | ||
/** | ||
* Deletes all the pending commands for this device from the IoT hub For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* Deletes all the pending commands for this device from the IoT hub | ||
* @summary Deletes all the pending commands for this device from the IoT hub. | ||
@@ -254,8 +204,2 @@ * @param id Device ID. | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Retrieve all the module identities on the device. | ||
@@ -279,8 +223,2 @@ * @param id Device ID. | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Retrieve the specified module identity on the device. | ||
@@ -307,8 +245,2 @@ * @param id Device ID. | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Create or update the module identity for device in IoT hub. An ETag must not be | ||
@@ -340,8 +272,2 @@ * specified for the create operation. An ETag must be specified for the update operation. Note | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Delete the module identity for device of an IoT hub. This request requires the If-Match | ||
@@ -348,0 +274,0 @@ * header. The client may specify the ETag for the device identity on the request in order to |
@@ -14,8 +14,3 @@ import * as msRest from "@azure/ms-rest-js"; | ||
* Gets a device twin. See https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins | ||
* for more information. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* for more information. | ||
* @summary Gets a device twin. | ||
@@ -40,9 +35,3 @@ * @param id Device ID. | ||
* Replaces a device twin. See | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins for more information. For | ||
* IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins for more information. | ||
* @summary Replaces tags and desired properties of a device twin. | ||
@@ -70,9 +59,3 @@ * @param id Device ID. | ||
* Updates a device twin. See | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins for more information. For | ||
* IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins for more information. | ||
* @summary Updates tags and desired properties of a device twin. | ||
@@ -100,8 +83,3 @@ * @param id Device ID. | ||
* Gets a module twin. See https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins | ||
* for more information. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* for more information. | ||
* @summary Gets a module twin. | ||
@@ -129,9 +107,3 @@ * @param id Device ID. | ||
* Replaces a module twin. See | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins for more information. For | ||
* IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins for more information. | ||
* @summary Replaces tags and desired properties of a module twin. | ||
@@ -162,9 +134,3 @@ * @param id Device ID. | ||
* Updates a module twin. See | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins for more information. For | ||
* IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins for more information. | ||
* @summary Updates tags and desired properties of a module twin. | ||
@@ -171,0 +137,0 @@ * @param id Device ID. |
{ | ||
"name": "azure-iot-digitaltwins-service", | ||
"version": "1.0.0-pnp-refresh.1", | ||
"version": "1.0.0-pnp-refresh.2", | ||
"description": "Azure IoT Digital Twins Preview", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# Azure IoT Digital Twins Client Library | ||
# Azure IoT Digital Twins Service Client Library | ||
@@ -19,3 +19,3 @@ **PREVIEW - WILL LIKELY HAVE BREAKING CHANGES** | ||
`npm install azure-iot-digitaltwins-service` to get the latest version. | ||
`npm install azure-iot-digitaltwins-service@pnp-refresh` to get the latest version. | ||
@@ -22,0 +22,0 @@ Features |
@@ -16,3 +16,3 @@ /* | ||
*/ | ||
export type DigitalTwin = Models.DigitalTwinGetComponentsHeaders | undefined; | ||
export type DigitalTwin = Models.DigitalTwinGetDigitalTwinHeaders | undefined; | ||
@@ -25,23 +25,4 @@ /** | ||
/** | ||
* @export | ||
* @type DigitalTwinComponents Type alias to simplify the auto generated type's name | ||
*/ | ||
export type DigitalTwinComponents = Models.DigitalTwinInterfaces | undefined; | ||
/** | ||
* @export | ||
* @type DigitalTwinGetComponentResponse Type alias to simplify the auto generated type's name | ||
*/ | ||
export type DigitalTwinGetComponentResponse = Models.DigitalTwinGetComponentResponse; | ||
/** | ||
* @export | ||
* @type DigitalTwinGetComponentsResponse Type alias to simplify the auto generated type's name | ||
*/ | ||
export type DigitalTwinGetComponentsResponse = Models.DigitalTwinGetComponentsResponse; | ||
/** | ||
* @export | ||
* @type DigitalTwinUpdateResponse Type alias to simplify the auto generated type's name | ||
@@ -53,47 +34,13 @@ */ | ||
* @export | ||
* @type Model Type alias to simplify the auto generated type's name | ||
* @type DigitalTwinInvokeComponentCommandResponse Type alias to simplify the auto generated type's name | ||
*/ | ||
export type Model = Models.DigitalTwinGetDigitalTwinModelResponse; | ||
export type DigitalTwinInvokeComponentCommandResponse = Models.DigitalTwinInvokeComponentCommandResponse | undefined; | ||
/** | ||
* @export | ||
* @type DigitalTwinGetDigitalTwinModelResponse Type alias to simplify the auto generated type's name | ||
* @type DigitalTwinInvokeRootLevelCommandResponse Type alias to simplify the auto generated type's name | ||
*/ | ||
export type DigitalTwinGetDigitalTwinModelResponse = Models.DigitalTwinGetDigitalTwinModelResponse; | ||
export type DigitalTwinInvokeRootLevelCommandResponse = Models.DigitalTwinInvokeRootLevelCommandResponse | undefined; | ||
/** | ||
* @export | ||
* @type DigitalTwinComponentsPatch Type alias to simplify the auto generated type's name | ||
*/ | ||
export type DigitalTwinComponentsPatch = Models.DigitalTwinInterfacesPatch; | ||
/** | ||
* @export | ||
* @type DigitalTwinUpdateComponentResponse Type alias to simplify the auto generated type's name | ||
*/ | ||
export type DigitalTwinUpdateComponentResponse = Models.DigitalTwinUpdateComponentResponse | undefined; | ||
/** | ||
* @export | ||
* @interface CommandResult Base interface containing the following fields: | ||
* @field result The return value of an invoked command | ||
* @field statusCode The status code of the executed command | ||
* @field requestId Identifier of the invoked command | ||
*/ | ||
export interface CommandResult { | ||
result?: any; | ||
statusCode?: number; | ||
requestId?: string; | ||
} | ||
/** | ||
* @export | ||
* @interface CommandResultResponse Extended command result interface adding the following field: | ||
* @field _response The full and parsed Http response for debugging purposes | ||
*/ | ||
export interface CommandResultResponse extends CommandResult { | ||
_response?: msRest.HttpOperationResponse; | ||
} | ||
/** | ||
* @private | ||
@@ -197,112 +144,26 @@ * Helper function to create extended result type | ||
/** | ||
* @method getComponents module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.getDigitalTwinComponent | ||
* @description Retrieve all components of the Digital Twin of a given device. | ||
* @param {string} digitalTwinId The digital twin Id of the given device. | ||
* @param {string} componentName The name of the requested component. | ||
* @returns DigitalTwinGetComponentsResponse The return object containing the component plus the HttpResponse. | ||
* @method invokeComponentCommand module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.invokeComponentCommand | ||
* @description Invoke a command on an component of a particular device and get the result of it. | ||
* @param {string} digitalTwinId The digital twin Id of the given device. | ||
* @param {string} componentName The component's name. | ||
* @param {string} commandName The command's name. | ||
* @param {string} argument The argument of a command. | ||
* @returns DigitalTwinInvokeComponentCommandResponse The result of the invoked command containing the result, status code, request ID and the parsed HttpResponse. | ||
* @memberof DigitalTwinServiceClient | ||
*/ | ||
getComponents(digitalTwinId: string): Promise<DigitalTwinGetComponentsResponse>; | ||
getComponents(digitalTwinId: string, callback: TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>): void; | ||
getComponents(digitalTwinId: string, callback?: TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>): void | Promise<DigitalTwinGetComponentsResponse> { | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_005: [The `getDigitalTwinComponent` method shall call the `getComponent` method of the protocol layer with the given arguments.]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_006: [The `getDigitalTwinComponent` method shall call the callback with an error parameter if a callback is passed..]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_007: [The `getDigitalTwinComponent` method shall return error if the method of the protocol layer failed.]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_021: [The `getDigitalTwinComponent` method shall return a promise if there is no callback passed.]*/ | ||
return tripleValueCallbackToPromise<DigitalTwinComponents, msRest.HttpOperationResponse, DigitalTwinGetComponentsResponse>((_callback) => { | ||
this._pl.digitalTwin.getComponents(digitalTwinId, (err, result, request, response) => { | ||
_callback(err as Error, result, response); | ||
}); | ||
}, (result, response) => createResultWithHttpOperationResponse<DigitalTwinComponents, DigitalTwinGetComponentsResponse>(result, response), callback as TripleValueCallback<DigitalTwinComponents, msRest.HttpOperationResponse>); | ||
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, argument: string): Promise<DigitalTwinInvokeComponentCommandResponse>{ | ||
return this._pl.digitalTwin.invokeComponentCommand(digitalTwinId, componentName, commandName, argument); | ||
} | ||
/** | ||
* @method updateComponent module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.updateComponent | ||
* @description Updates desired properties of multiple copmonents. | ||
* @param {string} digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId is optional. | ||
* @param {DigitalTwinComponentsPatch} patch Desired properties to update. | ||
* @param {string} eTag The eTag for identifying the patch. | ||
* @returns DigitalTwinUpdateComponentResponse The return object containing the updated Component plus the HttpResponse. | ||
* @method invokeCommand module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.invokeCommand | ||
* @description Invoke a command on an component of a particular device and get the result of it. | ||
* @param {string} digitalTwinId The digital twin Id of the given device. | ||
* @param {string} argument The argument of a command. | ||
* @returns DigitalTwinInvokeRootLevelCommandResponse The result of the invoked command containing the result, status code, request ID and the parsed HttpResponse. | ||
* @memberof DigitalTwinServiceClient | ||
*/ | ||
updateComponent(digitalTwinId: string, patch: DigitalTwinComponentsPatch, eTag?: string): Promise<DigitalTwinUpdateComponentResponse>; | ||
updateComponent(digitalTwinId: string, patch: DigitalTwinComponentsPatch, eTagOrCallback?: string | TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>, callback?: TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>): void; | ||
updateComponent(digitalTwinId: string, patch: DigitalTwinComponentsPatch, eTagOrCallback?: string | TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>, callback?: TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>): void | Promise<DigitalTwinUpdateComponentResponse> { | ||
const actualCallback = typeof eTagOrCallback === 'function' ? eTagOrCallback : callback; | ||
const actualEtag = typeof eTagOrCallback !== 'function' ? eTagOrCallback : undefined; | ||
const options = actualEtag ? {ifMatch: actualEtag} : undefined; | ||
return tripleValueCallbackToPromise<DigitalTwinComponents, msRest.HttpOperationResponse, DigitalTwinUpdateComponentResponse>((_callback) => { | ||
this._pl.digitalTwin.updateComponent(digitalTwinId, patch, options as Models.DigitalTwinUpdateComponentOptionalParams, (err, result, request, response) => { | ||
_callback(err as Error, result, response); | ||
}); | ||
}, (result, response) => createResultWithHttpOperationResponse<DigitalTwinComponents, DigitalTwinUpdateComponentResponse>(result, response), actualCallback as TripleValueCallback<DigitalTwinComponents, msRest.HttpOperationResponse>); | ||
invokeCommand(digitalTwinId: string, commandName: string, argument: string): Promise<DigitalTwinInvokeRootLevelCommandResponse>{ | ||
return this._pl.digitalTwin.invokeRootLevelCommand(digitalTwinId, commandName, argument); | ||
} | ||
/** | ||
* @method getComponent module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.getDigitalTwinComponent | ||
* @description Retrieve a component of the Digital Twin of a given device. | ||
* @param {string} digitalTwinId The digital twin Id of the given device. | ||
* @param {string} componentName The name of the requested component. | ||
* @returns DigitalTwinGetComponentResponse The return object containing the component plus the HttpResponse. | ||
* @memberof DigitalTwinServiceClient | ||
*/ | ||
getComponent(digitalTwinId: string, componentName: string): Promise<DigitalTwinGetComponentResponse>; | ||
getComponent(digitalTwinId: string, componentName: string, callback: TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>): void; | ||
getComponent(digitalTwinId: string, componentName: string, callback?: TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>): void | Promise<DigitalTwinGetComponentResponse> { | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_005: [The `getDigitalTwinComponent` method shall call the `getComponent` method of the protocol layer with the given arguments.]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_006: [The `getDigitalTwinComponent` method shall call the callback with an error parameter if a callback is passed..]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_007: [The `getDigitalTwinComponent` method shall return error if the method of the protocol layer failed.]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_021: [The `getDigitalTwinComponent` method shall return a promise if there is no callback passed.]*/ | ||
return tripleValueCallbackToPromise<DigitalTwinComponents, msRest.HttpOperationResponse, DigitalTwinGetComponentResponse>((_callback) => { | ||
this._pl.digitalTwin.getComponent(digitalTwinId, componentName, (err, result, request, response) => { | ||
_callback(err as Error, result, response); | ||
}); | ||
}, (result, response) => createResultWithHttpOperationResponse<DigitalTwinComponents, DigitalTwinGetComponentResponse>(result, response), callback as TripleValueCallback<DigitalTwinComponents, msRest.HttpOperationResponse>); | ||
} | ||
/** | ||
* @method getModel module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.getModel | ||
* @description Retrieve a Digital Twin Model. | ||
* @param {string} modelId The model Id of the requested model. | ||
* @returns DigitalTwinGetDigitalTwinModelResponse The return object containing the Model plus the HttpResponse. | ||
* @memberof DigitalTwinServiceClient | ||
*/ | ||
getModel(modelId: string): Promise<DigitalTwinGetDigitalTwinModelResponse>; | ||
getModel(modelId: string, callback: TripleValueCallback<Model, msRest.HttpOperationResponse>): void; | ||
getModel(modelId: string, callback?: TripleValueCallback<Model, msRest.HttpOperationResponse>): void | Promise<DigitalTwinGetDigitalTwinModelResponse> { | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_008: [The `getModel` method shall call the `getDigitalTwinModel` method of the protocol layer with the given argument.]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_009: [The `getModel` method shall call the callback with an error parameter if a callback is passed..]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_010: [The `getModel` method shall return error if the method of the protocol layer failed.]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_022: [The `getModel` method shall return a promise if there is no callback passed.]*/ | ||
return tripleValueCallbackToPromise<Model, msRest.HttpOperationResponse, DigitalTwinGetDigitalTwinModelResponse>((_callback) => { | ||
this._pl.digitalTwin.getDigitalTwinModel(modelId, (err, result, request, response) => { | ||
_callback(err as Error, result, response); | ||
}); | ||
}, (result, response) => createResultWithHttpOperationResponse<Model, DigitalTwinGetDigitalTwinModelResponse>(result, response), callback as TripleValueCallback<Model, msRest.HttpOperationResponse>); | ||
} | ||
/** | ||
* @method invokeComponentCommand module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.invokeComponentCommand | ||
* @description Invoke a command on an component of a particular device and get the result of it. | ||
* @param {string} digitalTwinId The digital twin Id of the given device. | ||
* @param {string} componentName The component's name. | ||
* @param {string} commandName The command's name. | ||
* @param {string} argument The argument of a command. | ||
* @returns CommandResultResponse The result of the invoked command containing the result, status code, request ID and the parsed HttpResponse. | ||
* @memberof DigitalTwinServiceClient | ||
*/ | ||
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, argument: string): Promise<CommandResultResponse>; | ||
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, argument: string, callback: TripleValueCallback<CommandResult, msRest.HttpOperationResponse>): void; | ||
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, argument: string, callback?: TripleValueCallback<CommandResult, msRest.HttpOperationResponse>): void | Promise<CommandResultResponse> { | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_017: [The `invokeComponentCommand` method shall call the `invokeComponentCommand1` method of the protocol layer with the given arguments.]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_018: [The `invokeComponentCommand` method shall call the callback with an error parameter if a callback is passed..]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_019: [The `invokeComponentCommand` method shall return error if the method of the protocol layer failed.]*/ | ||
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_025: [The `invokeComponentCommand` method shall return a promise if there is no callback passed.]*/ | ||
return tripleValueCallbackToPromise<CommandResult, msRest.HttpOperationResponse, CommandResultResponse>((_callback) => { | ||
this._pl.digitalTwin.invokeComponentCommand1(digitalTwinId, componentName, commandName, argument, (err, result, request, response) => { | ||
_callback(err as Error, result, response); | ||
}); | ||
}, (result, response) => createResultWithHttpOperationResponse<CommandResult, CommandResultResponse>(result, response), callback as TripleValueCallback<CommandResult, msRest.HttpOperationResponse>); | ||
} | ||
} |
@@ -10,21 +10,6 @@ /* | ||
export { | ||
Desired, | ||
DesiredState, | ||
DigitalTwinGetComponentHeaders, | ||
DigitalTwinGetComponentsHeaders, | ||
DigitalTwinGetDigitalTwinHeaders, | ||
DigitalTwinGetDigitalTwinModelHeaders, | ||
DigitalTwinInterfaces, | ||
DigitalTwinInterfacesPatch, | ||
DigitalTwinInterfacesPatchInterfacesValue, | ||
DigitalTwinInterfacesPatchInterfacesValuePropertiesValue, | ||
DigitalTwinInterfacesPatchInterfacesValuePropertiesValueDesired, | ||
DigitalTwinInvokeComponentCommandHeaders, | ||
DigitalTwinInvokeComponentCommandHeaders1, | ||
DigitalTwinInvokeRootLevelCommandHeaders, | ||
DigitalTwinUpdateComponentHeaders, | ||
DigitalTwinUpdateDigitalTwinHeaders, | ||
InterfaceModel, | ||
Property, | ||
Reported | ||
DigitalTwinUpdateDigitalTwinHeaders | ||
} from "../models/mappers"; |
@@ -968,2 +968,14 @@ /* | ||
} | ||
}, | ||
includeConfigurations: { | ||
serializedName: "includeConfigurations", | ||
type: { | ||
name: "Boolean" | ||
} | ||
}, | ||
configurationsBlobName: { | ||
serializedName: "configurationsBlobName", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
@@ -1053,149 +1065,2 @@ } | ||
export const DesiredState: msRest.CompositeMapper = { | ||
serializedName: "DesiredState", | ||
type: { | ||
name: "Composite", | ||
className: "DesiredState", | ||
modelProperties: { | ||
code: { | ||
serializedName: "code", | ||
type: { | ||
name: "Number" | ||
} | ||
}, | ||
version: { | ||
serializedName: "version", | ||
type: { | ||
name: "Number" | ||
} | ||
}, | ||
description: { | ||
serializedName: "description", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export const Reported: msRest.CompositeMapper = { | ||
serializedName: "Reported", | ||
type: { | ||
name: "Composite", | ||
className: "Reported", | ||
modelProperties: { | ||
value: { | ||
serializedName: "value", | ||
type: { | ||
name: "Object" | ||
} | ||
}, | ||
desiredState: { | ||
serializedName: "desiredState", | ||
type: { | ||
name: "Composite", | ||
className: "DesiredState" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export const Desired: msRest.CompositeMapper = { | ||
serializedName: "Desired", | ||
type: { | ||
name: "Composite", | ||
className: "Desired", | ||
modelProperties: { | ||
value: { | ||
serializedName: "value", | ||
type: { | ||
name: "Object" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export const Property: msRest.CompositeMapper = { | ||
serializedName: "Property", | ||
type: { | ||
name: "Composite", | ||
className: "Property", | ||
modelProperties: { | ||
reported: { | ||
serializedName: "reported", | ||
type: { | ||
name: "Composite", | ||
className: "Reported" | ||
} | ||
}, | ||
desired: { | ||
serializedName: "desired", | ||
type: { | ||
name: "Composite", | ||
className: "Desired" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export const InterfaceModel: msRest.CompositeMapper = { | ||
serializedName: "Interface", | ||
type: { | ||
name: "Composite", | ||
className: "InterfaceModel", | ||
modelProperties: { | ||
name: { | ||
serializedName: "name", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
properties: { | ||
serializedName: "properties", | ||
type: { | ||
name: "Dictionary", | ||
value: { | ||
type: { | ||
name: "Composite", | ||
className: "Property" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export const DigitalTwinInterfaces: msRest.CompositeMapper = { | ||
serializedName: "DigitalTwinInterfaces", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInterfaces", | ||
modelProperties: { | ||
interfaces: { | ||
serializedName: "interfaces", | ||
type: { | ||
name: "Dictionary", | ||
value: { | ||
type: { | ||
name: "Composite", | ||
className: "InterfaceModel" | ||
} | ||
} | ||
} | ||
}, | ||
version: { | ||
serializedName: "version", | ||
type: { | ||
name: "Number" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export const CloudToDeviceMethod: msRest.CompositeMapper = { | ||
@@ -1546,79 +1411,2 @@ serializedName: "CloudToDeviceMethod", | ||
export const DigitalTwinInterfacesPatchInterfacesValuePropertiesValueDesired: msRest.CompositeMapper = { | ||
serializedName: "DigitalTwinInterfacesPatch_interfacesValue_propertiesValue_desired", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInterfacesPatchInterfacesValuePropertiesValueDesired", | ||
modelProperties: { | ||
value: { | ||
serializedName: "value", | ||
type: { | ||
name: "Object" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export const DigitalTwinInterfacesPatchInterfacesValuePropertiesValue: msRest.CompositeMapper = { | ||
serializedName: "DigitalTwinInterfacesPatch_interfacesValue_propertiesValue", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInterfacesPatchInterfacesValuePropertiesValue", | ||
modelProperties: { | ||
desired: { | ||
serializedName: "desired", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInterfacesPatchInterfacesValuePropertiesValueDesired" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export const DigitalTwinInterfacesPatchInterfacesValue: msRest.CompositeMapper = { | ||
serializedName: "DigitalTwinInterfacesPatch_interfacesValue", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInterfacesPatchInterfacesValue", | ||
modelProperties: { | ||
properties: { | ||
serializedName: "properties", | ||
type: { | ||
name: "Dictionary", | ||
value: { | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInterfacesPatchInterfacesValuePropertiesValue" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export const DigitalTwinInterfacesPatch: msRest.CompositeMapper = { | ||
serializedName: "DigitalTwinInterfacesPatch", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInterfacesPatch", | ||
modelProperties: { | ||
interfaces: { | ||
serializedName: "interfaces", | ||
type: { | ||
name: "Dictionary", | ||
value: { | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInterfacesPatchInterfacesValue" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export const RegistryManagerQueryIotHubHeaders: msRest.CompositeMapper = { | ||
@@ -1684,90 +1472,8 @@ serializedName: "registrymanager-queryiothub-headers", | ||
export const DigitalTwinGetComponentsHeaders: msRest.CompositeMapper = { | ||
serializedName: "digitaltwin-getcomponents-headers", | ||
export const DigitalTwinInvokeRootLevelCommandHeaders: msRest.CompositeMapper = { | ||
serializedName: "digitaltwin-invokerootlevelcommand-headers", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinGetComponentsHeaders", | ||
className: "DigitalTwinInvokeRootLevelCommandHeaders", | ||
modelProperties: { | ||
eTag: { | ||
serializedName: "etag", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export const DigitalTwinUpdateComponentHeaders: msRest.CompositeMapper = { | ||
serializedName: "digitaltwin-updatecomponent-headers", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinUpdateComponentHeaders", | ||
modelProperties: { | ||
eTag: { | ||
serializedName: "etag", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export const DigitalTwinGetComponentHeaders: msRest.CompositeMapper = { | ||
serializedName: "digitaltwin-getcomponent-headers", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinGetComponentHeaders", | ||
modelProperties: { | ||
eTag: { | ||
serializedName: "etag", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export const DigitalTwinGetDigitalTwinModelHeaders: msRest.CompositeMapper = { | ||
serializedName: "digitaltwin-getdigitaltwinmodel-headers", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinGetDigitalTwinModelHeaders", | ||
modelProperties: { | ||
eTag: { | ||
serializedName: "etag", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
xMsModelId: { | ||
serializedName: "x-ms-model-id", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
xMsModelResolutionStatus: { | ||
serializedName: "x-ms-model-resolution-status", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
xMsModelResolutionDescription: { | ||
serializedName: "x-ms-model-resolution-description", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export const DigitalTwinInvokeComponentCommandHeaders: msRest.CompositeMapper = { | ||
serializedName: "digitaltwin-invokecomponentcommand-headers", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInvokeComponentCommandHeaders", | ||
modelProperties: { | ||
xMsCommandStatuscode: { | ||
@@ -1789,7 +1495,7 @@ serializedName: "x-ms-command-statuscode", | ||
export const DigitalTwinInvokeComponentCommandHeaders1: msRest.CompositeMapper = { | ||
export const DigitalTwinInvokeComponentCommandHeaders: msRest.CompositeMapper = { | ||
serializedName: "digitaltwin-invokecomponentcommand-headers", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInvokeComponentCommandHeaders1", | ||
className: "DigitalTwinInvokeComponentCommandHeaders", | ||
modelProperties: { | ||
@@ -1811,23 +1517,1 @@ xMsCommandStatuscode: { | ||
}; | ||
export const DigitalTwinInvokeRootLevelCommandHeaders: msRest.CompositeMapper = { | ||
serializedName: "digitaltwin-invokerootlevelcommand-headers", | ||
type: { | ||
name: "Composite", | ||
className: "DigitalTwinInvokeRootLevelCommandHeaders", | ||
modelProperties: { | ||
xMsCommandStatuscode: { | ||
serializedName: "x-ms-command-statuscode", | ||
type: { | ||
name: "Number" | ||
} | ||
}, | ||
xMsRequestId: { | ||
serializedName: "x-ms-request-id", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
} | ||
} | ||
}; |
@@ -66,24 +66,2 @@ /* | ||
}; | ||
export const digitalTwinId: msRest.OperationURLParameter = { | ||
parameterPath: "digitalTwinId", | ||
mapper: { | ||
required: true, | ||
serializedName: "digitalTwinId", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export const expand: msRest.OperationQueryParameter = { | ||
parameterPath: [ | ||
"options", | ||
"expand" | ||
], | ||
mapper: { | ||
serializedName: "expand", | ||
type: { | ||
name: "Boolean" | ||
} | ||
} | ||
}; | ||
export const id: msRest.OperationURLParameter = { | ||
@@ -111,12 +89,2 @@ parameterPath: "id", | ||
}; | ||
export const interfaceName: msRest.OperationURLParameter = { | ||
parameterPath: "interfaceName", | ||
mapper: { | ||
required: true, | ||
serializedName: "interfaceName", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export const jobStatus: msRest.OperationQueryParameter = { | ||
@@ -166,12 +134,2 @@ parameterPath: [ | ||
}; | ||
export const modelId: msRest.OperationURLParameter = { | ||
parameterPath: "modelId", | ||
mapper: { | ||
required: true, | ||
serializedName: "modelId", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export const moduleId: msRest.OperationURLParameter = { | ||
@@ -178,0 +136,0 @@ parameterPath: "moduleId", |
@@ -30,8 +30,2 @@ /* | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Retrieve a configuration for Iot Hub devices and modules by it identifier. | ||
@@ -65,8 +59,2 @@ * @param id | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Create or update the configuration for devices or modules of an IoT hub. An ETag must | ||
@@ -106,8 +94,2 @@ * not be specified for the create operation. An ETag must be specified for the update operation. | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Delete the configuration for devices or modules of an IoT hub. This request requires | ||
@@ -147,8 +129,2 @@ * the If-Match header. The client may specify the ETag for the device identity on the request in | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Get multiple configurations for devices or modules of an IoT Hub. Returns the specified | ||
@@ -179,8 +155,3 @@ * number of configurations for Iot Hub. Pagination is not supported. | ||
/** | ||
* Validates the target condition query and custom metric queries for a configuration. For IoT Hub | ||
* VNET related features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) | ||
* please use API version '2020-03-13'.These features are currently in general availability in the | ||
* East US, West US 2, and Southcentral US regions only. We are actively working to expand the | ||
* availability of these features to all regions by end of month May. For rest of the APIs please | ||
* continue using API version '2019-10-01' | ||
* Validates the target condition query and custom metric queries for a configuration. | ||
* @summary Validates the target condition query and custom metric queries for a configuration. | ||
@@ -215,8 +186,3 @@ * @param input | ||
* Applies the provided configuration content to the specified edge device. Configuration content | ||
* must have modules content For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* must have modules content | ||
* @summary Applies the provided configuration content to the specified edge device. | ||
@@ -223,0 +189,0 @@ * @param id Device ID. |
@@ -30,8 +30,2 @@ /* | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Gets a digital twin. | ||
@@ -65,8 +59,2 @@ * @param id Digital Twin ID. | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Updates a digital twin. | ||
@@ -104,173 +92,13 @@ * @param id Digital Twin ID. | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Gets the list of interfaces. | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.DigitalTwinGetComponentsResponse> | ||
*/ | ||
getComponents(digitalTwinId: string, options?: msRest.RequestOptionsBase): Promise<Models.DigitalTwinGetComponentsResponse>; | ||
/** | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param callback The callback | ||
*/ | ||
getComponents(digitalTwinId: string, callback: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): void; | ||
/** | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getComponents(digitalTwinId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): void; | ||
getComponents(digitalTwinId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DigitalTwinInterfaces>, callback?: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): Promise<Models.DigitalTwinGetComponentsResponse> { | ||
return this.client.sendOperationRequest( | ||
{ | ||
digitalTwinId, | ||
options | ||
}, | ||
getComponentsOperationSpec, | ||
callback) as Promise<Models.DigitalTwinGetComponentsResponse>; | ||
} | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Updates desired properties of multiple interfaces. | ||
* Example URI: "digitalTwins/{digitalTwinId}/interfaces" | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param interfacesPatchInfo Multiple interfaces desired properties to update. | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.DigitalTwinUpdateComponentResponse> | ||
*/ | ||
updateComponent(digitalTwinId: string, interfacesPatchInfo: Models.DigitalTwinInterfacesPatch, options?: Models.DigitalTwinUpdateComponentOptionalParams): Promise<Models.DigitalTwinUpdateComponentResponse>; | ||
/** | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param interfacesPatchInfo Multiple interfaces desired properties to update. | ||
* @param callback The callback | ||
*/ | ||
updateComponent(digitalTwinId: string, interfacesPatchInfo: Models.DigitalTwinInterfacesPatch, callback: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): void; | ||
/** | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param interfacesPatchInfo Multiple interfaces desired properties to update. | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
updateComponent(digitalTwinId: string, interfacesPatchInfo: Models.DigitalTwinInterfacesPatch, options: Models.DigitalTwinUpdateComponentOptionalParams, callback: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): void; | ||
updateComponent(digitalTwinId: string, interfacesPatchInfo: Models.DigitalTwinInterfacesPatch, options?: Models.DigitalTwinUpdateComponentOptionalParams | msRest.ServiceCallback<Models.DigitalTwinInterfaces>, callback?: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): Promise<Models.DigitalTwinUpdateComponentResponse> { | ||
return this.client.sendOperationRequest( | ||
{ | ||
digitalTwinId, | ||
interfacesPatchInfo, | ||
options | ||
}, | ||
updateComponentOperationSpec, | ||
callback) as Promise<Models.DigitalTwinUpdateComponentResponse>; | ||
} | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Gets the interface of given interfaceId. | ||
* Example URI: "digitalTwins/{digitalTwinId}/interfaces/{interfaceName}" | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param interfaceName The interface name. | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.DigitalTwinGetComponentResponse> | ||
*/ | ||
getComponent(digitalTwinId: string, interfaceName: string, options?: msRest.RequestOptionsBase): Promise<Models.DigitalTwinGetComponentResponse>; | ||
/** | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param interfaceName The interface name. | ||
* @param callback The callback | ||
*/ | ||
getComponent(digitalTwinId: string, interfaceName: string, callback: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): void; | ||
/** | ||
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId | ||
* is optional. | ||
* @param interfaceName The interface name. | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getComponent(digitalTwinId: string, interfaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): void; | ||
getComponent(digitalTwinId: string, interfaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DigitalTwinInterfaces>, callback?: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): Promise<Models.DigitalTwinGetComponentResponse> { | ||
return this.client.sendOperationRequest( | ||
{ | ||
digitalTwinId, | ||
interfaceName, | ||
options | ||
}, | ||
getComponentOperationSpec, | ||
callback) as Promise<Models.DigitalTwinGetComponentResponse>; | ||
} | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Returns a DigitalTwin model definition for the given id. | ||
* If "expand" is present in the query parameters and id is for a device capability model then it | ||
* returns | ||
* the capability metamodel with expanded interface definitions. | ||
* @param modelId Model id Ex: <example>urn:contoso:TemperatureSensor:1</example> | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.DigitalTwinGetDigitalTwinModelResponse> | ||
*/ | ||
getDigitalTwinModel(modelId: string, options?: Models.DigitalTwinGetDigitalTwinModelOptionalParams): Promise<Models.DigitalTwinGetDigitalTwinModelResponse>; | ||
/** | ||
* @param modelId Model id Ex: <example>urn:contoso:TemperatureSensor:1</example> | ||
* @param callback The callback | ||
*/ | ||
getDigitalTwinModel(modelId: string, callback: msRest.ServiceCallback<any>): void; | ||
/** | ||
* @param modelId Model id Ex: <example>urn:contoso:TemperatureSensor:1</example> | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getDigitalTwinModel(modelId: string, options: Models.DigitalTwinGetDigitalTwinModelOptionalParams, callback: msRest.ServiceCallback<any>): void; | ||
getDigitalTwinModel(modelId: string, options?: Models.DigitalTwinGetDigitalTwinModelOptionalParams | msRest.ServiceCallback<any>, callback?: msRest.ServiceCallback<any>): Promise<Models.DigitalTwinGetDigitalTwinModelResponse> { | ||
return this.client.sendOperationRequest( | ||
{ | ||
modelId, | ||
options | ||
}, | ||
getDigitalTwinModelOperationSpec, | ||
callback) as Promise<Models.DigitalTwinGetDigitalTwinModelResponse>; | ||
} | ||
/** | ||
* Invoke a digital twin interface command. | ||
* @summary Invoke a digital twin interface command. | ||
* @param digitalTwinId | ||
* @param interfaceName | ||
* Invoke a digital twin root level command. | ||
* @summary Invoke a digital twin root level command. | ||
* @param id | ||
* @param commandName | ||
* @param payload | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.DigitalTwinInvokeComponentCommandResponse> | ||
* @returns Promise<Models.DigitalTwinInvokeRootLevelCommandResponse> | ||
*/ | ||
invokeComponentCommand(digitalTwinId: string, interfaceName: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeComponentCommandOptionalParams): Promise<Models.DigitalTwinInvokeComponentCommandResponse>; | ||
invokeRootLevelCommand(id: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeRootLevelCommandOptionalParams): Promise<Models.DigitalTwinInvokeRootLevelCommandResponse>; | ||
/** | ||
* @param digitalTwinId | ||
* @param interfaceName | ||
* @param id | ||
* @param commandName | ||
@@ -280,6 +108,5 @@ * @param payload | ||
*/ | ||
invokeComponentCommand(digitalTwinId: string, interfaceName: string, commandName: string, payload: any, callback: msRest.ServiceCallback<any>): void; | ||
invokeRootLevelCommand(id: string, commandName: string, payload: any, callback: msRest.ServiceCallback<any>): void; | ||
/** | ||
* @param digitalTwinId | ||
* @param interfaceName | ||
* @param id | ||
* @param commandName | ||
@@ -290,8 +117,7 @@ * @param payload | ||
*/ | ||
invokeComponentCommand(digitalTwinId: string, interfaceName: string, commandName: string, payload: any, options: Models.DigitalTwinInvokeComponentCommandOptionalParams, callback: msRest.ServiceCallback<any>): void; | ||
invokeComponentCommand(digitalTwinId: string, interfaceName: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeComponentCommandOptionalParams | msRest.ServiceCallback<any>, callback?: msRest.ServiceCallback<any>): Promise<Models.DigitalTwinInvokeComponentCommandResponse> { | ||
invokeRootLevelCommand(id: string, commandName: string, payload: any, options: Models.DigitalTwinInvokeRootLevelCommandOptionalParams, callback: msRest.ServiceCallback<any>): void; | ||
invokeRootLevelCommand(id: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeRootLevelCommandOptionalParams | msRest.ServiceCallback<any>, callback?: msRest.ServiceCallback<any>): Promise<Models.DigitalTwinInvokeRootLevelCommandResponse> { | ||
return this.client.sendOperationRequest( | ||
{ | ||
digitalTwinId, | ||
interfaceName, | ||
id, | ||
commandName, | ||
@@ -301,4 +127,4 @@ payload, | ||
}, | ||
invokeComponentCommandOperationSpec, | ||
callback) as Promise<Models.DigitalTwinInvokeComponentCommandResponse>; | ||
invokeRootLevelCommandOperationSpec, | ||
callback) as Promise<Models.DigitalTwinInvokeRootLevelCommandResponse>; | ||
} | ||
@@ -314,5 +140,5 @@ | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.DigitalTwinInvokeComponentCommandHeaders12> | ||
* @returns Promise<Models.DigitalTwinInvokeComponentCommandResponse> | ||
*/ | ||
invokeComponentCommand1(id: string, componentPath: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeComponentCommand1OptionalParams): Promise<Models.DigitalTwinInvokeComponentCommandHeaders12>; | ||
invokeComponentCommand(id: string, componentPath: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeComponentCommandOptionalParams): Promise<Models.DigitalTwinInvokeComponentCommandResponse>; | ||
/** | ||
@@ -325,3 +151,3 @@ * @param id | ||
*/ | ||
invokeComponentCommand1(id: string, componentPath: string, commandName: string, payload: any, callback: msRest.ServiceCallback<any>): void; | ||
invokeComponentCommand(id: string, componentPath: string, commandName: string, payload: any, callback: msRest.ServiceCallback<any>): void; | ||
/** | ||
@@ -335,4 +161,4 @@ * @param id | ||
*/ | ||
invokeComponentCommand1(id: string, componentPath: string, commandName: string, payload: any, options: Models.DigitalTwinInvokeComponentCommand1OptionalParams, callback: msRest.ServiceCallback<any>): void; | ||
invokeComponentCommand1(id: string, componentPath: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeComponentCommand1OptionalParams | msRest.ServiceCallback<any>, callback?: msRest.ServiceCallback<any>): Promise<Models.DigitalTwinInvokeComponentCommandHeaders12> { | ||
invokeComponentCommand(id: string, componentPath: string, commandName: string, payload: any, options: Models.DigitalTwinInvokeComponentCommandOptionalParams, callback: msRest.ServiceCallback<any>): void; | ||
invokeComponentCommand(id: string, componentPath: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeComponentCommandOptionalParams | msRest.ServiceCallback<any>, callback?: msRest.ServiceCallback<any>): Promise<Models.DigitalTwinInvokeComponentCommandResponse> { | ||
return this.client.sendOperationRequest( | ||
@@ -346,42 +172,5 @@ { | ||
}, | ||
invokeComponentCommand1OperationSpec, | ||
callback) as Promise<Models.DigitalTwinInvokeComponentCommandHeaders12>; | ||
invokeComponentCommandOperationSpec, | ||
callback) as Promise<Models.DigitalTwinInvokeComponentCommandResponse>; | ||
} | ||
/** | ||
* Invoke a digital twin root level command. | ||
* @summary Invoke a digital twin root level command. | ||
* @param id | ||
* @param commandName | ||
* @param payload | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.DigitalTwinInvokeRootLevelCommandResponse> | ||
*/ | ||
invokeRootLevelCommand(id: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeRootLevelCommandOptionalParams): Promise<Models.DigitalTwinInvokeRootLevelCommandResponse>; | ||
/** | ||
* @param id | ||
* @param commandName | ||
* @param payload | ||
* @param callback The callback | ||
*/ | ||
invokeRootLevelCommand(id: string, commandName: string, payload: any, callback: msRest.ServiceCallback<any>): void; | ||
/** | ||
* @param id | ||
* @param commandName | ||
* @param payload | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
invokeRootLevelCommand(id: string, commandName: string, payload: any, options: Models.DigitalTwinInvokeRootLevelCommandOptionalParams, callback: msRest.ServiceCallback<any>): void; | ||
invokeRootLevelCommand(id: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeRootLevelCommandOptionalParams | msRest.ServiceCallback<any>, callback?: msRest.ServiceCallback<any>): Promise<Models.DigitalTwinInvokeRootLevelCommandResponse> { | ||
return this.client.sendOperationRequest( | ||
{ | ||
id, | ||
commandName, | ||
payload, | ||
options | ||
}, | ||
invokeRootLevelCommandOperationSpec, | ||
callback) as Promise<Models.DigitalTwinInvokeRootLevelCommandResponse>; | ||
} | ||
} | ||
@@ -451,104 +240,7 @@ | ||
const getComponentsOperationSpec: msRest.OperationSpec = { | ||
httpMethod: "GET", | ||
path: "digitalTwins/{digitalTwinId}/interfaces", | ||
urlParameters: [ | ||
Parameters.digitalTwinId | ||
], | ||
queryParameters: [ | ||
Parameters.apiVersion | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.DigitalTwinInterfaces, | ||
headersMapper: Mappers.DigitalTwinGetComponentsHeaders | ||
}, | ||
default: {} | ||
}, | ||
serializer | ||
}; | ||
const updateComponentOperationSpec: msRest.OperationSpec = { | ||
httpMethod: "PATCH", | ||
path: "digitalTwins/{digitalTwinId}/interfaces", | ||
urlParameters: [ | ||
Parameters.digitalTwinId | ||
], | ||
queryParameters: [ | ||
Parameters.apiVersion | ||
], | ||
headerParameters: [ | ||
Parameters.ifMatch | ||
], | ||
requestBody: { | ||
parameterPath: "interfacesPatchInfo", | ||
mapper: { | ||
...Mappers.DigitalTwinInterfacesPatch, | ||
required: true | ||
} | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.DigitalTwinInterfaces, | ||
headersMapper: Mappers.DigitalTwinUpdateComponentHeaders | ||
}, | ||
default: {} | ||
}, | ||
serializer | ||
}; | ||
const getComponentOperationSpec: msRest.OperationSpec = { | ||
httpMethod: "GET", | ||
path: "digitalTwins/{digitalTwinId}/interfaces/{interfaceName}", | ||
urlParameters: [ | ||
Parameters.digitalTwinId, | ||
Parameters.interfaceName | ||
], | ||
queryParameters: [ | ||
Parameters.apiVersion | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.DigitalTwinInterfaces, | ||
headersMapper: Mappers.DigitalTwinGetComponentHeaders | ||
}, | ||
default: {} | ||
}, | ||
serializer | ||
}; | ||
const getDigitalTwinModelOperationSpec: msRest.OperationSpec = { | ||
httpMethod: "GET", | ||
path: "digitalTwins/models/{modelId}", | ||
urlParameters: [ | ||
Parameters.modelId | ||
], | ||
queryParameters: [ | ||
Parameters.expand, | ||
Parameters.apiVersion | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "Object" | ||
} | ||
}, | ||
headersMapper: Mappers.DigitalTwinGetDigitalTwinModelHeaders | ||
}, | ||
204: { | ||
headersMapper: Mappers.DigitalTwinGetDigitalTwinModelHeaders | ||
}, | ||
default: {} | ||
}, | ||
serializer | ||
}; | ||
const invokeComponentCommandOperationSpec: msRest.OperationSpec = { | ||
const invokeRootLevelCommandOperationSpec: msRest.OperationSpec = { | ||
httpMethod: "POST", | ||
path: "digitalTwins/{digitalTwinId}/interfaces/{interfaceName}/commands/{commandName}", | ||
path: "digitaltwins/{id}/commands/{commandName}", | ||
urlParameters: [ | ||
Parameters.digitalTwinId, | ||
Parameters.interfaceName, | ||
Parameters.id, | ||
Parameters.commandName | ||
@@ -579,3 +271,3 @@ ], | ||
}, | ||
headersMapper: Mappers.DigitalTwinInvokeComponentCommandHeaders | ||
headersMapper: Mappers.DigitalTwinInvokeRootLevelCommandHeaders | ||
}, | ||
@@ -587,3 +279,3 @@ default: {} | ||
const invokeComponentCommand1OperationSpec: msRest.OperationSpec = { | ||
const invokeComponentCommandOperationSpec: msRest.OperationSpec = { | ||
httpMethod: "POST", | ||
@@ -619,3 +311,3 @@ path: "digitaltwins/{id}/components/{componentPath}/commands/{commandName}", | ||
}, | ||
headersMapper: Mappers.DigitalTwinInvokeComponentCommandHeaders1 | ||
headersMapper: Mappers.DigitalTwinInvokeComponentCommandHeaders | ||
}, | ||
@@ -626,38 +318,1 @@ default: {} | ||
}; | ||
const invokeRootLevelCommandOperationSpec: msRest.OperationSpec = { | ||
httpMethod: "POST", | ||
path: "digitaltwins/{id}/commands/{commandName}", | ||
urlParameters: [ | ||
Parameters.id, | ||
Parameters.commandName | ||
], | ||
queryParameters: [ | ||
Parameters.apiVersion, | ||
Parameters.connectTimeoutInSeconds, | ||
Parameters.responseTimeoutInSeconds | ||
], | ||
requestBody: { | ||
parameterPath: "payload", | ||
mapper: { | ||
required: true, | ||
serializedName: "payload", | ||
type: { | ||
name: "Object" | ||
} | ||
} | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "Object" | ||
} | ||
}, | ||
headersMapper: Mappers.DigitalTwinInvokeRootLevelCommandHeaders | ||
}, | ||
default: {} | ||
}, | ||
serializer | ||
}; |
@@ -30,8 +30,2 @@ /* | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Get FaultInjection entity | ||
@@ -61,8 +55,2 @@ * @param [options] The optional parameters | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Create or update FaultInjection entity | ||
@@ -69,0 +57,0 @@ * @param value |
@@ -32,8 +32,3 @@ /* | ||
* capability is only available in the standard tier IoT Hub. For more information, see [Choose the | ||
* right IoT Hub tier](https://aka.ms/scaleyouriotsolution). For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* right IoT Hub tier](https://aka.ms/scaleyouriotsolution). | ||
* @summary This method is used to retrieve feedback of a cloud-to-device message. | ||
@@ -66,9 +61,3 @@ * @param [options] The optional parameters | ||
* message is deleted from the feedback queue. See | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging for more information. For | ||
* IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging for more information. | ||
* @summary This method completes a feedback message. | ||
@@ -105,9 +94,3 @@ * @param lockToken Lock token. | ||
* message is deleted from the feedback queue. See | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging for more information. For | ||
* IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging for more information. | ||
* @summary This method abandons a feedback message. | ||
@@ -114,0 +97,0 @@ * @param lockToken Lock Token. |
@@ -32,8 +32,3 @@ /* | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities | ||
* for more information. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* for more information. | ||
* @summary Create a new import/export job on an IoT hub. | ||
@@ -69,8 +64,3 @@ * @param jobProperties Specifies the job specification. | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities | ||
* for more information. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* for more information. | ||
* @summary Gets the status of all import/export jobs in an iot hub | ||
@@ -102,8 +92,3 @@ * @param [options] The optional parameters | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities | ||
* for more information. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* for more information. | ||
* @summary Gets the status of an import or export job in an iot hub | ||
@@ -139,8 +124,3 @@ * @param id Job ID. | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities | ||
* for more information. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* for more information. | ||
* @summary Cancels an import or export job in an IoT hub. | ||
@@ -175,9 +155,3 @@ * @param id Job ID. | ||
* Retrieves details of a scheduled job from an IoT hub. See | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-jobs for more information. For | ||
* IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-jobs for more information. | ||
* @summary Retrieves details of a scheduled job from an IoT hub. | ||
@@ -213,8 +187,3 @@ * @param id Job ID. | ||
* time. See https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-jobs for more | ||
* information. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* information. | ||
* @summary Creates a new job to schedule update twins or device direct methods on an IoT hub at a | ||
@@ -254,9 +223,3 @@ * scheduled time. | ||
* Cancels a scheduled job on an IoT hub. See | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-jobs for more information. For | ||
* IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-jobs for more information. | ||
* @summary Cancels a scheduled job on an IoT hub. | ||
@@ -292,8 +255,3 @@ * @param id Job ID. | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language for more information. | ||
* Pagination of results is supported. This returns information about jobs only. For IoT Hub VNET | ||
* related features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please | ||
* use API version '2020-03-13'.These features are currently in general availability in the East | ||
* US, West US 2, and Southcentral US regions only. We are actively working to expand the | ||
* availability of these features to all regions by end of month May. For rest of the APIs please | ||
* continue using API version '2019-10-01' | ||
* Pagination of results is supported. This returns information about jobs only. | ||
* @summary Query an IoT hub to retrieve information regarding jobs using the IoT Hub query | ||
@@ -300,0 +258,0 @@ * language |
@@ -30,8 +30,2 @@ /* | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Retrieves statistics about device identities in the IoT hub’s identity registry. | ||
@@ -61,8 +55,2 @@ * @param [options] The optional parameters | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Retrieves service statistics for this IoT hub’s identity registry. | ||
@@ -92,12 +80,6 @@ * @param [options] The optional parameters | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Get the identities of multiple devices from the IoT hub identity registry. Not | ||
* recommended. Use the IoT Hub query language to retrieve device twin and device identity | ||
* information. See https://docs.microsoft.com/en-us/rest/api/iothub/service/queryiothub and | ||
* https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-query-language for more | ||
* information. See https://docs.microsoft.com/rest/api/iothub/service/registrymanager/queryiothub | ||
* and https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language for more | ||
* information. | ||
@@ -132,8 +114,2 @@ * @param [options] The optional parameters | ||
* storage(https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities). | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Create, update, or delete the identities of multiple devices from the IoT hub identity | ||
@@ -170,9 +146,3 @@ * registry. | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language for more information. | ||
* Pagination of results is supported. This returns information about device twins only. For IoT | ||
* Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* Pagination of results is supported. This returns information about device twins only. | ||
* @summary Query an IoT hub to retrieve information regarding device twins using a SQL-like | ||
@@ -207,8 +177,3 @@ * language. | ||
/** | ||
* Retrieve a device from the identity registry of an IoT hub. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* Retrieve a device from the identity registry of an IoT hub. | ||
* @summary Retrieve a device from the identity registry of an IoT hub. | ||
@@ -244,8 +209,3 @@ * @param id Device ID. | ||
* not be specified for the create operation. An ETag must be specified for the update operation. | ||
* Note that generationId and deviceId cannot be updated by the user. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* Note that generationId and deviceId cannot be updated by the user. | ||
* @summary Create or update the identity of a device in the identity registry of an IoT hub. | ||
@@ -289,8 +249,3 @@ * @param id Device ID. | ||
* it was retrieved by the client. To force an unconditional delete, set If-Match to the wildcard | ||
* character (*). For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* character (*). | ||
* @summary Delete the identity of a device from the identity registry of an IoT hub. | ||
@@ -324,8 +279,3 @@ * @param id Device ID. | ||
/** | ||
* Deletes all the pending commands for this device from the IoT hub For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* Deletes all the pending commands for this device from the IoT hub | ||
* @summary Deletes all the pending commands for this device from the IoT hub. | ||
@@ -359,8 +309,2 @@ * @param id Device ID. | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Retrieve all the module identities on the device. | ||
@@ -394,8 +338,2 @@ * @param id Device ID. | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Retrieve the specified module identity on the device. | ||
@@ -433,8 +371,2 @@ * @param id Device ID. | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Create or update the module identity for device in IoT hub. An ETag must not be | ||
@@ -478,8 +410,2 @@ * specified for the create operation. An ETag must be specified for the update operation. Note | ||
/** | ||
* For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* @summary Delete the module identity for device of an IoT hub. This request requires the If-Match | ||
@@ -486,0 +412,0 @@ * header. The client may specify the ETag for the device identity on the request in order to |
@@ -31,8 +31,3 @@ /* | ||
* Gets a device twin. See https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins | ||
* for more information. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* for more information. | ||
* @summary Gets a device twin. | ||
@@ -67,9 +62,3 @@ * @param id Device ID. | ||
* Replaces a device twin. See | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins for more information. For | ||
* IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins for more information. | ||
* @summary Replaces tags and desired properties of a device twin. | ||
@@ -108,9 +97,3 @@ * @param id Device ID. | ||
* Updates a device twin. See | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins for more information. For | ||
* IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins for more information. | ||
* @summary Updates tags and desired properties of a device twin. | ||
@@ -149,8 +132,3 @@ * @param id Device ID. | ||
* Gets a module twin. See https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins | ||
* for more information. For IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* for more information. | ||
* @summary Gets a module twin. | ||
@@ -189,9 +167,3 @@ * @param id Device ID. | ||
* Replaces a module twin. See | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins for more information. For | ||
* IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins for more information. | ||
* @summary Replaces tags and desired properties of a module twin. | ||
@@ -234,9 +206,3 @@ * @param id Device ID. | ||
* Updates a module twin. See | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins for more information. For | ||
* IoT Hub VNET related | ||
* features(https://docs.microsoft.com/en-us/azure/iot-hub/virtual-network-support) please use API | ||
* version '2020-03-13'.These features are currently in general availability in the East US, West | ||
* US 2, and Southcentral US regions only. We are actively working to expand the availability of | ||
* these features to all regions by end of month May. For rest of the APIs please continue using | ||
* API version '2019-10-01' | ||
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins for more information. | ||
* @summary Updates tags and desired properties of a module twin. | ||
@@ -243,0 +209,0 @@ * @param id Device ID. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
582965
13335