Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

azure-iot-digitaltwins-service

Package Overview
Dependencies
Maintainers
7
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-iot-digitaltwins-service - npm Package Compare versions

Comparing version 1.0.0-pnp-refresh.0 to 1.0.0-pnp-refresh.1

dist/pl/models/configurationOperationsMappers.d.ts

142

dist/cl/digital_twin_service_client.d.ts

@@ -7,22 +7,72 @@ import { IotHubGatewayServiceAPIsModels as Models } from '../pl/iotHubGatewayServiceAPIs';

* @export
* @type DigitalTwinGetTwinResponse Type alias to simplify the auto generated type's name
* @type DigitalTwin Type alias to simplify the auto generated type's name
*/
export declare type DigitalTwinGetResponse = Models.DigitalTwinGetDigitalTwinResponse;
export declare type DigitalTwin = Models.DigitalTwinGetComponentsHeaders | undefined;
/**
* @export
* @type DigitalTwinResponse Type alias to simplify the auto generated type's name
*/
export declare type DigitalTwinResponse = Models.DigitalTwinGetDigitalTwinResponse | undefined;
/**
* @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
*/
export declare type DigitalTwinUpdateResponse = Models.DigitalTwinUpdateDigitalTwinResponse;
export declare type DigitalTwinUpdateResponse = Models.DigitalTwinUpdateDigitalTwinResponse | undefined;
/**
* @export
* @type DigitalTwinPatch Type alias to simplify the auto generated type's name
* @type Model Type alias to simplify the auto generated type's name
*/
export declare type DigitalTwinPatch = Models.DigitalTwinPatch;
export declare type Model = Models.DigitalTwinGetDigitalTwinModelResponse;
/**
* @export
* @type DigitalTwinInvokeComponentCommandResponse Type alias to simplify the auto generated type's name
* @type DigitalTwinGetDigitalTwinModelResponse Type alias to simplify the auto generated type's name
*/
export declare type DigitalTwinInvokeComponentCommandResponse = Models.DigitalTwinInvokeComponentCommandResponse;
export declare type DigitalTwinGetDigitalTwinModelResponse = Models.DigitalTwinGetDigitalTwinModelResponse;
/**
* @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

@@ -57,31 +107,71 @@ */

* Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId is optional.
* @returns DigitalTwinGetDigitalTwinResponse The return object containing the Digital Twin plus the HttpResponse.
* @returns DigitalTwinResponse The return object containing the Digital Twin plus the HttpResponse.
* @memberof DigitalTwinServiceClient
*/
getDigitalTwin(digitalTwinId: string): Promise<DigitalTwinGetResponse>;
getDigitalTwin(digitalTwinId: string, callback: TripleValueCallback<DigitalTwinGetResponse, msRest.HttpOperationResponse>): void;
getDigitalTwin(digitalTwinId: string): Promise<DigitalTwinResponse>;
getDigitalTwin(digitalTwinId: string, callback: TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>): void;
/**
* @method updateDigitalTwin module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.updateDigitalTwin
* @description Update the Digital Twin Component of a given device using a patch object.
* @param {string} digitalTwinId The digital twin Id of the given device.
* @param {any[]} patch The patch objet contains the update part of a Digital Twin Component.
* @param {string} eTag The eTag for identifying the patch.
* @returns DigitalTwinUpdateResponse The return object containing the updated Digital Twin plus the HttpResponse.
* @method updateDigitalTwin module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.updateDigitalTwin
* @description Update the Digital Twin of a given device using a patch object.
* @param {string} digitalTwinId The digital twin Id of the given device.
* @param {any[]} patch The patch objet contains the update part of a Digital Twin.
* @param {string} eTag The eTag for identifying the patch.
* @returns DigitalTwinUpdateResponse The HTTPesponse.
* @memberof DigitalTwinServiceClient
*/
updateDigitalTwin(digitalTwinId: string, patch: any[], eTag?: string): Promise<DigitalTwinUpdateResponse>;
updateDigitalTwin(digitalTwinId: string, patch: any[], eTagOrCallback?: string | TripleValueCallback<DigitalTwinUpdateResponse, msRest.HttpOperationResponse>, callback?: TripleValueCallback<DigitalTwinUpdateResponse, msRest.HttpOperationResponse>): void;
updateDigitalTwin(digitalTwinId: string, patch: any[], eTagOrCallback?: string | TripleValueCallback<void, msRest.HttpOperationResponse>, callback?: TripleValueCallback<void, 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 DigitalTwinInvokeComponentCommandResponse The result of the invoked command containing the result, status code, request ID and the parsed HttpResponse.
* @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.
* @memberof DigitalTwinServiceClient
*/
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, argument: string): Promise<DigitalTwinInvokeComponentCommandResponse>;
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, argument: string, callback: TripleValueCallback<DigitalTwinInvokeComponentCommandResponse, msRest.HttpOperationResponse>): void;
getComponents(digitalTwinId: string): Promise<DigitalTwinGetComponentsResponse>;
getComponents(digitalTwinId: string, callback: TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>): void;
/**
* @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.
* @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;
}
//# sourceMappingURL=digital_twin_service_client.d.ts.map

@@ -52,3 +52,3 @@ "use strict";

var _this = this;
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_002: [The `getDigitalTwin` method shall call the `getComponents` method of the protocol layer with the given argument.]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_002: [The `getDigitalTwin` method shall call the `getDigitalTwin` method of the protocol layer with the given argument.]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_003: [The `getDigitalTwin` method shall call the callback with an error parameter if a callback is passed..]*/

@@ -65,8 +65,2 @@ /*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_004: [The `getDigitalTwin` method shall return error if the method of the protocol layer failed.]*/

var _this = this;
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_035: [The `updateDigitalTwin` method shall call the `updateDigitalTwin` method of the protocol layer with the given arguments.]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_036: [The `updateDigitalTwin` method shall call the callback with an error parameter if a callback is passed..]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_037: [The `updateDigitalTwin` method shall return error if the method of the protocol layer failed.]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_038: [The `updateDigitalTwin` method shall return a promise if there is no callback passed.]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_039: [The `updateDigitalTwin` method shall call the `updateDigitalTwin` method of the protocol layer with the given arguments including eTag.]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_040: [The `updateDigitalTwin` method shall return a promise if eTag is passed and there is no callback passed.] */
var actualCallback = typeof eTagOrCallback === 'function' ? eTagOrCallback : callback;

