diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingTwin.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingTwin.java new file mode 100644 index 000000000000..7840cb7a128a --- /dev/null +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingTwin.java @@ -0,0 +1,69 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.iothub.v2018_04_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Twin reference input parameter. This is an optional parameter. + */ +public class RoutingTwin { + /** + * Twin Tags. + */ + @JsonProperty(value = "tags") + private Object tags; + + /** + * The properties property. + */ + @JsonProperty(value = "properties") + private RoutingTwinProperties properties; + + /** + * Get twin Tags. + * + * @return the tags value + */ + public Object tags() { + return this.tags; + } + + /** + * Set twin Tags. + * + * @param tags the tags value to set + * @return the RoutingTwin object itself. + */ + public RoutingTwin withTags(Object tags) { + this.tags = tags; + return this; + } + + /** + * Get the properties value. + * + * @return the properties value + */ + public RoutingTwinProperties properties() { + return this.properties; + } + + /** + * Set the properties value. + * + * @param properties the properties value to set + * @return the RoutingTwin object itself. + */ + public RoutingTwin withProperties(RoutingTwinProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingTwinProperties.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingTwinProperties.java new file mode 100644 index 000000000000..de98fd94b514 --- /dev/null +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingTwinProperties.java @@ -0,0 +1,69 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.iothub.v2018_04_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The RoutingTwinProperties model. + */ +public class RoutingTwinProperties { + /** + * Twin desired properties. + */ + @JsonProperty(value = "desiredProperties") + private Object desiredProperties; + + /** + * Twin desired properties. + */ + @JsonProperty(value = "reportedProperties") + private Object reportedProperties; + + /** + * Get twin desired properties. + * + * @return the desiredProperties value + */ + public Object desiredProperties() { + return this.desiredProperties; + } + + /** + * Set twin desired properties. + * + * @param desiredProperties the desiredProperties value to set + * @return the RoutingTwinProperties object itself. + */ + public RoutingTwinProperties withDesiredProperties(Object desiredProperties) { + this.desiredProperties = desiredProperties; + return this; + } + + /** + * Get twin desired properties. + * + * @return the reportedProperties value + */ + public Object reportedProperties() { + return this.reportedProperties; + } + + /** + * Set twin desired properties. + * + * @param reportedProperties the reportedProperties value to set + * @return the RoutingTwinProperties object itself. + */ + public RoutingTwinProperties withReportedProperties(Object reportedProperties) { + this.reportedProperties = reportedProperties; + return this; + } + +} diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestAllRoutesInput.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestAllRoutesInput.java index 692b61973fa6..cd828a1749d1 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestAllRoutesInput.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestAllRoutesInput.java @@ -27,6 +27,12 @@ public class TestAllRoutesInput { @JsonProperty(value = "message") private RoutingMessage message; + /** + * Routing Twin Reference. + */ + @JsonProperty(value = "twin") + private RoutingTwin twin; + /** * Get routing source. Possible values include: 'Invalid', 'DeviceMessages', 'TwinChangeEvents', 'DeviceLifecycleEvents', 'DeviceJobLifecycleEvents'. * @@ -67,4 +73,24 @@ public TestAllRoutesInput withMessage(RoutingMessage message) { return this; } + /** + * Get routing Twin Reference. + * + * @return the twin value + */ + public RoutingTwin twin() { + return this.twin; + } + + /** + * Set routing Twin Reference. + * + * @param twin the twin value to set + * @return the TestAllRoutesInput object itself. + */ + public TestAllRoutesInput withTwin(RoutingTwin twin) { + this.twin = twin; + return this; + } + } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestRouteInput.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestRouteInput.java index 046d26ab57c0..6859fc5a8ff8 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestRouteInput.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestRouteInput.java @@ -26,6 +26,12 @@ public class TestRouteInput { @JsonProperty(value = "route", required = true) private RouteProperties route; + /** + * Routing Twin Reference. + */ + @JsonProperty(value = "twin") + private RoutingTwin twin; + /** * Get routing message. * @@ -66,4 +72,24 @@ public TestRouteInput withRoute(RouteProperties route) { return this; } + /** + * Get routing Twin Reference. + * + * @return the twin value + */ + public RoutingTwin twin() { + return this.twin; + } + + /** + * Set routing Twin Reference. + * + * @param twin the twin value to set + * @return the TestRouteInput object itself. + */ + public TestRouteInput withTwin(RoutingTwin twin) { + this.twin = twin; + return this; + } + }