From 8cf0df8c0a0001580574a7fbc1158d77ba42552b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 12 Aug 2022 01:55:05 +0000 Subject: [PATCH] CodeGen from PR 20213 in Azure/azure-rest-api-specs Merge 605d0c0a27815cf2f213d0f356c9c4eb9071ea80 into f3e0d432c99590d7bf8a444944368f90e53800da --- .../azure-resourcemanager-iothub/CHANGELOG.md | 4 +- .../azure-resourcemanager-iothub/README.md | 4 +- .../azure-resourcemanager-iothub/SAMPLE.md | 91 ++- .../azure-resourcemanager-iothub/pom.xml | 2 +- .../resourcemanager/iothub/IotHubManager.java | 88 +- .../iothub/fluent/CertificatesClient.java | 56 +- .../iothub/fluent/IotHubResourcesClient.java | 266 ++++-- .../iothub/fluent/IotHubsClient.java | 22 +- .../iothub/fluent/OperationsClient.java | 4 +- .../PrivateEndpointConnectionsClient.java | 61 +- .../PrivateLinkResourcesOperationsClient.java | 16 +- .../fluent/ResourceProviderCommonsClient.java | 8 +- .../models/CertificateDescriptionInner.java | 4 - .../CertificateListDescriptionInner.java | 4 - .../CertificateWithNonceDescriptionInner.java | 7 +- .../models/EndpointHealthDataInner.java | 22 +- .../EventHubConsumerGroupInfoInner.java | 4 - .../models/GroupIdInformationInner.java | 7 +- .../fluent/models/IotHubDescriptionInner.java | 12 +- .../IotHubNameAvailabilityInfoInner.java | 4 - .../models/IotHubQuotaMetricInfoInner.java | 4 - .../models/IotHubSkuDescriptionInner.java | 9 +- .../fluent/models/JobResponseInner.java | 4 - .../iothub/fluent/models/OperationInner.java | 4 - .../PrivateEndpointConnectionInner.java | 7 +- .../models/PrivateLinkResourcesInner.java | 4 - .../models/RegistryStatisticsInner.java | 4 - ...AccessSignatureAuthorizationRuleInner.java | 9 +- .../models/TestAllRoutesResultInner.java | 4 - .../fluent/models/TestRouteResultInner.java | 4 - .../UserSubscriptionQuotaListResultInner.java | 4 - .../CertificateDescriptionImpl.java | 4 + .../CertificatesClientImpl.java | 203 ++--- .../implementation/CertificatesImpl.java | 27 +- .../implementation/IotHubClientBuilder.java | 62 +- .../implementation/IotHubClientImpl.java | 15 +- .../implementation/IotHubDescriptionImpl.java | 4 + .../IotHubResourcesClientImpl.java | 771 ++++++++++++------ .../implementation/IotHubResourcesImpl.java | 51 +- .../implementation/IotHubsClientImpl.java | 51 +- .../iothub/implementation/IotHubsImpl.java | 3 +- .../implementation/OperationsClientImpl.java | 11 +- .../iothub/implementation/OperationsImpl.java | 3 +- .../PrivateEndpointConnectionsClientImpl.java | 166 ++-- .../PrivateEndpointConnectionsImpl.java | 3 +- ...vateLinkResourcesOperationsClientImpl.java | 62 +- .../PrivateLinkResourcesOperationsImpl.java | 3 +- .../ResourceProviderCommonsClientImpl.java | 33 +- .../ResourceProviderCommonsImpl.java | 3 +- .../iothub/models/AccessRights.java | 3 + .../iothub/models/ArmIdentity.java | 15 +- .../iothub/models/ArmUserIdentity.java | 4 - .../iothub/models/AuthenticationType.java | 6 +- .../iothub/models/Capabilities.java | 6 +- .../iothub/models/CertificateDescription.java | 7 + .../iothub/models/CertificateProperties.java | 4 - .../CertificatePropertiesWithNonce.java | 7 +- .../CertificateVerificationDescription.java | 7 +- .../iothub/models/Certificates.java | 64 +- .../models/CloudToDeviceProperties.java | 10 +- .../iothub/models/DefaultAction.java | 6 +- .../EncryptionPropertiesDescription.java | 76 ++ .../models/EndpointHealthDataListResult.java | 4 - .../iothub/models/EndpointHealthStatus.java | 6 +- .../iothub/models/EnrichmentProperties.java | 14 +- .../iothub/models/ErrorDetails.java | 4 - .../EventHubConsumerGroupBodyDescription.java | 7 +- .../models/EventHubConsumerGroupName.java | 7 +- .../EventHubConsumerGroupsListResult.java | 4 - .../iothub/models/EventHubProperties.java | 7 +- .../iothub/models/ExportDevicesRequest.java | 20 +- .../iothub/models/FailoverInput.java | 7 +- .../models/FallbackRouteProperties.java | 26 +- .../iothub/models/FeedbackProperties.java | 10 +- .../models/GroupIdInformationProperties.java | 4 - .../iothub/models/ImportDevicesRequest.java | 18 +- .../iothub/models/IotHubCapacity.java | 4 - .../iothub/models/IotHubDescription.java | 33 +- .../models/IotHubDescriptionListResult.java | 4 - .../models/IotHubLocationDescription.java | 11 +- .../IotHubNameUnavailabilityReason.java | 3 + .../iothub/models/IotHubProperties.java | 133 ++- .../models/IotHubPropertiesDeviceStreams.java | 47 ++ .../IotHubQuotaMetricInfoListResult.java | 4 - .../iothub/models/IotHubReplicaRoleType.java | 6 +- .../iothub/models/IotHubResources.java | 218 +++-- .../iothub/models/IotHubScaleType.java | 3 + .../iothub/models/IotHubSku.java | 6 +- .../IotHubSkuDescriptionListResult.java | 4 - .../iothub/models/IotHubSkuInfo.java | 7 +- .../iothub/models/IotHubSkuTier.java | 3 + .../iothub/models/IotHubs.java | 8 +- .../iothub/models/IpFilterActionType.java | 3 + .../iothub/models/IpFilterRule.java | 14 +- .../iothub/models/JobResponseListResult.java | 4 - .../iothub/models/JobStatus.java | 3 + .../iothub/models/JobType.java | 6 +- .../iothub/models/KeyVaultKeyProperties.java | 75 ++ .../iothub/models/ManagedIdentity.java | 4 - .../iothub/models/MatchedRoute.java | 4 - .../models/MessagingEndpointProperties.java | 10 +- .../resourcemanager/iothub/models/Name.java | 4 - .../iothub/models/NetworkRuleIpAction.java | 6 +- .../iothub/models/NetworkRuleSetIpRule.java | 12 +- .../models/NetworkRuleSetProperties.java | 10 +- .../iothub/models/OperationDisplay.java | 4 - .../iothub/models/OperationInputs.java | 7 +- .../iothub/models/OperationListResult.java | 7 +- .../iothub/models/Operations.java | 4 +- .../iothub/models/PrivateEndpoint.java | 4 - .../PrivateEndpointConnectionProperties.java | 7 +- .../models/PrivateEndpointConnections.java | 32 +- .../PrivateLinkResourcesOperations.java | 16 +- .../PrivateLinkServiceConnectionState.java | 9 +- .../PrivateLinkServiceConnectionStatus.java | 6 +- .../iothub/models/PublicNetworkAccess.java | 6 +- .../iothub/models/ResourceIdentityType.java | 3 + .../models/ResourceProviderCommons.java | 8 +- .../models/RootCertificateProperties.java | 64 ++ .../iothub/models/RouteCompilationError.java | 4 - .../iothub/models/RouteErrorPosition.java | 4 - .../iothub/models/RouteErrorRange.java | 4 - .../iothub/models/RouteErrorSeverity.java | 6 +- .../iothub/models/RouteProperties.java | 29 +- .../RoutingCosmosDBSqlApiProperties.java | 406 +++++++++ .../iothub/models/RoutingEndpoints.java | 49 +- .../models/RoutingEventHubProperties.java | 15 +- .../iothub/models/RoutingMessage.java | 4 - .../iothub/models/RoutingProperties.java | 31 +- ...tingServiceBusQueueEndpointProperties.java | 19 +- ...tingServiceBusTopicEndpointProperties.java | 19 +- .../iothub/models/RoutingSource.java | 12 +- .../RoutingStorageContainerProperties.java | 35 +- ...ingStorageContainerPropertiesEncoding.java | 6 +- .../iothub/models/RoutingTwin.java | 4 - .../iothub/models/RoutingTwinProperties.java | 4 - ...sSignatureAuthorizationRuleListResult.java | 5 - .../models/StorageEndpointProperties.java | 23 +- .../iothub/models/TagsResource.java | 4 - .../iothub/models/TestAllRoutesInput.java | 4 - .../iothub/models/TestResultStatus.java | 6 +- .../iothub/models/TestRouteInput.java | 7 +- .../iothub/models/TestRouteResultDetails.java | 4 - .../iothub/models/UserSubscriptionQuota.java | 4 - .../CertificatesCreateOrUpdateSamples.java | 2 +- .../generated/CertificatesDeleteSamples.java | 2 +- ...icatesGenerateVerificationCodeSamples.java | 2 +- .../generated/CertificatesGetSamples.java | 2 +- .../CertificatesListByIotHubSamples.java | 2 +- .../generated/CertificatesVerifySamples.java | 2 +- .../IotHubManualFailoverSamples.java | 2 +- ...bResourceCheckNameAvailabilitySamples.java | 2 +- ...rceCreateEventHubConsumerGroupSamples.java | 2 +- .../IotHubResourceCreateOrUpdateSamples.java | 6 +- ...rceDeleteEventHubConsumerGroupSamples.java | 2 +- .../IotHubResourceDeleteSamples.java | 2 +- .../IotHubResourceExportDevicesSamples.java | 13 +- ...tHubResourceGetByResourceGroupSamples.java | 2 +- ...otHubResourceGetEndpointHealthSamples.java | 2 +- ...sourceGetEventHubConsumerGroupSamples.java | 2 +- .../IotHubResourceGetJobSamples.java | 2 +- ...otHubResourceGetKeysForKeyNameSamples.java | 2 +- .../IotHubResourceGetQuotaMetricsSamples.java | 2 +- .../IotHubResourceGetStatsSamples.java | 2 +- .../IotHubResourceGetValidSkusSamples.java | 2 +- .../IotHubResourceImportDevicesSamples.java | 2 +- ...HubResourceListByResourceGroupSamples.java | 2 +- ...urceListEventHubConsumerGroupsSamples.java | 2 +- .../IotHubResourceListJobsSamples.java | 2 +- .../IotHubResourceListKeysSamples.java | 2 +- .../generated/IotHubResourceListSamples.java | 2 +- .../IotHubResourceTestAllRoutesSamples.java | 2 +- .../IotHubResourceTestRouteSamples.java | 2 +- .../IotHubResourceUpdateSamples.java | 2 +- .../generated/OperationsListSamples.java | 2 +- ...ivateEndpointConnectionsDeleteSamples.java | 2 +- .../PrivateEndpointConnectionsGetSamples.java | 2 +- ...PrivateEndpointConnectionsListSamples.java | 2 +- ...ivateEndpointConnectionsUpdateSamples.java | 2 +- ...ivateLinkResourcesOperationGetSamples.java | 2 +- ...vateLinkResourcesOperationListSamples.java | 2 +- ...iderCommonGetSubscriptionQuotaSamples.java | 2 +- 182 files changed, 2766 insertions(+), 1430 deletions(-) create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EncryptionPropertiesDescription.java create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubPropertiesDeviceStreams.java create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/KeyVaultKeyProperties.java create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RootCertificateProperties.java create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingCosmosDBSqlApiProperties.java diff --git a/sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md b/sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md index accb72049662f..a091a205d91de 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md +++ b/sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.2.0-beta.2 (Unreleased) +## 1.0.0-beta.1 (2022-08-12) + +- Azure Resource Manager IotHub client library for Java. This package contains Microsoft Azure SDK for IotHub Management SDK. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-preview-2022-04-30. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/iothub/azure-resourcemanager-iothub/README.md b/sdk/iothub/azure-resourcemanager-iothub/README.md index 8a6fbc9bb514f..9cb71f2cd7fac 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/README.md +++ b/sdk/iothub/azure-resourcemanager-iothub/README.md @@ -2,7 +2,7 @@ Azure Resource Manager IotHub client library for Java. -This package contains Microsoft Azure SDK for IotHub Management SDK. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-2021-07-02. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for IotHub Management SDK. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-preview-2022-04-30. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-iothub - 1.2.0-beta.1 + 1.2.0-beta.2 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md b/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md index c08469938e94b..48e37e68b9827 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md +++ b/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md @@ -67,7 +67,7 @@ import com.azure.resourcemanager.iothub.models.CertificateProperties; /** Samples for Certificates CreateOrUpdate. */ public final class CertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_certificatescreateorupdate.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_certificatescreateorupdate.json */ /** * Sample code: Certificates_CreateOrUpdate. @@ -93,7 +93,7 @@ import com.azure.core.util.Context; /** Samples for Certificates Delete. */ public final class CertificatesDeleteSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_certificatesdelete.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_certificatesdelete.json */ /** * Sample code: Certificates_Delete. @@ -114,7 +114,7 @@ import com.azure.core.util.Context; /** Samples for Certificates GenerateVerificationCode. */ public final class CertificatesGenerateVerificationCodeSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_generateverificationcode.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_generateverificationcode.json */ /** * Sample code: Certificates_GenerateVerificationCode. @@ -137,7 +137,7 @@ import com.azure.core.util.Context; /** Samples for Certificates Get. */ public final class CertificatesGetSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_getcertificate.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getcertificate.json */ /** * Sample code: Certificates_Get. @@ -158,7 +158,7 @@ import com.azure.core.util.Context; /** Samples for Certificates ListByIotHub. */ public final class CertificatesListByIotHubSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_listcertificates.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listcertificates.json */ /** * Sample code: Certificates_ListByIotHub. @@ -180,7 +180,7 @@ import com.azure.resourcemanager.iothub.models.CertificateVerificationDescriptio /** Samples for Certificates Verify. */ public final class CertificatesVerifySamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_certverify.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_certverify.json */ /** * Sample code: Certificates_Verify. @@ -210,7 +210,7 @@ import com.azure.resourcemanager.iothub.models.FailoverInput; /** Samples for IotHub ManualFailover. */ public final class IotHubManualFailoverSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/IotHub_ManualFailover.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/IotHub_ManualFailover.json */ /** * Sample code: IotHub_ManualFailover. @@ -235,7 +235,7 @@ import com.azure.resourcemanager.iothub.models.OperationInputs; /** Samples for IotHubResource CheckNameAvailability. */ public final class IotHubResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/checkNameAvailability.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/checkNameAvailability.json */ /** * Sample code: IotHubResource_CheckNameAvailability. @@ -258,7 +258,7 @@ import com.azure.resourcemanager.iothub.models.EventHubConsumerGroupName; /** Samples for IotHubResource CreateEventHubConsumerGroup. */ public final class IotHubResourceCreateEventHubConsumerGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_createconsumergroup.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_createconsumergroup.json */ /** * Sample code: IotHubResource_CreateEventHubConsumerGroup. @@ -293,6 +293,7 @@ import com.azure.resourcemanager.iothub.models.MessagingEndpointProperties; import com.azure.resourcemanager.iothub.models.NetworkRuleIpAction; import com.azure.resourcemanager.iothub.models.NetworkRuleSetIpRule; import com.azure.resourcemanager.iothub.models.NetworkRuleSetProperties; +import com.azure.resourcemanager.iothub.models.RootCertificateProperties; import com.azure.resourcemanager.iothub.models.RoutingEndpoints; import com.azure.resourcemanager.iothub.models.RoutingProperties; import com.azure.resourcemanager.iothub.models.RoutingSource; @@ -305,7 +306,7 @@ import java.util.Map; /** Samples for IotHubResource CreateOrUpdate. */ public final class IotHubResourceCreateOrUpdateSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_createOrUpdate.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_createOrUpdate.json */ /** * Sample code: IotHubResource_CreateOrUpdate. @@ -383,7 +384,8 @@ public final class IotHubResourceCreateOrUpdateSamples { .withTtlAsIso8601(Duration.parse("PT1H")) .withMaxDeliveryCount(10))) .withFeatures(Capabilities.NONE) - .withEnableDataResidency(true)) + .withEnableDataResidency(true) + .withRootCertificate(new RootCertificateProperties().withEnableRootCertificateV2(true))) .create(); } @@ -408,7 +410,7 @@ import com.azure.core.util.Context; /** Samples for IotHubResource Delete. */ public final class IotHubResourceDeleteSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_delete.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_delete.json */ /** * Sample code: IotHubResource_Delete. @@ -429,7 +431,7 @@ import com.azure.core.util.Context; /** Samples for IotHubResource DeleteEventHubConsumerGroup. */ public final class IotHubResourceDeleteEventHubConsumerGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_deleteconsumergroup.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_deleteconsumergroup.json */ /** * Sample code: IotHubResource_DeleteEventHubConsumerGroup. @@ -449,12 +451,14 @@ public final class IotHubResourceDeleteEventHubConsumerGroupSamples { ```java import com.azure.core.util.Context; +import com.azure.resourcemanager.iothub.models.AuthenticationType; import com.azure.resourcemanager.iothub.models.ExportDevicesRequest; +import com.azure.resourcemanager.iothub.models.ManagedIdentity; /** Samples for IotHubResource ExportDevices. */ public final class IotHubResourceExportDevicesSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_exportdevices.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_exportdevices.json */ /** * Sample code: IotHubResource_ExportDevices. @@ -467,7 +471,14 @@ public final class IotHubResourceExportDevicesSamples { .exportDevicesWithResponse( "myResourceGroup", "testHub", - new ExportDevicesRequest().withExportBlobContainerUri("testBlob").withExcludeKeys(true), + new ExportDevicesRequest() + .withExportBlobContainerUri("testBlob") + .withExcludeKeys(true) + .withAuthenticationType(AuthenticationType.IDENTITY_BASED) + .withIdentity( + new ManagedIdentity() + .withUserAssignedIdentity( + "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1")), Context.NONE); } } @@ -481,7 +492,7 @@ import com.azure.core.util.Context; /** Samples for IotHubResource GetByResourceGroup. */ public final class IotHubResourceGetByResourceGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_get.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_get.json */ /** * Sample code: IotHubResource_Get. @@ -502,7 +513,7 @@ import com.azure.core.util.Context; /** Samples for IotHubResource GetEndpointHealth. */ public final class IotHubResourceGetEndpointHealthSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_routingendpointhealth.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_routingendpointhealth.json */ /** * Sample code: IotHubResource_GetEndpointHealth. @@ -523,7 +534,7 @@ import com.azure.core.util.Context; /** Samples for IotHubResource GetEventHubConsumerGroup. */ public final class IotHubResourceGetEventHubConsumerGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_getconsumergroup.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getconsumergroup.json */ /** * Sample code: IotHubResource_ListEventHubConsumerGroups. @@ -547,7 +558,7 @@ import com.azure.core.util.Context; /** Samples for IotHubResource GetJob. */ public final class IotHubResourceGetJobSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_getjob.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getjob.json */ /** * Sample code: IotHubResource_GetJob. @@ -568,7 +579,7 @@ import com.azure.core.util.Context; /** Samples for IotHubResource GetKeysForKeyName. */ public final class IotHubResourceGetKeysForKeyNameSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_getkey.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getkey.json */ /** * Sample code: IotHubResource_GetKeysForKeyName. @@ -591,7 +602,7 @@ import com.azure.core.util.Context; /** Samples for IotHubResource GetQuotaMetrics. */ public final class IotHubResourceGetQuotaMetricsSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_quotametrics.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_quotametrics.json */ /** * Sample code: IotHubResource_GetQuotaMetrics. @@ -612,7 +623,7 @@ import com.azure.core.util.Context; /** Samples for IotHubResource GetStats. */ public final class IotHubResourceGetStatsSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_stats.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_stats.json */ /** * Sample code: IotHubResource_GetStats. @@ -633,7 +644,7 @@ import com.azure.core.util.Context; /** Samples for IotHubResource GetValidSkus. */ public final class IotHubResourceGetValidSkusSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_getskus.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getskus.json */ /** * Sample code: IotHubResource_GetValidSkus. @@ -655,7 +666,7 @@ import com.azure.resourcemanager.iothub.models.ImportDevicesRequest; /** Samples for IotHubResource ImportDevices. */ public final class IotHubResourceImportDevicesSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_importdevices.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_importdevices.json */ /** * Sample code: IotHubResource_ImportDevices. @@ -682,7 +693,7 @@ import com.azure.core.util.Context; /** Samples for IotHubResource List. */ public final class IotHubResourceListSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_listbysubscription.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listbysubscription.json */ /** * Sample code: IotHubResource_ListBySubscription. @@ -703,7 +714,7 @@ import com.azure.core.util.Context; /** Samples for IotHubResource ListByResourceGroup. */ public final class IotHubResourceListByResourceGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_listbyrg.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listbyrg.json */ /** * Sample code: IotHubResource_ListByResourceGroup. @@ -724,7 +735,7 @@ import com.azure.core.util.Context; /** Samples for IotHubResource ListEventHubConsumerGroups. */ public final class IotHubResourceListEventHubConsumerGroupsSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_listehgroups.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listehgroups.json */ /** * Sample code: IotHubResource_ListEventHubConsumerGroups. @@ -746,7 +757,7 @@ import com.azure.core.util.Context; /** Samples for IotHubResource ListJobs. */ public final class IotHubResourceListJobsSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_listjobs.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listjobs.json */ /** * Sample code: IotHubResource_ListJobs. @@ -767,7 +778,7 @@ import com.azure.core.util.Context; /** Samples for IotHubResource ListKeys. */ public final class IotHubResourceListKeysSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_listkeys.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listkeys.json */ /** * Sample code: IotHubResource_ListKeys. @@ -793,7 +804,7 @@ import java.util.Map; /** Samples for IotHubResource TestAllRoutes. */ public final class IotHubResourceTestAllRoutesSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_testallroutes.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_testallroutes.json */ /** * Sample code: IotHubResource_TestAllRoutes. @@ -844,7 +855,7 @@ import java.util.Map; /** Samples for IotHubResource TestRoute. */ public final class IotHubResourceTestRouteSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_testnewroute.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_testnewroute.json */ /** * Sample code: IotHubResource_TestRoute. @@ -896,7 +907,7 @@ import java.util.Map; /** Samples for IotHubResource Update. */ public final class IotHubResourceUpdateSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_patch.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_patch.json */ /** * Sample code: IotHubResource_Update. @@ -933,7 +944,7 @@ import com.azure.core.util.Context; /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_operations.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_operations.json */ /** * Sample code: Operations_List. @@ -954,7 +965,7 @@ import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections Delete. */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_deleteprivateendpointconnection.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_deleteprivateendpointconnection.json */ /** * Sample code: PrivateEndpointConnection_Delete. @@ -977,7 +988,7 @@ import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections Get. */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_getprivateendpointconnection.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getprivateendpointconnection.json */ /** * Sample code: PrivateEndpointConnection_Get. @@ -1000,7 +1011,7 @@ import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections List. */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_listprivateendpointconnections.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listprivateendpointconnections.json */ /** * Sample code: PrivateEndpointConnections_List. @@ -1025,7 +1036,7 @@ import com.azure.resourcemanager.iothub.models.PrivateLinkServiceConnectionStatu /** Samples for PrivateEndpointConnections Update. */ public final class PrivateEndpointConnectionsUpdateSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_updateprivateendpointconnection.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_updateprivateendpointconnection.json */ /** * Sample code: PrivateEndpointConnection_Update. @@ -1059,7 +1070,7 @@ import com.azure.core.util.Context; /** Samples for PrivateLinkResourcesOperation Get. */ public final class PrivateLinkResourcesOperationGetSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_getprivatelinkresources.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getprivatelinkresources.json */ /** * Sample code: PrivateLinkResources_List. @@ -1080,7 +1091,7 @@ import com.azure.core.util.Context; /** Samples for PrivateLinkResourcesOperation List. */ public final class PrivateLinkResourcesOperationListSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_listprivatelinkresources.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listprivatelinkresources.json */ /** * Sample code: PrivateLinkResources_List. @@ -1101,7 +1112,7 @@ import com.azure.core.util.Context; /** Samples for ResourceProviderCommon GetSubscriptionQuota. */ public final class ResourceProviderCommonGetSubscriptionQuotaSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_usages.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_usages.json */ /** * Sample code: ResourceProviderCommon_GetSubscriptionQuota. diff --git a/sdk/iothub/azure-resourcemanager-iothub/pom.xml b/sdk/iothub/azure-resourcemanager-iothub/pom.xml index abfd12260387f..fde9cb85ec37d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/pom.xml +++ b/sdk/iothub/azure-resourcemanager-iothub/pom.xml @@ -13,7 +13,7 @@ jar Microsoft Azure SDK for IotHub Management - This package contains Microsoft Azure SDK for IotHub Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-2021-07-02. + This package contains Microsoft Azure SDK for IotHub Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-preview-2022-04-30. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/IotHubManager.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/IotHubManager.java index 08e725325d60b..7c57325744b79 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/IotHubManager.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/IotHubManager.java @@ -10,11 +10,13 @@ import com.azure.core.http.HttpPipelineBuilder; import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; +import com.azure.core.http.policy.AddHeadersFromContextPolicy; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; import com.azure.core.http.policy.HttpPolicyProviders; import com.azure.core.http.policy.RequestIdPolicy; +import com.azure.core.http.policy.RetryOptions; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; @@ -87,6 +89,19 @@ public static IotHubManager authenticate(TokenCredential credential, AzureProfil return configure().authenticate(credential, profile); } + /** + * Creates an instance of IotHub service API entry point. + * + * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential. + * @param profile the Azure profile for client. + * @return the IotHub service API instance. + */ + public static IotHubManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) { + Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); + Objects.requireNonNull(profile, "'profile' cannot be null."); + return new IotHubManager(httpPipeline, profile, null); + } + /** * Gets a Configurable instance that can be used to create IotHubManager with optional configuration. * @@ -98,13 +113,14 @@ public static Configurable configure() { /** The Configurable allowing configurations to be set. */ public static final class Configurable { - private final ClientLogger logger = new ClientLogger(Configurable.class); + private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); private HttpClient httpClient; private HttpLogOptions httpLogOptions; private final List policies = new ArrayList<>(); private final List scopes = new ArrayList<>(); private RetryPolicy retryPolicy; + private RetryOptions retryOptions; private Duration defaultPollInterval; private Configurable() { @@ -165,6 +181,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) { return this; } + /** + * Sets the retry options for the HTTP pipeline retry policy. + * + *