@@ -81,13 +75,60 @@ var actualEtag = typeof eTagOrCallback !== 'function' ? eTagOrCallback : undefined;

};
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);
};
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);
};
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 `invokeCommand` method shall call the `invokeComponentCommand` method of the protocol layer with the given arguments.]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_018: [The `invokeCommand` method shall call the callback with an error parameter if a callback is passed..]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_019: [The `invokeCommand` method shall return error if the method of the protocol layer failed.]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_025: [The `invokeCommand` method shall return a promise if there is no callback passed.]*/
/*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.invokeComponentCommand(digitalTwinId, componentName, commandName, argument, function (err, result, request, response) {
_this._pl.digitalTwin.invokeComponentCommand1(digitalTwinId, componentName, commandName, argument, function (err, result, request, response) {
_callback(err, result, response);
});
}, function (result, response) { return result; }, callback);
}, function (result, response) { return createResultWithHttpOperationResponse(result, response); }, callback);
};

@@ -94,0 +135,0 @@ return DigitalTwinServiceClient;

@@ -7,3 +7,10 @@ import * as msRest from "@azure/ms-rest-js";

declare class IotHubGatewayServiceAPIs extends IotHubGatewayServiceAPIsContext {
configuration: operations.ConfigurationOperations;
registryManager: operations.RegistryManager;
jobClient: operations.JobClient;
faultInjection: operations.FaultInjection;
twin: operations.TwinOperations;
digitalTwin: operations.DigitalTwin;
httpRuntime: operations.HttpRuntime;
deviceMethod: operations.DeviceMethod;
/**

@@ -10,0 +17,0 @@ * Initializes a new instance of the IotHubGatewayServiceAPIs class.

@@ -44,3 +44,10 @@ "use strict";

var _this = _super.call(this, credentials, options) || this;
_this.configuration = new operations.ConfigurationOperations(_this);
_this.registryManager = new operations.RegistryManager(_this);
_this.jobClient = new operations.JobClient(_this);
_this.faultInjection = new operations.FaultInjection(_this);
_this.twin = new operations.TwinOperations(_this);
_this.digitalTwin = new operations.DigitalTwin(_this);
_this.httpRuntime = new operations.HttpRuntime(_this);
_this.deviceMethod = new operations.DeviceMethod(_this);
return _this;

@@ -47,0 +54,0 @@ }

2

dist/pl/models/digitalTwinMappers.d.ts

@@ -1,2 +0,2 @@

export { DigitalTwinInvokeComponentCommandHeaders, PatchOperation } from "../models/mappers";
export { Desired, DesiredState, DigitalTwinGetComponentHeaders, DigitalTwinGetComponentsHeaders, DigitalTwinGetDigitalTwinHeaders, DigitalTwinGetDigitalTwinModelHeaders, DigitalTwinInterfaces, DigitalTwinInterfacesPatch, DigitalTwinInterfacesPatchInterfacesValue, DigitalTwinInterfacesPatchInterfacesValuePropertiesValue, DigitalTwinInterfacesPatchInterfacesValuePropertiesValueDesired, DigitalTwinInvokeComponentCommandHeaders, DigitalTwinInvokeComponentCommandHeaders1, DigitalTwinInvokeRootLevelCommandHeaders, DigitalTwinUpdateComponentHeaders, DigitalTwinUpdateDigitalTwinHeaders, InterfaceModel, Property, Reported } from "../models/mappers";
//# sourceMappingURL=digitalTwinMappers.d.ts.map

@@ -11,4 +11,21 @@ "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.PatchOperation = mappers_1.PatchOperation;
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
import * as msRest from "@azure/ms-rest-js";
export declare const PatchOperation: msRest.CompositeMapper;
export declare const DigitalTwinPatch: msRest.CompositeMapper;
export declare const VariantValue: msRest.CompositeMapper;
export declare const ConfigurationMetrics: msRest.CompositeMapper;
export declare const ConfigurationContent: msRest.CompositeMapper;
export declare const Configuration: msRest.CompositeMapper;
export declare const ConfigurationQueriesTestInput: msRest.CompositeMapper;
export declare const ConfigurationQueriesTestResponse: msRest.CompositeMapper;
export declare const RegistryStatistics: msRest.CompositeMapper;
export declare const ServiceStatistics: msRest.CompositeMapper;
export declare const SymmetricKey: msRest.CompositeMapper;
export declare const X509Thumbprint: msRest.CompositeMapper;
export declare const AuthenticationMechanism: msRest.CompositeMapper;
export declare const DeviceCapabilities: msRest.CompositeMapper;
export declare const Device: msRest.CompositeMapper;
export declare const PropertyContainer: msRest.CompositeMapper;
export declare const ExportImportDevice: msRest.CompositeMapper;
export declare const DeviceRegistryOperationError: msRest.CompositeMapper;
export declare const DeviceRegistryOperationWarning: msRest.CompositeMapper;
export declare const BulkRegistryOperationResult: msRest.CompositeMapper;
export declare const QuerySpecification: msRest.CompositeMapper;
export declare const TwinProperties: msRest.CompositeMapper;
export declare const Twin: msRest.CompositeMapper;
export declare const JobProperties: msRest.CompositeMapper;
export declare const PurgeMessageQueueResult: msRest.CompositeMapper;
export declare const FaultInjectionConnectionProperties: msRest.CompositeMapper;
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;
export declare const JobRequest: msRest.CompositeMapper;
export declare const DeviceJobStatistics: msRest.CompositeMapper;
export declare const JobResponse: msRest.CompositeMapper;
export declare const QueryResult: msRest.CompositeMapper;
export declare const Module: 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 DigitalTwinInvokeComponentCommandHeaders: msRest.CompositeMapper;
export declare const DigitalTwinInvokeComponentCommandHeaders1: msRest.CompositeMapper;
export declare const DigitalTwinInvokeRootLevelCommandHeaders: msRest.CompositeMapper;
//# sourceMappingURL=mappers.d.ts.map

@@ -10,16 +10,94 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PatchOperation = {
serializedName: "PatchOperation",
exports.ConfigurationMetrics = {
serializedName: "ConfigurationMetrics",
type: {
name: "Composite",
className: "PatchOperation",
className: "ConfigurationMetrics",
modelProperties: {
op: {
serializedName: "op",
results: {
serializedName: "results",
type: {
name: "Dictionary",
value: {
type: {
name: "Number"
}
}
}
},
queries: {
serializedName: "queries",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
}
}
}
};
exports.ConfigurationContent = {
serializedName: "ConfigurationContent",
type: {
name: "Composite",
className: "ConfigurationContent",
modelProperties: {
deviceContent: {
serializedName: "deviceContent",
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
},
modulesContent: {
serializedName: "modulesContent",
type: {
name: "Dictionary",
value: {
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
}
}
},
moduleContent: {
serializedName: "moduleContent",
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
}
}
}
};
exports.Configuration = {
serializedName: "Configuration",
type: {
name: "Composite",
className: "Configuration",
modelProperties: {
id: {
serializedName: "id",
type: {
name: "String"
}
},
path: {
serializedName: "path",
schemaVersion: {
serializedName: "schemaVersion",
type: {

@@ -29,2 +107,955 @@ name: "String"

},
labels: {
serializedName: "labels",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
},
content: {
serializedName: "content",
type: {
name: "Composite",
className: "ConfigurationContent"
}
},
targetCondition: {
serializedName: "targetCondition",
type: {
name: "String"
}
},
createdTimeUtc: {
serializedName: "createdTimeUtc",
type: {
name: "DateTime"
}
},
lastUpdatedTimeUtc: {
serializedName: "lastUpdatedTimeUtc",
type: {
name: "DateTime"
}
},
priority: {
serializedName: "priority",
type: {
name: "Number"
}
},
systemMetrics: {
serializedName: "systemMetrics",
type: {
name: "Composite",
className: "ConfigurationMetrics"
}
},
metrics: {
serializedName: "metrics",
type: {
name: "Composite",
className: "ConfigurationMetrics"
}
},
etag: {
serializedName: "etag",
type: {
name: "String"
}
}
}
}
};
exports.ConfigurationQueriesTestInput = {
serializedName: "ConfigurationQueriesTestInput",
type: {
name: "Composite",
className: "ConfigurationQueriesTestInput",
modelProperties: {
targetCondition: {
serializedName: "targetCondition",
type: {
name: "String"
}
},
customMetricQueries: {
serializedName: "customMetricQueries",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
}
}
}
};
exports.ConfigurationQueriesTestResponse = {
serializedName: "ConfigurationQueriesTestResponse",
type: {
name: "Composite",
className: "ConfigurationQueriesTestResponse",
modelProperties: {
targetConditionError: {
serializedName: "targetConditionError",
type: {
name: "String"
}
},
customMetricQueryErrors: {
serializedName: "customMetricQueryErrors",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
}
}
}
};
exports.RegistryStatistics = {
serializedName: "RegistryStatistics",
type: {
name: "Composite",
className: "RegistryStatistics",
modelProperties: {
totalDeviceCount: {
serializedName: "totalDeviceCount",
type: {
name: "Number"
}
},
enabledDeviceCount: {
serializedName: "enabledDeviceCount",
type: {
name: "Number"
}
},
disabledDeviceCount: {
serializedName: "disabledDeviceCount",
type: {
name: "Number"
}
}
}
}
};
exports.ServiceStatistics = {
serializedName: "ServiceStatistics",
type: {
name: "Composite",
className: "ServiceStatistics",
modelProperties: {
connectedDeviceCount: {
serializedName: "connectedDeviceCount",
type: {
name: "Number"
}
}
}
}
};
exports.SymmetricKey = {
serializedName: "SymmetricKey",
type: {
name: "Composite",
className: "SymmetricKey",
modelProperties: {
primaryKey: {
serializedName: "primaryKey",
type: {
name: "String"
}
},
secondaryKey: {
serializedName: "secondaryKey",
type: {
name: "String"
}
}
}
}
};
exports.X509Thumbprint = {
serializedName: "X509Thumbprint",
type: {
name: "Composite",
className: "X509Thumbprint",
modelProperties: {
primaryThumbprint: {
serializedName: "primaryThumbprint",
type: {
name: "String"
}
},
secondaryThumbprint: {
serializedName: "secondaryThumbprint",
type: {
name: "String"
}
}
}
}
};
exports.AuthenticationMechanism = {
serializedName: "AuthenticationMechanism",
type: {
name: "Composite",
className: "AuthenticationMechanism",
modelProperties: {
symmetricKey: {
serializedName: "symmetricKey",
type: {
name: "Composite",
className: "SymmetricKey"
}
},
x509Thumbprint: {
serializedName: "x509Thumbprint",
type: {
name: "Composite",
className: "X509Thumbprint"
}
},
type: {
serializedName: "type",
type: {
name: "String"
}
}
}
}
};
exports.DeviceCapabilities = {
serializedName: "DeviceCapabilities",
type: {
name: "Composite",
className: "DeviceCapabilities",
modelProperties: {
iotEdge: {
serializedName: "iotEdge",
type: {
name: "Boolean"
}
}
}
}
};
exports.Device = {
serializedName: "Device",
type: {
name: "Composite",
className: "Device",
modelProperties: {
deviceId: {
serializedName: "deviceId",
type: {
name: "String"
}
},
generationId: {
serializedName: "generationId",
type: {
name: "String"
}
},
etag: {
serializedName: "etag",
type: {
name: "String"
}
},
connectionState: {
serializedName: "connectionState",
type: {
name: "String"
}
},
status: {
serializedName: "status",
type: {
name: "String"
}
},
statusReason: {
serializedName: "statusReason",
type: {
name: "String"
}
},
connectionStateUpdatedTime: {
serializedName: "connectionStateUpdatedTime",
type: {
name: "DateTime"
}
},
statusUpdatedTime: {
serializedName: "statusUpdatedTime",
type: {
name: "DateTime"
}
},
lastActivityTime: {
serializedName: "lastActivityTime",
type: {
name: "DateTime"
}
},
cloudToDeviceMessageCount: {
serializedName: "cloudToDeviceMessageCount",
type: {
name: "Number"
}
},
authentication: {
serializedName: "authentication",
type: {
name: "Composite",
className: "AuthenticationMechanism"
}
},
capabilities: {
serializedName: "capabilities",
type: {
name: "Composite",
className: "DeviceCapabilities"
}
},
deviceScope: {
serializedName: "deviceScope",
type: {
name: "String"
}
},
parentScopes: {
serializedName: "parentScopes",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};
exports.PropertyContainer = {
serializedName: "PropertyContainer",
type: {
name: "Composite",
className: "PropertyContainer",
modelProperties: {
desired: {
serializedName: "desired",
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
},
reported: {
serializedName: "reported",
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
}
}
}
};
exports.ExportImportDevice = {
serializedName: "ExportImportDevice",
type: {
name: "Composite",
className: "ExportImportDevice",
modelProperties: {
id: {
serializedName: "id",
type: {
name: "String"
}
},
moduleId: {
serializedName: "moduleId",
type: {
name: "String"
}
},
eTag: {
serializedName: "eTag",
type: {
name: "String"
}
},
importMode: {
serializedName: "importMode",
type: {
name: "String"
}
},
status: {
serializedName: "status",
type: {
name: "String"
}
},
statusReason: {
serializedName: "statusReason",
type: {
name: "String"
}
},
authentication: {
serializedName: "authentication",
type: {
name: "Composite",
className: "AuthenticationMechanism"
}
},
twinETag: {
serializedName: "twinETag",
type: {
name: "String"
}
},
tags: {
serializedName: "tags",
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
},
properties: {
serializedName: "properties",
type: {
name: "Composite",
className: "PropertyContainer"
}
},
capabilities: {
serializedName: "capabilities",
type: {
name: "Composite",
className: "DeviceCapabilities"
}
},
deviceScope: {
serializedName: "deviceScope",
type: {
name: "String"
}
},
parentScopes: {
serializedName: "parentScopes",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};
exports.DeviceRegistryOperationError = {
serializedName: "DeviceRegistryOperationError",
type: {
name: "Composite",
className: "DeviceRegistryOperationError",
modelProperties: {
deviceId: {
serializedName: "deviceId",
type: {
name: "String"
}
},
errorCode: {
serializedName: "errorCode",
type: {
name: "String"
}
},
errorStatus: {
serializedName: "errorStatus",
type: {
name: "String"
}
},
moduleId: {
serializedName: "moduleId",
type: {
name: "String"
}
},
operation: {
serializedName: "operation",
type: {
name: "String"
}
}
}
}
};
exports.DeviceRegistryOperationWarning = {
serializedName: "DeviceRegistryOperationWarning",
type: {
name: "Composite",
className: "DeviceRegistryOperationWarning",
modelProperties: {
deviceId: {
serializedName: "deviceId",
type: {
name: "String"
}
},
warningCode: {
serializedName: "warningCode",
type: {
name: "String"
}
},
warningStatus: {
serializedName: "warningStatus",
type: {
name: "String"
}
}
}
}
};
exports.BulkRegistryOperationResult = {
serializedName: "BulkRegistryOperationResult",
type: {
name: "Composite",
className: "BulkRegistryOperationResult",
modelProperties: {
isSuccessful: {
serializedName: "isSuccessful",
type: {
name: "Boolean"
}
},
errors: {
serializedName: "errors",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "DeviceRegistryOperationError"
}
}
}
},
warnings: {
serializedName: "warnings",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "DeviceRegistryOperationWarning"
}
}
}
}
}
}
};
exports.QuerySpecification = {
serializedName: "QuerySpecification",
type: {
name: "Composite",
className: "QuerySpecification",
modelProperties: {
query: {
serializedName: "query",
type: {
name: "String"
}
}
}
}
};
exports.TwinProperties = {
serializedName: "TwinProperties",
type: {
name: "Composite",
className: "TwinProperties",
modelProperties: {
desired: {
serializedName: "desired",
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
},
reported: {
serializedName: "reported",
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
}
}
}
};
exports.Twin = {
serializedName: "Twin",
type: {
name: "Composite",
className: "Twin",
modelProperties: {
deviceId: {
serializedName: "deviceId",
type: {
name: "String"
}
},
moduleId: {
serializedName: "moduleId",
type: {
name: "String"
}
},
tags: {
serializedName: "tags",
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
},
properties: {
serializedName: "properties",
type: {
name: "Composite",
className: "TwinProperties"
}
},
etag: {
serializedName: "etag",
type: {
name: "String"
}
},
version: {
serializedName: "version",
type: {
name: "Number"
}
},
deviceEtag: {
serializedName: "deviceEtag",
type: {
name: "String"
}
},
status: {
serializedName: "status",
type: {
name: "String"
}
},
statusReason: {
serializedName: "statusReason",
type: {
name: "String"
}
},
statusUpdateTime: {
serializedName: "statusUpdateTime",
type: {
name: "DateTime"
}
},
connectionState: {
serializedName: "connectionState",
type: {
name: "String"
}
},
lastActivityTime: {
serializedName: "lastActivityTime",
type: {
name: "DateTime"
}
},
cloudToDeviceMessageCount: {
serializedName: "cloudToDeviceMessageCount",
type: {
name: "Number"
}
},
authenticationType: {
serializedName: "authenticationType",
type: {
name: "String"
}
},
x509Thumbprint: {
serializedName: "x509Thumbprint",
type: {
name: "Composite",
className: "X509Thumbprint"
}
},
capabilities: {
serializedName: "capabilities",
type: {
name: "Composite",
className: "DeviceCapabilities"
}
},
deviceScope: {
serializedName: "deviceScope",
type: {
name: "String"
}
},
parentScopes: {
serializedName: "parentScopes",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};
exports.JobProperties = {
serializedName: "JobProperties",
type: {
name: "Composite",
className: "JobProperties",
modelProperties: {
jobId: {
serializedName: "jobId",
type: {
name: "String"
}
},
startTimeUtc: {
serializedName: "startTimeUtc",
type: {
name: "DateTime"
}
},
endTimeUtc: {
serializedName: "endTimeUtc",
type: {
name: "DateTime"
}
},
type: {
serializedName: "type",
type: {
name: "String"
}
},
status: {
serializedName: "status",
type: {
name: "String"
}
},
progress: {
serializedName: "progress",
type: {
name: "Number"
}
},
inputBlobContainerUri: {
serializedName: "inputBlobContainerUri",
type: {
name: "String"
}
},
inputBlobName: {
serializedName: "inputBlobName",
type: {
name: "String"
}
},
outputBlobContainerUri: {
serializedName: "outputBlobContainerUri",
type: {
name: "String"
}
},
outputBlobName: {
serializedName: "outputBlobName",
type: {
name: "String"
}
},
excludeKeysInExport: {
serializedName: "excludeKeysInExport",
type: {
name: "Boolean"
}
},
storageAuthenticationType: {
serializedName: "storageAuthenticationType",
type: {
name: "String"
}
},
failureReason: {
serializedName: "failureReason",
type: {
name: "String"
}
}
}
}
};
exports.PurgeMessageQueueResult = {
serializedName: "PurgeMessageQueueResult",
type: {
name: "Composite",
className: "PurgeMessageQueueResult",
modelProperties: {
totalMessagesPurged: {
serializedName: "totalMessagesPurged",
type: {
name: "Number"
}
},
deviceId: {
serializedName: "deviceId",
type: {
name: "String"
}
},
moduleId: {
serializedName: "moduleId",
type: {
name: "String"
}
}
}
}
};
exports.FaultInjectionConnectionProperties = {
serializedName: "FaultInjectionConnectionProperties",
type: {
name: "Composite",
className: "FaultInjectionConnectionProperties",
modelProperties: {
action: {
serializedName: "action",
type: {
name: "String"
}
},
blockDurationInMinutes: {
serializedName: "blockDurationInMinutes",
type: {
name: "Number"
}
}
}
}
};
exports.FaultInjectionProperties = {
serializedName: "FaultInjectionProperties",
type: {
name: "Composite",
className: "FaultInjectionProperties",
modelProperties: {
iotHubName: {
serializedName: "IotHubName",
type: {
name: "String"
}
},
connection: {
serializedName: "connection",
type: {
name: "Composite",
className: "FaultInjectionConnectionProperties"
}
},
lastUpdatedTimeUtc: {
serializedName: "lastUpdatedTimeUtc",
type: {
name: "DateTime"
}
}
}
}
};
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: {

@@ -36,7 +1067,73 @@ serializedName: "value",

},
from: {
serializedName: "from",
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"
}
}
}
}

@@ -46,19 +1143,272 @@ }

};
exports.DigitalTwinPatch = {
serializedName: "DigitalTwinPatch",
exports.DigitalTwinInterfaces = {
serializedName: "DigitalTwinInterfaces",
type: {
name: "Composite",
className: "DigitalTwinPatch",
className: "DigitalTwinInterfaces",
modelProperties: {
operations: {
serializedName: "Operations",
interfaces: {
serializedName: "interfaces",
type: {
name: "Dictionary",
value: {
type: {
name: "Composite",
className: "InterfaceModel"
}
}
}
},
version: {
serializedName: "version",
type: {
name: "Number"
}
}
}
}
};
exports.CloudToDeviceMethod = {
serializedName: "CloudToDeviceMethod",
type: {
name: "Composite",
className: "CloudToDeviceMethod",
modelProperties: {
methodName: {
serializedName: "methodName",
type: {
name: "String"
}
},
payload: {
serializedName: "payload",
type: {
name: "Object"
}
},
responseTimeoutInSeconds: {
serializedName: "responseTimeoutInSeconds",
type: {
name: "Number"
}
},
connectTimeoutInSeconds: {
serializedName: "connectTimeoutInSeconds",
type: {
name: "Number"
}
}
}
}
};
exports.JobRequest = {
serializedName: "JobRequest",
type: {
name: "Composite",
className: "JobRequest",
modelProperties: {
jobId: {
serializedName: "jobId",
type: {
name: "String"
}
},
type: {
serializedName: "type",
type: {
name: "String"
}
},
cloudToDeviceMethod: {
serializedName: "cloudToDeviceMethod",
type: {
name: "Composite",
className: "CloudToDeviceMethod"
}
},
updateTwin: {
serializedName: "updateTwin",
type: {
name: "Composite",
className: "Twin"
}
},
queryCondition: {
serializedName: "queryCondition",
type: {
name: "String"
}
},
startTime: {
serializedName: "startTime",
type: {
name: "DateTime"
}
},
maxExecutionTimeInSeconds: {
serializedName: "maxExecutionTimeInSeconds",
type: {
name: "Number"
}
}
}
}
};
exports.DeviceJobStatistics = {
serializedName: "DeviceJobStatistics",
type: {
name: "Composite",
className: "DeviceJobStatistics",
modelProperties: {
deviceCount: {
serializedName: "deviceCount",
type: {
name: "Number"
}
},
failedCount: {
serializedName: "failedCount",
type: {
name: "Number"
}
},
succeededCount: {
serializedName: "succeededCount",
type: {
name: "Number"
}
},
runningCount: {
serializedName: "runningCount",
type: {
name: "Number"
}
},
pendingCount: {
serializedName: "pendingCount",
type: {
name: "Number"
}
}
}
}
};
exports.JobResponse = {
serializedName: "JobResponse",
type: {
name: "Composite",
className: "JobResponse",
modelProperties: {
jobId: {
serializedName: "jobId",
type: {
name: "String"
}
},
queryCondition: {
serializedName: "queryCondition",
type: {
name: "String"
}
},
createdTime: {
serializedName: "createdTime",
type: {
name: "DateTime"
}
},
startTime: {
serializedName: "startTime",
type: {
name: "DateTime"
}
},
endTime: {
serializedName: "endTime",
type: {
name: "DateTime"
}
},
maxExecutionTimeInSeconds: {
serializedName: "maxExecutionTimeInSeconds",
type: {
name: "Number"
}
},
type: {
serializedName: "type",
type: {
name: "String"
}
},
cloudToDeviceMethod: {
serializedName: "cloudToDeviceMethod",
type: {
name: "Composite",
className: "CloudToDeviceMethod"
}
},
updateTwin: {
serializedName: "updateTwin",
type: {
name: "Composite",
className: "Twin"
}
},
status: {
serializedName: "status",
type: {
name: "String"
}
},
failureReason: {
serializedName: "failureReason",
type: {
name: "String"
}
},
statusMessage: {
serializedName: "statusMessage",
type: {
name: "String"
}
},
deviceJobStatistics: {
serializedName: "deviceJobStatistics",
type: {
name: "Composite",
className: "DeviceJobStatistics"
}
}
}
}
};
exports.QueryResult = {
serializedName: "QueryResult",
type: {
name: "Composite",
className: "QueryResult",
modelProperties: {
type: {
serializedName: "type",
type: {
name: "String"
}
},
items: {
serializedName: "items",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "PatchOperation"
name: "Object"
}
}
}
},
continuationToken: {
serializedName: "continuationToken",
type: {
name: "String"
}
}

@@ -68,20 +1418,182 @@ }

};
exports.VariantValue = {
serializedName: "VariantValue",
exports.Module = {
serializedName: "Module",
type: {
name: "Composite",
className: "VariantValue",
className: "Module",
modelProperties: {
objectValue: {
readOnly: true,
serializedName: "ObjectValue",
moduleId: {
serializedName: "moduleId",
type: {
name: "String"
}
},
managedBy: {
serializedName: "managedBy",
type: {
name: "String"
}
},
deviceId: {
serializedName: "deviceId",
type: {
name: "String"
}
},
generationId: {
serializedName: "generationId",
type: {
name: "String"
}
},
etag: {
serializedName: "etag",
type: {
name: "String"
}
},
connectionState: {
serializedName: "connectionState",
type: {
name: "String"
}
},
connectionStateUpdatedTime: {
serializedName: "connectionStateUpdatedTime",
type: {
name: "DateTime"
}
},
lastActivityTime: {
serializedName: "lastActivityTime",
type: {
name: "DateTime"
}
},
cloudToDeviceMessageCount: {
serializedName: "cloudToDeviceMessageCount",
type: {
name: "Number"
}
},
authentication: {
serializedName: "authentication",
type: {
name: "Composite",
className: "AuthenticationMechanism"
}
}
}
}
};
exports.CloudToDeviceMethodResult = {
serializedName: "CloudToDeviceMethodResult",
type: {
name: "Composite",
className: "CloudToDeviceMethodResult",
modelProperties: {
status: {
serializedName: "status",
type: {
name: "Number"
}
},
payload: {
serializedName: "payload",
type: {
name: "Object"
}
}
}
}
};
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 = {
serializedName: "registrymanager-queryiothub-headers",
type: {
name: "Composite",
className: "RegistryManagerQueryIotHubHeaders",
modelProperties: {
xMsItemType: {
serializedName: "x-ms-item-type",
type: {
name: "String"
}
},
isNull: {
readOnly: true,
serializedName: "IsNull",
xMsContinuation: {
serializedName: "x-ms-continuation",
type: {
name: "Boolean"
name: "String"
}

@@ -92,2 +1604,116 @@ }

};
exports.DigitalTwinGetDigitalTwinHeaders = {
serializedName: "digitaltwin-getdigitaltwin-headers",
type: {
name: "Composite",
className: "DigitalTwinGetDigitalTwinHeaders",
modelProperties: {
eTag: {
serializedName: "etag",
type: {
name: "String"
}
}
}
}
};
exports.DigitalTwinUpdateDigitalTwinHeaders = {
serializedName: "digitaltwin-updatedigitaltwin-headers",
type: {
name: "Composite",
className: "DigitalTwinUpdateDigitalTwinHeaders",
modelProperties: {
eTag: {
serializedName: "etag",
type: {
name: "String"
}
},
location: {
serializedName: "location",
type: {
name: "String"
}
}
}
}
};
exports.DigitalTwinGetComponentsHeaders = {
serializedName: "digitaltwin-getcomponents-headers",
type: {
name: "Composite",
className: "DigitalTwinGetComponentsHeaders",
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 = {

@@ -114,2 +1740,44 @@ serializedName: "digitaltwin-invokecomponentcommand-headers",

};
exports.DigitalTwinInvokeComponentCommandHeaders1 = {
serializedName: "digitaltwin-invokecomponentcommand-headers",
type: {
name: "Composite",
className: "DigitalTwinInvokeComponentCommandHeaders1",
modelProperties: {
xMsCommandStatuscode: {
serializedName: "x-ms-command-statuscode",
type: {
name: "Number"
}
},
xMsRequestId: {
serializedName: "x-ms-request-id",
type: {
name: "String"
}
}
}
}
};
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
import * as msRest from "@azure/ms-rest-js";
export declare const apiVersion: msRest.OperationQueryParameter;
export declare const commandName: msRest.OperationURLParameter;
export declare const componentName: msRest.OperationURLParameter;
export declare const componentPath: msRest.OperationURLParameter;
export declare const connectTimeoutInSeconds: msRest.OperationQueryParameter;
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;
export declare const jobType: msRest.OperationQueryParameter;
export declare const lockToken: msRest.OperationURLParameter;
export declare const mid: msRest.OperationURLParameter;
export declare const modelId: msRest.OperationURLParameter;
export declare const moduleId: msRest.OperationURLParameter;
export declare const responseTimeoutInSeconds: msRest.OperationQueryParameter;
export declare const top: msRest.OperationQueryParameter;
export declare const xMsContinuation: msRest.OperationParameter;
export declare const xMsMaxItemCount: msRest.OperationParameter;
//# sourceMappingURL=parameters.d.ts.map

@@ -33,7 +33,7 @@ "use strict";

};
exports.componentName = {
parameterPath: "componentName",
exports.componentPath = {
parameterPath: "componentPath",
mapper: {
required: true,
serializedName: "componentName",
serializedName: "componentPath",
type: {

@@ -56,2 +56,12 @@ name: "String"

};
exports.deviceId = {
parameterPath: "deviceId",
mapper: {
required: true,
serializedName: "deviceId",
type: {
name: "String"
}
}
};
exports.digitalTwinId = {

@@ -67,2 +77,24 @@ parameterPath: "digitalTwinId",

};
exports.expand = {
parameterPath: [
"options",
"expand"
],
mapper: {
serializedName: "expand",
type: {
name: "Boolean"
}
}
};
exports.id = {
parameterPath: "id",
mapper: {
required: true,
serializedName: "id",
type: {
name: "String"
}
}
};
exports.ifMatch = {

@@ -80,2 +112,76 @@ parameterPath: [

};
exports.interfaceName = {
parameterPath: "interfaceName",
mapper: {
required: true,
serializedName: "interfaceName",
type: {
name: "String"
}
}
};
exports.jobStatus = {
parameterPath: [
"options",
"jobStatus"
],
mapper: {
serializedName: "jobStatus",
type: {
name: "String"
}
}
};
exports.jobType = {
parameterPath: [
"options",
"jobType"
],
mapper: {
serializedName: "jobType",
type: {
name: "String"
}
}
};
exports.lockToken = {
parameterPath: "lockToken",
mapper: {
required: true,
serializedName: "lockToken",
type: {
name: "String"
}
}
};
exports.mid = {
parameterPath: "mid",
mapper: {
required: true,
serializedName: "mid",
type: {
name: "String"
}
}
};
exports.modelId = {
parameterPath: "modelId",
mapper: {
required: true,
serializedName: "modelId",
type: {
name: "String"
}
}
};
exports.moduleId = {
parameterPath: "moduleId",
mapper: {
required: true,
serializedName: "moduleId",
type: {
name: "String"
}
}
};
exports.responseTimeoutInSeconds = {

@@ -93,2 +199,38 @@ parameterPath: [

};
exports.top = {
parameterPath: [
"options",
"top"
],
mapper: {
serializedName: "top",
type: {
name: "Number"
}
}
};
exports.xMsContinuation = {
parameterPath: [
"options",
"xMsContinuation"
],
mapper: {
serializedName: "x-ms-continuation",
type: {
name: "String"
}
}
};
exports.xMsMaxItemCount = {
parameterPath: [
"options",
"xMsMaxItemCount"
],
mapper: {
serializedName: "x-ms-max-item-count",
type: {
name: "String"
}
}
};
//# sourceMappingURL=parameters.js.map

@@ -13,9 +13,66 @@ import * as msRest from "@azure/ms-rest-js";

/**
* @summary Gets the digital twin.
* 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.
* @param id Digital Twin ID.
* @param [options] The optional parameters
* @returns Promise<Models.DigitalTwinGetDigitalTwinResponse>
*/
getDigitalTwin(id: string, options?: msRest.RequestOptionsBase): Promise<Models.DigitalTwinGetDigitalTwinResponse>;
/**
* @param id Digital Twin ID.
* @param callback The callback
*/
getDigitalTwin(id: string, callback: msRest.ServiceCallback<any>): void;
/**
* @param id Digital Twin ID.
* @param options The optional parameters
* @param callback The callback
*/
getDigitalTwin(id: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<any>): 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 a digital twin.
* @param id Digital Twin ID.
* @param digitalTwinPatch json-patch contents to update.
* @param [options] The optional parameters
* @returns Promise<Models.DigitalTwinUpdateDigitalTwinResponse>
*/
updateDigitalTwin(id: string, digitalTwinPatch: any[], options?: Models.DigitalTwinUpdateDigitalTwinOptionalParams): Promise<Models.DigitalTwinUpdateDigitalTwinResponse>;
/**
* @param id Digital Twin ID.
* @param digitalTwinPatch json-patch contents to update.
* @param callback The callback
*/
updateDigitalTwin(id: string, digitalTwinPatch: any[], callback: msRest.ServiceCallback<void>): void;
/**
* @param id Digital Twin ID.
* @param digitalTwinPatch json-patch contents to update.
* @param options The optional parameters
* @param callback The callback
*/
updateDigitalTwin(id: string, digitalTwinPatch: any[], options: Models.DigitalTwinUpdateDigitalTwinOptionalParams, callback: msRest.ServiceCallback<void>): 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 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.DigitalTwinGetDigitalTwinResponse>
* @returns Promise<Models.DigitalTwinGetComponentsResponse>
*/
getDigitalTwin(digitalTwinId: string, options?: msRest.RequestOptionsBase): Promise<Models.DigitalTwinGetDigitalTwinResponse>;
getComponents(digitalTwinId: string, options?: msRest.RequestOptionsBase): Promise<Models.DigitalTwinGetComponentsResponse>;
/**

@@ -26,3 +83,3 @@ * @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId

*/
getDigitalTwin(digitalTwinId: string, callback: msRest.ServiceCallback<any>): void;
getComponents(digitalTwinId: string, callback: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): void;
/**

@@ -34,29 +91,97 @@ * @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId

*/
getDigitalTwin(digitalTwinId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<any>): void;
getComponents(digitalTwinId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): void;
/**
* @summary Updates the digital twin.
* @param digitalTwinId ID of digital twin.
* @param digitalTwinPatch json-patch contents to update.
* 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.DigitalTwinUpdateDigitalTwinResponse>
* @returns Promise<Models.DigitalTwinUpdateComponentResponse>
*/
updateDigitalTwin(digitalTwinId: string, digitalTwinPatch: Models.PatchOperation[], options?: Models.DigitalTwinUpdateDigitalTwinOptionalParams): Promise<Models.DigitalTwinUpdateDigitalTwinResponse>;
updateComponent(digitalTwinId: string, interfacesPatchInfo: Models.DigitalTwinInterfacesPatch, options?: Models.DigitalTwinUpdateComponentOptionalParams): Promise<Models.DigitalTwinUpdateComponentResponse>;
/**
* @param digitalTwinId ID of digital twin.
* @param digitalTwinPatch json-patch contents to update.
* @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
*/
updateDigitalTwin(digitalTwinId: string, digitalTwinPatch: Models.PatchOperation[], callback: msRest.ServiceCallback<any>): void;
updateComponent(digitalTwinId: string, interfacesPatchInfo: Models.DigitalTwinInterfacesPatch, callback: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): void;
/**
* @param digitalTwinId ID of digital twin.
* @param digitalTwinPatch json-patch contents to update.
* @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
*/
updateDigitalTwin(digitalTwinId: string, digitalTwinPatch: Models.PatchOperation[], options: Models.DigitalTwinUpdateDigitalTwinOptionalParams, callback: msRest.ServiceCallback<any>): void;
updateComponent(digitalTwinId: string, interfacesPatchInfo: Models.DigitalTwinInterfacesPatch, options: Models.DigitalTwinUpdateComponentOptionalParams, callback: msRest.ServiceCallback<Models.DigitalTwinInterfaces>): void;
/**
* Invoke a digital twin command.
* @summary Invoke a digital twin command.
* 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 componentName
* @param interfaceName
* @param commandName

@@ -67,6 +192,6 @@ * @param payload

*/
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeComponentCommandOptionalParams): Promise<Models.DigitalTwinInvokeComponentCommandResponse>;
invokeComponentCommand(digitalTwinId: string, interfaceName: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeComponentCommandOptionalParams): Promise<Models.DigitalTwinInvokeComponentCommandResponse>;
/**
* @param digitalTwinId
* @param componentName
* @param interfaceName
* @param commandName

@@ -76,6 +201,6 @@ * @param payload

*/
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, payload: any, callback: msRest.ServiceCallback<any>): void;
invokeComponentCommand(digitalTwinId: string, interfaceName: string, commandName: string, payload: any, callback: msRest.ServiceCallback<any>): void;
/**
* @param digitalTwinId
* @param componentName
* @param interfaceName
* @param commandName

@@ -86,4 +211,57 @@ * @param payload

*/
invokeComponentCommand(digitalTwinId: string, componentName: 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, callback: msRest.ServiceCallback<any>): void;
/**
* Invoke a digital twin command.
* @summary Invoke a digital twin command.
* @param id
* @param componentPath
* @param commandName
* @param payload
* @param [options] The optional parameters
* @returns Promise<Models.DigitalTwinInvokeComponentCommandHeaders12>
*/
invokeComponentCommand1(id: string, componentPath: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeComponentCommand1OptionalParams): Promise<Models.DigitalTwinInvokeComponentCommandHeaders12>;
/**
* @param id
* @param componentPath
* @param commandName
* @param payload
* @param callback The callback
*/
invokeComponentCommand1(id: string, componentPath: string, commandName: string, payload: any, callback: msRest.ServiceCallback<any>): void;
/**
* @param id
* @param componentPath
* @param commandName
* @param payload
* @param options The optional parameters
* @param callback The callback
*/
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;
}
//# sourceMappingURL=digitalTwin.d.ts.map

