Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions lib/services/iothub/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1159,6 +1159,34 @@ export interface RoutingMessage {
systemProperties?: { [propertyName: string]: string };
}

/**
* @class
* Initializes a new instance of the RoutingTwinProperties class.
* @constructor
* @member {object} [desiredProperties] Twin desired properties
* @member {object} [reportedProperties] Twin desired properties
*/
export interface RoutingTwinProperties {
desiredProperties?: any;
reportedProperties?: any;
}

/**
* @class
* Initializes a new instance of the RoutingTwin class.
* @constructor
* Twin reference input parameter. This is an optional parameter
*
* @member {object} [tags] Twin Tags
* @member {object} [properties]
* @member {object} [properties.desiredProperties] Twin desired properties
* @member {object} [properties.reportedProperties] Twin desired properties
*/
export interface RoutingTwin {
tags?: any;
properties?: RoutingTwinProperties;
}

/**
* @class
* Initializes a new instance of the TestAllRoutesInput class.
Expand All @@ -1172,10 +1200,17 @@ export interface RoutingMessage {
* @member {string} [message.body] Body of routing message
* @member {object} [message.appProperties] App properties
* @member {object} [message.systemProperties] System properties
* @member {object} [twin] Routing Twin Reference
* @member {object} [twin.tags] Twin Tags
* @member {object} [twin.properties]
* @member {object} [twin.properties.desiredProperties] Twin desired properties
* @member {object} [twin.properties.reportedProperties] Twin desired
* properties
*/
export interface TestAllRoutesInput {
routingSource?: string;
message?: RoutingMessage;
twin?: RoutingTwin;
}

