From c49a6dbba57edca32df7826545f3709d7a99317b Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 27 Aug 2018 19:45:54 +0000 Subject: [PATCH] Generated from 85ab219e8f4f326e7f6b6a5eb2068c4b7ccb5408 IoTHub conf py --- iothub/resource-manager/v2018_04_01/pom.xml | 266 +++++++++--------- .../CertificateBodyDescription.java | 4 +- .../v2018_04_01/CertificateDescription.java | 4 +- .../CertificateListDescription.java | 4 +- .../v2018_04_01/CertificateProperties.java | 16 +- .../CertificatePropertiesWithNonce.java | 16 +- .../CertificateVerificationDescription.java | 4 +- .../CertificateWithNonceDescription.java | 4 +- .../v2018_04_01/CloudToDeviceProperties.java | 8 +- .../v2018_04_01/EndpointHealthData.java | 4 +- .../EventHubConsumerGroupInfo.java | 4 +- .../v2018_04_01/EventHubProperties.java | 14 +- .../v2018_04_01/ExportDevicesRequest.java | 8 +- .../v2018_04_01/FallbackRouteProperties.java | 22 +- .../v2018_04_01/FeedbackProperties.java | 12 +- .../v2018_04_01/ImportDevicesRequest.java | 8 +- .../iothub/v2018_04_01/IotHubCapacity.java | 8 +- .../iothub/v2018_04_01/IotHubDescription.java | 28 +- .../IotHubNameAvailabilityInfo.java | 4 +- .../iothub/v2018_04_01/IotHubProperties.java | 38 +-- .../v2018_04_01/IotHubQuotaMetricInfo.java | 4 +- .../iothub/v2018_04_01/IotHubResources.java | 10 + .../v2018_04_01/IotHubSkuDescription.java | 4 +- .../iothub/v2018_04_01/IotHubSkuInfo.java | 10 +- .../iothub/v2018_04_01/IpFilterRule.java | 12 +- .../iothub/v2018_04_01/JobResponse.java | 4 +- .../iothub/v2018_04_01/MatchedRoute.java | 4 +- .../MessagingEndpointProperties.java | 12 +- .../management/iothub/v2018_04_01/Name.java | 8 +- .../iothub/v2018_04_01/Operation.java | 4 +- .../iothub/v2018_04_01/OperationDisplay.java | 6 +- .../iothub/v2018_04_01/OperationInputs.java | 4 +- .../v2018_04_01/RegistryStatistics.java | 4 +- .../v2018_04_01/RouteCompilationError.java | 12 +- .../v2018_04_01/RouteErrorPosition.java | 8 +- .../iothub/v2018_04_01/RouteErrorRange.java | 8 +- .../iothub/v2018_04_01/RouteProperties.java | 20 +- .../iothub/v2018_04_01/RoutingEndpoints.java | 16 +- .../RoutingEventHubProperties.java | 16 +- .../iothub/v2018_04_01/RoutingMessage.java | 12 +- .../iothub/v2018_04_01/RoutingProperties.java | 8 +- ...tingServiceBusQueueEndpointProperties.java | 16 +- ...tingServiceBusTopicEndpointProperties.java | 16 +- .../RoutingStorageContainerProperties.java | 36 +-- ...haredAccessSignatureAuthorizationRule.java | 4 +- .../StorageEndpointProperties.java | 12 +- .../iothub/v2018_04_01/TagsResource.java | 4 +- .../v2018_04_01/TestAllRoutesInput.java | 8 +- .../v2018_04_01/TestAllRoutesResult.java | 4 +- .../iothub/v2018_04_01/TestRouteInput.java | 8 +- .../iothub/v2018_04_01/TestRouteResult.java | 4 +- .../v2018_04_01/TestRouteResultDetails.java | 4 +- .../v2018_04_01/UserSubscriptionQuota.java | 6 +- .../CertificateDescriptionImpl.java | 8 +- .../CertificateDescriptionInner.java | 2 +- .../CertificateListDescriptionImpl.java | 6 +- .../CertificateListDescriptionInner.java | 4 +- .../CertificateWithNonceDescriptionImpl.java | 6 +- .../CertificateWithNonceDescriptionInner.java | 2 +- .../implementation/CertificatesImpl.java | 6 +- .../implementation/CertificatesInner.java | 54 ++-- .../implementation/DevicesManager.java | 135 +++++++++ .../EndpointHealthDataImpl.java | 6 +- .../EndpointHealthDataInner.java | 8 +- .../implementation/ErrorDetailsInner.java | 77 +++++ .../ErrorDetailsInnerException.java | 44 +++ .../EventHubConsumerGroupInfoImpl.java | 8 +- .../EventHubConsumerGroupInfoInner.java | 6 +- .../implementation/IotHubDescriptionImpl.java | 6 +- .../IotHubDescriptionInner.java | 12 +- .../IotHubNameAvailabilityInfoImpl.java | 6 +- .../IotHubNameAvailabilityInfoInner.java | 8 +- .../IotHubQuotaMetricInfoImpl.java | 6 +- .../IotHubQuotaMetricInfoInner.java | 6 +- .../implementation/IotHubResourcesImpl.java | 235 ++++------------ .../implementation/IotHubResourcesInner.java | 253 +++++++++-------- .../IotHubSkuDescriptionImpl.java | 6 +- .../IotHubSkuDescriptionInner.java | 10 +- .../implementation/JobResponseImpl.java | 6 +- .../implementation/JobResponseInner.java | 16 +- .../implementation/OperationImpl.java | 6 +- .../implementation/OperationInner.java | 6 +- .../implementation/OperationsImpl.java | 29 +- .../implementation/OperationsInner.java | 18 +- .../RegistryStatisticsImpl.java | 6 +- .../RegistryStatisticsInner.java | 6 +- .../ResourceProviderCommonsImpl.java | 6 +- .../ResourceProviderCommonsInner.java | 8 +- ...dAccessSignatureAuthorizationRuleImpl.java | 6 +- ...AccessSignatureAuthorizationRuleInner.java | 16 +- .../TestAllRoutesResultImpl.java | 6 +- .../TestAllRoutesResultInner.java | 4 +- .../implementation/TestRouteResultImpl.java | 6 +- .../implementation/TestRouteResultInner.java | 8 +- .../UserSubscriptionQuotaImpl.java | 9 +- .../UserSubscriptionQuotaInner.java | 94 ++++++- 96 files changed, 1086 insertions(+), 874 deletions(-) create mode 100644 iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/DevicesManager.java create mode 100644 iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/ErrorDetailsInner.java create mode 100644 iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/ErrorDetailsInnerException.java diff --git a/iothub/resource-manager/v2018_04_01/pom.xml b/iothub/resource-manager/v2018_04_01/pom.xml index cffb1cc0c4af..ca261a3aa23f 100644 --- a/iothub/resource-manager/v2018_04_01/pom.xml +++ b/iothub/resource-manager/v2018_04_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.azure-mgmt-iothub-2018-04-01 - - com.microsoft.azure - azure-arm-parent - 0.0.3-beta - ../../../pom.xml - - azure-mgmt-iothub - 1.0.0-beta-SNAPSHOT - jar - Microsoft Azure SDK for Devices Management - This package contains Microsoft Devices Management SDK. - https://github.com/Azure/azure-libraries-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.iothub.v2018_04_01 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-devices + 1.0.0-beta + jar + Microsoft Azure SDK for Devices Management + This package contains Microsoft Devices Management SDK. + https://github.com/Azure/azure-libraries-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-libraries-for-java + scm:git:git@github.com:Azure/azure-libraries-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateBodyDescription.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateBodyDescription.java index 65881665d23c..1d1c39b73f17 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateBodyDescription.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateBodyDescription.java @@ -22,7 +22,7 @@ public class CertificateBodyDescription { private String certificate; /** - * Get the certificate value. + * Get base-64 representation of the X509 leaf certificate .cer file or just .pem file content. * * @return the certificate value */ @@ -31,7 +31,7 @@ public String certificate() { } /** - * Set the certificate value. + * Set base-64 representation of the X509 leaf certificate .cer file or just .pem file content. * * @param certificate the certificate value to set * @return the CertificateBodyDescription object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateDescription.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateDescription.java index 60fe674ab9e2..798e26c99e03 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateDescription.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateDescription.java @@ -16,12 +16,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager; +import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager; /** * Type representing CertificateDescription. */ -public interface CertificateDescription extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface CertificateDescription extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the etag value. */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateListDescription.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateListDescription.java index 7e51c4dbfc45..87ba1d23fcb5 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateListDescription.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateListDescription.java @@ -10,7 +10,7 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager; +import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager; import com.microsoft.azure.management.iothub.v2018_04_01.implementation.CertificateListDescriptionInner; import com.microsoft.azure.management.iothub.v2018_04_01.implementation.CertificateDescriptionInner; import java.util.List; @@ -18,7 +18,7 @@ /** * Type representing CertificateListDescription. */ -public interface CertificateListDescription extends HasInner, HasManager { +public interface CertificateListDescription extends HasInner, HasManager { /** * @return the value value. */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateProperties.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateProperties.java index 68b8566724a5..e26a69b51803 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateProperties.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateProperties.java @@ -59,7 +59,7 @@ public class CertificateProperties { private String certificate; /** - * Get the subject value. + * Get the certificate's subject name. * * @return the subject value */ @@ -68,7 +68,7 @@ public String subject() { } /** - * Get the expiry value. + * Get the certificate's expiration date and time. * * @return the expiry value */ @@ -80,7 +80,7 @@ public DateTime expiry() { } /** - * Get the thumbprint value. + * Get the certificate's thumbprint. * * @return the thumbprint value */ @@ -89,7 +89,7 @@ public String thumbprint() { } /** - * Get the isVerified value. + * Get determines whether certificate has been verified. * * @return the isVerified value */ @@ -98,7 +98,7 @@ public Boolean isVerified() { } /** - * Get the created value. + * Get the certificate's create date and time. * * @return the created value */ @@ -110,7 +110,7 @@ public DateTime created() { } /** - * Get the updated value. + * Get the certificate's last update date and time. * * @return the updated value */ @@ -122,7 +122,7 @@ public DateTime updated() { } /** - * Get the certificate value. + * Get the certificate content. * * @return the certificate value */ @@ -131,7 +131,7 @@ public String certificate() { } /** - * Set the certificate value. + * Set the certificate content. * * @param certificate the certificate value to set * @return the CertificateProperties object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificatePropertiesWithNonce.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificatePropertiesWithNonce.java index 3aa6c80473b2..8d991eaf9595 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificatePropertiesWithNonce.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificatePropertiesWithNonce.java @@ -67,7 +67,7 @@ public class CertificatePropertiesWithNonce { private String certificate; /** - * Get the subject value. + * Get the certificate's subject name. * * @return the subject value */ @@ -76,7 +76,7 @@ public String subject() { } /** - * Get the expiry value. + * Get the certificate's expiration date and time. * * @return the expiry value */ @@ -88,7 +88,7 @@ public DateTime expiry() { } /** - * Get the thumbprint value. + * Get the certificate's thumbprint. * * @return the thumbprint value */ @@ -97,7 +97,7 @@ public String thumbprint() { } /** - * Get the isVerified value. + * Get determines whether certificate has been verified. * * @return the isVerified value */ @@ -106,7 +106,7 @@ public Boolean isVerified() { } /** - * Get the created value. + * Get the certificate's create date and time. * * @return the created value */ @@ -118,7 +118,7 @@ public DateTime created() { } /** - * Get the updated value. + * Get the certificate's last update date and time. * * @return the updated value */ @@ -130,7 +130,7 @@ public DateTime updated() { } /** - * Get the verificationCode value. + * Get the certificate's verification code that will be used for proof of possession. * * @return the verificationCode value */ @@ -139,7 +139,7 @@ public String verificationCode() { } /** - * Get the certificate value. + * Get the certificate content. * * @return the certificate value */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateVerificationDescription.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateVerificationDescription.java index ba0d7e948481..c85dbbf7b4b3 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateVerificationDescription.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateVerificationDescription.java @@ -22,7 +22,7 @@ public class CertificateVerificationDescription { private String certificate; /** - * Get the certificate value. + * Get base-64 representation of X509 certificate .cer file or just .pem file content. * * @return the certificate value */ @@ -31,7 +31,7 @@ public String certificate() { } /** - * Set the certificate value. + * Set base-64 representation of X509 certificate .cer file or just .pem file content. * * @param certificate the certificate value to set * @return the CertificateVerificationDescription object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateWithNonceDescription.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateWithNonceDescription.java index 24aea4e9735c..28930c31eb56 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateWithNonceDescription.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CertificateWithNonceDescription.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager; +import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager; import com.microsoft.azure.management.iothub.v2018_04_01.implementation.CertificateWithNonceDescriptionInner; /** * Type representing CertificateWithNonceDescription. */ -public interface CertificateWithNonceDescription extends HasInner, HasManager { +public interface CertificateWithNonceDescription extends HasInner, HasManager { /** * @return the etag value. */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CloudToDeviceProperties.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CloudToDeviceProperties.java index f8f1868e2b60..052ba485823d 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CloudToDeviceProperties.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/CloudToDeviceProperties.java @@ -38,7 +38,7 @@ public class CloudToDeviceProperties { private FeedbackProperties feedback; /** - * Get the maxDeliveryCount value. + * Get the max delivery count for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. * * @return the maxDeliveryCount value */ @@ -47,7 +47,7 @@ public Integer maxDeliveryCount() { } /** - * Set the maxDeliveryCount value. + * Set the max delivery count for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. * * @param maxDeliveryCount the maxDeliveryCount value to set * @return the CloudToDeviceProperties object itself. @@ -58,7 +58,7 @@ public CloudToDeviceProperties withMaxDeliveryCount(Integer maxDeliveryCount) { } /** - * Get the defaultTtlAsIso8601 value. + * Get the default time to live for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. * * @return the defaultTtlAsIso8601 value */ @@ -67,7 +67,7 @@ public Period defaultTtlAsIso8601() { } /** - * Set the defaultTtlAsIso8601 value. + * Set the default time to live for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. * * @param defaultTtlAsIso8601 the defaultTtlAsIso8601 value to set * @return the CloudToDeviceProperties object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/EndpointHealthData.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/EndpointHealthData.java index a5f79076c623..a603db571f80 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/EndpointHealthData.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/EndpointHealthData.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager; +import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager; import com.microsoft.azure.management.iothub.v2018_04_01.implementation.EndpointHealthDataInner; /** * Type representing EndpointHealthData. */ -public interface EndpointHealthData extends HasInner, HasManager { +public interface EndpointHealthData extends HasInner, HasManager { /** * @return the endpointId value. */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/EventHubConsumerGroupInfo.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/EventHubConsumerGroupInfo.java index d5b2ad5ade64..a06322579662 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/EventHubConsumerGroupInfo.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/EventHubConsumerGroupInfo.java @@ -16,13 +16,13 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager; +import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager; import java.util.Map; /** * Type representing EventHubConsumerGroupInfo. */ -public interface EventHubConsumerGroupInfo extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface EventHubConsumerGroupInfo extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the etag value. */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/EventHubProperties.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/EventHubProperties.java index 92a88f17144a..13e150eb1264 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/EventHubProperties.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/EventHubProperties.java @@ -50,7 +50,7 @@ public class EventHubProperties { private String endpoint; /** - * Get the retentionTimeInDays value. + * Get the retention time for device-to-cloud messages in days. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages. * * @return the retentionTimeInDays value */ @@ -59,7 +59,7 @@ public Long retentionTimeInDays() { } /** - * Set the retentionTimeInDays value. + * Set the retention time for device-to-cloud messages in days. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages. * * @param retentionTimeInDays the retentionTimeInDays value to set * @return the EventHubProperties object itself. @@ -70,7 +70,7 @@ public EventHubProperties withRetentionTimeInDays(Long retentionTimeInDays) { } /** - * Get the partitionCount value. + * Get the number of partitions for receiving device-to-cloud messages in the Event Hub-compatible endpoint. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages. * * @return the partitionCount value */ @@ -79,7 +79,7 @@ public Integer partitionCount() { } /** - * Set the partitionCount value. + * Set the number of partitions for receiving device-to-cloud messages in the Event Hub-compatible endpoint. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages. * * @param partitionCount the partitionCount value to set * @return the EventHubProperties object itself. @@ -90,7 +90,7 @@ public EventHubProperties withPartitionCount(Integer partitionCount) { } /** - * Get the partitionIds value. + * Get the partition ids in the Event Hub-compatible endpoint. * * @return the partitionIds value */ @@ -99,7 +99,7 @@ public List partitionIds() { } /** - * Get the path value. + * Get the Event Hub-compatible name. * * @return the path value */ @@ -108,7 +108,7 @@ public String path() { } /** - * Get the endpoint value. + * Get the Event Hub-compatible endpoint. * * @return the endpoint value */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/ExportDevicesRequest.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/ExportDevicesRequest.java index 341caaf5a2fa..9c2111c9b5b2 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/ExportDevicesRequest.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/ExportDevicesRequest.java @@ -28,7 +28,7 @@ public class ExportDevicesRequest { private boolean excludeKeys; /** - * Get the exportBlobContainerUri value. + * Get the export blob container URI. * * @return the exportBlobContainerUri value */ @@ -37,7 +37,7 @@ public String exportBlobContainerUri() { } /** - * Set the exportBlobContainerUri value. + * Set the export blob container URI. * * @param exportBlobContainerUri the exportBlobContainerUri value to set * @return the ExportDevicesRequest object itself. @@ -48,7 +48,7 @@ public ExportDevicesRequest withExportBlobContainerUri(String exportBlobContaine } /** - * Get the excludeKeys value. + * Get the value indicating whether keys should be excluded during export. * * @return the excludeKeys value */ @@ -57,7 +57,7 @@ public boolean excludeKeys() { } /** - * Set the excludeKeys value. + * Set the value indicating whether keys should be excluded during export. * * @param excludeKeys the excludeKeys value to set * @return the ExportDevicesRequest object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/FallbackRouteProperties.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/FallbackRouteProperties.java index 5f53ebe08ee2..36d4a73810ec 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/FallbackRouteProperties.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/FallbackRouteProperties.java @@ -55,13 +55,15 @@ public class FallbackRouteProperties { /** * Creates an instance of FallbackRouteProperties class. + * @param endpointNames the list of endpoints to which the messages that satisfy the condition are routed to. Currently only 1 endpoint is allowed. + * @param isEnabled used to specify whether the fallback route is enabled. */ public FallbackRouteProperties() { source = "DeviceMessages"; } /** - * Get the name value. + * Get the name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique. * * @return the name value */ @@ -70,7 +72,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique. * * @param name the name value to set * @return the FallbackRouteProperties object itself. @@ -81,7 +83,7 @@ public FallbackRouteProperties withName(String name) { } /** - * Get the source value. + * Get the source to which the routing rule is to be applied to. For example, DeviceMessages. * * @return the source value */ @@ -90,7 +92,7 @@ public String source() { } /** - * Set the source value. + * Set the source to which the routing rule is to be applied to. For example, DeviceMessages. * * @param source the source value to set * @return the FallbackRouteProperties object itself. @@ -101,7 +103,7 @@ public FallbackRouteProperties withSource(String source) { } /** - * Get the condition value. + * Get the condition which is evaluated in order to apply the fallback route. If the condition is not provided it will evaluate to true by default. For grammar, See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language. * * @return the condition value */ @@ -110,7 +112,7 @@ public String condition() { } /** - * Set the condition value. + * Set the condition which is evaluated in order to apply the fallback route. If the condition is not provided it will evaluate to true by default. For grammar, See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language. * * @param condition the condition value to set * @return the FallbackRouteProperties object itself. @@ -121,7 +123,7 @@ public FallbackRouteProperties withCondition(String condition) { } /** - * Get the endpointNames value. + * Get the list of endpoints to which the messages that satisfy the condition are routed to. Currently only 1 endpoint is allowed. * * @return the endpointNames value */ @@ -130,7 +132,7 @@ public List endpointNames() { } /** - * Set the endpointNames value. + * Set the list of endpoints to which the messages that satisfy the condition are routed to. Currently only 1 endpoint is allowed. * * @param endpointNames the endpointNames value to set * @return the FallbackRouteProperties object itself. @@ -141,7 +143,7 @@ public FallbackRouteProperties withEndpointNames(List endpointNames) { } /** - * Get the isEnabled value. + * Get used to specify whether the fallback route is enabled. * * @return the isEnabled value */ @@ -150,7 +152,7 @@ public boolean isEnabled() { } /** - * Set the isEnabled value. + * Set used to specify whether the fallback route is enabled. * * @param isEnabled the isEnabled value to set * @return the FallbackRouteProperties object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/FeedbackProperties.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/FeedbackProperties.java index 50e6e1e94261..8b3d7068e3eb 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/FeedbackProperties.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/FeedbackProperties.java @@ -39,7 +39,7 @@ public class FeedbackProperties { private Integer maxDeliveryCount; /** - * Get the lockDurationAsIso8601 value. + * Get the lock duration for the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. * * @return the lockDurationAsIso8601 value */ @@ -48,7 +48,7 @@ public Period lockDurationAsIso8601() { } /** - * Set the lockDurationAsIso8601 value. + * Set the lock duration for the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. * * @param lockDurationAsIso8601 the lockDurationAsIso8601 value to set * @return the FeedbackProperties object itself. @@ -59,7 +59,7 @@ public FeedbackProperties withLockDurationAsIso8601(Period lockDurationAsIso8601 } /** - * Get the ttlAsIso8601 value. + * Get the period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. * * @return the ttlAsIso8601 value */ @@ -68,7 +68,7 @@ public Period ttlAsIso8601() { } /** - * Set the ttlAsIso8601 value. + * Set the period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. * * @param ttlAsIso8601 the ttlAsIso8601 value to set * @return the FeedbackProperties object itself. @@ -79,7 +79,7 @@ public FeedbackProperties withTtlAsIso8601(Period ttlAsIso8601) { } /** - * Get the maxDeliveryCount value. + * Get the number of times the IoT hub attempts to deliver a message on the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. * * @return the maxDeliveryCount value */ @@ -88,7 +88,7 @@ public Integer maxDeliveryCount() { } /** - * Set the maxDeliveryCount value. + * Set the number of times the IoT hub attempts to deliver a message on the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. * * @param maxDeliveryCount the maxDeliveryCount value to set * @return the FeedbackProperties object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/ImportDevicesRequest.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/ImportDevicesRequest.java index 8507881af4c5..1aa8f7035ed1 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/ImportDevicesRequest.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/ImportDevicesRequest.java @@ -28,7 +28,7 @@ public class ImportDevicesRequest { private String outputBlobContainerUri; /** - * Get the inputBlobContainerUri value. + * Get the input blob container URI. * * @return the inputBlobContainerUri value */ @@ -37,7 +37,7 @@ public String inputBlobContainerUri() { } /** - * Set the inputBlobContainerUri value. + * Set the input blob container URI. * * @param inputBlobContainerUri the inputBlobContainerUri value to set * @return the ImportDevicesRequest object itself. @@ -48,7 +48,7 @@ public ImportDevicesRequest withInputBlobContainerUri(String inputBlobContainerU } /** - * Get the outputBlobContainerUri value. + * Get the output blob container URI. * * @return the outputBlobContainerUri value */ @@ -57,7 +57,7 @@ public String outputBlobContainerUri() { } /** - * Set the outputBlobContainerUri value. + * Set the output blob container URI. * * @param outputBlobContainerUri the outputBlobContainerUri value to set * @return the ImportDevicesRequest object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubCapacity.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubCapacity.java index 4d3ee6b48e0a..b560d520a194 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubCapacity.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubCapacity.java @@ -40,7 +40,7 @@ public class IotHubCapacity { private IotHubScaleType scaleType; /** - * Get the minimum value. + * Get the minimum number of units. * * @return the minimum value */ @@ -49,7 +49,7 @@ public Long minimum() { } /** - * Get the maximum value. + * Get the maximum number of units. * * @return the maximum value */ @@ -58,7 +58,7 @@ public Long maximum() { } /** - * Get the defaultProperty value. + * Get the default number of units. * * @return the defaultProperty value */ @@ -67,7 +67,7 @@ public Long defaultProperty() { } /** - * Get the scaleType value. + * Get the type of the scaling enabled. Possible values include: 'Automatic', 'Manual', 'None'. * * @return the scaleType value */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubDescription.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubDescription.java index c0ea3a2b170c..effbb808d094 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubDescription.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubDescription.java @@ -10,20 +10,20 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager; +import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager; import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IotHubDescriptionInner; /** * Type representing IotHubDescription. */ -public interface IotHubDescription extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { +public interface IotHubDescription extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { /** * @return the etag value. */ @@ -102,12 +102,32 @@ interface WithCreate extends Creatable, Resource.DefinitionWi /** * The template for a IotHubDescription update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, Resource.UpdateWithTags { + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithEtag, UpdateStages.WithProperties { } /** * Grouping of IotHubDescription update stages. */ interface UpdateStages { + /** + * The stage of the iothubdescription {0} allowing to specify Etag. + */ + interface WithEtag { + /** + * Specifies etag. + */ + Update withEtag(String etag); + } + + /** + * The stage of the iothubdescription {0} allowing to specify Properties. + */ + interface WithProperties { + /** + * Specifies properties. + */ + Update withProperties(IotHubProperties properties); + } + } } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubNameAvailabilityInfo.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubNameAvailabilityInfo.java index 68040575d82d..7227c6ed28c6 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubNameAvailabilityInfo.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubNameAvailabilityInfo.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager; +import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager; import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IotHubNameAvailabilityInfoInner; /** * Type representing IotHubNameAvailabilityInfo. */ -public interface IotHubNameAvailabilityInfo extends HasInner, HasManager { +public interface IotHubNameAvailabilityInfo extends HasInner, HasManager { /** * @return the message value. */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubProperties.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubProperties.java index fc6f022d826e..cc38e0ca1ee7 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubProperties.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubProperties.java @@ -113,7 +113,7 @@ public class IotHubProperties { private Capabilities features; /** - * Get the authorizationPolicies value. + * Get the shared access policies you can use to secure a connection to the IoT hub. * * @return the authorizationPolicies value */ @@ -122,7 +122,7 @@ public List authorizationPolicies() } /** - * Set the authorizationPolicies value. + * Set the shared access policies you can use to secure a connection to the IoT hub. * * @param authorizationPolicies the authorizationPolicies value to set * @return the IotHubProperties object itself. @@ -133,7 +133,7 @@ public IotHubProperties withAuthorizationPolicies(List ipFilterRules() { } /** - * Set the ipFilterRules value. + * Set the IP filter rules. * * @param ipFilterRules the ipFilterRules value to set * @return the IotHubProperties object itself. @@ -153,7 +153,7 @@ public IotHubProperties withIpFilterRules(List ipFilterRules) { } /** - * Get the provisioningState value. + * Get the provisioning state. * * @return the provisioningState value */ @@ -162,7 +162,7 @@ public String provisioningState() { } /** - * Get the state value. + * Get thehub state state. * * @return the state value */ @@ -171,7 +171,7 @@ public String state() { } /** - * Get the hostName value. + * Get the name of the host. * * @return the hostName value */ @@ -180,7 +180,7 @@ public String hostName() { } /** - * Get the eventHubEndpoints value. + * Get the Event Hub-compatible endpoint properties. The possible keys to this dictionary are events and operationsMonitoringEvents. Both of these keys have to be present in the dictionary while making create or update calls for the IoT hub. * * @return the eventHubEndpoints value */ @@ -189,7 +189,7 @@ public Map eventHubEndpoints() { } /** - * Set the eventHubEndpoints value. + * Set the Event Hub-compatible endpoint properties. The possible keys to this dictionary are events and operationsMonitoringEvents. Both of these keys have to be present in the dictionary while making create or update calls for the IoT hub. * * @param eventHubEndpoints the eventHubEndpoints value to set * @return the IotHubProperties object itself. @@ -220,7 +220,7 @@ public IotHubProperties withRouting(RoutingProperties routing) { } /** - * Get the storageEndpoints value. + * Get the list of Azure Storage endpoints where you can upload files. Currently you can configure only one Azure Storage account and that MUST have its key as $default. Specifying more than one storage account causes an error to be thrown. Not specifying a value for this property when the enableFileUploadNotifications property is set to True, causes an error to be thrown. * * @return the storageEndpoints value */ @@ -229,7 +229,7 @@ public Map storageEndpoints() { } /** - * Set the storageEndpoints value. + * Set the list of Azure Storage endpoints where you can upload files. Currently you can configure only one Azure Storage account and that MUST have its key as $default. Specifying more than one storage account causes an error to be thrown. Not specifying a value for this property when the enableFileUploadNotifications property is set to True, causes an error to be thrown. * * @param storageEndpoints the storageEndpoints value to set * @return the IotHubProperties object itself. @@ -240,7 +240,7 @@ public IotHubProperties withStorageEndpoints(Map messagingEndpoints() { } /** - * Set the messagingEndpoints value. + * Set the messaging endpoint properties for the file upload notification queue. * * @param messagingEndpoints the messagingEndpoints value to set * @return the IotHubProperties object itself. @@ -260,7 +260,7 @@ public IotHubProperties withMessagingEndpoints(Map, HasManager { +public interface IotHubQuotaMetricInfo extends HasInner, HasManager { /** * @return the currentValue value. */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubResources.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubResources.java index 2cd7f134265a..1b885f4067fa 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubResources.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubResources.java @@ -20,8 +20,18 @@ * Type representing IotHubResources. */ public interface IotHubResources { + /** + * Begins definition for a new IotHub resource. + * @param name resource name. + * @return the first stage of the new IotHub definition. + */ IotHubDescription.DefinitionStages.Blank defineIotHub(String name); + /** + * Begins definition for a new ConsumerGroup resource. + * @param name resource name. + * @return the first stage of the new ConsumerGroup definition. + */ EventHubConsumerGroupInfo.DefinitionStages.Blank defineConsumerGroup(String name); /** diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubSkuDescription.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubSkuDescription.java index a478f012d770..81d5b52ff30c 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubSkuDescription.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubSkuDescription.java @@ -11,12 +11,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IotHubSkuDescriptionInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager; +import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager; /** * Type representing IotHubSkuDescription. */ -public interface IotHubSkuDescription extends HasInner, HasManager { +public interface IotHubSkuDescription extends HasInner, HasManager { /** * @return the capacity value. */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubSkuInfo.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubSkuInfo.java index 11feb975cb9b..35a578f7ca5b 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubSkuInfo.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IotHubSkuInfo.java @@ -36,7 +36,7 @@ public class IotHubSkuInfo { private Long capacity; /** - * Get the name value. + * Get the name of the SKU. Possible values include: 'F1', 'S1', 'S2', 'S3', 'B1', 'B2', 'B3'. * * @return the name value */ @@ -45,7 +45,7 @@ public IotHubSku name() { } /** - * Set the name value. + * Set the name of the SKU. Possible values include: 'F1', 'S1', 'S2', 'S3', 'B1', 'B2', 'B3'. * * @param name the name value to set * @return the IotHubSkuInfo object itself. @@ -56,7 +56,7 @@ public IotHubSkuInfo withName(IotHubSku name) { } /** - * Get the tier value. + * Get the billing tier for the IoT hub. Possible values include: 'Free', 'Standard', 'Basic'. * * @return the tier value */ @@ -65,7 +65,7 @@ public IotHubSkuTier tier() { } /** - * Get the capacity value. + * Get the number of provisioned IoT Hub units. See: https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits. * * @return the capacity value */ @@ -74,7 +74,7 @@ public Long capacity() { } /** - * Set the capacity value. + * Set the number of provisioned IoT Hub units. See: https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits. * * @param capacity the capacity value to set * @return the IotHubSkuInfo object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IpFilterRule.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IpFilterRule.java index 9d498a74a3d5..225852955a6b 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IpFilterRule.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/IpFilterRule.java @@ -35,7 +35,7 @@ public class IpFilterRule { private String ipMask; /** - * Get the filterName value. + * Get the name of the IP filter rule. * * @return the filterName value */ @@ -44,7 +44,7 @@ public String filterName() { } /** - * Set the filterName value. + * Set the name of the IP filter rule. * * @param filterName the filterName value to set * @return the IpFilterRule object itself. @@ -55,7 +55,7 @@ public IpFilterRule withFilterName(String filterName) { } /** - * Get the action value. + * Get the desired action for requests captured by this rule. Possible values include: 'Accept', 'Reject'. * * @return the action value */ @@ -64,7 +64,7 @@ public IpFilterActionType action() { } /** - * Set the action value. + * Set the desired action for requests captured by this rule. Possible values include: 'Accept', 'Reject'. * * @param action the action value to set * @return the IpFilterRule object itself. @@ -75,7 +75,7 @@ public IpFilterRule withAction(IpFilterActionType action) { } /** - * Get the ipMask value. + * Get a string that contains the IP address range in CIDR notation for the rule. * * @return the ipMask value */ @@ -84,7 +84,7 @@ public String ipMask() { } /** - * Set the ipMask value. + * Set a string that contains the IP address range in CIDR notation for the rule. * * @param ipMask the ipMask value to set * @return the IpFilterRule object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/JobResponse.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/JobResponse.java index b7e3460d0f76..157de04e4a58 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/JobResponse.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/JobResponse.java @@ -11,14 +11,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.iothub.v2018_04_01.implementation.JobResponseInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager; +import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager; import com.microsoft.rest.DateTimeRfc1123; import org.joda.time.DateTime; /** * Type representing JobResponse. */ -public interface JobResponse extends HasInner, HasManager { +public interface JobResponse extends HasInner, HasManager { /** * @return the endTimeUtc value. */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/MatchedRoute.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/MatchedRoute.java index 55e8f0b22f06..bfa9c75f2471 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/MatchedRoute.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/MatchedRoute.java @@ -21,7 +21,7 @@ public class MatchedRoute { private RouteProperties properties; /** - * Get the properties value. + * Get properties of routes that matched. * * @return the properties value */ @@ -30,7 +30,7 @@ public RouteProperties properties() { } /** - * Set the properties value. + * Set properties of routes that matched. * * @param properties the properties value to set * @return the MatchedRoute object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/MessagingEndpointProperties.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/MessagingEndpointProperties.java index 0d741b978dd3..8e7b3a6e7ee3 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/MessagingEndpointProperties.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/MessagingEndpointProperties.java @@ -38,7 +38,7 @@ public class MessagingEndpointProperties { private Integer maxDeliveryCount; /** - * Get the lockDurationAsIso8601 value. + * Get the lock duration. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload. * * @return the lockDurationAsIso8601 value */ @@ -47,7 +47,7 @@ public Period lockDurationAsIso8601() { } /** - * Set the lockDurationAsIso8601 value. + * Set the lock duration. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload. * * @param lockDurationAsIso8601 the lockDurationAsIso8601 value to set * @return the MessagingEndpointProperties object itself. @@ -58,7 +58,7 @@ public MessagingEndpointProperties withLockDurationAsIso8601(Period lockDuration } /** - * Get the ttlAsIso8601 value. + * Get the period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload. * * @return the ttlAsIso8601 value */ @@ -67,7 +67,7 @@ public Period ttlAsIso8601() { } /** - * Set the ttlAsIso8601 value. + * Set the period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload. * * @param ttlAsIso8601 the ttlAsIso8601 value to set * @return the MessagingEndpointProperties object itself. @@ -78,7 +78,7 @@ public MessagingEndpointProperties withTtlAsIso8601(Period ttlAsIso8601) { } /** - * Get the maxDeliveryCount value. + * Get the number of times the IoT hub attempts to deliver a message. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload. * * @return the maxDeliveryCount value */ @@ -87,7 +87,7 @@ public Integer maxDeliveryCount() { } /** - * Set the maxDeliveryCount value. + * Set the number of times the IoT hub attempts to deliver a message. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload. * * @param maxDeliveryCount the maxDeliveryCount value to set * @return the MessagingEndpointProperties object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/Name.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/Name.java index 0181bbb939a5..e8264c8f9f6e 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/Name.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/Name.java @@ -27,7 +27,7 @@ public class Name { private String localizedValue; /** - * Get the value value. + * Get iotHub type. * * @return the value value */ @@ -36,7 +36,7 @@ public String value() { } /** - * Set the value value. + * Set iotHub type. * * @param value the value value to set * @return the Name object itself. @@ -47,7 +47,7 @@ public Name withValue(String value) { } /** - * Get the localizedValue value. + * Get localized value of name. * * @return the localizedValue value */ @@ -56,7 +56,7 @@ public String localizedValue() { } /** - * Set the localizedValue value. + * Set localized value of name. * * @param localizedValue the localizedValue value to set * @return the Name object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/Operation.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/Operation.java index 659fbbe04759..5931dda80cca 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/Operation.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/Operation.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager; +import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager; import com.microsoft.azure.management.iothub.v2018_04_01.implementation.OperationInner; /** * Type representing Operation. */ -public interface Operation extends HasInner, HasManager { +public interface Operation extends HasInner, HasManager { /** * @return the display value. */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/OperationDisplay.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/OperationDisplay.java index 5b205f3d958c..d546c1289403 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/OperationDisplay.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/OperationDisplay.java @@ -33,7 +33,7 @@ public class OperationDisplay { private String operation; /** - * Get the provider value. + * Get service provider: Microsoft Devices. * * @return the provider value */ @@ -42,7 +42,7 @@ public String provider() { } /** - * Get the resource value. + * Get resource Type: IotHubs. * * @return the resource value */ @@ -51,7 +51,7 @@ public String resource() { } /** - * Get the operation value. + * Get name of the operation. * * @return the operation value */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/OperationInputs.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/OperationInputs.java index 19f79b98dd76..d7b860916e04 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/OperationInputs.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/OperationInputs.java @@ -21,7 +21,7 @@ public class OperationInputs { private String name; /** - * Get the name value. + * Get the name of the IoT hub to check. * * @return the name value */ @@ -30,7 +30,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the IoT hub to check. * * @param name the name value to set * @return the OperationInputs object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RegistryStatistics.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RegistryStatistics.java index 0a4cf17f5dfd..55d29989c060 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RegistryStatistics.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RegistryStatistics.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager; +import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager; import com.microsoft.azure.management.iothub.v2018_04_01.implementation.RegistryStatisticsInner; /** * Type representing RegistryStatistics. */ -public interface RegistryStatistics extends HasInner, HasManager { +public interface RegistryStatistics extends HasInner, HasManager { /** * @return the disabledDeviceCount value. */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RouteCompilationError.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RouteCompilationError.java index be253754151b..1d45ec8619da 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RouteCompilationError.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RouteCompilationError.java @@ -34,7 +34,7 @@ public class RouteCompilationError { private RouteErrorRange location; /** - * Get the message value. + * Get route error message. * * @return the message value */ @@ -43,7 +43,7 @@ public String message() { } /** - * Set the message value. + * Set route error message. * * @param message the message value to set * @return the RouteCompilationError object itself. @@ -54,7 +54,7 @@ public RouteCompilationError withMessage(String message) { } /** - * Get the severity value. + * Get severity of the route error. Possible values include: 'error', 'warning'. * * @return the severity value */ @@ -63,7 +63,7 @@ public RouteErrorSeverity severity() { } /** - * Set the severity value. + * Set severity of the route error. Possible values include: 'error', 'warning'. * * @param severity the severity value to set * @return the RouteCompilationError object itself. @@ -74,7 +74,7 @@ public RouteCompilationError withSeverity(RouteErrorSeverity severity) { } /** - * Get the location value. + * Get location where the route error happened. * * @return the location value */ @@ -83,7 +83,7 @@ public RouteErrorRange location() { } /** - * Set the location value. + * Set location where the route error happened. * * @param location the location value to set * @return the RouteCompilationError object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RouteErrorPosition.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RouteErrorPosition.java index 2e4664de3f23..5400e226ffbf 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RouteErrorPosition.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RouteErrorPosition.java @@ -27,7 +27,7 @@ public class RouteErrorPosition { private Integer column; /** - * Get the line value. + * Get line where the route error happened. * * @return the line value */ @@ -36,7 +36,7 @@ public Integer line() { } /** - * Set the line value. + * Set line where the route error happened. * * @param line the line value to set * @return the RouteErrorPosition object itself. @@ -47,7 +47,7 @@ public RouteErrorPosition withLine(Integer line) { } /** - * Get the column value. + * Get column where the route error happened. * * @return the column value */ @@ -56,7 +56,7 @@ public Integer column() { } /** - * Set the column value. + * Set column where the route error happened. * * @param column the column value to set * @return the RouteErrorPosition object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RouteErrorRange.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RouteErrorRange.java index 5fd27f7c51f2..a55f128432e8 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RouteErrorRange.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RouteErrorRange.java @@ -27,7 +27,7 @@ public class RouteErrorRange { private RouteErrorPosition end; /** - * Get the start value. + * Get start where the route error happened. * * @return the start value */ @@ -36,7 +36,7 @@ public RouteErrorPosition start() { } /** - * Set the start value. + * Set start where the route error happened. * * @param start the start value to set * @return the RouteErrorRange object itself. @@ -47,7 +47,7 @@ public RouteErrorRange withStart(RouteErrorPosition start) { } /** - * Get the end value. + * Get end where the route error happened. * * @return the end value */ @@ -56,7 +56,7 @@ public RouteErrorPosition end() { } /** - * Set the end value. + * Set end where the route error happened. * * @param end the end value to set * @return the RouteErrorRange object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RouteProperties.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RouteProperties.java index 01b7d7063ae8..8e047ecd575c 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RouteProperties.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RouteProperties.java @@ -55,7 +55,7 @@ public class RouteProperties { private boolean isEnabled; /** - * Get the name value. + * Get the name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique. * * @return the name value */ @@ -64,7 +64,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique. * * @param name the name value to set * @return the RouteProperties object itself. @@ -75,7 +75,7 @@ public RouteProperties withName(String name) { } /** - * Get the source value. + * Get the source that the routing rule is to be applied to, such as DeviceMessages. Possible values include: 'Invalid', 'DeviceMessages', 'TwinChangeEvents', 'DeviceLifecycleEvents', 'DeviceJobLifecycleEvents'. * * @return the source value */ @@ -84,7 +84,7 @@ public RoutingSource source() { } /** - * Set the source value. + * Set the source that the routing rule is to be applied to, such as DeviceMessages. Possible values include: 'Invalid', 'DeviceMessages', 'TwinChangeEvents', 'DeviceLifecycleEvents', 'DeviceJobLifecycleEvents'. * * @param source the source value to set * @return the RouteProperties object itself. @@ -95,7 +95,7 @@ public RouteProperties withSource(RoutingSource source) { } /** - * Get the condition value. + * Get the condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language. * * @return the condition value */ @@ -104,7 +104,7 @@ public String condition() { } /** - * Set the condition value. + * Set the condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language. * * @param condition the condition value to set * @return the RouteProperties object itself. @@ -115,7 +115,7 @@ public RouteProperties withCondition(String condition) { } /** - * Get the endpointNames value. + * Get the list of endpoints to which messages that satisfy the condition are routed. Currently only one endpoint is allowed. * * @return the endpointNames value */ @@ -124,7 +124,7 @@ public List endpointNames() { } /** - * Set the endpointNames value. + * Set the list of endpoints to which messages that satisfy the condition are routed. Currently only one endpoint is allowed. * * @param endpointNames the endpointNames value to set * @return the RouteProperties object itself. @@ -135,7 +135,7 @@ public RouteProperties withEndpointNames(List endpointNames) { } /** - * Get the isEnabled value. + * Get used to specify whether a route is enabled. * * @return the isEnabled value */ @@ -144,7 +144,7 @@ public boolean isEnabled() { } /** - * Set the isEnabled value. + * Set used to specify whether a route is enabled. * * @param isEnabled the isEnabled value to set * @return the RouteProperties object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingEndpoints.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingEndpoints.java index d844f4c7d010..38aed58a5402 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingEndpoints.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingEndpoints.java @@ -48,7 +48,7 @@ public class RoutingEndpoints { private List storageContainers; /** - * Get the serviceBusQueues value. + * Get the list of Service Bus queue endpoints that IoT hub routes the messages to, based on the routing rules. * * @return the serviceBusQueues value */ @@ -57,7 +57,7 @@ public List serviceBusQueues() { } /** - * Set the serviceBusQueues value. + * Set the list of Service Bus queue endpoints that IoT hub routes the messages to, based on the routing rules. * * @param serviceBusQueues the serviceBusQueues value to set * @return the RoutingEndpoints object itself. @@ -68,7 +68,7 @@ public RoutingEndpoints withServiceBusQueues(List serviceBusTopics() { } /** - * Set the serviceBusTopics value. + * Set the list of Service Bus topic endpoints that the IoT hub routes the messages to, based on the routing rules. * * @param serviceBusTopics the serviceBusTopics value to set * @return the RoutingEndpoints object itself. @@ -88,7 +88,7 @@ public RoutingEndpoints withServiceBusTopics(List eventHubs() { } /** - * Set the eventHubs value. + * Set the list of Event Hubs endpoints that IoT hub routes messages to, based on the routing rules. This list does not include the built-in Event Hubs endpoint. * * @param eventHubs the eventHubs value to set * @return the RoutingEndpoints object itself. @@ -108,7 +108,7 @@ public RoutingEndpoints withEventHubs(List eventHubs) } /** - * Get the storageContainers value. + * Get the list of storage container endpoints that IoT hub routes messages to, based on the routing rules. * * @return the storageContainers value */ @@ -117,7 +117,7 @@ public List storageContainers() { } /** - * Set the storageContainers value. + * Set the list of storage container endpoints that IoT hub routes messages to, based on the routing rules. * * @param storageContainers the storageContainers value to set * @return the RoutingEndpoints object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingEventHubProperties.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingEventHubProperties.java index 11d085b58a05..16c51f19df57 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingEventHubProperties.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingEventHubProperties.java @@ -43,7 +43,7 @@ public class RoutingEventHubProperties { private String resourceGroup; /** - * Get the connectionString value. + * Get the connection string of the event hub endpoint. * * @return the connectionString value */ @@ -52,7 +52,7 @@ public String connectionString() { } /** - * Set the connectionString value. + * Set the connection string of the event hub endpoint. * * @param connectionString the connectionString value to set * @return the RoutingEventHubProperties object itself. @@ -63,7 +63,7 @@ public RoutingEventHubProperties withConnectionString(String connectionString) { } /** - * Get the name value. + * Get the name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. * * @return the name value */ @@ -72,7 +72,7 @@ public String name() { } /** - * Set the name value. + * Set the name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. * * @param name the name value to set * @return the RoutingEventHubProperties object itself. @@ -83,7 +83,7 @@ public RoutingEventHubProperties withName(String name) { } /** - * Get the subscriptionId value. + * Get the subscription identifier of the event hub endpoint. * * @return the subscriptionId value */ @@ -92,7 +92,7 @@ public String subscriptionId() { } /** - * Set the subscriptionId value. + * Set the subscription identifier of the event hub endpoint. * * @param subscriptionId the subscriptionId value to set * @return the RoutingEventHubProperties object itself. @@ -103,7 +103,7 @@ public RoutingEventHubProperties withSubscriptionId(String subscriptionId) { } /** - * Get the resourceGroup value. + * Get the name of the resource group of the event hub endpoint. * * @return the resourceGroup value */ @@ -112,7 +112,7 @@ public String resourceGroup() { } /** - * Set the resourceGroup value. + * Set the name of the resource group of the event hub endpoint. * * @param resourceGroup the resourceGroup value to set * @return the RoutingEventHubProperties object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingMessage.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingMessage.java index c326b2583d1a..3068080648a4 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingMessage.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingMessage.java @@ -34,7 +34,7 @@ public class RoutingMessage { private Map systemProperties; /** - * Get the body value. + * Get body of routing message. * * @return the body value */ @@ -43,7 +43,7 @@ public String body() { } /** - * Set the body value. + * Set body of routing message. * * @param body the body value to set * @return the RoutingMessage object itself. @@ -54,7 +54,7 @@ public RoutingMessage withBody(String body) { } /** - * Get the appProperties value. + * Get app properties. * * @return the appProperties value */ @@ -63,7 +63,7 @@ public Map appProperties() { } /** - * Set the appProperties value. + * Set app properties. * * @param appProperties the appProperties value to set * @return the RoutingMessage object itself. @@ -74,7 +74,7 @@ public RoutingMessage withAppProperties(Map appProperties) { } /** - * Get the systemProperties value. + * Get system properties. * * @return the systemProperties value */ @@ -83,7 +83,7 @@ public Map systemProperties() { } /** - * Set the systemProperties value. + * Set system properties. * * @param systemProperties the systemProperties value to set * @return the RoutingMessage object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingProperties.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingProperties.java index f71f7b720fe7..1b93ef3832b8 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingProperties.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingProperties.java @@ -62,7 +62,7 @@ public RoutingProperties withEndpoints(RoutingEndpoints endpoints) { } /** - * Get the routes value. + * Get the list of user-provided routing rules that the IoT hub uses to route messages to built-in and custom endpoints. A maximum of 100 routing rules are allowed for paid hubs and a maximum of 5 routing rules are allowed for free hubs. * * @return the routes value */ @@ -71,7 +71,7 @@ public List routes() { } /** - * Set the routes value. + * Set the list of user-provided routing rules that the IoT hub uses to route messages to built-in and custom endpoints. A maximum of 100 routing rules are allowed for paid hubs and a maximum of 5 routing rules are allowed for free hubs. * * @param routes the routes value to set * @return the RoutingProperties object itself. @@ -82,7 +82,7 @@ public RoutingProperties withRoutes(List routes) { } /** - * Get the fallbackRoute value. + * Get the properties of the route that is used as a fall-back route when none of the conditions specified in the 'routes' section are met. This is an optional parameter. When this property is not set, the messages which do not meet any of the conditions specified in the 'routes' section get routed to the built-in eventhub endpoint. * * @return the fallbackRoute value */ @@ -91,7 +91,7 @@ public FallbackRouteProperties fallbackRoute() { } /** - * Set the fallbackRoute value. + * Set the properties of the route that is used as a fall-back route when none of the conditions specified in the 'routes' section are met. This is an optional parameter. When this property is not set, the messages which do not meet any of the conditions specified in the 'routes' section get routed to the built-in eventhub endpoint. * * @param fallbackRoute the fallbackRoute value to set * @return the RoutingProperties object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingServiceBusQueueEndpointProperties.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingServiceBusQueueEndpointProperties.java index 4838f6f4fbfc..923fa5323485 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingServiceBusQueueEndpointProperties.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingServiceBusQueueEndpointProperties.java @@ -44,7 +44,7 @@ public class RoutingServiceBusQueueEndpointProperties { private String resourceGroup; /** - * Get the connectionString value. + * Get the connection string of the service bus queue endpoint. * * @return the connectionString value */ @@ -53,7 +53,7 @@ public String connectionString() { } /** - * Set the connectionString value. + * Set the connection string of the service bus queue endpoint. * * @param connectionString the connectionString value to set * @return the RoutingServiceBusQueueEndpointProperties object itself. @@ -64,7 +64,7 @@ public RoutingServiceBusQueueEndpointProperties withConnectionString(String conn } /** - * Get the name value. + * Get the name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual queue name. * * @return the name value */ @@ -73,7 +73,7 @@ public String name() { } /** - * Set the name value. + * Set the name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual queue name. * * @param name the name value to set * @return the RoutingServiceBusQueueEndpointProperties object itself. @@ -84,7 +84,7 @@ public RoutingServiceBusQueueEndpointProperties withName(String name) { } /** - * Get the subscriptionId value. + * Get the subscription identifier of the service bus queue endpoint. * * @return the subscriptionId value */ @@ -93,7 +93,7 @@ public String subscriptionId() { } /** - * Set the subscriptionId value. + * Set the subscription identifier of the service bus queue endpoint. * * @param subscriptionId the subscriptionId value to set * @return the RoutingServiceBusQueueEndpointProperties object itself. @@ -104,7 +104,7 @@ public RoutingServiceBusQueueEndpointProperties withSubscriptionId(String subscr } /** - * Get the resourceGroup value. + * Get the name of the resource group of the service bus queue endpoint. * * @return the resourceGroup value */ @@ -113,7 +113,7 @@ public String resourceGroup() { } /** - * Set the resourceGroup value. + * Set the name of the resource group of the service bus queue endpoint. * * @param resourceGroup the resourceGroup value to set * @return the RoutingServiceBusQueueEndpointProperties object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingServiceBusTopicEndpointProperties.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingServiceBusTopicEndpointProperties.java index ab73f5cfc968..a2935d115194 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingServiceBusTopicEndpointProperties.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingServiceBusTopicEndpointProperties.java @@ -44,7 +44,7 @@ public class RoutingServiceBusTopicEndpointProperties { private String resourceGroup; /** - * Get the connectionString value. + * Get the connection string of the service bus topic endpoint. * * @return the connectionString value */ @@ -53,7 +53,7 @@ public String connectionString() { } /** - * Set the connectionString value. + * Set the connection string of the service bus topic endpoint. * * @param connectionString the connectionString value to set * @return the RoutingServiceBusTopicEndpointProperties object itself. @@ -64,7 +64,7 @@ public RoutingServiceBusTopicEndpointProperties withConnectionString(String conn } /** - * Get the name value. + * Get the name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual topic name. * * @return the name value */ @@ -73,7 +73,7 @@ public String name() { } /** - * Set the name value. + * Set the name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual topic name. * * @param name the name value to set * @return the RoutingServiceBusTopicEndpointProperties object itself. @@ -84,7 +84,7 @@ public RoutingServiceBusTopicEndpointProperties withName(String name) { } /** - * Get the subscriptionId value. + * Get the subscription identifier of the service bus topic endpoint. * * @return the subscriptionId value */ @@ -93,7 +93,7 @@ public String subscriptionId() { } /** - * Set the subscriptionId value. + * Set the subscription identifier of the service bus topic endpoint. * * @param subscriptionId the subscriptionId value to set * @return the RoutingServiceBusTopicEndpointProperties object itself. @@ -104,7 +104,7 @@ public RoutingServiceBusTopicEndpointProperties withSubscriptionId(String subscr } /** - * Get the resourceGroup value. + * Get the name of the resource group of the service bus topic endpoint. * * @return the resourceGroup value */ @@ -113,7 +113,7 @@ public String resourceGroup() { } /** - * Set the resourceGroup value. + * Set the name of the resource group of the service bus topic endpoint. * * @param resourceGroup the resourceGroup value to set * @return the RoutingServiceBusTopicEndpointProperties object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingStorageContainerProperties.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingStorageContainerProperties.java index 906408b79c80..b543bde7640c 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingStorageContainerProperties.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/RoutingStorageContainerProperties.java @@ -79,7 +79,7 @@ public class RoutingStorageContainerProperties { private String encoding; /** - * Get the connectionString value. + * Get the connection string of the storage account. * * @return the connectionString value */ @@ -88,7 +88,7 @@ public String connectionString() { } /** - * Set the connectionString value. + * Set the connection string of the storage account. * * @param connectionString the connectionString value to set * @return the RoutingStorageContainerProperties object itself. @@ -99,7 +99,7 @@ public RoutingStorageContainerProperties withConnectionString(String connectionS } /** - * Get the name value. + * Get the name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. * * @return the name value */ @@ -108,7 +108,7 @@ public String name() { } /** - * Set the name value. + * Set the name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. * * @param name the name value to set * @return the RoutingStorageContainerProperties object itself. @@ -119,7 +119,7 @@ public RoutingStorageContainerProperties withName(String name) { } /** - * Get the subscriptionId value. + * Get the subscription identifier of the storage account. * * @return the subscriptionId value */ @@ -128,7 +128,7 @@ public String subscriptionId() { } /** - * Set the subscriptionId value. + * Set the subscription identifier of the storage account. * * @param subscriptionId the subscriptionId value to set * @return the RoutingStorageContainerProperties object itself. @@ -139,7 +139,7 @@ public RoutingStorageContainerProperties withSubscriptionId(String subscriptionI } /** - * Get the resourceGroup value. + * Get the name of the resource group of the storage account. * * @return the resourceGroup value */ @@ -148,7 +148,7 @@ public String resourceGroup() { } /** - * Set the resourceGroup value. + * Set the name of the resource group of the storage account. * * @param resourceGroup the resourceGroup value to set * @return the RoutingStorageContainerProperties object itself. @@ -159,7 +159,7 @@ public RoutingStorageContainerProperties withResourceGroup(String resourceGroup) } /** - * Get the containerName value. + * Get the name of storage container in the storage account. * * @return the containerName value */ @@ -168,7 +168,7 @@ public String containerName() { } /** - * Set the containerName value. + * Set the name of storage container in the storage account. * * @param containerName the containerName value to set * @return the RoutingStorageContainerProperties object itself. @@ -179,7 +179,7 @@ public RoutingStorageContainerProperties withContainerName(String containerName) } /** - * Get the fileNameFormat value. + * Get file name format for the blob. Default format is {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are mandatory but can be reordered. * * @return the fileNameFormat value */ @@ -188,7 +188,7 @@ public String fileNameFormat() { } /** - * Set the fileNameFormat value. + * Set file name format for the blob. Default format is {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are mandatory but can be reordered. * * @param fileNameFormat the fileNameFormat value to set * @return the RoutingStorageContainerProperties object itself. @@ -199,7 +199,7 @@ public RoutingStorageContainerProperties withFileNameFormat(String fileNameForma } /** - * Get the batchFrequencyInSeconds value. + * Get time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds. * * @return the batchFrequencyInSeconds value */ @@ -208,7 +208,7 @@ public Integer batchFrequencyInSeconds() { } /** - * Set the batchFrequencyInSeconds value. + * Set time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds. * * @param batchFrequencyInSeconds the batchFrequencyInSeconds value to set * @return the RoutingStorageContainerProperties object itself. @@ -219,7 +219,7 @@ public RoutingStorageContainerProperties withBatchFrequencyInSeconds(Integer bat } /** - * Get the maxChunkSizeInBytes value. + * Get maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB). * * @return the maxChunkSizeInBytes value */ @@ -228,7 +228,7 @@ public Integer maxChunkSizeInBytes() { } /** - * Set the maxChunkSizeInBytes value. + * Set maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB). * * @param maxChunkSizeInBytes the maxChunkSizeInBytes value to set * @return the RoutingStorageContainerProperties object itself. @@ -239,7 +239,7 @@ public RoutingStorageContainerProperties withMaxChunkSizeInBytes(Integer maxChun } /** - * Get the encoding value. + * Get encoding that is used to serialize messages to blobs. Supported values are 'avro' and 'avrodeflate'. Default value is 'avro'. * * @return the encoding value */ @@ -248,7 +248,7 @@ public String encoding() { } /** - * Set the encoding value. + * Set encoding that is used to serialize messages to blobs. Supported values are 'avro' and 'avrodeflate'. Default value is 'avro'. * * @param encoding the encoding value to set * @return the RoutingStorageContainerProperties object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/SharedAccessSignatureAuthorizationRule.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/SharedAccessSignatureAuthorizationRule.java index f143f874d893..a03a233d57c3 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/SharedAccessSignatureAuthorizationRule.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/SharedAccessSignatureAuthorizationRule.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager; +import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager; import com.microsoft.azure.management.iothub.v2018_04_01.implementation.SharedAccessSignatureAuthorizationRuleInner; /** * Type representing SharedAccessSignatureAuthorizationRule. */ -public interface SharedAccessSignatureAuthorizationRule extends HasInner, HasManager { +public interface SharedAccessSignatureAuthorizationRule extends HasInner, HasManager { /** * @return the keyName value. */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/StorageEndpointProperties.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/StorageEndpointProperties.java index 695eb40b104b..e47d1a749fb8 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/StorageEndpointProperties.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/StorageEndpointProperties.java @@ -39,7 +39,7 @@ public class StorageEndpointProperties { private String containerName; /** - * Get the sasTtlAsIso8601 value. + * Get the period of time for which the the SAS URI generated by IoT Hub for file upload is valid. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload#file-upload-notification-configuration-options. * * @return the sasTtlAsIso8601 value */ @@ -48,7 +48,7 @@ public Period sasTtlAsIso8601() { } /** - * Set the sasTtlAsIso8601 value. + * Set the period of time for which the the SAS URI generated by IoT Hub for file upload is valid. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload#file-upload-notification-configuration-options. * * @param sasTtlAsIso8601 the sasTtlAsIso8601 value to set * @return the StorageEndpointProperties object itself. @@ -59,7 +59,7 @@ public StorageEndpointProperties withSasTtlAsIso8601(Period sasTtlAsIso8601) { } /** - * Get the connectionString value. + * Get the connection string for the Azure Storage account to which files are uploaded. * * @return the connectionString value */ @@ -68,7 +68,7 @@ public String connectionString() { } /** - * Set the connectionString value. + * Set the connection string for the Azure Storage account to which files are uploaded. * * @param connectionString the connectionString value to set * @return the StorageEndpointProperties object itself. @@ -79,7 +79,7 @@ public StorageEndpointProperties withConnectionString(String connectionString) { } /** - * Get the containerName value. + * Get the name of the root container where you upload files. The container need not exist but should be creatable using the connectionString specified. * * @return the containerName value */ @@ -88,7 +88,7 @@ public String containerName() { } /** - * Set the containerName value. + * Set the name of the root container where you upload files. The container need not exist but should be creatable using the connectionString specified. * * @param containerName the containerName value to set * @return the StorageEndpointProperties object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TagsResource.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TagsResource.java index e26f3382f751..d2b617e77991 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TagsResource.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TagsResource.java @@ -23,7 +23,7 @@ public class TagsResource { private Map tags; /** - * Get the tags value. + * Get resource tags. * * @return the tags value */ @@ -32,7 +32,7 @@ public Map tags() { } /** - * Set the tags value. + * Set resource tags. * * @param tags the tags value to set * @return the TagsResource object itself. 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 0f3167a41df8..692b61973fa6 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 @@ -28,7 +28,7 @@ public class TestAllRoutesInput { private RoutingMessage message; /** - * Get the routingSource value. + * Get routing source. Possible values include: 'Invalid', 'DeviceMessages', 'TwinChangeEvents', 'DeviceLifecycleEvents', 'DeviceJobLifecycleEvents'. * * @return the routingSource value */ @@ -37,7 +37,7 @@ public RoutingSource routingSource() { } /** - * Set the routingSource value. + * Set routing source. Possible values include: 'Invalid', 'DeviceMessages', 'TwinChangeEvents', 'DeviceLifecycleEvents', 'DeviceJobLifecycleEvents'. * * @param routingSource the routingSource value to set * @return the TestAllRoutesInput object itself. @@ -48,7 +48,7 @@ public TestAllRoutesInput withRoutingSource(RoutingSource routingSource) { } /** - * Get the message value. + * Get routing message. * * @return the message value */ @@ -57,7 +57,7 @@ public RoutingMessage message() { } /** - * Set the message value. + * Set routing message. * * @param message the message value to set * @return the TestAllRoutesInput object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestAllRoutesResult.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestAllRoutesResult.java index f4cec3d0cac0..30a17703a947 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestAllRoutesResult.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestAllRoutesResult.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager; +import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager; import com.microsoft.azure.management.iothub.v2018_04_01.implementation.TestAllRoutesResultInner; import java.util.List; /** * Type representing TestAllRoutesResult. */ -public interface TestAllRoutesResult extends HasInner, HasManager { +public interface TestAllRoutesResult extends HasInner, HasManager { /** * @return the routes value. */ 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 15fcbbca970e..046d26ab57c0 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 @@ -27,7 +27,7 @@ public class TestRouteInput { private RouteProperties route; /** - * Get the message value. + * Get routing message. * * @return the message value */ @@ -36,7 +36,7 @@ public RoutingMessage message() { } /** - * Set the message value. + * Set routing message. * * @param message the message value to set * @return the TestRouteInput object itself. @@ -47,7 +47,7 @@ public TestRouteInput withMessage(RoutingMessage message) { } /** - * Get the route value. + * Get route properties. * * @return the route value */ @@ -56,7 +56,7 @@ public RouteProperties route() { } /** - * Set the route value. + * Set route properties. * * @param route the route value to set * @return the TestRouteInput object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestRouteResult.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestRouteResult.java index 9d160cb8d1bf..95f2b6a9f999 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestRouteResult.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestRouteResult.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager; +import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager; import com.microsoft.azure.management.iothub.v2018_04_01.implementation.TestRouteResultInner; /** * Type representing TestRouteResult. */ -public interface TestRouteResult extends HasInner, HasManager { +public interface TestRouteResult extends HasInner, HasManager { /** * @return the details value. */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestRouteResultDetails.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestRouteResultDetails.java index 308c292dc6e9..b7ff3345aef7 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestRouteResultDetails.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/TestRouteResultDetails.java @@ -22,7 +22,7 @@ public class TestRouteResultDetails { private List compilationErrors; /** - * Get the compilationErrors value. + * Get jSON-serialized list of route compilation errors. * * @return the compilationErrors value */ @@ -31,7 +31,7 @@ public List compilationErrors() { } /** - * Set the compilationErrors value. + * Set jSON-serialized list of route compilation errors. * * @param compilationErrors the compilationErrors value to set * @return the TestRouteResultDetails object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/UserSubscriptionQuota.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/UserSubscriptionQuota.java index 4a77f4276174..0d1dcee3c538 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/UserSubscriptionQuota.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/UserSubscriptionQuota.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager; +import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager; import com.microsoft.azure.management.iothub.v2018_04_01.implementation.UserSubscriptionQuotaInner; /** * Type representing UserSubscriptionQuota. */ -public interface UserSubscriptionQuota extends HasInner, HasManager { +public interface UserSubscriptionQuota extends HasInner, HasManager { /** * @return the currentValue value. */ @@ -35,7 +35,7 @@ public interface UserSubscriptionQuota extends HasInner implements CertificateDescription, CertificateDescription.Definition, CertificateDescription.Update { - private final IoTHubManager manager; + private final DevicesManager manager; private String resourceGroupName; private String resourceName; private String certificateName; - CertificateDescriptionImpl(String name, IoTHubManager manager) { + CertificateDescriptionImpl(String name, DevicesManager manager) { super(name, new CertificateDescriptionInner()); this.manager = manager; // Set resource name @@ -27,7 +27,7 @@ class CertificateDescriptionImpl extends CreatableUpdatableImpl implements CertificateListDescription { - private final IoTHubManager manager; - CertificateListDescriptionImpl(CertificateListDescriptionInner inner, IoTHubManager manager) { + private final DevicesManager manager; + CertificateListDescriptionImpl(CertificateListDescriptionInner inner, DevicesManager manager) { super(inner); this.manager = manager; } @Override - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificateListDescriptionInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificateListDescriptionInner.java index 6803cfb560c8..14461cf354f3 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificateListDescriptionInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificateListDescriptionInner.java @@ -22,7 +22,7 @@ public class CertificateListDescriptionInner { private List value; /** - * Get the value value. + * Get the array of Certificate objects. * * @return the value value */ @@ -31,7 +31,7 @@ public List value() { } /** - * Set the value value. + * Set the array of Certificate objects. * * @param value the value value to set * @return the CertificateListDescriptionInner object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificateWithNonceDescriptionImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificateWithNonceDescriptionImpl.java index 156ee706805c..793472fe6482 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificateWithNonceDescriptionImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificateWithNonceDescriptionImpl.java @@ -13,14 +13,14 @@ import com.microsoft.azure.management.iothub.v2018_04_01.CertificatePropertiesWithNonce; class CertificateWithNonceDescriptionImpl extends WrapperImpl implements CertificateWithNonceDescription { - private final IoTHubManager manager; - CertificateWithNonceDescriptionImpl(CertificateWithNonceDescriptionInner inner, IoTHubManager manager) { + private final DevicesManager manager; + CertificateWithNonceDescriptionImpl(CertificateWithNonceDescriptionInner inner, DevicesManager manager) { super(inner); this.manager = manager; } @Override - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificateWithNonceDescriptionInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificateWithNonceDescriptionInner.java index a08c6991cc48..132c740f0094 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificateWithNonceDescriptionInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificateWithNonceDescriptionInner.java @@ -49,7 +49,7 @@ public CertificateWithNonceDescriptionInner withProperties(CertificateProperties } /** - * Get the etag value. + * Get the entity tag. * * @return the etag value */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificatesImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificatesImpl.java index ab588db506e0..b286ad181168 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificatesImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificatesImpl.java @@ -19,14 +19,14 @@ import com.microsoft.azure.management.iothub.v2018_04_01.CertificateDescription; class CertificatesImpl extends WrapperImpl implements Certificates { - private final IoTHubManager manager; + private final DevicesManager manager; - CertificatesImpl(IoTHubManager manager) { + CertificatesImpl(DevicesManager manager) { super(manager.inner().certificates()); this.manager = manager; } - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificatesInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificatesInner.java index fd9246b502cf..2ca44554544d 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificatesInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/CertificatesInner.java @@ -12,7 +12,7 @@ import com.google.common.reflect.TypeToken; import com.microsoft.azure.management.iothub.v2018_04_01.CertificateBodyDescription; import com.microsoft.azure.management.iothub.v2018_04_01.CertificateVerificationDescription; -import com.microsoft.azure.management.iothub.v2018_04_01.ErrorDetailsException; +import com.microsoft.azure.management.iothub.v2018_04_01.ErrorDetailsInnerException; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import com.microsoft.rest.ServiceResponse; @@ -90,7 +90,7 @@ interface CertificatesService { * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the CertificateListDescriptionInner object if successful. */ @@ -166,10 +166,10 @@ public Observable> call(Respons }); } - private ServiceResponse listByIotHubDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse listByIotHubDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -181,7 +181,7 @@ private ServiceResponse listByIotHubDelegate(Re * @param resourceName The name of the IoT hub. * @param certificateName The name of the certificate * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the CertificateDescriptionInner object if successful. */ @@ -263,10 +263,10 @@ public Observable> call(Response getDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse getDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -278,7 +278,7 @@ private ServiceResponse getDelegate(Response> call(Response> call(Response createOrUpdateDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse createOrUpdateDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) .register(201, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -481,7 +481,7 @@ private ServiceResponse createOrUpdateDelegate(Resp * @param certificateName The name of the certificate * @param ifMatch ETag of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ public void delete(String resourceGroupName, String resourceName, String certificateName, String ifMatch) { @@ -568,11 +568,11 @@ public Observable> call(Response response) { }); } - private ServiceResponse deleteDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse deleteDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) .register(204, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -585,7 +585,7 @@ private ServiceResponse deleteDelegate(Response response) th * @param certificateName The name of the certificate * @param ifMatch ETag of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the CertificateWithNonceDescriptionInner object if successful. */ @@ -673,10 +673,10 @@ public Observable> call(Re }); } - private ServiceResponse generateVerificationCodeDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse generateVerificationCodeDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -689,7 +689,7 @@ private ServiceResponse generateVerificati * @param certificateName The name of the certificate * @param ifMatch ETag of the Certificate. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the CertificateDescriptionInner object if successful. */ @@ -790,7 +790,7 @@ public Observable> call(Response> call(Response verifyDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse verifyDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/DevicesManager.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/DevicesManager.java new file mode 100644 index 000000000000..e46fb6291ab2 --- /dev/null +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/DevicesManager.java @@ -0,0 +1,135 @@ +/** + * 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.implementation; + +import com.microsoft.azure.AzureEnvironment; +import com.microsoft.azure.AzureResponseBuilder; +import com.microsoft.azure.credentials.AzureTokenCredentials; +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; +import com.microsoft.azure.arm.resources.AzureConfigurable; +import com.microsoft.azure.serializer.AzureJacksonAdapter; +import com.microsoft.rest.RestClient; +import com.microsoft.azure.management.iothub.v2018_04_01.Operations; +import com.microsoft.azure.management.iothub.v2018_04_01.IotHubResources; +import com.microsoft.azure.management.iothub.v2018_04_01.ResourceProviderCommons; +import com.microsoft.azure.management.iothub.v2018_04_01.Certificates; +import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; +import com.microsoft.azure.arm.resources.implementation.ManagerCore; + +/** + * Entry point to Azure Devices resource management. + */ +public final class DevicesManager extends ManagerCore { + private Operations operations; + private IotHubResources iotHubResources; + private ResourceProviderCommons resourceProviderCommons; + private Certificates certificates; + /** + * Get a Configurable instance that can be used to create DevicesManager with optional configuration. + * + * @return the instance allowing configurations + */ + public static Configurable configure() { + return new DevicesManager.ConfigurableImpl(); + } + /** + * Creates an instance of DevicesManager that exposes Devices resource management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the DevicesManager + */ + public static DevicesManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return new DevicesManager(new RestClient.Builder() + .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) + .withCredentials(credentials) + .withSerializerAdapter(new AzureJacksonAdapter()) + .withResponseBuilderFactory(new AzureResponseBuilder.Factory()) + .build(), subscriptionId); + } + /** + * Creates an instance of DevicesManager that exposes Devices resource management API entry points. + * + * @param restClient the RestClient to be used for API calls. + * @param subscriptionId the subscription UUID + * @return the DevicesManager + */ + public static DevicesManager authenticate(RestClient restClient, String subscriptionId) { + return new DevicesManager(restClient, subscriptionId); + } + /** + * The interface allowing configurations to be set. + */ + public interface Configurable extends AzureConfigurable { + /** + * Creates an instance of DevicesManager that exposes Devices management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the interface exposing Devices management API entry points that work across subscriptions + */ + DevicesManager authenticate(AzureTokenCredentials credentials, String subscriptionId); + } + + /** + * @return Entry point to manage Operations. + */ + public Operations operations() { + if (this.operations == null) { + this.operations = new OperationsImpl(this); + } + return this.operations; + } + + /** + * @return Entry point to manage IotHubResources. + */ + public IotHubResources iotHubResources() { + if (this.iotHubResources == null) { + this.iotHubResources = new IotHubResourcesImpl(this); + } + return this.iotHubResources; + } + + /** + * @return Entry point to manage ResourceProviderCommons. + */ + public ResourceProviderCommons resourceProviderCommons() { + if (this.resourceProviderCommons == null) { + this.resourceProviderCommons = new ResourceProviderCommonsImpl(this); + } + return this.resourceProviderCommons; + } + + /** + * @return Entry point to manage Certificates. + */ + public Certificates certificates() { + if (this.certificates == null) { + this.certificates = new CertificatesImpl(this); + } + return this.certificates; + } + + /** + * The implementation for Configurable interface. + */ + private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable { + public DevicesManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return DevicesManager.authenticate(buildRestClient(credentials), subscriptionId); + } + } + private DevicesManager(RestClient restClient, String subscriptionId) { + super( + restClient, + subscriptionId, + new IotHubClientImpl(restClient).withSubscriptionId(subscriptionId)); + } +} diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/EndpointHealthDataImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/EndpointHealthDataImpl.java index 3589b2bccf64..9dbb2510b52c 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/EndpointHealthDataImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/EndpointHealthDataImpl.java @@ -13,14 +13,14 @@ import com.microsoft.azure.management.iothub.v2018_04_01.EndpointHealthStatus; class EndpointHealthDataImpl extends WrapperImpl implements EndpointHealthData { - private final IoTHubManager manager; - EndpointHealthDataImpl(EndpointHealthDataInner inner, IoTHubManager manager) { + private final DevicesManager manager; + EndpointHealthDataImpl(EndpointHealthDataInner inner, DevicesManager manager) { super(inner); this.manager = manager; } @Override - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/EndpointHealthDataInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/EndpointHealthDataInner.java index 67025b765799..56d3c577b471 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/EndpointHealthDataInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/EndpointHealthDataInner.java @@ -29,7 +29,7 @@ public class EndpointHealthDataInner { private EndpointHealthStatus healthStatus; /** - * Get the endpointId value. + * Get id of the endpoint. * * @return the endpointId value */ @@ -38,7 +38,7 @@ public String endpointId() { } /** - * Set the endpointId value. + * Set id of the endpoint. * * @param endpointId the endpointId value to set * @return the EndpointHealthDataInner object itself. @@ -49,7 +49,7 @@ public EndpointHealthDataInner withEndpointId(String endpointId) { } /** - * Get the healthStatus value. + * Get health status. Possible values include: 'unknown', 'healthy', 'unhealthy', 'dead'. * * @return the healthStatus value */ @@ -58,7 +58,7 @@ public EndpointHealthStatus healthStatus() { } /** - * Set the healthStatus value. + * Set health status. Possible values include: 'unknown', 'healthy', 'unhealthy', 'dead'. * * @param healthStatus the healthStatus value to set * @return the EndpointHealthDataInner object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/ErrorDetailsInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/ErrorDetailsInner.java new file mode 100644 index 000000000000..8bd5f28f45ee --- /dev/null +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/ErrorDetailsInner.java @@ -0,0 +1,77 @@ +/** + * 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.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Error details. + */ +public class ErrorDetailsInner { + /** + * The error code. + */ + @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) + private String code; + + /** + * The HTTP status code. + */ + @JsonProperty(value = "httpStatusCode", access = JsonProperty.Access.WRITE_ONLY) + private String httpStatusCode; + + /** + * The error message. + */ + @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) + private String message; + + /** + * The error details. + */ + @JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY) + private String details; + + /** + * Get the error code. + * + * @return the code value + */ + public String code() { + return this.code; + } + + /** + * Get the HTTP status code. + * + * @return the httpStatusCode value + */ + public String httpStatusCode() { + return this.httpStatusCode; + } + + /** + * Get the error message. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Get the error details. + * + * @return the details value + */ + public String details() { + return this.details; + } + +} diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/ErrorDetailsInnerException.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/ErrorDetailsInnerException.java new file mode 100644 index 000000000000..9148cf6ab4b8 --- /dev/null +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/ErrorDetailsInnerException.java @@ -0,0 +1,44 @@ +/** + * 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.implementation; + +import com.microsoft.rest.RestException; +import okhttp3.ResponseBody; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with ErrorDetailsInner information. + */ +public class ErrorDetailsInnerException extends RestException { + /** + * Initializes a new instance of the ErrorDetailsInnerException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + */ + public ErrorDetailsInnerException(final String message, final Response response) { + super(message, response); + } + + /** + * Initializes a new instance of the ErrorDetailsInnerException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + * @param body the deserialized response body + */ + public ErrorDetailsInnerException(final String message, final Response response, final ErrorDetailsInner body) { + super(message, response, body); + } + + @Override + public ErrorDetailsInner body() { + return (ErrorDetailsInner) super.body(); + } +} diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/EventHubConsumerGroupInfoImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/EventHubConsumerGroupInfoImpl.java index 1e558c1ca905..ba035c00eaa0 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/EventHubConsumerGroupInfoImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/EventHubConsumerGroupInfoImpl.java @@ -14,13 +14,13 @@ import java.util.Map; class EventHubConsumerGroupInfoImpl extends CreatableUpdatableImpl implements EventHubConsumerGroupInfo, EventHubConsumerGroupInfo.Definition, EventHubConsumerGroupInfo.Update { - private final IoTHubManager manager; + private final DevicesManager manager; private String resourceGroupName; private String resourceName; private String eventHubEndpointName; private String name; - EventHubConsumerGroupInfoImpl(String name, IoTHubManager manager) { + EventHubConsumerGroupInfoImpl(String name, DevicesManager manager) { super(name, new EventHubConsumerGroupInfoInner()); this.manager = manager; // Set resource name @@ -28,7 +28,7 @@ class EventHubConsumerGroupInfoImpl extends CreatableUpdatableImpl properties() { } /** - * Set the properties value. + * Set the tags. * * @param properties the properties value to set * @return the EventHubConsumerGroupInfoInner object itself. @@ -49,7 +49,7 @@ public EventHubConsumerGroupInfoInner withProperties(Map propert } /** - * Get the etag value. + * Get the etag. * * @return the etag value */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubDescriptionImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubDescriptionImpl.java index 0cb4420264f1..ebb3aa85d4ff 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubDescriptionImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubDescriptionImpl.java @@ -14,8 +14,8 @@ import com.microsoft.azure.management.iothub.v2018_04_01.IotHubProperties; import com.microsoft.azure.management.iothub.v2018_04_01.IotHubSkuInfo; -class IotHubDescriptionImpl extends GroupableResourceCoreImpl implements IotHubDescription, IotHubDescription.Definition, IotHubDescription.Update { - IotHubDescriptionImpl(String name, IotHubDescriptionInner inner, IoTHubManager manager) { +class IotHubDescriptionImpl extends GroupableResourceCoreImpl implements IotHubDescription, IotHubDescription.Definition, IotHubDescription.Update { + IotHubDescriptionImpl(String name, IotHubDescriptionInner inner, DevicesManager manager) { super(name, inner, manager); } @@ -29,7 +29,7 @@ public Observable createResourceAsync() { @Override public Observable updateResourceAsync() { IotHubResourcesInner client = this.manager().inner().iotHubResources(); - return client.updateAsync(this.resourceGroupName(), this.name()) + return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner()) .map(innerToFluentMap(this)); } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubDescriptionInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubDescriptionInner.java index d28eed61e146..6a50a5232c41 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubDescriptionInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubDescriptionInner.java @@ -38,7 +38,7 @@ public class IotHubDescriptionInner extends Resource { private IotHubSkuInfo sku; /** - * Get the etag value. + * Get the Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. * * @return the etag value */ @@ -47,7 +47,7 @@ public String etag() { } /** - * Set the etag value. + * Set the Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. * * @param etag the etag value to set * @return the IotHubDescriptionInner object itself. @@ -58,7 +58,7 @@ public IotHubDescriptionInner withEtag(String etag) { } /** - * Get the properties value. + * Get iotHub properties. * * @return the properties value */ @@ -67,7 +67,7 @@ public IotHubProperties properties() { } /** - * Set the properties value. + * Set iotHub properties. * * @param properties the properties value to set * @return the IotHubDescriptionInner object itself. @@ -78,7 +78,7 @@ public IotHubDescriptionInner withProperties(IotHubProperties properties) { } /** - * Get the sku value. + * Get iotHub SKU info. * * @return the sku value */ @@ -87,7 +87,7 @@ public IotHubSkuInfo sku() { } /** - * Set the sku value. + * Set iotHub SKU info. * * @param sku the sku value to set * @return the IotHubDescriptionInner object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubNameAvailabilityInfoImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubNameAvailabilityInfoImpl.java index 9e828a536da5..1aef9eedfe8e 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubNameAvailabilityInfoImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubNameAvailabilityInfoImpl.java @@ -13,14 +13,14 @@ import com.microsoft.azure.management.iothub.v2018_04_01.IotHubNameUnavailabilityReason; class IotHubNameAvailabilityInfoImpl extends WrapperImpl implements IotHubNameAvailabilityInfo { - private final IoTHubManager manager; - IotHubNameAvailabilityInfoImpl(IotHubNameAvailabilityInfoInner inner, IoTHubManager manager) { + private final DevicesManager manager; + IotHubNameAvailabilityInfoImpl(IotHubNameAvailabilityInfoInner inner, DevicesManager manager) { super(inner); this.manager = manager; } @Override - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubNameAvailabilityInfoInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubNameAvailabilityInfoInner.java index 1552cd89916c..9d83bdcbcbef 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubNameAvailabilityInfoInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubNameAvailabilityInfoInner.java @@ -35,7 +35,7 @@ public class IotHubNameAvailabilityInfoInner { private String message; /** - * Get the nameAvailable value. + * Get the value which indicates whether the provided name is available. * * @return the nameAvailable value */ @@ -44,7 +44,7 @@ public Boolean nameAvailable() { } /** - * Get the reason value. + * Get the reason for unavailability. Possible values include: 'Invalid', 'AlreadyExists'. * * @return the reason value */ @@ -53,7 +53,7 @@ public IotHubNameUnavailabilityReason reason() { } /** - * Get the message value. + * Get the detailed reason message. * * @return the message value */ @@ -62,7 +62,7 @@ public String message() { } /** - * Set the message value. + * Set the detailed reason message. * * @param message the message value to set * @return the IotHubNameAvailabilityInfoInner object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubQuotaMetricInfoImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubQuotaMetricInfoImpl.java index 1d5f6442ce23..7f359aeed96e 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubQuotaMetricInfoImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubQuotaMetricInfoImpl.java @@ -13,15 +13,15 @@ import rx.Observable; class IotHubQuotaMetricInfoImpl extends WrapperImpl implements IotHubQuotaMetricInfo { - private final IoTHubManager manager; + private final DevicesManager manager; - IotHubQuotaMetricInfoImpl(IotHubQuotaMetricInfoInner inner, IoTHubManager manager) { + IotHubQuotaMetricInfoImpl(IotHubQuotaMetricInfoInner inner, DevicesManager manager) { super(inner); this.manager = manager; } @Override - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubQuotaMetricInfoInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubQuotaMetricInfoInner.java index be1cb5eb082c..e0301250f4a0 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubQuotaMetricInfoInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubQuotaMetricInfoInner.java @@ -33,7 +33,7 @@ public class IotHubQuotaMetricInfoInner { private Long maxValue; /** - * Get the name value. + * Get the name of the quota metric. * * @return the name value */ @@ -42,7 +42,7 @@ public String name() { } /** - * Get the currentValue value. + * Get the current value for the quota metric. * * @return the currentValue value */ @@ -51,7 +51,7 @@ public Long currentValue() { } /** - * Get the maxValue value. + * Get the maximum value of the quota metric. * * @return the maxValue value */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubResourcesImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubResourcesImpl.java index c66d2360a4f8..0b9993e45c62 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubResourcesImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubResourcesImpl.java @@ -32,14 +32,14 @@ import com.microsoft.azure.management.iothub.v2018_04_01.TestRouteInput; class IotHubResourcesImpl extends WrapperImpl implements IotHubResources { - private final IoTHubManager manager; + private final DevicesManager manager; - IotHubResourcesImpl(IoTHubManager manager) { + IotHubResourcesImpl(DevicesManager manager) { super(manager.inner().iotHubResources()); this.manager = manager; } - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } @@ -61,23 +61,23 @@ private EventHubConsumerGroupInfoImpl wrapConsumerGroupModel(String name) { return new EventHubConsumerGroupInfoImpl(name, this.manager()); } - private IotHubDescriptionImpl wrapModel(IotHubDescriptionInner inner) { + private IotHubDescriptionImpl wrapIotHubDescriptionModel(IotHubDescriptionInner inner) { return new IotHubDescriptionImpl(inner.name(), inner, manager()); } - private IotHubSkuDescriptionImpl wrapModel(IotHubSkuDescriptionInner inner) { + private IotHubSkuDescriptionImpl wrapIotHubSkuDescriptionModel(IotHubSkuDescriptionInner inner) { return new IotHubSkuDescriptionImpl(inner, manager()); } - private EventHubConsumerGroupInfoImpl wrapModel(EventHubConsumerGroupInfoInner inner) { + private EventHubConsumerGroupInfoImpl wrapEventHubConsumerGroupInfoModel(EventHubConsumerGroupInfoInner inner) { return new EventHubConsumerGroupInfoImpl(inner, manager()); } - private JobResponseImpl wrapModel(JobResponseInner inner) { + private JobResponseImpl wrapJobResponseModel(JobResponseInner inner) { return new JobResponseImpl(inner, manager()); } - private IotHubQuotaMetricInfoImpl wrapModel(IotHubQuotaMetricInfoInner inner) { + private IotHubQuotaMetricInfoImpl wrapIotHubQuotaMetricInfoModel(IotHubQuotaMetricInfoInner inner) { return new IotHubQuotaMetricInfoImpl(inner, manager()); } @@ -86,88 +86,67 @@ private Observable getIotHubDescriptionInnerUsingIotHubR return client.getByResourceGroupAsync(resourceGroupName, name); } + private Observable getEventHubConsumerGroupInfoInnerUsingIotHubResourcesInnerAsync(String id) { + String resourceGroupName = IdParsingUtils.getValueFromIdByName(id, "resourceGroups"); + String resourceName = IdParsingUtils.getValueFromIdByName(id, "IotHubs"); + String eventHubEndpointName = IdParsingUtils.getValueFromIdByName(id, "eventHubEndpoints"); + String name = IdParsingUtils.getValueFromIdByName(id, "ConsumerGroups"); + IotHubResourcesInner client = this.inner(); + return client.getEventHubConsumerGroupAsync(resourceGroupName, resourceName, eventHubEndpointName, name); + } + + private Observable getJobResponseInnerUsingIotHubResourcesInnerAsync(String id) { + String resourceGroupName = IdParsingUtils.getValueFromIdByName(id, "resourceGroups"); + String resourceName = IdParsingUtils.getValueFromIdByName(id, "IotHubs"); + String jobId = IdParsingUtils.getValueFromIdByName(id, "jobs"); + IotHubResourcesInner client = this.inner(); + return client.getJobAsync(resourceGroupName, resourceName, jobId); + } + @Override public Observable getByResourceGroupAsync(String resourceGroupName, String name) { return this.getIotHubDescriptionInnerUsingIotHubResourcesInnerAsync(resourceGroupName, name).map(new Func1 () { @Override public IotHubDescription call(IotHubDescriptionInner inner) { - return wrapModel(inner); + return wrapIotHubDescriptionModel(inner); } }); } - private Observable> listByResourceGroupNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - IotHubResourcesInner client = this.inner(); - return client.listByResourceGroupNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByResourceGroupNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listByResourceGroupAsync(String resourceGroupName) { IotHubResourcesInner client = this.inner(); return client.listByResourceGroupAsync(resourceGroupName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByResourceGroupNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public IotHubDescription call(IotHubDescriptionInner inner) { - return wrapModel(inner); - } - }); - } - - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - IotHubResourcesInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); + return wrapIotHubDescriptionModel(inner); } }); } + @Override public Observable listAsync() { IotHubResourcesInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public IotHubDescription call(IotHubDescriptionInner inner) { - return wrapModel(inner); + return wrapIotHubDescriptionModel(inner); } - }); + }); } @Override @@ -175,78 +154,40 @@ public Completable deleteAsync(String resourceGroupName, String name) { return this.inner().deleteAsync(resourceGroupName, name).toCompletable(); } - private Observable> getEndpointHealthNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - IotHubResourcesInner client = this.inner(); - return client.getEndpointHealthNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(getEndpointHealthNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable getEndpointHealthAsync(final String resourceGroupName, final String iotHubName) { IotHubResourcesInner client = this.inner(); return client.getEndpointHealthAsync(resourceGroupName, iotHubName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return getEndpointHealthNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public EndpointHealthData call(EndpointHealthDataInner inner) { return new EndpointHealthDataImpl(inner, manager()); } - }); - } - - private Observable> listKeysNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - IotHubResourcesInner client = this.inner(); - return client.listKeysNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listKeysNextInnerPageAsync(page.nextPageLink())); - } }); } + @Override public Observable listKeysAsync(final String resourceGroupName, final String resourceName) { IotHubResourcesInner client = this.inner(); return client.listKeysAsync(resourceGroupName, resourceName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listKeysNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public SharedAccessSignatureAuthorizationRule call(SharedAccessSignatureAuthorizationRuleInner inner) { return new SharedAccessSignatureAuthorizationRuleImpl(inner, manager()); } - }); + }); } @Override @@ -297,41 +238,22 @@ public RegistryStatistics call(RegistryStatisticsInner inner) { }); } - private Observable> getValidSkusNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - IotHubResourcesInner client = this.inner(); - return client.getValidSkusNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(getValidSkusNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable getValidSkusAsync(final String resourceGroupName, final String resourceName) { IotHubResourcesInner client = this.inner(); return client.getValidSkusAsync(resourceGroupName, resourceName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return getValidSkusNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public IotHubSkuDescription call(IotHubSkuDescriptionInner inner) { - return wrapModel(inner); + return wrapIotHubSkuDescriptionModel(inner); } - }); + }); } @Override @@ -341,46 +263,27 @@ public Observable getEventHubConsumerGroupAsync(Strin .map(new Func1() { @Override public EventHubConsumerGroupInfo call(EventHubConsumerGroupInfoInner inner) { - return wrapModel(inner); + return wrapEventHubConsumerGroupInfoModel(inner); } }); } - private Observable> listEventHubConsumerGroupsNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - IotHubResourcesInner client = this.inner(); - return client.listEventHubConsumerGroupsNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listEventHubConsumerGroupsNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listEventHubConsumerGroupsAsync(final String resourceGroupName, final String resourceName, final String eventHubEndpointName) { IotHubResourcesInner client = this.inner(); return client.listEventHubConsumerGroupsAsync(resourceGroupName, resourceName, eventHubEndpointName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listEventHubConsumerGroupsNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public EventHubConsumerGroupInfo call(EventHubConsumerGroupInfoInner inner) { - return wrapModel(inner); + return wrapEventHubConsumerGroupInfoModel(inner); } - }); + }); } @Override @@ -396,83 +299,45 @@ public Observable getJobAsync(String resourceGroupName, String reso .map(new Func1() { @Override public JobResponse call(JobResponseInner inner) { - return wrapModel(inner); + return wrapJobResponseModel(inner); } }); } - private Observable> listJobsNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - IotHubResourcesInner client = this.inner(); - return client.listJobsNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listJobsNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listJobsAsync(final String resourceGroupName, final String resourceName) { IotHubResourcesInner client = this.inner(); return client.listJobsAsync(resourceGroupName, resourceName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listJobsNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public JobResponse call(JobResponseInner inner) { - return wrapModel(inner); - } - }); - } - - private Observable> getQuotaMetricsNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - IotHubResourcesInner client = this.inner(); - return client.getQuotaMetricsNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(getQuotaMetricsNextInnerPageAsync(page.nextPageLink())); + return wrapJobResponseModel(inner); } }); } + @Override public Observable getQuotaMetricsAsync(final String resourceGroupName, final String resourceName) { IotHubResourcesInner client = this.inner(); return client.getQuotaMetricsAsync(resourceGroupName, resourceName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return getQuotaMetricsNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public IotHubQuotaMetricInfo call(IotHubQuotaMetricInfoInner inner) { - return wrapModel(inner); + return wrapIotHubQuotaMetricInfoModel(inner); } - }); + }); } @Override diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubResourcesInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubResourcesInner.java index 9e8069e57ee0..7c5fb909174d 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubResourcesInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubResourcesInner.java @@ -16,8 +16,7 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.management.iothub.v2018_04_01.ErrorDetails; -import com.microsoft.azure.management.iothub.v2018_04_01.ErrorDetailsException; +import com.microsoft.azure.management.iothub.v2018_04_01.ErrorDetailsInnerException; import com.microsoft.azure.management.iothub.v2018_04_01.ExportDevicesRequest; import com.microsoft.azure.management.iothub.v2018_04_01.ImportDevicesRequest; import com.microsoft.azure.management.iothub.v2018_04_01.OperationInputs; @@ -220,7 +219,7 @@ interface IotHubResourcesService { * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the IotHubDescriptionInner object if successful. */ @@ -296,10 +295,10 @@ public Observable> call(Response getByResourceGroupDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse getByResourceGroupDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -311,7 +310,7 @@ private ServiceResponse getByResourceGroupDelegate(Respo * @param resourceName The name of the IoT hub. * @param iotHubDescription The IoT hub metadata and security metadata. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the IotHubDescriptionInner object if successful. */ @@ -393,7 +392,7 @@ public Observable> createOrUpdateWithSer * @param iotHubDescription The IoT hub metadata and security metadata. * @param ifMatch ETag of the IoT Hub. Do not specify for creating a brand new IoT Hub. Required to update an existing IoT Hub. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the IotHubDescriptionInner object if successful. */ @@ -477,7 +476,7 @@ public Observable> createOrUpdateWithSer * @param resourceName The name of the IoT hub. * @param iotHubDescription The IoT hub metadata and security metadata. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the IotHubDescriptionInner object if successful. */ @@ -570,7 +569,7 @@ public Observable> call(Response> call(Response beginCreateOrUpdateDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse beginCreateOrUpdateDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) .register(201, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -1009,7 +1008,7 @@ private ServiceResponse beginUpdateDelegate(Response> deleteWithServiceResponseAsync(String * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the Object object if successful. */ @@ -1158,13 +1157,13 @@ public Observable> call(Response response) }); } - private ServiceResponse beginDeleteDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) .register(202, new TypeToken() { }.getType()) .register(204, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .register(404, new TypeToken() { }.getType()) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -1173,7 +1172,7 @@ private ServiceResponse beginDeleteDelegate(Response respo * Get all the IoT hubs in a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<IotHubDescriptionInner> object if successful. */ @@ -1273,10 +1272,10 @@ public Observable>> call(Response> listDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> listDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -1286,7 +1285,7 @@ private ServiceResponse> listDelegate(Response< * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<IotHubDescriptionInner> object if successful. */ @@ -1393,10 +1392,10 @@ public Observable>> call(Response> listByResourceGroupDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> listByResourceGroupDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -1407,7 +1406,7 @@ private ServiceResponse> listByResourceGroupDel * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the RegistryStatisticsInner object if successful. */ @@ -1483,10 +1482,10 @@ public Observable> call(Response getStatsDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse getStatsDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -1497,7 +1496,7 @@ private ServiceResponse getStatsDelegate(Response>> call(Respons }); } - private ServiceResponse> getValidSkusDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> getValidSkusDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -1626,7 +1625,7 @@ private ServiceResponse> getValidSkusDelegat * @param resourceName The name of the IoT hub. * @param eventHubEndpointName The name of the Event Hub-compatible endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<EventHubConsumerGroupInfoInner> object if successful. */ @@ -1747,10 +1746,10 @@ public Observable>> call(Re }); } - private ServiceResponse> listEventHubConsumerGroupsDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> listEventHubConsumerGroupsDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -1763,7 +1762,7 @@ private ServiceResponse> listEventHubCo * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the EventHubConsumerGroupInfoInner object if successful. */ @@ -1851,10 +1850,10 @@ public Observable> call(Response }); } - private ServiceResponse getEventHubConsumerGroupDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse getEventHubConsumerGroupDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -1867,7 +1866,7 @@ private ServiceResponse getEventHubConsumerGroup * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to add. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the EventHubConsumerGroupInfoInner object if successful. */ @@ -1955,10 +1954,10 @@ public Observable> call(Response }); } - private ServiceResponse createEventHubConsumerGroupDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse createEventHubConsumerGroupDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -1971,7 +1970,7 @@ private ServiceResponse createEventHubConsumerGr * @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub. * @param name The name of the consumer group to delete. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ public void deleteEventHubConsumerGroup(String resourceGroupName, String resourceName, String eventHubEndpointName, String name) { @@ -2058,10 +2057,10 @@ public Observable> call(Response response) { }); } - private ServiceResponse deleteEventHubConsumerGroupDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse deleteEventHubConsumerGroupDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -2072,7 +2071,7 @@ private ServiceResponse deleteEventHubConsumerGroupDelegate(Response>> call(Response> listJobsDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> listJobsDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -2201,7 +2200,7 @@ private ServiceResponse> listJobsDelegate(Response> call(Response }); } - private ServiceResponse getJobDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse getJobDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -2297,7 +2296,7 @@ private ServiceResponse getJobDelegate(Response * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<IotHubQuotaMetricInfoInner> object if successful. */ @@ -2411,10 +2410,10 @@ public Observable>> call(Respon }); } - private ServiceResponse> getQuotaMetricsDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> getQuotaMetricsDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -2425,7 +2424,7 @@ private ServiceResponse> getQuotaMetricsDel * @param resourceGroupName the String value * @param iotHubName the String value * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<EndpointHealthDataInner> object if successful. */ @@ -2539,10 +2538,10 @@ public Observable>> call(Response< }); } - private ServiceResponse> getEndpointHealthDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> getEndpointHealthDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -2552,7 +2551,7 @@ private ServiceResponse> getEndpointHealthDele * * @param name The name of the IoT hub to check. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the IotHubNameAvailabilityInfoInner object if successful. */ @@ -2624,10 +2623,10 @@ public Observable> call(Respons }); } - private ServiceResponse checkNameAvailabilityDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse checkNameAvailabilityDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -2639,7 +2638,7 @@ private ServiceResponse checkNameAvailabilityDe * @param resourceGroupName resource group which Iot Hub belongs to * @param input Input for testing all routes * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the TestAllRoutesResultInner object if successful. */ @@ -2722,10 +2721,10 @@ public Observable> call(Response testAllRoutesDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse testAllRoutesDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -2737,7 +2736,7 @@ private ServiceResponse testAllRoutesDelegate(Response * @param resourceGroupName resource group which Iot Hub belongs to * @param input Route that needs to be tested * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the TestRouteResultInner object if successful. */ @@ -2820,10 +2819,10 @@ public Observable> call(Response testRouteDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse testRouteDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -2834,7 +2833,7 @@ private ServiceResponse testRouteDelegate(Response> listKeysDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> listKeysDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -2963,7 +2962,7 @@ private ServiceResponse> l * @param resourceName The name of the IoT hub. * @param keyName The name of the shared access policy. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the SharedAccessSignatureAuthorizationRuleInner object if successful. */ @@ -3045,10 +3044,10 @@ public Observable> }); } - private ServiceResponse getKeysForKeyNameDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse getKeysForKeyNameDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -3060,7 +3059,7 @@ private ServiceResponse getKeysForK * @param resourceName The name of the IoT hub. * @param exportDevicesParameters The parameters that specify the export devices operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the JobResponseInner object if successful. */ @@ -3143,10 +3142,10 @@ public Observable> call(Response }); } - private ServiceResponse exportDevicesDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse exportDevicesDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -3158,7 +3157,7 @@ private ServiceResponse exportDevicesDelegate(Response> call(Response }); } - private ServiceResponse importDevicesDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse importDevicesDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -3254,7 +3253,7 @@ private ServiceResponse importDevicesDelegate(Response>> call(Response> listNextDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> listNextDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -3370,7 +3369,7 @@ private ServiceResponse> listNextDelegate(Respo * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<IotHubDescriptionInner> object if successful. */ @@ -3473,10 +3472,10 @@ public Observable>> call(Response> listByResourceGroupNextDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -3486,7 +3485,7 @@ private ServiceResponse> listByResourceGroupNex * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<IotHubSkuDescriptionInner> object if successful. */ @@ -3589,10 +3588,10 @@ public Observable>> call(Respons }); } - private ServiceResponse> getValidSkusNextDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> getValidSkusNextDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -3602,7 +3601,7 @@ private ServiceResponse> getValidSkusNextDel * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<EventHubConsumerGroupInfoInner> object if successful. */ @@ -3705,10 +3704,10 @@ public Observable>> call(Re }); } - private ServiceResponse> listEventHubConsumerGroupsNextDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> listEventHubConsumerGroupsNextDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -3718,7 +3717,7 @@ private ServiceResponse> listEventHubCo * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<JobResponseInner> object if successful. */ @@ -3821,10 +3820,10 @@ public Observable>> call(Response> listJobsNextDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> listJobsNextDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -3834,7 +3833,7 @@ private ServiceResponse> listJobsNextDelegate(Respons * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<IotHubQuotaMetricInfoInner> object if successful. */ @@ -3937,10 +3936,10 @@ public Observable>> call(Respon }); } - private ServiceResponse> getQuotaMetricsNextDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> getQuotaMetricsNextDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -3950,7 +3949,7 @@ private ServiceResponse> getQuotaMetricsNex * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<EndpointHealthDataInner> object if successful. */ @@ -4053,10 +4052,10 @@ public Observable>> call(Response< }); } - private ServiceResponse> getEndpointHealthNextDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> getEndpointHealthNextDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -4066,7 +4065,7 @@ private ServiceResponse> getEndpointHealthNext * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<SharedAccessSignatureAuthorizationRuleInner> object if successful. */ @@ -4169,10 +4168,10 @@ public Observable> listKeysNextDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> listKeysNextDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubSkuDescriptionImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubSkuDescriptionImpl.java index 4bc36ed277ac..c82434f19beb 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubSkuDescriptionImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubSkuDescriptionImpl.java @@ -15,15 +15,15 @@ import com.microsoft.azure.management.iothub.v2018_04_01.IotHubSkuInfo; class IotHubSkuDescriptionImpl extends WrapperImpl implements IotHubSkuDescription { - private final IoTHubManager manager; + private final DevicesManager manager; - IotHubSkuDescriptionImpl(IotHubSkuDescriptionInner inner, IoTHubManager manager) { + IotHubSkuDescriptionImpl(IotHubSkuDescriptionInner inner, DevicesManager manager) { super(inner); this.manager = manager; } @Override - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubSkuDescriptionInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubSkuDescriptionInner.java index 3dbe5b8b6c4a..9883545d3146 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubSkuDescriptionInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubSkuDescriptionInner.java @@ -35,7 +35,7 @@ public class IotHubSkuDescriptionInner { private IotHubCapacity capacity; /** - * Get the resourceType value. + * Get the type of the resource. * * @return the resourceType value */ @@ -44,7 +44,7 @@ public String resourceType() { } /** - * Get the sku value. + * Get the type of the resource. * * @return the sku value */ @@ -53,7 +53,7 @@ public IotHubSkuInfo sku() { } /** - * Set the sku value. + * Set the type of the resource. * * @param sku the sku value to set * @return the IotHubSkuDescriptionInner object itself. @@ -64,7 +64,7 @@ public IotHubSkuDescriptionInner withSku(IotHubSkuInfo sku) { } /** - * Get the capacity value. + * Get iotHub capacity. * * @return the capacity value */ @@ -73,7 +73,7 @@ public IotHubCapacity capacity() { } /** - * Set the capacity value. + * Set iotHub capacity. * * @param capacity the capacity value to set * @return the IotHubSkuDescriptionInner object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/JobResponseImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/JobResponseImpl.java index 33a9cc7ce36b..529ba7d622b0 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/JobResponseImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/JobResponseImpl.java @@ -17,18 +17,18 @@ import com.microsoft.azure.management.iothub.v2018_04_01.JobType; class JobResponseImpl extends WrapperImpl implements JobResponse { - private final IoTHubManager manager; + private final DevicesManager manager; private String resourceGroupName; private String resourceName; private String jobId; - JobResponseImpl(JobResponseInner inner, IoTHubManager manager) { + JobResponseImpl(JobResponseInner inner, DevicesManager manager) { super(inner); this.manager = manager; } @Override - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/JobResponseInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/JobResponseInner.java index d0056e352738..bbf5d093041f 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/JobResponseInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/JobResponseInner.java @@ -71,7 +71,7 @@ public class JobResponseInner { private String parentJobId; /** - * Get the jobId value. + * Get the job identifier. * * @return the jobId value */ @@ -80,7 +80,7 @@ public String jobId() { } /** - * Get the startTimeUtc value. + * Get the start time of the job. * * @return the startTimeUtc value */ @@ -92,7 +92,7 @@ public DateTime startTimeUtc() { } /** - * Get the endTimeUtc value. + * Get the time the job stopped processing. * * @return the endTimeUtc value */ @@ -104,7 +104,7 @@ public DateTime endTimeUtc() { } /** - * Get the type value. + * Get the type of the job. Possible values include: 'unknown', 'export', 'import', 'backup', 'readDeviceProperties', 'writeDeviceProperties', 'updateDeviceConfiguration', 'rebootDevice', 'factoryResetDevice', 'firmwareUpdate'. * * @return the type value */ @@ -113,7 +113,7 @@ public JobType type() { } /** - * Get the status value. + * Get the status of the job. Possible values include: 'unknown', 'enqueued', 'running', 'completed', 'failed', 'cancelled'. * * @return the status value */ @@ -122,7 +122,7 @@ public JobStatus status() { } /** - * Get the failureReason value. + * Get if status == failed, this string containing the reason for the failure. * * @return the failureReason value */ @@ -131,7 +131,7 @@ public String failureReason() { } /** - * Get the statusMessage value. + * Get the status message for the job. * * @return the statusMessage value */ @@ -140,7 +140,7 @@ public String statusMessage() { } /** - * Get the parentJobId value. + * Get the job identifier of the parent job, if any. * * @return the parentJobId value */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/OperationImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/OperationImpl.java index d7c51d5dda4d..df9e7c8202bb 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/OperationImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/OperationImpl.java @@ -13,14 +13,14 @@ import com.microsoft.azure.management.iothub.v2018_04_01.OperationDisplay; class OperationImpl extends WrapperImpl implements Operation { - private final IoTHubManager manager; - OperationImpl(OperationInner inner, IoTHubManager manager) { + private final DevicesManager manager; + OperationImpl(OperationInner inner, DevicesManager manager) { super(inner); this.manager = manager; } @Override - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/OperationInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/OperationInner.java index 377c18a0d0a3..7f8d0e31755f 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/OperationInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/OperationInner.java @@ -28,7 +28,7 @@ public class OperationInner { private OperationDisplay display; /** - * Get the name value. + * Get operation name: {provider}/{resource}/{read | write | action | delete}. * * @return the name value */ @@ -37,7 +37,7 @@ public String name() { } /** - * Get the display value. + * Get the object that represents the operation. * * @return the display value */ @@ -46,7 +46,7 @@ public OperationDisplay display() { } /** - * Set the display value. + * Set the object that represents the operation. * * @param display the display value to set * @return the OperationInner object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/OperationsImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/OperationsImpl.java index 897a29126ce3..f807aacc1ad2 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/OperationsImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/OperationsImpl.java @@ -17,52 +17,33 @@ import com.microsoft.azure.management.iothub.v2018_04_01.Operation; class OperationsImpl extends WrapperImpl implements Operations { - private final IoTHubManager manager; + private final DevicesManager manager; - OperationsImpl(IoTHubManager manager) { + OperationsImpl(DevicesManager manager) { super(manager.inner().operations()); this.manager = manager; } - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - OperationsInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listAsync() { OperationsInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Operation call(OperationInner inner) { return new OperationImpl(inner, manager()); } - }); + }); } } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/OperationsInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/OperationsInner.java index e025bc72730f..bf7cb1c909a8 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/OperationsInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/OperationsInner.java @@ -12,7 +12,7 @@ import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.management.iothub.v2018_04_01.ErrorDetailsException; +import com.microsoft.azure.management.iothub.v2018_04_01.ErrorDetailsInnerException; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceFuture; @@ -69,7 +69,7 @@ interface OperationsService { * Lists all of the available IoT Hub REST API operations. * * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorDetailsException thrown if the request is rejected by server + * @throws ErrorDetailsInnerException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<OperationInner> object if successful. */ @@ -162,10 +162,10 @@ public Observable>> call(Response> listDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> listDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } @@ -174,7 +174,7 @@ private ServiceResponse> listDelegate(Response>> call(Response> listNextDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> listNextDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/RegistryStatisticsImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/RegistryStatisticsImpl.java index d0c0e789a46d..d1bf03c99e6c 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/RegistryStatisticsImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/RegistryStatisticsImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class RegistryStatisticsImpl extends WrapperImpl implements RegistryStatistics { - private final IoTHubManager manager; - RegistryStatisticsImpl(RegistryStatisticsInner inner, IoTHubManager manager) { + private final DevicesManager manager; + RegistryStatisticsImpl(RegistryStatisticsInner inner, DevicesManager manager) { super(inner); this.manager = manager; } @Override - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/RegistryStatisticsInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/RegistryStatisticsInner.java index ae61a1682358..862fb6c82b38 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/RegistryStatisticsInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/RegistryStatisticsInner.java @@ -33,7 +33,7 @@ public class RegistryStatisticsInner { private Long disabledDeviceCount; /** - * Get the totalDeviceCount value. + * Get the total count of devices in the identity registry. * * @return the totalDeviceCount value */ @@ -42,7 +42,7 @@ public Long totalDeviceCount() { } /** - * Get the enabledDeviceCount value. + * Get the count of enabled devices in the identity registry. * * @return the enabledDeviceCount value */ @@ -51,7 +51,7 @@ public Long enabledDeviceCount() { } /** - * Get the disabledDeviceCount value. + * Get the count of disabled devices in the identity registry. * * @return the disabledDeviceCount value */ diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/ResourceProviderCommonsImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/ResourceProviderCommonsImpl.java index 5bf8d7d75e48..82b7b1f47159 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/ResourceProviderCommonsImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/ResourceProviderCommonsImpl.java @@ -17,14 +17,14 @@ import com.microsoft.azure.management.iothub.v2018_04_01.UserSubscriptionQuota; class ResourceProviderCommonsImpl extends WrapperImpl implements ResourceProviderCommons { - private final IoTHubManager manager; + private final DevicesManager manager; - ResourceProviderCommonsImpl(IoTHubManager manager) { + ResourceProviderCommonsImpl(DevicesManager manager) { super(manager.inner().resourceProviderCommons()); this.manager = manager; } - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/ResourceProviderCommonsInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/ResourceProviderCommonsInner.java index c852bc7e79f8..66cbfb5ad1eb 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/ResourceProviderCommonsInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/ResourceProviderCommonsInner.java @@ -10,7 +10,7 @@ import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; -import com.microsoft.azure.management.iothub.v2018_04_01.ErrorDetailsException; +import com.microsoft.azure.management.iothub.v2018_04_01.ErrorDetailsInnerException; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -138,10 +138,10 @@ public Observable>> call(Respon }); } - private ServiceResponse> listDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter()) + private ServiceResponse> listDelegate(Response response) throws ErrorDetailsInnerException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorDetailsInnerException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorDetailsException.class) + .registerError(ErrorDetailsInnerException.class) .build(response); } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/SharedAccessSignatureAuthorizationRuleImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/SharedAccessSignatureAuthorizationRuleImpl.java index 1fe3c09cb865..4ce06e4347ef 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/SharedAccessSignatureAuthorizationRuleImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/SharedAccessSignatureAuthorizationRuleImpl.java @@ -13,14 +13,14 @@ import com.microsoft.azure.management.iothub.v2018_04_01.AccessRights; class SharedAccessSignatureAuthorizationRuleImpl extends WrapperImpl implements SharedAccessSignatureAuthorizationRule { - private final IoTHubManager manager; - SharedAccessSignatureAuthorizationRuleImpl(SharedAccessSignatureAuthorizationRuleInner inner, IoTHubManager manager) { + private final DevicesManager manager; + SharedAccessSignatureAuthorizationRuleImpl(SharedAccessSignatureAuthorizationRuleInner inner, DevicesManager manager) { super(inner); this.manager = manager; } @Override - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/SharedAccessSignatureAuthorizationRuleInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/SharedAccessSignatureAuthorizationRuleInner.java index a5214e641d9c..b2fa1ffbfc9e 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/SharedAccessSignatureAuthorizationRuleInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/SharedAccessSignatureAuthorizationRuleInner.java @@ -49,7 +49,7 @@ public class SharedAccessSignatureAuthorizationRuleInner { private AccessRights rights; /** - * Get the keyName value. + * Get the name of the shared access policy. * * @return the keyName value */ @@ -58,7 +58,7 @@ public String keyName() { } /** - * Set the keyName value. + * Set the name of the shared access policy. * * @param keyName the keyName value to set * @return the SharedAccessSignatureAuthorizationRuleInner object itself. @@ -69,7 +69,7 @@ public SharedAccessSignatureAuthorizationRuleInner withKeyName(String keyName) { } /** - * Get the primaryKey value. + * Get the primary key. * * @return the primaryKey value */ @@ -78,7 +78,7 @@ public String primaryKey() { } /** - * Set the primaryKey value. + * Set the primary key. * * @param primaryKey the primaryKey value to set * @return the SharedAccessSignatureAuthorizationRuleInner object itself. @@ -89,7 +89,7 @@ public SharedAccessSignatureAuthorizationRuleInner withPrimaryKey(String primary } /** - * Get the secondaryKey value. + * Get the secondary key. * * @return the secondaryKey value */ @@ -98,7 +98,7 @@ public String secondaryKey() { } /** - * Set the secondaryKey value. + * Set the secondary key. * * @param secondaryKey the secondaryKey value to set * @return the SharedAccessSignatureAuthorizationRuleInner object itself. @@ -109,7 +109,7 @@ public SharedAccessSignatureAuthorizationRuleInner withSecondaryKey(String secon } /** - * Get the rights value. + * Get the permissions assigned to the shared access policy. Possible values include: 'RegistryRead', 'RegistryWrite', 'ServiceConnect', 'DeviceConnect', 'RegistryRead, RegistryWrite', 'RegistryRead, ServiceConnect', 'RegistryRead, DeviceConnect', 'RegistryWrite, ServiceConnect', 'RegistryWrite, DeviceConnect', 'ServiceConnect, DeviceConnect', 'RegistryRead, RegistryWrite, ServiceConnect', 'RegistryRead, RegistryWrite, DeviceConnect', 'RegistryRead, ServiceConnect, DeviceConnect', 'RegistryWrite, ServiceConnect, DeviceConnect', 'RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect'. * * @return the rights value */ @@ -118,7 +118,7 @@ public AccessRights rights() { } /** - * Set the rights value. + * Set the permissions assigned to the shared access policy. Possible values include: 'RegistryRead', 'RegistryWrite', 'ServiceConnect', 'DeviceConnect', 'RegistryRead, RegistryWrite', 'RegistryRead, ServiceConnect', 'RegistryRead, DeviceConnect', 'RegistryWrite, ServiceConnect', 'RegistryWrite, DeviceConnect', 'ServiceConnect, DeviceConnect', 'RegistryRead, RegistryWrite, ServiceConnect', 'RegistryRead, RegistryWrite, DeviceConnect', 'RegistryRead, ServiceConnect, DeviceConnect', 'RegistryWrite, ServiceConnect, DeviceConnect', 'RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect'. * * @param rights the rights value to set * @return the SharedAccessSignatureAuthorizationRuleInner object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/TestAllRoutesResultImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/TestAllRoutesResultImpl.java index fd3f2d11e951..de7e48d04e42 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/TestAllRoutesResultImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/TestAllRoutesResultImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.iothub.v2018_04_01.MatchedRoute; class TestAllRoutesResultImpl extends WrapperImpl implements TestAllRoutesResult { - private final IoTHubManager manager; - TestAllRoutesResultImpl(TestAllRoutesResultInner inner, IoTHubManager manager) { + private final DevicesManager manager; + TestAllRoutesResultImpl(TestAllRoutesResultInner inner, DevicesManager manager) { super(inner); this.manager = manager; } @Override - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/TestAllRoutesResultInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/TestAllRoutesResultInner.java index b1bd6eaa3de1..c42a8d76b3cf 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/TestAllRoutesResultInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/TestAllRoutesResultInner.java @@ -23,7 +23,7 @@ public class TestAllRoutesResultInner { private List routes; /** - * Get the routes value. + * Get jSON-serialized array of matched routes. * * @return the routes value */ @@ -32,7 +32,7 @@ public List routes() { } /** - * Set the routes value. + * Set jSON-serialized array of matched routes. * * @param routes the routes value to set * @return the TestAllRoutesResultInner object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/TestRouteResultImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/TestRouteResultImpl.java index 92a1f44b99f6..f6412e25a80e 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/TestRouteResultImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/TestRouteResultImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.iothub.v2018_04_01.TestResultStatus; class TestRouteResultImpl extends WrapperImpl implements TestRouteResult { - private final IoTHubManager manager; - TestRouteResultImpl(TestRouteResultInner inner, IoTHubManager manager) { + private final DevicesManager manager; + TestRouteResultImpl(TestRouteResultInner inner, DevicesManager manager) { super(inner); this.manager = manager; } @Override - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/TestRouteResultInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/TestRouteResultInner.java index cff7edd86850..971b19c29b3b 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/TestRouteResultInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/TestRouteResultInner.java @@ -30,7 +30,7 @@ public class TestRouteResultInner { private TestRouteResultDetails details; /** - * Get the result value. + * Get result of testing route. Possible values include: 'undefined', 'false', 'true'. * * @return the result value */ @@ -39,7 +39,7 @@ public TestResultStatus result() { } /** - * Set the result value. + * Set result of testing route. Possible values include: 'undefined', 'false', 'true'. * * @param result the result value to set * @return the TestRouteResultInner object itself. @@ -50,7 +50,7 @@ public TestRouteResultInner withResult(TestResultStatus result) { } /** - * Get the details value. + * Get detailed result of testing route. * * @return the details value */ @@ -59,7 +59,7 @@ public TestRouteResultDetails details() { } /** - * Set the details value. + * Set detailed result of testing route. * * @param details the details value to set * @return the TestRouteResultInner object itself. diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/UserSubscriptionQuotaImpl.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/UserSubscriptionQuotaImpl.java index 4166c829bd33..532d743d9e56 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/UserSubscriptionQuotaImpl.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/UserSubscriptionQuotaImpl.java @@ -10,16 +10,17 @@ import com.microsoft.azure.management.iothub.v2018_04_01.UserSubscriptionQuota; import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.iothub.v2018_04_01.Name; class UserSubscriptionQuotaImpl extends WrapperImpl implements UserSubscriptionQuota { - private final IoTHubManager manager; - UserSubscriptionQuotaImpl(UserSubscriptionQuotaInner inner, IoTHubManager manager) { + private final DevicesManager manager; + UserSubscriptionQuotaImpl(UserSubscriptionQuotaInner inner, DevicesManager manager) { super(inner); this.manager = manager; } @Override - public IoTHubManager manager() { + public DevicesManager manager() { return this.manager; } @@ -39,7 +40,7 @@ public Integer limit() { } @Override - public String name() { + public Name name() { return this.inner().name(); } diff --git a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/UserSubscriptionQuotaInner.java b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/UserSubscriptionQuotaInner.java index 77de7b77672c..6b7615ceb461 100644 --- a/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/UserSubscriptionQuotaInner.java +++ b/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/UserSubscriptionQuotaInner.java @@ -8,13 +8,25 @@ package com.microsoft.azure.management.iothub.v2018_04_01.implementation; +import com.microsoft.azure.management.iothub.v2018_04_01.Name; import com.fasterxml.jackson.annotation.JsonProperty; -import com.microsoft.azure.ProxyResource; /** * User subscription quota response. */ -public class UserSubscriptionQuotaInner extends ProxyResource { +public class UserSubscriptionQuotaInner { + /** + * IotHub type id. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Response type. + */ + @JsonProperty(value = "type") + private String type; + /** * Unit of IotHub type. */ @@ -34,7 +46,53 @@ public class UserSubscriptionQuotaInner extends ProxyResource { private Integer limit; /** - * Get the unit value. + * IotHub type. + */ + @JsonProperty(value = "name") + private Name name; + + /** + * Get iotHub type id. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set iotHub type id. + * + * @param id the id value to set + * @return the UserSubscriptionQuotaInner object itself. + */ + public UserSubscriptionQuotaInner withId(String id) { + this.id = id; + return this; + } + + /** + * Get response type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set response type. + * + * @param type the type value to set + * @return the UserSubscriptionQuotaInner object itself. + */ + public UserSubscriptionQuotaInner withType(String type) { + this.type = type; + return this; + } + + /** + * Get unit of IotHub type. * * @return the unit value */ @@ -43,7 +101,7 @@ public String unit() { } /** - * Set the unit value. + * Set unit of IotHub type. * * @param unit the unit value to set * @return the UserSubscriptionQuotaInner object itself. @@ -54,7 +112,7 @@ public UserSubscriptionQuotaInner withUnit(String unit) { } /** - * Get the currentValue value. + * Get current number of IotHub type. * * @return the currentValue value */ @@ -63,7 +121,7 @@ public Integer currentValue() { } /** - * Set the currentValue value. + * Set current number of IotHub type. * * @param currentValue the currentValue value to set * @return the UserSubscriptionQuotaInner object itself. @@ -74,7 +132,7 @@ public UserSubscriptionQuotaInner withCurrentValue(Integer currentValue) { } /** - * Get the limit value. + * Get numerical limit on IotHub type. * * @return the limit value */ @@ -83,7 +141,7 @@ public Integer limit() { } /** - * Set the limit value. + * Set numerical limit on IotHub type. * * @param limit the limit value to set * @return the UserSubscriptionQuotaInner object itself. @@ -93,4 +151,24 @@ public UserSubscriptionQuotaInner withLimit(Integer limit) { return this; } + /** + * Get iotHub type. + * + * @return the name value + */ + public Name name() { + return this.name; + } + + /** + * Set iotHub type. + * + * @param name the name value to set + * @return the UserSubscriptionQuotaInner object itself. + */ + public UserSubscriptionQuotaInner withName(Name name) { + this.name = name; + return this; + } + }