@@ -11,2 +11,13 @@ "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 });

@@ -25,11 +36,11 @@ var msRest = require("@azure/ms-rest-js");

}
DigitalTwin.prototype.getDigitalTwin = function (digitalTwinId, options, callback) {
DigitalTwin.prototype.getDigitalTwin = function (id, options, callback) {
return this.client.sendOperationRequest({
digitalTwinId: digitalTwinId,
id: id,
options: options
}, getDigitalTwinOperationSpec, callback);
};
DigitalTwin.prototype.updateDigitalTwin = function (digitalTwinId, digitalTwinPatch, options, callback) {
DigitalTwin.prototype.updateDigitalTwin = function (id, digitalTwinPatch, options, callback) {
return this.client.sendOperationRequest({
digitalTwinId: digitalTwinId,
id: id,
digitalTwinPatch: digitalTwinPatch,

@@ -39,6 +50,32 @@ options: options

};
DigitalTwin.prototype.invokeComponentCommand = function (digitalTwinId, componentName, commandName, payload, options, callback) {
DigitalTwin.prototype.getComponents = function (digitalTwinId, options, callback) {
return this.client.sendOperationRequest({
digitalTwinId: digitalTwinId,
componentName: componentName,
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,
commandName: commandName,

@@ -49,2 +86,19 @@ payload: payload,

};
DigitalTwin.prototype.invokeComponentCommand1 = function (id, componentPath, commandName, payload, options, callback) {
return this.client.sendOperationRequest({
id: id,
componentPath: componentPath,
commandName: commandName,
payload: payload,
options: options
}, invokeComponentCommand1OperationSpec, 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;

@@ -57,5 +111,5 @@ }());

httpMethod: "GET",
path: "digitaltwins/{digitalTwinId}",
path: "digitaltwins/{id}",
urlParameters: [
Parameters.digitalTwinId
Parameters.id
],

@@ -72,3 +126,4 @@ queryParameters: [

}
}
},
headersMapper: Mappers.DigitalTwinGetDigitalTwinHeaders
},

@@ -81,5 +136,5 @@ default: {}

httpMethod: "PATCH",
path: "digitaltwins/{digitalTwinId}",
path: "digitaltwins/{id}",
urlParameters: [
Parameters.digitalTwinId
Parameters.id
],

@@ -101,4 +156,3 @@ queryParameters: [

type: {
name: "Composite",
className: "PatchOperation"
name: "Object"
}

@@ -110,3 +164,83 @@ }

responses: {
202: {
headersMapper: Mappers.DigitalTwinUpdateDigitalTwinHeaders
},
default: {}
},
serializer: serializer
};
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: {

@@ -117,5 +251,8 @@ serializedName: "parsedResponse",

}
}
},
headersMapper: Mappers.DigitalTwinGetDigitalTwinModelHeaders
},
202: {},
204: {
headersMapper: Mappers.DigitalTwinGetDigitalTwinModelHeaders
},
default: {}