/**
Expand Down Expand Up @@ -1245,10 +1280,17 @@ export interface TestAllRoutesResult {
* is allowed.
* @member {boolean} [route.isEnabled] Used to specify whether a route is
* enabled.
* @member {object} [twin] Routing Twin Reference
* @member {object} [twin.tags] Twin Tags
* @member {object} [twin.properties]
* @member {object} [twin.properties.desiredProperties] Twin desired properties
* @member {object} [twin.properties.reportedProperties] Twin desired
* properties
*/
export interface TestRouteInput {
message?: RoutingMessage;
route: RouteProperties;
twin?: RoutingTwin;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions lib/services/iothub/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ exports.Name = require('./name');
exports.UserSubscriptionQuota = require('./userSubscriptionQuota');
exports.UserSubscriptionQuotaListResult = require('./userSubscriptionQuotaListResult');
exports.RoutingMessage = require('./routingMessage');
exports.RoutingTwinProperties = require('./routingTwinProperties');
exports.RoutingTwin = require('./routingTwin');
exports.TestAllRoutesInput = require('./testAllRoutesInput');
exports.MatchedRoute = require('./matchedRoute');
exports.TestAllRoutesResult = require('./testAllRoutesResult');
Expand Down
63 changes: 63 additions & 0 deletions lib/services/iothub/lib/models/routingTwin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Twin reference input parameter. This is an optional parameter
*
*/
class RoutingTwin {
/**
* Create a RoutingTwin.
* @member {object} [tags] Twin Tags
* @member {object} [properties]
* @member {object} [properties.desiredProperties] Twin desired properties
* @member {object} [properties.reportedProperties] Twin desired properties
*/
constructor() {
}

/**
* Defines the metadata of RoutingTwin
*
* @returns {object} metadata of RoutingTwin
*
*/
mapper() {
return {
required: false,
serializedName: 'RoutingTwin',
type: {
name: 'Composite',
className: 'RoutingTwin',
modelProperties: {
tags: {
required: false,
serializedName: 'tags',
type: {
name: 'Object'
}
},
properties: {
required: false,
serializedName: 'properties',
type: {
name: 'Composite',
className: 'RoutingTwinProperties'
}
}
}
}
};
}
}

module.exports = RoutingTwin;
59 changes: 59 additions & 0 deletions lib/services/iothub/lib/models/routingTwinProperties.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Class representing a RoutingTwinProperties.
*/
class RoutingTwinProperties {
/**
* Create a RoutingTwinProperties.
* @member {object} [desiredProperties] Twin desired properties
* @member {object} [reportedProperties] Twin desired properties
*/
constructor() {
}

/**
* Defines the metadata of RoutingTwinProperties
*
* @returns {object} metadata of RoutingTwinProperties
*
*/
mapper() {
return {
required: false,
serializedName: 'RoutingTwin_properties',
type: {
name: 'Composite',
className: 'RoutingTwinProperties',
modelProperties: {
desiredProperties: {
required: false,
serializedName: 'desiredProperties',
type: {
name: 'Object'
}
},
reportedProperties: {
required: false,
serializedName: 'reportedProperties',
type: {
name: 'Object'
}
}
}
}
};
}
}

module.exports = RoutingTwinProperties;
15 changes: 15 additions & 0 deletions lib/services/iothub/lib/models/testAllRoutesInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ class TestAllRoutesInput {
* @member {string} [message.body] Body of routing message
* @member {object} [message.appProperties] App properties
* @member {object} [message.systemProperties] System properties
* @member {object} [twin] Routing Twin Reference
* @member {object} [twin.tags] Twin Tags
* @member {object} [twin.properties]
* @member {object} [twin.properties.desiredProperties] Twin desired
* properties
* @member {object} [twin.properties.reportedProperties] Twin desired
* properties
*/
constructor() {
}
Expand Down Expand Up @@ -56,6 +63,14 @@ class TestAllRoutesInput {
name: 'Composite',
className: 'RoutingMessage'
}
},
twin: {
required: false,
serializedName: 'twin',
type: {
name: 'Composite',
className: 'RoutingTwin'
}
}
}
}
Expand Down
15 changes: 15 additions & 0 deletions lib/services/iothub/lib/models/testRouteInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ class TestRouteInput {
* endpoint is allowed.
* @member {boolean} [route.isEnabled] Used to specify whether a route is
* enabled.
* @member {object} [twin] Routing Twin Reference
* @member {object} [twin.tags] Twin Tags
* @member {object} [twin.properties]
* @member {object} [twin.properties.desiredProperties] Twin desired
* properties
* @member {object} [twin.properties.reportedProperties] Twin desired
* properties
*/
constructor() {
}
Expand Down Expand Up @@ -71,6 +78,14 @@ class TestRouteInput {
name: 'Composite',
className: 'RouteProperties'
}
},
twin: {
required: false,
serializedName: 'twin',
type: {
name: 'Composite',
className: 'RoutingTwin'
}
}
}
}
Expand Down
48 changes: 48 additions & 0 deletions lib/services/iothub/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,18 @@ export interface IotHubResource {
*
* @param {object} [input.message.systemProperties] System properties
*
* @param {object} [input.twin] Routing Twin Reference
*
* @param {object} [input.twin.tags] Twin Tags
*
* @param {object} [input.twin.properties]
*
* @param {object} [input.twin.properties.desiredProperties] Twin desired
* properties
*
* @param {object} [input.twin.properties.reportedProperties] Twin desired
* properties
*
* @param {string} iotHubName IotHub to be tested
*
* @param {string} resourceGroupName resource group which Iot Hub belongs to
Expand Down Expand Up @@ -1655,6 +1667,18 @@ export interface IotHubResource {
*
* @param {object} [input.message.systemProperties] System properties
*
* @param {object} [input.twin] Routing Twin Reference
*
* @param {object} [input.twin.tags] Twin Tags
*
* @param {object} [input.twin.properties]
*
* @param {object} [input.twin.properties.desiredProperties] Twin desired
* properties
*
* @param {object} [input.twin.properties.reportedProperties] Twin desired
* properties
*
* @param {string} iotHubName IotHub to be tested
*
* @param {string} resourceGroupName resource group which Iot Hub belongs to
Expand Down Expand Up @@ -1729,6 +1753,18 @@ export interface IotHubResource {
* @param {boolean} input.route.isEnabled Used to specify whether a route is
* enabled.
*
* @param {object} [input.twin] Routing Twin Reference
*
* @param {object} [input.twin.tags] Twin Tags
*
* @param {object} [input.twin.properties]
*
* @param {object} [input.twin.properties.desiredProperties] Twin desired
* properties
*
* @param {object} [input.twin.properties.reportedProperties] Twin desired
* properties
*
* @param {string} iotHubName IotHub to be tested
*
* @param {string} resourceGroupName resource group which Iot Hub belongs to
Expand Down Expand Up @@ -1784,6 +1820,18 @@ export interface IotHubResource {
* @param {boolean} input.route.isEnabled Used to specify whether a route is
* enabled.
*
* @param {object} [input.twin] Routing Twin Reference
*
* @param {object} [input.twin.tags] Twin Tags
*
* @param {object} [input.twin.properties]
*
* @param {object} [input.twin.properties.desiredProperties] Twin desired
* properties
*
* @param {object} [input.twin.properties.reportedProperties] Twin desired
* properties
*
* @param {string} iotHubName IotHub to be tested
*
* @param {string} resourceGroupName resource group which Iot Hub belongs to
Expand Down
Loading