This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. + * + * @param retryOptions the retry options for the HTTP pipeline retry policy. + * @return the configurable object itself. + */ + public Configurable withRetryOptions(RetryOptions retryOptions) { + this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null."); + return this; + } + /** * Sets the default poll interval, used when service does not provide "Retry-After" header. * @@ -172,9 +201,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) { * @return the configurable object itself. */ public Configurable withDefaultPollInterval(Duration defaultPollInterval) { - this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null."); + this.defaultPollInterval = + Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null."); if (this.defaultPollInterval.isNegative()) { - throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative")); + throw LOGGER + .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative")); } return this; } @@ -196,7 +227,7 @@ public IotHubManager authenticate(TokenCredential credential, AzureProfile profi .append("-") .append("com.azure.resourcemanager.iothub") .append("/") - .append("1.2.0-beta.1"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -214,10 +245,15 @@ public IotHubManager authenticate(TokenCredential credential, AzureProfile profi scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default"); } if (retryPolicy == null) { - retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); + if (retryOptions != null) { + retryPolicy = new RetryPolicy(retryOptions); + } else { + retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); + } } List policies = new ArrayList<>(); policies.add(new UserAgentPolicy(userAgentBuilder.toString())); + policies.add(new AddHeadersFromContextPolicy()); policies.add(new RequestIdPolicy()); policies .addAll( @@ -248,7 +284,11 @@ public IotHubManager authenticate(TokenCredential credential, AzureProfile profi } } - /** @return Resource collection API of Operations. */ + /** + * Gets the resource collection API of Operations. + * + * @return Resource collection API of Operations. + */ public Operations operations() { if (this.operations == null) { this.operations = new OperationsImpl(clientObject.getOperations(), this); @@ -256,7 +296,11 @@ public Operations operations() { return operations; } - /** @return Resource collection API of IotHubResources. */ + /** + * Gets the resource collection API of IotHubResources. It manages IotHubDescription, EventHubConsumerGroupInfo. + * + * @return Resource collection API of IotHubResources. + */ public IotHubResources iotHubResources() { if (this.iotHubResources == null) { this.iotHubResources = new IotHubResourcesImpl(clientObject.getIotHubResources(), this); @@ -264,7 +308,11 @@ public IotHubResources iotHubResources() { return iotHubResources; } - /** @return Resource collection API of ResourceProviderCommons. */ + /** + * Gets the resource collection API of ResourceProviderCommons. + * + * @return Resource collection API of ResourceProviderCommons. + */ public ResourceProviderCommons resourceProviderCommons() { if (this.resourceProviderCommons == null) { this.resourceProviderCommons = @@ -273,7 +321,11 @@ public ResourceProviderCommons resourceProviderCommons() { return resourceProviderCommons; } - /** @return Resource collection API of Certificates. */ + /** + * Gets the resource collection API of Certificates. It manages CertificateDescription. + * + * @return Resource collection API of Certificates. + */ public Certificates certificates() { if (this.certificates == null) { this.certificates = new CertificatesImpl(clientObject.getCertificates(), this); @@ -281,7 +333,11 @@ public Certificates certificates() { return certificates; } - /** @return Resource collection API of IotHubs. */ + /** + * Gets the resource collection API of IotHubs. + * + * @return Resource collection API of IotHubs. + */ public IotHubs iotHubs() { if (this.iotHubs == null) { this.iotHubs = new IotHubsImpl(clientObject.getIotHubs(), this); @@ -289,7 +345,11 @@ public IotHubs iotHubs() { return iotHubs; } - /** @return Resource collection API of PrivateLinkResourcesOperations. */ + /** + * Gets the resource collection API of PrivateLinkResourcesOperations. + * + * @return Resource collection API of PrivateLinkResourcesOperations. + */ public PrivateLinkResourcesOperations privateLinkResourcesOperations() { if (this.privateLinkResourcesOperations == null) { this.privateLinkResourcesOperations = @@ -298,7 +358,11 @@ public PrivateLinkResourcesOperations privateLinkResourcesOperations() { return privateLinkResourcesOperations; } - /** @return Resource collection API of PrivateEndpointConnections. */ + /** + * Gets the resource collection API of PrivateEndpointConnections. + * + * @return Resource collection API of PrivateEndpointConnections. + */ public PrivateEndpointConnections privateEndpointConnections() { if (this.privateEndpointConnections == null) { this.privateEndpointConnections = diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/CertificatesClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/CertificatesClient.java index 8e6f51b0b79d2..86c05595bbd85 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/CertificatesClient.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/CertificatesClient.java @@ -16,7 +16,9 @@ /** An instance of this class provides access to all the operations defined in CertificatesClient. */ public interface CertificatesClient { /** - * Returns the list of certificates. + * Get the certificate list. + * + *

Returns the list of certificates. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -30,7 +32,9 @@ public interface CertificatesClient { CertificateListDescriptionInner listByIotHub(String resourceGroupName, String resourceName); /** - * Returns the list of certificates. + * Get the certificate list. + * + *

Returns the list of certificates. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -46,7 +50,9 @@ Response listByIotHubWithResponse( String resourceGroupName, String resourceName, Context context); /** - * Returns the certificate. + * Get the certificate. + * + *

Returns the certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -61,7 +67,9 @@ Response listByIotHubWithResponse( CertificateDescriptionInner get(String resourceGroupName, String resourceName, String certificateName); /** - * Returns the certificate. + * Get the certificate. + * + *

Returns the certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -78,7 +86,9 @@ Response getWithResponse( String resourceGroupName, String resourceName, String certificateName, Context context); /** - * Adds new or replaces existing certificate. + * Upload the certificate to the IoT hub. + * + *

Adds new or replaces existing certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -98,7 +108,9 @@ CertificateDescriptionInner createOrUpdate( CertificateDescriptionInner certificateDescription); /** - * Adds new or replaces existing certificate. + * Upload the certificate to the IoT hub. + * + *

Adds new or replaces existing certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -123,7 +135,9 @@ Response createOrUpdateWithResponse( Context context); /** - * Deletes an existing X509 certificate or does nothing if it does not exist. + * Delete an X509 certificate. + * + *

Deletes an existing X509 certificate or does nothing if it does not exist. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -138,7 +152,9 @@ Response createOrUpdateWithResponse( void delete(String resourceGroupName, String resourceName, String certificateName, String ifMatch); /** - * Deletes an existing X509 certificate or does nothing if it does not exist. + * Delete an X509 certificate. + * + *

Deletes an existing X509 certificate or does nothing if it does not exist. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -156,8 +172,10 @@ Response deleteWithResponse( String resourceGroupName, String resourceName, String certificateName, String ifMatch, Context context); /** - * Generates verification code for proof of possession flow. The verification code will be used to generate a leaf - * certificate. + * Generate verification code for proof of possession flow. + * + *

Generates verification code for proof of possession flow. The verification code will be used to generate a + * leaf certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -174,8 +192,10 @@ CertificateWithNonceDescriptionInner generateVerificationCode( String resourceGroupName, String resourceName, String certificateName, String ifMatch); /** - * Generates verification code for proof of possession flow. The verification code will be used to generate a leaf - * certificate. + * Generate verification code for proof of possession flow. + * + *

Generates verification code for proof of possession flow. The verification code will be used to generate a + * leaf certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -193,8 +213,10 @@ Response generateVerificationCodeWithRespo String resourceGroupName, String resourceName, String certificateName, String ifMatch, Context context); /** - * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded - * certificate. + * Verify certificate's private key possession. + * + *

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre + * uploaded certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -216,8 +238,10 @@ CertificateDescriptionInner verify( CertificateVerificationDescription certificateVerificationBody); /** - * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded - * certificate. + * Verify certificate's private key possession. + * + *

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre + * uploaded certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubResourcesClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubResourcesClient.java index 0091de3188e03..232340cc1e30b 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubResourcesClient.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubResourcesClient.java @@ -29,12 +29,13 @@ import com.azure.resourcemanager.iothub.models.TagsResource; import com.azure.resourcemanager.iothub.models.TestAllRoutesInput; import com.azure.resourcemanager.iothub.models.TestRouteInput; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in IotHubResourcesClient. */ public interface IotHubResourcesClient { /** - * Get the non-security related metadata of an IoT hub. + * Get the non-security related metadata of an IoT hub + * + *

Get the non-security related metadata of an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -48,7 +49,9 @@ public interface IotHubResourcesClient { IotHubDescriptionInner getByResourceGroup(String resourceGroupName, String resourceName); /** - * Get the non-security related metadata of an IoT hub. + * Get the non-security related metadata of an IoT hub + * + *

Get the non-security related metadata of an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -64,10 +67,11 @@ Response getByResourceGroupWithResponse( String resourceGroupName, String resourceName, Context context); /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -78,17 +82,18 @@ Response getByResourceGroupWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IotHubDescriptionInner> beginCreateOrUpdate( String resourceGroupName, String resourceName, IotHubDescriptionInner iotHubDescription, String ifMatch); /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -100,7 +105,7 @@ SyncPoller, IotHubDescriptionInner> beginCrea * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IotHubDescriptionInner> beginCreateOrUpdate( @@ -111,10 +116,11 @@ SyncPoller, IotHubDescriptionInner> beginCrea Context context); /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -132,10 +138,11 @@ IotHubDescriptionInner createOrUpdate( String resourceGroupName, String resourceName, IotHubDescriptionInner iotHubDescription, String ifMatch); /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -151,10 +158,11 @@ IotHubDescriptionInner createOrUpdate( String resourceGroupName, String resourceName, IotHubDescriptionInner iotHubDescription); /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -177,7 +185,9 @@ IotHubDescriptionInner createOrUpdate( Context context); /** - * Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. + * Update an existing IoT Hubs tags. + * + *

Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. * * @param resourceGroupName Resource group identifier. * @param resourceName Name of iot hub to update. @@ -185,14 +195,16 @@ IotHubDescriptionInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IotHubDescriptionInner> beginUpdate( String resourceGroupName, String resourceName, TagsResource iotHubTags); /** - * Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. + * Update an existing IoT Hubs tags. + * + *

Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. * * @param resourceGroupName Resource group identifier. * @param resourceName Name of iot hub to update. @@ -201,14 +213,16 @@ SyncPoller, IotHubDescriptionInner> beginUpda * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IotHubDescriptionInner> beginUpdate( String resourceGroupName, String resourceName, TagsResource iotHubTags, Context context); /** - * Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. + * Update an existing IoT Hubs tags. + * + *

Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. * * @param resourceGroupName Resource group identifier. * @param resourceName Name of iot hub to update. @@ -222,7 +236,9 @@ SyncPoller, IotHubDescriptionInner> beginUpda IotHubDescriptionInner update(String resourceGroupName, String resourceName, TagsResource iotHubTags); /** - * Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. + * Update an existing IoT Hubs tags. + * + *

Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. * * @param resourceGroupName Resource group identifier. * @param resourceName Name of iot hub to update. @@ -238,7 +254,9 @@ IotHubDescriptionInner update( String resourceGroupName, String resourceName, TagsResource iotHubTags, Context context); /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -246,14 +264,16 @@ IotHubDescriptionInner update( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IotHubDescriptionInner> beginDelete( String resourceGroupName, String resourceName); /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -262,14 +282,16 @@ SyncPoller, IotHubDescriptionInner> beginDele * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IotHubDescriptionInner> beginDelete( String resourceGroupName, String resourceName, Context context); /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -283,7 +305,9 @@ SyncPoller, IotHubDescriptionInner> beginDele IotHubDescriptionInner delete(String resourceGroupName, String resourceName); /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -298,44 +322,52 @@ SyncPoller, IotHubDescriptionInner> beginDele IotHubDescriptionInner delete(String resourceGroupName, String resourceName, Context context); /** - * Get all the IoT hubs in a subscription. + * Get all the IoT hubs in a subscription + * + *

Get all the IoT hubs in a subscription. * * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the IoT hubs in a subscription. + * @return all the IoT hubs in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); /** - * Get all the IoT hubs in a subscription. + * Get all the IoT hubs in a subscription + * + *

Get all the IoT hubs in a subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the IoT hubs in a subscription. + * @return all the IoT hubs in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); /** - * Get all the IoT hubs in a resource group. + * Get all the IoT hubs in a resource group + * + *

Get all the IoT hubs in a resource group. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the IoT hubs in a resource group. + * @return all the IoT hubs in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); /** - * Get all the IoT hubs in a resource group. + * Get all the IoT hubs in a resource group + * + *

Get all the IoT hubs in a resource group. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param context The context to associate with this operation. @@ -343,13 +375,15 @@ SyncPoller, IotHubDescriptionInner> beginDele * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the IoT hubs in a resource group. + * @return all the IoT hubs in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Get the statistics from an IoT hub. + * Get the statistics from an IoT hub + * + *

Get the statistics from an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -363,7 +397,9 @@ SyncPoller, IotHubDescriptionInner> beginDele RegistryStatisticsInner getStats(String resourceGroupName, String resourceName); /** - * Get the statistics from an IoT hub. + * Get the statistics from an IoT hub + * + *

Get the statistics from an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -379,7 +415,9 @@ Response getStatsWithResponse( String resourceGroupName, String resourceName, Context context); /** - * Get the list of valid SKUs for an IoT hub. + * Get the list of valid SKUs for an IoT hub + * + *

Get the list of valid SKUs for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -387,13 +425,15 @@ Response getStatsWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of valid SKUs for an IoT hub. + * @return the list of valid SKUs for an IoT hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable getValidSkus(String resourceGroupName, String resourceName); /** - * Get the list of valid SKUs for an IoT hub. + * Get the list of valid SKUs for an IoT hub + * + *

Get the list of valid SKUs for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -402,14 +442,16 @@ Response getStatsWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of valid SKUs for an IoT hub. + * @return the list of valid SKUs for an IoT hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable getValidSkus( String resourceGroupName, String resourceName, Context context); /** - * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub + * + *

Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -418,14 +460,17 @@ PagedIterable getValidSkus( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * @return a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub as + * paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listEventHubConsumerGroups( String resourceGroupName, String resourceName, String eventHubEndpointName); /** - * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub + * + *

Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -435,14 +480,17 @@ PagedIterable listEventHubConsumerGroups( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * @return a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub as + * paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listEventHubConsumerGroups( String resourceGroupName, String resourceName, String eventHubEndpointName, Context context); /** - * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. + * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub + * + *

Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -459,7 +507,9 @@ EventHubConsumerGroupInfoInner getEventHubConsumerGroup( String resourceGroupName, String resourceName, String eventHubEndpointName, String name); /** - * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. + * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub + * + *

Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -478,7 +528,9 @@ Response getEventHubConsumerGroupWithResponse( String resourceGroupName, String resourceName, String eventHubEndpointName, String name, Context context); /** - * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub. + * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub + * + *

Add a consumer group to an Event Hub-compatible endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -500,7 +552,9 @@ EventHubConsumerGroupInfoInner createEventHubConsumerGroup( EventHubConsumerGroupBodyDescription consumerGroupBody); /** - * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub. + * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub + * + *

Add a consumer group to an Event Hub-compatible endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -524,7 +578,9 @@ Response createEventHubConsumerGroupWithResponse Context context); /** - * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. + * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub + * + *

Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -540,7 +596,9 @@ void deleteEventHubConsumerGroup( String resourceGroupName, String resourceName, String eventHubEndpointName, String name); /** - * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. + * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub + * + *

Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -559,6 +617,9 @@ Response deleteEventHubConsumerGroupWithResponse( /** * Get a list of all the jobs in an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get a list of all the jobs in an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -567,13 +628,16 @@ Response deleteEventHubConsumerGroupWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all the jobs in an IoT hub. + * @return a list of all the jobs in an IoT hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listJobs(String resourceGroupName, String resourceName); /** * Get a list of all the jobs in an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get a list of all the jobs in an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -583,13 +647,16 @@ Response deleteEventHubConsumerGroupWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all the jobs in an IoT hub. + * @return a list of all the jobs in an IoT hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listJobs(String resourceGroupName, String resourceName, Context context); /** * Get the details of a job from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get the details of a job from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -606,6 +673,9 @@ Response deleteEventHubConsumerGroupWithResponse( /** * Get the details of a job from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get the details of a job from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -623,7 +693,9 @@ Response getJobWithResponse( String resourceGroupName, String resourceName, String jobId, Context context); /** - * Get the quota metrics for an IoT hub. + * Get the quota metrics for an IoT hub + * + *

Get the quota metrics for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -631,13 +703,15 @@ Response getJobWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the quota metrics for an IoT hub. + * @return the quota metrics for an IoT hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable getQuotaMetrics(String resourceGroupName, String resourceName); /** - * Get the quota metrics for an IoT hub. + * Get the quota metrics for an IoT hub + * + *

Get the quota metrics for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -646,14 +720,16 @@ Response getJobWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the quota metrics for an IoT hub. + * @return the quota metrics for an IoT hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable getQuotaMetrics( String resourceGroupName, String resourceName, Context context); /** - * Get the health for routing endpoints. + * Get the health for routing endpoints + * + *

Get the health for routing endpoints. * * @param resourceGroupName The resourceGroupName parameter. * @param iotHubName The iotHubName parameter. @@ -661,13 +737,15 @@ PagedIterable getQuotaMetrics( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the health for routing endpoints. + * @return the health for routing endpoints as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable getEndpointHealth(String resourceGroupName, String iotHubName); /** - * Get the health for routing endpoints. + * Get the health for routing endpoints + * + *

Get the health for routing endpoints. * * @param resourceGroupName The resourceGroupName parameter. * @param iotHubName The iotHubName parameter. @@ -676,14 +754,16 @@ PagedIterable getQuotaMetrics( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the health for routing endpoints. + * @return the health for routing endpoints as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable getEndpointHealth( String resourceGroupName, String iotHubName, Context context); /** - * Check if an IoT hub name is available. + * Check if an IoT hub name is available + * + *

Check if an IoT hub name is available. * * @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to * check. @@ -697,7 +777,9 @@ PagedIterable getEndpointHealth( IotHubNameAvailabilityInfoInner checkNameAvailability(OperationInputs operationInputs); /** - * Check if an IoT hub name is available. + * Check if an IoT hub name is available + * + *

Check if an IoT hub name is available. * * @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to * check. @@ -713,7 +795,9 @@ Response checkNameAvailabilityWithResponse( OperationInputs operationInputs, Context context); /** - * Test all routes configured in this Iot Hub. + * Test all routes + * + *

Test all routes configured in this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -728,7 +812,9 @@ Response checkNameAvailabilityWithResponse( TestAllRoutesResultInner testAllRoutes(String iotHubName, String resourceGroupName, TestAllRoutesInput input); /** - * Test all routes configured in this Iot Hub. + * Test all routes + * + *

Test all routes configured in this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -745,7 +831,9 @@ Response testAllRoutesWithResponse( String iotHubName, String resourceGroupName, TestAllRoutesInput input, Context context); /** - * Test the new route for this Iot Hub. + * Test the new route + * + *

Test the new route for this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -760,7 +848,9 @@ Response testAllRoutesWithResponse( TestRouteResultInner testRoute(String iotHubName, String resourceGroupName, TestRouteInput input); /** - * Test the new route for this Iot Hub. + * Test the new route + * + *

Test the new route for this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -778,6 +868,9 @@ Response testRouteWithResponse( /** * Get the security metadata for an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get the security metadata for an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -786,13 +879,16 @@ Response testRouteWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security metadata for an IoT hub. + * @return the security metadata for an IoT hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listKeys(String resourceGroupName, String resourceName); /** * Get the security metadata for an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get the security metadata for an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -802,7 +898,7 @@ Response testRouteWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security metadata for an IoT hub. + * @return the security metadata for an IoT hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listKeys( @@ -810,6 +906,9 @@ PagedIterable listKeys( /** * Get a shared access policy by name from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get a shared access policy by name from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -827,6 +926,9 @@ SharedAccessSignatureAuthorizationRuleInner getKeysForKeyName( /** * Get a shared access policy by name from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get a shared access policy by name from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -846,6 +948,10 @@ Response getKeysForKeyNameWithRespo /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more * information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For + * more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -864,6 +970,10 @@ JobResponseInner exportDevices( /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more * information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For + * more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -883,6 +993,10 @@ Response exportDevicesWithResponse( /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, * see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Import, update, or delete device identities in the IoT hub identity registry from a blob. For more + * information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -901,6 +1015,10 @@ JobResponseInner importDevices( /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, * see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Import, update, or delete device identities in the IoT hub identity registry from a blob. For more + * information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubsClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubsClient.java index c61e8b6eaa792..03dd238c03b68 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubsClient.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubsClient.java @@ -6,17 +6,17 @@ import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.iothub.models.FailoverInput; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in IotHubsClient. */ public interface IotHubsClient { /** - * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see + * Manually initiate a failover for the IoT Hub to its secondary region + * + *

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see * https://aka.ms/manualfailover. * * @param iotHubName Name of the IoT hub to failover. @@ -27,14 +27,16 @@ public interface IotHubsClient { * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginManualFailover( String iotHubName, String resourceGroupName, FailoverInput failoverInput); /** - * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see + * Manually initiate a failover for the IoT Hub to its secondary region + * + *

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see * https://aka.ms/manualfailover. * * @param iotHubName Name of the IoT hub to failover. @@ -46,14 +48,16 @@ SyncPoller, Void> beginManualFailover( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginManualFailover( String iotHubName, String resourceGroupName, FailoverInput failoverInput, Context context); /** - * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see + * Manually initiate a failover for the IoT Hub to its secondary region + * + *

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see * https://aka.ms/manualfailover. * * @param iotHubName Name of the IoT hub to failover. @@ -69,7 +73,9 @@ SyncPoller, Void> beginManualFailover( void manualFailover(String iotHubName, String resourceGroupName, FailoverInput failoverInput); /** - * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see + * Manually initiate a failover for the IoT Hub to its secondary region + * + *

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see * https://aka.ms/manualfailover. * * @param iotHubName Name of the IoT hub to failover. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/OperationsClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/OperationsClient.java index c404a7b96c1b4..f3e9b9c87cf01 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/OperationsClient.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/OperationsClient.java @@ -18,7 +18,7 @@ public interface OperationsClient { * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list IoT Hub operations. + * @return result of the request to list IoT Hub operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -31,7 +31,7 @@ public interface OperationsClient { * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list IoT Hub operations. + * @return result of the request to list IoT Hub operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateEndpointConnectionsClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateEndpointConnectionsClient.java index eeac345828ab6..6a701e6f94e2c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateEndpointConnectionsClient.java @@ -12,12 +12,13 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.iothub.fluent.models.PrivateEndpointConnectionInner; import java.util.List; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */ public interface PrivateEndpointConnectionsClient { /** - * List private endpoint connection properties. + * List private endpoint connections + * + *

List private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -31,7 +32,9 @@ public interface PrivateEndpointConnectionsClient { List list(String resourceGroupName, String resourceName); /** - * List private endpoint connection properties. + * List private endpoint connections + * + *

List private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -47,7 +50,9 @@ Response> listWithResponse( String resourceGroupName, String resourceName, Context context); /** - * Get private endpoint connection properties. + * Get private endpoint connection + * + *

Get private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -63,7 +68,9 @@ PrivateEndpointConnectionInner get( String resourceGroupName, String resourceName, String privateEndpointConnectionName); /** - * Get private endpoint connection properties. + * Get private endpoint connection + * + *

Get private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -80,7 +87,9 @@ Response getWithResponse( String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context); /** - * Update the status of a private endpoint connection with the specified name. + * Update private endpoint connection + * + *

Update the status of a private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -90,8 +99,7 @@ Response getWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private endpoint connection of an IotHub along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of the private endpoint connection of an IotHub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, PrivateEndpointConnectionInner> beginUpdate( @@ -101,7 +109,9 @@ SyncPoller, PrivateEndpointConnection PrivateEndpointConnectionInner privateEndpointConnection); /** - * Update the status of a private endpoint connection with the specified name. + * Update private endpoint connection + * + *

Update the status of a private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -112,8 +122,7 @@ SyncPoller, PrivateEndpointConnection * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private endpoint connection of an IotHub along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of the private endpoint connection of an IotHub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, PrivateEndpointConnectionInner> beginUpdate( @@ -124,7 +133,9 @@ SyncPoller, PrivateEndpointConnection Context context); /** - * Update the status of a private endpoint connection with the specified name. + * Update private endpoint connection + * + *

Update the status of a private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -144,7 +155,9 @@ PrivateEndpointConnectionInner update( PrivateEndpointConnectionInner privateEndpointConnection); /** - * Update the status of a private endpoint connection with the specified name. + * Update private endpoint connection + * + *

Update the status of a private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -166,7 +179,9 @@ PrivateEndpointConnectionInner update( Context context); /** - * Delete private endpoint connection with the specified name. + * Delete private endpoint connection + * + *

Delete private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -175,15 +190,16 @@ PrivateEndpointConnectionInner update( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private endpoint connection of an IotHub along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of the private endpoint connection of an IotHub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, PrivateEndpointConnectionInner> beginDelete( String resourceGroupName, String resourceName, String privateEndpointConnectionName); /** - * Delete private endpoint connection with the specified name. + * Delete private endpoint connection + * + *

Delete private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -193,15 +209,16 @@ SyncPoller, PrivateEndpointConnection * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private endpoint connection of an IotHub along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of the private endpoint connection of an IotHub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, PrivateEndpointConnectionInner> beginDelete( String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context); /** - * Delete private endpoint connection with the specified name. + * Delete private endpoint connection + * + *

Delete private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -217,7 +234,9 @@ PrivateEndpointConnectionInner delete( String resourceGroupName, String resourceName, String privateEndpointConnectionName); /** - * Delete private endpoint connection with the specified name. + * Delete private endpoint connection + * + *

Delete private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateLinkResourcesOperationsClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateLinkResourcesOperationsClient.java index bb5cf4f9427b9..b6072ee9b95b0 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateLinkResourcesOperationsClient.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateLinkResourcesOperationsClient.java @@ -14,7 +14,9 @@ /** An instance of this class provides access to all the operations defined in PrivateLinkResourcesOperationsClient. */ public interface PrivateLinkResourcesOperationsClient { /** - * List private link resources for the given IotHub. + * List private link resources + * + *

List private link resources for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -28,7 +30,9 @@ public interface PrivateLinkResourcesOperationsClient { PrivateLinkResourcesInner list(String resourceGroupName, String resourceName); /** - * List private link resources for the given IotHub. + * List private link resources + * + *

List private link resources for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -44,7 +48,9 @@ Response listWithResponse( String resourceGroupName, String resourceName, Context context); /** - * Get the specified private link resource for the given IotHub. + * Get the specified private link resource + * + *

Get the specified private link resource for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -59,7 +65,9 @@ Response listWithResponse( GroupIdInformationInner get(String resourceGroupName, String resourceName, String groupId); /** - * Get the specified private link resource for the given IotHub. + * Get the specified private link resource + * + *

Get the specified private link resource for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/ResourceProviderCommonsClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/ResourceProviderCommonsClient.java index 742ca66a227fe..bce652fdbceec 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/ResourceProviderCommonsClient.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/ResourceProviderCommonsClient.java @@ -13,7 +13,9 @@ /** An instance of this class provides access to all the operations defined in ResourceProviderCommonsClient. */ public interface ResourceProviderCommonsClient { /** - * Get the number of free and paid iot hubs in the subscription. + * Get the number of iot hubs in the subscription + * + *

Get the number of free and paid iot hubs in the subscription. * * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. @@ -24,7 +26,9 @@ public interface ResourceProviderCommonsClient { UserSubscriptionQuotaListResultInner getSubscriptionQuota(); /** - * Get the number of free and paid iot hubs in the subscription. + * Get the number of iot hubs in the subscription + * + *

Get the number of free and paid iot hubs in the subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateDescriptionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateDescriptionInner.java index 4e3667bc34952..9a279107e23d3 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateDescriptionInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateDescriptionInner.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.models.CertificateProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The X509 Certificate. */ @Fluent public final class CertificateDescriptionInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CertificateDescriptionInner.class); - /* * The description of an X509 CA Certificate. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateListDescriptionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateListDescriptionInner.java index 6ec54577bdd99..224446fc9059b 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateListDescriptionInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateListDescriptionInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.iothub.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The JSON-serialized array of Certificate objects. */ @Fluent public final class CertificateListDescriptionInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CertificateListDescriptionInner.class); - /* * The array of Certificate objects. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateWithNonceDescriptionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateWithNonceDescriptionInner.java index 872bcaa040a4f..f4660a738d8d7 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateWithNonceDescriptionInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateWithNonceDescriptionInner.java @@ -6,19 +6,14 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.models.CertificatePropertiesWithNonce; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The X509 Certificate. */ @Fluent public final class CertificateWithNonceDescriptionInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CertificateWithNonceDescriptionInner.class); - /* - * The description of an X509 CA Certificate including the challenge nonce - * issued for the Proof-Of-Possession flow. + * The description of an X509 CA Certificate including the challenge nonce issued for the Proof-Of-Possession flow. */ @JsonProperty(value = "properties") private CertificatePropertiesWithNonce properties; diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EndpointHealthDataInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EndpointHealthDataInner.java index 2091a2c740a4f..b019ff3040741 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EndpointHealthDataInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EndpointHealthDataInner.java @@ -6,17 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.DateTimeRfc1123; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.models.EndpointHealthStatus; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The health data for an endpoint. */ @Fluent public final class EndpointHealthDataInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EndpointHealthDataInner.class); - /* * Id of the endpoint */ @@ -24,17 +20,13 @@ public final class EndpointHealthDataInner { private String endpointId; /* - * Health statuses have following meanings. The 'healthy' status shows that - * the endpoint is accepting messages as expected. The 'unhealthy' status - * shows that the endpoint is not accepting messages as expected and IoT - * Hub is retrying to send data to this endpoint. The status of an - * unhealthy endpoint will be updated to healthy when IoT Hub has - * established an eventually consistent state of health. The 'dead' status - * shows that the endpoint is not accepting messages, after IoT Hub retried - * sending messages for the retrial period. See IoT Hub metrics to identify - * errors and monitor issues with endpoints. The 'unknown' status shows - * that the IoT Hub has not established a connection with the endpoint. No - * messages have been delivered to or rejected from this endpoint + * Health statuses have following meanings. The 'healthy' status shows that the endpoint is accepting messages as + * expected. The 'unhealthy' status shows that the endpoint is not accepting messages as expected and IoT Hub is + * retrying to send data to this endpoint. The status of an unhealthy endpoint will be updated to healthy when IoT + * Hub has established an eventually consistent state of health. The 'dead' status shows that the endpoint is not + * accepting messages, after IoT Hub retried sending messages for the retrial period. See IoT Hub metrics to + * identify errors and monitor issues with endpoints. The 'unknown' status shows that the IoT Hub has not + * established a connection with the endpoint. No messages have been delivered to or rejected from this endpoint */ @JsonProperty(value = "healthStatus") private EndpointHealthStatus healthStatus; diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EventHubConsumerGroupInfoInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EventHubConsumerGroupInfoInner.java index 36a93adaf459d..3f31cc5a8b657 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EventHubConsumerGroupInfoInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EventHubConsumerGroupInfoInner.java @@ -6,8 +6,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -15,8 +13,6 @@ /** The properties of the EventHubConsumerGroupInfo object. */ @Fluent public final class EventHubConsumerGroupInfoInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EventHubConsumerGroupInfoInner.class); - /* * The tags. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/GroupIdInformationInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/GroupIdInformationInner.java index 69ec9283f78c8..9b709713887e1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/GroupIdInformationInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/GroupIdInformationInner.java @@ -7,14 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.models.GroupIdInformationProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The group information for creating a private endpoint on an IotHub. */ @Fluent public final class GroupIdInformationInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GroupIdInformationInner.class); - /* * The resource identifier. */ @@ -93,7 +90,7 @@ public GroupIdInformationInner withProperties(GroupIdInformationProperties prope */ public void validate() { if (properties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property properties in model GroupIdInformationInner")); @@ -101,4 +98,6 @@ public void validate() { properties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(GroupIdInformationInner.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubDescriptionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubDescriptionInner.java index a6a0e9664bc5f..0aa1cf7d3ba59 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubDescriptionInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubDescriptionInner.java @@ -11,19 +11,15 @@ import com.azure.resourcemanager.iothub.models.ArmIdentity; import com.azure.resourcemanager.iothub.models.IotHubProperties; import com.azure.resourcemanager.iothub.models.IotHubSkuInfo; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The description of the IoT hub. */ @Fluent public final class IotHubDescriptionInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubDescriptionInner.class); - /* - * 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. + * 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. */ @JsonProperty(value = "etag") private String etag; @@ -167,7 +163,7 @@ public void validate() { properties().validate(); } if (sku() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property sku in model IotHubDescriptionInner")); } else { @@ -177,4 +173,6 @@ public void validate() { identity().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(IotHubDescriptionInner.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubNameAvailabilityInfoInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubNameAvailabilityInfoInner.java index 290637ad21501..220c14db378b3 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubNameAvailabilityInfoInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubNameAvailabilityInfoInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.iothub.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.models.IotHubNameUnavailabilityReason; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The properties indicating whether a given IoT hub name is available. */ @Fluent public final class IotHubNameAvailabilityInfoInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubNameAvailabilityInfoInner.class); - /* * The value which indicates whether the provided name is available. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubQuotaMetricInfoInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubQuotaMetricInfoInner.java index e82c4fb87f8b5..84c9b471bbac9 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubQuotaMetricInfoInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubQuotaMetricInfoInner.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Quota metrics properties. */ @Immutable public final class IotHubQuotaMetricInfoInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubQuotaMetricInfoInner.class); - /* * The name of the quota metric. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubSkuDescriptionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubSkuDescriptionInner.java index 72e8ad5a00c6e..a0d9c52024a1a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubSkuDescriptionInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubSkuDescriptionInner.java @@ -8,14 +8,11 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.models.IotHubCapacity; import com.azure.resourcemanager.iothub.models.IotHubSkuInfo; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** SKU properties. */ @Fluent public final class IotHubSkuDescriptionInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubSkuDescriptionInner.class); - /* * The type of the resource. */ @@ -90,14 +87,14 @@ public IotHubSkuDescriptionInner withCapacity(IotHubCapacity capacity) { */ public void validate() { if (sku() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property sku in model IotHubSkuDescriptionInner")); } else { sku().validate(); } if (capacity() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property capacity in model IotHubSkuDescriptionInner")); @@ -105,4 +102,6 @@ public void validate() { capacity().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(IotHubSkuDescriptionInner.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/JobResponseInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/JobResponseInner.java index 14c7771996198..2f9c443287c74 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/JobResponseInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/JobResponseInner.java @@ -6,18 +6,14 @@ import com.azure.core.annotation.Immutable; import com.azure.core.util.DateTimeRfc1123; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.models.JobStatus; import com.azure.resourcemanager.iothub.models.JobType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The properties of the Job Response object. */ @Immutable public final class JobResponseInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(JobResponseInner.class); - /* * The job identifier. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/OperationInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/OperationInner.java index 81b5caab0d88a..fe3c409f1305d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/OperationInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/OperationInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.iothub.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.models.OperationDisplay; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** IoT Hub REST API operation. */ @Fluent public final class OperationInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class); - /* * Operation name: {provider}/{resource}/{read | write | action | delete} */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateEndpointConnectionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateEndpointConnectionInner.java index 57368cce98007..70ec1e4bb3feb 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateEndpointConnectionInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateEndpointConnectionInner.java @@ -8,14 +8,11 @@ import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.models.PrivateEndpointConnectionProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The private endpoint connection of an IotHub. */ @Fluent public final class PrivateEndpointConnectionInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class); - /* * The properties of a private endpoint connection */ @@ -49,7 +46,7 @@ public PrivateEndpointConnectionInner withProperties(PrivateEndpointConnectionPr */ public void validate() { if (properties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property properties in model PrivateEndpointConnectionInner")); @@ -57,4 +54,6 @@ public void validate() { properties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionInner.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateLinkResourcesInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateLinkResourcesInner.java index 5516fc45a2d5d..6b642dedb9eff 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateLinkResourcesInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateLinkResourcesInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.iothub.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The available private link resources for an IotHub. */ @Fluent public final class PrivateLinkResourcesInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourcesInner.class); - /* * The list of available private link resources for an IotHub */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/RegistryStatisticsInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/RegistryStatisticsInner.java index 15d0c948a8f7b..5188da0f6567e 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/RegistryStatisticsInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/RegistryStatisticsInner.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Identity registry statistics. */ @Immutable public final class RegistryStatisticsInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RegistryStatisticsInner.class); - /* * The total count of devices in the identity registry. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java index 86a4837904c87..d7d38620b29f7 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java @@ -7,14 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.models.AccessRights; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The properties of an IoT hub shared access policy. */ @Fluent public final class SharedAccessSignatureAuthorizationRuleInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SharedAccessSignatureAuthorizationRuleInner.class); - /* * The name of the shared access policy. */ @@ -126,16 +123,18 @@ public SharedAccessSignatureAuthorizationRuleInner withRights(AccessRights right */ public void validate() { if (keyName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property keyName in model SharedAccessSignatureAuthorizationRuleInner")); } if (rights() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property rights in model SharedAccessSignatureAuthorizationRuleInner")); } } + + private static final ClientLogger LOGGER = new ClientLogger(SharedAccessSignatureAuthorizationRuleInner.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestAllRoutesResultInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestAllRoutesResultInner.java index 1c15d09d95c13..d89d3d46ca999 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestAllRoutesResultInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestAllRoutesResultInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.iothub.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.models.MatchedRoute; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Result of testing all routes. */ @Fluent public final class TestAllRoutesResultInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TestAllRoutesResultInner.class); - /* * JSON-serialized array of matched routes */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestRouteResultInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestRouteResultInner.java index 2feeec924d303..bd47269a717de 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestRouteResultInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestRouteResultInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.iothub.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.models.TestResultStatus; import com.azure.resourcemanager.iothub.models.TestRouteResultDetails; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Result of testing one route. */ @Fluent public final class TestRouteResultInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TestRouteResultInner.class); - /* * Result of testing route */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/UserSubscriptionQuotaListResultInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/UserSubscriptionQuotaListResultInner.java index eae7058bb036d..4e64d127c9bd1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/UserSubscriptionQuotaListResultInner.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/UserSubscriptionQuotaListResultInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.iothub.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.models.UserSubscriptionQuota; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Json-serialized array of User subscription quota response. */ @Fluent public final class UserSubscriptionQuotaListResultInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(UserSubscriptionQuotaListResultInner.class); - /* * The value property. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificateDescriptionImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificateDescriptionImpl.java index f526e7cd6a822..34d53a6518f51 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificateDescriptionImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificateDescriptionImpl.java @@ -35,6 +35,10 @@ public String etag() { return this.innerModel().etag(); } + public String resourceGroupName() { + return resourceGroupName; + } + public CertificateDescriptionInner innerModel() { return this.innerObject; } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesClientImpl.java index f86d5e7a5d0fa..d71cd21c22ae5 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesClientImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesClientImpl.java @@ -24,7 +24,6 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.fluent.CertificatesClient; import com.azure.resourcemanager.iothub.fluent.models.CertificateDescriptionInner; import com.azure.resourcemanager.iothub.fluent.models.CertificateListDescriptionInner; @@ -35,8 +34,6 @@ /** An instance of this class provides access to all the operations defined in CertificatesClient. */ public final class CertificatesClientImpl implements CertificatesClient { - private final ClientLogger logger = new ClientLogger(CertificatesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final CertificatesService service; @@ -164,7 +161,9 @@ Mono> verify( } /** - * Returns the list of certificates. + * Get the certificate list. + * + *

Returns the list of certificates. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -213,7 +212,9 @@ private Mono> listByIotHubWithResponse } /** - * Returns the list of certificates. + * Get the certificate list. + * + *

Returns the list of certificates. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -260,7 +261,9 @@ private Mono> listByIotHubWithResponse } /** - * Returns the list of certificates. + * Get the certificate list. + * + *

Returns the list of certificates. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -272,18 +275,13 @@ private Mono> listByIotHubWithResponse @ServiceMethod(returns = ReturnType.SINGLE) private Mono listByIotHubAsync(String resourceGroupName, String resourceName) { return listByIotHubWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Returns the list of certificates. + * Get the certificate list. + * + *

Returns the list of certificates. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -298,7 +296,9 @@ public CertificateListDescriptionInner listByIotHub(String resourceGroupName, St } /** - * Returns the list of certificates. + * Get the certificate list. + * + *

Returns the list of certificates. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -315,7 +315,9 @@ public Response listByIotHubWithResponse( } /** - * Returns the certificate. + * Get the certificate. + * + *

Returns the certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -369,7 +371,9 @@ private Mono> getWithResponseAsync( } /** - * Returns the certificate. + * Get the certificate. + * + *

Returns the certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -421,7 +425,9 @@ private Mono> getWithResponseAsync( } /** - * Returns the certificate. + * Get the certificate. + * + *

Returns the certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -435,18 +441,13 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String resourceName, String certificateName) { return getWithResponseAsync(resourceGroupName, resourceName, certificateName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Returns the certificate. + * Get the certificate. + * + *

Returns the certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -462,7 +463,9 @@ public CertificateDescriptionInner get(String resourceGroupName, String resource } /** - * Returns the certificate. + * Get the certificate. + * + *

Returns the certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -480,7 +483,9 @@ public Response getWithResponse( } /** - * Adds new or replaces existing certificate. + * Upload the certificate to the IoT hub. + * + *

Adds new or replaces existing certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -550,7 +555,9 @@ private Mono> createOrUpdateWithResponseAs } /** - * Adds new or replaces existing certificate. + * Upload the certificate to the IoT hub. + * + *

Adds new or replaces existing certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -619,7 +626,9 @@ private Mono> createOrUpdateWithResponseAs } /** - * Adds new or replaces existing certificate. + * Upload the certificate to the IoT hub. + * + *

Adds new or replaces existing certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -641,18 +650,13 @@ private Mono createOrUpdateAsync( String ifMatch) { return createOrUpdateWithResponseAsync( resourceGroupName, resourceName, certificateName, certificateDescription, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Adds new or replaces existing certificate. + * Upload the certificate to the IoT hub. + * + *

Adds new or replaces existing certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -672,18 +676,13 @@ private Mono createOrUpdateAsync( final String ifMatch = null; return createOrUpdateWithResponseAsync( resourceGroupName, resourceName, certificateName, certificateDescription, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Adds new or replaces existing certificate. + * Upload the certificate to the IoT hub. + * + *

Adds new or replaces existing certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -706,7 +705,9 @@ public CertificateDescriptionInner createOrUpdate( } /** - * Adds new or replaces existing certificate. + * Upload the certificate to the IoT hub. + * + *

Adds new or replaces existing certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -734,7 +735,9 @@ public Response createOrUpdateWithResponse( } /** - * Deletes an existing X509 certificate or does nothing if it does not exist. + * Delete an X509 certificate. + * + *

Deletes an existing X509 certificate or does nothing if it does not exist. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -793,7 +796,9 @@ private Mono> deleteWithResponseAsync( } /** - * Deletes an existing X509 certificate or does nothing if it does not exist. + * Delete an X509 certificate. + * + *

Deletes an existing X509 certificate or does nothing if it does not exist. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -850,7 +855,9 @@ private Mono> deleteWithResponseAsync( } /** - * Deletes an existing X509 certificate or does nothing if it does not exist. + * Delete an X509 certificate. + * + *

Deletes an existing X509 certificate or does nothing if it does not exist. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -865,11 +872,13 @@ private Mono> deleteWithResponseAsync( private Mono deleteAsync( String resourceGroupName, String resourceName, String certificateName, String ifMatch) { return deleteWithResponseAsync(resourceGroupName, resourceName, certificateName, ifMatch) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** - * Deletes an existing X509 certificate or does nothing if it does not exist. + * Delete an X509 certificate. + * + *

Deletes an existing X509 certificate or does nothing if it does not exist. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -885,7 +894,9 @@ public void delete(String resourceGroupName, String resourceName, String certifi } /** - * Deletes an existing X509 certificate or does nothing if it does not exist. + * Delete an X509 certificate. + * + *

Deletes an existing X509 certificate or does nothing if it does not exist. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -904,8 +915,10 @@ public Response deleteWithResponse( } /** - * Generates verification code for proof of possession flow. The verification code will be used to generate a leaf - * certificate. + * Generate verification code for proof of possession flow. + * + *

Generates verification code for proof of possession flow. The verification code will be used to generate a + * leaf certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -964,8 +977,10 @@ private Mono> generateVerificatio } /** - * Generates verification code for proof of possession flow. The verification code will be used to generate a leaf - * certificate. + * Generate verification code for proof of possession flow. + * + *

Generates verification code for proof of possession flow. The verification code will be used to generate a + * leaf certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1022,8 +1037,10 @@ private Mono> generateVerificatio } /** - * Generates verification code for proof of possession flow. The verification code will be used to generate a leaf - * certificate. + * Generate verification code for proof of possession flow. + * + *

Generates verification code for proof of possession flow. The verification code will be used to generate a + * leaf certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1038,19 +1055,14 @@ private Mono> generateVerificatio private Mono generateVerificationCodeAsync( String resourceGroupName, String resourceName, String certificateName, String ifMatch) { return generateVerificationCodeWithResponseAsync(resourceGroupName, resourceName, certificateName, ifMatch) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Generates verification code for proof of possession flow. The verification code will be used to generate a leaf - * certificate. + * Generate verification code for proof of possession flow. + * + *

Generates verification code for proof of possession flow. The verification code will be used to generate a + * leaf certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1068,8 +1080,10 @@ public CertificateWithNonceDescriptionInner generateVerificationCode( } /** - * Generates verification code for proof of possession flow. The verification code will be used to generate a leaf - * certificate. + * Generate verification code for proof of possession flow. + * + *

Generates verification code for proof of possession flow. The verification code will be used to generate a + * leaf certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1090,8 +1104,10 @@ public Response generateVerificationCodeWi } /** - * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded - * certificate. + * Verify certificate's private key possession. + * + *

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre + * uploaded certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1164,8 +1180,10 @@ private Mono> verifyWithResponseAsync( } /** - * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded - * certificate. + * Verify certificate's private key possession. + * + *

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre + * uploaded certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1237,8 +1255,10 @@ private Mono> verifyWithResponseAsync( } /** - * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded - * certificate. + * Verify certificate's private key possession. + * + *

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre + * uploaded certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1259,19 +1279,14 @@ private Mono verifyAsync( CertificateVerificationDescription certificateVerificationBody) { return verifyWithResponseAsync( resourceGroupName, resourceName, certificateName, ifMatch, certificateVerificationBody) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded - * certificate. + * Verify certificate's private key possession. + * + *

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre + * uploaded certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1295,8 +1310,10 @@ public CertificateDescriptionInner verify( } /** - * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded - * certificate. + * Verify certificate's private key possession. + * + *

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre + * uploaded certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesImpl.java index 76616ecf508f3..3cdd59adceaa6 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesImpl.java @@ -17,10 +17,9 @@ import com.azure.resourcemanager.iothub.models.CertificateVerificationDescription; import com.azure.resourcemanager.iothub.models.CertificateWithNonceDescription; import com.azure.resourcemanager.iothub.models.Certificates; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class CertificatesImpl implements Certificates { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CertificatesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(CertificatesImpl.class); private final CertificatesClient innerClient; @@ -163,7 +162,7 @@ public Response verifyWithResponse( public CertificateDescription getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -171,14 +170,14 @@ public CertificateDescription getById(String id) { } String resourceName = Utils.getValueFromIdByName(id, "IotHubs"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'IotHubs'.", id))); } String certificateName = Utils.getValueFromIdByName(id, "certificates"); if (certificateName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id))); @@ -189,7 +188,7 @@ public CertificateDescription getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -197,14 +196,14 @@ public Response getByIdWithResponse(String id, Context c } String resourceName = Utils.getValueFromIdByName(id, "IotHubs"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'IotHubs'.", id))); } String certificateName = Utils.getValueFromIdByName(id, "certificates"); if (certificateName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id))); @@ -215,7 +214,7 @@ public Response getByIdWithResponse(String id, Context c public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -223,14 +222,14 @@ public void deleteById(String id) { } String resourceName = Utils.getValueFromIdByName(id, "IotHubs"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'IotHubs'.", id))); } String certificateName = Utils.getValueFromIdByName(id, "certificates"); if (certificateName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id))); @@ -242,7 +241,7 @@ public void deleteById(String id) { public Response deleteByIdWithResponse(String id, String ifMatch, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -250,14 +249,14 @@ public Response deleteByIdWithResponse(String id, String ifMatch, Context } String resourceName = Utils.getValueFromIdByName(id, "IotHubs"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'IotHubs'.", id))); } String certificateName = Utils.getValueFromIdByName(id, "certificates"); if (certificateName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id))); diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientBuilder.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientBuilder.java index 2078371547333..6c506efcce77f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientBuilder.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientBuilder.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.ServiceClientBuilder; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; -import com.azure.core.http.policy.CookiePolicy; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.AzureEnvironment; @@ -67,34 +66,34 @@ public IotHubClientBuilder environment(AzureEnvironment environment) { } /* - * The default poll interval for long-running operation + * The HTTP pipeline to send requests through */ - private Duration defaultPollInterval; + private HttpPipeline pipeline; /** - * Sets The default poll interval for long-running operation. + * Sets The HTTP pipeline to send requests through. * - * @param defaultPollInterval the defaultPollInterval value. + * @param pipeline the pipeline value. * @return the IotHubClientBuilder. */ - public IotHubClientBuilder defaultPollInterval(Duration defaultPollInterval) { - this.defaultPollInterval = defaultPollInterval; + public IotHubClientBuilder pipeline(HttpPipeline pipeline) { + this.pipeline = pipeline; return this; } /* - * The HTTP pipeline to send requests through + * The default poll interval for long-running operation */ - private HttpPipeline pipeline; + private Duration defaultPollInterval; /** - * Sets The HTTP pipeline to send requests through. + * Sets The default poll interval for long-running operation. * - * @param pipeline the pipeline value. + * @param defaultPollInterval the defaultPollInterval value. * @return the IotHubClientBuilder. */ - public IotHubClientBuilder pipeline(HttpPipeline pipeline) { - this.pipeline = pipeline; + public IotHubClientBuilder defaultPollInterval(Duration defaultPollInterval) { + this.defaultPollInterval = defaultPollInterval; return this; } @@ -120,27 +119,26 @@ public IotHubClientBuilder serializerAdapter(SerializerAdapter serializerAdapter * @return an instance of IotHubClientImpl. */ public IotHubClientImpl buildClient() { - if (endpoint == null) { - this.endpoint = "https://management.azure.com"; - } - if (environment == null) { - this.environment = AzureEnvironment.AZURE; - } - if (defaultPollInterval == null) { - this.defaultPollInterval = Duration.ofSeconds(30); - } - if (pipeline == null) { - this.pipeline = - new HttpPipelineBuilder() - .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) - .build(); - } - if (serializerAdapter == null) { - this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); - } + String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; + AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; + HttpPipeline localPipeline = + (pipeline != null) + ? pipeline + : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + Duration localDefaultPollInterval = + (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); + SerializerAdapter localSerializerAdapter = + (serializerAdapter != null) + ? serializerAdapter + : SerializerFactory.createDefaultManagementSerializerAdapter(); IotHubClientImpl client = new IotHubClientImpl( - pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint); + localPipeline, + localSerializerAdapter, + localDefaultPollInterval, + localEnvironment, + subscriptionId, + localEndpoint); return client; } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientImpl.java index b3b708d26c718..3d89f5ebaa039 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientImpl.java @@ -15,6 +15,7 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.management.polling.PollerFactory; import com.azure.core.util.Context; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.AsyncPollResponse; import com.azure.core.util.polling.LongRunningOperationStatus; @@ -35,15 +36,12 @@ import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.time.Duration; -import java.util.Map; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** Initializes a new instance of the IotHubClientImpl type. */ @ServiceClient(builder = IotHubClientBuilder.class) public final class IotHubClientImpl implements IotHubClient { - private final ClientLogger logger = new ClientLogger(IotHubClientImpl.class); - /** The subscription identifier. */ private final String subscriptionId; @@ -222,7 +220,7 @@ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2021-07-02"; + this.apiVersion = "2022-04-30-preview"; this.operations = new OperationsClientImpl(this); this.iotHubResources = new IotHubResourcesClientImpl(this); this.resourceProviderCommons = new ResourceProviderCommonsClientImpl(this); @@ -248,10 +246,7 @@ public Context getContext() { * @return the merged context. */ public Context mergeContext(Context context) { - for (Map.Entry entry : this.getContext().getValues().entrySet()) { - context = context.addData(entry.getKey(), entry.getValue()); - } - return context; + return CoreUtils.mergeContexts(this.getContext(), context); } /** @@ -315,7 +310,7 @@ public Mono getLroFinalResultOrError(AsyncPollResponse, managementError = null; } } catch (IOException | RuntimeException ioe) { - logger.logThrowableAsWarning(ioe); + LOGGER.logThrowableAsWarning(ioe); } } } else { @@ -374,4 +369,6 @@ public Mono getBodyAsString(Charset charset) { return Mono.just(new String(responseBody, charset)); } } + + private static final ClientLogger LOGGER = new ClientLogger(IotHubClientImpl.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubDescriptionImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubDescriptionImpl.java index c7271cd979de3..488b458ae10dc 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubDescriptionImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubDescriptionImpl.java @@ -81,6 +81,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public IotHubDescriptionInner innerModel() { return this.innerObject; } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesClientImpl.java index b00cfdc13b47e..803d9cbac7cc5 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesClientImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesClientImpl.java @@ -31,7 +31,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient; @@ -67,8 +66,6 @@ /** An instance of this class provides access to all the operations defined in IotHubResourcesClient. */ public final class IotHubResourcesClientImpl implements IotHubResourcesClient { - private final ClientLogger logger = new ClientLogger(IotHubResourcesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IotHubResourcesService service; @@ -527,7 +524,9 @@ Mono> listKeysNext( } /** - * Get the non-security related metadata of an IoT hub. + * Get the non-security related metadata of an IoT hub + * + *

Get the non-security related metadata of an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -576,7 +575,9 @@ private Mono> getByResourceGroupWithResponseAsy } /** - * Get the non-security related metadata of an IoT hub. + * Get the non-security related metadata of an IoT hub + * + *

Get the non-security related metadata of an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -623,7 +624,9 @@ private Mono> getByResourceGroupWithResponseAsy } /** - * Get the non-security related metadata of an IoT hub. + * Get the non-security related metadata of an IoT hub + * + *

Get the non-security related metadata of an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -635,18 +638,13 @@ private Mono> getByResourceGroupWithResponseAsy @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String resourceName) { return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get the non-security related metadata of an IoT hub. + * Get the non-security related metadata of an IoT hub + * + *

Get the non-security related metadata of an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -661,7 +659,9 @@ public IotHubDescriptionInner getByResourceGroup(String resourceGroupName, Strin } /** - * Get the non-security related metadata of an IoT hub. + * Get the non-security related metadata of an IoT hub + * + *

Get the non-security related metadata of an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -678,10 +678,11 @@ public Response getByResourceGroupWithResponse( } /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -740,10 +741,11 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -804,10 +806,11 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -817,7 +820,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IotHubDescriptionInner> beginCreateOrUpdateAsync( @@ -835,10 +838,11 @@ private PollerFlux, IotHubDescriptionInner> b } /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -849,7 +853,7 @@ private PollerFlux, IotHubDescriptionInner> b * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IotHubDescriptionInner> beginCreateOrUpdateAsync( @@ -872,10 +876,11 @@ private PollerFlux, IotHubDescriptionInner> b } /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -885,7 +890,7 @@ private PollerFlux, IotHubDescriptionInner> b * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IotHubDescriptionInner> beginCreateOrUpdate( @@ -894,10 +899,11 @@ public SyncPoller, IotHubDescriptionInner> be } /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -908,7 +914,7 @@ public SyncPoller, IotHubDescriptionInner> be * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IotHubDescriptionInner> beginCreateOrUpdate( @@ -922,10 +928,11 @@ public SyncPoller, IotHubDescriptionInner> be } /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -946,10 +953,11 @@ private Mono createOrUpdateAsync( } /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -969,10 +977,11 @@ private Mono createOrUpdateAsync( } /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -998,10 +1007,11 @@ private Mono createOrUpdateAsync( } /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1020,10 +1030,11 @@ public IotHubDescriptionInner createOrUpdate( } /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1041,10 +1052,11 @@ public IotHubDescriptionInner createOrUpdate( } /** - * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub + * Create or update the metadata of an IoT hub. + * + *

Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub * metadata and security metadata, and then combine them with the modified values in a new body to update the IoT - * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to - * default, which may lead to unexpected behavior. + * hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1068,7 +1080,9 @@ public IotHubDescriptionInner createOrUpdate( } /** - * Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. + * Update an existing IoT Hubs tags. + * + *

Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. * * @param resourceGroupName Resource group identifier. * @param resourceName Name of iot hub to update. @@ -1123,7 +1137,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. + * Update an existing IoT Hubs tags. + * + *

Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. * * @param resourceGroupName Resource group identifier. * @param resourceName Name of iot hub to update. @@ -1176,7 +1192,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. + * Update an existing IoT Hubs tags. + * + *

Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. * * @param resourceGroupName Resource group identifier. * @param resourceName Name of iot hub to update. @@ -1184,7 +1202,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IotHubDescriptionInner> beginUpdateAsync( @@ -1201,7 +1219,9 @@ private PollerFlux, IotHubDescriptionInner> b } /** - * Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. + * Update an existing IoT Hubs tags. + * + *

Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. * * @param resourceGroupName Resource group identifier. * @param resourceName Name of iot hub to update. @@ -1210,7 +1230,7 @@ private PollerFlux, IotHubDescriptionInner> b * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IotHubDescriptionInner> beginUpdateAsync( @@ -1229,7 +1249,9 @@ private PollerFlux, IotHubDescriptionInner> b } /** - * Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. + * Update an existing IoT Hubs tags. + * + *

Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. * * @param resourceGroupName Resource group identifier. * @param resourceName Name of iot hub to update. @@ -1237,7 +1259,7 @@ private PollerFlux, IotHubDescriptionInner> b * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IotHubDescriptionInner> beginUpdate( @@ -1246,7 +1268,9 @@ public SyncPoller, IotHubDescriptionInner> be } /** - * Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. + * Update an existing IoT Hubs tags. + * + *

Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. * * @param resourceGroupName Resource group identifier. * @param resourceName Name of iot hub to update. @@ -1255,7 +1279,7 @@ public SyncPoller, IotHubDescriptionInner> be * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IotHubDescriptionInner> beginUpdate( @@ -1264,7 +1288,9 @@ public SyncPoller, IotHubDescriptionInner> be } /** - * Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. + * Update an existing IoT Hubs tags. + * + *

Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. * * @param resourceGroupName Resource group identifier. * @param resourceName Name of iot hub to update. @@ -1283,7 +1309,9 @@ private Mono updateAsync( } /** - * Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. + * Update an existing IoT Hubs tags. + * + *

Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. * * @param resourceGroupName Resource group identifier. * @param resourceName Name of iot hub to update. @@ -1303,7 +1331,9 @@ private Mono updateAsync( } /** - * Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. + * Update an existing IoT Hubs tags. + * + *

Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. * * @param resourceGroupName Resource group identifier. * @param resourceName Name of iot hub to update. @@ -1319,7 +1349,9 @@ public IotHubDescriptionInner update(String resourceGroupName, String resourceNa } /** - * Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. + * Update an existing IoT Hubs tags. + * + *

Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method. * * @param resourceGroupName Resource group identifier. * @param resourceName Name of iot hub to update. @@ -1337,7 +1369,9 @@ public IotHubDescriptionInner update( } /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1384,7 +1418,9 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1430,14 +1466,16 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IotHubDescriptionInner> beginDeleteAsync( @@ -1454,7 +1492,9 @@ private PollerFlux, IotHubDescriptionInner> b } /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1462,7 +1502,7 @@ private PollerFlux, IotHubDescriptionInner> b * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IotHubDescriptionInner> beginDeleteAsync( @@ -1480,14 +1520,16 @@ private PollerFlux, IotHubDescriptionInner> b } /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IotHubDescriptionInner> beginDelete( @@ -1496,7 +1538,9 @@ public SyncPoller, IotHubDescriptionInner> be } /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1504,7 +1548,7 @@ public SyncPoller, IotHubDescriptionInner> be * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the description of the IoT hub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IotHubDescriptionInner> beginDelete( @@ -1513,7 +1557,9 @@ public SyncPoller, IotHubDescriptionInner> be } /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1528,7 +1574,9 @@ private Mono deleteAsync(String resourceGroupName, Strin } /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1546,7 +1594,9 @@ private Mono deleteAsync(String resourceGroupName, Strin } /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1561,7 +1611,9 @@ public IotHubDescriptionInner delete(String resourceGroupName, String resourceNa } /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1577,7 +1629,9 @@ public IotHubDescriptionInner delete(String resourceGroupName, String resourceNa } /** - * Get all the IoT hubs in a subscription. + * Get all the IoT hubs in a subscription + * + *

Get all the IoT hubs in a subscription. * * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1622,7 +1676,9 @@ private Mono> listSinglePageAsync() { } /** - * Get all the IoT hubs in a subscription. + * Get all the IoT hubs in a subscription + * + *

Get all the IoT hubs in a subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1666,11 +1722,13 @@ private Mono> listSinglePageAsync(Context } /** - * Get all the IoT hubs in a subscription. + * Get all the IoT hubs in a subscription + * + *

Get all the IoT hubs in a subscription. * * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the IoT hubs in a subscription. + * @return all the IoT hubs in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -1679,13 +1737,15 @@ private PagedFlux listAsync() { } /** - * Get all the IoT hubs in a subscription. + * Get all the IoT hubs in a subscription + * + *

Get all the IoT hubs in a subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the IoT hubs in a subscription. + * @return all the IoT hubs in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -1694,11 +1754,13 @@ private PagedFlux listAsync(Context context) { } /** - * Get all the IoT hubs in a subscription. + * Get all the IoT hubs in a subscription + * + *

Get all the IoT hubs in a subscription. * * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the IoT hubs in a subscription. + * @return all the IoT hubs in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -1706,13 +1768,15 @@ public PagedIterable list() { } /** - * Get all the IoT hubs in a subscription. + * Get all the IoT hubs in a subscription + * + *

Get all the IoT hubs in a subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the IoT hubs in a subscription. + * @return all the IoT hubs in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -1720,7 +1784,9 @@ public PagedIterable list(Context context) { } /** - * Get all the IoT hubs in a resource group. + * Get all the IoT hubs in a resource group + * + *

Get all the IoT hubs in a resource group. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1772,7 +1838,9 @@ private Mono> listByResourceGroupSinglePag } /** - * Get all the IoT hubs in a resource group. + * Get all the IoT hubs in a resource group + * + *

Get all the IoT hubs in a resource group. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param context The context to associate with this operation. @@ -1823,13 +1891,15 @@ private Mono> listByResourceGroupSinglePag } /** - * Get all the IoT hubs in a resource group. + * Get all the IoT hubs in a resource group + * + *

Get all the IoT hubs in a resource group. * * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the IoT hubs in a resource group. + * @return all the IoT hubs in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -1839,14 +1909,16 @@ private PagedFlux listByResourceGroupAsync(String resour } /** - * Get all the IoT hubs in a resource group. + * Get all the IoT hubs in a resource group + * + *

Get all the IoT hubs in a resource group. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the IoT hubs in a resource group. + * @return all the IoT hubs in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -1856,13 +1928,15 @@ private PagedFlux listByResourceGroupAsync(String resour } /** - * Get all the IoT hubs in a resource group. + * Get all the IoT hubs in a resource group + * + *

Get all the IoT hubs in a resource group. * * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the IoT hubs in a resource group. + * @return all the IoT hubs in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -1870,14 +1944,16 @@ public PagedIterable listByResourceGroup(String resource } /** - * Get all the IoT hubs in a resource group. + * Get all the IoT hubs in a resource group + * + *

Get all the IoT hubs in a resource group. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the IoT hubs in a resource group. + * @return all the IoT hubs in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -1885,7 +1961,9 @@ public PagedIterable listByResourceGroup(String resource } /** - * Get the statistics from an IoT hub. + * Get the statistics from an IoT hub + * + *

Get the statistics from an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1933,7 +2011,9 @@ private Mono> getStatsWithResponseAsync( } /** - * Get the statistics from an IoT hub. + * Get the statistics from an IoT hub + * + *

Get the statistics from an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1979,7 +2059,9 @@ private Mono> getStatsWithResponseAsync( } /** - * Get the statistics from an IoT hub. + * Get the statistics from an IoT hub + * + *

Get the statistics from an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1991,18 +2073,13 @@ private Mono> getStatsWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getStatsAsync(String resourceGroupName, String resourceName) { return getStatsWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get the statistics from an IoT hub. + * Get the statistics from an IoT hub + * + *

Get the statistics from an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2017,7 +2094,9 @@ public RegistryStatisticsInner getStats(String resourceGroupName, String resourc } /** - * Get the statistics from an IoT hub. + * Get the statistics from an IoT hub + * + *

Get the statistics from an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2034,7 +2113,9 @@ public Response getStatsWithResponse( } /** - * Get the list of valid SKUs for an IoT hub. + * Get the list of valid SKUs for an IoT hub + * + *

Get the list of valid SKUs for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2092,7 +2173,9 @@ private Mono> getValidSkusSinglePageAsy } /** - * Get the list of valid SKUs for an IoT hub. + * Get the list of valid SKUs for an IoT hub + * + *

Get the list of valid SKUs for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2148,14 +2231,16 @@ private Mono> getValidSkusSinglePageAsy } /** - * Get the list of valid SKUs for an IoT hub. + * Get the list of valid SKUs for an IoT hub + * + *

Get the list of valid SKUs for an IoT hub. * * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of valid SKUs for an IoT hub. + * @return the list of valid SKUs for an IoT hub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux getValidSkusAsync(String resourceGroupName, String resourceName) { @@ -2165,7 +2250,9 @@ private PagedFlux getValidSkusAsync(String resourceGr } /** - * Get the list of valid SKUs for an IoT hub. + * Get the list of valid SKUs for an IoT hub + * + *

Get the list of valid SKUs for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2173,7 +2260,7 @@ private PagedFlux getValidSkusAsync(String resourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of valid SKUs for an IoT hub. + * @return the list of valid SKUs for an IoT hub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux getValidSkusAsync( @@ -2184,14 +2271,16 @@ private PagedFlux getValidSkusAsync( } /** - * Get the list of valid SKUs for an IoT hub. + * Get the list of valid SKUs for an IoT hub + * + *

Get the list of valid SKUs for an IoT hub. * * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of valid SKUs for an IoT hub. + * @return the list of valid SKUs for an IoT hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable getValidSkus(String resourceGroupName, String resourceName) { @@ -2199,7 +2288,9 @@ public PagedIterable getValidSkus(String resourceGrou } /** - * Get the list of valid SKUs for an IoT hub. + * Get the list of valid SKUs for an IoT hub + * + *

Get the list of valid SKUs for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2207,7 +2298,7 @@ public PagedIterable getValidSkus(String resourceGrou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of valid SKUs for an IoT hub. + * @return the list of valid SKUs for an IoT hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable getValidSkus( @@ -2216,7 +2307,9 @@ public PagedIterable getValidSkus( } /** - * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub + * + *

Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2280,7 +2373,9 @@ private Mono> listEventHubConsumer } /** - * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub + * + *

Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2342,7 +2437,9 @@ private Mono> listEventHubConsumer } /** - * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub + * + *

Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2350,7 +2447,8 @@ private Mono> listEventHubConsumer * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * @return a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub as + * paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listEventHubConsumerGroupsAsync( @@ -2361,7 +2459,9 @@ private PagedFlux listEventHubConsumerGroupsAsyn } /** - * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub + * + *

Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2370,7 +2470,8 @@ private PagedFlux listEventHubConsumerGroupsAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * @return a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub as + * paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listEventHubConsumerGroupsAsync( @@ -2383,7 +2484,9 @@ private PagedFlux listEventHubConsumerGroupsAsyn } /** - * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub + * + *

Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2391,7 +2494,8 @@ private PagedFlux listEventHubConsumerGroupsAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * @return a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub as + * paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listEventHubConsumerGroups( @@ -2401,7 +2505,9 @@ public PagedIterable listEventHubConsumerGroups( } /** - * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub + * + *

Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2410,7 +2516,8 @@ public PagedIterable listEventHubConsumerGroups( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * @return a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub as + * paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listEventHubConsumerGroups( @@ -2420,7 +2527,9 @@ public PagedIterable listEventHubConsumerGroups( } /** - * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. + * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub + * + *

Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2480,7 +2589,9 @@ private Mono> getEventHubConsumerGroupW } /** - * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. + * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub + * + *

Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2538,7 +2649,9 @@ private Mono> getEventHubConsumerGroupW } /** - * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. + * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub + * + *

Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2554,18 +2667,13 @@ private Mono> getEventHubConsumerGroupW private Mono getEventHubConsumerGroupAsync( String resourceGroupName, String resourceName, String eventHubEndpointName, String name) { return getEventHubConsumerGroupWithResponseAsync(resourceGroupName, resourceName, eventHubEndpointName, name) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. + * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub + * + *

Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2583,7 +2691,9 @@ public EventHubConsumerGroupInfoInner getEventHubConsumerGroup( } /** - * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. + * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub + * + *

Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2605,7 +2715,9 @@ public Response getEventHubConsumerGroupWithResp } /** - * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub. + * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub + * + *

Add a consumer group to an Event Hub-compatible endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2677,7 +2789,9 @@ private Mono> createEventHubConsumerGro } /** - * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub. + * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub + * + *

Add a consumer group to an Event Hub-compatible endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2748,7 +2862,9 @@ private Mono> createEventHubConsumerGro } /** - * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub. + * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub + * + *

Add a consumer group to an Event Hub-compatible endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2769,18 +2885,13 @@ private Mono createEventHubConsumerGroupAsync( EventHubConsumerGroupBodyDescription consumerGroupBody) { return createEventHubConsumerGroupWithResponseAsync( resourceGroupName, resourceName, eventHubEndpointName, name, consumerGroupBody) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub. + * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub + * + *

Add a consumer group to an Event Hub-compatible endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2805,7 +2916,9 @@ public EventHubConsumerGroupInfoInner createEventHubConsumerGroup( } /** - * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub. + * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub + * + *

Add a consumer group to an Event Hub-compatible endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2832,7 +2945,9 @@ public Response createEventHubConsumerGroupWithR } /** - * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. + * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub + * + *

Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2891,7 +3006,9 @@ private Mono> deleteEventHubConsumerGroupWithResponseAsync( } /** - * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. + * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub + * + *

Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2948,7 +3065,9 @@ private Mono> deleteEventHubConsumerGroupWithResponseAsync( } /** - * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. + * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub + * + *

Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2963,11 +3082,13 @@ private Mono> deleteEventHubConsumerGroupWithResponseAsync( private Mono deleteEventHubConsumerGroupAsync( String resourceGroupName, String resourceName, String eventHubEndpointName, String name) { return deleteEventHubConsumerGroupWithResponseAsync(resourceGroupName, resourceName, eventHubEndpointName, name) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** - * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. + * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub + * + *

Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -2984,7 +3105,9 @@ public void deleteEventHubConsumerGroup( } /** - * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. + * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub + * + *

Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -3006,6 +3129,9 @@ public Response deleteEventHubConsumerGroupWithResponse( /** * Get a list of all the jobs in an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get a list of all the jobs in an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -3065,6 +3191,9 @@ private Mono> listJobsSinglePageAsync( /** * Get a list of all the jobs in an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get a list of all the jobs in an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -3122,6 +3251,9 @@ private Mono> listJobsSinglePageAsync( /** * Get a list of all the jobs in an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get a list of all the jobs in an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -3129,7 +3261,7 @@ private Mono> listJobsSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all the jobs in an IoT hub. + * @return a list of all the jobs in an IoT hub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listJobsAsync(String resourceGroupName, String resourceName) { @@ -3140,6 +3272,9 @@ private PagedFlux listJobsAsync(String resourceGroupName, Stri /** * Get a list of all the jobs in an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get a list of all the jobs in an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -3148,7 +3283,7 @@ private PagedFlux listJobsAsync(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all the jobs in an IoT hub. + * @return a list of all the jobs in an IoT hub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listJobsAsync(String resourceGroupName, String resourceName, Context context) { @@ -3159,6 +3294,9 @@ private PagedFlux listJobsAsync(String resourceGroupName, Stri /** * Get a list of all the jobs in an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get a list of all the jobs in an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -3166,7 +3304,7 @@ private PagedFlux listJobsAsync(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all the jobs in an IoT hub. + * @return a list of all the jobs in an IoT hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listJobs(String resourceGroupName, String resourceName) { @@ -3175,6 +3313,9 @@ public PagedIterable listJobs(String resourceGroupName, String /** * Get a list of all the jobs in an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get a list of all the jobs in an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -3183,7 +3324,7 @@ public PagedIterable listJobs(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all the jobs in an IoT hub. + * @return a list of all the jobs in an IoT hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listJobs(String resourceGroupName, String resourceName, Context context) { @@ -3192,6 +3333,9 @@ public PagedIterable listJobs(String resourceGroupName, String /** * Get the details of a job from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get the details of a job from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -3247,6 +3391,9 @@ private Mono> getJobWithResponseAsync( /** * Get the details of a job from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get the details of a job from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -3300,6 +3447,9 @@ private Mono> getJobWithResponseAsync( /** * Get the details of a job from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get the details of a job from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -3313,18 +3463,14 @@ private Mono> getJobWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getJobAsync(String resourceGroupName, String resourceName, String jobId) { return getJobWithResponseAsync(resourceGroupName, resourceName, jobId) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get the details of a job from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get the details of a job from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -3342,6 +3488,9 @@ public JobResponseInner getJob(String resourceGroupName, String resourceName, St /** * Get the details of a job from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get the details of a job from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -3360,7 +3509,9 @@ public Response getJobWithResponse( } /** - * Get the quota metrics for an IoT hub. + * Get the quota metrics for an IoT hub + * + *

Get the quota metrics for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -3418,7 +3569,9 @@ private Mono> getQuotaMetricsSinglePag } /** - * Get the quota metrics for an IoT hub. + * Get the quota metrics for an IoT hub + * + *

Get the quota metrics for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -3474,14 +3627,16 @@ private Mono> getQuotaMetricsSinglePag } /** - * Get the quota metrics for an IoT hub. + * Get the quota metrics for an IoT hub + * + *

Get the quota metrics for an IoT hub. * * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the quota metrics for an IoT hub. + * @return the quota metrics for an IoT hub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux getQuotaMetricsAsync(String resourceGroupName, String resourceName) { @@ -3491,7 +3646,9 @@ private PagedFlux getQuotaMetricsAsync(String resour } /** - * Get the quota metrics for an IoT hub. + * Get the quota metrics for an IoT hub + * + *

Get the quota metrics for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -3499,7 +3656,7 @@ private PagedFlux getQuotaMetricsAsync(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the quota metrics for an IoT hub. + * @return the quota metrics for an IoT hub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux getQuotaMetricsAsync( @@ -3510,14 +3667,16 @@ private PagedFlux getQuotaMetricsAsync( } /** - * Get the quota metrics for an IoT hub. + * Get the quota metrics for an IoT hub + * + *

Get the quota metrics for an IoT hub. * * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the quota metrics for an IoT hub. + * @return the quota metrics for an IoT hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable getQuotaMetrics(String resourceGroupName, String resourceName) { @@ -3525,7 +3684,9 @@ public PagedIterable getQuotaMetrics(String resource } /** - * Get the quota metrics for an IoT hub. + * Get the quota metrics for an IoT hub + * + *

Get the quota metrics for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -3533,7 +3694,7 @@ public PagedIterable getQuotaMetrics(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the quota metrics for an IoT hub. + * @return the quota metrics for an IoT hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable getQuotaMetrics( @@ -3542,7 +3703,9 @@ public PagedIterable getQuotaMetrics( } /** - * Get the health for routing endpoints. + * Get the health for routing endpoints + * + *

Get the health for routing endpoints. * * @param resourceGroupName The resourceGroupName parameter. * @param iotHubName The iotHubName parameter. @@ -3600,7 +3763,9 @@ private Mono> getEndpointHealthSinglePage } /** - * Get the health for routing endpoints. + * Get the health for routing endpoints + * + *

Get the health for routing endpoints. * * @param resourceGroupName The resourceGroupName parameter. * @param iotHubName The iotHubName parameter. @@ -3656,14 +3821,16 @@ private Mono> getEndpointHealthSinglePage } /** - * Get the health for routing endpoints. + * Get the health for routing endpoints + * + *

Get the health for routing endpoints. * * @param resourceGroupName The resourceGroupName parameter. * @param iotHubName The iotHubName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the health for routing endpoints. + * @return the health for routing endpoints as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux getEndpointHealthAsync(String resourceGroupName, String iotHubName) { @@ -3673,7 +3840,9 @@ private PagedFlux getEndpointHealthAsync(String resourc } /** - * Get the health for routing endpoints. + * Get the health for routing endpoints + * + *

Get the health for routing endpoints. * * @param resourceGroupName The resourceGroupName parameter. * @param iotHubName The iotHubName parameter. @@ -3681,7 +3850,7 @@ private PagedFlux getEndpointHealthAsync(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the health for routing endpoints. + * @return the health for routing endpoints as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux getEndpointHealthAsync( @@ -3692,14 +3861,16 @@ private PagedFlux getEndpointHealthAsync( } /** - * Get the health for routing endpoints. + * Get the health for routing endpoints + * + *

Get the health for routing endpoints. * * @param resourceGroupName The resourceGroupName parameter. * @param iotHubName The iotHubName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the health for routing endpoints. + * @return the health for routing endpoints as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable getEndpointHealth(String resourceGroupName, String iotHubName) { @@ -3707,7 +3878,9 @@ public PagedIterable getEndpointHealth(String resourceG } /** - * Get the health for routing endpoints. + * Get the health for routing endpoints + * + *

Get the health for routing endpoints. * * @param resourceGroupName The resourceGroupName parameter. * @param iotHubName The iotHubName parameter. @@ -3715,7 +3888,7 @@ public PagedIterable getEndpointHealth(String resourceG * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the health for routing endpoints. + * @return the health for routing endpoints as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable getEndpointHealth( @@ -3724,7 +3897,9 @@ public PagedIterable getEndpointHealth( } /** - * Check if an IoT hub name is available. + * Check if an IoT hub name is available + * + *

Check if an IoT hub name is available. * * @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to * check. @@ -3771,7 +3946,9 @@ private Mono> checkNameAvailabilityWit } /** - * Check if an IoT hub name is available. + * Check if an IoT hub name is available + * + *

Check if an IoT hub name is available. * * @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to * check. @@ -3816,7 +3993,9 @@ private Mono> checkNameAvailabilityWit } /** - * Check if an IoT hub name is available. + * Check if an IoT hub name is available + * + *

Check if an IoT hub name is available. * * @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to * check. @@ -3828,19 +4007,13 @@ private Mono> checkNameAvailabilityWit */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkNameAvailabilityAsync(OperationInputs operationInputs) { - return checkNameAvailabilityWithResponseAsync(operationInputs) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return checkNameAvailabilityWithResponseAsync(operationInputs).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Check if an IoT hub name is available. + * Check if an IoT hub name is available + * + *

Check if an IoT hub name is available. * * @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to * check. @@ -3855,7 +4028,9 @@ public IotHubNameAvailabilityInfoInner checkNameAvailability(OperationInputs ope } /** - * Check if an IoT hub name is available. + * Check if an IoT hub name is available + * + *

Check if an IoT hub name is available. * * @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to * check. @@ -3872,7 +4047,9 @@ public Response checkNameAvailabilityWithRespon } /** - * Test all routes configured in this Iot Hub. + * Test all routes + * + *

Test all routes configured in this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -3927,7 +4104,9 @@ private Mono> testAllRoutesWithResponseAsync( } /** - * Test all routes configured in this Iot Hub. + * Test all routes + * + *

Test all routes configured in this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -3980,7 +4159,9 @@ private Mono> testAllRoutesWithResponseAsync( } /** - * Test all routes configured in this Iot Hub. + * Test all routes + * + *

Test all routes configured in this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -3994,18 +4175,13 @@ private Mono> testAllRoutesWithResponseAsync( private Mono testAllRoutesAsync( String iotHubName, String resourceGroupName, TestAllRoutesInput input) { return testAllRoutesWithResponseAsync(iotHubName, resourceGroupName, input) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Test all routes configured in this Iot Hub. + * Test all routes + * + *

Test all routes configured in this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -4022,7 +4198,9 @@ public TestAllRoutesResultInner testAllRoutes( } /** - * Test all routes configured in this Iot Hub. + * Test all routes + * + *

Test all routes configured in this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -4040,7 +4218,9 @@ public Response testAllRoutesWithResponse( } /** - * Test the new route for this Iot Hub. + * Test the new route + * + *

Test the new route for this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -4095,7 +4275,9 @@ private Mono> testRouteWithResponseAsync( } /** - * Test the new route for this Iot Hub. + * Test the new route + * + *

Test the new route for this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -4148,7 +4330,9 @@ private Mono> testRouteWithResponseAsync( } /** - * Test the new route for this Iot Hub. + * Test the new route + * + *

Test the new route for this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -4162,18 +4346,13 @@ private Mono> testRouteWithResponseAsync( private Mono testRouteAsync( String iotHubName, String resourceGroupName, TestRouteInput input) { return testRouteWithResponseAsync(iotHubName, resourceGroupName, input) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Test the new route for this Iot Hub. + * Test the new route + * + *

Test the new route for this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -4189,7 +4368,9 @@ public TestRouteResultInner testRoute(String iotHubName, String resourceGroupNam } /** - * Test the new route for this Iot Hub. + * Test the new route + * + *

Test the new route for this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -4208,6 +4389,9 @@ public Response testRouteWithResponse( /** * Get the security metadata for an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get the security metadata for an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4267,6 +4451,9 @@ private Mono> listKey /** * Get the security metadata for an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get the security metadata for an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4324,6 +4511,9 @@ private Mono> listKey /** * Get the security metadata for an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get the security metadata for an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4331,7 +4521,7 @@ private Mono> listKey * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security metadata for an IoT hub. + * @return the security metadata for an IoT hub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listKeysAsync( @@ -4343,6 +4533,9 @@ private PagedFlux listKeysAsync( /** * Get the security metadata for an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get the security metadata for an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4351,7 +4544,7 @@ private PagedFlux listKeysAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security metadata for an IoT hub. + * @return the security metadata for an IoT hub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listKeysAsync( @@ -4363,6 +4556,9 @@ private PagedFlux listKeysAsync( /** * Get the security metadata for an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get the security metadata for an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4370,7 +4566,7 @@ private PagedFlux listKeysAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security metadata for an IoT hub. + * @return the security metadata for an IoT hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listKeys( @@ -4380,6 +4576,9 @@ public PagedIterable listKeys( /** * Get the security metadata for an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get the security metadata for an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4388,7 +4587,7 @@ public PagedIterable listKeys( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security metadata for an IoT hub. + * @return the security metadata for an IoT hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listKeys( @@ -4398,6 +4597,9 @@ public PagedIterable listKeys( /** * Get a shared access policy by name from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get a shared access policy by name from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4453,6 +4655,9 @@ private Mono> getKeysForKe /** * Get a shared access policy by name from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get a shared access policy by name from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4506,6 +4711,9 @@ private Mono> getKeysForKe /** * Get a shared access policy by name from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get a shared access policy by name from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4520,18 +4728,14 @@ private Mono> getKeysForKe private Mono getKeysForKeyNameAsync( String resourceGroupName, String resourceName, String keyName) { return getKeysForKeyNameWithResponseAsync(resourceGroupName, resourceName, keyName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get a shared access policy by name from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get a shared access policy by name from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4550,6 +4754,9 @@ public SharedAccessSignatureAuthorizationRuleInner getKeysForKeyName( /** * Get a shared access policy by name from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get a shared access policy by name from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4570,6 +4777,10 @@ public Response getKeysForKeyNameWi /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more * information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For + * more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4630,6 +4841,10 @@ private Mono> exportDevicesWithResponseAsync( /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more * information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For + * more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4688,6 +4903,10 @@ private Mono> exportDevicesWithResponseAsync( /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more * information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For + * more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4702,19 +4921,16 @@ private Mono> exportDevicesWithResponseAsync( private Mono exportDevicesAsync( String resourceGroupName, String resourceName, ExportDevicesRequest exportDevicesParameters) { return exportDevicesWithResponseAsync(resourceGroupName, resourceName, exportDevicesParameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more * information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For + * more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4734,6 +4950,10 @@ public JobResponseInner exportDevices( /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more * information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For + * more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4755,6 +4975,10 @@ public Response exportDevicesWithResponse( /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, * see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Import, update, or delete device identities in the IoT hub identity registry from a blob. For more + * information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4815,6 +5039,10 @@ private Mono> importDevicesWithResponseAsync( /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, * see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Import, update, or delete device identities in the IoT hub identity registry from a blob. For more + * information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4873,6 +5101,10 @@ private Mono> importDevicesWithResponseAsync( /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, * see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Import, update, or delete device identities in the IoT hub identity registry from a blob. For more + * information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4887,19 +5119,16 @@ private Mono> importDevicesWithResponseAsync( private Mono importDevicesAsync( String resourceGroupName, String resourceName, ImportDevicesRequest importDevicesParameters) { return importDevicesWithResponseAsync(resourceGroupName, resourceName, importDevicesParameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, * see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Import, update, or delete device identities in the IoT hub identity registry from a blob. For more + * information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -4919,6 +5148,10 @@ public JobResponseInner importDevices( /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, * see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Import, update, or delete device identities in the IoT hub identity registry from a blob. For more + * information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesImpl.java index c55731b504d88..7e38b0c8edc41 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesImpl.java @@ -38,10 +38,9 @@ import com.azure.resourcemanager.iothub.models.TestAllRoutesResult; import com.azure.resourcemanager.iothub.models.TestRouteInput; import com.azure.resourcemanager.iothub.models.TestRouteResult; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IotHubResourcesImpl implements IotHubResources { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubResourcesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IotHubResourcesImpl.class); private final IotHubResourcesClient innerClient; @@ -442,7 +441,7 @@ public Response importDevicesWithResponse( public IotHubDescription getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -450,7 +449,7 @@ public IotHubDescription getById(String id) { } String resourceName = Utils.getValueFromIdByName(id, "IotHubs"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'IotHubs'.", id))); @@ -461,7 +460,7 @@ public IotHubDescription getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -469,7 +468,7 @@ public Response getByIdWithResponse(String id, Context contex } String resourceName = Utils.getValueFromIdByName(id, "IotHubs"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'IotHubs'.", id))); @@ -480,7 +479,7 @@ public Response getByIdWithResponse(String id, Context contex public EventHubConsumerGroupInfo getEventHubConsumerGroupById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -488,14 +487,14 @@ public EventHubConsumerGroupInfo getEventHubConsumerGroupById(String id) { } String resourceName = Utils.getValueFromIdByName(id, "IotHubs"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'IotHubs'.", id))); } String eventHubEndpointName = Utils.getValueFromIdByName(id, "eventHubEndpoints"); if (eventHubEndpointName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -504,7 +503,7 @@ public EventHubConsumerGroupInfo getEventHubConsumerGroupById(String id) { } String name = Utils.getValueFromIdByName(id, "ConsumerGroups"); if (name == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -519,7 +518,7 @@ public EventHubConsumerGroupInfo getEventHubConsumerGroupById(String id) { public Response getEventHubConsumerGroupByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -527,14 +526,14 @@ public Response getEventHubConsumerGroupByIdWithRespo } String resourceName = Utils.getValueFromIdByName(id, "IotHubs"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'IotHubs'.", id))); } String eventHubEndpointName = Utils.getValueFromIdByName(id, "eventHubEndpoints"); if (eventHubEndpointName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -543,7 +542,7 @@ public Response getEventHubConsumerGroupByIdWithRespo } String name = Utils.getValueFromIdByName(id, "ConsumerGroups"); if (name == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -556,7 +555,7 @@ public Response getEventHubConsumerGroupByIdWithRespo public IotHubDescription deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -564,7 +563,7 @@ public IotHubDescription deleteById(String id) { } String resourceName = Utils.getValueFromIdByName(id, "IotHubs"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'IotHubs'.", id))); @@ -575,7 +574,7 @@ public IotHubDescription deleteById(String id) { public IotHubDescription deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -583,7 +582,7 @@ public IotHubDescription deleteByIdWithResponse(String id, Context context) { } String resourceName = Utils.getValueFromIdByName(id, "IotHubs"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'IotHubs'.", id))); @@ -594,7 +593,7 @@ public IotHubDescription deleteByIdWithResponse(String id, Context context) { public void deleteEventHubConsumerGroupById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -602,14 +601,14 @@ public void deleteEventHubConsumerGroupById(String id) { } String resourceName = Utils.getValueFromIdByName(id, "IotHubs"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'IotHubs'.", id))); } String eventHubEndpointName = Utils.getValueFromIdByName(id, "eventHubEndpoints"); if (eventHubEndpointName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -618,7 +617,7 @@ public void deleteEventHubConsumerGroupById(String id) { } String name = Utils.getValueFromIdByName(id, "ConsumerGroups"); if (name == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -632,7 +631,7 @@ public void deleteEventHubConsumerGroupById(String id) { public Response deleteEventHubConsumerGroupByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -640,14 +639,14 @@ public Response deleteEventHubConsumerGroupByIdWithResponse(String id, Con } String resourceName = Utils.getValueFromIdByName(id, "IotHubs"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'IotHubs'.", id))); } String eventHubEndpointName = Utils.getValueFromIdByName(id, "eventHubEndpoints"); if (eventHubEndpointName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -656,7 +655,7 @@ public Response deleteEventHubConsumerGroupByIdWithResponse(String id, Con } String name = Utils.getValueFromIdByName(id, "ConsumerGroups"); if (name == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubsClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubsClientImpl.java index 76ad073934988..faf390664a4c0 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubsClientImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubsClientImpl.java @@ -22,7 +22,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.iothub.fluent.IotHubsClient; @@ -34,8 +33,6 @@ /** An instance of this class provides access to all the operations defined in IotHubsClient. */ public final class IotHubsClientImpl implements IotHubsClient { - private final ClientLogger logger = new ClientLogger(IotHubsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IotHubsService service; @@ -77,7 +74,9 @@ Mono>> manualFailover( } /** - * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see + * Manually initiate a failover for the IoT Hub to its secondary region + * + *

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see * https://aka.ms/manualfailover. * * @param iotHubName Name of the IoT hub to failover. @@ -134,7 +133,9 @@ private Mono>> manualFailoverWithResponseAsync( } /** - * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see + * Manually initiate a failover for the IoT Hub to its secondary region + * + *

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see * https://aka.ms/manualfailover. * * @param iotHubName Name of the IoT hub to failover. @@ -189,7 +190,9 @@ private Mono>> manualFailoverWithResponseAsync( } /** - * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see + * Manually initiate a failover for the IoT Hub to its secondary region + * + *

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see * https://aka.ms/manualfailover. * * @param iotHubName Name of the IoT hub to failover. @@ -199,7 +202,7 @@ private Mono>> manualFailoverWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginManualFailoverAsync( @@ -213,7 +216,9 @@ private PollerFlux, Void> beginManualFailoverAsync( } /** - * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see + * Manually initiate a failover for the IoT Hub to its secondary region + * + *

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see * https://aka.ms/manualfailover. * * @param iotHubName Name of the IoT hub to failover. @@ -224,7 +229,7 @@ private PollerFlux, Void> beginManualFailoverAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginManualFailoverAsync( @@ -238,7 +243,9 @@ private PollerFlux, Void> beginManualFailoverAsync( } /** - * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see + * Manually initiate a failover for the IoT Hub to its secondary region + * + *

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see * https://aka.ms/manualfailover. * * @param iotHubName Name of the IoT hub to failover. @@ -248,7 +255,7 @@ private PollerFlux, Void> beginManualFailoverAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginManualFailover( @@ -257,7 +264,9 @@ public SyncPoller, Void> beginManualFailover( } /** - * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see + * Manually initiate a failover for the IoT Hub to its secondary region + * + *

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see * https://aka.ms/manualfailover. * * @param iotHubName Name of the IoT hub to failover. @@ -268,7 +277,7 @@ public SyncPoller, Void> beginManualFailover( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginManualFailover( @@ -277,7 +286,9 @@ public SyncPoller, Void> beginManualFailover( } /** - * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see + * Manually initiate a failover for the IoT Hub to its secondary region + * + *

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see * https://aka.ms/manualfailover. * * @param iotHubName Name of the IoT hub to failover. @@ -297,7 +308,9 @@ private Mono manualFailoverAsync(String iotHubName, String resourceGroupNa } /** - * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see + * Manually initiate a failover for the IoT Hub to its secondary region + * + *

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see * https://aka.ms/manualfailover. * * @param iotHubName Name of the IoT hub to failover. @@ -319,7 +332,9 @@ private Mono manualFailoverAsync( } /** - * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see + * Manually initiate a failover for the IoT Hub to its secondary region + * + *

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see * https://aka.ms/manualfailover. * * @param iotHubName Name of the IoT hub to failover. @@ -336,7 +351,9 @@ public void manualFailover(String iotHubName, String resourceGroupName, Failover } /** - * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see + * Manually initiate a failover for the IoT Hub to its secondary region + * + *

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see * https://aka.ms/manualfailover. * * @param iotHubName Name of the IoT hub to failover. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubsImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubsImpl.java index 2ee870445f974..29331c09dcc1c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubsImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubsImpl.java @@ -9,10 +9,9 @@ import com.azure.resourcemanager.iothub.fluent.IotHubsClient; import com.azure.resourcemanager.iothub.models.FailoverInput; import com.azure.resourcemanager.iothub.models.IotHubs; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IotHubsImpl implements IotHubs { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IotHubsImpl.class); private final IotHubsClient innerClient; diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/OperationsClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/OperationsClientImpl.java index 84d3035d696e4..0b16511c0b095 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/OperationsClientImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/OperationsClientImpl.java @@ -24,7 +24,6 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.fluent.OperationsClient; import com.azure.resourcemanager.iothub.fluent.models.OperationInner; import com.azure.resourcemanager.iothub.models.ErrorDetailsException; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in OperationsClient. */ public final class OperationsClientImpl implements OperationsClient { - private final ClientLogger logger = new ClientLogger(OperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final OperationsService service; @@ -150,7 +147,7 @@ private Mono> listSinglePageAsync(Context context) * * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list IoT Hub operations. + * @return result of the request to list IoT Hub operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -164,7 +161,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list IoT Hub operations. + * @return result of the request to list IoT Hub operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -177,7 +174,7 @@ private PagedFlux listAsync(Context context) { * * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list IoT Hub operations. + * @return result of the request to list IoT Hub operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -191,7 +188,7 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list IoT Hub operations. + * @return result of the request to list IoT Hub operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/OperationsImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/OperationsImpl.java index dcb6e102be616..f000905278153 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/OperationsImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/OperationsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.iothub.fluent.models.OperationInner; import com.azure.resourcemanager.iothub.models.Operation; import com.azure.resourcemanager.iothub.models.Operations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class OperationsImpl implements Operations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class); private final OperationsClient innerClient; diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsClientImpl.java index 3eb6f8693987c..5b42edcb4904c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsClientImpl.java @@ -24,7 +24,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient; @@ -37,8 +36,6 @@ /** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpointConnectionsClient { - private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final PrivateEndpointConnectionsService service; @@ -131,7 +128,9 @@ Mono>> delete( } /** - * List private endpoint connection properties. + * List private endpoint connections + * + *

List private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -180,7 +179,9 @@ private Mono>> listWithResponseAsy } /** - * List private endpoint connection properties. + * List private endpoint connections + * + *

List private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -227,7 +228,9 @@ private Mono>> listWithResponseAsy } /** - * List private endpoint connection properties. + * List private endpoint connections + * + *

List private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -238,19 +241,13 @@ private Mono>> listWithResponseAsy */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listAsync(String resourceGroupName, String resourceName) { - return listWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response> res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return listWithResponseAsync(resourceGroupName, resourceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * List private endpoint connection properties. + * List private endpoint connections + * + *

List private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -265,7 +262,9 @@ public List list(String resourceGroupName, Strin } /** - * List private endpoint connection properties. + * List private endpoint connections + * + *

List private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -282,7 +281,9 @@ public Response> listWithResponse( } /** - * Get private endpoint connection properties. + * Get private endpoint connection + * + *

Get private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -339,7 +340,9 @@ private Mono> getWithResponseAsync( } /** - * Get private endpoint connection properties. + * Get private endpoint connection + * + *

Get private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -394,7 +397,9 @@ private Mono> getWithResponseAsync( } /** - * Get private endpoint connection properties. + * Get private endpoint connection + * + *

Get private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -408,18 +413,13 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String resourceName, String privateEndpointConnectionName) { return getWithResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get private endpoint connection properties. + * Get private endpoint connection + * + *

Get private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -436,7 +436,9 @@ public PrivateEndpointConnectionInner get( } /** - * Get private endpoint connection properties. + * Get private endpoint connection + * + *

Get private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -454,7 +456,9 @@ public Response getWithResponse( } /** - * Update the status of a private endpoint connection with the specified name. + * Update private endpoint connection + * + *

Update the status of a private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -524,7 +528,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update the status of a private endpoint connection with the specified name. + * Update private endpoint connection + * + *

Update the status of a private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -593,7 +599,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update the status of a private endpoint connection with the specified name. + * Update private endpoint connection + * + *

Update the status of a private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -602,8 +610,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private endpoint connection of an IotHub along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link PollerFlux} for polling of the private endpoint connection of an IotHub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, PrivateEndpointConnectionInner> beginUpdateAsync( @@ -625,7 +632,9 @@ private PollerFlux, PrivateEndpointCo } /** - * Update the status of a private endpoint connection with the specified name. + * Update private endpoint connection + * + *

Update the status of a private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -635,8 +644,7 @@ private PollerFlux, PrivateEndpointCo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private endpoint connection of an IotHub along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link PollerFlux} for polling of the private endpoint connection of an IotHub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, PrivateEndpointConnectionInner> beginUpdateAsync( @@ -660,7 +668,9 @@ private PollerFlux, PrivateEndpointCo } /** - * Update the status of a private endpoint connection with the specified name. + * Update private endpoint connection + * + *

Update the status of a private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -669,8 +679,7 @@ private PollerFlux, PrivateEndpointCo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private endpoint connection of an IotHub along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of the private endpoint connection of an IotHub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrivateEndpointConnectionInner> beginUpdate( @@ -684,7 +693,9 @@ public SyncPoller, PrivateEndpointCon } /** - * Update the status of a private endpoint connection with the specified name. + * Update private endpoint connection + * + *

Update the status of a private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -694,8 +705,7 @@ public SyncPoller, PrivateEndpointCon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private endpoint connection of an IotHub along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of the private endpoint connection of an IotHub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrivateEndpointConnectionInner> beginUpdate( @@ -710,7 +720,9 @@ public SyncPoller, PrivateEndpointCon } /** - * Update the status of a private endpoint connection with the specified name. + * Update private endpoint connection + * + *

Update the status of a private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -734,7 +746,9 @@ private Mono updateAsync( } /** - * Update the status of a private endpoint connection with the specified name. + * Update private endpoint connection + * + *

Update the status of a private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -760,7 +774,9 @@ private Mono updateAsync( } /** - * Update the status of a private endpoint connection with the specified name. + * Update private endpoint connection + * + *

Update the status of a private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -782,7 +798,9 @@ public PrivateEndpointConnectionInner update( } /** - * Update the status of a private endpoint connection with the specified name. + * Update private endpoint connection + * + *

Update the status of a private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -807,7 +825,9 @@ public PrivateEndpointConnectionInner update( } /** - * Delete private endpoint connection with the specified name. + * Delete private endpoint connection + * + *

Delete private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -864,7 +884,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete private endpoint connection with the specified name. + * Delete private endpoint connection + * + *

Delete private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -919,7 +941,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete private endpoint connection with the specified name. + * Delete private endpoint connection + * + *

Delete private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -927,8 +951,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private endpoint connection of an IotHub along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link PollerFlux} for polling of the private endpoint connection of an IotHub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, PrivateEndpointConnectionInner> beginDeleteAsync( @@ -946,7 +969,9 @@ private PollerFlux, PrivateEndpointCo } /** - * Delete private endpoint connection with the specified name. + * Delete private endpoint connection + * + *

Delete private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -955,8 +980,7 @@ private PollerFlux, PrivateEndpointCo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private endpoint connection of an IotHub along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link PollerFlux} for polling of the private endpoint connection of an IotHub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, PrivateEndpointConnectionInner> beginDeleteAsync( @@ -975,7 +999,9 @@ private PollerFlux, PrivateEndpointCo } /** - * Delete private endpoint connection with the specified name. + * Delete private endpoint connection + * + *

Delete private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -983,8 +1009,7 @@ private PollerFlux, PrivateEndpointCo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private endpoint connection of an IotHub along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of the private endpoint connection of an IotHub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrivateEndpointConnectionInner> beginDelete( @@ -993,7 +1018,9 @@ public SyncPoller, PrivateEndpointCon } /** - * Delete private endpoint connection with the specified name. + * Delete private endpoint connection + * + *

Delete private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1002,8 +1029,7 @@ public SyncPoller, PrivateEndpointCon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private endpoint connection of an IotHub along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of the private endpoint connection of an IotHub. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrivateEndpointConnectionInner> beginDelete( @@ -1013,7 +1039,9 @@ public SyncPoller, PrivateEndpointCon } /** - * Delete private endpoint connection with the specified name. + * Delete private endpoint connection + * + *

Delete private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1032,7 +1060,9 @@ private Mono deleteAsync( } /** - * Delete private endpoint connection with the specified name. + * Delete private endpoint connection + * + *

Delete private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1052,7 +1082,9 @@ private Mono deleteAsync( } /** - * Delete private endpoint connection with the specified name. + * Delete private endpoint connection + * + *

Delete private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -1069,7 +1101,9 @@ public PrivateEndpointConnectionInner delete( } /** - * Delete private endpoint connection with the specified name. + * Delete private endpoint connection + * + *

Delete private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsImpl.java index 364d3408cb34a..bdabcbe41bf35 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsImpl.java @@ -12,13 +12,12 @@ import com.azure.resourcemanager.iothub.fluent.models.PrivateEndpointConnectionInner; import com.azure.resourcemanager.iothub.models.PrivateEndpointConnection; import com.azure.resourcemanager.iothub.models.PrivateEndpointConnections; -import com.fasterxml.jackson.annotation.JsonIgnore; import java.util.Collections; import java.util.List; import java.util.stream.Collectors; public final class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionsImpl.class); private final PrivateEndpointConnectionsClient innerClient; diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsClientImpl.java index 5fe1432eb918f..4ed518c7843a9 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsClientImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsClientImpl.java @@ -20,7 +20,6 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.fluent.PrivateLinkResourcesOperationsClient; import com.azure.resourcemanager.iothub.fluent.models.GroupIdInformationInner; import com.azure.resourcemanager.iothub.fluent.models.PrivateLinkResourcesInner; @@ -29,8 +28,6 @@ /** An instance of this class provides access to all the operations defined in PrivateLinkResourcesOperationsClient. */ public final class PrivateLinkResourcesOperationsClientImpl implements PrivateLinkResourcesOperationsClient { - private final ClientLogger logger = new ClientLogger(PrivateLinkResourcesOperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final PrivateLinkResourcesOperationsService service; @@ -92,7 +89,9 @@ Mono> get( } /** - * List private link resources for the given IotHub. + * List private link resources + * + *

List private link resources for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -141,7 +140,9 @@ private Mono> listWithResponseAsync( } /** - * List private link resources for the given IotHub. + * List private link resources + * + *

List private link resources for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -188,7 +189,9 @@ private Mono> listWithResponseAsync( } /** - * List private link resources for the given IotHub. + * List private link resources + * + *

List private link resources for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -199,19 +202,13 @@ private Mono> listWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listAsync(String resourceGroupName, String resourceName) { - return listWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return listWithResponseAsync(resourceGroupName, resourceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * List private link resources for the given IotHub. + * List private link resources + * + *

List private link resources for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -226,7 +223,9 @@ public PrivateLinkResourcesInner list(String resourceGroupName, String resourceN } /** - * List private link resources for the given IotHub. + * List private link resources + * + *

List private link resources for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -243,7 +242,9 @@ public Response listWithResponse( } /** - * Get the specified private link resource for the given IotHub. + * Get the specified private link resource + * + *

Get the specified private link resource for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -297,7 +298,9 @@ private Mono> getWithResponseAsync( } /** - * Get the specified private link resource for the given IotHub. + * Get the specified private link resource + * + *

Get the specified private link resource for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -349,7 +352,9 @@ private Mono> getWithResponseAsync( } /** - * Get the specified private link resource for the given IotHub. + * Get the specified private link resource + * + *

Get the specified private link resource for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -362,18 +367,13 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String resourceName, String groupId) { return getWithResponseAsync(resourceGroupName, resourceName, groupId) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get the specified private link resource for the given IotHub. + * Get the specified private link resource + * + *

Get the specified private link resource for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -389,7 +389,9 @@ public GroupIdInformationInner get(String resourceGroupName, String resourceName } /** - * Get the specified private link resource for the given IotHub. + * Get the specified private link resource + * + *

Get the specified private link resource for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsImpl.java index aa81656c3702f..b3bd0bf5ad1e5 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.iothub.models.GroupIdInformation; import com.azure.resourcemanager.iothub.models.PrivateLinkResources; import com.azure.resourcemanager.iothub.models.PrivateLinkResourcesOperations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class PrivateLinkResourcesOperationsImpl implements PrivateLinkResourcesOperations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourcesOperationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkResourcesOperationsImpl.class); private final PrivateLinkResourcesOperationsClient innerClient; diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsClientImpl.java index bc9286005e0e6..1658f08ab728c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsClientImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsClientImpl.java @@ -20,7 +20,6 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.fluent.ResourceProviderCommonsClient; import com.azure.resourcemanager.iothub.fluent.models.UserSubscriptionQuotaListResultInner; import com.azure.resourcemanager.iothub.models.ErrorDetailsException; @@ -28,8 +27,6 @@ /** An instance of this class provides access to all the operations defined in ResourceProviderCommonsClient. */ public final class ResourceProviderCommonsClientImpl implements ResourceProviderCommonsClient { - private final ClientLogger logger = new ClientLogger(ResourceProviderCommonsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final ResourceProviderCommonsService service; @@ -68,7 +65,9 @@ Mono> getSubscriptionQuota( } /** - * Get the number of free and paid iot hubs in the subscription. + * Get the number of iot hubs in the subscription + * + *

Get the number of free and paid iot hubs in the subscription. * * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -104,7 +103,9 @@ private Mono> getSubscriptionQuot } /** - * Get the number of free and paid iot hubs in the subscription. + * Get the number of iot hubs in the subscription + * + *

Get the number of free and paid iot hubs in the subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -140,7 +141,9 @@ private Mono> getSubscriptionQuot } /** - * Get the number of free and paid iot hubs in the subscription. + * Get the number of iot hubs in the subscription + * + *

Get the number of free and paid iot hubs in the subscription. * * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -148,19 +151,13 @@ private Mono> getSubscriptionQuot */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getSubscriptionQuotaAsync() { - return getSubscriptionQuotaWithResponseAsync() - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return getSubscriptionQuotaWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get the number of free and paid iot hubs in the subscription. + * Get the number of iot hubs in the subscription + * + *

Get the number of free and paid iot hubs in the subscription. * * @throws ErrorDetailsException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -172,7 +169,9 @@ public UserSubscriptionQuotaListResultInner getSubscriptionQuota() { } /** - * Get the number of free and paid iot hubs in the subscription. + * Get the number of iot hubs in the subscription + * + *

Get the number of free and paid iot hubs in the subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsImpl.java index baa39c4baf87c..34c7ec7aa17de 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsImpl.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.iothub.fluent.models.UserSubscriptionQuotaListResultInner; import com.azure.resourcemanager.iothub.models.ResourceProviderCommons; import com.azure.resourcemanager.iothub.models.UserSubscriptionQuotaListResult; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class ResourceProviderCommonsImpl implements ResourceProviderCommons { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceProviderCommonsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(ResourceProviderCommonsImpl.class); private final ResourceProviderCommonsClient innerClient; diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/AccessRights.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/AccessRights.java index d738504023750..f0208fd8e083e 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/AccessRights.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/AccessRights.java @@ -70,6 +70,9 @@ public enum AccessRights { */ @JsonCreator public static AccessRights fromString(String value) { + if (value == null) { + return null; + } AccessRights[] items = AccessRights.values(); for (AccessRights item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ArmIdentity.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ArmIdentity.java index c6e8c95006bcb..117d836dcbe03 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ArmIdentity.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ArmIdentity.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -14,8 +12,6 @@ /** The ArmIdentity model. */ @Fluent public class ArmIdentity { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ArmIdentity.class); - /* * Principal Id */ @@ -29,10 +25,9 @@ public class ArmIdentity { private String tenantId; /* - * The type of identity used for the resource. The type 'SystemAssigned, - * UserAssigned' includes both an implicitly created identity and a set of - * user assigned identities. The type 'None' will remove any identities - * from the service. + * The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes both an implicitly + * created identity and a set of user assigned identities. The type 'None' will remove any identities from the + * service. */ @JsonProperty(value = "type") private ResourceIdentityType type; @@ -63,7 +58,7 @@ public String tenantId() { } /** - * Get the type property: The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' + * Get the type property: The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' * includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove * any identities from the service. * @@ -74,7 +69,7 @@ public ResourceIdentityType type() { } /** - * Set the type property: The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' + * Set the type property: The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' * includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove * any identities from the service. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ArmUserIdentity.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ArmUserIdentity.java index 8ce8ce6148071..0f3168890d73a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ArmUserIdentity.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ArmUserIdentity.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The ArmUserIdentity model. */ @Immutable public class ArmUserIdentity { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ArmUserIdentity.class); - /* * The principalId property. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/AuthenticationType.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/AuthenticationType.java index 0e2183e55c395..773cc5f4b167a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/AuthenticationType.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/AuthenticationType.java @@ -27,7 +27,11 @@ public static AuthenticationType fromString(String name) { return fromString(name, AuthenticationType.class); } - /** @return known AuthenticationType values. */ + /** + * Gets known AuthenticationType values. + * + * @return known AuthenticationType values. + */ public static Collection values() { return values(AuthenticationType.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Capabilities.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Capabilities.java index 747e48444bd3e..dc29ac63f9ffd 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Capabilities.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Capabilities.java @@ -27,7 +27,11 @@ public static Capabilities fromString(String name) { return fromString(name, Capabilities.class); } - /** @return known Capabilities values. */ + /** + * Gets known Capabilities values. + * + * @return known Capabilities values. + */ public static Collection values() { return values(Capabilities.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateDescription.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateDescription.java index 71f56c61ddd8b..2c319d346bb9b 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateDescription.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateDescription.java @@ -44,6 +44,13 @@ public interface CertificateDescription { */ String etag(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.iothub.fluent.models.CertificateDescriptionInner object. * diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateProperties.java index df4a92995985d..8bff7fa6b4d2a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateProperties.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.DateTimeRfc1123; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The description of an X509 CA Certificate. */ @Fluent public final class CertificateProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CertificateProperties.class); - /* * The certificate's subject name. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificatePropertiesWithNonce.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificatePropertiesWithNonce.java index d806712d99969..f5ef2386f8398 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificatePropertiesWithNonce.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificatePropertiesWithNonce.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Immutable; import com.azure.core.util.DateTimeRfc1123; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The description of an X509 CA Certificate including the challenge nonce issued for the Proof-Of-Possession flow. */ @Immutable public final class CertificatePropertiesWithNonce { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CertificatePropertiesWithNonce.class); - /* * The certificate's subject name. */ @@ -53,8 +49,7 @@ public final class CertificatePropertiesWithNonce { private DateTimeRfc1123 updated; /* - * The certificate's verification code that will be used for proof of - * possession. + * The certificate's verification code that will be used for proof of possession. */ @JsonProperty(value = "verificationCode", access = JsonProperty.Access.WRITE_ONLY) private String verificationCode; diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateVerificationDescription.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateVerificationDescription.java index 22f1975e95ed0..86adc06ff9187 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateVerificationDescription.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateVerificationDescription.java @@ -5,18 +5,13 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The JSON-serialized leaf certificate. */ @Fluent public final class CertificateVerificationDescription { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CertificateVerificationDescription.class); - /* - * base-64 representation of X509 certificate .cer file or just .pem file - * content. + * base-64 representation of X509 certificate .cer file or just .pem file content. */ @JsonProperty(value = "certificate") private String certificate; diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Certificates.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Certificates.java index 1aa69f95ab19c..b6a32877c792c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Certificates.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Certificates.java @@ -10,7 +10,9 @@ /** Resource collection API of Certificates. */ public interface Certificates { /** - * Returns the list of certificates. + * Get the certificate list. + * + *

Returns the list of certificates. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -23,7 +25,9 @@ public interface Certificates { CertificateListDescription listByIotHub(String resourceGroupName, String resourceName); /** - * Returns the list of certificates. + * Get the certificate list. + * + *

Returns the list of certificates. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -38,7 +42,9 @@ Response listByIotHubWithResponse( String resourceGroupName, String resourceName, Context context); /** - * Returns the certificate. + * Get the certificate. + * + *

Returns the certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -52,7 +58,9 @@ Response listByIotHubWithResponse( CertificateDescription get(String resourceGroupName, String resourceName, String certificateName); /** - * Returns the certificate. + * Get the certificate. + * + *

Returns the certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -68,7 +76,9 @@ Response getWithResponse( String resourceGroupName, String resourceName, String certificateName, Context context); /** - * Deletes an existing X509 certificate or does nothing if it does not exist. + * Delete an X509 certificate. + * + *

Deletes an existing X509 certificate or does nothing if it does not exist. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -82,7 +92,9 @@ Response getWithResponse( void delete(String resourceGroupName, String resourceName, String certificateName, String ifMatch); /** - * Deletes an existing X509 certificate or does nothing if it does not exist. + * Delete an X509 certificate. + * + *

Deletes an existing X509 certificate or does nothing if it does not exist. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -99,8 +111,10 @@ Response deleteWithResponse( String resourceGroupName, String resourceName, String certificateName, String ifMatch, Context context); /** - * Generates verification code for proof of possession flow. The verification code will be used to generate a leaf - * certificate. + * Generate verification code for proof of possession flow. + * + *

Generates verification code for proof of possession flow. The verification code will be used to generate a + * leaf certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -116,8 +130,10 @@ CertificateWithNonceDescription generateVerificationCode( String resourceGroupName, String resourceName, String certificateName, String ifMatch); /** - * Generates verification code for proof of possession flow. The verification code will be used to generate a leaf - * certificate. + * Generate verification code for proof of possession flow. + * + *

Generates verification code for proof of possession flow. The verification code will be used to generate a + * leaf certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -134,8 +150,10 @@ Response generateVerificationCodeWithResponse( String resourceGroupName, String resourceName, String certificateName, String ifMatch, Context context); /** - * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded - * certificate. + * Verify certificate's private key possession. + * + *

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre + * uploaded certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -156,8 +174,10 @@ CertificateDescription verify( CertificateVerificationDescription certificateVerificationBody); /** - * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded - * certificate. + * Verify certificate's private key possession. + * + *

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre + * uploaded certificate. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -180,7 +200,9 @@ Response verifyWithResponse( Context context); /** - * Returns the certificate. + * Get the certificate. + * + *

Returns the certificate. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -192,7 +214,9 @@ Response verifyWithResponse( CertificateDescription getById(String id); /** - * Returns the certificate. + * Get the certificate. + * + *

Returns the certificate. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -205,7 +229,9 @@ Response verifyWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Deletes an existing X509 certificate or does nothing if it does not exist. + * Delete an X509 certificate. + * + *

Deletes an existing X509 certificate or does nothing if it does not exist. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -216,7 +242,9 @@ Response verifyWithResponse( void deleteById(String id); /** - * Deletes an existing X509 certificate or does nothing if it does not exist. + * Delete an X509 certificate. + * + *

Deletes an existing X509 certificate or does nothing if it does not exist. * * @param id the resource ID. * @param ifMatch ETag of the Certificate. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CloudToDeviceProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CloudToDeviceProperties.java index 06b3dafbf2db3..83c5e1f04ed54 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CloudToDeviceProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CloudToDeviceProperties.java @@ -5,27 +5,21 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.Duration; /** The IoT hub cloud-to-device messaging properties. */ @Fluent public final class CloudToDeviceProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CloudToDeviceProperties.class); - /* - * The max delivery count for cloud-to-device messages in the device queue. - * See: + * 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. */ @JsonProperty(value = "maxDeliveryCount") private Integer maxDeliveryCount; /* - * The default time to live for cloud-to-device messages in the device - * queue. See: + * 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. */ @JsonProperty(value = "defaultTtlAsIso8601") diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DefaultAction.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DefaultAction.java index 4731ff0dc046a..b220733de8a7c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DefaultAction.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DefaultAction.java @@ -27,7 +27,11 @@ public static DefaultAction fromString(String name) { return fromString(name, DefaultAction.class); } - /** @return known DefaultAction values. */ + /** + * Gets known DefaultAction values. + * + * @return known DefaultAction values. + */ public static Collection values() { return values(DefaultAction.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EncryptionPropertiesDescription.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EncryptionPropertiesDescription.java new file mode 100644 index 0000000000000..7ce66e44cdffe --- /dev/null +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EncryptionPropertiesDescription.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.iothub.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The encryption properties for the IoT hub. */ +@Fluent +public final class EncryptionPropertiesDescription { + /* + * The source of the key. + */ + @JsonProperty(value = "keySource") + private String keySource; + + /* + * The properties of the KeyVault key. + */ + @JsonProperty(value = "keyVaultProperties") + private List keyVaultProperties; + + /** + * Get the keySource property: The source of the key. + * + * @return the keySource value. + */ + public String keySource() { + return this.keySource; + } + + /** + * Set the keySource property: The source of the key. + * + * @param keySource the keySource value to set. + * @return the EncryptionPropertiesDescription object itself. + */ + public EncryptionPropertiesDescription withKeySource(String keySource) { + this.keySource = keySource; + return this; + } + + /** + * Get the keyVaultProperties property: The properties of the KeyVault key. + * + * @return the keyVaultProperties value. + */ + public List keyVaultProperties() { + return this.keyVaultProperties; + } + + /** + * Set the keyVaultProperties property: The properties of the KeyVault key. + * + * @param keyVaultProperties the keyVaultProperties value to set. + * @return the EncryptionPropertiesDescription object itself. + */ + public EncryptionPropertiesDescription withKeyVaultProperties(List keyVaultProperties) { + this.keyVaultProperties = keyVaultProperties; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (keyVaultProperties() != null) { + keyVaultProperties().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthDataListResult.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthDataListResult.java index 5bf5ac5620277..2a5fbe87e3fbe 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthDataListResult.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthDataListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.fluent.models.EndpointHealthDataInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The JSON-serialized array of EndpointHealthData objects with a next link. */ @Fluent public final class EndpointHealthDataListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EndpointHealthDataListResult.class); - /* * JSON-serialized array of Endpoint health data */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthStatus.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthStatus.java index 29f6463f85ddc..73a2b50e4fae9 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthStatus.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthStatus.java @@ -36,7 +36,11 @@ public static EndpointHealthStatus fromString(String name) { return fromString(name, EndpointHealthStatus.class); } - /** @return known EndpointHealthStatus values. */ + /** + * Gets known EndpointHealthStatus values. + * + * @return known EndpointHealthStatus values. + */ public static Collection values() { return values(EndpointHealthStatus.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EnrichmentProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EnrichmentProperties.java index 7e4ddafb1ab8d..9605f2d427e03 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EnrichmentProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EnrichmentProperties.java @@ -6,15 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The properties of an enrichment that your IoT hub applies to messages delivered to endpoints. */ @Fluent public final class EnrichmentProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EnrichmentProperties.class); - /* * The key or name for the enrichment property. */ @@ -28,8 +25,7 @@ public final class EnrichmentProperties { private String value; /* - * The list of endpoints for which the enrichment is applied to the - * message. + * The list of endpoints for which the enrichment is applied to the message. */ @JsonProperty(value = "endpointNames", required = true) private List endpointNames; @@ -101,20 +97,22 @@ public EnrichmentProperties withEndpointNames(List endpointNames) { */ public void validate() { if (key() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property key in model EnrichmentProperties")); } if (value() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property value in model EnrichmentProperties")); } if (endpointNames() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property endpointNames in model EnrichmentProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(EnrichmentProperties.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetails.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetails.java index 32cb77dcce3cf..5b5380289f699 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetails.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetails.java @@ -6,15 +6,11 @@ import com.azure.core.annotation.Immutable; import com.azure.core.management.exception.ManagementError; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Error details. */ @Immutable public final class ErrorDetails extends ManagementError { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ErrorDetails.class); - /* * The HTTP status code. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupBodyDescription.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupBodyDescription.java index 12d1a5fade05d..ce5cc0baf68a8 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupBodyDescription.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupBodyDescription.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The EventHub consumer group. */ @Fluent public final class EventHubConsumerGroupBodyDescription { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EventHubConsumerGroupBodyDescription.class); - /* * The EventHub consumer group name. */ @@ -47,7 +44,7 @@ public EventHubConsumerGroupBodyDescription withProperties(EventHubConsumerGroup */ public void validate() { if (properties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property properties in model EventHubConsumerGroupBodyDescription")); @@ -55,4 +52,6 @@ public void validate() { properties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(EventHubConsumerGroupBodyDescription.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupName.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupName.java index dbf7c7fcb7fea..eebf1977ebc8b 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupName.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupName.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The EventHub consumer group name. */ @Fluent public final class EventHubConsumerGroupName { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EventHubConsumerGroupName.class); - /* * EventHub consumer group name */ @@ -47,9 +44,11 @@ public EventHubConsumerGroupName withName(String name) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property name in model EventHubConsumerGroupName")); } } + + private static final ClientLogger LOGGER = new ClientLogger(EventHubConsumerGroupName.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupsListResult.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupsListResult.java index 5b3e83021bc75..98ad18da5ff12 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupsListResult.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupsListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.fluent.models.EventHubConsumerGroupInfoInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The JSON-serialized array of Event Hub-compatible consumer group names with a next link. */ @Fluent public final class EventHubConsumerGroupsListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EventHubConsumerGroupsListResult.class); - /* * List of consumer groups objects */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubProperties.java index d1d786e80b1ed..25ed8dd04c9fe 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The properties of the provisioned Event Hub-compatible endpoint used by the IoT hub. */ @Fluent public final class EventHubProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EventHubProperties.class); - /* * 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 @@ -23,8 +19,7 @@ public final class EventHubProperties { private Long retentionTimeInDays; /* - * The number of partitions for receiving device-to-cloud messages in the - * Event Hub-compatible endpoint. See: + * 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. */ @JsonProperty(value = "partitionCount") diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ExportDevicesRequest.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ExportDevicesRequest.java index 15cb7939bc71b..58ddfb4b35033 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ExportDevicesRequest.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ExportDevicesRequest.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Use to provide parameters when requesting an export of all devices in the IoT hub. */ @Fluent public final class ExportDevicesRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ExportDevicesRequest.class); - /* * The export blob container URI. */ @@ -27,16 +24,14 @@ public final class ExportDevicesRequest { private boolean excludeKeys; /* - * The name of the blob that will be created in the provided output blob - * container. This blob will contain the exported device registry - * information for the IoT Hub. + * The name of the blob that will be created in the provided output blob container. This blob will contain the + * exported device registry information for the IoT Hub. */ @JsonProperty(value = "exportBlobName") private String exportBlobName; /* - * Specifies authentication type being used for connecting to the storage - * account. + * Specifies authentication type being used for connecting to the storage account. */ @JsonProperty(value = "authenticationType") private AuthenticationType authenticationType; @@ -54,9 +49,8 @@ public final class ExportDevicesRequest { private Boolean includeConfigurations; /* - * The name of the blob that will be created in the provided output blob - * container. This blob will contain the exported configurations for the - * Iot Hub. + * The name of the blob that will be created in the provided output blob container. This blob will contain the + * exported configurations for the Iot Hub. */ @JsonProperty(value = "configurationsBlobName") private String configurationsBlobName; @@ -214,7 +208,7 @@ public ExportDevicesRequest withConfigurationsBlobName(String configurationsBlob */ public void validate() { if (exportBlobContainerUri() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property exportBlobContainerUri in model ExportDevicesRequest")); @@ -223,4 +217,6 @@ public void validate() { identity().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(ExportDevicesRequest.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FailoverInput.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FailoverInput.java index 06c760ae618f0..ca0a620dbd794 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FailoverInput.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FailoverInput.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Use to provide failover region when requesting manual Failover for a hub. */ @Fluent public final class FailoverInput { - @JsonIgnore private final ClientLogger logger = new ClientLogger(FailoverInput.class); - /* * Region the hub will be failed over to */ @@ -47,9 +44,11 @@ public FailoverInput withFailoverRegion(String failoverRegion) { */ public void validate() { if (failoverRegion() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property failoverRegion in model FailoverInput")); } } + + private static final ClientLogger LOGGER = new ClientLogger(FailoverInput.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FallbackRouteProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FallbackRouteProperties.java index 8b0cbc19c368d..09a9ed51f4e6d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FallbackRouteProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FallbackRouteProperties.java @@ -6,7 +6,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -15,35 +14,30 @@ */ @Fluent public final class FallbackRouteProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(FallbackRouteProperties.class); - /* - * 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. + * 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. */ @JsonProperty(value = "name") private String name; /* - * The source to which the routing rule is to be applied to. For example, - * DeviceMessages + * The source to which the routing rule is to be applied to. For example, DeviceMessages */ @JsonProperty(value = "source", required = true) private RoutingSource source; /* - * 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: + * 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 */ @JsonProperty(value = "condition") private String condition; /* - * The list of endpoints to which the messages that satisfy the condition - * are routed to. Currently only 1 endpoint is allowed. + * The list of endpoints to which the messages that satisfy the condition are routed to. Currently only 1 endpoint + * is allowed. */ @JsonProperty(value = "endpointNames", required = true) private List endpointNames; @@ -169,15 +163,17 @@ public FallbackRouteProperties withIsEnabled(boolean isEnabled) { */ public void validate() { if (source() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property source in model FallbackRouteProperties")); } if (endpointNames() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property endpointNames in model FallbackRouteProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(FallbackRouteProperties.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FeedbackProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FeedbackProperties.java index 30de8180f6e2b..61a0003ae153e 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FeedbackProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/FeedbackProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.Duration; /** The properties of the feedback queue for cloud-to-device messages. */ @Fluent public final class FeedbackProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(FeedbackProperties.class); - /* * The lock duration for the feedback queue. See: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. @@ -23,16 +19,14 @@ public final class FeedbackProperties { private Duration lockDurationAsIso8601; /* - * The period of time for which a message is available to consume before it - * is expired by the IoT hub. See: + * 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. */ @JsonProperty(value = "ttlAsIso8601") private Duration ttlAsIso8601; /* - * The number of times the IoT hub attempts to deliver a message on the - * feedback queue. See: + * 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. */ @JsonProperty(value = "maxDeliveryCount") diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/GroupIdInformationProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/GroupIdInformationProperties.java index 797a9784c04b6..aeecc813154ed 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/GroupIdInformationProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/GroupIdInformationProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The properties for a group information object. */ @Fluent public final class GroupIdInformationProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GroupIdInformationProperties.class); - /* * The group id */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ImportDevicesRequest.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ImportDevicesRequest.java index 90956e1d595f1..6d04189902e55 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ImportDevicesRequest.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ImportDevicesRequest.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Use to provide parameters when requesting an import of all devices in the hub. */ @Fluent public final class ImportDevicesRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ImportDevicesRequest.class); - /* * The input blob container URI. */ @@ -27,8 +24,7 @@ public final class ImportDevicesRequest { private String outputBlobContainerUri; /* - * The blob name to be used when importing from the provided input blob - * container. + * The blob name to be used when importing from the provided input blob container. */ @JsonProperty(value = "inputBlobName") private String inputBlobName; @@ -40,8 +36,7 @@ public final class ImportDevicesRequest { private String outputBlobName; /* - * Specifies authentication type being used for connecting to the storage - * account. + * Specifies authentication type being used for connecting to the storage account. */ @JsonProperty(value = "authenticationType") private AuthenticationType authenticationType; @@ -59,8 +54,7 @@ public final class ImportDevicesRequest { private Boolean includeConfigurations; /* - * The blob name to be used when importing configurations from the provided - * input blob container. + * The blob name to be used when importing configurations from the provided input blob container. */ @JsonProperty(value = "configurationsBlobName") private String configurationsBlobName; @@ -236,13 +230,13 @@ public ImportDevicesRequest withConfigurationsBlobName(String configurationsBlob */ public void validate() { if (inputBlobContainerUri() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property inputBlobContainerUri in model ImportDevicesRequest")); } if (outputBlobContainerUri() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property outputBlobContainerUri in model ImportDevicesRequest")); @@ -251,4 +245,6 @@ public void validate() { identity().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(ImportDevicesRequest.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubCapacity.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubCapacity.java index 3bbf578a85c61..7593c3e437b9b 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubCapacity.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubCapacity.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** IoT Hub capacity information. */ @Immutable public final class IotHubCapacity { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubCapacity.class); - /* * The minimum number of units. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescription.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescription.java index 19993451411fd..578e5d5b01951 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescription.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescription.java @@ -99,6 +99,13 @@ public interface IotHubDescription { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.iothub.fluent.models.IotHubDescriptionInner object. * @@ -291,17 +298,23 @@ interface WithTags { /** * Get the security metadata for an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get the security metadata for an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security metadata for an IoT hub. + * @return the security metadata for an IoT hub as paginated response with {@link PagedIterable}. */ PagedIterable listKeys(); /** * Get the security metadata for an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get the security metadata for an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param context The context to associate with this operation. @@ -309,13 +322,17 @@ interface WithTags { * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security metadata for an IoT hub. + * @return the security metadata for an IoT hub as paginated response with {@link PagedIterable}. */ PagedIterable listKeys(Context context); /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more * information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For + * more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param exportDevicesParameters The parameters that specify the export devices operation. @@ -330,6 +347,10 @@ interface WithTags { /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more * information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For + * more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param exportDevicesParameters The parameters that specify the export devices operation. @@ -345,6 +366,10 @@ interface WithTags { /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, * see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Import, update, or delete device identities in the IoT hub identity registry from a blob. For more + * information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param importDevicesParameters The parameters that specify the import devices operation. @@ -359,6 +384,10 @@ interface WithTags { /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, * see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Import, update, or delete device identities in the IoT hub identity registry from a blob. For more + * information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param importDevicesParameters The parameters that specify the import devices operation. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescriptionListResult.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescriptionListResult.java index ea73613601856..5f26f87b44686 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescriptionListResult.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescriptionListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.fluent.models.IotHubDescriptionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The JSON-serialized array of IotHubDescription objects with a next link. */ @Fluent public final class IotHubDescriptionListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubDescriptionListResult.class); - /* * The array of IotHubDescription objects. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubLocationDescription.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubLocationDescription.java index b972ec0d8cb05..27ccef2cb48c7 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubLocationDescription.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubLocationDescription.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Public representation of one of the locations where a resource is provisioned. */ @Fluent public final class IotHubLocationDescription { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubLocationDescription.class); - /* * The name of the Azure region */ @@ -21,10 +17,9 @@ public final class IotHubLocationDescription { private String location; /* - * The role of the region, can be either primary or secondary. The primary - * region is where the IoT hub is currently provisioned. The secondary - * region is the Azure disaster recovery (DR) paired region and also the - * region where the IoT hub can failover to. + * The role of the region, can be either primary or secondary. The primary region is where the IoT hub is currently + * provisioned. The secondary region is the Azure disaster recovery (DR) paired region and also the region where + * the IoT hub can failover to. */ @JsonProperty(value = "role") private IotHubReplicaRoleType role; diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubNameUnavailabilityReason.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubNameUnavailabilityReason.java index b159d17fdca78..1c31b0de9bc50 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubNameUnavailabilityReason.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubNameUnavailabilityReason.java @@ -30,6 +30,9 @@ public enum IotHubNameUnavailabilityReason { */ @JsonCreator public static IotHubNameUnavailabilityReason fromString(String value) { + if (value == null) { + return null; + } IotHubNameUnavailabilityReason[] items = IotHubNameUnavailabilityReason.values(); for (IotHubNameUnavailabilityReason item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubProperties.java index bfa963963c2f2..08a23a32c4840 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubProperties.java @@ -5,10 +5,8 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.fluent.models.PrivateEndpointConnectionInner; import com.azure.resourcemanager.iothub.fluent.models.SharedAccessSignatureAuthorizationRuleInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -17,25 +15,21 @@ /** The properties of an IoT hub. */ @Fluent public final class IotHubProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubProperties.class); - /* - * The shared access policies you can use to secure a connection to the IoT - * hub. + * The shared access policies you can use to secure a connection to the IoT hub. */ @JsonProperty(value = "authorizationPolicies") private List authorizationPolicies; /* - * If true, SAS tokens with Iot hub scoped SAS keys cannot be used for - * authentication. + * If true, SAS tokens with Iot hub scoped SAS keys cannot be used for authentication. */ @JsonProperty(value = "disableLocalAuth") private Boolean disableLocalAuth; /* - * If true, all device(including Edge devices but excluding modules) scoped - * SAS keys cannot be used for authentication. + * If true, all device(including Edge devices but excluding modules) scoped SAS keys cannot be used for + * authentication. */ @JsonProperty(value = "disableDeviceSAS") private Boolean disableDeviceSas; @@ -47,15 +41,14 @@ public final class IotHubProperties { private Boolean disableModuleSas; /* - * If true, egress from IotHub will be restricted to only the allowed FQDNs - * that are configured via allowedFqdnList. + * If true, egress from IotHub will be restricted to only the allowed FQDNs that are configured via + * allowedFqdnList. */ @JsonProperty(value = "restrictOutboundNetworkAccess") private Boolean restrictOutboundNetworkAccess; /* - * List of allowed FQDNs(Fully Qualified Domain Name) for egress from Iot - * Hub. + * List of allowed FQDNs(Fully Qualified Domain Name) for egress from Iot Hub. */ @JsonProperty(value = "allowedFqdnList") private List allowedFqdnList; @@ -79,8 +72,8 @@ public final class IotHubProperties { private NetworkRuleSetProperties networkRuleSets; /* - * Specifies the minimum TLS version to support for this hub. Can be set to - * "1.2" to have clients that use a TLS version below 1.2 to be rejected. + * Specifies the minimum TLS version to support for this hub. Can be set to "1.2" to have clients that use a TLS + * version below 1.2 to be rejected. */ @JsonProperty(value = "minTlsVersion") private String minTlsVersion; @@ -110,9 +103,8 @@ public final class IotHubProperties { private String hostname; /* - * The Event Hub-compatible endpoint properties. The only possible keys to - * this dictionary is events. This key has to be present in the dictionary - * while making create or update calls for the IoT hub. + * The Event Hub-compatible endpoint properties. The only possible keys to this dictionary is events. This key has + * to be present in the dictionary while making create or update calls for the IoT hub. */ @JsonProperty(value = "eventHubEndpoints") @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) @@ -126,20 +118,17 @@ public final class IotHubProperties { private RoutingProperties routing; /* - * 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. + * 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. */ @JsonProperty(value = "storageEndpoints") @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map storageEndpoints; /* - * The messaging endpoint properties for the file upload notification - * queue. + * The messaging endpoint properties for the file upload notification queue. */ @JsonProperty(value = "messagingEndpoints") @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) @@ -163,12 +152,24 @@ public final class IotHubProperties { @JsonProperty(value = "comments") private String comments; + /* + * The device streams properties of iothub. + */ + @JsonProperty(value = "deviceStreams") + private IotHubPropertiesDeviceStreams deviceStreams; + /* * The capabilities and features enabled for the IoT hub. */ @JsonProperty(value = "features") private Capabilities features; + /* + * The encryption properties for the IoT hub. + */ + @JsonProperty(value = "encryption") + private EncryptionPropertiesDescription encryption; + /* * Primary and secondary location for iot hub */ @@ -176,12 +177,17 @@ public final class IotHubProperties { private List locations; /* - * This property when set to true, will enable data residency, thus, - * disabling disaster recovery. + * This property when set to true, will enable data residency, thus, disabling disaster recovery. */ @JsonProperty(value = "enableDataResidency") private Boolean enableDataResidency; + /* + * This property store root certificate related information + */ + @JsonProperty(value = "rootCertificate") + private RootCertificateProperties rootCertificate; + /** * Get the authorizationPolicies property: The shared access policies you can use to secure a connection to the IoT * hub. @@ -593,6 +599,26 @@ public IotHubProperties withComments(String comments) { return this; } + /** + * Get the deviceStreams property: The device streams properties of iothub. + * + * @return the deviceStreams value. + */ + public IotHubPropertiesDeviceStreams deviceStreams() { + return this.deviceStreams; + } + + /** + * Set the deviceStreams property: The device streams properties of iothub. + * + * @param deviceStreams the deviceStreams value to set. + * @return the IotHubProperties object itself. + */ + public IotHubProperties withDeviceStreams(IotHubPropertiesDeviceStreams deviceStreams) { + this.deviceStreams = deviceStreams; + return this; + } + /** * Get the features property: The capabilities and features enabled for the IoT hub. * @@ -613,6 +639,26 @@ public IotHubProperties withFeatures(Capabilities features) { return this; } + /** + * Get the encryption property: The encryption properties for the IoT hub. + * + * @return the encryption value. + */ + public EncryptionPropertiesDescription encryption() { + return this.encryption; + } + + /** + * Set the encryption property: The encryption properties for the IoT hub. + * + * @param encryption the encryption value to set. + * @return the IotHubProperties object itself. + */ + public IotHubProperties withEncryption(EncryptionPropertiesDescription encryption) { + this.encryption = encryption; + return this; + } + /** * Get the locations property: Primary and secondary location for iot hub. * @@ -644,6 +690,26 @@ public IotHubProperties withEnableDataResidency(Boolean enableDataResidency) { return this; } + /** + * Get the rootCertificate property: This property store root certificate related information. + * + * @return the rootCertificate value. + */ + public RootCertificateProperties rootCertificate() { + return this.rootCertificate; + } + + /** + * Set the rootCertificate property: This property store root certificate related information. + * + * @param rootCertificate the rootCertificate value to set. + * @return the IotHubProperties object itself. + */ + public IotHubProperties withRootCertificate(RootCertificateProperties rootCertificate) { + this.rootCertificate = rootCertificate; + return this; + } + /** * Validates the instance. * @@ -698,8 +764,17 @@ public void validate() { if (cloudToDevice() != null) { cloudToDevice().validate(); } + if (deviceStreams() != null) { + deviceStreams().validate(); + } + if (encryption() != null) { + encryption().validate(); + } if (locations() != null) { locations().forEach(e -> e.validate()); } + if (rootCertificate() != null) { + rootCertificate().validate(); + } } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubPropertiesDeviceStreams.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubPropertiesDeviceStreams.java new file mode 100644 index 0000000000000..b27b3b0b99be1 --- /dev/null +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubPropertiesDeviceStreams.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.iothub.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The device streams properties of iothub. */ +@Fluent +public final class IotHubPropertiesDeviceStreams { + /* + * List of Device Streams Endpoints. + */ + @JsonProperty(value = "streamingEndpoints") + private List streamingEndpoints; + + /** + * Get the streamingEndpoints property: List of Device Streams Endpoints. + * + * @return the streamingEndpoints value. + */ + public List streamingEndpoints() { + return this.streamingEndpoints; + } + + /** + * Set the streamingEndpoints property: List of Device Streams Endpoints. + * + * @param streamingEndpoints the streamingEndpoints value to set. + * @return the IotHubPropertiesDeviceStreams object itself. + */ + public IotHubPropertiesDeviceStreams withStreamingEndpoints(List streamingEndpoints) { + this.streamingEndpoints = streamingEndpoints; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubQuotaMetricInfoListResult.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubQuotaMetricInfoListResult.java index 726b2e0552479..fd3c10602c39a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubQuotaMetricInfoListResult.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubQuotaMetricInfoListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.fluent.models.IotHubQuotaMetricInfoInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The JSON-serialized array of IotHubQuotaMetricInfo objects with a next link. */ @Fluent public final class IotHubQuotaMetricInfoListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubQuotaMetricInfoListResult.class); - /* * The array of quota metrics objects. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubReplicaRoleType.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubReplicaRoleType.java index e20d1180a8be7..92f8c73c1979e 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubReplicaRoleType.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubReplicaRoleType.java @@ -27,7 +27,11 @@ public static IotHubReplicaRoleType fromString(String name) { return fromString(name, IotHubReplicaRoleType.class); } - /** @return known IotHubReplicaRoleType values. */ + /** + * Gets known IotHubReplicaRoleType values. + * + * @return known IotHubReplicaRoleType values. + */ public static Collection values() { return values(IotHubReplicaRoleType.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubResources.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubResources.java index 28ca1679a52f5..dcbc2472f841f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubResources.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubResources.java @@ -11,7 +11,9 @@ /** Resource collection API of IotHubResources. */ public interface IotHubResources { /** - * Get the non-security related metadata of an IoT hub. + * Get the non-security related metadata of an IoT hub + * + *

Get the non-security related metadata of an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -24,7 +26,9 @@ public interface IotHubResources { IotHubDescription getByResourceGroup(String resourceGroupName, String resourceName); /** - * Get the non-security related metadata of an IoT hub. + * Get the non-security related metadata of an IoT hub + * + *

Get the non-security related metadata of an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -39,7 +43,9 @@ Response getByResourceGroupWithResponse( String resourceGroupName, String resourceName, Context context); /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -52,7 +58,9 @@ Response getByResourceGroupWithResponse( IotHubDescription deleteByResourceGroup(String resourceGroupName, String resourceName); /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -66,41 +74,49 @@ Response getByResourceGroupWithResponse( IotHubDescription delete(String resourceGroupName, String resourceName, Context context); /** - * Get all the IoT hubs in a subscription. + * Get all the IoT hubs in a subscription + * + *

Get all the IoT hubs in a subscription. * * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the IoT hubs in a subscription. + * @return all the IoT hubs in a subscription as paginated response with {@link PagedIterable}. */ PagedIterable list(); /** - * Get all the IoT hubs in a subscription. + * Get all the IoT hubs in a subscription + * + *

Get all the IoT hubs in a subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the IoT hubs in a subscription. + * @return all the IoT hubs in a subscription as paginated response with {@link PagedIterable}. */ PagedIterable list(Context context); /** - * Get all the IoT hubs in a resource group. + * Get all the IoT hubs in a resource group + * + *

Get all the IoT hubs in a resource group. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the IoT hubs in a resource group. + * @return all the IoT hubs in a resource group as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); /** - * Get all the IoT hubs in a resource group. + * Get all the IoT hubs in a resource group + * + *

Get all the IoT hubs in a resource group. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param context The context to associate with this operation. @@ -108,12 +124,14 @@ Response getByResourceGroupWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the IoT hubs in a resource group. + * @return all the IoT hubs in a resource group as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Get the statistics from an IoT hub. + * Get the statistics from an IoT hub + * + *

Get the statistics from an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -126,7 +144,9 @@ Response getByResourceGroupWithResponse( RegistryStatistics getStats(String resourceGroupName, String resourceName); /** - * Get the statistics from an IoT hub. + * Get the statistics from an IoT hub + * + *

Get the statistics from an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -140,7 +160,9 @@ Response getByResourceGroupWithResponse( Response getStatsWithResponse(String resourceGroupName, String resourceName, Context context); /** - * Get the list of valid SKUs for an IoT hub. + * Get the list of valid SKUs for an IoT hub + * + *

Get the list of valid SKUs for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -148,12 +170,14 @@ Response getByResourceGroupWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of valid SKUs for an IoT hub. + * @return the list of valid SKUs for an IoT hub as paginated response with {@link PagedIterable}. */ PagedIterable getValidSkus(String resourceGroupName, String resourceName); /** - * Get the list of valid SKUs for an IoT hub. + * Get the list of valid SKUs for an IoT hub + * + *

Get the list of valid SKUs for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -162,12 +186,14 @@ Response getByResourceGroupWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of valid SKUs for an IoT hub. + * @return the list of valid SKUs for an IoT hub as paginated response with {@link PagedIterable}. */ PagedIterable getValidSkus(String resourceGroupName, String resourceName, Context context); /** - * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub + * + *

Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -176,13 +202,16 @@ Response getByResourceGroupWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * @return a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub as + * paginated response with {@link PagedIterable}. */ PagedIterable listEventHubConsumerGroups( String resourceGroupName, String resourceName, String eventHubEndpointName); /** - * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub + * + *

Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -192,13 +221,16 @@ PagedIterable listEventHubConsumerGroups( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub. + * @return a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub as + * paginated response with {@link PagedIterable}. */ PagedIterable listEventHubConsumerGroups( String resourceGroupName, String resourceName, String eventHubEndpointName, Context context); /** - * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. + * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub + * + *

Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -214,7 +246,9 @@ EventHubConsumerGroupInfo getEventHubConsumerGroup( String resourceGroupName, String resourceName, String eventHubEndpointName, String name); /** - * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. + * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub + * + *

Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -232,7 +266,9 @@ Response getEventHubConsumerGroupWithResponse( String resourceGroupName, String resourceName, String eventHubEndpointName, String name, Context context); /** - * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. + * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub + * + *

Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -247,7 +283,9 @@ void deleteEventHubConsumerGroup( String resourceGroupName, String resourceName, String eventHubEndpointName, String name); /** - * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. + * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub + * + *

Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -265,6 +303,9 @@ Response deleteEventHubConsumerGroupWithResponse( /** * Get a list of all the jobs in an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get a list of all the jobs in an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -273,12 +314,15 @@ Response deleteEventHubConsumerGroupWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all the jobs in an IoT hub. + * @return a list of all the jobs in an IoT hub as paginated response with {@link PagedIterable}. */ PagedIterable listJobs(String resourceGroupName, String resourceName); /** * Get a list of all the jobs in an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get a list of all the jobs in an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -288,12 +332,15 @@ Response deleteEventHubConsumerGroupWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all the jobs in an IoT hub. + * @return a list of all the jobs in an IoT hub as paginated response with {@link PagedIterable}. */ PagedIterable listJobs(String resourceGroupName, String resourceName, Context context); /** * Get the details of a job from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get the details of a job from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -309,6 +356,9 @@ Response deleteEventHubConsumerGroupWithResponse( /** * Get the details of a job from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry + * + *

Get the details of a job from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -325,7 +375,9 @@ Response getJobWithResponse( String resourceGroupName, String resourceName, String jobId, Context context); /** - * Get the quota metrics for an IoT hub. + * Get the quota metrics for an IoT hub + * + *

Get the quota metrics for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -333,12 +385,14 @@ Response getJobWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the quota metrics for an IoT hub. + * @return the quota metrics for an IoT hub as paginated response with {@link PagedIterable}. */ PagedIterable getQuotaMetrics(String resourceGroupName, String resourceName); /** - * Get the quota metrics for an IoT hub. + * Get the quota metrics for an IoT hub + * + *

Get the quota metrics for an IoT hub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -347,13 +401,15 @@ Response getJobWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the quota metrics for an IoT hub. + * @return the quota metrics for an IoT hub as paginated response with {@link PagedIterable}. */ PagedIterable getQuotaMetrics( String resourceGroupName, String resourceName, Context context); /** - * Get the health for routing endpoints. + * Get the health for routing endpoints + * + *

Get the health for routing endpoints. * * @param resourceGroupName The resourceGroupName parameter. * @param iotHubName The iotHubName parameter. @@ -361,12 +417,14 @@ PagedIterable getQuotaMetrics( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the health for routing endpoints. + * @return the health for routing endpoints as paginated response with {@link PagedIterable}. */ PagedIterable getEndpointHealth(String resourceGroupName, String iotHubName); /** - * Get the health for routing endpoints. + * Get the health for routing endpoints + * + *

Get the health for routing endpoints. * * @param resourceGroupName The resourceGroupName parameter. * @param iotHubName The iotHubName parameter. @@ -375,12 +433,14 @@ PagedIterable getQuotaMetrics( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the health for routing endpoints. + * @return the health for routing endpoints as paginated response with {@link PagedIterable}. */ PagedIterable getEndpointHealth(String resourceGroupName, String iotHubName, Context context); /** - * Check if an IoT hub name is available. + * Check if an IoT hub name is available + * + *

Check if an IoT hub name is available. * * @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to * check. @@ -393,7 +453,9 @@ PagedIterable getQuotaMetrics( IotHubNameAvailabilityInfo checkNameAvailability(OperationInputs operationInputs); /** - * Check if an IoT hub name is available. + * Check if an IoT hub name is available + * + *

Check if an IoT hub name is available. * * @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to * check. @@ -408,7 +470,9 @@ Response checkNameAvailabilityWithResponse( OperationInputs operationInputs, Context context); /** - * Test all routes configured in this Iot Hub. + * Test all routes + * + *

Test all routes configured in this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -422,7 +486,9 @@ Response checkNameAvailabilityWithResponse( TestAllRoutesResult testAllRoutes(String iotHubName, String resourceGroupName, TestAllRoutesInput input); /** - * Test all routes configured in this Iot Hub. + * Test all routes + * + *

Test all routes configured in this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -438,7 +504,9 @@ Response testAllRoutesWithResponse( String iotHubName, String resourceGroupName, TestAllRoutesInput input, Context context); /** - * Test the new route for this Iot Hub. + * Test the new route + * + *

Test the new route for this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -452,7 +520,9 @@ Response testAllRoutesWithResponse( TestRouteResult testRoute(String iotHubName, String resourceGroupName, TestRouteInput input); /** - * Test the new route for this Iot Hub. + * Test the new route + * + *

Test the new route for this Iot Hub. * * @param iotHubName IotHub to be tested. * @param resourceGroupName resource group which Iot Hub belongs to. @@ -469,6 +539,9 @@ Response testRouteWithResponse( /** * Get the security metadata for an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get the security metadata for an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -477,12 +550,15 @@ Response testRouteWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security metadata for an IoT hub. + * @return the security metadata for an IoT hub as paginated response with {@link PagedIterable}. */ PagedIterable listKeys(String resourceGroupName, String resourceName); /** * Get the security metadata for an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get the security metadata for an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -492,13 +568,16 @@ Response testRouteWithResponse( * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the security metadata for an IoT hub. + * @return the security metadata for an IoT hub as paginated response with {@link PagedIterable}. */ PagedIterable listKeys( String resourceGroupName, String resourceName, Context context); /** * Get a shared access policy by name from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get a shared access policy by name from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -515,6 +594,9 @@ SharedAccessSignatureAuthorizationRule getKeysForKeyName( /** * Get a shared access policy by name from an IoT hub. For more information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security + * + *

Get a shared access policy by name from an IoT hub. For more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -533,6 +615,10 @@ Response getKeysForKeyNameWithResponse( /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more * information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For + * more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -550,6 +636,10 @@ JobResponse exportDevices( /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more * information, see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For + * more information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -568,6 +658,10 @@ Response exportDevicesWithResponse( /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, * see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Import, update, or delete device identities in the IoT hub identity registry from a blob. For more + * information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -585,6 +679,10 @@ JobResponse importDevices( /** * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, * see: + * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities + * + *

Import, update, or delete device identities in the IoT hub identity registry from a blob. For more + * information, see: * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities. * * @param resourceGroupName The name of the resource group that contains the IoT hub. @@ -601,7 +699,9 @@ Response importDevicesWithResponse( String resourceGroupName, String resourceName, ImportDevicesRequest importDevicesParameters, Context context); /** - * Get the non-security related metadata of an IoT hub. + * Get the non-security related metadata of an IoT hub + * + *

Get the non-security related metadata of an IoT hub. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -613,7 +713,9 @@ Response importDevicesWithResponse( IotHubDescription getById(String id); /** - * Get the non-security related metadata of an IoT hub. + * Get the non-security related metadata of an IoT hub + * + *

Get the non-security related metadata of an IoT hub. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -626,7 +728,9 @@ Response importDevicesWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. + * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub + * + *

Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -639,7 +743,9 @@ Response importDevicesWithResponse( EventHubConsumerGroupInfo getEventHubConsumerGroupById(String id); /** - * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. + * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub + * + *

Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -653,7 +759,9 @@ Response importDevicesWithResponse( Response getEventHubConsumerGroupByIdWithResponse(String id, Context context); /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -665,7 +773,9 @@ Response importDevicesWithResponse( IotHubDescription deleteById(String id); /** - * Delete an IoT hub. + * Delete an IoT hub + * + *

Delete an IoT hub. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -678,7 +788,9 @@ Response importDevicesWithResponse( IotHubDescription deleteByIdWithResponse(String id, Context context); /** - * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. + * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub + * + *

Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -689,7 +801,9 @@ Response importDevicesWithResponse( void deleteEventHubConsumerGroupById(String id); /** - * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. + * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub + * + *

Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubScaleType.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubScaleType.java index 45cef96731d2f..30e87d6ac503a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubScaleType.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubScaleType.java @@ -33,6 +33,9 @@ public enum IotHubScaleType { */ @JsonCreator public static IotHubScaleType fromString(String value) { + if (value == null) { + return null; + } IotHubScaleType[] items = IotHubScaleType.values(); for (IotHubScaleType item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSku.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSku.java index 4ce828735e8f4..17921c2fff7ec 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSku.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSku.java @@ -42,7 +42,11 @@ public static IotHubSku fromString(String name) { return fromString(name, IotHubSku.class); } - /** @return known IotHubSku values. */ + /** + * Gets known IotHubSku values. + * + * @return known IotHubSku values. + */ public static Collection values() { return values(IotHubSku.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuDescriptionListResult.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuDescriptionListResult.java index 6fa6f0569cfca..be242495174cc 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuDescriptionListResult.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuDescriptionListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.fluent.models.IotHubSkuDescriptionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The JSON-serialized array of IotHubSkuDescription objects with a next link. */ @Fluent public final class IotHubSkuDescriptionListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubSkuDescriptionListResult.class); - /* * The array of IotHubSkuDescription. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuInfo.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuInfo.java index 565ca11e451e5..c10197f7e7c6c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuInfo.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuInfo.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Information about the SKU of the IoT hub. */ @Fluent public final class IotHubSkuInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubSkuInfo.class); - /* * The name of the SKU. */ @@ -91,9 +88,11 @@ public IotHubSkuInfo withCapacity(Long capacity) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property name in model IotHubSkuInfo")); } } + + private static final ClientLogger LOGGER = new ClientLogger(IotHubSkuInfo.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuTier.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuTier.java index 4026747dba7ef..81d2877f896d1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuTier.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuTier.java @@ -33,6 +33,9 @@ public enum IotHubSkuTier { */ @JsonCreator public static IotHubSkuTier fromString(String value) { + if (value == null) { + return null; + } IotHubSkuTier[] items = IotHubSkuTier.values(); for (IotHubSkuTier item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubs.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubs.java index 6fc7ccd4a2572..567d60de2b9a9 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubs.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubs.java @@ -9,7 +9,9 @@ /** Resource collection API of IotHubs. */ public interface IotHubs { /** - * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see + * Manually initiate a failover for the IoT Hub to its secondary region + * + *

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see * https://aka.ms/manualfailover. * * @param iotHubName Name of the IoT hub to failover. @@ -24,7 +26,9 @@ public interface IotHubs { void manualFailover(String iotHubName, String resourceGroupName, FailoverInput failoverInput); /** - * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see + * Manually initiate a failover for the IoT Hub to its secondary region + * + *

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see * https://aka.ms/manualfailover. * * @param iotHubName Name of the IoT hub to failover. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IpFilterActionType.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IpFilterActionType.java index c516c5cc8fc96..25a9034035fc8 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IpFilterActionType.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IpFilterActionType.java @@ -30,6 +30,9 @@ public enum IpFilterActionType { */ @JsonCreator public static IpFilterActionType fromString(String value) { + if (value == null) { + return null; + } IpFilterActionType[] items = IpFilterActionType.values(); for (IpFilterActionType item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IpFilterRule.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IpFilterRule.java index dab0c96805860..5b4d37decc14f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IpFilterRule.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IpFilterRule.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The IP filter rules for the IoT hub. */ @Fluent public final class IpFilterRule { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IpFilterRule.class); - /* * The name of the IP filter rule. */ @@ -27,8 +24,7 @@ public final class IpFilterRule { private IpFilterActionType action; /* - * A string that contains the IP address range in CIDR notation for the - * rule. + * A string that contains the IP address range in CIDR notation for the rule. */ @JsonProperty(value = "ipMask", required = true) private String ipMask; @@ -100,19 +96,21 @@ public IpFilterRule withIpMask(String ipMask) { */ public void validate() { if (filterName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property filterName in model IpFilterRule")); } if (action() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property action in model IpFilterRule")); } if (ipMask() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property ipMask in model IpFilterRule")); } } + + private static final ClientLogger LOGGER = new ClientLogger(IpFilterRule.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobResponseListResult.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobResponseListResult.java index 5cb59afe7a7c5..7afc6d7bee45d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobResponseListResult.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobResponseListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.fluent.models.JobResponseInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The JSON-serialized array of JobResponse objects with a next link. */ @Fluent public final class JobResponseListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(JobResponseListResult.class); - /* * The array of JobResponse objects. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobStatus.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobStatus.java index a69b024d3e26f..2b58d152ff29e 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobStatus.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobStatus.java @@ -42,6 +42,9 @@ public enum JobStatus { */ @JsonCreator public static JobStatus fromString(String value) { + if (value == null) { + return null; + } JobStatus[] items = JobStatus.values(); for (JobStatus item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobType.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobType.java index 566e3488e8578..025da48e84bc1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobType.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/JobType.java @@ -51,7 +51,11 @@ public static JobType fromString(String name) { return fromString(name, JobType.class); } - /** @return known JobType values. */ + /** + * Gets known JobType values. + * + * @return known JobType values. + */ public static Collection values() { return values(JobType.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/KeyVaultKeyProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/KeyVaultKeyProperties.java new file mode 100644 index 0000000000000..ad465980a1656 --- /dev/null +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/KeyVaultKeyProperties.java @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.iothub.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The properties of the KeyVault key. */ +@Fluent +public final class KeyVaultKeyProperties { + /* + * The identifier of the key. + */ + @JsonProperty(value = "keyIdentifier") + private String keyIdentifier; + + /* + * Managed identity properties of KeyVault Key. + */ + @JsonProperty(value = "identity") + private ManagedIdentity identity; + + /** + * Get the keyIdentifier property: The identifier of the key. + * + * @return the keyIdentifier value. + */ + public String keyIdentifier() { + return this.keyIdentifier; + } + + /** + * Set the keyIdentifier property: The identifier of the key. + * + * @param keyIdentifier the keyIdentifier value to set. + * @return the KeyVaultKeyProperties object itself. + */ + public KeyVaultKeyProperties withKeyIdentifier(String keyIdentifier) { + this.keyIdentifier = keyIdentifier; + return this; + } + + /** + * Get the identity property: Managed identity properties of KeyVault Key. + * + * @return the identity value. + */ + public ManagedIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: Managed identity properties of KeyVault Key. + * + * @param identity the identity value to set. + * @return the KeyVaultKeyProperties object itself. + */ + public KeyVaultKeyProperties withIdentity(ManagedIdentity identity) { + this.identity = identity; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (identity() != null) { + identity().validate(); + } + } +} diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ManagedIdentity.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ManagedIdentity.java index 1ccf0db4f1f9d..9a1706f0fddeb 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ManagedIdentity.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ManagedIdentity.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The properties of the Managed identity. */ @Fluent public class ManagedIdentity { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedIdentity.class); - /* * The user assigned identity. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MatchedRoute.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MatchedRoute.java index ae87e959e2dfa..86c2bf096b44c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MatchedRoute.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MatchedRoute.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Routes that matched. */ @Fluent public final class MatchedRoute { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MatchedRoute.class); - /* * Properties of routes that matched */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MessagingEndpointProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MessagingEndpointProperties.java index 2ffb5cb3995ce..d84fcf607518a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MessagingEndpointProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MessagingEndpointProperties.java @@ -5,26 +5,20 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.Duration; /** The properties of the messaging endpoints used by this IoT hub. */ @Fluent public final class MessagingEndpointProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MessagingEndpointProperties.class); - /* - * The lock duration. See: - * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload. + * The lock duration. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload. */ @JsonProperty(value = "lockDurationAsIso8601") private Duration lockDurationAsIso8601; /* - * The period of time for which a message is available to consume before it - * is expired by the IoT hub. See: + * 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. */ @JsonProperty(value = "ttlAsIso8601") diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Name.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Name.java index d2a207582c131..8f9b4261c6d95 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Name.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Name.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Name of Iot Hub type. */ @Fluent public final class Name { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Name.class); - /* * IotHub type */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleIpAction.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleIpAction.java index 1f4cf94b56bac..2d83303ba9b65 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleIpAction.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleIpAction.java @@ -24,7 +24,11 @@ public static NetworkRuleIpAction fromString(String name) { return fromString(name, NetworkRuleIpAction.class); } - /** @return known NetworkRuleIpAction values. */ + /** + * Gets known NetworkRuleIpAction values. + * + * @return known NetworkRuleIpAction values. + */ public static Collection values() { return values(NetworkRuleIpAction.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleSetIpRule.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleSetIpRule.java index 420a12f6ab9fb..0512b0a61216d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleSetIpRule.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleSetIpRule.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** IP Rule to be applied as part of Network Rule Set. */ @Fluent public final class NetworkRuleSetIpRule { - @JsonIgnore private final ClientLogger logger = new ClientLogger(NetworkRuleSetIpRule.class); - /* * Name of the IP filter rule. */ @@ -27,8 +24,7 @@ public final class NetworkRuleSetIpRule { private NetworkRuleIpAction action; /* - * A string that contains the IP address range in CIDR notation for the - * rule. + * A string that contains the IP address range in CIDR notation for the rule. */ @JsonProperty(value = "ipMask", required = true) private String ipMask; @@ -100,14 +96,16 @@ public NetworkRuleSetIpRule withIpMask(String ipMask) { */ public void validate() { if (filterName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property filterName in model NetworkRuleSetIpRule")); } if (ipMask() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property ipMask in model NetworkRuleSetIpRule")); } } + + private static final ClientLogger LOGGER = new ClientLogger(NetworkRuleSetIpRule.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleSetProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleSetProperties.java index 7121e4d7c4d00..6f47e46a74dc3 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleSetProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleSetProperties.java @@ -6,15 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Network Rule Set Properties of IotHub. */ @Fluent public final class NetworkRuleSetProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(NetworkRuleSetProperties.class); - /* * Default Action for Network Rule Set */ @@ -22,8 +19,7 @@ public final class NetworkRuleSetProperties { private DefaultAction defaultAction; /* - * If True, then Network Rule Set is also applied to BuiltIn EventHub - * EndPoint of IotHub + * If True, then Network Rule Set is also applied to BuiltIn EventHub EndPoint of IotHub */ @JsonProperty(value = "applyToBuiltInEventHubEndpoint", required = true) private boolean applyToBuiltInEventHubEndpoint; @@ -103,7 +99,7 @@ public NetworkRuleSetProperties withIpRules(List ipRules) */ public void validate() { if (ipRules() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property ipRules in model NetworkRuleSetProperties")); @@ -111,4 +107,6 @@ public void validate() { ipRules().forEach(e -> e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(NetworkRuleSetProperties.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationDisplay.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationDisplay.java index 2f853034b9591..3c5633977ff86 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationDisplay.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationDisplay.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The object that represents the operation. */ @Immutable public final class OperationDisplay { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationDisplay.class); - /* * Service provider: Microsoft Devices */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationInputs.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationInputs.java index 6ac998cf03157..9492b03a654ee 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationInputs.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationInputs.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Input values. */ @Fluent public final class OperationInputs { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInputs.class); - /* * The name of the IoT hub to check. */ @@ -47,9 +44,11 @@ public OperationInputs withName(String name) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property name in model OperationInputs")); } } + + private static final ClientLogger LOGGER = new ClientLogger(OperationInputs.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationListResult.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationListResult.java index 34cd8e8df472d..cdce3e40088ba 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationListResult.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/OperationListResult.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.fluent.models.OperationInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -17,11 +15,8 @@ */ @Immutable public final class OperationListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationListResult.class); - /* - * List of IoT Hub operations supported by the Microsoft.Devices resource - * provider. + * List of IoT Hub operations supported by the Microsoft.Devices resource provider. */ @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) private List value; diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Operations.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Operations.java index e98e0d01a2d62..8fa75ea5e0773 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Operations.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/Operations.java @@ -15,7 +15,7 @@ public interface Operations { * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list IoT Hub operations. + * @return result of the request to list IoT Hub operations as paginated response with {@link PagedIterable}. */ PagedIterable list(); @@ -27,7 +27,7 @@ public interface Operations { * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list IoT Hub operations. + * @return result of the request to list IoT Hub operations as paginated response with {@link PagedIterable}. */ PagedIterable list(Context context); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpoint.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpoint.java index b0e77d065aea2..208001d2fc8e5 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpoint.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpoint.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The private endpoint property of a private endpoint connection. */ @Immutable public final class PrivateEndpoint { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpoint.class); - /* * The resource identifier. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnectionProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnectionProperties.java index 668c980a2e633..585a2e72b586a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnectionProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnectionProperties.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The properties of a private endpoint connection. */ @Fluent public final class PrivateEndpointConnectionProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionProperties.class); - /* * The private endpoint property of a private endpoint connection */ @@ -77,7 +74,7 @@ public void validate() { privateEndpoint().validate(); } if (privateLinkServiceConnectionState() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property privateLinkServiceConnectionState in model" @@ -86,4 +83,6 @@ public void validate() { privateLinkServiceConnectionState().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionProperties.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnections.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnections.java index 7b966cf7f46a4..c9bd4ce44b0e2 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnections.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnections.java @@ -12,7 +12,9 @@ /** Resource collection API of PrivateEndpointConnections. */ public interface PrivateEndpointConnections { /** - * List private endpoint connection properties. + * List private endpoint connections + * + *

List private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -25,7 +27,9 @@ public interface PrivateEndpointConnections { List list(String resourceGroupName, String resourceName); /** - * List private endpoint connection properties. + * List private endpoint connections + * + *

List private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -40,7 +44,9 @@ Response> listWithResponse( String resourceGroupName, String resourceName, Context context); /** - * Get private endpoint connection properties. + * Get private endpoint connection + * + *

Get private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -54,7 +60,9 @@ Response> listWithResponse( PrivateEndpointConnection get(String resourceGroupName, String resourceName, String privateEndpointConnectionName); /** - * Get private endpoint connection properties. + * Get private endpoint connection + * + *

Get private endpoint connection properties. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -70,7 +78,9 @@ Response getWithResponse( String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context); /** - * Update the status of a private endpoint connection with the specified name. + * Update private endpoint connection + * + *

Update the status of a private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -89,7 +99,9 @@ PrivateEndpointConnection update( PrivateEndpointConnectionInner privateEndpointConnection); /** - * Update the status of a private endpoint connection with the specified name. + * Update private endpoint connection + * + *

Update the status of a private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -110,7 +122,9 @@ PrivateEndpointConnection update( Context context); /** - * Delete private endpoint connection with the specified name. + * Delete private endpoint connection + * + *

Delete private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -125,7 +139,9 @@ PrivateEndpointConnection delete( String resourceGroupName, String resourceName, String privateEndpointConnectionName); /** - * Delete private endpoint connection with the specified name. + * Delete private endpoint connection + * + *

Delete private endpoint connection with the specified name. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkResourcesOperations.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkResourcesOperations.java index 4362700e0d091..f6b357d131ccf 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkResourcesOperations.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkResourcesOperations.java @@ -10,7 +10,9 @@ /** Resource collection API of PrivateLinkResourcesOperations. */ public interface PrivateLinkResourcesOperations { /** - * List private link resources for the given IotHub. + * List private link resources + * + *

List private link resources for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -23,7 +25,9 @@ public interface PrivateLinkResourcesOperations { PrivateLinkResources list(String resourceGroupName, String resourceName); /** - * List private link resources for the given IotHub. + * List private link resources + * + *

List private link resources for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -37,7 +41,9 @@ public interface PrivateLinkResourcesOperations { Response listWithResponse(String resourceGroupName, String resourceName, Context context); /** - * Get the specified private link resource for the given IotHub. + * Get the specified private link resource + * + *

Get the specified private link resource for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. @@ -51,7 +57,9 @@ public interface PrivateLinkResourcesOperations { GroupIdInformation get(String resourceGroupName, String resourceName, String groupId); /** - * Get the specified private link resource for the given IotHub. + * Get the specified private link resource + * + *

Get the specified private link resource for the given IotHub. * * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionState.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionState.java index 26044dc0415a9..43d671d7fd888 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionState.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionState.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The current state of a private endpoint connection. */ @Fluent public final class PrivateLinkServiceConnectionState { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkServiceConnectionState.class); - /* * The status of a private endpoint connection */ @@ -99,16 +96,18 @@ public PrivateLinkServiceConnectionState withActionsRequired(String actionsRequi */ public void validate() { if (status() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property status in model PrivateLinkServiceConnectionState")); } if (description() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property description in model PrivateLinkServiceConnectionState")); } } + + private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkServiceConnectionState.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionStatus.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionStatus.java index 9a7a9e618533b..ea7260518fe45 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionStatus.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionStatus.java @@ -33,7 +33,11 @@ public static PrivateLinkServiceConnectionStatus fromString(String name) { return fromString(name, PrivateLinkServiceConnectionStatus.class); } - /** @return known PrivateLinkServiceConnectionStatus values. */ + /** + * Gets known PrivateLinkServiceConnectionStatus values. + * + * @return known PrivateLinkServiceConnectionStatus values. + */ public static Collection values() { return values(PrivateLinkServiceConnectionStatus.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PublicNetworkAccess.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PublicNetworkAccess.java index 337473236a4f3..2cb526a24b70d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PublicNetworkAccess.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/PublicNetworkAccess.java @@ -27,7 +27,11 @@ public static PublicNetworkAccess fromString(String name) { return fromString(name, PublicNetworkAccess.class); } - /** @return known PublicNetworkAccess values. */ + /** + * Gets known PublicNetworkAccess values. + * + * @return known PublicNetworkAccess values. + */ public static Collection values() { return values(PublicNetworkAccess.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ResourceIdentityType.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ResourceIdentityType.java index c7beca9442866..052227ac6889e 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ResourceIdentityType.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ResourceIdentityType.java @@ -36,6 +36,9 @@ public enum ResourceIdentityType { */ @JsonCreator public static ResourceIdentityType fromString(String value) { + if (value == null) { + return null; + } ResourceIdentityType[] items = ResourceIdentityType.values(); for (ResourceIdentityType item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ResourceProviderCommons.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ResourceProviderCommons.java index d4c0604117ed6..0ed316f9ad279 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ResourceProviderCommons.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ResourceProviderCommons.java @@ -10,7 +10,9 @@ /** Resource collection API of ResourceProviderCommons. */ public interface ResourceProviderCommons { /** - * Get the number of free and paid iot hubs in the subscription. + * Get the number of iot hubs in the subscription + * + *

Get the number of free and paid iot hubs in the subscription. * * @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by * server. @@ -20,7 +22,9 @@ public interface ResourceProviderCommons { UserSubscriptionQuotaListResult getSubscriptionQuota(); /** - * Get the number of free and paid iot hubs in the subscription. + * Get the number of iot hubs in the subscription + * + *

Get the number of free and paid iot hubs in the subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RootCertificateProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RootCertificateProperties.java new file mode 100644 index 0000000000000..dea6719ef5201 --- /dev/null +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RootCertificateProperties.java @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.iothub.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** This property store root certificate related information. */ +@Fluent +public final class RootCertificateProperties { + /* + * This property when set to true, hub will use G2 cert; while it's set to false, hub uses Baltimore Cert. + */ + @JsonProperty(value = "enableRootCertificateV2") + private Boolean enableRootCertificateV2; + + /* + * the last update time to root certificate flag. + */ + @JsonProperty(value = "lastUpdatedTimeUtc", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime lastUpdatedTimeUtc; + + /** + * Get the enableRootCertificateV2 property: This property when set to true, hub will use G2 cert; while it's set to + * false, hub uses Baltimore Cert. + * + * @return the enableRootCertificateV2 value. + */ + public Boolean enableRootCertificateV2() { + return this.enableRootCertificateV2; + } + + /** + * Set the enableRootCertificateV2 property: This property when set to true, hub will use G2 cert; while it's set to + * false, hub uses Baltimore Cert. + * + * @param enableRootCertificateV2 the enableRootCertificateV2 value to set. + * @return the RootCertificateProperties object itself. + */ + public RootCertificateProperties withEnableRootCertificateV2(Boolean enableRootCertificateV2) { + this.enableRootCertificateV2 = enableRootCertificateV2; + return this; + } + + /** + * Get the lastUpdatedTimeUtc property: the last update time to root certificate flag. + * + * @return the lastUpdatedTimeUtc value. + */ + public OffsetDateTime lastUpdatedTimeUtc() { + return this.lastUpdatedTimeUtc; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteCompilationError.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteCompilationError.java index 40097484499ae..32d0640a8db9d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteCompilationError.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteCompilationError.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Compilation error when evaluating route. */ @Fluent public final class RouteCompilationError { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RouteCompilationError.class); - /* * Route error message */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorPosition.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorPosition.java index 2fff04210d8c3..58c43833be88a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorPosition.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorPosition.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Position where the route error happened. */ @Fluent public final class RouteErrorPosition { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RouteErrorPosition.class); - /* * Line where the route error happened */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorRange.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorRange.java index ffb314cf5039a..badcc3a39a7eb 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorRange.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorRange.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Range of route errors. */ @Fluent public final class RouteErrorRange { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RouteErrorRange.class); - /* * Start where the route error happened */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorSeverity.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorSeverity.java index 79a8835ddac22..05a198a0f92cb 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorSeverity.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorSeverity.java @@ -27,7 +27,11 @@ public static RouteErrorSeverity fromString(String name) { return fromString(name, RouteErrorSeverity.class); } - /** @return known RouteErrorSeverity values. */ + /** + * Gets known RouteErrorSeverity values. + * + * @return known RouteErrorSeverity values. + */ public static Collection values() { return values(RouteErrorSeverity.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteProperties.java index 55994f08e91b4..c37bffa3a7a83 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RouteProperties.java @@ -6,42 +6,35 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The properties of a routing rule that your IoT hub uses to route messages to endpoints. */ @Fluent public final class RouteProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RouteProperties.class); - /* - * 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. + * 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. */ @JsonProperty(value = "name", required = true) private String name; /* - * The source that the routing rule is to be applied to, such as - * DeviceMessages. + * The source that the routing rule is to be applied to, such as DeviceMessages. */ @JsonProperty(value = "source", required = true) private RoutingSource source; /* - * 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 + * 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 */ @JsonProperty(value = "condition") private String condition; /* - * The list of endpoints to which messages that satisfy the condition are - * routed. Currently only one endpoint is allowed. + * The list of endpoints to which messages that satisfy the condition are routed. Currently only one endpoint is + * allowed. */ @JsonProperty(value = "endpointNames", required = true) private List endpointNames; @@ -167,19 +160,21 @@ public RouteProperties withIsEnabled(boolean isEnabled) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property name in model RouteProperties")); } if (source() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property source in model RouteProperties")); } if (endpointNames() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property endpointNames in model RouteProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(RouteProperties.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingCosmosDBSqlApiProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingCosmosDBSqlApiProperties.java new file mode 100644 index 0000000000000..78ee4c4bb978d --- /dev/null +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingCosmosDBSqlApiProperties.java @@ -0,0 +1,406 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.iothub.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The properties related to a cosmos DB sql collection endpoint. */ +@Fluent +public final class RoutingCosmosDBSqlApiProperties { + /* + * 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, fileNotifications, + * $default. Endpoint names must be unique across endpoint types. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /* + * Id of the cosmos DB sql collection endpoint + */ + @JsonProperty(value = "id") + private String id; + + /* + * The subscription identifier of the cosmos DB account. + */ + @JsonProperty(value = "subscriptionId") + private String subscriptionId; + + /* + * The name of the resource group of the cosmos DB account. + */ + @JsonProperty(value = "resourceGroup") + private String resourceGroup; + + /* + * The url of the cosmos DB account. It must include the protocol https:// + */ + @JsonProperty(value = "endpointUri", required = true) + private String endpointUri; + + /* + * Method used to authenticate against the cosmos DB sql collection endpoint + */ + @JsonProperty(value = "authenticationType") + private AuthenticationType authenticationType; + + /* + * Managed identity properties of routing cosmos DB collection endpoint. + */ + @JsonProperty(value = "identity") + private ManagedIdentity identity; + + /* + * The primary key of the cosmos DB account. + */ + @JsonProperty(value = "primaryKey") + private String primaryKey; + + /* + * The secondary key of the cosmos DB account. + */ + @JsonProperty(value = "secondaryKey") + private String secondaryKey; + + /* + * The name of the cosmos DB database in the cosmos DB account. + */ + @JsonProperty(value = "databaseName", required = true) + private String databaseName; + + /* + * The name of the cosmos DB sql collection in the cosmos DB database. + */ + @JsonProperty(value = "collectionName", required = true) + private String collectionName; + + /* + * The name of the partition key associated with this cosmos DB sql collection if one exists. This is an optional + * parameter. + */ + @JsonProperty(value = "partitionKeyName") + private String partitionKeyName; + + /* + * The template for generating a synthetic partition key value for use with this cosmos DB sql collection. The + * template must include at least one of the following placeholders: {iothub}, {deviceid}, {DD}, {MM}, and {YYYY}. + * Any one placeholder may be specified at most once, but order and non-placeholder components are arbitrary. This + * parameter is only required if PartitionKeyName is specified. + */ + @JsonProperty(value = "partitionKeyTemplate") + private String partitionKeyTemplate; + + /** + * Get the name property: 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, fileNotifications, $default. Endpoint names must be unique across endpoint types. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: 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, fileNotifications, $default. Endpoint names must be unique across endpoint types. + * + * @param name the name value to set. + * @return the RoutingCosmosDBSqlApiProperties object itself. + */ + public RoutingCosmosDBSqlApiProperties withName(String name) { + this.name = name; + return this; + } + + /** + * Get the id property: Id of the cosmos DB sql collection endpoint. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: Id of the cosmos DB sql collection endpoint. + * + * @param id the id value to set. + * @return the RoutingCosmosDBSqlApiProperties object itself. + */ + public RoutingCosmosDBSqlApiProperties withId(String id) { + this.id = id; + return this; + } + + /** + * Get the subscriptionId property: The subscription identifier of the cosmos DB account. + * + * @return the subscriptionId value. + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Set the subscriptionId property: The subscription identifier of the cosmos DB account. + * + * @param subscriptionId the subscriptionId value to set. + * @return the RoutingCosmosDBSqlApiProperties object itself. + */ + public RoutingCosmosDBSqlApiProperties withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * Get the resourceGroup property: The name of the resource group of the cosmos DB account. + * + * @return the resourceGroup value. + */ + public String resourceGroup() { + return this.resourceGroup; + } + + /** + * Set the resourceGroup property: The name of the resource group of the cosmos DB account. + * + * @param resourceGroup the resourceGroup value to set. + * @return the RoutingCosmosDBSqlApiProperties object itself. + */ + public RoutingCosmosDBSqlApiProperties withResourceGroup(String resourceGroup) { + this.resourceGroup = resourceGroup; + return this; + } + + /** + * Get the endpointUri property: The url of the cosmos DB account. It must include the protocol https://. + * + * @return the endpointUri value. + */ + public String endpointUri() { + return this.endpointUri; + } + + /** + * Set the endpointUri property: The url of the cosmos DB account. It must include the protocol https://. + * + * @param endpointUri the endpointUri value to set. + * @return the RoutingCosmosDBSqlApiProperties object itself. + */ + public RoutingCosmosDBSqlApiProperties withEndpointUri(String endpointUri) { + this.endpointUri = endpointUri; + return this; + } + + /** + * Get the authenticationType property: Method used to authenticate against the cosmos DB sql collection endpoint. + * + * @return the authenticationType value. + */ + public AuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType property: Method used to authenticate against the cosmos DB sql collection endpoint. + * + * @param authenticationType the authenticationType value to set. + * @return the RoutingCosmosDBSqlApiProperties object itself. + */ + public RoutingCosmosDBSqlApiProperties withAuthenticationType(AuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the identity property: Managed identity properties of routing cosmos DB collection endpoint. + * + * @return the identity value. + */ + public ManagedIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: Managed identity properties of routing cosmos DB collection endpoint. + * + * @param identity the identity value to set. + * @return the RoutingCosmosDBSqlApiProperties object itself. + */ + public RoutingCosmosDBSqlApiProperties withIdentity(ManagedIdentity identity) { + this.identity = identity; + return this; + } + + /** + * Get the primaryKey property: The primary key of the cosmos DB account. + * + * @return the primaryKey value. + */ + public String primaryKey() { + return this.primaryKey; + } + + /** + * Set the primaryKey property: The primary key of the cosmos DB account. + * + * @param primaryKey the primaryKey value to set. + * @return the RoutingCosmosDBSqlApiProperties object itself. + */ + public RoutingCosmosDBSqlApiProperties withPrimaryKey(String primaryKey) { + this.primaryKey = primaryKey; + return this; + } + + /** + * Get the secondaryKey property: The secondary key of the cosmos DB account. + * + * @return the secondaryKey value. + */ + public String secondaryKey() { + return this.secondaryKey; + } + + /** + * Set the secondaryKey property: The secondary key of the cosmos DB account. + * + * @param secondaryKey the secondaryKey value to set. + * @return the RoutingCosmosDBSqlApiProperties object itself. + */ + public RoutingCosmosDBSqlApiProperties withSecondaryKey(String secondaryKey) { + this.secondaryKey = secondaryKey; + return this; + } + + /** + * Get the databaseName property: The name of the cosmos DB database in the cosmos DB account. + * + * @return the databaseName value. + */ + public String databaseName() { + return this.databaseName; + } + + /** + * Set the databaseName property: The name of the cosmos DB database in the cosmos DB account. + * + * @param databaseName the databaseName value to set. + * @return the RoutingCosmosDBSqlApiProperties object itself. + */ + public RoutingCosmosDBSqlApiProperties withDatabaseName(String databaseName) { + this.databaseName = databaseName; + return this; + } + + /** + * Get the collectionName property: The name of the cosmos DB sql collection in the cosmos DB database. + * + * @return the collectionName value. + */ + public String collectionName() { + return this.collectionName; + } + + /** + * Set the collectionName property: The name of the cosmos DB sql collection in the cosmos DB database. + * + * @param collectionName the collectionName value to set. + * @return the RoutingCosmosDBSqlApiProperties object itself. + */ + public RoutingCosmosDBSqlApiProperties withCollectionName(String collectionName) { + this.collectionName = collectionName; + return this; + } + + /** + * Get the partitionKeyName property: The name of the partition key associated with this cosmos DB sql collection if + * one exists. This is an optional parameter. + * + * @return the partitionKeyName value. + */ + public String partitionKeyName() { + return this.partitionKeyName; + } + + /** + * Set the partitionKeyName property: The name of the partition key associated with this cosmos DB sql collection if + * one exists. This is an optional parameter. + * + * @param partitionKeyName the partitionKeyName value to set. + * @return the RoutingCosmosDBSqlApiProperties object itself. + */ + public RoutingCosmosDBSqlApiProperties withPartitionKeyName(String partitionKeyName) { + this.partitionKeyName = partitionKeyName; + return this; + } + + /** + * Get the partitionKeyTemplate property: The template for generating a synthetic partition key value for use with + * this cosmos DB sql collection. The template must include at least one of the following placeholders: {iothub}, + * {deviceid}, {DD}, {MM}, and {YYYY}. Any one placeholder may be specified at most once, but order and + * non-placeholder components are arbitrary. This parameter is only required if PartitionKeyName is specified. + * + * @return the partitionKeyTemplate value. + */ + public String partitionKeyTemplate() { + return this.partitionKeyTemplate; + } + + /** + * Set the partitionKeyTemplate property: The template for generating a synthetic partition key value for use with + * this cosmos DB sql collection. The template must include at least one of the following placeholders: {iothub}, + * {deviceid}, {DD}, {MM}, and {YYYY}. Any one placeholder may be specified at most once, but order and + * non-placeholder components are arbitrary. This parameter is only required if PartitionKeyName is specified. + * + * @param partitionKeyTemplate the partitionKeyTemplate value to set. + * @return the RoutingCosmosDBSqlApiProperties object itself. + */ + public RoutingCosmosDBSqlApiProperties withPartitionKeyTemplate(String partitionKeyTemplate) { + this.partitionKeyTemplate = partitionKeyTemplate; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (name() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property name in model RoutingCosmosDBSqlApiProperties")); + } + if (endpointUri() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property endpointUri in model RoutingCosmosDBSqlApiProperties")); + } + if (identity() != null) { + identity().validate(); + } + if (databaseName() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property databaseName in model RoutingCosmosDBSqlApiProperties")); + } + if (collectionName() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property collectionName in model RoutingCosmosDBSqlApiProperties")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(RoutingCosmosDBSqlApiProperties.class); +} diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingEndpoints.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingEndpoints.java index f93098ac15385..29f5d4e61c368 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingEndpoints.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingEndpoints.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -17,37 +15,37 @@ */ @Fluent public final class RoutingEndpoints { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RoutingEndpoints.class); - /* - * The list of Service Bus queue endpoints that IoT hub routes the messages - * to, based on the routing rules. + * The list of Service Bus queue endpoints that IoT hub routes the messages to, based on the routing rules. */ @JsonProperty(value = "serviceBusQueues") private List serviceBusQueues; /* - * The list of Service Bus topic endpoints that the IoT hub routes the - * messages to, based on the routing rules. + * The list of Service Bus topic endpoints that the IoT hub routes the messages to, based on the routing rules. */ @JsonProperty(value = "serviceBusTopics") private List serviceBusTopics; /* - * 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. + * 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. */ @JsonProperty(value = "eventHubs") private List eventHubs; /* - * The list of storage container endpoints that IoT hub routes messages to, - * based on the routing rules. + * The list of storage container endpoints that IoT hub routes messages to, based on the routing rules. */ @JsonProperty(value = "storageContainers") private List storageContainers; + /* + * The list of Cosmos DB collection endpoints that IoT hub routes messages to, based on the routing rules. + */ + @JsonProperty(value = "cosmosDBSqlCollections") + private List cosmosDBSqlCollections; + /** * Get the serviceBusQueues property: The list of Service Bus queue endpoints that IoT hub routes the messages to, * based on the routing rules. @@ -136,6 +134,28 @@ public RoutingEndpoints withStorageContainers(List cosmosDBSqlCollections() { + return this.cosmosDBSqlCollections; + } + + /** + * Set the cosmosDBSqlCollections property: The list of Cosmos DB collection endpoints that IoT hub routes messages + * to, based on the routing rules. + * + * @param cosmosDBSqlCollections the cosmosDBSqlCollections value to set. + * @return the RoutingEndpoints object itself. + */ + public RoutingEndpoints withCosmosDBSqlCollections(List cosmosDBSqlCollections) { + this.cosmosDBSqlCollections = cosmosDBSqlCollections; + return this; + } + /** * Validates the instance. * @@ -154,5 +174,8 @@ public void validate() { if (storageContainers() != null) { storageContainers().forEach(e -> e.validate()); } + if (cosmosDBSqlCollections() != null) { + cosmosDBSqlCollections().forEach(e -> e.validate()); + } } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingEventHubProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingEventHubProperties.java index 235e904a445c5..c0407b824d6bf 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingEventHubProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingEventHubProperties.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The properties related to an event hub endpoint. */ @Fluent public final class RoutingEventHubProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RoutingEventHubProperties.class); - /* * Id of the event hub endpoint */ @@ -51,11 +48,9 @@ public final class RoutingEventHubProperties { private ManagedIdentity identity; /* - * 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, - * fileNotifications, $default. Endpoint names must be unique across - * endpoint types. + * 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, fileNotifications, + * $default. Endpoint names must be unique across endpoint types. */ @JsonProperty(value = "name", required = true) private String name; @@ -266,9 +261,11 @@ public void validate() { identity().validate(); } if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property name in model RoutingEventHubProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(RoutingEventHubProperties.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingMessage.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingMessage.java index a3d2d00f01124..05ebe0e4174c2 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingMessage.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingMessage.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -14,8 +12,6 @@ /** Routing message. */ @Fluent public final class RoutingMessage { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RoutingMessage.class); - /* * Body of routing message */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingProperties.java index 6f3799c460459..bc1e0579a9312 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingProperties.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -16,40 +14,33 @@ */ @Fluent public final class RoutingProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RoutingProperties.class); - /* - * The properties related to the custom endpoints to which your IoT hub - * routes messages based on the routing rules. A maximum of 10 custom - * endpoints are allowed across all endpoint types for paid hubs and only 1 - * custom endpoint is allowed across all endpoint types for free hubs. + * The properties related to the custom endpoints to which your IoT hub routes messages based on the routing rules. + * A maximum of 10 custom endpoints are allowed across all endpoint types for paid hubs and only 1 custom endpoint + * is allowed across all endpoint types for free hubs. */ @JsonProperty(value = "endpoints") private RoutingEndpoints endpoints; /* - * 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. + * 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. */ @JsonProperty(value = "routes") private List routes; /* - * 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. + * 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. */ @JsonProperty(value = "fallbackRoute") private FallbackRouteProperties fallbackRoute; /* - * The list of user-provided enrichments that the IoT hub applies to - * messages to be delivered to built-in and custom endpoints. See: - * https://aka.ms/telemetryoneventgrid + * The list of user-provided enrichments that the IoT hub applies to messages to be delivered to built-in and + * custom endpoints. See: https://aka.ms/telemetryoneventgrid */ @JsonProperty(value = "enrichments") private List enrichments; diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusQueueEndpointProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusQueueEndpointProperties.java index 3736dc3a2a266..2aa27d8e8a2b2 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusQueueEndpointProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusQueueEndpointProperties.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The properties related to service bus queue endpoint types. */ @Fluent public final class RoutingServiceBusQueueEndpointProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RoutingServiceBusQueueEndpointProperties.class); - /* * Id of the service bus queue endpoint */ @@ -27,8 +24,7 @@ public final class RoutingServiceBusQueueEndpointProperties { private String connectionString; /* - * The url of the service bus queue endpoint. It must include the protocol - * sb:// + * The url of the service bus queue endpoint. It must include the protocol sb:// */ @JsonProperty(value = "endpointUri") private String endpointUri; @@ -52,11 +48,10 @@ public final class RoutingServiceBusQueueEndpointProperties { private ManagedIdentity identity; /* - * 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, - * fileNotifications, $default. Endpoint names must be unique across - * endpoint types. The name need not be the same as the actual queue name. + * 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, fileNotifications, + * $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual queue + * name. */ @JsonProperty(value = "name", required = true) private String name; @@ -269,10 +264,12 @@ public void validate() { identity().validate(); } if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property name in model RoutingServiceBusQueueEndpointProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(RoutingServiceBusQueueEndpointProperties.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusTopicEndpointProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusTopicEndpointProperties.java index 190b697a5b820..a339789d02eb1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusTopicEndpointProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusTopicEndpointProperties.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The properties related to service bus topic endpoint types. */ @Fluent public final class RoutingServiceBusTopicEndpointProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RoutingServiceBusTopicEndpointProperties.class); - /* * Id of the service bus topic endpoint */ @@ -27,8 +24,7 @@ public final class RoutingServiceBusTopicEndpointProperties { private String connectionString; /* - * The url of the service bus topic endpoint. It must include the protocol - * sb:// + * The url of the service bus topic endpoint. It must include the protocol sb:// */ @JsonProperty(value = "endpointUri") private String endpointUri; @@ -52,11 +48,10 @@ public final class RoutingServiceBusTopicEndpointProperties { private ManagedIdentity identity; /* - * 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, - * fileNotifications, $default. Endpoint names must be unique across - * endpoint types. The name need not be the same as the actual topic name. + * 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, fileNotifications, + * $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual + * topic name. */ @JsonProperty(value = "name", required = true) private String name; @@ -269,10 +264,12 @@ public void validate() { identity().validate(); } if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property name in model RoutingServiceBusTopicEndpointProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(RoutingServiceBusTopicEndpointProperties.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingSource.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingSource.java index 666b10fecd934..f89717f6dbb42 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingSource.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingSource.java @@ -25,9 +25,15 @@ public final class RoutingSource extends ExpandableStringEnum { /** Static value DeviceJobLifecycleEvents for RoutingSource. */ public static final RoutingSource DEVICE_JOB_LIFECYCLE_EVENTS = fromString("DeviceJobLifecycleEvents"); + /** Static value DigitalTwinChangeEvents for RoutingSource. */ + public static final RoutingSource DIGITAL_TWIN_CHANGE_EVENTS = fromString("DigitalTwinChangeEvents"); + /** Static value DeviceConnectionStateEvents for RoutingSource. */ public static final RoutingSource DEVICE_CONNECTION_STATE_EVENTS = fromString("DeviceConnectionStateEvents"); + /** Static value MqttBrokerMessages for RoutingSource. */ + public static final RoutingSource MQTT_BROKER_MESSAGES = fromString("MqttBrokerMessages"); + /** * Creates or finds a RoutingSource from its string representation. * @@ -39,7 +45,11 @@ public static RoutingSource fromString(String name) { return fromString(name, RoutingSource.class); } - /** @return known RoutingSource values. */ + /** + * Gets known RoutingSource values. + * + * @return known RoutingSource values. + */ public static Collection values() { return values(RoutingSource.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerProperties.java index 1221f96c48dd2..71896ac856801 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerProperties.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The properties related to a storage container endpoint. */ @Fluent public final class RoutingStorageContainerProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RoutingStorageContainerProperties.class); - /* * Id of the storage container endpoint */ @@ -45,11 +42,9 @@ public final class RoutingStorageContainerProperties { private ManagedIdentity identity; /* - * 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, - * fileNotifications, $default. Endpoint names must be unique across - * endpoint types. + * 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, fileNotifications, + * $default. Endpoint names must be unique across endpoint types. */ @JsonProperty(value = "name", required = true) private String name; @@ -73,31 +68,29 @@ public final class RoutingStorageContainerProperties { private String containerName; /* - * File name format for the blob. Default format is - * {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are - * mandatory but can be reordered. + * File name format for the blob. Default format is {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters + * are mandatory but can be reordered. */ @JsonProperty(value = "fileNameFormat") private String fileNameFormat; /* - * Time interval at which blobs are written to storage. Value should be - * between 60 and 720 seconds. Default value is 300 seconds. + * Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value + * is 300 seconds. */ @JsonProperty(value = "batchFrequencyInSeconds") private Integer batchFrequencyInSeconds; /* - * Maximum number of bytes for each blob written to storage. Value should - * be between 10485760(10MB) and 524288000(500MB). Default value is - * 314572800(300MB). + * Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and + * 524288000(500MB). Default value is 314572800(300MB). */ @JsonProperty(value = "maxChunkSizeInBytes") private Integer maxChunkSizeInBytes; /* - * Encoding that is used to serialize messages to blobs. Supported values - * are 'avro', 'avrodeflate', and 'JSON'. Default value is 'avro'. + * Encoding that is used to serialize messages to blobs. Supported values are 'avro', 'avrodeflate', and 'JSON'. + * Default value is 'avro'. */ @JsonProperty(value = "encoding") private RoutingStorageContainerPropertiesEncoding encoding; @@ -384,16 +377,18 @@ public void validate() { identity().validate(); } if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property name in model RoutingStorageContainerProperties")); } if (containerName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property containerName in model RoutingStorageContainerProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(RoutingStorageContainerProperties.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerPropertiesEncoding.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerPropertiesEncoding.java index 8948c5e4c85cd..15291378a32f7 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerPropertiesEncoding.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerPropertiesEncoding.java @@ -31,7 +31,11 @@ public static RoutingStorageContainerPropertiesEncoding fromString(String name) return fromString(name, RoutingStorageContainerPropertiesEncoding.class); } - /** @return known RoutingStorageContainerPropertiesEncoding values. */ + /** + * Gets known RoutingStorageContainerPropertiesEncoding values. + * + * @return known RoutingStorageContainerPropertiesEncoding values. + */ public static Collection values() { return values(RoutingStorageContainerPropertiesEncoding.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwin.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwin.java index 3f353d6b29ef9..5d14694e9bec3 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwin.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwin.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Twin reference input parameter. This is an optional parameter. */ @Fluent public final class RoutingTwin { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RoutingTwin.class); - /* * Twin Tags */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwinProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwinProperties.java index 768c19f1f4fc4..c9b0ca0006723 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwinProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwinProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The RoutingTwinProperties model. */ @Fluent public final class RoutingTwinProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RoutingTwinProperties.class); - /* * Twin desired properties */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/SharedAccessSignatureAuthorizationRuleListResult.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/SharedAccessSignatureAuthorizationRuleListResult.java index 36a3d1d9fe44c..763f83f7c0c9e 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/SharedAccessSignatureAuthorizationRuleListResult.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/SharedAccessSignatureAuthorizationRuleListResult.java @@ -5,18 +5,13 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.iothub.fluent.models.SharedAccessSignatureAuthorizationRuleInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of shared access policies with a next link. */ @Fluent public final class SharedAccessSignatureAuthorizationRuleListResult { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SharedAccessSignatureAuthorizationRuleListResult.class); - /* * The list of shared access policies. */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/StorageEndpointProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/StorageEndpointProperties.java index bc00003165548..2ccb5374dcfb1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/StorageEndpointProperties.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/StorageEndpointProperties.java @@ -6,41 +6,34 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.Duration; /** The properties of the Azure Storage endpoint for file upload. */ @Fluent public final class StorageEndpointProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(StorageEndpointProperties.class); - /* - * The period of time for which the SAS URI generated by IoT Hub for file - * upload is valid. See: + * The period of time for which 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. */ @JsonProperty(value = "sasTtlAsIso8601") private Duration sasTtlAsIso8601; /* - * The connection string for the Azure Storage account to which files are - * uploaded. + * The connection string for the Azure Storage account to which files are uploaded. */ @JsonProperty(value = "connectionString", required = true) private String connectionString; /* - * The name of the root container where you upload files. The container - * need not exist but should be creatable using the connectionString - * specified. + * The name of the root container where you upload files. The container need not exist but should be creatable + * using the connectionString specified. */ @JsonProperty(value = "containerName", required = true) private String containerName; /* - * Specifies authentication type being used for connecting to the storage - * account. + * Specifies authentication type being used for connecting to the storage account. */ @JsonProperty(value = "authenticationType") private AuthenticationType authenticationType; @@ -168,13 +161,13 @@ public StorageEndpointProperties withIdentity(ManagedIdentity identity) { */ public void validate() { if (connectionString() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property connectionString in model StorageEndpointProperties")); } if (containerName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property containerName in model StorageEndpointProperties")); @@ -183,4 +176,6 @@ public void validate() { identity().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(StorageEndpointProperties.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TagsResource.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TagsResource.java index 77f43a06514c5..b4182756354ef 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TagsResource.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TagsResource.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -14,8 +12,6 @@ /** A container holding only the Tags for a resource, allowing the user to update the tags on an IoT Hub instance. */ @Fluent public final class TagsResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TagsResource.class); - /* * Resource tags */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestAllRoutesInput.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestAllRoutesInput.java index bc114025d07a4..4cf94aa381c63 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestAllRoutesInput.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestAllRoutesInput.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Input for testing all routes. */ @Fluent public final class TestAllRoutesInput { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TestAllRoutesInput.class); - /* * Routing source */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestResultStatus.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestResultStatus.java index 3637821205b46..21ae5ab545bf5 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestResultStatus.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestResultStatus.java @@ -30,7 +30,11 @@ public static TestResultStatus fromString(String name) { return fromString(name, TestResultStatus.class); } - /** @return known TestResultStatus values. */ + /** + * Gets known TestResultStatus values. + * + * @return known TestResultStatus values. + */ public static Collection values() { return values(TestResultStatus.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestRouteInput.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestRouteInput.java index b9c5e282361cc..0d428cf8f446a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestRouteInput.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestRouteInput.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Input for testing route. */ @Fluent public final class TestRouteInput { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TestRouteInput.class); - /* * Routing message */ @@ -102,7 +99,7 @@ public void validate() { message().validate(); } if (route() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property route in model TestRouteInput")); } else { @@ -112,4 +109,6 @@ public void validate() { twin().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(TestRouteInput.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestRouteResultDetails.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestRouteResultDetails.java index d620c2a4ea786..64fdab8f0dd29 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestRouteResultDetails.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TestRouteResultDetails.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Detailed result of testing a route. */ @Fluent public final class TestRouteResultDetails { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TestRouteResultDetails.class); - /* * JSON-serialized list of route compilation errors */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/UserSubscriptionQuota.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/UserSubscriptionQuota.java index 5651eef095929..3d2abc6cd07f8 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/UserSubscriptionQuota.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/UserSubscriptionQuota.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.iothub.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** User subscription quota response. */ @Fluent public final class UserSubscriptionQuota { - @JsonIgnore private final ClientLogger logger = new ClientLogger(UserSubscriptionQuota.class); - /* * IotHub type id */ diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesCreateOrUpdateSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesCreateOrUpdateSamples.java index bc0e9b4dd8d92..2cac0710fe9e7 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesCreateOrUpdateSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesCreateOrUpdateSamples.java @@ -9,7 +9,7 @@ /** Samples for Certificates CreateOrUpdate. */ public final class CertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_certificatescreateorupdate.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_certificatescreateorupdate.json */ /** * Sample code: Certificates_CreateOrUpdate. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesDeleteSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesDeleteSamples.java index ef98fefb2e8af..0dd6678d052c3 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesDeleteSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Certificates Delete. */ public final class CertificatesDeleteSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_certificatesdelete.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_certificatesdelete.json */ /** * Sample code: Certificates_Delete. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGenerateVerificationCodeSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGenerateVerificationCodeSamples.java index d5c2da81cb135..503fd5544a2d4 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGenerateVerificationCodeSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGenerateVerificationCodeSamples.java @@ -9,7 +9,7 @@ /** Samples for Certificates GenerateVerificationCode. */ public final class CertificatesGenerateVerificationCodeSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_generateverificationcode.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_generateverificationcode.json */ /** * Sample code: Certificates_GenerateVerificationCode. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGetSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGetSamples.java index 529b9abdf7631..0d1de9e93d1dd 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGetSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for Certificates Get. */ public final class CertificatesGetSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_getcertificate.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getcertificate.json */ /** * Sample code: Certificates_Get. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesListByIotHubSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesListByIotHubSamples.java index cff1e4d306301..ecc8530355163 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesListByIotHubSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesListByIotHubSamples.java @@ -9,7 +9,7 @@ /** Samples for Certificates ListByIotHub. */ public final class CertificatesListByIotHubSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_listcertificates.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listcertificates.json */ /** * Sample code: Certificates_ListByIotHub. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesVerifySamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesVerifySamples.java index 4c544bee6610f..d35f9196ab780 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesVerifySamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesVerifySamples.java @@ -10,7 +10,7 @@ /** Samples for Certificates Verify. */ public final class CertificatesVerifySamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_certverify.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_certverify.json */ /** * Sample code: Certificates_Verify. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubManualFailoverSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubManualFailoverSamples.java index cb775121cad34..175f6f93299dc 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubManualFailoverSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubManualFailoverSamples.java @@ -10,7 +10,7 @@ /** Samples for IotHub ManualFailover. */ public final class IotHubManualFailoverSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/IotHub_ManualFailover.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/IotHub_ManualFailover.json */ /** * Sample code: IotHub_ManualFailover. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCheckNameAvailabilitySamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCheckNameAvailabilitySamples.java index d6ab2b25846d1..6413aca9418b5 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCheckNameAvailabilitySamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCheckNameAvailabilitySamples.java @@ -10,7 +10,7 @@ /** Samples for IotHubResource CheckNameAvailability. */ public final class IotHubResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/checkNameAvailability.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/checkNameAvailability.json */ /** * Sample code: IotHubResource_CheckNameAvailability. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateEventHubConsumerGroupSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateEventHubConsumerGroupSamples.java index f51664a83b2db..203999b7d0cb0 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateEventHubConsumerGroupSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateEventHubConsumerGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource CreateEventHubConsumerGroup. */ public final class IotHubResourceCreateEventHubConsumerGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_createconsumergroup.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_createconsumergroup.json */ /** * Sample code: IotHubResource_CreateEventHubConsumerGroup. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateOrUpdateSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateOrUpdateSamples.java index 43dad93e6f78f..95d833666969d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateOrUpdateSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateOrUpdateSamples.java @@ -17,6 +17,7 @@ import com.azure.resourcemanager.iothub.models.NetworkRuleIpAction; import com.azure.resourcemanager.iothub.models.NetworkRuleSetIpRule; import com.azure.resourcemanager.iothub.models.NetworkRuleSetProperties; +import com.azure.resourcemanager.iothub.models.RootCertificateProperties; import com.azure.resourcemanager.iothub.models.RoutingEndpoints; import com.azure.resourcemanager.iothub.models.RoutingProperties; import com.azure.resourcemanager.iothub.models.RoutingSource; @@ -29,7 +30,7 @@ /** Samples for IotHubResource CreateOrUpdate. */ public final class IotHubResourceCreateOrUpdateSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_createOrUpdate.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_createOrUpdate.json */ /** * Sample code: IotHubResource_CreateOrUpdate. @@ -107,7 +108,8 @@ public static void iotHubResourceCreateOrUpdate(com.azure.resourcemanager.iothub .withTtlAsIso8601(Duration.parse("PT1H")) .withMaxDeliveryCount(10))) .withFeatures(Capabilities.NONE) - .withEnableDataResidency(true)) + .withEnableDataResidency(true) + .withRootCertificate(new RootCertificateProperties().withEnableRootCertificateV2(true))) .create(); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteEventHubConsumerGroupSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteEventHubConsumerGroupSamples.java index a3c44a7006c78..78a67207bb4f1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteEventHubConsumerGroupSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteEventHubConsumerGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource DeleteEventHubConsumerGroup. */ public final class IotHubResourceDeleteEventHubConsumerGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_deleteconsumergroup.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_deleteconsumergroup.json */ /** * Sample code: IotHubResource_DeleteEventHubConsumerGroup. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteSamples.java index 3e12710b94cc5..dbdd3c24b6ff6 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource Delete. */ public final class IotHubResourceDeleteSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_delete.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_delete.json */ /** * Sample code: IotHubResource_Delete. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceExportDevicesSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceExportDevicesSamples.java index 0c13e173f7ce8..248c5e28738a4 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceExportDevicesSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceExportDevicesSamples.java @@ -5,12 +5,14 @@ package com.azure.resourcemanager.iothub.generated; import com.azure.core.util.Context; +import com.azure.resourcemanager.iothub.models.AuthenticationType; import com.azure.resourcemanager.iothub.models.ExportDevicesRequest; +import com.azure.resourcemanager.iothub.models.ManagedIdentity; /** Samples for IotHubResource ExportDevices. */ public final class IotHubResourceExportDevicesSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_exportdevices.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_exportdevices.json */ /** * Sample code: IotHubResource_ExportDevices. @@ -23,7 +25,14 @@ public static void iotHubResourceExportDevices(com.azure.resourcemanager.iothub. .exportDevicesWithResponse( "myResourceGroup", "testHub", - new ExportDevicesRequest().withExportBlobContainerUri("testBlob").withExcludeKeys(true), + new ExportDevicesRequest() + .withExportBlobContainerUri("testBlob") + .withExcludeKeys(true) + .withAuthenticationType(AuthenticationType.IDENTITY_BASED) + .withIdentity( + new ManagedIdentity() + .withUserAssignedIdentity( + "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1")), Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetByResourceGroupSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetByResourceGroupSamples.java index ab7fd20ecb50c..e934769d48ba4 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetByResourceGroupSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource GetByResourceGroup. */ public final class IotHubResourceGetByResourceGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_get.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_get.json */ /** * Sample code: IotHubResource_Get. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEndpointHealthSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEndpointHealthSamples.java index 3e96571f73037..0b211660e3a2c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEndpointHealthSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEndpointHealthSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource GetEndpointHealth. */ public final class IotHubResourceGetEndpointHealthSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_routingendpointhealth.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_routingendpointhealth.json */ /** * Sample code: IotHubResource_GetEndpointHealth. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEventHubConsumerGroupSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEventHubConsumerGroupSamples.java index 210565a093edf..e4832f6df322f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEventHubConsumerGroupSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEventHubConsumerGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource GetEventHubConsumerGroup. */ public final class IotHubResourceGetEventHubConsumerGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_getconsumergroup.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getconsumergroup.json */ /** * Sample code: IotHubResource_ListEventHubConsumerGroups. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetJobSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetJobSamples.java index d1ccd1e68be9d..d3b8d9b660234 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetJobSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetJobSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource GetJob. */ public final class IotHubResourceGetJobSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_getjob.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getjob.json */ /** * Sample code: IotHubResource_GetJob. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetKeysForKeyNameSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetKeysForKeyNameSamples.java index 1dcac5dee7517..c310e03d1d532 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetKeysForKeyNameSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetKeysForKeyNameSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource GetKeysForKeyName. */ public final class IotHubResourceGetKeysForKeyNameSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_getkey.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getkey.json */ /** * Sample code: IotHubResource_GetKeysForKeyName. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetQuotaMetricsSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetQuotaMetricsSamples.java index 80c42d5a7007e..bef02fa66e97c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetQuotaMetricsSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetQuotaMetricsSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource GetQuotaMetrics. */ public final class IotHubResourceGetQuotaMetricsSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_quotametrics.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_quotametrics.json */ /** * Sample code: IotHubResource_GetQuotaMetrics. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetStatsSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetStatsSamples.java index 938cd6e3e5304..4847a321c825e 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetStatsSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetStatsSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource GetStats. */ public final class IotHubResourceGetStatsSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_stats.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_stats.json */ /** * Sample code: IotHubResource_GetStats. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetValidSkusSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetValidSkusSamples.java index ff4961c3fe98a..e9db936fd0eb0 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetValidSkusSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetValidSkusSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource GetValidSkus. */ public final class IotHubResourceGetValidSkusSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_getskus.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getskus.json */ /** * Sample code: IotHubResource_GetValidSkus. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceImportDevicesSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceImportDevicesSamples.java index f5bc86e2063d3..0221066f06515 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceImportDevicesSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceImportDevicesSamples.java @@ -10,7 +10,7 @@ /** Samples for IotHubResource ImportDevices. */ public final class IotHubResourceImportDevicesSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_importdevices.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_importdevices.json */ /** * Sample code: IotHubResource_ImportDevices. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListByResourceGroupSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListByResourceGroupSamples.java index 565e404bcc601..2fa382f5daf44 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListByResourceGroupSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource ListByResourceGroup. */ public final class IotHubResourceListByResourceGroupSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_listbyrg.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listbyrg.json */ /** * Sample code: IotHubResource_ListByResourceGroup. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListEventHubConsumerGroupsSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListEventHubConsumerGroupsSamples.java index 1226072d71eb1..f6af1c0392d65 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListEventHubConsumerGroupsSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListEventHubConsumerGroupsSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource ListEventHubConsumerGroups. */ public final class IotHubResourceListEventHubConsumerGroupsSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_listehgroups.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listehgroups.json */ /** * Sample code: IotHubResource_ListEventHubConsumerGroups. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListJobsSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListJobsSamples.java index 96e592f8ff440..7fff0e2b7b6a8 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListJobsSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListJobsSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource ListJobs. */ public final class IotHubResourceListJobsSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_listjobs.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listjobs.json */ /** * Sample code: IotHubResource_ListJobs. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListKeysSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListKeysSamples.java index 181351c45610b..ab1b19f3cbde8 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListKeysSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListKeysSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource ListKeys. */ public final class IotHubResourceListKeysSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_listkeys.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listkeys.json */ /** * Sample code: IotHubResource_ListKeys. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListSamples.java index cdbe329f11701..d0c789619f795 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListSamples.java @@ -9,7 +9,7 @@ /** Samples for IotHubResource List. */ public final class IotHubResourceListSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_listbysubscription.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listbysubscription.json */ /** * Sample code: IotHubResource_ListBySubscription. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestAllRoutesSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestAllRoutesSamples.java index 9379985eb3875..be9aff8697f74 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestAllRoutesSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestAllRoutesSamples.java @@ -14,7 +14,7 @@ /** Samples for IotHubResource TestAllRoutes. */ public final class IotHubResourceTestAllRoutesSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_testallroutes.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_testallroutes.json */ /** * Sample code: IotHubResource_TestAllRoutes. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestRouteSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestRouteSamples.java index d473ded7cc36a..a83ad207ce52a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestRouteSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestRouteSamples.java @@ -16,7 +16,7 @@ /** Samples for IotHubResource TestRoute. */ public final class IotHubResourceTestRouteSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_testnewroute.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_testnewroute.json */ /** * Sample code: IotHubResource_TestRoute. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceUpdateSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceUpdateSamples.java index da1127381b5e0..c6ce29a603ade 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceUpdateSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for IotHubResource Update. */ public final class IotHubResourceUpdateSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_patch.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_patch.json */ /** * Sample code: IotHubResource_Update. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/OperationsListSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/OperationsListSamples.java index b8f84fb575eaf..4d063b1b1452a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/OperationsListSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_operations.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_operations.json */ /** * Sample code: Operations_List. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsDeleteSamples.java index b4435414571df..c5603fa554dd4 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateEndpointConnections Delete. */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_deleteprivateendpointconnection.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_deleteprivateendpointconnection.json */ /** * Sample code: PrivateEndpointConnection_Delete. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsGetSamples.java index 996fd5e105fde..3ed2b13d3921a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateEndpointConnections Get. */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_getprivateendpointconnection.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getprivateendpointconnection.json */ /** * Sample code: PrivateEndpointConnection_Get. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsListSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsListSamples.java index b4a74056891ac..c8701c58c23a3 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsListSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateEndpointConnections List. */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_listprivateendpointconnections.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listprivateendpointconnections.json */ /** * Sample code: PrivateEndpointConnections_List. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsUpdateSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsUpdateSamples.java index 51cb8d01e9e3e..21339bef56e0f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsUpdateSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsUpdateSamples.java @@ -13,7 +13,7 @@ /** Samples for PrivateEndpointConnections Update. */ public final class PrivateEndpointConnectionsUpdateSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_updateprivateendpointconnection.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_updateprivateendpointconnection.json */ /** * Sample code: PrivateEndpointConnection_Update. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationGetSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationGetSamples.java index 9f812d0696df4..b613ac82b36b9 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationGetSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationGetSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateLinkResourcesOperation Get. */ public final class PrivateLinkResourcesOperationGetSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_getprivatelinkresources.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_getprivatelinkresources.json */ /** * Sample code: PrivateLinkResources_List. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationListSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationListSamples.java index f7d1ec93103db..64f90d95ed1d5 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationListSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationListSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateLinkResourcesOperation List. */ public final class PrivateLinkResourcesOperationListSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_listprivatelinkresources.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_listprivatelinkresources.json */ /** * Sample code: PrivateLinkResources_List. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/ResourceProviderCommonGetSubscriptionQuotaSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/ResourceProviderCommonGetSubscriptionQuotaSamples.java index 78147c9731888..ad2f2a66734f0 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/ResourceProviderCommonGetSubscriptionQuotaSamples.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/ResourceProviderCommonGetSubscriptionQuotaSamples.java @@ -9,7 +9,7 @@ /** Samples for ResourceProviderCommon GetSubscriptionQuota. */ public final class ResourceProviderCommonGetSubscriptionQuotaSamples { /* - * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/examples/iothub_usages.json + * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/examples/iothub_usages.json */ /** * Sample code: ResourceProviderCommon_GetSubscriptionQuota.