@@ -127,6 +264,6 @@ },

httpMethod: "POST",
path: "digitalTwins/{digitalTwinId}/components/{componentName}/commands/{commandName}",
path: "digitalTwins/{digitalTwinId}/interfaces/{interfaceName}/commands/{commandName}",
urlParameters: [
Parameters.digitalTwinId,
Parameters.componentName,
Parameters.interfaceName,
Parameters.commandName

@@ -163,2 +300,75 @@ ],

};
var invokeComponentCommand1OperationSpec = {
httpMethod: "POST",
path: "digitaltwins/{id}/components/{componentPath}/commands/{commandName}",
urlParameters: [
Parameters.id,
Parameters.componentPath,
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.DigitalTwinInvokeComponentCommandHeaders1
},
default: {}
},
serializer: serializer
};
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

@@ -0,2 +1,9 @@

export * from "./configurationOperations";
export * from "./registryManager";
export * from "./jobClient";
export * from "./faultInjection";
export * from "./twinOperations";
export * from "./digitalTwin";
export * from "./httpRuntime";
export * from "./deviceMethod";
//# sourceMappingURL=index.d.ts.map

@@ -15,3 +15,10 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./configurationOperations"));
__export(require("./registryManager"));
__export(require("./jobClient"));
__export(require("./faultInjection"));
__export(require("./twinOperations"));
__export(require("./digitalTwin"));
__export(require("./httpRuntime"));
__export(require("./deviceMethod"));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,5 @@

export import { IoTHubTokenCredentials } from './dist/auth/iothub_token_credentials';
export import { DigitalTwinServiceClient } from './dist/cl/digital_twin_service_client';
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
export { IoTHubTokenCredentials } from './dist/auth/iothub_token_credentials';
export { DigitalTwinServiceClient } from './dist/cl/digital_twin_service_client';
{
"name": "azure-iot-digitaltwins-service",
"version": "1.0.0-pnp-refresh.0",
"version": "1.0.0-pnp-refresh.1",
"description": "Azure IoT Digital Twins Preview",

@@ -89,5 +89,5 @@ "main": "index.js",

"@azure/ms-rest-js": "^2.0.5",
"azure-iot-common": "1.12.0-pnp-refresh.0",
"azure-iot-common": "1.12.4",
"tslib": "^1.9.3"
}
}

@@ -14,25 +14,84 @@ /*

* @export
* @type DigitalTwinGetTwinResponse Type alias to simplify the auto generated type's name
* @type DigitalTwin Type alias to simplify the auto generated type's name
*/
export type DigitalTwinGetResponse = Models.DigitalTwinGetDigitalTwinResponse;
export type DigitalTwin = Models.DigitalTwinGetComponentsHeaders | undefined;
/**
* @export
* @type DigitalTwinResponse Type alias to simplify the auto generated type's name
*/
export type DigitalTwinResponse = Models.DigitalTwinGetDigitalTwinResponse | undefined;
/**
* @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
*/
export type DigitalTwinUpdateResponse = Models.DigitalTwinUpdateDigitalTwinResponse;
export type DigitalTwinUpdateResponse = Models.DigitalTwinUpdateDigitalTwinResponse | undefined;
/**
* @export
* @type DigitalTwinPatch Type alias to simplify the auto generated type's name
* @type Model Type alias to simplify the auto generated type's name
*/
export type DigitalTwinPatch = Models.DigitalTwinPatch;
export type Model = Models.DigitalTwinGetDigitalTwinModelResponse;
/**
* @export
* @type DigitalTwinInvokeComponentCommandResponse Type alias to simplify the auto generated type's name
* @type DigitalTwinGetDigitalTwinModelResponse Type alias to simplify the auto generated type's name
*/
export type DigitalTwinInvokeComponentCommandResponse = Models.DigitalTwinInvokeComponentCommandResponse;
export type DigitalTwinGetDigitalTwinModelResponse = Models.DigitalTwinGetDigitalTwinModelResponse;
/**
* @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

@@ -95,37 +154,31 @@ * Helper function to create extended result type

* Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId is optional.
* @returns DigitalTwinGetDigitalTwinResponse The return object containing the Digital Twin plus the HttpResponse.
* @returns DigitalTwinResponse The return object containing the Digital Twin plus the HttpResponse.
* @memberof DigitalTwinServiceClient
*/
getDigitalTwin(digitalTwinId: string): Promise<DigitalTwinGetResponse>;
getDigitalTwin(digitalTwinId: string, callback: TripleValueCallback<DigitalTwinGetResponse, msRest.HttpOperationResponse>): void;
getDigitalTwin(digitalTwinId: string, callback?: TripleValueCallback<DigitalTwinGetResponse, msRest.HttpOperationResponse>): void | Promise<DigitalTwinGetResponse> {
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_002: [The `getDigitalTwin` method shall call the `getComponents` method of the protocol layer with the given argument.]*/
getDigitalTwin(digitalTwinId: string): Promise<DigitalTwinResponse>;
getDigitalTwin(digitalTwinId: string, callback: TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>): void;
getDigitalTwin(digitalTwinId: string, callback?: TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>): void | Promise<DigitalTwinResponse> {
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_002: [The `getDigitalTwin` method shall call the `getDigitalTwin` method of the protocol layer with the given argument.]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_003: [The `getDigitalTwin` method shall call the callback with an error parameter if a callback is passed..]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_004: [The `getDigitalTwin` method shall return error if the method of the protocol layer failed.]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_020: [The `getDigitalTwin` method shall return a promise if there is no callback passed.]*/
return tripleValueCallbackToPromise<DigitalTwinGetResponse, msRest.HttpOperationResponse, DigitalTwinGetResponse>((_callback) => {
return tripleValueCallbackToPromise<DigitalTwin, msRest.HttpOperationResponse, DigitalTwinResponse>((_callback) => {
this._pl.digitalTwin.getDigitalTwin(digitalTwinId, (err, result, request, response) => {
_callback(err as Error, result, response);
});
}, (result, response) => createResultWithHttpOperationResponse<DigitalTwinGetResponse, DigitalTwinGetResponse>(result, response), callback as TripleValueCallback<DigitalTwinGetResponse, msRest.HttpOperationResponse>);
}, (result, response) => createResultWithHttpOperationResponse<DigitalTwin, DigitalTwinResponse>(result, response), callback as TripleValueCallback<DigitalTwin, msRest.HttpOperationResponse>);
}
/**
* @method updateDigitalTwin module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.updateDigitalTwin
* @description Update the Digital Twin Component of a given device using a patch object.
* @param {string} digitalTwinId The digital twin Id of the given device.
* @param {any[]} patch The patch objet contains the update part of a Digital Twin Component.
* @param {string} eTag The eTag for identifying the patch.
* @returns DigitalTwinUpdateResponse The return object containing the updated Digital Twin plus the HttpResponse.
* @method updateDigitalTwin module: azure-iot-digitaltwins-service.DigitalTwinServiceClient.updateDigitalTwin
* @description Update the Digital Twin of a given device using a patch object.
* @param {string} digitalTwinId The digital twin Id of the given device.
* @param {any[]} patch The patch objet contains the update part of a Digital Twin.
* @param {string} eTag The eTag for identifying the patch.
* @returns DigitalTwinUpdateResponse The HTTPesponse.
* @memberof DigitalTwinServiceClient
*/
updateDigitalTwin(digitalTwinId: string, patch: any[], eTag?: string): Promise<DigitalTwinUpdateResponse>;
updateDigitalTwin(digitalTwinId: string, patch: any[], eTagOrCallback?: string | TripleValueCallback<DigitalTwinUpdateResponse, msRest.HttpOperationResponse>, callback?: TripleValueCallback<DigitalTwinUpdateResponse, msRest.HttpOperationResponse>): void;
updateDigitalTwin(digitalTwinId: string, patch: any[], eTagOrCallback?: string | TripleValueCallback<DigitalTwinUpdateResponse, msRest.HttpOperationResponse>, callback?: TripleValueCallback<DigitalTwinUpdateResponse, msRest.HttpOperationResponse>): void | Promise<DigitalTwinUpdateResponse> {
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_035: [The `updateDigitalTwin` method shall call the `updateDigitalTwin` method of the protocol layer with the given arguments.]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_036: [The `updateDigitalTwin` method shall call the callback with an error parameter if a callback is passed..]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_037: [The `updateDigitalTwin` method shall return error if the method of the protocol layer failed.]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_038: [The `updateDigitalTwin` method shall return a promise if there is no callback passed.]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_039: [The `updateDigitalTwin` method shall call the `updateDigitalTwin` method of the protocol layer with the given arguments including eTag.]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_040: [The `updateDigitalTwin` method shall return a promise if eTag is passed and there is no callback passed.] */
updateDigitalTwin(digitalTwinId: string, patch: any[], eTagOrCallback?: string | TripleValueCallback<void, msRest.HttpOperationResponse>, callback?: TripleValueCallback<void, msRest.HttpOperationResponse>): void;
updateDigitalTwin(digitalTwinId: string, patch: any[], eTagOrCallback?: string | TripleValueCallback<void, msRest.HttpOperationResponse>, callback?: TripleValueCallback<void, msRest.HttpOperationResponse>): void | Promise<DigitalTwinUpdateResponse> {
const actualCallback = typeof eTagOrCallback === 'function' ? eTagOrCallback : callback;

@@ -135,32 +188,120 @@ const actualEtag = typeof eTagOrCallback !== 'function' ? eTagOrCallback : undefined;

return tripleValueCallbackToPromise<DigitalTwinUpdateResponse, msRest.HttpOperationResponse, DigitalTwinUpdateResponse>((_callback) => {
return tripleValueCallbackToPromise<void, msRest.HttpOperationResponse, DigitalTwinUpdateResponse>((_callback) => {
this._pl.digitalTwin.updateDigitalTwin(digitalTwinId, patch, options as Models.DigitalTwinUpdateDigitalTwinOptionalParams, (err, result, request, response) => {
_callback(err as Error, result, response);
});
}, (result, response) => createResultWithHttpOperationResponse<DigitalTwinUpdateResponse, DigitalTwinUpdateResponse>(result, response), actualCallback as TripleValueCallback<DigitalTwinUpdateResponse, msRest.HttpOperationResponse>);
}, (result, response) => createResultWithHttpOperationResponse<void, DigitalTwinUpdateResponse>(result, response), actualCallback as TripleValueCallback<void, 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 DigitalTwinInvokeComponentCommandResponse The result of the invoked command containing the result, status code, request ID and the parsed HttpResponse.
* @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.
* @memberof DigitalTwinServiceClient
*/
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, argument: string): Promise<DigitalTwinInvokeComponentCommandResponse>;
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, argument: string, callback: TripleValueCallback<DigitalTwinInvokeComponentCommandResponse, msRest.HttpOperationResponse>): void;
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, argument: string, callback?: TripleValueCallback<DigitalTwinInvokeComponentCommandResponse, msRest.HttpOperationResponse>): void | Promise<DigitalTwinInvokeComponentCommandResponse> {
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_017: [The `invokeCommand` method shall call the `invokeComponentCommand` method of the protocol layer with the given arguments.]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_018: [The `invokeCommand` method shall call the callback with an error parameter if a callback is passed..]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_019: [The `invokeCommand` method shall return error if the method of the protocol layer failed.]*/
/*Codes_SRS_NODE_DIGITAL_TWIN_SERVICE_CLIENT_12_025: [The `invokeCommand` method shall return a promise if there is no callback passed.]*/
return tripleValueCallbackToPromise<DigitalTwinInvokeComponentCommandResponse, msRest.HttpOperationResponse, DigitalTwinInvokeComponentCommandResponse>((_callback) => {
this._pl.digitalTwin.invokeComponentCommand(digitalTwinId, componentName, commandName, argument, (err, result, request, response) => {
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) => result, callback as TripleValueCallback<DigitalTwinInvokeComponentCommandResponse, msRest.HttpOperationResponse>);
}, (result, response) => createResultWithHttpOperationResponse<DigitalTwinComponents, DigitalTwinGetComponentsResponse>(result, response), callback as TripleValueCallback<DigitalTwinComponents, msRest.HttpOperationResponse>);
}
/**
* @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.
* @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>);
}
/**
* @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>);
}
}

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

// Operation groups
configuration: operations.ConfigurationOperations;
registryManager: operations.RegistryManager;
jobClient: operations.JobClient;
faultInjection: operations.FaultInjection;
twin: operations.TwinOperations;
digitalTwin: operations.DigitalTwin;
httpRuntime: operations.HttpRuntime;
deviceMethod: operations.DeviceMethod;

@@ -29,3 +36,10 @@ /**

super(credentials, options);
this.configuration = new operations.ConfigurationOperations(this);
this.registryManager = new operations.RegistryManager(this);
this.jobClient = new operations.JobClient(this);
this.faultInjection = new operations.FaultInjection(this);
this.twin = new operations.TwinOperations(this);
this.digitalTwin = new operations.DigitalTwin(this);
this.httpRuntime = new operations.HttpRuntime(this);
this.deviceMethod = new operations.DeviceMethod(this);
}

@@ -32,0 +46,0 @@ }

@@ -10,4 +10,21 @@ /*

export {
Desired,
DesiredState,
DigitalTwinGetComponentHeaders,
DigitalTwinGetComponentsHeaders,
DigitalTwinGetDigitalTwinHeaders,
DigitalTwinGetDigitalTwinModelHeaders,
DigitalTwinInterfaces,
DigitalTwinInterfacesPatch,
DigitalTwinInterfacesPatchInterfacesValue,
DigitalTwinInterfacesPatchInterfacesValuePropertiesValue,
DigitalTwinInterfacesPatchInterfacesValuePropertiesValueDesired,
DigitalTwinInvokeComponentCommandHeaders,
PatchOperation
DigitalTwinInvokeComponentCommandHeaders1,
DigitalTwinInvokeRootLevelCommandHeaders,
DigitalTwinUpdateComponentHeaders,
DigitalTwinUpdateDigitalTwinHeaders,
InterfaceModel,
Property,
Reported
} from "../models/mappers";

@@ -12,16 +12,96 @@ /*

export const PatchOperation: msRest.CompositeMapper = {
serializedName: "PatchOperation",
export const ConfigurationMetrics: msRest.CompositeMapper = {
serializedName: "ConfigurationMetrics",
type: {
name: "Composite",
className: "PatchOperation",
className: "ConfigurationMetrics",
modelProperties: {
op: {
serializedName: "op",
results: {
serializedName: "results",
type: {
name: "Dictionary",
value: {
type: {
name: "Number"
}
}
}
},
queries: {
serializedName: "queries",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
}
}
}
};
export const ConfigurationContent: msRest.CompositeMapper = {
serializedName: "ConfigurationContent",
type: {
name: "Composite",
className: "ConfigurationContent",
modelProperties: {
deviceContent: {
serializedName: "deviceContent",
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
},
modulesContent: {
serializedName: "modulesContent",
type: {
name: "Dictionary",
value: {
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
}
}
},
moduleContent: {
serializedName: "moduleContent",
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
}
}
}
};
export const Configuration: msRest.CompositeMapper = {
serializedName: "Configuration",
type: {
name: "Composite",
className: "Configuration",
modelProperties: {
id: {
serializedName: "id",
type: {
name: "String"
}
},
path: {
serializedName: "path",
schemaVersion: {
serializedName: "schemaVersion",
type: {

@@ -31,2 +111,978 @@ name: "String"

},
labels: {
serializedName: "labels",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
},
content: {
serializedName: "content",
type: {
name: "Composite",
className: "ConfigurationContent"
}
},
targetCondition: {
serializedName: "targetCondition",
type: {
name: "String"
}
},
createdTimeUtc: {
serializedName: "createdTimeUtc",
type: {
name: "DateTime"
}
},
lastUpdatedTimeUtc: {
serializedName: "lastUpdatedTimeUtc",
type: {
name: "DateTime"
}
},
priority: {
serializedName: "priority",
type: {
name: "Number"
}
},
systemMetrics: {
serializedName: "systemMetrics",
type: {
name: "Composite",
className: "ConfigurationMetrics"
}
},
metrics: {
serializedName: "metrics",
type: {
name: "Composite",
className: "ConfigurationMetrics"
}
},
etag: {
serializedName: "etag",
type: {
name: "String"
}
}
}
}
};
export const ConfigurationQueriesTestInput: msRest.CompositeMapper = {
serializedName: "ConfigurationQueriesTestInput",
type: {
name: "Composite",
className: "ConfigurationQueriesTestInput",
modelProperties: {
targetCondition: {
serializedName: "targetCondition",
type: {
name: "String"
}
},
customMetricQueries: {
serializedName: "customMetricQueries",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
}
}
}
};
export const ConfigurationQueriesTestResponse: msRest.CompositeMapper = {
serializedName: "ConfigurationQueriesTestResponse",
type: {
name: "Composite",
className: "ConfigurationQueriesTestResponse",
modelProperties: {
targetConditionError: {
serializedName: "targetConditionError",
type: {
name: "String"
}
},
customMetricQueryErrors: {
serializedName: "customMetricQueryErrors",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
}
}
}
};
export const RegistryStatistics: msRest.CompositeMapper = {
serializedName: "RegistryStatistics",
type: {
name: "Composite",
className: "RegistryStatistics",
modelProperties: {
totalDeviceCount: {
serializedName: "totalDeviceCount",
type: {
name: "Number"
}
},
enabledDeviceCount: {
serializedName: "enabledDeviceCount",
type: {
name: "Number"
}
},
disabledDeviceCount: {
serializedName: "disabledDeviceCount",
type: {
name: "Number"
}
}
}
}
};
export const ServiceStatistics: msRest.CompositeMapper = {
serializedName: "ServiceStatistics",
type: {
name: "Composite",
className: "ServiceStatistics",
modelProperties: {
connectedDeviceCount: {
serializedName: "connectedDeviceCount",
type: {
name: "Number"
}
}
}
}
};
export const SymmetricKey: msRest.CompositeMapper = {
serializedName: "SymmetricKey",
type: {
name: "Composite",
className: "SymmetricKey",
modelProperties: {
primaryKey: {
serializedName: "primaryKey",
type: {
name: "String"
}
},
secondaryKey: {
serializedName: "secondaryKey",
type: {
name: "String"
}
}
}
}
};
export const X509Thumbprint: msRest.CompositeMapper = {
serializedName: "X509Thumbprint",
type: {
name: "Composite",
className: "X509Thumbprint",
modelProperties: {
primaryThumbprint: {
serializedName: "primaryThumbprint",
type: {
name: "String"
}
},
secondaryThumbprint: {
serializedName: "secondaryThumbprint",
type: {
name: "String"
}
}
}
}
};
export const AuthenticationMechanism: msRest.CompositeMapper = {
serializedName: "AuthenticationMechanism",
type: {
name: "Composite",
className: "AuthenticationMechanism",
modelProperties: {
symmetricKey: {
serializedName: "symmetricKey",
type: {
name: "Composite",
className: "SymmetricKey"
}
},
x509Thumbprint: {
serializedName: "x509Thumbprint",
type: {
name: "Composite",
className: "X509Thumbprint"
}
},
type: {
serializedName: "type",
type: {
name: "String"
}
}
}
}
};
export const DeviceCapabilities: msRest.CompositeMapper = {
serializedName: "DeviceCapabilities",
type: {
name: "Composite",
className: "DeviceCapabilities",
modelProperties: {
iotEdge: {
serializedName: "iotEdge",
type: {
name: "Boolean"
}
}
}
}
};
export const Device: msRest.CompositeMapper = {
serializedName: "Device",
type: {
name: "Composite",
className: "Device",
modelProperties: {
deviceId: {
serializedName: "deviceId",
type: {
name: "String"
}
},
generationId: {
serializedName: "generationId",
type: {
name: "String"
}
},
etag: {
serializedName: "etag",
type: {
name: "String"
}
},
connectionState: {
serializedName: "connectionState",
type: {
name: "String"
}
},
status: {
serializedName: "status",
type: {
name: "String"
}
},
statusReason: {
serializedName: "statusReason",
type: {
name: "String"
}
},
connectionStateUpdatedTime: {
serializedName: "connectionStateUpdatedTime",
type: {
name: "DateTime"
}
},
statusUpdatedTime: {
serializedName: "statusUpdatedTime",
type: {
name: "DateTime"
}
},
lastActivityTime: {
serializedName: "lastActivityTime",
type: {
name: "DateTime"
}
},
cloudToDeviceMessageCount: {
serializedName: "cloudToDeviceMessageCount",
type: {
name: "Number"
}
},
authentication: {
serializedName: "authentication",
type: {
name: "Composite",
className: "AuthenticationMechanism"
}
},
capabilities: {
serializedName: "capabilities",
type: {
name: "Composite",
className: "DeviceCapabilities"
}
},
deviceScope: {
serializedName: "deviceScope",
type: {
name: "String"
}
},
parentScopes: {
serializedName: "parentScopes",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};
export const PropertyContainer: msRest.CompositeMapper = {
serializedName: "PropertyContainer",
type: {
name: "Composite",
className: "PropertyContainer",
modelProperties: {
desired: {
serializedName: "desired",
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
},
reported: {
serializedName: "reported",
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
}
}
}
};
export const ExportImportDevice: msRest.CompositeMapper = {
serializedName: "ExportImportDevice",
type: {
name: "Composite",
className: "ExportImportDevice",
modelProperties: {
id: {
serializedName: "id",
type: {
name: "String"
}
},
moduleId: {
serializedName: "moduleId",
type: {
name: "String"
}
},
eTag: {
serializedName: "eTag",
type: {
name: "String"
}
},
importMode: {
serializedName: "importMode",
type: {
name: "String"
}
},
status: {
serializedName: "status",
type: {
name: "String"
}
},
statusReason: {
serializedName: "statusReason",
type: {
name: "String"
}
},
authentication: {
serializedName: "authentication",
type: {
name: "Composite",
className: "AuthenticationMechanism"
}
},
twinETag: {
serializedName: "twinETag",
type: {
name: "String"
}
},
tags: {
serializedName: "tags",
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
},
properties: {
serializedName: "properties",
type: {
name: "Composite",
className: "PropertyContainer"
}
},
capabilities: {
serializedName: "capabilities",
type: {
name: "Composite",
className: "DeviceCapabilities"
}
},
deviceScope: {
serializedName: "deviceScope",
type: {
name: "String"
}
},
parentScopes: {
serializedName: "parentScopes",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};
export const DeviceRegistryOperationError: msRest.CompositeMapper = {
serializedName: "DeviceRegistryOperationError",
type: {
name: "Composite",
className: "DeviceRegistryOperationError",
modelProperties: {
deviceId: {
serializedName: "deviceId",
type: {
name: "String"
}
},
errorCode: {
serializedName: "errorCode",
type: {
name: "String"
}
},
errorStatus: {
serializedName: "errorStatus",
type: {
name: "String"
}
},
moduleId: {
serializedName: "moduleId",
type: {
name: "String"
}
},
operation: {
serializedName: "operation",
type: {
name: "String"
}
}
}
}
};
export const DeviceRegistryOperationWarning: msRest.CompositeMapper = {
serializedName: "DeviceRegistryOperationWarning",
type: {
name: "Composite",
className: "DeviceRegistryOperationWarning",
modelProperties: {
deviceId: {
serializedName: "deviceId",
type: {
name: "String"
}
},
warningCode: {
serializedName: "warningCode",
type: {
name: "String"
}
},
warningStatus: {
serializedName: "warningStatus",
type: {
name: "String"
}
}
}
}
};
export const BulkRegistryOperationResult: msRest.CompositeMapper = {
serializedName: "BulkRegistryOperationResult",
type: {
name: "Composite",
className: "BulkRegistryOperationResult",
modelProperties: {
isSuccessful: {
serializedName: "isSuccessful",
type: {
name: "Boolean"
}
},
errors: {
serializedName: "errors",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "DeviceRegistryOperationError"
}
}
}
},
warnings: {
serializedName: "warnings",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "DeviceRegistryOperationWarning"
}
}
}
}
}
}
};
export const QuerySpecification: msRest.CompositeMapper = {
serializedName: "QuerySpecification",
type: {
name: "Composite",
className: "QuerySpecification",
modelProperties: {
query: {
serializedName: "query",
type: {
name: "String"
}
}
}
}
};
export const TwinProperties: msRest.CompositeMapper = {
serializedName: "TwinProperties",
type: {
name: "Composite",
className: "TwinProperties",
modelProperties: {
desired: {
serializedName: "desired",
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
},
reported: {
serializedName: "reported",
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
}
}
}
};
export const Twin: msRest.CompositeMapper = {
serializedName: "Twin",
type: {
name: "Composite",
className: "Twin",
modelProperties: {
deviceId: {
serializedName: "deviceId",
type: {
name: "String"
}
},
moduleId: {
serializedName: "moduleId",
type: {
name: "String"
}
},
tags: {
serializedName: "tags",
type: {
name: "Dictionary",
value: {
type: {
name: "Object"
}
}
}
},
properties: {
serializedName: "properties",
type: {
name: "Composite",
className: "TwinProperties"
}
},
etag: {
serializedName: "etag",
type: {
name: "String"
}
},
version: {
serializedName: "version",
type: {
name: "Number"
}
},
deviceEtag: {
serializedName: "deviceEtag",
type: {
name: "String"
}
},
status: {
serializedName: "status",
type: {
name: "String"
}
},
statusReason: {
serializedName: "statusReason",
type: {
name: "String"
}
},
statusUpdateTime: {
serializedName: "statusUpdateTime",
type: {
name: "DateTime"
}
},
connectionState: {
serializedName: "connectionState",
type: {
name: "String"
}
},
lastActivityTime: {
serializedName: "lastActivityTime",
type: {
name: "DateTime"
}
},
cloudToDeviceMessageCount: {
serializedName: "cloudToDeviceMessageCount",
type: {
name: "Number"
}
},
authenticationType: {
serializedName: "authenticationType",
type: {
name: "String"
}
},
x509Thumbprint: {
serializedName: "x509Thumbprint",
type: {
name: "Composite",
className: "X509Thumbprint"
}
},
capabilities: {
serializedName: "capabilities",
type: {
name: "Composite",
className: "DeviceCapabilities"
}
},
deviceScope: {
serializedName: "deviceScope",
type: {
name: "String"
}
},
parentScopes: {
serializedName: "parentScopes",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};
export const JobProperties: msRest.CompositeMapper = {
serializedName: "JobProperties",
type: {
name: "Composite",
className: "JobProperties",
modelProperties: {
jobId: {
serializedName: "jobId",
type: {
name: "String"
}
},
startTimeUtc: {
serializedName: "startTimeUtc",
type: {
name: "DateTime"
}
},
endTimeUtc: {
serializedName: "endTimeUtc",
type: {
name: "DateTime"
}
},
type: {
serializedName: "type",
type: {
name: "String"
}
},
status: {
serializedName: "status",
type: {
name: "String"
}
},
progress: {
serializedName: "progress",
type: {
name: "Number"
}
},
inputBlobContainerUri: {
serializedName: "inputBlobContainerUri",
type: {
name: "String"
}
},
inputBlobName: {
serializedName: "inputBlobName",
type: {
name: "String"
}
},
outputBlobContainerUri: {
serializedName: "outputBlobContainerUri",
type: {
name: "String"
}
},
outputBlobName: {
serializedName: "outputBlobName",
type: {
name: "String"
}
},
excludeKeysInExport: {
serializedName: "excludeKeysInExport",
type: {
name: "Boolean"
}
},
storageAuthenticationType: {
serializedName: "storageAuthenticationType",
type: {
name: "String"
}
},
failureReason: {
serializedName: "failureReason",
type: {
name: "String"
}
}
}
}
};
export const PurgeMessageQueueResult: msRest.CompositeMapper = {
serializedName: "PurgeMessageQueueResult",
type: {
name: "Composite",
className: "PurgeMessageQueueResult",
modelProperties: {
totalMessagesPurged: {
serializedName: "totalMessagesPurged",
type: {
name: "Number"
}
},
deviceId: {
serializedName: "deviceId",
type: {
name: "String"
}
},
moduleId: {
serializedName: "moduleId",
type: {
name: "String"
}
}
}
}
};
export const FaultInjectionConnectionProperties: msRest.CompositeMapper = {
serializedName: "FaultInjectionConnectionProperties",
type: {
name: "Composite",
className: "FaultInjectionConnectionProperties",
modelProperties: {
action: {
serializedName: "action",
type: {
name: "String"
}
},
blockDurationInMinutes: {
serializedName: "blockDurationInMinutes",
type: {
name: "Number"
}
}
}
}
};
export const FaultInjectionProperties: msRest.CompositeMapper = {
serializedName: "FaultInjectionProperties",
type: {
name: "Composite",
className: "FaultInjectionProperties",
modelProperties: {
iotHubName: {
serializedName: "IotHubName",
type: {
name: "String"
}
},
connection: {
serializedName: "connection",
type: {
name: "Composite",
className: "FaultInjectionConnectionProperties"
}
},
lastUpdatedTimeUtc: {
serializedName: "lastUpdatedTimeUtc",
type: {
name: "DateTime"
}
}
}
}
};
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: {

@@ -38,7 +1094,76 @@ serializedName: "value",

},
from: {
serializedName: "from",
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"
}
}
}
}

@@ -49,19 +1174,277 @@ }

export const DigitalTwinPatch: msRest.CompositeMapper = {
serializedName: "DigitalTwinPatch",
export const DigitalTwinInterfaces: msRest.CompositeMapper = {
serializedName: "DigitalTwinInterfaces",
type: {
name: "Composite",
className: "DigitalTwinPatch",
className: "DigitalTwinInterfaces",
modelProperties: {
operations: {
serializedName: "Operations",
interfaces: {
serializedName: "interfaces",
type: {
name: "Dictionary",
value: {
type: {
name: "Composite",
className: "InterfaceModel"
}
}
}
},
version: {
serializedName: "version",
type: {
name: "Number"
}
}
}
}
};
export const CloudToDeviceMethod: msRest.CompositeMapper = {
serializedName: "CloudToDeviceMethod",
type: {
name: "Composite",
className: "CloudToDeviceMethod",
modelProperties: {
methodName: {
serializedName: "methodName",
type: {
name: "String"
}
},
payload: {
serializedName: "payload",
type: {
name: "Object"
}
},
responseTimeoutInSeconds: {
serializedName: "responseTimeoutInSeconds",
type: {
name: "Number"
}
},
connectTimeoutInSeconds: {
serializedName: "connectTimeoutInSeconds",
type: {
name: "Number"
}
}
}
}
};
export const JobRequest: msRest.CompositeMapper = {
serializedName: "JobRequest",
type: {
name: "Composite",
className: "JobRequest",
modelProperties: {
jobId: {
serializedName: "jobId",
type: {
name: "String"
}
},
type: {
serializedName: "type",
type: {
name: "String"
}
},
cloudToDeviceMethod: {
serializedName: "cloudToDeviceMethod",
type: {
name: "Composite",
className: "CloudToDeviceMethod"
}
},
updateTwin: {
serializedName: "updateTwin",
type: {
name: "Composite",
className: "Twin"
}
},
queryCondition: {
serializedName: "queryCondition",
type: {
name: "String"
}
},
startTime: {
serializedName: "startTime",
type: {
name: "DateTime"
}
},
maxExecutionTimeInSeconds: {
serializedName: "maxExecutionTimeInSeconds",
type: {
name: "Number"
}
}
}
}
};
export const DeviceJobStatistics: msRest.CompositeMapper = {
serializedName: "DeviceJobStatistics",
type: {
name: "Composite",
className: "DeviceJobStatistics",
modelProperties: {
deviceCount: {
serializedName: "deviceCount",
type: {
name: "Number"
}
},
failedCount: {
serializedName: "failedCount",
type: {
name: "Number"
}
},
succeededCount: {
serializedName: "succeededCount",
type: {
name: "Number"
}
},
runningCount: {
serializedName: "runningCount",
type: {
name: "Number"
}
},
pendingCount: {
serializedName: "pendingCount",
type: {
name: "Number"
}
}
}
}
};
export const JobResponse: msRest.CompositeMapper = {
serializedName: "JobResponse",
type: {
name: "Composite",
className: "JobResponse",
modelProperties: {
jobId: {
serializedName: "jobId",
type: {
name: "String"
}
},
queryCondition: {
serializedName: "queryCondition",
type: {
name: "String"
}
},
createdTime: {
serializedName: "createdTime",
type: {
name: "DateTime"
}
},
startTime: {
serializedName: "startTime",
type: {
name: "DateTime"
}
},
endTime: {
serializedName: "endTime",
type: {
name: "DateTime"
}
},
maxExecutionTimeInSeconds: {
serializedName: "maxExecutionTimeInSeconds",
type: {
name: "Number"
}
},
type: {
serializedName: "type",
type: {
name: "String"
}
},
cloudToDeviceMethod: {
serializedName: "cloudToDeviceMethod",
type: {
name: "Composite",
className: "CloudToDeviceMethod"
}
},
updateTwin: {
serializedName: "updateTwin",
type: {
name: "Composite",
className: "Twin"
}
},
status: {
serializedName: "status",
type: {
name: "String"
}
},
failureReason: {
serializedName: "failureReason",
type: {
name: "String"
}
},
statusMessage: {
serializedName: "statusMessage",
type: {
name: "String"
}
},
deviceJobStatistics: {
serializedName: "deviceJobStatistics",
type: {
name: "Composite",
className: "DeviceJobStatistics"
}
}
}
}
};
export const QueryResult: msRest.CompositeMapper = {
serializedName: "QueryResult",
type: {
name: "Composite",
className: "QueryResult",
modelProperties: {
type: {
serializedName: "type",
type: {
name: "String"
}
},
items: {
serializedName: "items",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "PatchOperation"
name: "Object"
}
}
}
},
continuationToken: {
serializedName: "continuationToken",
type: {
name: "String"
}
}

@@ -72,20 +1455,188 @@ }

export const VariantValue: msRest.CompositeMapper = {
serializedName: "VariantValue",
export const Module: msRest.CompositeMapper = {
serializedName: "Module",
type: {
name: "Composite",
className: "VariantValue",
className: "Module",
modelProperties: {
objectValue: {
readOnly: true,
serializedName: "ObjectValue",
moduleId: {
serializedName: "moduleId",
type: {
name: "String"
}
},
managedBy: {
serializedName: "managedBy",
type: {
name: "String"
}
},
deviceId: {
serializedName: "deviceId",
type: {
name: "String"
}
},
generationId: {
serializedName: "generationId",
type: {
name: "String"
}
},
etag: {
serializedName: "etag",
type: {
name: "String"
}
},
connectionState: {
serializedName: "connectionState",
type: {
name: "String"
}
},
connectionStateUpdatedTime: {
serializedName: "connectionStateUpdatedTime",
type: {
name: "DateTime"
}
},
lastActivityTime: {
serializedName: "lastActivityTime",
type: {
name: "DateTime"
}
},
cloudToDeviceMessageCount: {
serializedName: "cloudToDeviceMessageCount",
type: {
name: "Number"
}
},
authentication: {
serializedName: "authentication",
type: {
name: "Composite",
className: "AuthenticationMechanism"
}
}
}
}
};
export const CloudToDeviceMethodResult: msRest.CompositeMapper = {
serializedName: "CloudToDeviceMethodResult",
type: {
name: "Composite",
className: "CloudToDeviceMethodResult",
modelProperties: {
status: {
serializedName: "status",
type: {
name: "Number"
}
},
payload: {
serializedName: "payload",
type: {
name: "Object"
}
}
}
}
};
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 = {
serializedName: "registrymanager-queryiothub-headers",
type: {
name: "Composite",
className: "RegistryManagerQueryIotHubHeaders",
modelProperties: {
xMsItemType: {
serializedName: "x-ms-item-type",
type: {
name: "String"
}
},
isNull: {
readOnly: true,
serializedName: "IsNull",
xMsContinuation: {
serializedName: "x-ms-continuation",
type: {
name: "Boolean"
name: "String"
}

@@ -97,2 +1648,122 @@ }

export const DigitalTwinGetDigitalTwinHeaders: msRest.CompositeMapper = {
serializedName: "digitaltwin-getdigitaltwin-headers",
type: {
name: "Composite",
className: "DigitalTwinGetDigitalTwinHeaders",
modelProperties: {
eTag: {
serializedName: "etag",
type: {
name: "String"
}
}
}
}
};
export const DigitalTwinUpdateDigitalTwinHeaders: msRest.CompositeMapper = {
serializedName: "digitaltwin-updatedigitaltwin-headers",
type: {
name: "Composite",
className: "DigitalTwinUpdateDigitalTwinHeaders",
modelProperties: {
eTag: {
serializedName: "etag",
type: {
name: "String"
}
},
location: {
serializedName: "location",
type: {
name: "String"
}
}
}
}
};
export const DigitalTwinGetComponentsHeaders: msRest.CompositeMapper = {
serializedName: "digitaltwin-getcomponents-headers",
type: {
name: "Composite",
className: "DigitalTwinGetComponentsHeaders",
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 = {

@@ -119,1 +1790,45 @@ serializedName: "digitaltwin-invokecomponentcommand-headers",

};
export const DigitalTwinInvokeComponentCommandHeaders1: msRest.CompositeMapper = {
serializedName: "digitaltwin-invokecomponentcommand-headers",
type: {
name: "Composite",
className: "DigitalTwinInvokeComponentCommandHeaders1",
modelProperties: {
xMsCommandStatuscode: {
serializedName: "x-ms-command-statuscode",
type: {
name: "Number"
}
},
xMsRequestId: {
serializedName: "x-ms-request-id",
type: {
name: "String"
}
}
}
}
};
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"
}
}
}
}
};

@@ -34,7 +34,7 @@ /*

};
export const componentName: msRest.OperationURLParameter = {
parameterPath: "componentName",
export const componentPath: msRest.OperationURLParameter = {
parameterPath: "componentPath",
mapper: {
required: true,
serializedName: "componentName",
serializedName: "componentPath",
type: {

@@ -57,2 +57,12 @@ name: "String"

};
export const deviceId: msRest.OperationURLParameter = {
parameterPath: "deviceId",
mapper: {
required: true,
serializedName: "deviceId",
type: {
name: "String"
}
}
};
export const digitalTwinId: msRest.OperationURLParameter = {

@@ -68,2 +78,24 @@ parameterPath: "digitalTwinId",

};
export const expand: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"expand"
],
mapper: {
serializedName: "expand",
type: {
name: "Boolean"
}
}
};
export const id: msRest.OperationURLParameter = {
parameterPath: "id",
mapper: {
required: true,
serializedName: "id",
type: {
name: "String"
}
}
};
export const ifMatch: msRest.OperationParameter = {

@@ -81,2 +113,76 @@ parameterPath: [

};
export const interfaceName: msRest.OperationURLParameter = {
parameterPath: "interfaceName",
mapper: {
required: true,
serializedName: "interfaceName",
type: {
name: "String"
}
}
};
export const jobStatus: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"jobStatus"
],
mapper: {
serializedName: "jobStatus",
type: {
name: "String"
}
}
};
export const jobType: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"jobType"
],
mapper: {
serializedName: "jobType",
type: {
name: "String"
}
}
};
export const lockToken: msRest.OperationURLParameter = {
parameterPath: "lockToken",
mapper: {
required: true,
serializedName: "lockToken",
type: {
name: "String"
}
}
};
export const mid: msRest.OperationURLParameter = {
parameterPath: "mid",
mapper: {
required: true,
serializedName: "mid",
type: {
name: "String"
}
}
};
export const modelId: msRest.OperationURLParameter = {
parameterPath: "modelId",
mapper: {
required: true,
serializedName: "modelId",
type: {
name: "String"
}
}
};
export const moduleId: msRest.OperationURLParameter = {
parameterPath: "moduleId",
mapper: {
required: true,
serializedName: "moduleId",
type: {
name: "String"
}
}
};
export const responseTimeoutInSeconds: msRest.OperationQueryParameter = {

@@ -94,1 +200,37 @@ parameterPath: [

};
export const top: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"top"
],
mapper: {
serializedName: "top",
type: {
name: "Number"
}
}
};
export const xMsContinuation: msRest.OperationParameter = {
parameterPath: [
"options",
"xMsContinuation"
],
mapper: {
serializedName: "x-ms-continuation",
type: {
name: "String"
}
}
};
export const xMsMaxItemCount: msRest.OperationParameter = {
parameterPath: [
"options",
"xMsMaxItemCount"
],
mapper: {
serializedName: "x-ms-max-item-count",
type: {
name: "String"
}
}
};

@@ -30,26 +30,29 @@ /*

/**
* @summary Gets the digital twin.
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId
* is optional.
* 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.
* @param id Digital Twin ID.
* @param [options] The optional parameters
* @returns Promise<Models.DigitalTwinGetDigitalTwinResponse>
*/
getDigitalTwin(digitalTwinId: string, options?: msRest.RequestOptionsBase): Promise<Models.DigitalTwinGetDigitalTwinResponse>;
getDigitalTwin(id: string, options?: msRest.RequestOptionsBase): Promise<Models.DigitalTwinGetDigitalTwinResponse>;
/**
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId
* is optional.
* @param id Digital Twin ID.
* @param callback The callback
*/
getDigitalTwin(digitalTwinId: string, callback: msRest.ServiceCallback<any>): void;
getDigitalTwin(id: string, callback: msRest.ServiceCallback<any>): void;
/**
* @param digitalTwinId Digital Twin ID. Format of digitalTwinId is DeviceId[~ModuleId]. ModuleId
* is optional.
* @param id Digital Twin ID.
* @param options The optional parameters
* @param callback The callback
*/
getDigitalTwin(digitalTwinId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<any>): void;
getDigitalTwin(digitalTwinId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<any>, callback?: msRest.ServiceCallback<any>): Promise<Models.DigitalTwinGetDigitalTwinResponse> {
getDigitalTwin(id: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<any>): void;
getDigitalTwin(id: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<any>, callback?: msRest.ServiceCallback<any>): Promise<Models.DigitalTwinGetDigitalTwinResponse> {
return this.client.sendOperationRequest(
{
digitalTwinId,
id,
options

@@ -62,4 +65,10 @@ },

/**
* @summary Updates the digital twin.
* @param digitalTwinId ID of digital twin.
* 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.
* @param id Digital Twin ID.
* @param digitalTwinPatch json-patch contents to update.

@@ -69,11 +78,11 @@ * @param [options] The optional parameters

*/
updateDigitalTwin(digitalTwinId: string, digitalTwinPatch: Models.PatchOperation[], options?: Models.DigitalTwinUpdateDigitalTwinOptionalParams): Promise<Models.DigitalTwinUpdateDigitalTwinResponse>;
updateDigitalTwin(id: string, digitalTwinPatch: any[], options?: Models.DigitalTwinUpdateDigitalTwinOptionalParams): Promise<Models.DigitalTwinUpdateDigitalTwinResponse>;
/**
* @param digitalTwinId ID of digital twin.
* @param id Digital Twin ID.
* @param digitalTwinPatch json-patch contents to update.
* @param callback The callback
*/
updateDigitalTwin(digitalTwinId: string, digitalTwinPatch: Models.PatchOperation[], callback: msRest.ServiceCallback<any>): void;
updateDigitalTwin(id: string, digitalTwinPatch: any[], callback: msRest.ServiceCallback<void>): void;
/**
* @param digitalTwinId ID of digital twin.
* @param id Digital Twin ID.
* @param digitalTwinPatch json-patch contents to update.

@@ -83,7 +92,7 @@ * @param options The optional parameters

*/
updateDigitalTwin(digitalTwinId: string, digitalTwinPatch: Models.PatchOperation[], options: Models.DigitalTwinUpdateDigitalTwinOptionalParams, callback: msRest.ServiceCallback<any>): void;
updateDigitalTwin(digitalTwinId: string, digitalTwinPatch: Models.PatchOperation[], options?: Models.DigitalTwinUpdateDigitalTwinOptionalParams | msRest.ServiceCallback<any>, callback?: msRest.ServiceCallback<any>): Promise<Models.DigitalTwinUpdateDigitalTwinResponse> {
updateDigitalTwin(id: string, digitalTwinPatch: any[], options: Models.DigitalTwinUpdateDigitalTwinOptionalParams, callback: msRest.ServiceCallback<void>): void;
updateDigitalTwin(id: string, digitalTwinPatch: any[], options?: Models.DigitalTwinUpdateDigitalTwinOptionalParams | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<Models.DigitalTwinUpdateDigitalTwinResponse> {
return this.client.sendOperationRequest(
{
digitalTwinId,
id,
digitalTwinPatch,

@@ -97,6 +106,164 @@ options

/**
* Invoke a digital twin command.
* @summary Invoke a digital twin command.
* 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 componentName
* @param interfaceName
* @param commandName

@@ -107,6 +274,6 @@ * @param payload

*/
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeComponentCommandOptionalParams): Promise<Models.DigitalTwinInvokeComponentCommandResponse>;
invokeComponentCommand(digitalTwinId: string, interfaceName: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeComponentCommandOptionalParams): Promise<Models.DigitalTwinInvokeComponentCommandResponse>;
/**
* @param digitalTwinId
* @param componentName
* @param interfaceName
* @param commandName

@@ -116,6 +283,6 @@ * @param payload

*/
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, payload: any, callback: msRest.ServiceCallback<any>): void;
invokeComponentCommand(digitalTwinId: string, interfaceName: string, commandName: string, payload: any, callback: msRest.ServiceCallback<any>): void;
/**
* @param digitalTwinId
* @param componentName
* @param interfaceName
* @param commandName

@@ -126,8 +293,8 @@ * @param payload

*/
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, payload: any, options: Models.DigitalTwinInvokeComponentCommandOptionalParams, callback: msRest.ServiceCallback<any>): void;
invokeComponentCommand(digitalTwinId: string, componentName: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeComponentCommandOptionalParams | msRest.ServiceCallback<any>, callback?: msRest.ServiceCallback<any>): Promise<Models.DigitalTwinInvokeComponentCommandResponse> {
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> {
return this.client.sendOperationRequest(
{
digitalTwinId,
componentName,
interfaceName,
commandName,

@@ -140,2 +307,80 @@ payload,

}
/**
* Invoke a digital twin command.
* @summary Invoke a digital twin command.
* @param id
* @param componentPath
* @param commandName
* @param payload
* @param [options] The optional parameters
* @returns Promise<Models.DigitalTwinInvokeComponentCommandHeaders12>
*/
invokeComponentCommand1(id: string, componentPath: string, commandName: string, payload: any, options?: Models.DigitalTwinInvokeComponentCommand1OptionalParams): Promise<Models.DigitalTwinInvokeComponentCommandHeaders12>;
/**
* @param id
* @param componentPath
* @param commandName
* @param payload
* @param callback The callback
*/
invokeComponentCommand1(id: string, componentPath: string, commandName: string, payload: any, callback: msRest.ServiceCallback<any>): void;
/**
* @param id
* @param componentPath
* @param commandName
* @param payload
* @param options The optional parameters
* @param callback The callback
*/
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> {
return this.client.sendOperationRequest(
{
id,
componentPath,
commandName,
payload,
options
},
invokeComponentCommand1OperationSpec,
callback) as Promise<Models.DigitalTwinInvokeComponentCommandHeaders12>;
}
/**
* 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>;
}
}

@@ -147,5 +392,5 @@

httpMethod: "GET",
path: "digitaltwins/{digitalTwinId}",
path: "digitaltwins/{id}",
urlParameters: [
Parameters.digitalTwinId
Parameters.id
],

@@ -162,3 +407,4 @@ queryParameters: [

}
}
},
headersMapper: Mappers.DigitalTwinGetDigitalTwinHeaders
},

@@ -172,5 +418,5 @@ default: {}

httpMethod: "PATCH",
path: "digitaltwins/{digitalTwinId}",
path: "digitaltwins/{id}",
urlParameters: [
Parameters.digitalTwinId
Parameters.id
],

@@ -192,4 +438,3 @@ queryParameters: [

type: {
name: "Composite",
className: "PatchOperation"
name: "Object"
}

@@ -201,3 +446,90 @@ }

responses: {
202: {
headersMapper: Mappers.DigitalTwinUpdateDigitalTwinHeaders
},
default: {}
},
serializer
};
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: {

@@ -208,5 +540,8 @@ serializedName: "parsedResponse",

}
}
},
headersMapper: Mappers.DigitalTwinGetDigitalTwinModelHeaders
},
202: {},
204: {
headersMapper: Mappers.DigitalTwinGetDigitalTwinModelHeaders
},
default: {}

@@ -219,6 +554,6 @@ },

httpMethod: "POST",
path: "digitalTwins/{digitalTwinId}/components/{componentName}/commands/{commandName}",
path: "digitalTwins/{digitalTwinId}/interfaces/{interfaceName}/commands/{commandName}",
urlParameters: [
Parameters.digitalTwinId,
Parameters.componentName,
Parameters.interfaceName,
Parameters.commandName

@@ -255,1 +590,76 @@ ],

};
const invokeComponentCommand1OperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "digitaltwins/{id}/components/{componentPath}/commands/{commandName}",
urlParameters: [
Parameters.id,
Parameters.componentPath,
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.DigitalTwinInvokeComponentCommandHeaders1
},
default: {}
},
serializer
};
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
};

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

export * from "./configurationOperations";
export * from "./registryManager";
export * from "./jobClient";
export * from "./faultInjection";
export * from "./twinOperations";
export * from "./digitalTwin";
export * from "./httpRuntime";
export * from "./deviceMethod";

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

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc